File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1111import 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
1515BROKEN_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
2422with open ("./leaflet-providers-parsed.json" , "r" ) as f :
4947for 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 ]
Original file line number Diff line number Diff line change 22062206 ],
22072207 "html_attribution" : " Kaartgegevens © <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" : {
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}" ,
You can’t perform that action at this time.
0 commit comments