<?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: Using Nearmap API WebTile as Basemap in ArcGIS API 3.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-nearmap-api-webtile-as-basemap-in-arcgis-api/m-p/1053824#M72845</link>
    <description>&lt;P&gt;var map;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt;'esri/basemaps',&lt;BR /&gt;'esri/map',&lt;BR /&gt;'esri/layers/WebTiledLayer',&lt;BR /&gt;'esri/dijit/BasemapLayer',&lt;BR /&gt;'esri/dijit/Basemap',&lt;BR /&gt;'esri/layers/ArcGISTiledMapServiceLayer',&lt;BR /&gt;'dojo/dom',&lt;/P&gt;&lt;P&gt;'dojo/domReady!',&lt;BR /&gt;], function (&lt;BR /&gt;esriBasemaps,&lt;BR /&gt;Map,&lt;BR /&gt;WebTiledLayer,&lt;BR /&gt;BasemapLayer,&lt;BR /&gt;Basemap,&lt;BR /&gt;ArcGISTiledMapServiceLayer,&lt;BR /&gt;dom&lt;BR /&gt;) {&lt;/P&gt;&lt;P&gt;var nearmapTiledLayer = new WebTiledLayer(&lt;BR /&gt;'&lt;A href="https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY" target="_blank"&gt;https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY&lt;/A&gt;',&lt;BR /&gt;{&lt;BR /&gt;copyright: 'Nearmap',&lt;BR /&gt;id: 'nearmap',&lt;BR /&gt;}&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;var nearmapBasemapLayer = new BasemapLayer({&lt;BR /&gt;type: 'WebTiledLayer',&lt;BR /&gt;url:&lt;BR /&gt;'&lt;A href="https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY" target="_blank"&gt;https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY&lt;/A&gt;',&lt;BR /&gt;copyright: 'Nearmap',&lt;BR /&gt;id: 'nearmap',&lt;BR /&gt;//subDomains: ['0', '1', '2', '3'],&lt;BR /&gt;});&lt;BR /&gt;var nearmapBasemap = new Basemap({&lt;BR /&gt;id: 'nearmap',&lt;BR /&gt;layers: [nearmapBasemapLayer],&lt;BR /&gt;title: 'Nearmap',&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;esriBasemaps.nearmap = {&lt;BR /&gt;baseMapLayers: [nearmapBasemap],&lt;BR /&gt;thumbnailUrl: '',&lt;BR /&gt;title: 'Nearmap',&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;map = new Map('mapDiv', {&lt;BR /&gt;center: [-83.070543, 39.86905],&lt;BR /&gt;basemap: 'nearmap',&lt;BR /&gt;zoom: 14,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//map.addLayer(nearmapTiledLayer);&lt;BR /&gt;});&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 15:56:18 GMT</pubDate>
    <dc:creator>RichardMoussopo</dc:creator>
    <dc:date>2021-05-03T15:56:18Z</dc:date>
    <item>
      <title>Using Nearmap API WebTile as Basemap in ArcGIS API 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-nearmap-api-webtile-as-basemap-in-arcgis-api/m-p/1053819#M72844</link>
      <description>&lt;P&gt;I am using the &lt;STRONG&gt;API version 3.36&lt;/STRONG&gt; and trying to use the&amp;nbsp;&lt;SPAN&gt;WebTiledLayer as basemap. what I have tried so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;1. Adding Nearmap WebTiledLayer directly works&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var nearmapTiledLayer = new WebTiledLayer(&lt;BR /&gt;'&lt;A href="https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY" target="_blank" rel="noopener"&gt;https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY&lt;/A&gt;',&lt;BR /&gt;{&lt;BR /&gt;copyright: 'Nearmap',&lt;BR /&gt;id: 'nearmap',&lt;BR /&gt;}&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;map.addLayer(nearmapTiledLayer);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Setting WebTiledLayer as basemap: Fails&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;esriBasemaps.nearmap = {&lt;BR /&gt;baseMapLayers: [nearmapTiledLayer],&lt;BR /&gt;thumbnailUrl: '',&lt;BR /&gt;title: 'Nearmap',&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;this throws 400 error code&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardMoussopo_0-1620056420471.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12414i37006175944FD44C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardMoussopo_0-1620056420471.png" alt="RichardMoussopo_0-1620056420471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. I have also tried the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var nearmapTileLayer = new BasemapLayer({&lt;BR /&gt;type: 'WebTiledLayer',&lt;BR /&gt;url:&lt;BR /&gt;'&lt;A href="https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY" target="_blank" rel="noopener"&gt;https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY&lt;/A&gt;',&lt;BR /&gt;copyright: 'Nearmap',&lt;BR /&gt;id: 'nearmap'&lt;BR /&gt;});&lt;BR /&gt;var nearmapBasemap = new Basemap({&lt;BR /&gt;id: 'nearmap',&lt;BR /&gt;layers: [nearmapTileLayer],&lt;BR /&gt;title: 'Nearmap',&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;esriBasemaps.nearmap = {&lt;BR /&gt;baseMapLayers: [nearmapBasemap],&lt;BR /&gt;title: 'Nearmap',&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;And this throws the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardMoussopo_1-1620056640190.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12415i9C0CC6D5219BA0DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardMoussopo_1-1620056640190.png" alt="RichardMoussopo_1-1620056640190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 15:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-nearmap-api-webtile-as-basemap-in-arcgis-api/m-p/1053819#M72844</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2021-05-03T15:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Nearmap API WebTile as Basemap in ArcGIS API 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-nearmap-api-webtile-as-basemap-in-arcgis-api/m-p/1053824#M72845</link>
      <description>&lt;P&gt;var map;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt;'esri/basemaps',&lt;BR /&gt;'esri/map',&lt;BR /&gt;'esri/layers/WebTiledLayer',&lt;BR /&gt;'esri/dijit/BasemapLayer',&lt;BR /&gt;'esri/dijit/Basemap',&lt;BR /&gt;'esri/layers/ArcGISTiledMapServiceLayer',&lt;BR /&gt;'dojo/dom',&lt;/P&gt;&lt;P&gt;'dojo/domReady!',&lt;BR /&gt;], function (&lt;BR /&gt;esriBasemaps,&lt;BR /&gt;Map,&lt;BR /&gt;WebTiledLayer,&lt;BR /&gt;BasemapLayer,&lt;BR /&gt;Basemap,&lt;BR /&gt;ArcGISTiledMapServiceLayer,&lt;BR /&gt;dom&lt;BR /&gt;) {&lt;/P&gt;&lt;P&gt;var nearmapTiledLayer = new WebTiledLayer(&lt;BR /&gt;'&lt;A href="https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY" target="_blank"&gt;https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY&lt;/A&gt;',&lt;BR /&gt;{&lt;BR /&gt;copyright: 'Nearmap',&lt;BR /&gt;id: 'nearmap',&lt;BR /&gt;}&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;var nearmapBasemapLayer = new BasemapLayer({&lt;BR /&gt;type: 'WebTiledLayer',&lt;BR /&gt;url:&lt;BR /&gt;'&lt;A href="https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY" target="_blank"&gt;https://api.nearmap.com/tiles/v3/Vert/{z}/{x}/{y}.jpg?apikey=MY_NEARMAP_API_KEY&lt;/A&gt;',&lt;BR /&gt;copyright: 'Nearmap',&lt;BR /&gt;id: 'nearmap',&lt;BR /&gt;//subDomains: ['0', '1', '2', '3'],&lt;BR /&gt;});&lt;BR /&gt;var nearmapBasemap = new Basemap({&lt;BR /&gt;id: 'nearmap',&lt;BR /&gt;layers: [nearmapBasemapLayer],&lt;BR /&gt;title: 'Nearmap',&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;esriBasemaps.nearmap = {&lt;BR /&gt;baseMapLayers: [nearmapBasemap],&lt;BR /&gt;thumbnailUrl: '',&lt;BR /&gt;title: 'Nearmap',&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;map = new Map('mapDiv', {&lt;BR /&gt;center: [-83.070543, 39.86905],&lt;BR /&gt;basemap: 'nearmap',&lt;BR /&gt;zoom: 14,&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//map.addLayer(nearmapTiledLayer);&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 15:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-nearmap-api-webtile-as-basemap-in-arcgis-api/m-p/1053824#M72845</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2021-05-03T15:56:18Z</dc:date>
    </item>
  </channel>
</rss>

