Properties

Link copied to clipboard
abstract var attribution: String?

String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.

Link copied to clipboard
abstract var className: String?

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

Link copied to clipboard
abstract var crossOrigin: Any?

Whether the crossOrigin attribute will be added to the tiles. If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data. Refer to CORS Settings for valid String values.

Link copied to clipboard
abstract var iconAnchor: Point?
Link copied to clipboard
abstract var iconRetinaUrl: String?
Link copied to clipboard
abstract var iconSize: Point?
Link copied to clipboard
abstract var iconUrl: String

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

Link copied to clipboard
abstract var pane: String?

By default, the layer will be added to the map's overlay pane. Overriding this option will cause the layer to be placed on another pane by default.

Link copied to clipboard
abstract var popupAnchor: Point
Link copied to clipboard
abstract var shadowAnchor: Point?

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

Link copied to clipboard
abstract var shadowRetinaUrl: String?
Link copied to clipboard
abstract var shadowSize: Point?

Size of the shadow image in pixels.

Link copied to clipboard
abstract var shadowUrl: String?
Link copied to clipboard
abstract var tooltipAnchor: Point