disabling map to pan below certain region
We have a certain requirement that for particular group of users we want to have particular region visible on map and users should not be able to pan outside that area(LAT/LONG BOUND) nor they can zoom out beyond that extent but they can zoom in beyond that extent and then map can be panned but till the bounding (LAT/LONG BOUND)
0
-
Use a layer filtered to the data of the specific region and with a scale dependency set, and set layer permissions for the user group only to this layer. 0 -
Here there is an option that we are using in some viewers but it depends on the way that your map services are:
Could you think of use “Set layer definition” activity to “filter out” features that user is not allowed to see? When map loads you could add a check based on the group of users logged in and with “Set layer definition” restrict your map visibility. The “problem” with this option is that you would need an attribute or some ways to define features to be displayed/filtered out.
Technically this way will not meet the requirement “not be able to pan outside that area ” but practically user is not able to see features outside that area …
Just an option … I hope it helps someone …0 -
Nico Burgerhart Its not about filtering dataof the specific region and with a ascale dependecy or about layer permission, Its about setting map extent and map scale on query from a table data which store everything about users roles and their accessible region 0
Please sign in to leave a comment.
Comments
3 comments