Global

Type Definitions


FilterColorizeOptions

Type:
  • Object
Properties:
Name Type Description
color ol.Color

style to fill with

operation string

'enhance' or a CanvasRenderingContext2D.globalCompositeOperation

value number

a [0-1] value to modify the effect value

inner boolean

mask inner, default false


FilterTextureOptions

Type:
  • Object
Properties:
Name Type Argument Description
img Image | undefined

Image object for the texture

src string

Image source URI

scale number

scale to draw the image. Default 1.

opacity number <optional>
rotate boolean

Whether to rotate the texture with the view (may cause animation lags on mobile or slow devices). Default is true.

crossOrigin null | string | undefined

The crossOrigin attribute for loaded images.


HexagonLayout

Layout of a Hexagon. Flat means the bottom part of the hexagon is flat.

Type:
  • 'pointy' | 'flat'

Template

Template

Type:
  • Object
Properties:
Name Type Description
title string | function

title of the popup, attribute name or a function that takes a feature and returns the title

attributes Object.<TemplateAttributes>

a list of template attributes


TemplateAttributes

Template attributes for popup

Type:
  • Object
Properties:
Name Type Description
title string
format function

a function that takes an attribute and a feature and returns the formated attribute

before string

string to instert before the attribute (prefix)

after string

string to instert after the attribute (sudfix)

visible boolean | function

boolean or a function (feature, value) that decides the visibility of a attribute entry