new ol.supermap.VectorTileStyles(options)
Name | Type | Description |
---|---|---|
options |
Object |
The optional parameters. |
Extends
- ol.Observable
Methods
-
ol.supermap.VectorTileStyles.getCartoCss()
VectorTileStyles.js, line 229 -
Get style of the cartoCss.
-
ol.supermap.VectorTileStyles.getCartoShaders()
VectorTileStyles.js, line 195 -
Get the shadow of the client Carto.
-
ol.supermap.VectorTileStyles.getClientCartoShaders()
VectorTileStyles.js, line 212 -
Get the shadow of the client Carto.
-
ol.supermap.VectorTileStyles.getDonotNeedServerCartoCss()
VectorTileStyles.js, line 246 -
Get whether need CartoCss services.
-
ol.supermap.VectorTileStyles.getLayerInfo(layerName)
VectorTileStyles.js, line 395 -
Get layer information.
Name Type Description layerName
string Name of the layer.
-
ol.supermap.VectorTileStyles.getLayerName()
VectorTileStyles.js, line 331 -
Get name of the layer.
-
ol.supermap.VectorTileStyles.getLayersInfo()
VectorTileStyles.js, line 263 -
Get layer information service.
-
ol.supermap.VectorTileStyles.getSelectedId()
VectorTileStyles.js, line 314 -
Get selected Id.
-
ol.supermap.VectorTileStyles.getSelectedStyle(type)
VectorTileStyles.js, line 375 -
Setting the selected style.
Name Type Description type
string the selected style
-
ol.supermap.VectorTileStyles.getStyle(originalLayerName, feature)
VectorTileStyles.js, line 432 -
Get style.
Name Type Description originalLayerName
string Original layer information.
feature
Object Feature object.
-
ol.supermap.VectorTileStyles.getUrl()
VectorTileStyles.js, line 280 -
Get Url.
-
ol.supermap.VectorTileStyles.getView()
VectorTileStyles.js, line 297 -
Get view.
-
ol.supermap.VectorTileStyles.setCartoShaders(cartoShaders)
VectorTileStyles.js, line 186 -
Setting shadow of the Carto.
Name Type Description cartoShaders
Array Shadow of the Carto.
-
ol.supermap.VectorTileStyles.setClientCartoShaders(clientCartoShaders)
VectorTileStyles.js, line 203 -
Set the shadow of the client Carto.
Name Type Description clientCartoShaders
Array The shadow of the client Carto.
-
ol.supermap.VectorTileStyles.setDonotNeedServerCartoCss(donotNeedServerCartoCss)
VectorTileStyles.js, line 237 -
Set whether need CartoCss services.
Name Type Description donotNeedServerCartoCss
Object Whether need CartoCss services.
-
ol.supermap.VectorTileStyles.setLayerName(layerName)
VectorTileStyles.js, line 322 -
Set name of the layer.
Name Type Description layerName
string Name of the layer.
-
ol.supermap.VectorTileStyles.setLayersInfo(layersInfo)
VectorTileStyles.js, line 254 -
Set layer information service.
Name Type Description layersInfo
Object layer information
-
ol.supermap.VectorTileStyles.setSelectedId(selectedId)
VectorTileStyles.js, line 305 -
Setting the selection sequence number.
Name Type Description selectedId
number The selection sequence number.
-
ol.supermap.VectorTileStyles.setSelectedLineStyle(selectedLineStyle)
VectorTileStyles.js, line 348 -
Setting the selected post line style.
Name Type Description selectedLineStyle
Object The selected post line style.
-
ol.supermap.VectorTileStyles.setSelectedPointStyle(selectedPointStyle)
VectorTileStyles.js, line 339 -
Setting the selected post style.
Name Type Description selectedPointStyle
Object The selected post style.
-
ol.supermap.VectorTileStyles.setSelectedRegionStyle(selectedTextStyle)
VectorTileStyles.js, line 366 -
Setting the selected text style.
Name Type Description selectedTextStyle
Object the selected text style.
-
ol.supermap.VectorTileStyles.setSelectedRegionStyle(selectedRegionStyle)
VectorTileStyles.js, line 357 -
Setting the selected post region style.
Name Type Description selectedRegionStyle
Object The selected post region style.
-
ol.supermap.VectorTileStyles.setUrl(url)
VectorTileStyles.js, line 271 -
Set url.
Name Type Description url
string url.
-
ol.supermap.VectorTileStyles.setView(view)
VectorTileStyles.js, line 288 -
set view.
Name Type Description view
Object View.
-
getFeatureStyle(feature)
VectorTileStyles.js, line 505 -
Get style of the feature.
Name Type Description feature
Object feature.
-
mergeTextFeatureStyle(layerInfo, feature, url)
VectorTileStyles.js, line 477 -
Merge text element style.
Name Type Description layerInfo
string Layer information.
feature
Object Feature.
url
string The url.