I just started to play with leaflet/geojson a little. But my coordinates are not rendered properly and I have no clue what is going on.
My coordinates are: 52.23943, 4.97599
. They work correct with the setView
function.
var map = L.map('leaflet_map').setView([52.23943, 4.97599], 15);
But using a geojasonFeature they are, hmmm, 'projected', somewhere east of Somalia.
var geojsonFeature = {
"type": "Feature",
"properties": {
"name": "Coors Field",
"amenity": "Baseball Stadium",
"popupContent": "This is where the Rockies play!"
},
"geometry": {
"type": "Point",
"coordinates": [52.23943, 4.97599]
}
};
var myLayer = L.geoJson().addTo(map);
myLayer.addData(geojsonFeature).bindPopup("I am a gjson point.");
Anyone who knows what is happening here?
EDIT
Out of pure curiosity, I changed the coordinates around [4.976143930893815,52.23925499011473]
and the point appears at its correct location. A known bug!?