Lumeo

Map

Interactive geographic map with declarative markers. Powered by Leaflet — open-source, no API key required. Ships with three named tile presets and accepts custom URL templates.

When to Use

  • Locating addresses, stores, or events on a slippy map
  • Visualizing point data sets with up to a few hundred markers
  • Pickers that capture a lat/lon from a click anywhere on the map
  • Read-only embeds in dashboards, contact pages, and event details
Centered at 48.137, 11.575 — zoom 6
All variants honor the theme — switch the docs site to dark mode and the Default circle's border swaps to the dark background color.
Click anywhere on the map to drop a marker.

API Reference

Map

Prop Type Default Description
Center(double Lat, double Lon)(51.0, 10.4)Map center. Two-way bindable.
Zoomint5Leaflet zoom level (0–18). Two-way bindable.
Heightstring"400px"CSS height applied to the container.
TileLayerstring"OpenStreetMap"Preset name (OpenStreetMap, CartoLight, CartoDark, Satellite, Terrain) or a raw {z}/{x}/{y} URL template.
ZoomControlbooltrueShow Leaflet's +/− zoom buttons.
AttributionbooltrueShow the tile-provider attribution control. Tile providers' terms typically require attribution to stay visible — leave on.
ScrollWheelZoombooltrueMirrors Leaflet's default. Set to false in dense scrollable layouts to avoid trapping page scroll.
OnClickEventCallback<(double, double)>Fires with (lat, lon) when the user clicks the map.
ChildContentRenderFragment?nullPlace MapMarker children here.
Classstring?nullExtra CSS classes on the root container.

MapMarker

Prop Type Default Description
Latdouble0Latitude in decimal degrees.
Londouble0Longitude in decimal degrees.
Titlestring?nullTooltip on hover and fallback popup body.
IconUrlstring?nullBitmap icon URL (32×32 anchored bottom-center). When set, overrides Variant / Color / Icon.
Variantstring"Default"Visual style of the auto-generated marker: Default (filled circle), Outline, Pin (classic teardrop), or Dot (minimal).
Colorstring?nullOverride the marker fill. Friendly names (red, green, yellow, blue, purple, pink, orange, teal, gray, slate) or any CSS color. Null = theme primary.
Labelstring?nullPermanent text label rendered above the marker (always visible).
IconRenderFragment?nullInline content inside the marker circle — a letter, number, or <Blazicon> SVG.
PopupRenderFragment?nullRich popup body. Falls back to Title when null. Styled as a shadcn card via map.css.
OnClickEventCallbackFires when the marker icon is clicked.