Class: VectorTilesLayer

VectorTilesLayer

new VectorTilesLayer()

Vector tile layer class, supporting 2D vector tiles.

Name Type Default Description
options.url String

Suitable for generating MVT data through SuperMap desktop software and publishing it as a REST style map service through iServer, as well as for WMTS services suitable for third-party publishing.

options.layer String

Layer name, applicable to third-party WMTS services.

options.tileWidth String

Tile width, suitable for third-party WMTS services.

options.tileHeight String

Tile height, suitable for third-party WMTS services.

options.format String 'mvt' optional

Applicable to WMTS services published by third parties.

options.tilematrxset String

Tile matrix set name, applicable to third-party WMTS services.

options.maximumLevel Number optional

Maximum level, applicable to WMTS services published by third parties.

options.minimumLevel Number optional

Minimum level, applicable to WMTS services published by third parties.

Example
var layer = scene.addVectorTilesLayer({
    url:"http:// localhost:8090/iserver/services/map-mvt-test/....../maps/test" // map service
});

Members

alphaNumber

Get or set the overall transparency of the layer, with a value between 0 and 1 (0 is completely transparent).

mapboxStyleObject

Get or set the style object of the mapbox standard used by the layer, which can be used to modify the map style, style, theme map, etc. in the front-end.

readonly maximumLevelNumber

Obtain data at the highest level of global segmentation.

readonly minimumLevelNumber

Obtain data at the smallest level of global segmentation.

rectangleRectangle

Obtain the geographical range of data.

showBoolean

Get or set the visibility of layers.

readonly tileHeightNumber

Obtain tile height.

readonly tileWidthNumber

Obtain tile width.

tilingSchemeTilingScheme

Global segmentation method for obtaining data.

Methods

refresh()

Refresh the layer to make the modified map style take effect.