mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 08:15:44 +00:00
feat(map): add open-source map block (MapLibre GL + OpenFreeMap)
Single-location + multi-marker, side-by-side and map-only layouts. Zero-config — no API key. MapLibre is vendored via vite and loaded conditionally when a page contains a map block. Provider resolution is a single switchable function so other tile providers can be added later without changing the block contract.
This commit is contained in:
1 parent
f107371dc2
commit
4de0ad0af9
12 files changed
+518
-2
No files matched your search
@@ -47,6 +47,49 @@ sections:
|
||||
design:
|
||||
columns: "3"
|
||||
|
||||
- block: map
|
||||
content:
|
||||
title: "Visit the Lab"
|
||||
subtitle: "We're based on the Stanford campus — drop in any time during office hours."
|
||||
location:
|
||||
address: |
|
||||
353 Jane Stanford Way
|
||||
Stanford, CA 94305
|
||||
United States
|
||||
lat: 37.4275
|
||||
lng: -122.1697
|
||||
zoom: 15
|
||||
cta:
|
||||
directions:
|
||||
text: "Get directions"
|
||||
phone: "+1-650-555-0142"
|
||||
email: "hello@example.com"
|
||||
design:
|
||||
layout: side-by-side
|
||||
height: md
|
||||
style: streets
|
||||
|
||||
- block: map
|
||||
content:
|
||||
title: "Where to find us"
|
||||
markers:
|
||||
- lat: 37.4275
|
||||
lng: -122.1697
|
||||
title: "Stanford AI Lab"
|
||||
description: "Main campus building"
|
||||
- lat: 37.4419
|
||||
lng: -122.1430
|
||||
title: "Palo Alto Office"
|
||||
description: "Downtown Palo Alto"
|
||||
- lat: 37.7749
|
||||
lng: -122.4194
|
||||
title: "San Francisco HQ"
|
||||
description: "Mission District"
|
||||
design:
|
||||
layout: map-only
|
||||
height: lg
|
||||
style: light
|
||||
|
||||
- block: cta-card
|
||||
content:
|
||||
title: "Ready to get started?"
|
||||
|
||||
Reference in new issue
Block a user