\Kendo\Dataviz\UI\MapLayer

A PHP class representing the layer setting of MapLayers.

Methods

attribution

The attribution for the layer. Accepts valid HTML.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

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

autoBind

If set to false the layer will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value boolean

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->autoBind(true);
?>

culture

The culture to be used for the bing map tiles.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->culture('value');
?>

dataSource

Sets the data source of the widget.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value \Kendo\Data\DataSource |array

Example - using \Kendo\Data\DataSource

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$dataSource = new \Kendo\Data\DataSource();
$layer->dataSource($dataSource);
?>

Example - using array

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$schema = new \Kendo\Data\DataSourceSchema();
$layer->dataSource(array('schema' => $schema));
?>

extent

Specifies the extent of the region covered by this layer. The layer will be hidden when the specified area is out of view.Accepts a four-element array that specifies the extent covered by this layer: North-West lat, longitude, South-East latitude, longitude.If not specified, the layer is always visible.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value array

Example - using array

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->extent(array());
?>

imagerySet

The bing map tile types. Possible options.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->imagerySet('value');
?>

key

The API key for the layer. Currently supported only for Bing (tm) tile layers.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->key('value');
?>

locationField

The data item field which contains the marker (symbol) location. The field should be an array with two numbers - latitude and longitude in decimal degrees.Requires the dataSource option to be set.Only applicable to "marker" and "bubble" layers.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->locationField('value');
?>

maxSize

The maximum symbol size for bubble layer symbols.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value float

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->maxSize(1);
?>

minSize

The minimum symbol size for bubble layer symbols.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value float

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->minSize(1);
?>

opacity

The the opacity for the layer.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value float

Example

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

shape

The marker shape. Supported shapes are "pin" and "pinTarget".

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

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

style

The default style for shapes.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

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

Example - using \Kendo\Dataviz\UI\MapLayerStyle

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$style = new \Kendo\Dataviz\UI\MapLayerStyle();
$fill = new \Kendo\Dataviz\UI\MapLayerStyleFill();
$style->fill($fill);
$layer->style($style);
?>

Example - using array

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$fill = new \Kendo\Dataviz\UI\MapLayerStyleFill();
$layer->style(array('fill' => $fill));
?>

subdomains

A list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to be executed in parallel.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value array

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->subdomains(array());
?>

symbol

The bubble layer symbol type. Supported symbols are "circle" and "square".

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->symbol('value');
?>

tileSize

The size of the image tile in pixels.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value float

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->tileSize(1);
?>

titleField

The data item field which contains the marker title. Requires the dataSource option to be set.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->titleField('value');
?>

tooltip

The default Kendo UI Tooltip options for data-bound markers.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

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

Example - using \Kendo\Dataviz\UI\MapLayerTooltip

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$tooltip = new \Kendo\Dataviz\UI\MapLayerTooltip();
$autoHide = true;
$tooltip->autoHide($autoHide);
$layer->tooltip($tooltip);
?>

Example - using array

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$autoHide = true;
$layer->tooltip(array('autoHide' => $autoHide));
?>

type

The layer type. Supported types are "tile", "bing", "shape", "marker" and "bubble".

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->type('value');
?>

urlTemplate

The URL template for tile layers. Template variables:

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->urlTemplate('value');
?>

valueField

The value field for bubble layer symbols. The data item field should be a number.

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value string

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->valueField('value');
?>

zIndex

The zIndex for this layer.Layers are normally stacked in declaration order (last one is on top).

Returns

\Kendo\Dataviz\UI\MapLayer

Parameters

$value float

Example

<?php
$layer = new \Kendo\Dataviz\UI\MapLayer();
$layer->zIndex(1);
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy