Skip to content

[Feature Request] - Mapbox viewport coordinates in relayoutData #1369

Closed
@jcfbeardsley

Description

@jcfbeardsley

Hi,

Is it possible to have the viewport coordinates (lower left, lower right, upper left and upper right lat/lons) returned as part of the relayoutData when using Mapbox? Currently only mapbox.center, mapbox.zoom, mapbox.bearing and mapbox.pitch are returned. The viewport coordinates would be a massive help when generating dynamic layer content based on user interactions.

I note this feature has already been requested and implemented in plotly.js (see here), but am unsure what's required to get that same data returned through a Dash server-side callback?

Thanks in advance,
J.

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