Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'extend' of undefined #23

Open
pika89 opened this issue Oct 25, 2017 · 12 comments
Open

TypeError: Cannot read property 'extend' of undefined #23

pika89 opened this issue Oct 25, 2017 · 12 comments

Comments

@pika89
Copy link

pika89 commented Oct 25, 2017

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?

@bozdoz
Copy link
Contributor

bozdoz commented Oct 25, 2017

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

@pika89
Copy link
Author

pika89 commented Oct 26, 2017

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

@bozdoz
Copy link
Contributor

bozdoz commented Oct 26, 2017

What's your Leaflet version?

@pika89
Copy link
Author

pika89 commented Oct 26, 2017

My leaflet version is 0.7.7

@pika89
Copy link
Author

pika89 commented Oct 26, 2017

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?

@bozdoz
Copy link
Contributor

bozdoz commented Oct 26, 2017

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

@pika89
Copy link
Author

pika89 commented Oct 26, 2017

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

@bozdoz
Copy link
Contributor

bozdoz commented Oct 26, 2017

Any new errors?

@pika89
Copy link
Author

pika89 commented Oct 27, 2017

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

@bozdoz
Copy link
Contributor

bozdoz commented Oct 27, 2017

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)?

@pika89
Copy link
Author

pika89 commented Oct 30, 2017

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.

@idanielsteven
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants