Options
All
  • Public
  • Public/Protected
  • All
Menu

Legend component props

export
interface

ILegendProps

Hierarchy

  • ILegendProps

Index

Properties

activeMapName?: string
baseIconSize?: number
currentScale: number
externalBaseLayers?: IExternalBaseLayer[]
externalLayers?: ILayerInfo[]
hideGroups: undefined | string[]
hideLayers: undefined | string[]
inlineBaseLayerSwitcher: boolean
locale: string
since

0.14 made optional

maxHeight?: number
onGroupVisibilityChanged?: MapElementChangeFunc
onLayerVisibilityChanged?: MapElementChangeFunc
overrideExpandedItems?: any
overrideSelectableLayers?: any
showGroups: undefined | string[]
showLayers: undefined | string[]
stateless: boolean

Methods

  • onBaseLayerChanged(name: string): undefined | void
  • Parameters

    • name: string

    Returns undefined | void

  • onGroupExpansionChanged(id: string, expanded: boolean): undefined | void
  • Parameters

    • id: string
    • expanded: boolean

    Returns undefined | void

  • onLayerSelectabilityChanged(id: string, selectable: boolean): undefined | void
  • Parameters

    • id: string
    • selectable: boolean

    Returns undefined | void

  • Provide extra HTML elements to insert before a group name in a group legend node

    since

    0.14.9

    Parameters

    Returns string[]

  • Provide extra HTML elements to insert before a layer name in a layer legend node

    since

    0.14.9

    Parameters

    Returns string[]

Generated using TypeDoc