<?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: To add a feature layer on map with ES Modules in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-add-a-feature-layer-on-map-with-es-modules/m-p/1127251#M78627</link>
    <description>&lt;P&gt;Hi Valgenmap, this should be a question to the ArcGIS API for JavaScript Community&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/ct-p/arcgis-api-for-javascript" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/ct-p/arcgis-api-for-javascript&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you can achieve this by using esri-loader module&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { loadModules } from 'esri-loader';

const initMap = () =&amp;gt; {
      loadModules([
        "esri/Map",
        "esri/views/MapView"
      ])
        .then(([Map, MapView]) =&amp;gt; {

          const map = new Map({
            basemap: 'streets-night-vector',
          });
          const view = new MapView({
            container: "viewDiv",
            map,
            center: [-82.515401, 40.771119],
            zoom: 10,
        });
      })
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 18:05:22 GMT</pubDate>
    <dc:creator>RichardMoussopo</dc:creator>
    <dc:date>2021-12-17T18:05:22Z</dc:date>
    <item>
      <title>To add a feature layer on map with ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-add-a-feature-layer-on-map-with-es-modules/m-p/1060843#M78624</link>
      <description>&lt;P&gt;I wanted to build an example app using ReactJS and JS API 4.x&amp;nbsp; with ES Modules.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed few examples provided by ESRI as below,&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;A href="https://github.com/odoe/jsapi-react-template" target="_blank" rel="noopener"&gt;https://github.com/odoe/jsapi-react-template&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;A href="https://github.com/Esri/nearby-javascript" target="_blank" rel="noopener"&gt;https://github.com/Esri/nearby-javascript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;A href="https://github.com/odoe/esrijs4-vm-react" target="_blank" rel="noopener"&gt;https://github.com/odoe/esrijs4-vm-react&lt;/A&gt;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;&lt;A href="https://github.com/Esri/react-arcgis" target="_blank" rel="noopener"&gt;https://github.com/Esri/react-arcgis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I'm not able to get it, coz each one is following different approaches.&lt;/P&gt;&lt;P&gt;Even I tried by requesting a case with ESRI technical team, but I didn't received a proper solution.&lt;/P&gt;&lt;P&gt;So, can I get any exmaple source so that I can get clear knowledge How to add the Map and a FeatureLayer with ES Modules using React core and Reacthooks.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Valgen Map&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 05:48:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-add-a-feature-layer-on-map-with-es-modules/m-p/1060843#M78624</guid>
      <dc:creator>Valgenmap</dc:creator>
      <dc:date>2021-05-24T05:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: To add a feature layer on map with ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-add-a-feature-layer-on-map-with-es-modules/m-p/1061012#M78625</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/248401"&gt;@Valgenmap&lt;/a&gt;&amp;nbsp;! Have you seen this sample? It is the best and most recent one for working with the API's ES modules &amp;amp; React.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app" target="_blank" rel="noopener"&gt;ESM samples / jsapi-create-react-app&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Julie&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 16:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-add-a-feature-layer-on-map-with-es-modules/m-p/1061012#M78625</guid>
      <dc:creator>JuliePowell</dc:creator>
      <dc:date>2021-05-24T16:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: To add a feature layer on map with ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-add-a-feature-layer-on-map-with-es-modules/m-p/1061226#M78626</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2786"&gt;@JuliePowell&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, I had gone through with the sample provided by ESRI. But in that sample they are adding the map and layer through the portal id, so I didn't mention that in my first comment.&lt;/P&gt;&lt;P&gt;I need help to get&amp;nbsp; an idea in How to add the Map and&amp;nbsp; FeatureLayer&amp;nbsp;&lt;SPAN&gt;with ES Modules using React core and Reacthooks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ValgenMap&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 03:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-add-a-feature-layer-on-map-with-es-modules/m-p/1061226#M78626</guid>
      <dc:creator>Valgenmap</dc:creator>
      <dc:date>2021-05-25T03:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: To add a feature layer on map with ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-add-a-feature-layer-on-map-with-es-modules/m-p/1127251#M78627</link>
      <description>&lt;P&gt;Hi Valgenmap, this should be a question to the ArcGIS API for JavaScript Community&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/ct-p/arcgis-api-for-javascript" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/ct-p/arcgis-api-for-javascript&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you can achieve this by using esri-loader module&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { loadModules } from 'esri-loader';

const initMap = () =&amp;gt; {
      loadModules([
        "esri/Map",
        "esri/views/MapView"
      ])
        .then(([Map, MapView]) =&amp;gt; {

          const map = new Map({
            basemap: 'streets-night-vector',
          });
          const view = new MapView({
            container: "viewDiv",
            map,
            center: [-82.515401, 40.771119],
            zoom: 10,
        });
      })
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 18:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-add-a-feature-layer-on-map-with-es-modules/m-p/1127251#M78627</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2021-12-17T18:05:22Z</dc:date>
    </item>
  </channel>
</rss>

