Map and motion
Map hero
The hero of the map home pages: a full-width property map with a search panel on top, or with a horizontal search bar along the bottom. On phones the panel sits above the map and the bar under it.
Examples
Map hero
The map needs a Google Maps API key in data-map-key; without it the demo map shows. data-map-offset-left keeps pins clear of the panel.
Search bar along the bottom
Add .map-hero--bar. The bar floats above the bottom edge so the Google logo stays visible. data-map-offset-bottom keeps pins clear of it. On phones the bar sits under the map.
Classes and attributes
| Name | Purpose |
|---|---|
.map-hero | Wrapper. |
.map-view.map-view--hero | The property map at hero height (see Property map). |
.map-hero-overlay | Layer that holds the panel; lets the map take clicks around it. |
.map-hero-panel | The white search card. Holds .map-hero-title, .map-hero-lead, .map-hero-form and .map-hero-stats. |
.map-hero--bar, .map-hero-panel--intro, .map-hero-bar | Variation with a short intro on the left and a horizontal search bar along the bottom (.search-card--inline). |
data-map-offset-bottom="150" | On the map: pixels covered by the bottom bar (wide screens). |
data-map-offset-left="470" | On the map: pixels covered by the panel (wide screens). |