Icon Class

class BeastBytes\Yii\Leaflet\Types\Icon

Represents an icon to provide when creating a marker

__construct(array $options)

Create a new Icon control

Parameters:
  • $options (array<string, mixed>.) – Icon options

Throws:

InvalidArgumentException if options[‘iconUrl’] not set

Returns:

A new Icon instance

Return type:

Icon