Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

CustomRenderMethod()

CustomRenderMethod = (gl: WebGLRenderingContext | WebGL2RenderingContext, options: CustomRenderMethodInput) => void

Defined in: src/style/style_layer/custom_style_layer.ts:114

Parameters

ParameterTypeDescription
glWebGLRenderingContext | WebGL2RenderingContextThe map's gl context.
optionsCustomRenderMethodInputArgument object with render inputs like camera properties.

Returns

void