\Kendo\Dataviz\UI\MapControls

A PHP class representing the controls setting of Map.

Methods

attribution

Configures or disables the built-in attribution control.

Returns

\Kendo\Dataviz\UI\MapControls

Parameters

$value boolean |\Kendo\Dataviz\UI\MapControlsAttribution |array

Example - using boolean

<?php
$controls = new \Kendo\Dataviz\UI\MapControls();
$controls->attribution(true);
?>

Example - using \Kendo\Dataviz\UI\MapControlsAttribution

<?php
$controls = new \Kendo\Dataviz\UI\MapControls();
$attribution = new \Kendo\Dataviz\UI\MapControlsAttribution();
$position = 'value';
$attribution->position($position);
$controls->attribution($attribution);
?>

Example - using array

<?php
$controls = new \Kendo\Dataviz\UI\MapControls();
$position = 'value';
$controls->attribution(array('position' => $position));
?>

navigator

Configures or disables the built-in navigator control (directional pad).

Returns

\Kendo\Dataviz\UI\MapControls

Parameters

$value boolean |\Kendo\Dataviz\UI\MapControlsNavigator |array

Example - using boolean

<?php
$controls = new \Kendo\Dataviz\UI\MapControls();
$controls->navigator(true);
?>

Example - using \Kendo\Dataviz\UI\MapControlsNavigator

<?php
$controls = new \Kendo\Dataviz\UI\MapControls();
$navigator = new \Kendo\Dataviz\UI\MapControlsNavigator();
$position = 'value';
$navigator->position($position);
$controls->navigator($navigator);
?>

Example - using array

<?php
$controls = new \Kendo\Dataviz\UI\MapControls();
$position = 'value';
$controls->navigator(array('position' => $position));
?>

zoom

Configures or disables the built-in zoom control (+/- button).

Returns

\Kendo\Dataviz\UI\MapControls

Parameters

$value boolean |\Kendo\Dataviz\UI\MapControlsZoom |array

Example - using boolean

<?php
$controls = new \Kendo\Dataviz\UI\MapControls();
$controls->zoom(true);
?>

Example - using \Kendo\Dataviz\UI\MapControlsZoom

<?php
$controls = new \Kendo\Dataviz\UI\MapControls();
$zoom = new \Kendo\Dataviz\UI\MapControlsZoom();
$position = 'value';
$zoom->position($position);
$controls->zoom($zoom);
?>

Example - using array

<?php
$controls = new \Kendo\Dataviz\UI\MapControls();
$position = 'value';
$controls->zoom(array('position' => $position));
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy