<?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: How to display WMS layers using ArcGIS Javascript API in MapView? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-wms-layers-using-arcgis-javascript/m-p/1203277#M78309</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;&amp;nbsp;I dont want it to be the basemap layer. I want to add it over a basemap&lt;BR /&gt;layer&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 15:12:59 GMT</pubDate>
    <dc:creator>RehanChaudhary</dc:creator>
    <dc:date>2022-08-16T15:12:59Z</dc:date>
    <item>
      <title>How to display WMS layers using ArcGIS Javascript API in MapView?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-wms-layers-using-arcgis-javascript/m-p/1203261#M78306</link>
      <description>&lt;P&gt;i am trying to display a WMS layer which is coming from a server. The WMS has multiple sublayers. I am using the sandbox for developing and testing the code for now. I am able to access the WMS on the SceneView but i cannot access it over the mapview. How can i configure my code to be able to view the map in 2D or in map view?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-wms" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-wms&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 14:10:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-wms-layers-using-arcgis-javascript/m-p/1203261#M78306</guid>
      <dc:creator>RehanChaudhary</dc:creator>
      <dc:date>2022-08-16T14:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to display WMS layers using ArcGIS Javascript API in MapView?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-wms-layers-using-arcgis-javascript/m-p/1203269#M78308</link>
      <description>&lt;P&gt;That sample sets the SpatialReference of the View, so when switching to the MapView, don't set the SpatialReference and let the view adopt the SR of the layer if it's the basemap layer.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 14:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-wms-layers-using-arcgis-javascript/m-p/1203269#M78308</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-08-16T14:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to display WMS layers using ArcGIS Javascript API in MapView?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-wms-layers-using-arcgis-javascript/m-p/1203277#M78309</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;&amp;nbsp;I dont want it to be the basemap layer. I want to add it over a basemap&lt;BR /&gt;layer&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-wms-layers-using-arcgis-javascript/m-p/1203277#M78309</guid>
      <dc:creator>RehanChaudhary</dc:creator>
      <dc:date>2022-08-16T15:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to display WMS layers using ArcGIS Javascript API in MapView?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-wms-layers-using-arcgis-javascript/m-p/1203317#M78311</link>
      <description>&lt;P&gt;This WMS service has WGS84 projection so it can only be displayed over basemaps that are in WGS84 or the MapView.spatialReference needs to be in wgs84.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const layer = new WMSLayer({
  url: "https://ows.terrestris.de/osm/service",
  sublayers: [{
    name: "OSM-WMS"
  }]
});

const map = new Map({
  basemap: new Basemap({
    portalItem: {
      id: "02b1f120c3674bfe896ac81731be1739"
    }
  }),
  layers: [layer]
});

const view = new MapView({
  container: "viewDiv",
  map: map
});&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Here are ArcGIS online basemaps that are in WGS84:&amp;nbsp;&lt;A href="https://www.arcgis.com/home/group.html?id=4c790318395940c18a16e8acd721de25&amp;amp;view=list&amp;amp;focus=maps-webmaps#content" target="_blank"&gt;https://www.arcgis.com/home/group.html?id=4c790318395940c18a16e8acd721de25&amp;amp;view=list&amp;amp;focus=maps-webmaps#content&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:29:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-wms-layers-using-arcgis-javascript/m-p/1203317#M78311</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-08-16T15:29:22Z</dc:date>
    </item>
  </channel>
</rss>

