【问题标题】:Is is possible to reference mapbox maki-icons in plotly scattermapbox?是否可以在 plotly scattermapbox 中引用 mapbox maki-icons?
【发布时间】:2020-12-01 07:23:11
【问题描述】:

似乎可用于 scattermapbox 的图标列表是有限的。我正在尝试使用此处列表中的图标:https://labs.mapbox.com/maki-icons/,但是,似乎有些不可用。

我检查了 plotly scattermapbox 文档,看起来它们应该可以工作:https://plotly.com/python/reference/#scattermapbox-marker-symbol。所以,我不确定缺少什么。

# Property Location
   data.append({
                "type": "scattermapbox",
                "lat": [Lat],
                "lon": [Long],
                "hovertext": price,
                "text": "Asking rent ${} SF/YR".format(price),
                "textfont": {"size": 22},
                "textposition": "top-right",
                "showlegend": False,
                "hoverinfo": "text",
                "mode": "text+markers",
                "marker": {
                    "symbol": "industry",
                    "size": 28,
                    "opacity": 0.7
                    }
                }
    )

【问题讨论】:

    标签: plotly mapbox plotly-dash


    【解决方案1】:

    这是可能的,但行业图标不包含在地图框样式中(请参阅https://github.com/mapbox/mapbox-gl-styles)。

    【讨论】:

      猜你喜欢
      • 2020-11-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-06
      • 2016-07-08
      • 1970-01-01
      • 2021-06-25
      相关资源
      最近更新 更多