Using the map component
Render Map inside a container with an explicit height. The map fills its parent and
does not create height on its own. Compose controls, markers, popups, routes, arcs,
GeoJSON layers, and clusters as children. A ref exposes the underlying MapLibre map for
features that are not wrapped by mapcn.
Without theme, the component watches the document's light or dark class,
data-theme, and then the system preference. Pass theme to control it directly.
The default styles use CARTO basemaps. Those tiles are governed by CARTO's separate
terms, not mapcn's MIT license. Pass styles for another MapLibre-compatible provider,
or use blank for a transparent tile-less canvas and add your own data layers. See the
collection's runtime guide for the worker, CSP, self-hosting, and provider setup.