injectSiMapStyle Type documentation¶
Function Creates a signal that returns a StyleSpecification: StyleSpecification for MapLibre GL based on the current Element theme. The signal automatically updates when the theme switches between light and dark.@remarks: Must be called in an Angular injection context (e.g. inside a constructor, field initializer, or a function called from one). Calling this function outside of an injection context will throw an assertInInjectionContext error.@param: The MapTiler API key used to fetch tiles, glyphs, and sprites Returns A signal that provides the current StyleSpecification: StyleSpecification based on the active themeThrows When called outside of an Angular injection context | ||
|---|---|---|
|
Types Documentation¶
import imported from @maplibre/maplibre-gl-style-spec |
|---|
Except where otherwise noted, content on this site is licensed under MIT License.