Leaflet - Markers Not Showing
I am new to leaflet and am having an issue placing markers on a US map. Below is my snippet of my JSON file: [ { 'site_name': 'Chemical & Minerals Reclamation', 'city':
Solution 1:
Your markers are shown, but not at the position you expect.
In Leaflet, the coordinates order is [lat, lng]
, whereas in your code you have set:
L.marker([data.long, data.lat])
Live demo: https://plnkr.co/edit/UC6io0jPh9HJVoDAgJS1?p=preview
Post a Comment for "Leaflet - Markers Not Showing"