Interface IconOptions

Index

Properties

Properties

optional public className?: string

A custom class name to assign to both icon and shadow images. Empty by default.

optional public 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 public iconRetinaUrl?: string

The URL to a retina sized version of the icon image (absolute or relative to your script path). Used for Retina screen devices.

optional public iconSize?: Point

Size of the icon image in pixels.

optional public iconUrl?: string

(required) The URL to the icon image (absolute or relative to your script path).

optional public popupAnchor?: Point

The coordinates of the point from which popups will "open", relative to the icon anchor.

optional public shadowAnchor?: Point

The coordinates of the "tip" of the shadow (relative to its top left corner) (the same as iconAnchor if not specified).

optional public shadowRetinaUrl?: string

The URL to the retina sized version of the icon shadow image. If not specified, no shadow image will be created. Used for Retina screen devices.

optional public shadowSize?: Point

Size of the shadow image in pixels.

optional public shadowUrl?: string

The URL to the icon shadow image. If not specified, no shadow image will be created.