Maplibre Inspect Control

Implements

  • IControl

Constructors

Properties

assignLayerColor: ((layerId, alpha) => string)

Type declaration

    • (layerId, alpha): string
    • Parameters

      • layerId: string
      • alpha: number

      Returns string

options: Required<MaplibreInspectOptions>
sources: {
    [key: string]: string[];
}

Type declaration

  • [key: string]: string[]

Methods

  • Parameters

    • map: Map$1

    Returns HTMLDivElement

  • This will set the original style of the map It will also update the sources assuming the map has already been loaded

    Parameters

    • style: StyleSpecification

      The original style

    Returns void