Skip to content

Commit da06ff9

Browse files
authored
add providers: stamen-toner-lite, carto-nolables, carto-darknolabels (#13)
Add providers: stamen-toner-lite, carto-nolables, carto-darknolabels
1 parent e26d89d commit da06ff9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

staticmaps/tile_provider.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ def url(self, zoom: int, x: int, y: int) -> typing.Optional[str]:
7373
max_zoom=20,
7474
)
7575

76+
tile_provider_StamenTonerLite = TileProvider(
77+
"stamen-toner-lite",
78+
url_pattern="http://$s.tile.stamen.com/toner-lite/$z/$x/$y.png",
79+
shards=["a", "b", "c", "d"],
80+
attribution="Maps (C) Stamen, Data (C) OpenStreetMap.org contributors",
81+
max_zoom=20,
82+
)
83+
7684
tile_provider_ArcGISWorldImagery = TileProvider(
7785
"arcgis-worldimagery",
7886
url_pattern="https://server.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/$z/$y/$x",
@@ -81,6 +89,22 @@ def url(self, zoom: int, x: int, y: int) -> typing.Optional[str]:
8189
max_zoom=24,
8290
)
8391

92+
tile_provider_CartoNoLabels = TileProvider(
93+
"carto_nolabels",
94+
url_pattern="http://$s.basemaps.cartocdn.com/rastertiles/light_nolabels/$z/$x/$y.png",
95+
shards=["a", "b", "c", "d"],
96+
attribution="Maps (C) CARTO (C) OpenStreetMap.org contributors",
97+
max_zoom=20,
98+
)
99+
100+
tile_provider_CartoDarkNoLabels = TileProvider(
101+
"carto_darknolabels",
102+
url_pattern="http://$s.basemaps.cartocdn.com/rastertiles/dark_nolabels/$z/$x/$y.png",
103+
shards=["a", "b", "c", "d"],
104+
attribution="Maps (C) CARTO (C) OpenStreetMap.org contributors",
105+
max_zoom=20,
106+
)
107+
84108
tile_provider_None = TileProvider(
85109
"none",
86110
url_pattern="",
@@ -92,6 +116,9 @@ def url(self, zoom: int, x: int, y: int) -> typing.Optional[str]:
92116
tile_provider_OSM.name(): tile_provider_OSM,
93117
tile_provider_StamenTerrain.name(): tile_provider_StamenTerrain,
94118
tile_provider_StamenToner.name(): tile_provider_StamenToner,
119+
tile_provider_StamenTonerLite.name(): tile_provider_StamenTonerLite,
95120
tile_provider_ArcGISWorldImagery.name(): tile_provider_ArcGISWorldImagery,
121+
tile_provider_CartoNoLabels.name(): tile_provider_CartoNoLabels,
122+
tile_provider_CartoDarkNoLabels.name(): tile_provider_CartoDarkNoLabels,
96123
tile_provider_None.name(): tile_provider_None,
97124
}

0 commit comments

Comments
 (0)