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