On this page

Interface MapOptions

Options for initializing a Map instance.

interface MapOptions {
    apiKey?: string;
    basemap?: ReferenceMapStyle;
    bearing?: number;
    center?: LngLatLike;
    container: string | HTMLElement;
    logoControl?: ControlPosition;
    maxPitch?: number;
    maxZoom?: number;
    minPitch?: number;
    minZoom?: number;
    modelResolutionControl?: boolean | ControlPosition;
    navigationControl?: boolean | ControlPosition;
    pitch?: number;
    zoom?: number;
}
Index

Properties

apiKey?: string

Your MapTiler Cloud API key. Get one for free at https://maptiler.com/cloud/

The base map style to use.

'satellite-v4'
bearing?: number

The initial bearing (rotation) in degrees.

center?: LngLatLike

The initial center position of the map.

container: string | HTMLElement

The HTML element or ID of the container where the map will be rendered.

logoControl?: ControlPosition

Where to show MapTiler logo

maxPitch?: number

The maximum pitch (tilt) allowed.

maxZoom?: number

The maximum zoom level allowed.

minPitch?: number

The minimum pitch (tilt) allowed.

minZoom?: number

The minimum zoom level allowed.

modelResolutionControl?: boolean | ControlPosition

Whether to show the detail control.

navigationControl?: boolean | ControlPosition

Whether to show navigation controls (zoom, compass).

pitch?: number

The initial pitch (tilt) in degrees.

zoom?: number

The initial zoom level.

Was this helpful?

GeoSplats SDK
Reference
MapOptions