Select to view content in your preferred language

How to determine what current basemap is?

931
1
08-20-2013 09:59 AM
KirkKuykendall
Deactivated User
Map.xml contains an IsBaseMap property.  Is there anything in the Viewer SDK that exposes what the current basemap is?

<esri:ArcGISTiledMapServiceLayer ID="Topographic" Url="http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer" MinimumResolution="0">
    <esriExtensibility:Document.IsBaseMap>true</esriExtensibility:Document.IsBaseMap>
    <esriMapping:LayerExtensions.LayerName>Ocean</esriMapping:LayerExtensions.LayerName>
    <esriMapping:LayerExtensions.LayerInfos />
    <esriExtensibility:LayerProperties.IsPopupEnabled>true</esriExtensibility:LayerProperties.IsPopupEnabled>
    <esriExtensibility:LayerProperties.IsVisibleInMapContents>true</esriExtensibility:LayerProperties.IsVisibleInMapContents>
  </esri:ArcGISTiledMapServiceLayer>


Thanks!
0 Kudos
1 Reply
KirkKuykendall
Deactivated User
Resolved by looping through all layers and calling ESRI.ArcGIS.Client.WebMap.Document.GetIsBaseMap.
0 Kudos