Marker Class

class BeastBytes\Yii\Leaflet\Layers\UI\Marker

Represents a marker; a clickable/draggable icon on the map

@template T of array{float, float}|array{float, float, float}|array{lat: float, lng: float}|array{lat: float, lng: float, alt: float}|LatLng

__construct(array|LatLng $location, array $options = [])

Create a new Marker instance

Parameters:
  • $location (T) – The marker geographical location

  • $options (array<string, mixed>.) – marker options

Returns:

A new Marker instance

Return type:

Marker