<?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: Vector tiles as basemap on map load in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/vector-tiles-as-basemap-on-map-load/m-p/1126222#M6109</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:11:20 GMT</pubDate>
    <dc:creator>ADITYAKUMAR1</dc:creator>
    <dc:date>2021-12-15T12:11:20Z</dc:date>
    <item>
      <title>Vector tiles as basemap on map load</title>
      <link>https://community.esri.com/t5/developers-questions/vector-tiles-as-basemap-on-map-load/m-p/1124822#M6106</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>Fri, 10 Dec 2021 12:52:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/vector-tiles-as-basemap-on-map-load/m-p/1124822#M6106</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2021-12-10T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Vector tiles as basemap on map load</title>
      <link>https://community.esri.com/t5/developers-questions/vector-tiles-as-basemap-on-map-load/m-p/1126222#M6109</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:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/vector-tiles-as-basemap-on-map-load/m-p/1126222#M6109</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2021-12-15T12:11:20Z</dc:date>
    </item>
  </channel>
</rss>

