Search results

LayerSettings API in JavaScript (ES5) Maps API control

Sets and gets the options to customize the layers of the maps.

Properties

animationDuration

number

Sets and gets the duration for the animation of layers in maps.

Defaults to 0

bingMapType

string

Sets and gets the Bing map type for the layer. If you use shape data with BingMapType without using layer type as Bing, then the map will render based on shape data since default layer type will be set as Geometry.

Defaults to Aerial

bubbleSettings

BubbleSettingsModel[]

Sets and gets the options for customizing the bubble in maps.

dataLabelSettings

DataLabelSettingsModel

Sets and gets the options for customizing the data-label in maps.

dataSource

Object[] | DataManager | MapAjax

  • Sets and gets the data source for the layer.
  • The data source can contain data that can be bound to the tooltip, marker, and bubble.

Defaults to []

geometryType

string

Sets and gets the geometry type for the layer in maps.

Defaults to Geographic

highlightSettings

HighlightSettingsModel

Sets and gets the options for customizing the shapes when the mouse has hovered on maps.

initialShapeSelection

InitialShapeSelectionSettingsModel[]

Sets and gets the settings for shapes that is selected at the time of rendering.

key

string

Sets and gets the key for the tile map layer in maps.

Defaults to

layerType

string

Sets and gets the type of the layer in maps. If we use layer type with shape data property in layer of the maps then map will render based on the provided layer type.

Defaults to Geometry

markerClusterSettings

MarkerClusterSettingsModel

Sets and gets the options for customizing the cluster of markers in maps.

markerSettings

MarkerSettingsModel[]

Sets and gets the options for customizing the marker in maps.

Sets and gets the options for customizing the navigation line in maps.

query

Query

Sets and gets the query to select particular data from the shape data. This property is applicable only when the data source is created by data manager.

Defaults to null

selectionSettings

SelectionSettingsModel

Sets and gets the options for customizing the shapes when clicking the shapes in maps.

shapeData

Object | DataManager | MapAjax

Sets and gets the shape data for the maps to render.

Defaults to null

shapeDataPath

string

Sets and gets the path for the shape from the shape data in maps.

Defaults to ‘name’

shapePropertyPath

string | string[]

Sets and gets the path for the layers from the layer data source in maps.

Defaults to ‘name’

shapeSettings

ShapeSettingsModel

Sets and gets the options to customize the shape of the maps.

staticMapType

string

Sets and gets the type of the static maps.

Defaults to RoadMap

toggleLegendSettings

ToggleLegendSettingsModel

Sets and gets the options for customizing the toggle state of shapes when selecting the legend in maps.

tooltipSettings

TooltipSettingsModel

Sets and gets the options for customizing the tooltip for the layers, markers, and bubbles in maps.

type

string

Sets and gets the type of the layer in maps.

Defaults to Layer

urlTemplate

string

Sets and gets the template for the map using the url.

Defaults to https://a.tile.openstreetmap.org/level/tileX/tileY.png

visible

boolean

Enables or disables the visibility state for the layers in maps.

Defaults to true