Attribution Class¶
- class BeastBytes\Yii\Leaflet\Controls\Attribution¶
Represents an attribution control
- __construct(array $options)¶
Create a new Attribution control
- Parameters:
$options (
array<string, mixed>.) – Control options
- Returns:
A new Attribution instance
- Return type:
Inherited from Component¶
- BeastBytes\Yii\Leaflet\Controls\Attribution::addToMap(bool $addToMap)¶
Whether to add the component to the map
By default, a component is added to the map.
- Parameters:
$addToMap (
bool) – Whether the component is added to the map- Returns:
A new instance of Attribution with the addToMap parameter set
- Return type:
Attribution
- BeastBytes\Yii\Leaflet\Controls\Attribution::getJsVar()¶
Returns the JavaScript variable name
- Returns:
The JavaScript variable name
- Return type:
string
- BeastBytes\Yii\Leaflet\Controls\Attribution::jsVar(string $jsVar)¶
Set the JavaScript variable name
- Parameters:
$jsVar (
string) – The JavaScript variable name- Returns:
A new instance of Attribution with the JavaScript variable name set
- Return type:
Attribution