Class: Layer ¶
Table of contents ¶
Constructors ¶
Properties ¶
Accessors ¶
Methods ¶
- update
- moveStart
- moveEnd
- handleResize
- handleZoom
- updateOptions
- getMask
- setMask
- onAdd
- calcWrappedWorlds
- onRemove
- prerender
- picker
- render
Constructors ¶
constructor ¶
• new Layer(id
, source
, options?
): Layer
Parameters ¶
Name | Type |
---|---|
id | string |
source | SourceType |
options? | LayerOptions |
Returns ¶
Defined in ¶
Properties ¶
gl ¶
• gl: null
| WebGLRenderingContext
| WebGL2RenderingContext
Defined in ¶
map ¶
• map: WithNull
<Map
>
Defined in ¶
id ¶
• id: string
Defined in ¶
type ¶
• type: string
Defined in ¶
renderingMode ¶
• renderingMode: "2d"
| "3d"
Defined in ¶
sync ¶
• sync: default
Defined in ¶
scene ¶
• scene: Scene
Defined in ¶
planeCamera ¶
• planeCamera: OrthographicCamera
Defined in ¶
renderer ¶
• renderer: Renderer
Defined in ¶
Accessors ¶
camera ¶
• get
camera(): OrthographicCamera
| PerspectiveCamera
Returns ¶
OrthographicCamera
| PerspectiveCamera
Defined in ¶
Methods ¶
update ¶
▸ update(): void
Returns ¶
void
Defined in ¶
moveStart ¶
▸ moveStart(): void
Returns ¶
void
Defined in ¶
moveEnd ¶
▸ moveEnd(): void
Returns ¶
void
Defined in ¶
handleResize ¶
▸ handleResize(): void
Returns ¶
void
Defined in ¶
handleZoom ¶
▸ handleZoom(): void
Returns ¶
void
Defined in ¶
updateOptions ¶
▸ updateOptions(options
): void
Parameters ¶
Name | Type |
---|---|
options | Partial <LayerOptions > |
Returns ¶
void
Defined in ¶
getMask ¶
▸ getMask(): any
Returns ¶
any
Defined in ¶
setMask ¶
▸ setMask(mask
): void
Parameters ¶
Name | Type |
---|---|
mask | any |
Returns ¶
void
Defined in ¶
onAdd ¶
▸ onAdd(m
, gl
): void
Parameters ¶
Name | Type |
---|---|
m | Map |
gl | WebGLRenderingContext |
Returns ¶
void
Defined in ¶
calcWrappedWorlds ¶
▸ calcWrappedWorlds(): number
[]
Returns ¶
number
[]
Defined in ¶
onRemove ¶
▸ onRemove(): void
Returns ¶
void
Defined in ¶
prerender ¶
▸ prerender(): void
Returns ¶
void
Defined in ¶
picker ¶
▸ picker(coordinates
): Promise
<any
>
Parameters ¶
Name | Type |
---|---|
coordinates | any |
Returns ¶
Promise
<any
>
Defined in ¶
render ¶
▸ render(): void
Returns ¶
void