Tag Info

Hot answers tagged


This is the answer. Sometimes you have to go through all the process of asking a question to understand the solution. JavaScript: /** * Converts spherical web mercator to tile pixel X/Y at zoom level 0 * for 256x256 tile size and inverts y coordinates. * * @param {L.point} p Leaflet point in EPSG:3857 * @return {L.point} Leaflet point with tile pixel ...


I'v found explanation here: https://help.openstreetmap.org/questions/13250/what-is-the-correct-projection-i-should-use-with-mapnik? And solved the issue by setting "input" srs-attribute for layer: <Layer srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" name="land"> And "output" srs for map: <Map srs="+proj=merc +a=6378137 +b=6378137 ...

Only top voted, non community-wiki answers of a minimum length are eligible