Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.rst update tile.osm.org to new format #1442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions docs/cookbook/osm/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The following code shows how to change the config settings to add an additional
"type": "BaseMap",
"baseType": "XYZ",
"provider": "OSM",
"url": "//c.tile.openstreetmap.org/{z}/{x}/{y}.png",
"url": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
"minZoom": 2,
"maxZoom": 19,
"projection": "EPSG:3857",
Expand Down Expand Up @@ -79,7 +79,7 @@ If your provider supports multiple URLs (which is the case for most OSM styles),
"type": "BaseMap",
"baseType": "XYZ",
"provider": "OSM",
"urls": ["//a.tile.openstreetmap.org/{z}/{x}/{y}.png",
"urls": ["https://tile.openstreetmap.org/{z}/{x}/{y}.png",
"//b.tile.openstreetmap.org/{z}/{x}/{y}.png",
"//c.tile.openstreetmap.org/{z}/{x}/{y}.png"],
"minZoom": 2,
Expand All @@ -94,8 +94,6 @@ If your provider supports multiple URLs (which is the case for most OSM styles),
}
}

Another way to express that is :code:`//{a-c}.tiles.example.com/osm/{z}/{x}/{y}.png`, where the :code:`{a-c}` part will be expanded. You can use single letter (upper or lower case) or single number ranges (e.g. :code:`{0-4}`) as appropriate to your server naming.

Other important values are the :code:`minZoom` and :code:`maxZoom` values, which specify the zoom levels that OpenSphere will show this base map at. Different OSM tile servers will support different zoom levels (e.g. the Humanitarian style is provided to zoom level 20).

You can also set up your own tile server, using the same system that OSM uses - see `switch2osm <https://switch2osm.org/serving-tiles/>`_ or a more general server like `GeoServer <http://docs.geoserver.org/latest/en/user/geowebcache/index.html>`_ .
Expand Down