Map
The Map component provides a reusable pattern for displaying maps in the interface.
Basic OpenStreetMap map
Default map centered on Helsingborg using the OpenStreetMap provider.
Map with markers and popup content
Shows multiple markers with custom icons, colors, and popup content using the markers parameter.
Dark styled map
Demonstrates the dark mapStyle variant while keeping the OpenStreetMap provider.
Compact map with custom height
Uses a smaller height and a closer zoom level to fit map content in tighter layouts.
API
| Parameter | Default | Type | Description |
|---|---|---|---|
|
lat
|
56.046467 | integer|float | - |
|
lng
|
12.694512 | integer|float | - |
|
zoom
|
11 | integer | - |
|
mapStyle
|
default | string | - |
|
height
|
600px | string | - |
|
markers
|
[] | array | - |
|
provider
|
openstreetmap | string | - |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-map--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |