Skip to content

Feature Request: Add plotly event listeners to Mapbox layers #1966

Closed
@radumas

Description

@radumas

I didn't realize this before but it seems there are two ways to add a layer to a mapbox map:

  1. Scattermapbox(lat=lats, lon=lons, etc.) (ref)
  2. layout(mapbox=(layers={source='data.geojson', sourcetype='geojson') (ref)

Since the first option doesn't play well with Geojson (or lines), could plotly click, hover, select events be fired for layers created by the second option?

My motivation for this is to be able to create layers (in python) from geojson or vector tile source, but be able to attach plotly interactivity to the geometries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions