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

Cannot read property 'Polyline #5

Open
BrunerChris opened this issue Oct 17, 2019 · 3 comments
Open

Cannot read property 'Polyline #5

BrunerChris opened this issue Oct 17, 2019 · 3 comments

Comments

@BrunerChris
Copy link

BrunerChris commented Oct 17, 2019

Running the Wrapped.Polyline example leads to UnCaught TypeError: Cannot read property 'Polyline' of undefined in the console.

@icarter09
Copy link

icarter09 commented Nov 1, 2019

@BrunerChris are you putting Leaflet within a script tag on index.html of your application? I experienced the same problem since I was using Leaflet through npm.

@BrunerChris
Copy link
Author

Yes I am putting Leaflet in a script tag on index. I am also using Leaflet through npm.

@kjrhody
Copy link

kjrhody commented May 15, 2020

Any updates on this? Having the same issue but with .Polygon. I have a Meteor site and am accessing Leaflet through several script tags in my index.html but they are CDN references and that works fine. Since this does not have a CDN I have to reference the file, and Meteor just can't find it regardless of the path. Not sure if something else is wrong. Any chance you could make this a CDN? Might solve the issues above too, if we could just reference it externally.

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