Skip to content

Class: default

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new default(id, options?): default

Parameters

NameType
idstring
optionsPartial<ParticlesLayerOptions>

Returns

default

Defined in

index.ts:182

Properties

id

id: string

Defined in

index.ts:151


type

type: string = 'custom'

Defined in

index.ts:152


renderingMode

renderingMode: "2d" | "3d" = '2d'

Defined in

index.ts:153


options

options: ParticlesLayerOptions

Defined in

index.ts:154


map

map: any

Defined in

index.ts:155


windData

windData: any

Defined in

index.ts:156

Methods

updateOptions

updateOptions(options): void

Parameters

NameType
optionsPartial<ParticlesLayerOptions>

Returns

void

Defined in

index.ts:196


initializeParticles

initializeParticles(count): void

Parameters

NameType
countany

Returns

void

Defined in

index.ts:205


setWind

setWind(windData): Promise<unknown>

Parameters

NameType
windDataany

Returns

Promise<unknown>

Defined in

index.ts:240


onAdd

onAdd(map, gl): void

Parameters

NameType
mapany
glWebGLRenderingContext

Returns

void

Defined in

index.ts:256


initialize

initialize(): void

Returns

void

Defined in

index.ts:272


moveStart

moveStart(): void

Returns

void

Defined in

index.ts:498


moveEnd

moveEnd(): void

Returns

void

Defined in

index.ts:509


getExtent

getExtent(): any[]

Returns

any[]

Defined in

index.ts:513


getSize

getSize(): number[]

Returns

number[]

Defined in

index.ts:528


zoom

zoom(): void

Returns

void

Defined in

index.ts:532


reset

reset(flag?): void

Parameters

NameType
flag?boolean

Returns

void

Defined in

index.ts:536


resize

resize(): void

Returns

void

Defined in

index.ts:567


onRemove

onRemove(map): void

Parameters

NameType
mapany

Returns

void

Defined in

index.ts:580


update

update(): void

Returns

void

Defined in

index.ts:586


drawTexture

drawTexture(matrix, dateLineOffset, isGlobal, params): void

Parameters

NameType
matrixany
dateLineOffsetany
isGlobalany
paramsany

Returns

void

Defined in

index.ts:615


drawScreen

drawScreen(): void

Returns

void

Defined in

index.ts:637


drawParticles

drawParticles(matrix, dateLineOffset, isGlobal, params): void

Parameters

NameType
matrixany
dateLineOffsetany
isGlobalany
paramsany

Returns

void

Defined in

index.ts:646


prerender

prerender(gl, projectionMatrix, projection, globeToMercMatrix, transition, centerInMercator, pixelsPerMeterRatio): void

Parameters

NameType
glany
projectionMatrixany
projectionany
globeToMercMatrixany
transitionany
centerInMercatorany
pixelsPerMeterRatioany

Returns

void

Defined in

index.ts:691


render

render(gl, projectionMatrix, projection, globeToMercMatrix, transition, centerInMercator, pixelsPerMeterRatio): void

Parameters

NameType
glany
projectionMatrixany
projectionany
globeToMercMatrixany
transitionany
centerInMercatorany
pixelsPerMeterRatioany

Returns

void

Defined in

index.ts:706

Released under the MIT License.