Nicolas Grenier
Nicolas Grenier

Reputation: 21

leaflet coordinates not working

Leaflet Maps Images

KML:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>

<Placemark>
  <name>10 Downing Street</name>
  <description>Test</description>
  <Point>
    <coordinates>45.7251809,-75.0467511,0</coordinates>
  </Point>
</Placemark>

</Document>
</kml>

Why the point is not showing at the exact LAT/LONG, it show on top of the leaflet map...

Google map show the correct lat Google Maps

Upvotes: 1

Views: 856

Answers (1)

Nicolas Grenier
Nicolas Grenier

Reputation: 21

I just figured that Leaflet KML coordinates is LNG, LAT and not LAT, LNG

Switching coordinates made it all work

Upvotes: 1

Related Questions