Skip to content Skip to sidebar Skip to footer

Importing Geojson Into Leaflet With Coordinates N Crs Epsg:3857

Please bear with me as I am fairly new to this whole maps things I have a geojson file with the coordinates given in the epsg:3857 format {'name':'2011','type':'FeatureCollection'

Solution 1:

You should convert the coordinates before you import them with L.geojson. Find an algorithm that does this conversion, create a parser for your geoJSON and generate a new one with the converted coordinates. Then load them with L.geoJson.

Of course you should do this on the server side, but if you only have the geoJSON file than this is the way.

Solution 2:

Upload your geo-file in QGIS and then switch the projection to projection is EPSG:3857. Re-save the geo-file in geoJson,

Post a Comment for "Importing Geojson Into Leaflet With Coordinates N Crs Epsg:3857"