Register an SVG protocol for on-the-fly parameterized icon rendering
URL format: ${protocol}://<id>.png?color=#ff0000&width=24&pixelRatio=2
${protocol}://<id>.png?color=#ff0000&width=24&pixelRatio=2
MapLibre GL JS instance
Protocol name
Record mapping icon IDs to SVG strings
Function to unregister the protocol
If maplibre doesn't have addProtocol/removeProtocol
Register an SVG protocol for on-the-fly parameterized icon rendering
URL format:
${protocol}://<id>.png?color=#ff0000&width=24&pixelRatio=2