Skip to content

Commit

Permalink
ENH: NAV-180 - Change map background to CartoDB Positron
Browse files Browse the repository at this point in the history
  • Loading branch information
munterfi committed Sep 13, 2024
1 parent bf0114c commit eeec216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public_transit_viewer/pages/isolines.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
break

source_coordinates = source_stop.coordinate.to_tuple()
m = folium.Map(location=source_coordinates, zoom_start=zoom) # type: ignore
m = folium.Map(location=source_coordinates, zoom_start=zoom, tiles="CartoDB positron") # type: ignore

# add marker to source coordinate
folium.Marker(source_coordinates, tooltip="Source").add_to(m) # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion public_transit_viewer/utils/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def show_map(connection: Connection):
zoom = zoom_factors[distance_threshold]
break

m = folium.Map(location=centroid, zoom_start=zoom)
m = folium.Map(location=centroid, zoom_start=zoom, tiles="CartoDB positron")

marker_label = (
connection.from_stop.name
Expand Down

0 comments on commit eeec216

Please sign in to comment.