NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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's gravatar image

elad159
367710
accept rate: 0%

edited 20 Oct '15, 20:14

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


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.

permanent link

answered 20 Oct '15, 00:19

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

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

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×287
×106
×74

question asked: 20 Oct '15, 00:13

question was seen: 14,249 times

last updated: 23 Oct '15, 20:02

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum