Documentation for the members of BasemapsModel.

interface BasemapsModelMembers {
    add(item: BasemapItem | Partial<BasemapItemMembers>): BasemapsModel;
    get basemaps(): BasemapItem[];
    set basemaps(value: (BasemapItem | Partial<BasemapItemMembers>)[]): void;
    clear(): BasemapsModel;
    get filteredBasemaps(): BasemapItem[];
    findItemByBasemap(basemap: Basemap): undefined | BasemapItem;
    findItemById(id: string): undefined | BasemapItem;
    isEmpty(): boolean;
    remove(item: Pick<BasemapItem, "id">): BasemapsModel;
    removeById(id: string): BasemapsModel;
    selected: undefined | BasemapItem;
    selectedId: undefined | string;
    styleLookup: undefined | Record<string, any>;
    viewMode?: "2D" | "3D";
}

Properties

selected: undefined | BasemapItem

Getter for the selected basemap item.

selectedId: undefined | string

Id of selected basemap item.

styleLookup: undefined | Record<string, any>

Object lookup for style classes.

viewMode?: "2D" | "3D"

The view currently used for the view

Accessors

  • get filteredBasemaps(): BasemapItem[]
  • Array of basemap items filtered by conditions. Currently the condition is the view mode.

    Returns BasemapItem[]

    The filtered basemaps.

Methods

  • Finds the first item referencing the given Basemap.

    Parameters

    • basemap: Basemap

    Returns undefined | BasemapItem

  • Finds the first item with the given id.

    Parameters

    • id: string

    Returns undefined | BasemapItem

  • Returns true if basemaps are empty.

    Returns boolean

  • Removes the basemap item with the given id from the basemaps array.

    Parameters

    • id: string

    Returns BasemapsModel