Spec-Zone.ru › OpenLayers

ol/VectorTile~VectorTile


Extends

  • Tile

Methods

dispatchEvent(event){boolean | undefined} inherited

events/Target.js, line 85

Dispatches an event and calls all listeners listening for events of this type. The event parameter can either be a string or an Object with a type property.

Name Type Description
event BaseEvent | string

Event object.

Returns:
false if anyone called preventDefault on the event object or if any of the listeners returned false.

getFeatures(){Array.<FeatureType>}

VectorTile.js, line 94

Get the features for this tile. Geometries will be in the view projection.

Returns:
Features.

getFormat(){FeatureFormat<FeatureType>}

VectorTile.js, line 85

Get the feature format assigned for reading this tile's features.

Returns:
Feature format.

getTileCoord(){TileCoord} inherited

Tile.js, line 155

Get the tile coordinate for this tile.

Returns:
The tile coordinate.

setFeatures(features)

VectorTile.js, line 134

Function for use in a VectorTile's tileLoadFunction. Sets the features for the tile.

Name Type Description
features Array.<FeatureType>

Features.

setLoader(loader)

VectorTile.js, line 144

Set the feature loader for reading this tile's features.

Name Type Description
loader FeatureLoader<FeatureType>

Feature loader.

setState(state) inherited

Tile.js, line 174

Sets the state of this tile. If you write your own tileLoadFunction , it is important to set the state correctly to ERROR when the tile cannot be loaded. Otherwise the tile cannot be removed from the tile queue and will block other requests.

Name Type Description
state ol/TileState

State.

© 2005-present, OpenLayers Contributors All rights reserved.Licensed under the BSD 2-Clause License.
https://openlayers.org/en/latest/apidoc/module-ol_VectorTile-VectorTile.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API