How to require geojsonlayer.js in a webpack app
See original GitHub issuedojoRequire(['geojsonlayer.js']
is looking for geojsonlayer.js on a path on server. How to bundle this with webpack?
https://github.com/Esri/geojson-layer-js
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
GeoJSONLayer | ArcGIS Maps SDK for JavaScript 4.25
To create a GeoJSONLayer instance from a geojson feed, you must set the url property to the url of the geojson feed. require(["esri/layers/GeoJSONLayer"], ......
Read more >Building Web Apps Using Your GeoJSON, CSV, OGC Data
... easily be brought in as layers with the ArcGIS API for JavaScript. ... In this demo theater, we will build an application...
Read more >Google Maps and deck.gl GeoJsonLayer | Maps JavaScript API
This example visualizes recent earthquakes using the deck.gl GeoJsonLayer and a ScatterPlot of ... Git and Node.js are required to run this sample...
Read more >How to code-split GeoJSON layers for your MapBoxGL.js ...
A recent project required us to implement an interactive map of the United States with a custom counties layer. This is what we...
Read more >Using webpack for Custom Builds | ArcGIS API for JavaScript 4.9
You can build a deployable version of your app by running npm run build . This will take a little longer and build...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sounds good.
I should have mentioned in my original response that b/c geojsonlayer.js is a Dojo AMD module, it will not be “bundled with webpack.” What I’m proposing is that you configure Dojo to know how to be able to load it just like it loads the modules of the ArcGIS API.
@ahmadalibaloch I’m assuming you’ve resolved your issue and closing this for now. Feel free to re-open if needed.