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

[STYLE] Classifier helpers for viewport #119

Merged

Conversation

manmorjim
Copy link
Contributor

Added the new option viewport to style helpers for setting styles when the viewport changes. Example for size bins:

const style = carto.viz.style.sizeBins('sale_price', {
  viewport: true
});
const layer = new carto.viz.Layer('clev_sales', style);

When the the option `viewport` is provided with `true` value to the
helpers then the styles are recalculated when the viewport changes.
@vercel
Copy link

vercel bot commented Aug 12, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/carto-frontend/web-sdk/6getcpd0t
✅ Preview: https://web-sdk-git-feature-ch71071style-classifier-help-a13d40.carto-frontend.vercel.app

@manmorjim manmorjim changed the base branch from develop to feature/ch95759/legends-add-custom-options August 12, 2020 16:42
@manmorjim manmorjim changed the base branch from feature/ch95759/legends-add-custom-options to develop August 12, 2020 16:42
@VictorVelarde VictorVelarde merged commit 8fc497f into develop Aug 19, 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

Successfully merging this pull request may close these issues.

2 participants