NextGIS Frontend
    Preparing search index...

    Interface ViewOptions

    interface ViewOptions {
        bounds?: LngLatBoundsArray;
        center?: LngLatArray;
        maxBounds?: null | LngLatBoundsArray;
        maxZoom?: number;
        minZoom?: number;
        zoom?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Initial extent of the map, array of degrees in [west, south, east, north] order.

    Overrides the center and zoom parameters. LngLatBoundsArray

    // whole world
    bounds: [0, -90, 180, 90]
    center?: LngLatArray

    Initial position of the map, array of two degrees [longitude, latitude]. LngLatArray

    maxBounds?: null | LngLatBoundsArray
    maxZoom?: number

    The maximum zoom level of the map (0-24).

    minZoom?: number

    The minimum zoom level of the map (0-24).

    zoom?: number

    The initial zoom level of the map (0-24).