spatial-monorepo / core/src / loadFixtureIcons
Function: loadFixtureIcons()
loadFixtureIcons(
map):Promise`<void>`
Defined in: packages/core/src/assets/fixture-icons.ts:100
Loads all fixture category icons into the MapLibre map's image sprite. Icons are bundled as inline SVG data URIs — no network requests required.
Call this once in the map's load event handler (e.g. inside SpatialProvider).
Parameters
map
addImage
(id, image) => void
hasImage
(id) => boolean
loadImage
(url, cb) => void
Returns
Promise`<void>`
