Composables
Activity
useActivity / useCurrentActivity
useActivity(name, options)— extends the core activity composable with map-specific sub-stores (selection, probe, highlight).useCurrentActivity(options)— retrieves the current map activity context, including project and all map-specific state.
Selection
useSelection
Extends the core selection composable with map-specific behaviour: click, box, and cluster selection handlers; real-time feature tracking via service events; and helper functions for accessing selected features, layers, and locations.
Probe
useProbe
Sets up a reactive store for probing at a specific map location or feature. Registers a click handler to capture probe targets and exposes helpers to inspect, navigate to, and clear the probed location.
Highlight
useHighlight
Manages a reactive store of map highlights — styled GeoJSON features rendered in a dedicated system layer on top of the map. Keeps highlights in sync with real-time service events and layer visibility changes.
Project
useProject
Manages a map project loaded from the projects service. Can track the project ID from the route query parameter or load it manually, and keeps the local project in sync with real-time updates.
Catalog
useCatalog
Provides reactive access to catalog data (layers, categories, sublegends, views). Exposes async fetch functions and computed properties organizing layers by category and identifying orphan layers.
Location
useLocation
Provides reactive geocoder configuration and location search capabilities. Integrates with the KDK Geocoder and Geolocation services with optional filtering based on the current activity project.
Measure
useMeasure
Provides helper functions to extract measurement values at the current application time from time-series data attached to probed features, using nearest-time interpolation.
Weather
useWeather
Provides helpers for working with Weacast weather forecast data: resolving forecast field paths, formatting forecast HTML, and creating Leaflet wind barb markers and tooltips.