Select to view content in your preferred language

Linking to a Particular Map Extent

3518
4
Jump to solution
05-15-2012 01:47 PM
TomFlahive
Occasional Contributor
With a Silverlight Viewer application, is there a way to send someone a link to an application so that when they click on the link, it takes them to a particular point or location or map extent (similar to bookmarks)?  In otherwords, is there a way to embed the location or map extent in the URL hyperlink to zoom to that map extent?  We would like to be able to send someone a link to our viewer application that pulls up a particular spot on the map for review purposes.  We won't know the spots ahead of time so we would need to be able to do this on the fly.

Thanks.
0 Kudos
1 Solution

Accepted Solutions
DerekLaw
Esri Esteemed Contributor
Hi Tom,

Guidance from the Development team:

"This can be done programmatically in a behavior if you include the extent (or other information) in the URL???s query string. In OnAttached of the behavior, get the query string from HtmlPage.Document.QueryString. Then parse out whatever information is expected and manipulate the map (MapApplication.Current.Map) accordingly."

Hope this helps,

View solution in original post

0 Kudos
4 Replies
DerekLaw
Esri Esteemed Contributor
Hi Tom,

With a Silverlight Viewer application, is there a way to send someone a link to an application so that when they click on the link, it takes them to a particular point or location or map extent (similar to bookmarks)?


This functionality is not currently possible OOTB, but may be possible with some custom Silverlight API development.

Hope this helps,
0 Kudos
TomFlahive
Occasional Contributor
Thanks Derek.  Did you have something in mind that you think might work?  Can you provide some details on what that approach might be?
0 Kudos
DerekLaw
Esri Esteemed Contributor
Hi Tom,

Guidance from the Development team:

"This can be done programmatically in a behavior if you include the extent (or other information) in the URL???s query string. In OnAttached of the behavior, get the query string from HtmlPage.Document.QueryString. Then parse out whatever information is expected and manipulate the map (MapApplication.Current.Map) accordingly."

Hope this helps,
0 Kudos
TomFlahive
Occasional Contributor
Thank you!
0 Kudos