Select to view content in your preferred language

Create HTTP link to ArcGIS Viewer Flex app w/ params to a map layer, zoom level, etc.

2972
11
Jump to solution
02-03-2012 10:27 AM
AshleyOwens
Emerging Contributor
How do you create an HTTP link to an ArcGIS Viewer for Flex application with parameters to a specific map layer, zoom level, visible layers, etc? We would like to dynamically create this link in another application that a user can click to go to a specific view within our ArcGIS Viewer for Flex app. Note: Our Flex code is on a different server than our ArcGIS Server. Thank you!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Sure it is the Enhanced Search Widget URL Search Configuration.pdf that is included in the eSearch Widget download.

Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:

View solution in original post

0 Kudos
11 Replies
JeremyMirmelstein
Esri Contributor
Ashley,

Check out the help document on the ArcGIS Viewer for Flex URL Parameters here

Through URL parameters you can specify a particular configuration file, a web map from ArcGIS Online, or the map starting location/scale.  The best way to accomplish certain layers on/off is probably through separate config files with those layers enabled/disabled.  Then just specify in your URL which of those config files to open. 

Hope that helps!

Jeremy
0 Kudos
AshleyOwens
Emerging Contributor
Thank you Jeremy!  I tried the following, and can tell the config file referenced is being called, but I'm still not clear how to navigate to a particular point within a layer. I tried the following, but I know my entry for itemid is incorrect:
http://arcdev/TIGER21/index.html?config=config_PRISM.xml&level=2&itemid=http://arcdev:8399/arcgis/re...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   If you need to search a certain layer than the eSearch Widget allows that, but if you just want to predefine a XY location than you use
center=11563270,144180&scale=250000
0 Kudos
AshleyOwens
Emerging Contributor
What I am trying to mimic is the act of clicking on a result in the Identify widget, where it zooms to a specific object within a layer. Except instead of within the GIS application, the link would be external, opening a new window to the GIS app when the user clicks it. Maybe this isn't possible.
Thanks everyone for your replies!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Maybe I am not getting it but is this like what you are after? Notice that when you click on the link the map is in Louisville KY and then it runs the serach in the url and zooms to my county in Alabama and displays the reults of the search in the datagrid.

http://gis.calhouncounty.org/FlexViewer2.5/index.html?config=config-eSearch.xml&search=2&slayer=4&ex...
0 Kudos
AshleyOwens
Emerging Contributor
Thank you so much, Robert.  That is the type of functionality I'm looking for.  Do you mind posting your config-eSearch.xml?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
AshleyOwens
Emerging Contributor
Is there documentation anywhere that shows all parameters available for building these URLs (similar to API documentation)?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Sure it is the Enhanced Search Widget URL Search Configuration.pdf that is included in the eSearch Widget download.

Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos