plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

6.0.0: Usage of maplibre with mapstyle 'carto-positron' lacks street names

Open quikssb opened this issue 11 months ago • 0 comments

Updated plotly from 5.17 to 6.0.0. In that context I switched from scattermapbox to scattermap (maplibre rendering engine), as recommended. Mapstyle is carto-positron.

After doing this, maps on city scale started to show less street labels, see attached screenshots:

scattermapbox; old rendering engine scattermap; maplibre rendering engine

Code (using maplibre):

fig = go.Figure()
# [...]
fig.update_layout(
            # [...] other properties
            map_style="carto-positron",
            map = dict(
                zoom = 0,
                bounds = bounding_rect,
            ),
        )

Goal: I want to keep the map style, but also have street labels shown as before (without modifying the zoom of the map).

Question: What options do exist to achieve my goal?

quikssb avatar Feb 06 '25 09:02 quikssb