Class LayersExperimental

API to control per-map layer management, visibility and interpolations.

Hierarchy

  • Layers

Methods

  • Experimental

    Returns a mapping of all layers for a map, and whether they are visible or not.

    Parameters

    Returns Promise<{
        [layerName: string]: boolean;
    }>

  • Experimental

    Re-renders the map only showing the layers specified in the array. This will discard any polygons that have been highlighted.

    Parameters

    • layers: string[]

    Returns void