Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DivIconOptions

Hierarchy

  • DivIconOptions

Index

Properties

Optional className

className: string

A custom class name to assign to the icon.

Default value: 'leaflet-div-icon'.

Optional html

html: string

A custom HTML code to put inside the div element.

Default value: ''.

Optional iconAnchor

iconAnchor: Point

The coordinates of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the marker's geographical location. Centered by default if size is specified, also can be set in CSS with negative margins.

Optional iconSize

iconSize: Point

Size of the icon in pixels. Can be also set through CSS.