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

Create an example / blog post that shows how to use "smart" Map#setStyle with reactive programming #3776

Closed
lucaswoj opened this issue Dec 9, 2016 · 3 comments

Comments

@lucaswoj
Copy link
Contributor

lucaswoj commented Dec 9, 2016

The new "smart" setStyle #3621 allows a new way of interacting with Mapbox GL styles. Users should be able to express their style as a function of application state, call 👇 every time the application state changes, and get smooth transitions between styles.

map.setStyle(generateStyle(applicationState))

It'd be great to show how this works with a blog post and/or demo. We may eventually want to update all our examples to prefer this paradigm.

@mollymerp
Copy link
Contributor

I know @dasulit was thinking about a demo showcasing this functionality but cc @mapbox/labs for visibility.

@dasulit
Copy link

dasulit commented Dec 12, 2016

Hey @lucaswoj! I started to play around with setStyle a bit, with the goal of making a blog post. I'd be happy to bounce ideas back and forth if you're interested! Is this a duplicate issue of https://github.com/mapbox/mapbox-gl-js/issues/3660?

@lucaswoj
Copy link
Contributor Author

Y, fair to call this a duplicate of #3660. I'll move my thoughts over there.

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

3 participants