For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages
are available by appending .md to any URL.
addLayer
Adds a layer to the map.
Parameters
layer
Layer to be added.
Throws
if layer with the same id is already added to the map.