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 layerNamestring 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 typestring the selected style
-
static getStyle(originalLayerName, feature)
VectorTileStyles.js, line 432 -
Get style.
Name Type Description originalLayerNamestring Original layer information.
featureObject 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 cartoShadersArray Shadow of the Carto.
-
static setClientCartoShaders(clientCartoShaders)
VectorTileStyles.js, line 203 -
Set the shadow of the client Carto.
Name Type Description clientCartoShadersArray The shadow of the client Carto.
-
static setDonotNeedServerCartoCss(donotNeedServerCartoCss)
VectorTileStyles.js, line 237 -
Set whether need CartoCss services.
Name Type Description donotNeedServerCartoCssObject Whether need CartoCss services.
-
static setLayerName(layerName)
VectorTileStyles.js, line 322 -
Set name of the layer.
Name Type Description layerNamestring Name of the layer.
-
static setLayersInfo(layersInfo)
VectorTileStyles.js, line 254 -
Set layer information service.
Name Type Description layersInfoObject layer information
-
static setSelectedId(selectedId)
VectorTileStyles.js, line 305 -
Setting the selection sequence number.
Name Type Description selectedIdnumber The selection sequence number.
-
static setSelectedLineStyle(selectedLineStyle)
VectorTileStyles.js, line 348 -
Setting the selected post line style.
Name Type Description selectedLineStyleObject The selected post line style.
-
static setSelectedPointStyle(selectedPointStyle)
VectorTileStyles.js, line 339 -
Setting the selected post style.
Name Type Description selectedPointStyleObject The selected post style.
-
static setSelectedRegionStyle(selectedRegionStyle)
VectorTileStyles.js, line 357 -
Setting the selected post region style.
Name Type Description selectedRegionStyleObject The selected post region style.
-
static setSelectedRegionStyle(selectedTextStyle)
VectorTileStyles.js, line 366 -
Setting the selected text style.
Name Type Description selectedTextStyleObject the selected text style.
-
static setUrl(url)
VectorTileStyles.js, line 271 -
Set url.
Name Type Description urlstring url.
-
static setView(view)
VectorTileStyles.js, line 288 -
set view.
Name Type Description viewObject View.
-
getFeatureStyle(feature)
VectorTileStyles.js, line 505 -
Get style of the feature.
Name Type Description featureObject feature.
-
mergeTextFeatureStyle(layerInfo, feature, url)
VectorTileStyles.js, line 477 -
Merge text element style.
Name Type Description layerInfostring Layer information.
featureObject Feature.
urlstring The url.