Style : Glyphs and Sprite as MapLibre parameters ? #260
Closed
BenOnTrack
started this conversation in
Ideas
Replies: 1 comment
-
|
Nevermind, it works as is. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As of today, I believe it's always assumed that a default
style(such as https://basemaps.cartocdn.com/gl/positron-gl-style/style.json) is provided as a baseline, while newSourcesandLayerscan be added on top. At least all examples are based on this assumption.As a new improvement, I would suggest a way to be able to source this base style via
parametersdirectly from the Maplibre component. For instance, I use to always serve my own personalglyphsandsprite.Today, I need to fill a baseline style such as :
to make it work. Where I need to then post-process my tag @staticOrigin@ and replace them. I wish I could use my Rune and use reactivity directly instead.
While all my source and layers are set directly under the
Maplibrecomponent and works as a charm.In other words, that would be great to be able to also serve the
glyphsandspriteas MapLibre parameters, to avoid such "empty" style to still need to be provided as input, if that makes sense. Basically my entire style would be created locally within my App - not fetched from a remote source.I also believe for the spec, the id/version and name might still need to be provided
-- edit --
Unless there is already a way to supply the style as a json file including
runesomething like
Beta Was this translation helpful? Give feedback.
All reactions