Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flyTo options doesn't support padding #859

Open
bitofbreeze opened this issue Apr 25, 2020 · 0 comments
Open

flyTo options doesn't support padding #859

bitofbreeze opened this issue Apr 25, 2020 · 0 comments

Comments

@bitofbreeze
Copy link

bitofbreeze commented Apr 25, 2020

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?

@bitofbreeze bitofbreeze changed the title flyTo options doesn't use padding flyTo options doesn't support padding Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant