Offices map
ProA dotted world map shaded by daylight, with pulsing offices, local times, arcs between them and a card that glides from city to city.
- An about or careers page that should show where a team works and that someone is always online.
- A contact page with several offices, each with an address and local time.
- Plotting hundreds of live data points; use revenue-globe or a mapping library.
- A single office; a contact-section office card is enough.
Installation
Pro source and install commands unlock with a Pro plan.
Usage
Use this on an about, careers or contact page to show where a team works. Replace sampleOffices in offices-map-data.ts with your offices, time zones, photos and headcounts; local times, open hours and the daylight shading derive from the real clock.
import { OfficesMap } from "@/components/arc/blocks/offices-map/offices-map"; export function Offices() { return ( <OfficesMap title="Where we work" offices={[ { id: "lisbon", city: "Lisbon", country: "Portugal", lat: 38.72, lon: -9.14, timeZone: "Europe/Lisbon", address: "Rua do Exemplo 10", headcount: 27, team: [{ name: "Sofia Ramirez", photo: "/team/sofia.jpg" }], photo: { src: "/offices/lisbon.jpg", alt: "The Lisbon office" }, }, ]} /> );}OfficesMap
A dotted world map of a company's offices, shaded by where the sun is up right now. Open offices pulse, every office shows its local time, arcs travel between them, and a card with a photo and the team glides from office to office.
officesOffice[]sampleOfficesOffices with id, city, country, lat, lon, IANA timeZone, address, headcount, team faces, photo and an optional labelSide.titlestring"Eight offices, one working day"Section heading.descriptionstring–Line under the heading.activeOfficeIdstring | null–Controlled id of the office whose card is open. Leave it out for uncontrolled use.onActiveOfficeChange(id: string | null) => void–Called when an office is hovered, focused, tapped or closed.workingHours[number, number][9, 18]Local open hours, start inclusive and end exclusive, used for the open state and the open count. Weekends count as closed.autoplaybooleantrueSends arcs between open offices on a loop while the map is in view.classNamestring–Extra class on the section.- Tab
- Moves into the office markers. Focusing an office opens its card.
- ArrowRightorArrowLeft
- Moves to the next or previous office from west to east.
- HomeorEnd
- Jumps to the westernmost or easternmost office.
- Escape
- Closes the card.
- Each office is a button whose name includes the city, country, local time, open state and headcount.
- The card is a labelled group tied to the marker with aria-controls and aria-expanded.
- The open count above the map is a polite live region that updates as offices open and close.
- The dotted canvas and arcs are decorative and hidden from assistive tech.
- Below 620px the markers stay tappable and a row of city tabs drives a card panel under the map.
- Land dots are shaded by the real subsolar point, so the night side of the map is dimmer and moves through the day.
- Arcs draw and retract along a curved path, then ping the office they land on. Pointing at an office fans arcs out to every other office.
- The card glides between offices on a spring that keeps its velocity; its content crossfades with a short blur.
- Reduced motion removes the pulse, arcs and glide; the card moves and changes instantly.
- The map keeps its aspect ratio and scales with the container.
- Below 620px labels hide, markers shrink, and the card becomes a panel under the map chosen from a row of city tabs.
- The land is drawn once per size on a canvas in six alpha batches and redrawn each minute for the daylight shading.
- Arcs only animate while the map is in view and the tab is visible.
Notes for AI
Give your coding assistant the Markdown reference instead of screenshots.
- Choose it for about, careers or contact pages of distributed companies.
- Only offices and their time zones are required; local time, open state and the daylight shading come from the clock.
- Set labelSide on offices that sit close together so their labels do not overlap.
- Swap mapBounds in offices-map-data.ts to crop the map to your regions.
The full library index for assistants is at /llms.txt.