Limit map extent
Is it possible to constrain the map to a specific extent? I am needing to limit the user's ability to pan the map outside a defined area.
0
-
You can set the full exent off the map here:
https://docs.geocortex.com/essentials/latest/admin-help/Default.htm#ge/admin/map.htm#full-extent-of-a-map%3FTocPath%3DThe%2520Map%7CFull%2520Extent%2520of%2520a%2520Map%7C_____00 -
That help doc says that it "does not limit the parts of the map that end users can access—users can pan the map beyond the full extent that you configure, search and query operations can return results from outside the full extent, and so on." I'm curious if you can limit the map to a specfic extent as well. 0 -
Not pretty, but you could add a mask layer on top, and make it so it can't be turned off. Probably wouldn't help with someone doing a blind Identify outside the area... 0 -
What did you mean with mask layer, Mike? I really need what jared request 0 -
A layer that covers the world, but has the area you would like people to be able to see cut out. This layer sits on top of the rest of your layers Ann's is opaque so users can not see underneath. You could make this layer white, or maybe fill it with dragons... 0 -
Jared,
Found this on the GeoCortex site years ago...
Try this workflow: (https://drive.google.com/open?id=10V1vDwWaO9JXoeCQv3SMjjBlENSa3spp)
Cheers...Rick0 -
I left this note out... When adding the workflow to GE, be sure to check the box "Run On Startup". This will allow the "MapExtentChangedEvent" to do it's thing.
Rick0 -
Here's the source - Knowledge Base:
https://support.geocortex.com/essentialsGSCkba?sub-nav=kba&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_SEARCH_RESULT&id=kA360000000Ciby0 -
Thanks for this Rick, its going part way to solving a task for me.
The only issue I have is that after zooming in to an area within the extent and then I hit the Initial Extent Button it does return to the Initial extent but then zooms down a level and pans slightly.
Any idea as to why this would happen?
Cheers, Chris0 -
Hi Chris,
What version of viewer are you using? This may be a previously filed bug.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Hi Wayne.
I am using the latest version GXE 4.10.2 and HTML5 2.11.2
Cheers0 -
Hi Chris,
The issue I was looking at was fixed in 2.9. I don't see anything that has been filed with your symptoms. I would recommend submitting a support ticket so a support analyst can look into it with you.
Regards,
Wayne0 -
The post from @Richard Diaz? works brilliantly. Exactly what I needed. Does anyone know if there is a similar sample to this using Workflow 5?
1
Please sign in to leave a comment.
Comments
13 comments