唯杰地图 logo唯杰地图
VJMAP
EN

Class: ThreeLayer

更新于 2026-09-14约 3 分钟
.md

threejs图层.

Hierarchy

  • Evented

    ↳ ThreeLayer

Implements

  • CustomLayerInterface

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new ThreeLayer(options: ThreeLayerOptions): ThreeLayer

Parameters
Name Type
options ThreeLayerOptions

Returns: ThreeLayer

Overrides: Evented.constructor

Properties

context

• context: ThreeJsContext


id

• id: string

Implementation of: CustomLayerInterface.id


renderingMode

• Optional renderingMode: "2d" | "3d"

Implementation of: CustomLayerInterface.renderingMode


type

• type: "custom"

Implementation of: CustomLayerInterface.type

Methods

onAdd

▸ onAdd(map: any, gl: any): void

Parameters
Name Type
map any
gl any

Returns: void

Implementation of: CustomLayerInterface.onAdd


onRemove

▸ onRemove(): void

Returns: void

Implementation of: CustomLayerInterface.onRemove


render

▸ render(gl: any, matrix: any): void

Parameters
Name Type
gl any
matrix any

Returns: void

Implementation of: CustomLayerInterface.render

vjmap / Exports / WebSocketEvent

这篇文档有帮助吗?