Select to view content in your preferred language

Overview Map Binding

2140
2
10-06-2010 04:35 AM
ShaningYu
Honored Contributor
I created a user control for Overview Map using ESRI's source code in http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#OverviewMap
            <esri:OverviewMap x:Name="MyOverviewMap" Margin="35,25,35,25" MaximumExtent="-180,-90,180,90"
                    Map="{Binding ElementName=_Map}">
                <esri:OverviewMap.Layer>
                    <esri:ArcGISTiledMapServiceLayer ID="TopoLayer"
                           Url="http://services.arcgisonline.com/ArcGIS/rest/services/NPS_Physical_World_2D/MapServer"/>
                </esri:OverviewMap.Layer>
            </esri:OverviewMap>

where _Map is defined in its .xaml.cs file:
        private MainPage _Parent;
        private Map _Map;

        #region Public Methods
        public Overview()   {
            InitializeComponent();
            ...
        }

        public void SetMap(Map TheMap)  {
            _Map = TheMap;
        }

        public void SetParent(MainPage TheParent)  {
            _Parent = TheParent;
        }

However, the Overview Map is still empty.  I debugged, and observed that _Map contains 4 layers (not null).  There must be something missing for the binding.  If you know, please point it our.  Thanks.
0 Kudos
2 Replies
DarinaTchountcheva
Frequent Contributor
Hi Shaning,

I think you are seeing an issue with the OverviewMap discussed in this forum:

http://forums.arcgis.com/threads/10033-Overview-map-does-not-show-contents-until-after-view-extent-c...

I am looking for a workaround of the same issue.
Hope, someone has already found it. 🙂

I will post back when I come up with a solution.
0 Kudos
ShaningYu
Honored Contributor
0 Kudos