HTML5 Pass Coordinates in URL to Zoom on Startup
Using the HTML5 viewer, can coordinates be passed as variables in the site URL for initial map extent?
-
Yes. It looks like this:
Syntax: extent=minX,minY,maxX,maxY or extent=minX,minY,maxX,maxY,wkid
So your URL ends up looking like:
or
You can find more information in the HTML5 Administrator and Developer Guide under section 9.2.
0 -
Jordan,
Thank you for your quick reply yesterday. Your sample worked as expected. What I need now is to access the HTML5 Administrator and Developer Guide and I cannot find it anywhere.
Thanks again.
0 -
They are available in the download folder under the HTML5 version that you downloaded. If you took the whole ZIP file, they should be whereever you extracted that to...
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare