Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FeatureEditor - Restrict editing by geometric area #10514

Open
Gaetanbrl opened this issue Aug 21, 2024 · 0 comments · May be fixed by #10515
Open

FeatureEditor - Restrict editing by geometric area #10514

Gaetanbrl opened this issue Aug 21, 2024 · 0 comments · May be fixed by #10515
Assignees
Milestone

Comments

@Gaetanbrl
Copy link
Contributor

Target branch : master

Description

link to https://groups.google.com/g/mapstore-developers/c/6KhmNTJzpDc

This improvement will change the featureEditor plugin to allow to limit attributes table features loading by a geometric area (WKT or GeoJSON) for non ADMIN users.

To activate this restriction, the user (with correct access) will configure FeatureEditor plugin to set a new restricedArea params section :

    "restrictedArea": {
      "url": "/my_geojson_or_wkt",
      "raw": "POLYGON ((-1.625007 48.12657, -1.625007 48.134647, -1.603028 48.134647, -1.603028 48.12657, -1.625007 48.12657))",
      "operator": "WITHIN"
    }

Where :

  • Operator <string> : WITHIN or INTERSECTS or CONTAINS
  • raw <string> : geometry GEOJSON or WKT
  • url <string> : path or URI (Will be use instead of raw if both are defined)

About sync and request, this area will be insert in SpatialField array filters with Viewport and others Filters.

In addition, an icon show that the restriction by area is currently active (left) :

image

@Gaetanbrl Gaetanbrl linked a pull request Aug 21, 2024 that will close this issue
12 tasks
@tdipisa tdipisa linked a pull request Aug 23, 2024 that will close this issue
12 tasks
@tdipisa tdipisa added this to the 2025.01.00 milestone Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants