Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

Functions

Type aliases

LegendItemOptions: { feature?: OLFeature; lineHeight?: number; margin?: number; onload?: Function; properties?: {}; size?: Size2; style?: Style | Style[] | ((feat: ol_render_Feature | OLFeature) => Style | Style[]); typeGeom?: any }
since

0.14

Type declaration

  • Optional feature?: OLFeature
  • Optional lineHeight?: number
  • Optional margin?: number
  • Optional onload?: Function
  • Optional properties?: {}
    • [x: string]: any
  • Optional size?: Size2
  • Optional style?: Style | Style[] | ((feat: ol_render_Feature | OLFeature) => Style | Style[])
  • Optional typeGeom?: any

Functions

  • getLegendImage(item: LegendItemOptions, canvas?: undefined | HTMLCanvasElement, row?: undefined | number): HTMLCanvasElement
  • Get a symbol image for a given legend item

    since

    0.14

    Parameters

    • item: LegendItemOptions
    • canvas: undefined | HTMLCanvasElement = undefined

      a canvas to draw in, if none create one

    • row: undefined | number = 0

      row number to draw in canvas, default 0

    Returns HTMLCanvasElement

Generated using TypeDoc