CustomLayer
API Reference (beta) for <CustomLayer />
Property | Type | Description |
---|---|---|
implementation required | Omit<{ id: string, type: "custom", renderingMode?: "2d" | "3d", render: CustomRenderMethod(), prerender?: CustomRenderMethod(), onAdd?: (map: Map, gl: WebGLRenderingContext | WebGL2RenderingContext) => void, onRemove?: (map: Map, gl: WebGLRenderingContext | WebGL2RenderingContext) => void }, "id" | "type"> | - |
id optional | string | - |
beforeId optional | string | - |
children optional | Snippet<[]> | - |
onclick optional | (ev: MapLayerMouseEvent) => void | - |
ondblclick optional | (ev: MapLayerMouseEvent) => void | - |
onmousedown optional | (ev: MapLayerMouseEvent) => void | - |
onmouseup optional | (ev: MapLayerMouseEvent) => void | - |
onmousemove optional | (ev: MapLayerMouseEvent) => void | - |
onmouseenter optional | (ev: MapLayerMouseEvent) => void | - |
onmouseleave optional | (ev: MapLayerMouseEvent) => void | - |
onmouseover optional | (ev: MapLayerMouseEvent) => void | - |
onmouseout optional | (ev: MapLayerMouseEvent) => void | - |
oncontextmenu optional | (ev: MapLayerMouseEvent) => void | - |
ontouchstart optional | (ev: MapLayerTouchEvent) => void | - |
ontouchend optional | (ev: MapLayerTouchEvent) => void | - |
ontouchcancel optional | (ev: MapLayerTouchEvent) => void | - |