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

revert MIN_ZOOM default value to 0 #93

Merged
merged 1 commit into from
Apr 17, 2015

Conversation

manelclos
Copy link
Contributor

I'm getting this error for points geometries:

Uncaught Error: Invalid LatLng object: (NaN, NaN) 

after this commit: c84a9a6

"minzoom" is set anyway, probably with undefined, and likely causing the error in Leaflet:
https://github.com/makinacorpus/django-leaflet/blob/master/leaflet/static/leaflet/leaflet.extras.js#L49

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) when pulling ee495c3 on manelclos:minzoom into e54a401 on makinacorpus:master.

@leplatrem
Copy link
Collaborator

IHMO, instead of manipulating defaults, I would probably prefer to avoid passing null values in Leaflet options here: https://github.com/makinacorpus/django-leaflet/blob/master/leaflet/static/leaflet/leaflet.extras.js#L49-L50

(my 2 cents)

@leplatrem leplatrem merged commit ee495c3 into makinacorpus:master Apr 17, 2015
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

Successfully merging this pull request may close these issues.

3 participants