Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion malariagen_data/anoph/map_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def items(self):
""",
]

basemap_default: basemap = "mapnik"
basemap_default: basemap = "worldstreetmap"

height: TypeAlias = Annotated[
Union[int, str], "Height of the map in pixels (px) or other units."
Expand Down
6 changes: 5 additions & 1 deletion malariagen_data/anoph/sample_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,10 @@ def plot_samples_interactive_map(
if isinstance(width, int):
width = f"{width}px"

if basemap in ["mapnik", "positron"]:
raise ValueError(
f"Basemap {basemap!r} is not currently supported for interactive maps; try one of {['natgeoworldmap', 'opentopomap', 'satellite', 'worldimagery', 'worldstreetmap', 'worldtopomap']}"
)
# Load sample metadata.
df_samples = self.sample_metadata(
sample_sets=sample_sets,
Expand Down Expand Up @@ -1880,7 +1884,7 @@ def plot_sample_location_mapbox(

# Set the size of the markers.
fig.update_traces(marker=dict(size=marker_size))

fig.update_layout(map_style="carto-positron")
if show: # pragma: no cover
fig.show(renderer=renderer)
return fig
Expand Down
Loading