Skip to content

injectSiMapStyle Type documentation

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 theme
Throws When called outside of an Angular injection context
Parameters
key: string

Types Documentation


Except where otherwise noted, content on this site is licensed under MIT License.