<?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 map.setbasemap for vector tiles in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setbasemap-for-vector-tiles/m-p/1125678#M75589</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have added vector tile as base map in base map gallery. On toggle this is working as expected.Below is the code to add basemap while map load. This code works for ArcGIS dynamic map service or Tiled map service. But below code does not work for Vector tile layer.&lt;/P&gt;&lt;P&gt;Basemaps.mybasemap = {&lt;BR /&gt;title: 'My custom basemap',&lt;BR /&gt;thumbnailUrl: baseMapService.MapServiceURL + '/info/thumbnail',&lt;BR /&gt;baseMapLayers: [&lt;BR /&gt;{ url: baseMapService.MapServiceURL }&lt;BR /&gt;]&lt;BR /&gt;};&lt;BR /&gt;map.setBasemap("mybasemap");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Is there a way we can add vector tile as bassemap on load?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Dec 2021 03:35:56 GMT</pubDate>
    <dc:creator>ADITYAKUMAR1</dc:creator>
    <dc:date>2021-12-14T03:35:56Z</dc:date>
    <item>
      <title>map.setbasemap for vector tiles</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setbasemap-for-vector-tiles/m-p/1125678#M75589</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have added vector tile as base map in base map gallery. On toggle this is working as expected.Below is the code to add basemap while map load. This code works for ArcGIS dynamic map service or Tiled map service. But below code does not work for Vector tile layer.&lt;/P&gt;&lt;P&gt;Basemaps.mybasemap = {&lt;BR /&gt;title: 'My custom basemap',&lt;BR /&gt;thumbnailUrl: baseMapService.MapServiceURL + '/info/thumbnail',&lt;BR /&gt;baseMapLayers: [&lt;BR /&gt;{ url: baseMapService.MapServiceURL }&lt;BR /&gt;]&lt;BR /&gt;};&lt;BR /&gt;map.setBasemap("mybasemap");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Is there a way we can add vector tile as bassemap on load?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 03:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setbasemap-for-vector-tiles/m-p/1125678#M75589</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2021-12-14T03:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: map.setbasemap for vector tiles</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setbasemap-for-vector-tiles/m-p/1126221#M75603</link>
      <description>&lt;P&gt;I have managed to fix it. Below are the changes in the code.&lt;/P&gt;&lt;P&gt;Basemaps.mybasemap = {&lt;BR /&gt;title: 'My custom basemap',&lt;BR /&gt;itemId: "xxxxxxxxxxxxxxxxxxxxxxxx",&lt;BR /&gt;thumbnailUrl: baseMapService.MapServiceURL + '/info/thumbnail',&lt;BR /&gt;baseMapLayers: [&lt;BR /&gt;{&lt;BR /&gt;url: baseMapService.MapServiceURL,&lt;BR /&gt;type: "VectorTile"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;map.setBasemap("mybasemap");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 12:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setbasemap-for-vector-tiles/m-p/1126221#M75603</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2021-12-15T12:10:46Z</dc:date>
    </item>
  </channel>
</rss>

