Using GeoJsonLayer in react with esri-loader

433
1
04-16-2021 02:10 AM
particular
New Contributor

I'm trying to use esri-loader in react but can't seem to get hold of "GeoJsonLayer"

In  the browser console it says a 404 for it 

(index):52 GET https://js.arcgis.com/4.18/esri/layers/GeoJsonLayer.js net::ERR_ABORTED 404

 

Like this 

loadModules(['esri/Map''esri/views/MapView''esri/layers/GeoJsonLayer'])
        .then(([ArcGISMapMapViewGeoJsonLayer]) => {

 

Here's my code

https://github.com/parameter/navdock_map/blob/master/client/src/App.js

0 Kudos
1 Reply
particular
New Contributor

Sorry. I tried to remove it. 

It was a missspelling! 

0 Kudos