My scenario:
- I have 2 tab views, each with an esri map.
- I have only 1 overview map section. Every time I switch to a map tab, the overview map is updated with the map of that tab and other info are updated as below:
[INDENT]
overviewMap.Map = MainMap;
overviewMapLayer = overviewMap.Layer as ArcGISDynamicMapServiceLayer;
overviewMapLayer.Url = baseMapLayer.Url;
overviewMap.Map.Extent = MainMap.Extent;
overviewMap.UpdateLayout();[/INDENT]
overviewMap is OverviewMap instance.
MainMap is my map instance.
- I can drill down to an area on the map. When drilling down, I update my main map with the next layer and also update the overview map as above.
Problem:
After drilling down, I switch to another map tab view, the location indicator (red square in the attached image) disappears. I don't know what causes that.
One way to fix this is I pan the overview map to somewhere (programmatically), BUT I don't want to do so unless I just do the panTo to the same place so that it doesn't move, but then I don't know how to get the indicator location.
Is there anything I'm missing here and what workaround I can do?
Please help!