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

NaN Error Radius #20

Closed
DrYSG opened this issue May 8, 2013 · 2 comments
Closed

NaN Error Radius #20

DrYSG opened this issue May 8, 2013 · 2 comments
Labels

Comments

@DrYSG
Copy link

DrYSG commented May 8, 2013

I upgraded to Leaflet 0.6 and the latest Locate control. I am getting a new type of error. On FireFox V20, I am finding that the error radius is NaN. So I am getting errors on creating the circle:

var locateControl = new L.control.locate({
    position: "topleft",
    drawCircle: true
});

If I turn off the drawCircle: false, I do get the correct location (with the marker, and with the tooltip saying that you are within NaN of this location).

I tried this again with Chrome v26, and I am getting that I am within 1200 meters.

The really odd thing is that your demo at http://domoritz.de/leaflet-locatecontrol/demo/ does work for me in FireFox, and it also says that I am withing 1200 meters.

I am testing on a desktop machine (win7).

@domoritz
Copy link
Owner

domoritz commented May 8, 2013

Thanks for reporting this. Since Leaflet 0.6 is not out yet, this might change. I'll wait for the final release and look into this issue then, If you have a fix for this problem, I'd be happy to merge it ;-)

The demo probably works because it is Leaflet 0.5.

@domoritz
Copy link
Owner

I'll close this because I can't reproduce this with 0.5. Once 0.6 is out, we should tests whether this error occurs.

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

No branches or pull requests

2 participants