Select to view content in your preferred language

Webmap Extent when passed on URL

672
2
09-08-2011 08:53 AM
EamonnDoyle
Esri Contributor
Hi There

I've noticed that when a webmap id is passed on the URL for teh ArcGIS Viewer for Flex the viewer opens up at the extent of the basemap not the extent of the webmap. Is this the expected behaviour or have I got something wrong?

Thanks

Eamonn
Tags (2)
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
I've noticed that when a webmap id is passed on the URL for the ArcGIS Viewer for Flex the viewer opens up at the extent of the basemap not the extent of the webmap. Is this the expected behaviour or have I got something wrong?


It depends if you overwrite the extent. You can overwrite the webmap's extent either in the config file or in the URL.

If you are using a configuration file without an extent, then the webmap will decide the initial extent.

For an example of using the webmap extent, see the web map samples in the Flex Viewer resource center, such as:
http://help.arcgis.com/en/webapps/flexviewer/live/index.html?itemid=2ee3425c0eb045ffa0d87bfd1e16a0aa... Note that this configuration file does not have the initialextent property specified.  Thus allowing the webmap extent to be used.

Same is true for <title>.  If not specified in the configuration file, the title of the webmap will be used.
0 Kudos
EamonnDoyle
Esri Contributor
Great, now I see. Thank You!
0 Kudos