-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Expose mapbox minzoom, maxzoom, and symbol-placement properties #3399
Conversation
Thanks very much for the PR! I won't have the time to look at this in detail before we release 1.44.0 (in ~ 1 week from now). This does seem like a nice addition to the library! |
@plotly/plotly_js how do you feel about the proposed attributes:
Should we attempt to stay 1-to-1 with the mapbox-gl API or should we try to stay consistent with similar existing plotly.js attributes? I'm thinking
Any opinions on this topic? |
I'd vote to leave them as they are. |
Another thing that I can add here is some documentation to map the plot attributes to mapbox attributes. I didn't see this anywhere and it is not obvious without looking at the code the correspondence between the two. I can add this in the reference section for each attribute. |
Sure, go for it! Moreover, could send us (better yet, check it into to |
We'll be making a minor release ( @rockg Are you still planning on pushing another commit to this branch? If not, no worries, we'll gladly bring this PR over the finish line. |
I should have time to do it by Wednesday and will let you know if I won't. Sorry for the delay. |
].join(' ') | ||
}, | ||
dash: { | ||
valType: 'data_array', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does mapbox.layer.paint.line-dasharray
also support scalars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Optional array of numbers greater than or equal to 0" here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks @rockg I added the baseline to your new mock Looking good! |
@etpinard Thanks. Unfortunately the line label and min/max zoom aren't easily tested by the baseline as those are somewhat interactive. |
Yeah, that's ok I guess. plotly.js is just passing things to mapbox-gl here. I'm sure mapbox has tests for those things. Merging! Thank you very much for your contribution! |
This exposes the mapbox minzoom, maxzoom, and symbol-placement properties. Currently this only exposes them to the
mapbox
argument and not toScattermapbox
.Some items:
mapbox_test.js
this should as I don't see other for strict mapbox arguments (most of the tests are for Scattermapbox).@etpinard