Map (experimental) example

Custom height

The map defaults to a height of 500px on desktop but this can be overridden if required. The height on tablet and mobile is set to be no taller than the window.

How it looks (preview)

Paddington station

Skip map
Loading map... This map uses JavaScript to work. To view the map, turn on JavaScript in your browser's settings.
Locations on this map

How to call this example

<%= render "components/map", {
  height: 200,
  heading_text: "Paddington station",
  markers: [
    {
      geometry: {
        type: "Point",
        coordinates: [
          -0.1766,
          51.5163
        ]
      },
      properties: {
        name: "Paddington Station",
        description: "Designed by Isambard Kingdom Brunel and opened in 1838."
      }
    }
  ]
} %>