Skip to content Skip to sidebar Skip to footer

Leaflet Plugin Only Working When Geolocation Is Enabled

I am using leaflet with react-leaflet. OverpassLayer is working when geolocation is enabled. When Geolocation is blocked because I'm on localhost, the app isn't even entering the

Solution 1:

The issue is componentWillReceiveProps doesn't fire on the first render. I had to addLayer in the constructor as well.


Post a Comment for "Leaflet Plugin Only Working When Geolocation Is Enabled"