ol.source. ol.source.TileVector

new TileVector

Stability: experimental
Parameters:
Name Type Description
options olx.source.TileVectorOptions

Options.

Properties
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

defaultProjection ol.proj.ProjectionLike

Default projection.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

object GeoJSONObject | undefined

Object.

projection ol.proj.ProjectionLike

Destination projection. If provided, features will be transformed to this projection. If not provided, features will not be transformed.

tileGrid ol.tilegrid.TileGrid

Tile grid.

tileUrlFunction ol.TileUrlFunctionType | undefined

Optional function to get tile URL given a tile coordinate and the projection. Required if url or urls are not provided.

url string | undefined

URL template. Must include {x}, {y} or {-y}, and {z} placeholders.

urls Array.<string> | undefined

An array of URL templates.

Source:
  • tilevectorsource.js, line 19

Extends

  • ol.source.FormatVector

Methods

addFeature

Stability: experimental
Parameters:
Name Type Description
feature ol.Feature

Feature.

Source:
  • tilevectorsource.js, line 72

addFeatures

Stability: experimental
Parameters:
Name Type Description
features Array.<ol.Feature>

Features.

Source:
  • tilevectorsource.js, line 78

forEachFeature

Stability: experimental
Parameters:
Name Type Argument Description
f function

Callback.

this T <optional>

The object to use as this in f.

Source:
  • tilevectorsource.js, line 92
Returns:
Type
S | undefined

forEachFeatureInExtent

Stability: experimental
Parameters:
Name Type Argument Description
extent ol.Extent

Extent.

f function

Callback.

this T <optional>

The object to use as this in f.

Source:
  • tilevectorsource.js, line 98
Returns:
Type
S | undefined

getClosestFeatureToCoordinate

Stability: experimental
Parameters:
Name Type Description
coordinate ol.Coordinate

Coordinate.

Source:
  • tilevectorsource.js, line 133
Returns:

Closest feature.

Type
ol.Feature

getExtent

Stability: experimental
Source:
  • tilevectorsource.js, line 140
Returns:

Extent.

Type
ol.Extent

getFeatures

Stability: experimental
Source:
  • tilevectorsource.js, line 146
Returns:

Features.

Type
Array.<ol.Feature>

removeFeature

Stability: experimental
Parameters:
Name Type Description
feature ol.Feature

Feature.

Source:
  • tilevectorsource.js, line 219