ol-mapbox-style
ol-mapbox-style copied to clipboard
serialized styles output
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?
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.
But it would make maps more efficient, and cut out any call to mapbox.
There are no calls to mapbox if you don't request any mapbox resources.
That's good news, and makes sense even at this point on a Friday!