Namespace: Vector

Vector

Vector data that is rendered client-side.

See:

Methods


animateFeature(feature, fanim)

Animate feature on a vector layer

Parameters:
Name Type Description
feature ol.Feature

Feature to animate

fanim ol.featureAnimation | Array.<ol.featureAnimation>

the animation to play

Fires:
  • animationstart,event: animationend
Returns:

an object to control animation with start, stop and isPlaying function

Type
olx.animationControler

setRender3D(r)

ol.layer.Vector.prototype.setRender3D

Parameters:
Name Type Description
r ol.render3D

setTextPathStyle(style, maxResolution)

Set the style for features. This can be a single style object, an array of styles, or a function that takes a feature and resolution and returns an array of styles. If it is undefined the default style is used. If it is null the layer has no style (a null style). See ol.style for information on the default style.

Parameters:
Name Type Description
style ol.style.Style | Array.<ol.style.Style> | ol.StyleFunction
maxResolution Number

to display text, default: 0