Need to customize map initial extent in Flex Viewer for geoportal

4944
3
08-12-2014 04:49 AM
ROMANFILOZOF
New Contributor III

Hi people,
I have a geoportal with flex based map viewer. For now I have the next:

map initialextent="2850000 5485000 4050000 6865000" top="40"

But what should I have if I'd like to zoom/pan to the different extent every next time when I choose "add to map" for any different resource?

I'd very appreciate any help

0 Kudos
3 Replies
ZhongPingGuo
Esri Contributor

when add to map, the flex viewer map extent should automatically change/zoom to the extent defined in the resource normally, you might check if the extent in the metadata matches, sometime if it is defined to global, will not see the extent change, which version of geoportal are you using?

0 Kudos
ROMANFILOZOF
New Contributor III

We use version 1.2.2

You mean I should comment the string with map initial extent and it would zoom/pan to added map resource automaticly?

0 Kudos
ZhongPingGuo
Esri Contributor

I think that's for the initial map extent, with 1.2.5, it should zoom to the area of the added map resource automatically without have to comment out that line, don't have a 1.2.2 instance on hand, you might check the sandbox site http://gptogc.esri.com/geoportal (which has 1.2.5) and compare to see if behave differently. there might be some limitation with earlier versions.

0 Kudos