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:

tiles showed leaflet

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

Popular posts from this blog

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -

c++ - Warning : overflow in implicit constant conversion -