timwis / leaflet-choropleth

Choropleth plugin for Leaflet (color scale based on value)
http://timwis.com/leaflet-choropleth/examples/basic
MIT License
182 stars 233 forks source link

var L = require('leaflet') is not defined #27

Closed soli004 closed 6 years ago

soli004 commented 6 years ago

Trying to use the leaflet plugin but I get errors at" choropleth.js:1" Uncaught ReferenceError: require choropleth.js:1 is not defined. Error shows up here "var L = require('leaflet')".

I have no clue why. I am using chrome with the developer tools printscreen 2018-01-01 kl 22 01 08

Thanks

timwis commented 6 years ago

Are you using browserify/webpack or just a <script> tag? If the latter, make sure you're pointing to the version inside dist/ not src/.

soli004 commented 6 years ago

Yes from a Githubissues.

  • Githubissues is a development platform for aggregating issues.