<?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 Can I use elevation service as a layer in the basemap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-elevation-service-as-a-layer-in-the/m-p/1020130#M71503</link>
    <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I am trying to use&amp;nbsp;&lt;A href="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer" target="_blank"&gt;https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer&lt;/A&gt;&amp;nbsp;as a layer in the basemap using the below code&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/Basemap",&lt;BR /&gt;"esri/layers/MapImageLayer",&lt;BR /&gt;"esri/layers/TileLayer",&lt;BR /&gt;"esri/layers/ElevationLayer"&lt;BR /&gt;], function (Map, MapView, Basemap, MapImageLayer, TileLayer,ElevationLayer) {&lt;BR /&gt;var map = new Map({&lt;BR /&gt;basemap: new Basemap({&lt;BR /&gt;baseLayers: [&lt;BR /&gt;new ElevationLayer({&lt;BR /&gt;url:&lt;BR /&gt;"&lt;A href="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer" target="_blank"&gt;https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer&lt;/A&gt;"&lt;BR /&gt;})&lt;BR /&gt;],&lt;BR /&gt;title: "basemap",&lt;BR /&gt;id: "basemap"&lt;BR /&gt;})&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above is not working and I get the below error in the console&lt;/P&gt;&lt;P&gt;Failed to create layerview for layer title:'Terrain', id:'1773f92f405-layer-0' of type 'elevation'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on how to get this to work is much appreciated&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 17:24:36 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-01-26T17:24:36Z</dc:date>
    <item>
      <title>Can I use elevation service as a layer in the basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-elevation-service-as-a-layer-in-the/m-p/1020130#M71503</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I am trying to use&amp;nbsp;&lt;A href="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer" target="_blank"&gt;https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer&lt;/A&gt;&amp;nbsp;as a layer in the basemap using the below code&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/Basemap",&lt;BR /&gt;"esri/layers/MapImageLayer",&lt;BR /&gt;"esri/layers/TileLayer",&lt;BR /&gt;"esri/layers/ElevationLayer"&lt;BR /&gt;], function (Map, MapView, Basemap, MapImageLayer, TileLayer,ElevationLayer) {&lt;BR /&gt;var map = new Map({&lt;BR /&gt;basemap: new Basemap({&lt;BR /&gt;baseLayers: [&lt;BR /&gt;new ElevationLayer({&lt;BR /&gt;url:&lt;BR /&gt;"&lt;A href="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer" target="_blank"&gt;https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer&lt;/A&gt;"&lt;BR /&gt;})&lt;BR /&gt;],&lt;BR /&gt;title: "basemap",&lt;BR /&gt;id: "basemap"&lt;BR /&gt;})&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above is not working and I get the below error in the console&lt;/P&gt;&lt;P&gt;Failed to create layerview for layer title:'Terrain', id:'1773f92f405-layer-0' of type 'elevation'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on how to get this to work is much appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 17:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-elevation-service-as-a-layer-in-the/m-p/1020130#M71503</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-26T17:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use elevation service as a layer in the basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-elevation-service-as-a-layer-in-the/m-p/1020176#M71504</link>
      <description>&lt;P&gt;You have to use a tiled layer in an ElevationLayer. The specific service you want to use is not a tiled layer.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 18:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-elevation-service-as-a-layer-in-the/m-p/1020176#M71504</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-01-26T18:47:39Z</dc:date>
    </item>
  </channel>
</rss>

