Create an ArcGIS.com Web map using URL parameters

2093
3
04-13-2012 07:16 AM
deleted-user-yA_w_FC9FKe5
New Contributor III
Can we do anything like this with the silverlight viewer application?  I really need to be able to have the user zoom into an area based on coordinates and a zoom level.

Something like this:
http://www.arcgis.com/home/webmap/viewer.html?extent=-117.20,34.055,-117.19,34.06
or this
http://www.arcgis.com/home/webmap/viewer.html?center=20,45&level=4


http://support.esri.com/en/knowledgebase/techarticles/detail/38320
0 Kudos
3 Replies
KatherineDalton
Esri Regular Contributor
Hi Michael,

There isn't a way to add coordinates or zoom level to the URL, so likely this is going to involve some kind of customization (code) on your end. One option might be to use Bookmarks - we have a [url=http://help.arcgis.com/en/webapps/silverlightviewer/samples/start.html]Sample[/url] (under the Toolkit section) for this so you could download the code and use the add-in without having to write any code yourself. Another option might be to create a tool that takes lat/long as parameters and zooms to the location. There are probably several different solutions, and maybe some of the other users here on the forums have ideas or can share code for this.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
deleted-user-yA_w_FC9FKe5
New Contributor III
Hi Michael,

There isn't a way to add coordinates or zoom level to the URL, so likely this is going to involve some kind of customization (code) on your end. One option might be to use Bookmarks - we have a Sample (under the Toolkit section) for this so you could download the code and use the add-in without having to write any code yourself. Another option might be to create a tool that takes lat/long as parameters and zooms to the location. There are probably several different solutions, and maybe some of the other users here on the forums have ideas or can share code for this.

Katy


Hi Katy:

Can you edit the bookmarks sample to change the locations?  If so which file do you edit?

[ATTACH=CONFIG]13803[/ATTACH]
0 Kudos
KatherineDalton
Esri Regular Contributor
Hi Michael,

You can't explicitly set coordinates for the bookmarks. It works similarly to how Bookmarks work in ArcMap, where you need to navigate to the desired location and then add the bookmark. For anything above and beyond that you would need a programmer in your organization to take a look.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos