Select to view content in your preferred language

Flexviewer zoom to feature at start

3825
2
03-30-2015 04:59 AM
JoniKaitaranta
New Contributor

How would you implement a flexviewer that at start would highlight and zoom to a specific feature? I have been doing this with config.xml using Query widget that preselects a feature with the widget configuration file. That works fine, the feature is selected and highlighted but the map does not zoom automatically to the feature when opening the application, only after Query widgets "Zoom to" button is clicked. Is there any way to get it to zoom to already by default?

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Joni,

   The Viewer has URL parameters for allowing this, just look at the documentation.

ArcGIS Viewer for Flex URL Parameters

Or use my eSearch widget that allows you to specify a search from the URL and will automatically zoom to the selected search result(s)

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e

JoniKaitaranta
New Contributor

Thanks Robert,

I have to do this for +100 features (multiple viewer start URLs) so I'll try the eSearch widget instead of defining initial extent as URL parameter.

0 Kudos