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

serialized styles output #16

Open
indus opened this issue Feb 24, 2017 · 4 comments
Open

serialized styles output #16

indus opened this issue Feb 24, 2017 · 4 comments

Comments

@indus
Copy link

indus commented Feb 24, 2017

It would be nice to be able to generate a regular OL Style descriptor as a string. Could then just be copied into the code and wouldn´t make it necessary to deliver your lib in production (at least for static styles).
Do you think that would make sense?

@ahocevar
Copy link
Member

ahocevar commented Feb 24, 2017

ol-mapbox-style generates style functions, not a style descriptor that can be serialized (because OpenLayers does not support such a style descriptor). It would be possible to generate the JavaScript code for a style function, but that would make debugging a nightmare.

@leegee
Copy link

leegee commented Oct 7, 2022

But it would make maps more efficient, and cut out any call to mapbox.

@ahocevar
Copy link
Member

ahocevar commented Oct 7, 2022

There are no calls to mapbox if you don't request any mapbox resources.

@leegee
Copy link

leegee commented Oct 7, 2022

That's good news, and makes sense even at this point on a Friday!

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