in purpose to understand better the ability to work offline with leaflet i need to know couple of things. first i need to know what does it mean : 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}' i understand that this is the url template which provides the tiles, but how does it work . which type of file it provides . what the z,x,y represent. second can someone direct to me to way of getting tiles which suits to leaflet api. asked 20 Oct '15, 00:13 elad159 aseerel4c26 ♦ |
There's nobody who provides unlimited free tiles for downloading and using offline. You can get away with downloading small quantities of tiles from public tile servers using any tile downloader software but you will be blocked if you download larger areas because you're violating their usage policies. You have to understand the difference between free data (OSM data is free for the taking - you can download everything in one large file) and free services (producing and distributing tiles costs CPU time and bandwidth and these things are not free). Leaflet will be able to consume standard tile sources with z/x/y tile layout from the local disk. See the Wiki for details about the layout. answered 20 Oct '15, 00:19 Frederik Ramm ♦ okay so lets sum it up , tiles sources z/x/y is explained in the wiki. but about the OSM data i dont get it , can i download it from osm , and make it suitable to load up on leaflet. i believe that i have not understand it well yet..
(20 Oct '15, 00:26)
elad159
1
(20 Oct '15, 00:38)
SomeoneElse ♦
i found this site http://download.geofabrik.de/ as a tiles providers, but still my biggest misunderstanding is about the type of file/image suitable using the slippy maps. i get to know that the slippy map is a png. "Each zoom level is a directory, each column is a subdirectory, and each tile in that column is a file" okay but how i make it by my own... i really get messed here, hope someone could help get out this troubles..
(20 Oct '15, 11:55)
elad159
1
@elad159 - read https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ . That explains what you need to do to generate the tiles that you are interested in.
(20 Oct '15, 12:28)
SomeoneElse ♦
1
i think i got it finally... i will try it later with the server configuration. thank you very much @SomeoneElse !!
(20 Oct '15, 12:31)
elad159
@SomeoneElse @Fredrick Ramm
(23 Oct '15, 20:02)
elad159
showing 5 of 6
show 1 more comments
|