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 properties of undefined (reading 'lng') #2

Open
nakigoe opened this issue May 19, 2022 · 1 comment
Open

TypeError: Cannot read properties of undefined (reading 'lng') #2

nakigoe opened this issue May 19, 2022 · 1 comment

Comments

@nakigoe
Copy link

nakigoe commented May 19, 2022

I receive an error message
TypeError: Cannot read properties of undefined (reading 'lng')

for the following code (works OK without the plugin, but the circles ARE distorted)

pointToLayer : function(geoJsonPoint, latlng) {
        return new L.greatCircle(latlng, {
        radius: (Math.exp(geoJsonPoint.properties.mag/1.01-0.13))*4500 });
    }
@nuclearsecrecy
Copy link
Owner

I really would need to know exactly what is being passed to it to figure out what the issue is. (In some way, all it is indicating is that it isn't understanding the longitude of something, but it's impossible for me to know what is causing it from your code snippet.) Sorry.

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

2 participants