<?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: Add a layer into ArcGIS map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-layer-into-arcgis-map/m-p/1541277#M85736</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/822510"&gt;@LakshanRasingolla&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The layer you are trying to add is from a cached &lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-map-service.htm" target="_self"&gt;MapService&lt;/A&gt;.&amp;nbsp; You have a couple options to add this layer to a map.&amp;nbsp; One and most performant way (taking advantage of the pre-made tiles) is to create a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html" target="_self"&gt;TileLayer&lt;/A&gt;, but in order to do this you will need a basemap in the spatial reference of the cached service, in this case WKID 26985 (Maryland NAD83) which may not be easy to find.&lt;/P&gt;
&lt;P&gt;Your second option would be to bring this in as a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html" target="_self"&gt;MapImageLayer&lt;/A&gt; which should reproject the data and show it on the map.&amp;nbsp; The third option would be to create a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html" target="_self"&gt;FeatureLayer&lt;/A&gt; from the `0` sublayer "&lt;A href="https://maps2.dcgis.dc.gov/dcgis/rest/services/ROWScan/MapServer/0&amp;quot;" target="_blank"&gt;https://maps2.dcgis.dc.gov/dcgis/rest/services/ROWScan/MapServer/0" &lt;/A&gt;for the Washington DC Boundary.&lt;/P&gt;
&lt;P&gt;Codepen that shows the three layers you can create from this service:&amp;nbsp;&lt;A href="https://codepen.io/sagewall/pen/qBeBabz" target="_blank"&gt;https://codepen.io/sagewall/pen/qBeBabz&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 12:02:50 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2024-09-23T12:02:50Z</dc:date>
    <item>
      <title>Add a layer into ArcGIS map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-layer-into-arcgis-map/m-p/1541185#M85731</link>
      <description>&lt;P&gt;I am trying to &lt;STRONG&gt;add the following layer&lt;/STRONG&gt; to my ArcGIS map developed using &lt;STRONG&gt;ArcGIS SDK for JavaScript (V4.30&lt;/STRONG&gt;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Layer:&amp;nbsp;&lt;A href="https://maps2.dcgis.dc.gov/dcgis/rest/services/ROWScan/MapServer" target="_self"&gt;https://maps2.dcgis.dc.gov/dcgis/rest/services/ROWScan/MapServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works correctly when I try using ArcGIS Online map viewer.&amp;nbsp; I need the &lt;STRONG&gt;ROWScan layer&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2024-09-22 192602.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/115615i108792B2ADB73D41/image-size/small?v=v2&amp;amp;px=200" role="button" title="Screenshot 2024-09-22 192602.png" alt="Screenshot 2024-09-22 192602.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is the expected result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2024-09-22 192008.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/115616iBFE1606C3804AADE/image-size/small?v=v2&amp;amp;px=200" role="button" title="Screenshot 2024-09-22 192008.png" alt="Screenshot 2024-09-22 192008.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add this as a feature layer which was not successful. Please explain the type of this layer and how to add this to the ArcGIS map using the SDK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2024 14:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-layer-into-arcgis-map/m-p/1541185#M85731</guid>
      <dc:creator>LakshanRasingolla</dc:creator>
      <dc:date>2024-09-22T14:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add a layer into ArcGIS map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-layer-into-arcgis-map/m-p/1541277#M85736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/822510"&gt;@LakshanRasingolla&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The layer you are trying to add is from a cached &lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-map-service.htm" target="_self"&gt;MapService&lt;/A&gt;.&amp;nbsp; You have a couple options to add this layer to a map.&amp;nbsp; One and most performant way (taking advantage of the pre-made tiles) is to create a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html" target="_self"&gt;TileLayer&lt;/A&gt;, but in order to do this you will need a basemap in the spatial reference of the cached service, in this case WKID 26985 (Maryland NAD83) which may not be easy to find.&lt;/P&gt;
&lt;P&gt;Your second option would be to bring this in as a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html" target="_self"&gt;MapImageLayer&lt;/A&gt; which should reproject the data and show it on the map.&amp;nbsp; The third option would be to create a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html" target="_self"&gt;FeatureLayer&lt;/A&gt; from the `0` sublayer "&lt;A href="https://maps2.dcgis.dc.gov/dcgis/rest/services/ROWScan/MapServer/0&amp;quot;" target="_blank"&gt;https://maps2.dcgis.dc.gov/dcgis/rest/services/ROWScan/MapServer/0" &lt;/A&gt;for the Washington DC Boundary.&lt;/P&gt;
&lt;P&gt;Codepen that shows the three layers you can create from this service:&amp;nbsp;&lt;A href="https://codepen.io/sagewall/pen/qBeBabz" target="_blank"&gt;https://codepen.io/sagewall/pen/qBeBabz&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 12:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-layer-into-arcgis-map/m-p/1541277#M85736</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-09-23T12:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add a layer into ArcGIS map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-layer-into-arcgis-map/m-p/1541812#M85754</link>
      <description>&lt;P&gt;Great work!&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 10:01:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-layer-into-arcgis-map/m-p/1541812#M85754</guid>
      <dc:creator>LakshanRasingolla</dc:creator>
      <dc:date>2024-09-24T10:01:41Z</dc:date>
    </item>
  </channel>
</rss>

