Types

CameraUpdateTransformFunction

A callback hook that allows manipulating the camera and being notified about camera updates before they happen.

Parameters

next { bearing: number; center: LngLat; elevation: number; pitch: number; roll: number; zoom: number; }
next.bearing number
next.center LngLat
next.elevation number
next.pitch number
next.roll number
next.zoom number

RequestTransformFunction

This function is used to tranform a request. It is used just before executing the relevant request.

Parameters

url string
resourceType ? ResourceType

ResourceType

A type of MapLibre resource.

Enumeration members

Glyphs
Image
Source
SpriteImage
SpriteJSON
Style
Tile
Unknown

Subscription

Allows to unsubscribe from events without the need to store the method reference.

Methods

unsubscribe()

Unsubscribes from the event.

Returns

void

StyleSetterOptions

Supporting type to add validation to another style related type.

Type declaration

validate? boolean Whether to check if the filter conforms to the MapLibre Style Specification. Disabling validation is a performance optimization that should only be used if you have previously validated the values you will be passing to this function.
Reference documentation of MapTiler SDK JS, an extension of MapLibre GL JS