openstreetmap - Map with rows in inverted order -
i download few tiles openstreetmap (only testing purpose). use fantastical leaflet javascript framework view interactive map, when open browser see horizontal (y) tiles images in inverted order. what's problem here ?? i'm doing wrong ??
here code (is simple enough):
<!doctype html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <link rel="stylesheet" href="css/core.css" /> <link rel="stylesheet" href="css/leaflet.css" /> <script src="js/leaflet.js"></script> </head> <body> <div id="map"></div> <script> var map = l.map('map').setview([-23.13, -82.38], 14); l.tilelayer('tiles/{z}/{x}/{y}.png', { minzoom: 12, maxzoom: 16, attribution: 'samplemap', tms: true }).addto(map); </script> </body> </html>
and resulting image (note rows inverted). expecting result row 1,2,3 , showed 3,2,1:
any appreciated.
the problem persist when use http://tile.osm.org/{z}/{x}/{y}.png
, i'm storing tiles in right way. solve problem quitting tms: true
line, read lot of tutorials using process off-line maps. expect helps else.
Comments
Post a Comment