Add bus whitelist, route exclusions, crow-fly shape filter, and KML export #2

Open
marvin wants to merge 16 commits from add-kml-export-and-bus-filtering into master
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 169edee227 - Show all commits
+1 -1
View File
@@ -67,7 +67,7 @@ mask:
color: white
basemap:
provider: OpenStreetMap.Mapnik
provider: Esri.WorldGrayCanvas
zoom: 14
labels:
+3 -2
View File
@@ -28,7 +28,7 @@ from affine import Affine
from adjustText import adjust_text
from scipy.ndimage import distance_transform_edt
from _common import CONFIG, OUTPUT, PROCESSED
from _common import CONFIG, OUTPUT, PROCESSED, UA
TARGET_CRS = "EPSG:3857"
@@ -97,7 +97,8 @@ def add_basemap(ax, styling, zoom=None):
for part in provider.split("."):
src = getattr(src, part)
cx.add_basemap(ax, crs=TARGET_CRS, source=src, zoom=zoom,
attribution=False, zorder=0)
attribution=False, zorder=0,
headers={"User-Agent": UA})
return True
except Exception as e:
print(f" [basemap] unavailable ({e}); using plain background", flush=True)