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

Adding additional tile suppliers #39

Open
wants to merge 2 commits 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
27 changes: 26 additions & 1 deletion mplleaflet/maptiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
'Map data (c) <a href="http://openstreetmap.org">OpenStreetMap</a> contributors'
)

osm_bw = (
'http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png',
'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
)

mapquest_open = (
'http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png',
'Map tiles by <a href="http://open.mapquest.com/">MapQuest</a> Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'
Expand Down Expand Up @@ -34,8 +39,24 @@
'Tiles &copy; Esri &mdash; Esri, HERE, DeLorme, Intermap, increment P Corp., GEBCO, USGS, FAO, NPS, NRCAN, GeoBase, IGN, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), swisstopo, MapmyIndia, &copy; OpenStreetMap contributors, GIS User Community'
)

stamen_toner = (
'http://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png',
'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
)

stamen_tonerbackground = (
'http://stamen-tiles-{s}.a.ssl.fastly.net/toner-background/{z}/{x}/{y}.png',
'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
)

stamen_tonerlite = (
'http://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png',
'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
)


stamen_wc = (
'http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.png',
'http://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png',
'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
)

Expand All @@ -47,10 +68,14 @@

tiles = {
'osm': osm,
'osm_bw': osm_bw,
'mapquest open': mapquest_open,
'mapbox bright': mapbox_bright,
'thunderforest_landscape': thunderforest_landscape,
'esri_aerial': esri_aerial,
'stamen_toner': stamen_toner,
'stamen_tonerbackground': stamen_tonerbackground,
'stamen_tonerlite': stamen_tonerlite,
'stamen_wc': stamen_wc,
'esri_natgeo': esri_natgeo,
'cartodb_positron': cartodb_positron,
Expand Down