Vector tile options.
Class for layer sources providing vector data divided into a tile grid, to be used with ol.layer.VectorTile. Although this source receives tiles with vector features from the server, it is not meant for feature editing. Features are optimized for rendering, their geometries are clipped at or near tile boundaries and simplified for a view resolution. See ol.source.Vector for vector sources that are suitable for feature editing.
ol.source.TileEvent
Get the attributions of the source.
Attributions.
stable
Get the logo of the source.
Logo.
stable
Get the projection of the source.
Projection.
Get the state of the source, see ol.source.State for possible states.
State.
Return the tile load function of the source.
TileLoadFunction
Return the tile URL function of the source.
TileUrlFunction
Listen for a certain type of event.
The event type or array of event types.
The listener function.
Optional
opt_this: ObjectThe object to use as this
in listener
.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
stable
Listen once for a certain type of event.
The event type or array of event types.
The listener function.
Optional
opt_this: ObjectThe object to use as this
in listener
.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
stable
Set the attributions of the source.
Attributions.
Can be passed as string
, Array<string>
, {@link ol.Attribution}
,
Array<{@link ol.Attribution}>
or undefined
.
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Values.
Optional
opt_silent: booleanUpdate without triggering an event.
stable
Set the tile load function of the source.
Tile load function.
Set the tile URL function of the source.
Tile URL function.
Optional
opt_key: stringOptional new tile key for the source.
Static
unRemoves an event listener using the key returned by on()
or once()
.
Note that using the ol.Observable.unByKey static function is to
be preferred.
stable
Generated using TypeDoc
Classdesc
Class for layer sources providing vector data divided into a tile grid, to be used with ol.layer.VectorTile. Although this source receives tiles with vector features from the server, it is not meant for feature editing. Features are optimized for rendering, their geometries are clipped at or near tile boundaries and simplified for a view resolution. See ol.source.Vector for vector sources that are suitable for feature editing.
Fires
ol.source.TileEvent
Param: options
Vector tile options.
Api