<?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 Custom vector basemap not working with multiple instances in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-vector-basemap-not-working-with-multiple/m-p/338730#M3975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to switch over a WPF application to use custom vector basemaps. My app has several maps that show up in different spots, which are implemented as separate view/viewmodel instances (with no shared data, unfortunately).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I initialize like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;_map&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;Map&lt;/SPAN&gt;(&lt;SPAN style="color: #2b91af;"&gt;BasemapType&lt;/SPAN&gt;.TopographicVector,&amp;nbsp;0,&amp;nbsp;0,&amp;nbsp;0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works as expected. All the maps all show up fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If instead I initialize like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&lt;/SPAN&gt;&amp;nbsp;arcGisOnline&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;await&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;ArcGISPortal&lt;/SPAN&gt;.CreateAsync(&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;Uri&lt;/SPAN&gt;(&lt;SPAN style="color: #a31515;"&gt;"https://www.arcgis.com"&lt;/SPAN&gt;)); &amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;SPAN style="color: blue;"&gt;   var&lt;/SPAN&gt;&amp;nbsp;layerPortalItem&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;await&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;PortalItem&lt;/SPAN&gt;.CreateAsync(arcGisOnline,&amp;nbsp;&lt;SPAN style="color: #a31515;"&gt;"88f339245400469e88d784524ae80fca"&lt;/SPAN&gt;); &amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;SPAN style="color: blue;"&gt;   var&lt;/SPAN&gt;&amp;nbsp;customVectorTileLayer&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;ArcGISVectorTiledLayer&lt;/SPAN&gt;(layerPortalItem); &amp;nbsp;&amp;nbsp;&amp;nbsp;
   _map&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;Map&lt;/SPAN&gt;(&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;Basemap&lt;/SPAN&gt;(customVectorTileLayer));&lt;/PRE&gt;&lt;P&gt;The map shows up in the first view correctly. In the other views it's blank (white). No error messages are emitted on the console. Bottom right of the canvas says "Powered by Esri", bottom left says nothing. The working instance has a dark gray background (with the map on top), says "Licensed for Developer Use Only", has "Esri, FAO, NOAA, NRCan" in the lower left and "Powered by Esri" in the lower right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:01:37 GMT</pubDate>
    <dc:creator>HowardAlt</dc:creator>
    <dc:date>2021-12-11T16:01:37Z</dc:date>
    <item>
      <title>Custom vector basemap not working with multiple instances</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-vector-basemap-not-working-with-multiple/m-p/338730#M3975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to switch over a WPF application to use custom vector basemaps. My app has several maps that show up in different spots, which are implemented as separate view/viewmodel instances (with no shared data, unfortunately).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I initialize like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;_map&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;Map&lt;/SPAN&gt;(&lt;SPAN style="color: #2b91af;"&gt;BasemapType&lt;/SPAN&gt;.TopographicVector,&amp;nbsp;0,&amp;nbsp;0,&amp;nbsp;0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works as expected. All the maps all show up fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If instead I initialize like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&lt;/SPAN&gt;&amp;nbsp;arcGisOnline&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;await&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;ArcGISPortal&lt;/SPAN&gt;.CreateAsync(&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;Uri&lt;/SPAN&gt;(&lt;SPAN style="color: #a31515;"&gt;"https://www.arcgis.com"&lt;/SPAN&gt;)); &amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;SPAN style="color: blue;"&gt;   var&lt;/SPAN&gt;&amp;nbsp;layerPortalItem&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;await&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;PortalItem&lt;/SPAN&gt;.CreateAsync(arcGisOnline,&amp;nbsp;&lt;SPAN style="color: #a31515;"&gt;"88f339245400469e88d784524ae80fca"&lt;/SPAN&gt;); &amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;SPAN style="color: blue;"&gt;   var&lt;/SPAN&gt;&amp;nbsp;customVectorTileLayer&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;ArcGISVectorTiledLayer&lt;/SPAN&gt;(layerPortalItem); &amp;nbsp;&amp;nbsp;&amp;nbsp;
   _map&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;Map&lt;/SPAN&gt;(&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;Basemap&lt;/SPAN&gt;(customVectorTileLayer));&lt;/PRE&gt;&lt;P&gt;The map shows up in the first view correctly. In the other views it's blank (white). No error messages are emitted on the console. Bottom right of the canvas says "Powered by Esri", bottom left says nothing. The working instance has a dark gray background (with the map on top), says "Licensed for Developer Use Only", has "Esri, FAO, NOAA, NRCan" in the lower left and "Powered by Esri" in the lower right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-vector-basemap-not-working-with-multiple/m-p/338730#M3975</guid>
      <dc:creator>HowardAlt</dc:creator>
      <dc:date>2021-12-11T16:01:37Z</dc:date>
    </item>
  </channel>
</rss>

