---
title: Interface: ThreeLayerOptions
source: https://vjmap.com/en/doc/Interface_ThreeLayerOptions.html
---

# Interface: ThreeLayerOptions

### Table of contents

#### Properties

- [context](#context)
- [id](#id)
- [onAdd](#onadd)
- [onRemove](#onremove)
- [render](#render)

### Properties

#### context

• **context**: [*ThreeJsContext*](#interfacesdefaultthreejscontextmd)

___

#### id

• `Optional` **id**: *string*

___

#### onAdd

• `Optional` **onAdd**: (`map`: *any*, `gl`: *any*) => *void*

##### Type declaration

▸ (`map`: *any*, `gl`: *any*): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `map` | *any* |
| `gl` | *any* |

**Returns:** *void*

___

#### onRemove

• `Optional` **onRemove**: () => *void*

##### Type declaration

▸ (): *void*

**Returns:** *void*

___

#### render

• `Optional` **render**: (`gl`: *any*, `matrix`: *any*) => *void*

##### Type declaration

▸ (`gl`: *any*, `matrix`: *any*): *void*

##### Parameters

| Name | Type |
| :------ | :------ |
| `gl` | *any* |
| `matrix` | *any* |

**Returns:** *void*


<a name="interfaceswebsocketeventlistenermapmd"></a>

[vjmap](#readmemd) / [Exports](#modulesmd) / WebSocketEventListenerMap
