首页 > 解决方案 > plotly scattermapbox 位置图钉示例 | 如何在 scattermapbox 中添加位置图钉

问题描述

我正在使用 scattermapbox 并且我正在使用标记 -> 圆圈,我需要使用谷歌地图中显示的位置图钉。你能提供一个应该使用什么符号的例子吗?

fig = go.Figure(go.Scattermapbox(
        lat=df["Latitude"],
        lon=df["Longitude"],
        mode='markers',
        marker=go.scattermapbox.Marker(
            size=10,
            color =  df['Size'],
            colorscale = scl# This is used to match the color scale
        ),
    ))

标签: pythongoogle-mapsmapsscatter-plot

解决方案


推荐阅读