Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IconOptions

Hierarchy

  • IconOptions

Index

Properties

Optional className

className: string

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

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 iconRetinaUrl

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 iconSize

iconSize: Point

Size of the icon image in pixels.

Optional iconUrl

iconUrl: string

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

Optional popupAnchor

popupAnchor: Point

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

Optional shadowAnchor

shadowAnchor: Point

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

Optional shadowRetinaUrl

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 shadowSize

shadowSize: Point

Size of the shadow image in pixels.

Optional shadowUrl

shadowUrl: string

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