# CustomRenderMethod

> **CustomRenderMethod** = (`gl`: `WebGL2RenderingContext`, `options`: [`CustomRenderMethodInput`](<https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/CustomRenderMethodInput/index.md>)) =\> `void`

Defined in: [style/style\_layer/custom\_style\_layer.ts:183](<https://github.com/maplibre/maplibre-gl-js/blob/538a7680ab16d5cf5a6564ee0ce72a11be14d142/src/style/style_layer/custom_style_layer.ts#L183>)

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `gl` | `WebGL2RenderingContext` | The map's gl context. |
| `options` | [`CustomRenderMethodInput`](<https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/CustomRenderMethodInput/index.md>) | Argument object with render inputs like camera properties. |

## Returns

`void`
