Overview map always at full extent

1482
2
05-07-2010 03:44 PM
ScottMcEachern
New Contributor III
I have been unable to get the OverviewMap (version 1.2) to work when set through code as this information is only known at runtime.  The overview map is always displayed at the maximum extent even when the main map is zoomed in and there is no graphic that displays the current location.  Here is a summary of the code:

Set the overview.Map property with the main map.

Create a new instance of the layer to be used with the overview map.

Set the overview.Layer property with the new layer.

The layer is the Bing Maps roads layer.  A new instance of the layer is used, not the one from the main map.  The spatial reference is Web Mercator.

Does anyone know how to resolve this problem?
Scott
0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor
Are the layers BOTH in the map AND the overview map using services that are in WebMercator?
0 Kudos
ScottMcEachern
New Contributor III
Both the map and the overview have the �??Bing Roads�?� layer; except they are different instances.  A new instance is created for the map and then another new instance is created for the overview map; both instances use the same authorization token.

Thanks,
Scott
0 Kudos