@expofp/floorplan
Version:
Interactive floor plan library for expos and events
21 lines • 1.17 kB
TypeScript
import { type Map as MaplibreMap } from 'maplibre-gl';
import { type MapOptions, type TileSourceConfig } from '../MaplibreWrapper.js';
export declare const LIGHT_TILE_SOURCE: TileSourceConfig;
export declare const DARK_TILE_SOURCE: TileSourceConfig;
export declare const MAP_MIN_ZOOM = 12;
export declare function applyMapDimValue(map: MaplibreMap | null, value: number): void;
/**
* Applies a camera policy to a live map.
*
* Only the pitch moves the camera. The zoom and pan limits are ceilings, not positions, so they are
* set outright; they touch the camera only when it already sits outside a new limit, and MapLibre
* then clamps it rather than easing it.
*
* A pitch change eases when `uiState.animatePitch` is set, over `uiState.mapSettings.pitchtime`,
* which is the same setting the floor plan view eases by.
* @param map - The map, or null before it exists.
* @param mapOptions - The policy; an omitted field restores MapLibre's own default.
*/
export declare function applyMapOptions(map: MaplibreMap | null, mapOptions: Partial<MapOptions>): void;
export declare function getTileSource(): TileSourceConfig;
//# sourceMappingURL=map-helpers.d.ts.map