question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to require geojsonlayer.js in a webpack app

See original GitHub issue

dojoRequire(['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:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tomwaysoncommented, Nov 10, 2017

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.

0reactions
tomwaysoncommented, Jan 18, 2018

@ahmadalibaloch I’m assuming you’ve resolved your issue and closing this for now. Feel free to re-open if needed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found