Class: ReglBaseLayer
Hierarchy
-
Evented
↳ ReglBaseLayer
Implements
- CustomLayerInterface
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new ReglBaseLayer(): ReglBaseLayer
Returns: ReglBaseLayer
Inherited from: Evented.constructor
Properties
id
• id: string
Implementation of: CustomLayerInterface.id
map
• map: Map
regl
• regl: any
renderAnimation
• Optional renderAnimation: boolean
type
• type: "custom"
Implementation of: CustomLayerInterface.type
Methods
frame
▸ Protected Abstract frame(gl: WebGLRenderingContext, matrix: number[], context?: any): void
Parameters
| Name | Type |
|---|---|
gl |
WebGLRenderingContext |
matrix |
number[] |
context? |
any |
Returns: void
getReglInitialization
▸ Protected Abstract getReglInitialization(gl: WebGLRenderingContext): any
Parameters
| Name | Type |
|---|---|
gl |
WebGLRenderingContext |
Returns: any
init
▸ Protected Abstract init(map: Map, gl: WebGLRenderingContext): void
Parameters
| Name | Type |
|---|---|
map |
Map |
gl |
WebGLRenderingContext |
Returns: void
onAdd
▸ onAdd(map: Map, gl: WebGLRenderingContext): void
Parameters
| Name | Type |
|---|---|
map |
Map |
gl |
WebGLRenderingContext |
Returns: void
Implementation of: CustomLayerInterface.onAdd
onRemove
▸ onRemove(map: Map, gl: WebGLRenderingContext): void
Parameters
| Name | Type |
|---|---|
map |
Map |
gl |
WebGLRenderingContext |
Returns: void
Implementation of: CustomLayerInterface.onRemove
prerender
▸ prerender(gl: WebGLRenderingContext, matrix: number[]): void
Parameters
| Name | Type |
|---|---|
gl |
WebGLRenderingContext |
matrix |
number[] |
Returns: void
Implementation of: CustomLayerInterface.prerender
remove
▸ Protected Abstract remove(map: Map, gl: WebGLRenderingContext): void
Parameters
| Name | Type |
|---|---|
map |
Map |
gl |
WebGLRenderingContext |
Returns: void
render
▸ render(gl: WebGLRenderingContext, matrix: number[]): void
NOTE: map won't call it every frame.
Parameters
| Name | Type |
|---|---|
gl |
WebGLRenderingContext |
matrix |
number[] |
Returns: void
Implementation of: CustomLayerInterface.render
triggerRepaint
▸ triggerRepaint(): void
Returns: void