Skip to content

Commit ddc52bb

Browse files
authored
PRO: remove broken markers (#90)
1 parent 5fb2586 commit ddc52bb

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

provider_sources/_compress_providers.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@
1111
import warnings
1212

1313
# list of providers known to be broken and should be marked as broken in the JSON
14-
# last update: 8 Aug 2021
14+
# last update: 3 Sep 2021
1515
BROKEN_PROVIDERS = [
1616
"OpenPtMap", # service doesn't exist anymore
1717
"Hydda.Full", # down https://github.com/leaflet-extras/leaflet-providers/issues/351
1818
"Hydda.Base",
1919
"Hydda.RoadsAndLabels",
20-
"nlmaps.luchtfoto", # service phased out
21-
"NASAGIBS.ModisTerraSnowCover", # not sure why but doesn't work
2220
]
2321

2422
with open("./leaflet-providers-parsed.json", "r") as f:
@@ -49,8 +47,8 @@
4947
for key, val in xyz.items():
5048
if key in leaflet:
5149
if any(
52-
isinstance(i, dict) for i in leaflet[key].values()
53-
): # for related group of bunch
50+
isinstance(i, dict) for i in leaflet[key].values()
51+
): # for related group of bunch
5452
leaflet[key].update(xyz[key])
5553
else:
5654
leaflet[key] = xyz[key]

xyzservices/data/providers.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,8 +2206,7 @@
22062206
],
22072207
"html_attribution": "Kaartgegevens &copy; <a href=\"https://www.kadaster.nl\">Kadaster</a>",
22082208
"attribution": "Kaartgegevens (C) Kadaster",
2209-
"name": "nlmaps.luchtfoto",
2210-
"status": "broken"
2209+
"name": "nlmaps.luchtfoto"
22112210
}
22122211
},
22132212
"NASAGIBS": {
@@ -2321,8 +2320,7 @@
23212320
"tilematrixset": "GoogleMapsCompatible_Level",
23222321
"variant": "MODIS_Terra_NDSI_Snow_Cover",
23232322
"opacity": 0.75,
2324-
"name": "NASAGIBS.ModisTerraSnowCover",
2325-
"status": "broken"
2323+
"name": "NASAGIBS.ModisTerraSnowCover"
23262324
},
23272325
"ModisTerraAOD": {
23282326
"url": "https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}{max_zoom}/{z}/{y}/{x}.{format}",

0 commit comments

Comments
 (0)