6.0.0: Usage of maplibre with mapstyle 'carto-positron' lacks street names
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Python example with Plotly 6.0.0, the maplibre renderer, and the carto-positron style, then compare it with the scattermapbox result and attached screenshots. The issue names no files or tests; done means retaining carto-positron while showing the expected street labels without changing the map zoom.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100