You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to use only a subset of the icons found on https://labs.mapbox.com/maki-icons/. When I use "bus" or "embasssy" as the symbol, I see the icon without issue. When I change the symbol to "home" or "wheelchair", the icon is not rendered. It's as though only a subset of the mapbox icons are actually available. An excerpt from my code is copied below. This is intended to show a "wheelchair" icon, but it does not appear to work.
I found a solutions for this. Plotly/Dash uses the Maki icon set made by mapbox icons. Most of the icons in this icon set are not loaded into the default themes in mapbox such as monochrome. I was able to get icons other than circle to work by editing the theme I was using in mapbox studio by dragging the .svgs from the maki icon set into the browser window and then publishing the theme changes. After waiting for about 10 mins I was able to set and see icons other than the circle.
The graph provided in the link provided by @nicolaskruchten renders just fine with my mapbox token. However, if y change the "airport" icon to "cross", the cross is not rendered. See also this discussion on the plotly forums.
@BerserkerGaruk How did you import your custom style after publishing? I can't find any documentation around importing custom styles from MapBox Studio.
@gvwilson Do you have an estimate for when this might get addressed?
Activity
theGreatRaphael commentedon Dec 10, 2019
I'm facing the same problem right now.
The icon
hearte. g. is also not working.Joel-Wong0794 commentedon May 18, 2020
Hi,
Has anyone found a solution? I am only able to plot points when I set symbol = "circle".
mindless-bureaucrat commentedon Jul 20, 2020
Same for me. I'm not connecting to a mapbox server, instead using WMS basemaps. Could that be the problem?
BerserkerGaruk commentedon Aug 28, 2020
I found a solutions for this. Plotly/Dash uses the Maki icon set made by mapbox icons. Most of the icons in this icon set are not loaded into the default themes in mapbox such as monochrome. I was able to get icons other than circle to work by editing the theme I was using in mapbox studio by dragging the .svgs from the maki icon set into the browser window and then publishing the theme changes. After waiting for about 10 mins I was able to set and see icons other than the circle.
khurramkhalil commentedon Apr 27, 2022
I am facing the exact same problem right now.
The icon airport/airfield etc. are not working.
nicolaskruchten commentedon Apr 27, 2022
It's important to note that the special icon symbols only work when using a Mapbox-provided style, per the documentation: https://plotly.com/python/scattermapbox/#set-marker-symbols
AIMPED commentedon Mar 12, 2024
Hey there,
The graph provided in the link provided by @nicolaskruchten renders just fine with my mapbox token. However, if y change the "airport" icon to "cross", the cross is not rendered. See also this discussion on the plotly forums.
https://community.plotly.com/t/scattermapbox-marker-symbol/82957
gvwilson commentedon Aug 12, 2024
@archmoj will this be addressed by your recent work?
amctier-i360 commentedon Sep 5, 2024
@BerserkerGaruk How did you import your custom style after publishing? I can't find any documentation around importing custom styles from MapBox Studio.
@gvwilson Do you have an estimate for when this might get addressed?
emilykl commentedon Aug 31, 2026
This issue is resolved with the addition of new Map traces (which use MapLibre) first added in plotly.py v5.24.0, which replace the Mapbox traces.
Also, the Maki Icons version used by plotly was recently updated from v2 to v8, which should resolve any remaining issues with missing icons.
In plotly.py v7.0.0, the following code (based on this example from the community forum):
Show code
produces a map showing all the icons (you need to zoom in and pan around to see them all):