Select to view content in your preferred language

Overview Map - Initial Extent

2502
19
05-12-2011 06:16 AM
EricVenden
Frequent Contributor
I am using the 2.3.1 version of the Flex Viewer and would like to change the behavior, if possible, of the Overview Map.  I have attached an image of the initial extent of the Overview map - it is zoomed out much further than I would like.  I also have attached an image of this Map Service rendered using the Javascript API.  The extent is as it "should" be.  Is there a way to limit the initial extent of the Overview Map?
Thank you
Eric V
Gurnee, IL
0 Kudos
19 Replies
by Anonymous User
Not applicable
Original User: jgeisen

Eric,

Have you modified your OverviewMap config file at all?  Are you using the same map service as in your main map?

Jay
0 Kudos
EricVenden
Frequent Contributor
Hi Jay,
I have modified the config...I have a separate map service for the Overview map.  But I believe I this is a non-issue as I had tweaked the code in v2.2 to get the Overview map to work properly (there was a bug)...it appears I had the added code moved over to the 2.3.1 viewer...this was causing the issue. When I copied the "new" swf file from 2.3.1, it appears to be working as it should
Thanks
Eric
0 Kudos
by Anonymous User
Not applicable
Original User: jgeisen

Sounds good.  Glad you got it working.
0 Kudos
StuartBlumberg
Emerging Contributor
I've been having the same problem.  I have a seperate map service for the overview map and I am having the same behavior described above.  I used this service in my 1.3 Flexviewer and it worked fine.  I started all over with the 2.3.1 API, plugged in my service in the config however the initial extent is zoomed out.  I would like the overview map to stay at the full extent and never zoom in/out.  Is this possible?
0 Kudos
by Anonymous User
Not applicable
Original User: ericv

Stuart,
Is the overview map service tiled or dynamic?

In my OverviewMap.xml I have the following:

            type="dynamic"
            url="http://gis-srv3.village.gurnee.il.us/ArcGIS/rest/services/OverviewMap/MapServer"/>

Eric
0 Kudos
StuartBlumberg
Emerging Contributor
The service is not cached and the type="dynamic"
I have tried variations of everything, with cached services as "dynamic" and "tiled" and non-cached services as "dynamic" and "tiled" and I still can't seem to get the behavior I'm looking for.  We're looking for a static map showing the entire city, as you zoom into the main map, a red rectangle will show where you are in the static overview map.  Basically I'm trying to get it where the overview map doesn't move or zoom. Thanks.
0 Kudos
by Anonymous User
Not applicable
Original User: ericv

Stuart,
What you are looking for is the behavior I'm experiencing.  I did not customize the widget with the 2.3.1 version..it's out-of-the box.  Sorry I can't help you out.  You said this map service worked in v1.3 of the viewer?  Are you using ArcGIS 10?   Maybe recreate the mxd/msd.
0 Kudos
StuartBlumberg
Emerging Contributor
Hey Eric,

Are you experiencing the behavior I am looking for on accident?  Are you showing a static overview map that doesn't zoom or move?  Is your overview map a cached service?  I tried recreating my service in 10 and I still have the same problem.  Thanks.
0 Kudos
by Anonymous User
Not applicable
Original User: ericv

Stuart,
I moved the overview widget from my 2.2 viewer.  In the 2.2 version, there was a bug when defining a different overview map service, so I had modified the code.  When I started using 2.3 & 2.3.1, I noticed that the overview map did not work, so I messed around with caching the service, etc.  When the service was cached, the overview map would zoom in/out.  If the map was not cached, the overview map was zoomed WAY out - too far.  I then remembered the issue was supposed to have been fixed in 2.3, etc...so I deleted the cache and copied in the fresh swf and xml from the 2.3.1 viewer.  Now the overview map is behaving properly.
Is this consistent with what you are seeing?
Eric
0 Kudos