makinacorpus / Leaflet.FileLayer

Loads files locally (GeoJSON, KML, GPX) as layers using HTML5 File API
http://makinacorpus.github.io/Leaflet.FileLayer/
MIT License
273 stars 91 forks source link

Demo reverses lat longs? #5

Closed vagupta16 closed 11 years ago

vagupta16 commented 11 years ago

Just tried to upload a geojson file to the demo. Uploads fine, but my London locations seem to have been plotted off the Seychelles. I believe the lat/longs are being reversed.

leplatrem commented 11 years ago

Are you sure about your file ? Can you check it here for example : http://macwright.org/edit-geojson/ ? Thanks

vagupta16 commented 11 years ago

I apologize - it appears as if I parsed my dump of London locations to be (lat, long) instead of (long, lat). Thank you so much for pointing this out to me! :)

The lat/longs were reversed, and it was my fault!

leplatrem commented 11 years ago

No problem, I am closing this ! Don't hesitate to give your feedbacks about the plugin !