Neighbourhood
The area: a lede, the nearby list and the commute map.
The area: a heading, an optional authored lede, and thecommute explorer beside the list of nearby places.
One section, not two. The CMS catalog briefly hadneighbourhood (the prose) and commute (the map) as separately placeable entries, which handed an editor a knob with no rendering behind it — there is no layout that "the map moved away from the copy" could produce, and the nearby list then belonged to neither and rendered nowhere.
Like Overview, this is a data section that accepts one authored string. Unwritten, the heading and the map still stand, so the CMS can add a sentence but can never empty the section. body takes a string or a list of them, which is what lets the hand-composed pages and a CMS prose slot share one component without either flattening its content.
The explorer inside talks to live public OSM servers on submit.Geocoding is Nominatim and routing is OSRM, both keyless. That is real here, not mocked.
With an authored lede
The neighbourhood
Everyday essentials are a short walk or one stop away.
How far is this home from your life?
Enter a place you travel to often. We show the time and distance from this home, and draw the route.
Enter a place to see the journey.
Public transport is not available yet.
Routing by OSRM. Map data © OpenStreetMap contributors.
- Light railBolbro stop (L1)5 min walk
- SchoolProvstegårdsskolen7 min walk
- NurseryBørnehuset Bolbro4 min walk
- Shopping centreRosengårdcentret8 min by bus
- Green spaceMunke Mose park10 min walk
With nothing written
The section stands. This is the state that makes the lede safe to leave empty in the CMS.
The neighbourhood
How far is this home from your life?
Enter a place you travel to often. We show the time and distance from this home, and draw the route.
Enter a place to see the journey.
Public transport is not available yet.
Routing by OSRM. Map data © OpenStreetMap contributors.
- Light railBolbro stop (L1)5 min walk
- SchoolProvstegårdsskolen7 min walk
- NurseryBørnehuset Bolbro4 min walk
Props
| Prop | Type | Required |
|---|---|---|
| heading | string | yes |
| body The authored lede — the section's one editorial field. A single string (the hand-composed pages' `nearbyBody`) or a list of paragraphs (a CMS `prose` slot); accepting both is what lets one component serve both hosts without either flattening its content to suit the other. | string | string[] | — |
| nearby | NearbyPlace[] | yes |
| coordinates | GeoPoint | yes |
| commute | CommuteContent | yes |
| mapTitle | string | yes |
| mapEmbedSrc | string | yes |
| mapLink | string | yes |
| mapLinkLabel | string | yes |
| headingLevel | 1 | 2 | 3 | 4 | 5 | 6 | — |
| class | string | — |
| Field | Type | Required |
|---|---|---|
| icon | string | yes |
| category | string | yes |
| name | string | yes |
| distance | string | yes |