Open Pioneer Trails Packages
    Preparing search index...
    interface SimpleMapOptions {
        advanced?: OlMapOptions;
        center?: { x: number; y: number };
        extent?: ExtentConfig;
        fetch?: (
            resource: URL,
            init: undefined | HttpServiceRequestInit,
        ) => Promise<Response>;
        layers?: (SimpleLayerConfig | Layer)[];
        mapId?: string;
        noInitialView?: boolean;
        noProjection?: boolean;
        projection?: string;
        returnMap?: boolean;
        zoom?: number;
    }
    Index

    Properties

    advanced?: OlMapOptions

    Passed to the open layers map constructor.

    center?: { x: number; y: number }

    Center coordinates for the map.

    extent?: ExtentConfig

    Initial extent (don't mix with center / zoom).

    fetch?: (
        resource: URL,
        init: undefined | HttpServiceRequestInit,
    ) => Promise<Response>

    Overrides fetching of network resources (such as service capabilities).

    layers?: (SimpleLayerConfig | Layer)[]

    Layers used by the map.

    mapId?: string

    ID of the map. Defaults to "test".

    noInitialView?: boolean

    Disables the initial view when set to true.

    noProjection?: boolean

    Disables the default projection when set to true.

    projection?: string

    The map's projection.

    returnMap?: boolean

    Also returns the map object in the return value. True by default.

    Use false to test the async loading behavior of the registry.

    zoom?: number

    Zoom level of the map.