Skip to main content
Guides

Example: Pickup Locator

This real-world pickup locator pairs a location list with the map. The list keeps addresses and opening hours available when tiles fail, and it gives keyboard users a direct way to choose a location.

It demonstrates reactive selection, accessible location buttons, explicit OpenStreetMap attribution, marker popups, error fallback content, and a GeoJSON delivery zone.

Pickup locator
Selected: Flinders Lane, Centre Place, Melbourne

Use CSS Grid to place the list beside the map on wide screens and above it on small screens. Keep the list in the document even when the map is the main visual.

GeoJSON coordinates use [longitude, latitude]; Leaflet marker positions use [latitude, longitude].

Was this page helpful?