Type Definitions
-
animationControler
-
An animation controler object an object to control animation with start, stop and isPlaying function.
To be used with olx.Map#animateFeature or ol.layer.Vector#animateFeatureType:
- Object
Properties:
Name Type Description startfunction start animation.
stopfunction stop animation option arguments can be passed in animationend event.
isPlayingfunction return true if animation is playing.
-
CanvasFilterOptions
-
Type:
- Object
Properties:
Name Type Description urlurl Takes an IRI pointing to an SVG filter element
blurnumber Gaussian blur value in px
brightnessnumber linear multiplier to the drawing, under 100: darkens the image, over 100 brightens it
contrastnumber Adjusts the contrast, under 0: black, 100 no change
shadowol.pixel Applies a drop shadow effect, pixel offset
shadowBlurnumber Blur radius
shadowColornumber grayscalenumber 0: unchanged, 100: completely grayscale
hueRotatenumber Hue rotation angle in deg
invertnumber Inverts the drawing, 0: unchanged, 100: invert
saturatenumber Saturates the drawing, 0: unsaturated, 100: unchanged
sepianumber Converts the drawing to sepia, 0: sepia, 100: unchanged
-
FilterColorizeOptions
-
Type:
- Object
Properties:
Name Type Description colorol.Color style to fill with
operationstring 'enhance' or a CanvasRenderingContext2D.globalCompositeOperation
valuenumber a value to modify the effect value [0-1]
innerboolean mask inner, default false
preserveAlphaboolean preserve alpha channel, default false
-
FilterPencilSketchOptions
-
Type:
- Object
Properties:
Name Type Description blurnumber blur value in pixel, default 8
valuenumber intensity value [0,1], default .8
-
FilterPointillismOptions
-
Type:
- Object
Properties:
Name Type Description saturatenumber saturation, default 2
-
FilterPointillismOptions
-
Type:
- Object
Properties:
Name Type Description saturatenumber saturation, default 2
-
FilterTextureOptions
-
Type:
- Object
Properties:
Name Type Argument Description imgImage | undefined Image object for the texture
srcstring Image source URI
scalenumber scale to draw the image. Default 1.
opacitynumber <optional>
rotateboolean Whether to rotate the texture with the view (may cause animation lags on mobile or slow devices). Default is true.
crossOriginnull | string | undefined The crossOrigin attribute for loaded images.
-
GeoImageOptions
-
Type:
- Object
Properties:
Name Type Description urlurl url of the static image
imageimage the static image, if not provided, use url to load an image
imageCenterol.Coordinate coordinate of the center of the image
imageScaleol.Size | number [scalex, scaley] of the image
imageRotatenumber angle of the image in radian, default 0
imageCropol.Extent of the image to be show (in the image) default: [0,0,imageWidth,imageHeight]
imageMaskArray.<ol.Coordinate> linestring to mask the image on the map
-
HexagonLayout
-
Layout of a Hexagon. Flat means the bottom part of the hexagon is flat.
Type:
- 'pointy' | 'flat'
-
olLegendItemOptions
-
ol/legend/Item options
Type:
- Object
Properties:
Name Type Description titlestring row title
classNameclassName featureol.Feature a feature to draw on the legend
typeGeomstring type geom to draw with the style or the properties if no feature is provided
propertiesObject a set of properties to use with a style function
styleol.style.Style.styleLike a style or a style function to use to draw the legend symbol
textStyleol.style.Text a text style to draw the item title in the legend
widthnumber | undefined the symbol width, default use the default width
heightnumber | undefined ths symbol height, default use the default height
marginnumber | undefined -
svgOperation
-
Type:
- Object
Properties:
Name Type Description attributes.feoperationstring filter primitive tag name
attributes.operationsArray.<ol.ext.SVGOperation> a list of operations
-
Template
-
Template
Type:
- Object
Properties:
Name Type Description titlestring | function title of the popup, attribute name or a function that takes a feature and returns the title
attributesObject.<TemplateAttributes> a list of template attributes
-
TemplateAttributes
-
Template attributes for popup
Type:
- Object
Properties:
Name Type Description titlestring formatfunction a function that takes an attribute and a feature and returns the formated attribute
beforestring string to instert before the attribute (prefix)
afterstring string to instert after the attribute (sudfix)
visibleboolean | function boolean or a function (feature, value) that decides the visibility of a attribute entry
-
viewTourDestinations
-
Destination
Type:
- Object
Properties:
Name Type Argument Default Description typestring <optional>
flyto animation type (flyTo, moveTo), default flyTo
durationnumber <optional>
2000 animation duration
center=ol.coordinate <optional>
destination coordinate, default current center
zoomnumber <optional>
destination zoom, default current zoom
zoomAtnumber <optional>
-2 zoom to fly to, default min (current zoom, zoom) -2
easingfunction <optional>
easing function used during the animation, defaults ol/easing~inAndOut
rotationnumber <optional>
The rotation of the view at the end of the animation
anchoranchor <optional>
Optional anchor to remain fixed during a rotation or resolution animation.