VectorTilesLayer

new Supermap3D.VectorTilesLayer(options)

The vector tile layer class supports 2D vector tiles.
Name Type Description
options Object The parameter object contains the following properties:
Name Type Default Description
url String It is suitable for generating mvt data through SuperMap desktop software and publishing it as a rest-style map service through iServer.
url String The service address is applicable to WMTS services published by third parties.
layer String The layer name is applicable to WMTS services published by third parties.
tileWidth String The tile width is suitable for WMTS services released by third parties.
tileHeight String The tile height is suitable for WMTS services released by third parties.
format String 'mvt' optional Applicable to WMTS services published by third parties.
tilematrxset String The name of the slicing matrix set is applicable to WMTS services published by third parties.
maximumLevel Number optional The largest level, applicable to WMTS services published by third parties.
minimumLevel Number optional The smallest level, suitable for 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

alpha : Number

Gets or sets the overall transparency of the layer, the value is between 0 and 1 (0 is completely transparent).

mapboxStyle : Object

Get or set the mapbox standard style object used by the layer, which can be used to modify the map style, style, thematic map, etc. on the front end.

readonlymaximumLevel : Number

Obtain the largest level of data under the global division.

readonlyminimumLevel : Number

Obtain the smallest level of data under the global division.

rectangle : Rectangle

Get the geographic extent of the data.

show : Boolean

Get or set the visibility of the layer.

readonlytileHeight : Number

Get the tile height.

readonlytileWidth : Number

Get the tile width.

tilingScheme : TilingScheme

The way to get the global split of the data.

Methods

refresh()

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