Variable staticMapsConst

staticMaps: {
    automatic: (options?: BoundedStaticMapOptions) => string;
    bounded: (boundingBox: BBox, options?: BoundedStaticMapOptions) => string;
    centered: (
        center: Position,
        zoom: number,
        options?: StaticMapBaseOptions,
    ) => string;
} = ...

The staticMaps namespace contains an synchronous function build image URL of static map, as specified by the MapTiler Static Map API. The URL of static maps can then be used within a <img /> markup element, as the src property value.

Type Declaration

Was this helpful?

Client JS
Reference
staticMaps