API / expressions.ts
Expressions
Helpers that create MapLibre style expressions.
Functions
imageWithFallback function
import {
imageWithFallback
} from 'svelte-maplibre';
Use an image loaded into the map, falling back to another image if it does not exist.
function imageWithFallback(imageId: string | ExpressionSpecification, fallbackId: string): ExpressionSpecification; zoomTransition function
import {
zoomTransition
} from 'svelte-maplibre';
Create an interpolation that changes with the map's zoom level.
function zoomTransition(start: number, startValue: number | ExpressionSpecification, end: number, endValue: number | ExpressionSpecification): ExpressionSpecification;