Opening a Webmap and Going to a Set X-Y Location

1510
6
09-17-2014 01:11 PM
TomRicker
New Contributor II

Is there a way to have a web map open up and zoom automatically into an X-Y location on the map? I have a road construction web map created
and I would like to have open up to a set location on the map when coming from the county’s main web page that list the various construction locations. 

Tags (2)
0 Kudos
6 Replies
AnthonyGiles
Frequent Contributor

Tom,

There are many options you can do by appending parameters to the URL such as centering the map, see here:

Use URL parameters—Help | ArcGIS

0 Kudos
TomRicker
New Contributor II

Can I set a save webmap ID number and then the X-Y location?

0 Kudos
AnthonyGiles
Frequent Contributor

You may have to use the extent option, as the center does not seem to work with a webmap

https://www.arcgis.com/home/webmap/viewer.html?webmap=44a2fddbd41e4f08a9b4ee96c26fe1bf&extent=-13079...

You could also try the find option:

https://www.arcgis.com/home/webmap/viewer.html?webmap=44a2fddbd41e4f08a9b4ee96c26fe1bf&find=64,31

Scale is automatically set when you use the webmap or find parameter; level is ignored. If you use the webmapparameter, the map is automatically zoomed to the full extent of the map. If you use the find parameter, the map is automatically zoomed to the best extent of the found location.

0 Kudos
TomRicker
New Contributor II

For the extent what are the values in that string example and is their a tool that will easily pull those vales out for me?

Thank you for your help

Tom 

0 Kudos
MikeMinami
Esri Notable Contributor

You can get lat/long values with the measure tool...then use the coordinates with a zoom level

http://www.arcgis.com/home/webmap/viewer.html?center=20,45&level=4

Mike

AnthonyGiles
Frequent Contributor

The values are the coordinates of the extent in the following order left, bottom, right, top. Because the basemap is in web Mercator these figures are in meters. If you are using a basemap in a different coordinate system then you will need to use the coordinates that are in the same projection.

if you are using the online basemaps then there is a good flex helper application for getting the extent here:

Extent Helper for Web Mercator maps

0 Kudos