Search results

LayerSettingsModel API in JavaScript Maps API control

Interface for a class LayerSettings

Properties

animationDuration

number

Gets or sets the duration of the animation of layers when the zooming is performed in maps.

bingMapType

BingMapType

Gets or sets the Bing map type for the layer. If you set GeoJSON data in the map and set the BingMapType value without setting the layer type as “Bing”, then the map will be rendered based on the provided shape data since the default layer type will be set as “Geometry”.

bubbleSettings

BubbleSettingsModel[]

Gets or sets the options for customizing the bubbles in maps.

dataLabelSettings

DataLabelSettingsModel

Gets or sets the options for customizing the data labels in maps.

dataSource

Object[] | DataManager | MapAjax

Gets or sets the data source for the layer. The data bound to the shapes using data source can be used to display the tooltip, marker, and bubble.

geometryType

GeometryType

Gets or sets the geometry type for the layer in maps. There are two types: Geographic and Normal.

  • Geographic type renders the shape maps with geographical coordinate system.
  • Normal type renders the shape maps using default coordinate system.

highlightSettings

HighlightSettingsModel

Gets or sets the options for customizing the shapes when the mouse hovers over maps.

initialShapeSelection

InitialShapeSelectionSettingsModel[]

Gets or sets the settings for the shapes to be selected when the maps rendering initially. The initial selection of shapes will be performed only when the selection functionality of layer is enabled.

key

string

Gets or sets the key for the online map provider to render in the layer of the maps.

layerType

ShapeLayerType

Gets or sets 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.

markerClusterSettings

MarkerClusterSettingsModel

Gets or sets the options for customizing the cluster of markers in maps.

markerSettings

MarkerSettingsModel[]

Gets or sets the options for customizing the markers in maps.

Gets or sets the options for customizing the navigation lines in maps.

polygonSettings

PolygonSettingsModel

Gets or sets the properties of the polygon shapes that will be rendered on a map layer. The selection and highlight settings for polygon shapes can also be defined.

query

Query

Gets or sets the query to select particular data from the layer data source. This property is applicable only when the data source is created by data manager.

selectionSettings

SelectionSettingsModel

Gets or sets the options for customizing the shapes when clicking on the shapes in maps.

shapeData

Object | DataManager | MapAjax

Gets or sets the data for the maps to render. The data is normally JSON object with GeoJSON format that defines the shapes and geometries of the map.

shapeDataPath

string

Gets or sets the field name from the GeoJSON data to map the shape to the data defined in the layer data source.

shapePropertyPath

string | string[]

Gets or sets the field name from the data source to map the shape to the data defined in the layer data source.

shapeSettings

ShapeSettingsModel

Gets or sets the options to customize the shape of the maps.

staticMapType

StaticMapType

Gets or sets the type of the static maps.

toggleLegendSettings

ToggleLegendSettingsModel

Gets or sets the options for customizing the toggle state of shapes when selecting the legend in maps.

tooltipSettings

TooltipSettingsModel

Gets or sets the options for customizing the tooltip of the layers in maps.

type

Type

Gets or sets the type of the layer in maps. There are two types: Layer and SubLayer.

urlTemplate

string

Gets or sets the URL of the online map providers. The online map providers will be rendered only when the shape data is not set and layer type is set with default value.

visible

boolean

Enables or disables the visibility of the layers in maps.