\Kendo\Dataviz\UI\MapLayerDefaultsShape

A PHP class representing the shape setting of MapLayerDefaults.

Methods

attribution

The attribution for all shape layers.

Returns

\Kendo\Dataviz\UI\MapLayerDefaultsShape

Parameters

$value string

Example

<?php
$shape = new \Kendo\Dataviz\UI\MapLayerDefaultsShape();
$shape->attribution('value');
?>

opacity

The the opacity of all shape layers.

Returns

\Kendo\Dataviz\UI\MapLayerDefaultsShape

Parameters

$value float

Example

<?php
$shape = new \Kendo\Dataviz\UI\MapLayerDefaultsShape();
$shape->opacity(1);
?>

style

The default style for shapes.

Returns

\Kendo\Dataviz\UI\MapLayerDefaultsShape

Parameters

$value \Kendo\Dataviz\UI\MapLayerDefaultsShapeStyle|array

Example - using \Kendo\Dataviz\UI\MapLayerDefaultsShapeStyle

<?php
$shape = new \Kendo\Dataviz\UI\MapLayerDefaultsShape();
$style = new \Kendo\Dataviz\UI\MapLayerDefaultsShapeStyle();
$fill = new \Kendo\Dataviz\UI\MapLayerDefaultsShapeStyleFill();
$style->fill($fill);
$shape->style($style);
?>

Example - using array

<?php
$shape = new \Kendo\Dataviz\UI\MapLayerDefaultsShape();
$fill = new \Kendo\Dataviz\UI\MapLayerDefaultsShapeStyleFill();
$shape->style(array('fill' => $fill));
?>
In this article
Not finding the help you need?