Class: Base

ol.particule. Base

Abstract base class; normally only used for creating subclasses. An object with coordinates, draw and update


new Base(options)

Parameters:
Name Type Description
options *
Properties
Name Type Description
overlay ol.Overlay
coordinate ol.pixel

the position of the particule

Extends

  • ol.Object

Methods


draw(ctx)

Draw the particule

Parameters:
Name Type Description
ctx CanvasRenderingContext2D

getOverlay()

Get the particule overlay

Returns:
Type
ol.Overlay

getRandomCoord(dt)

Update the particule

Parameters:
Name Type Description
dt number

timelapes since last call


setOverlay(overl)

Set the particule overlay

Parameters:
Name Type Description
overl ol.Overlay

update(dt)

Update the particule

Parameters:
Name Type Description
dt number

timelapes since last call