Select to view content in your preferred language

Overview Map - Initial Extent

2510
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
StuartBlumberg
Emerging Contributor
Yes, this is pretty much what I'm experiencing, the map is zoomed way too far out.  When you say, "the overview map is beahving properly" do you mean it is a static image like I want mine?
0 Kudos
by Anonymous User
Not applicable
Original User: ericv

Stuart,
Yes, I have a static image that shows the current display window in a red box.  Have you looked at the extents of the layers in your mxd?
Eric
0 Kudos
StuartBlumberg
Emerging Contributor
Eric,

What should I be looking for when I am checking the extents?  I am using a dynamic service like yours, how does the overview map widget know what extents to start at?  Do I need to set this somewhere in the MXD?  Thanks for your help and patience!

Stuart
0 Kudos
by Anonymous User
Not applicable
Original User: ericv

Eric,

What should I be looking for when I am checking the extents?  I am using a dynamic service like yours, how does the overview map widget know what extents to start at?  Do I need to set this somewhere in the MXD?  Thanks for your help and patience!

Stuart


Stuart,
I checked the extents of my mxd's by going to the Rest services directory at:  http://{server name}/ArcGIS/rest/services

You can click on a service and then view the extents there.  i did this when I was working through my issue - just to see if the overview was zoomed way out due to a goofy extent.  This was not the case....
Eric
0 Kudos
StuartBlumberg
Emerging Contributor
The extents seem to be fine, nothing weird going on there.  You just used the out-of-the-box code from the 2.3.1 version, correct?  Thats what I'm using along with a dynamic map service.
0 Kudos
by Anonymous User
Not applicable
Original User: ericv

Yup..out of the box...How about clearing Rest cache?  Browser cache?
0 Kudos
StuartBlumberg
Emerging Contributor
Tried all that, no luck.  Probably something really simple I am missing.  I am going to try repost this in a new thread and see what happens.  Thanks for your help!
0 Kudos
by Anonymous User
Not applicable
Original User: ericv

Sounds good Stuart...sorry I couldn't help...
I've pasted in my config for the Overview widget......sounds like I did experience the same issue you are having, but mine has somehow cleared up...I'm keeping my fingers crossed.

<?xml version="1.0" ?>
<configuration>
    <!-- possible values for initialstate: open or closed (default) -->
    <initialstate>closed</initialstate>
    <!-- by default it will use the same basemap as current main map,
         you can hardcode as below if you wish -->
    <layer
            type="dynamic"
            url="http://gis-srv3.village.gurnee.il.us/ArcGIS/rest/services/OverviewMap/MapServer"/>
    
</configuration>
0 Kudos
StuartBlumberg
Emerging Contributor
Hehe, thanks again Eric!
0 Kudos
StuartBlumberg
Emerging Contributor
0 Kudos