Skip to content

flyTo options doesn't support padding #859

Description

@candidia

In this mapbox-gl-js PR, padding was added as an option for camera options. However using it in the Mapbox Component, eg:

<Mapbox
      style={`mapbox://styles/mapbox/dark-v10`}
      containerStyle={{
        height: "100vh",
        width: "100vw",
      }}
      flyToOptions={{
        padding: {
            left: 100,
        }
      }}
      padding={{
        left: 100,
      }}
    >
</Mapbox>

does not work. You can see I tried it in two places. Could this be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions