<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Load Bing Basemap on button click in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/load-bing-basemap-on-button-click/m-p/318856#M8229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using this SDK sample? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BingImagery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BingImagery&lt;/A&gt;&lt;SPAN&gt; Notice that each RadioButton in XAML were assigned a Tag that corresponds to LayerType. When debugging, try to see if you are getting the correct layer type as you switch between styles.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 19:25:32 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-09-08T19:25:32Z</dc:date>
    <item>
      <title>Load Bing Basemap on button click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/load-bing-basemap-on-button-click/m-p/318855#M8228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the Bing base map set to Aerial, I have created the corresponding buttons "Aerial", "Road", and "Hybrid". I want to select the appropriate layer per user click, so far nothing happens and the Bing SDK only uses "Map Mode" which isn't recognized. Dev environment: Expression Blend 4, VS 2010 all uptodate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .xaml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:Map x:Name="MyMap" IsLogoVisible="False" Margin="0,32,0,-32" Extent="-13887825.123,2444748.272,-7773660.946,6480218.546"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:Map.Foreground&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;SolidColorBrush Color="Black"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/esri:Map.Foreground&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bing:TileLayer ID="BingLayer" LayerStyle="Aerial" ServerType="Production" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Token="{StaticResource BingKeyString}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:ArcGISDynamicMapServiceLayer ID="AllNSLayers"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; Url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gatucitvgis05s/ArcGISCache/rest/services/NSRail_MilePost/MapServer" rel="nofollow" target="_blank"&gt;http://gatucitvgis05s/ArcGISCache/rest/services/NSRail_MilePost/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/esri:Map&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;c#:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private void Roads_Button_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ESRI.ArcGIS.Client.Bing.TileLayer tileLayer = MyMap.Layers["BingLayer"] as TileLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; string layerTypeTag= "Road";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; TileLayer.LayerType newLayerType = (TileLayer.LayerType)System.Enum.Parse(typeof(TileLayer.LayerType), layerTypeTag, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; tileLayer.LayerStyle = newLayerType;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 17:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/load-bing-basemap-on-button-click/m-p/318855#M8228</guid>
      <dc:creator>NigelAlford</dc:creator>
      <dc:date>2011-09-08T17:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Load Bing Basemap on button click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/load-bing-basemap-on-button-click/m-p/318856#M8229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using this SDK sample? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BingImagery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BingImagery&lt;/A&gt;&lt;SPAN&gt; Notice that each RadioButton in XAML were assigned a Tag that corresponds to LayerType. When debugging, try to see if you are getting the correct layer type as you switch between styles.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 19:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/load-bing-basemap-on-button-click/m-p/318856#M8229</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-09-08T19:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Load Bing Basemap on button click</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/load-bing-basemap-on-button-click/m-p/318857#M8230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, that was the push I needed. I wasn't using the correct object type, and I had to give it a tag. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone runs into this problem pm me and I can help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 12:48:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/load-bing-basemap-on-button-click/m-p/318857#M8230</guid>
      <dc:creator>NigelAlford</dc:creator>
      <dc:date>2011-09-09T12:48:48Z</dc:date>
    </item>
  </channel>
</rss>

