Constrain the Zoom Extent in HTML5 Viewer?
I'm using Geocortex 4.2 and HTML5 2.3 and was hoping to Constrain the Map to a certain extent so the users cannot zoom out forever. There is a (http://support.geocortex.com/using-a-startup-workflow-to-constrain-the-extent-of-your-map) workflow Latitude provided that works great in Silverlight but errors in HTML5 on the 3rd activity saying something about "No Key given" (guessing it has to do with the eventArgs). Is there or will there ever be a way to Constrain the Map in the HTML5 Viewer? Thanks for any help
-
I second this request.
0 -
Just as a follow up for anyone who is an HTML5 guru... found this link for a working constraint solution for HTML5 on ESRI services.
http://arcscripts.esri.com/details.asp?dbid=16956
More specifically, there is a link to a zip file which has a webpage as an example. That may be more useful. I unfortunately am not literate at all with HTML so maybe a guru is willing to help out and get something like this working for us? :-)
Thanks!
Cecil
0 -
Take the existing workflow, and wherever you see 'NewExtent' change this to the number '0' (use the Search bar).
So:
CType(eventArgs.GetValue("NewExtent.xmin"),Double)
becomes
CType(eventArgs.GetValue("0.xmin"),Double)
Hope this helps.
0 -
I'll give that a shot, thanks!
Cecil
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare