Skip to content

Add modebar buttons zoomInMapbox and zoomOutMapbox #4398

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

Merged
merged 2 commits into from
Dec 12, 2019

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Dec 2, 2019

Implements #2856

The initial commit uses a scalar value of 1.3, which gives a smaller zoom increment than for geo and cartesian subplots (they use 2). I personally prefer this behaviour for the vector-tiled mapbox subplots. Please try out the example codepen below and tell me if you agree.

demo: https://codepen.io/etpinard/pen/qBEBPmN

cc @plotly/plotly_js

- use scalar value 1.3, which gives a smaller zoom increment
  than for geo and cartesian subplots. I personally prefer
  this behaviour for the vector-tiled mapbox subplots.
@etpinard etpinard added this to the v1.52.0 milestone Dec 2, 2019
@archmoj
Copy link
Contributor

archmoj commented Dec 12, 2019

Thanks @etpinard
💃 💃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants