leaflet-webgl-heatmap icon indicating copy to clipboard operation
leaflet-webgl-heatmap copied to clipboard

TypeError: Cannot read property 'extend' of undefined

Open pika89 opened this issue 8 years ago • 12 comments

Hello, im trying to use your plugin on an ionic app thats using leaflet.js and openstreetmap. I am getting an error:

TypeError: Cannot read property 'extend' of undefined

Could you help me with this?

pika89 avatar Oct 25 '17 15:10 pika89

Is the leaflet library loaded? Can you see a line number or a screenshot of the error?

bozdoz avatar Oct 25 '17 16:10 bozdoz

Hi, thank you for answering, heres a screen shot of the error: screenshot_1 Yes the leaflet library is loaded screenshot_2 screenshot_3 Heres another screenshot of the error: screenshot_4

pika89 avatar Oct 26 '17 08:10 pika89

What's your Leaflet version?

bozdoz avatar Oct 26 '17 10:10 bozdoz

My leaflet version is 0.7.7

pika89 avatar Oct 26 '17 11:10 pika89

Ok it is no longer showing this error when i switched to 1.2.0 version but when i follow this example here: http://tombatossals.github.io/angular-leaflet-directive/examples/0000-viewer.html#/layers/webgl-heatmap-example , i don't see Heatmap in the overlay or on the map at all?

pika89 avatar Oct 26 '17 12:10 pika89

Do you see the heatmap in the link you sent? Is it just in your own local example that you can't see it?

bozdoz avatar Oct 26 '17 14:10 bozdoz

In the example i can see the heatmap, in my local example i can't

pika89 avatar Oct 26 '17 14:10 pika89

Any new errors?

bozdoz avatar Oct 26 '17 15:10 bozdoz

I'm getting these 2: DevTools failed to parse SourceMap: http://localhost:3000/bower_components/ui-leaflet-layers/dist/ui-leaflet-layers.js.map and angular.js:14199 [AngularJS - Leaflet] A layer must have a valid type defined

pika89 avatar Oct 27 '17 09:10 pika89

Sorry, it looks like this is now beyond my expertise. I'm not familiar enough with AngularJS.

I can say it looks like it can't find a source map for a javascript file (which seems ridiculous), and is possibly related to a different plugin (ui-leaflet-layers)?

bozdoz avatar Oct 27 '17 16:10 bozdoz

Yeah i've tried looking further into this but i haven't actually found anything related to my problem, i'm still not sure what's the problem. I've tried reinstalling all the plugins with bower and getting the updated versions but the issue still persists.

pika89 avatar Oct 30 '17 08:10 pika89

I am also having the exact same issue with 0.7.7. Need to be able to use 0.7.7 for angular-leaflet-directive.

idanielsteven avatar Mar 30 '18 21:03 idanielsteven