Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IconLabel

Implements

Index

Constructors

constructor

  • Parameters

    • textMeasurer: TextMeasurer
    • center: LatLng
    • icon: string
    • closed: boolean

    Returns IconLabel

Properties

Private Readonly clickListeners

clickListeners: ClickListener[]

Private Readonly iconSize

iconSize: Point

Static Private Readonly BACKGROUND_COLOR

BACKGROUND_COLOR: "#ffffff" = "#ffffff"

Static Private Readonly BORDER_COLOR

BORDER_COLOR: "#cccccc" = "#cccccc"

Static Private Readonly BORDER_PX

BORDER_PX: 2 = 2

Static Private Readonly CLOSED_BACKGROUND_COLOR

CLOSED_BACKGROUND_COLOR: "#a7a7a7" = "#a7a7a7"

Static Private Readonly CLOSED_BORDER_COLOR

CLOSED_BORDER_COLOR: "#757575" = "#757575"

Static Private Readonly CLOSED_ICON_COLOR

CLOSED_ICON_COLOR: "#c93d3d" = "#c93d3d"

Static Private Readonly ICON_COLOR

ICON_COLOR: "#000000" = "#000000"

Static Private Readonly ICON_VERTICAL_OFFSET_PX

ICON_VERTICAL_OFFSET_PX: 1 = 1

Static Private Readonly RADIUS_PX

RADIUS_PX: 14 = 14

Methods

addClickListener

didClick

  • didClick(e: LeafletMouseEvent, map: Map, zoom: number): boolean
  • Parameters

    • e: LeafletMouseEvent
    • map: Map
    • zoom: number

    Returns boolean

getCenter

  • getCenter(): LatLng
  • Returns LatLng

getSize

  • getSize(): Point
  • Returns Point

Private measureIcon

  • measureIcon(icon: string): Point
  • Parameters

    • icon: string

    Returns Point

onClick

  • onClick(e: LeafletMouseEvent): void
  • Parameters

    • e: LeafletMouseEvent

    Returns void

render

  • render(ctx: CanvasRenderingContext2D, centeredAt: Point): void
  • Parameters

    • ctx: CanvasRenderingContext2D
    • centeredAt: Point

    Returns void

Generated using TypeDoc