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

cameraForBounds returns incorrect CameraOptions with asymmetrical padding/offset #7517

Closed
mike-marcacci opened this issue Oct 30, 2018 · 0 comments

Comments

@mike-marcacci
Copy link
Contributor

mike-marcacci commented Oct 30, 2018

mapbox-gl-js version: v0.50.0

browser: all

Steps to Trigger Behavior

  1. Use cameraForBounds to get a CameraOptions object, using asymmetrical padding and/or offset.
  2. Use the center, zoom, and bearing to move the map.
  3. The map is in the wrong place.

Link to Demonstration

https://jsfiddle.net/mike_marcacci/Lnh9fx6z

Expected Behavior

image

Actual Behavior

image

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