<?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: Change Map at runtime in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674222#M17362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I cannot see the map after I add the layers until i click on the Full extent button on the navigation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Aug 2010 06:49:29 GMT</pubDate>
    <dc:creator>xariaD</dc:creator>
    <dc:date>2010-08-12T06:49:29Z</dc:date>
    <item>
      <title>Change Map at runtime</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674217#M17357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have to change the entire map upon some event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg If checkbox 1 is checked load map1; when checkbox2 is checked load map2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I want to have the same events on feature layer of both maps, and same Maptips.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think converting the MapTip to user control will be a good idea, but how do I change the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both maps essentially have same attributes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 01:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674217#M17357</guid>
      <dc:creator>xariaD</dc:creator>
      <dc:date>2010-08-12T01:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change Map at runtime</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674218#M17358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create two maps with layer events using the same event handlers in code and add/remove to your grid based on the CheckBox IsChecked property. Or you can define your maps in XAML and then bind each map's Visibility property to the CheckBox IsChecked, at which case you will need to write your own Converter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 04:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674218#M17358</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-12T04:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change Map at runtime</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674219#M17359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Or you can define your maps in XAML and then bind each map's Visibility property to the CheckBox IsChecked, at which case you will need to write your own Converter.&lt;BR /&gt;&lt;BR /&gt;Jennifer&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What kind of converter, and for what? Could you please elaborate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674219#M17359</guid>
      <dc:creator>xariaD</dc:creator>
      <dc:date>2010-08-12T05:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change Map at runtime</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674220#M17360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to change the Dynamic layer and feature layer only?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I define two maps then they'll have different "Name" and my code will be in mess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I not just change the url for ArcGISDynamic Layer and Feature Layer???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674220#M17360</guid>
      <dc:creator>xariaD</dc:creator>
      <dc:date>2010-08-12T05:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change Map at runtime</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674221#M17361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure you can add/remove layer from your Map layers in code-behind, that will work too with minimal effort.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you will change visibility using CheckBox. You will have something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Visibility="{Binding IsChecked, ElementName=checkBox, Converter={StaticResource BooleanToVisibilityConverter}}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class BooleanToVisibilityConverter : IValueConverter { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Object Convert(Object value, Type targetType, Object parameter, CultureInfo culture) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (targetType == typeof(Visibility) &amp;amp;&amp;amp; value !=null) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var visible = System.Convert.ToBoolean(value, culture); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return visible ? Visibility.Visible : Visibility.Collapsed; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new InvalidOperationException("Converter can only convert to value of type Visibility."); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Object ConvertBack(Object value, Type targetType, Object parameter, CultureInfo culture) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new InvalidOperationException("Converter cannot convert back."); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 05:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674221#M17361</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-12T05:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change Map at runtime</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674222#M17362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I cannot see the map after I add the layers until i click on the Full extent button on the navigation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 06:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674222#M17362</guid>
      <dc:creator>xariaD</dc:creator>
      <dc:date>2010-08-12T06:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change Map at runtime</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674223#M17363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which approach did you use? You can check that all layers have initialized. If you are creating the layers in code, be sure to call layer.Initialize(), subscribe to Initialized event too. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 14:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674223#M17363</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-12T14:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Map at runtime</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674224#M17364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, Finally I had to resort to defining two maps and hiding one .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No issues now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 04:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674224#M17364</guid>
      <dc:creator>xariaD</dc:creator>
      <dc:date>2010-08-13T04:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change Map at runtime</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674225#M17365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I have to add to my XAML in order to expose the converter class as a static resource?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 14:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-map-at-runtime/m-p/674225#M17365</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2011-01-31T14:17:32Z</dc:date>
    </item>
  </channel>
</rss>

