Select to view content in your preferred language

Hyperlink to Arcserver app, Zoom to address

683
2
09-07-2010 05:25 AM
BrandonIves
Emerging Contributor
Does anyone know of a way to have a hyperlink in another application that will open an ArcServer app to a corresponding address?

Example: In google maps you can zoom to a specific address by using their url (http://maps.google.com/?q=301 E CENTRAL ST SPRINGFIELD MO) The address 301 E Central Springfield MO is an attribute stored in a table. I would like to put a URL that would open my arcserver app in a new window that would automatically zoom to the address.

Any help would be appreciated.
0 Kudos
2 Replies
TerryGiles
Frequent Contributor
In general here's one way to do it -

When your silverlight app loads check the URL for paramters - see the thread @ http://forums.arcgis.com/threads/10445-Is-it-possible-to-pass-arguments-in-the-URL for one way to get the parameters.

Take the value of the address parameter (e.g. '301 E CENTRAL ST') use it in a query task against the address layer in your map service.  Take the geometry of the returned FeatureSet, add it as a graphic to your map & to zoom the map to that geometry.
0 Kudos
BrandonIves
Emerging Contributor
In general here's one way to do it -

When your silverlight app loads check the URL for paramters - see the thread @ http://forums.arcgis.com/threads/10445-Is-it-possible-to-pass-arguments-in-the-URL for one way to get the parameters.

Take the value of the address parameter (e.g. '301 E CENTRAL ST') use it in a query task against the address layer in your map service.  Take the geometry of the returned FeatureSet, add it as a graphic to your map & to zoom the map to that geometry.



I found this helpful video for anyone else looking to do this:

http://www.silverlight.net/learn/videos/silverlight-videos/using-startup-parameters-with-silverlight...
0 Kudos