Map (experimental) example
Max bounds
Limits the map to a particular area. Numbers represent West, South, East, and North. Note that if the numbers are wrong or contradict this will have adverse effects on the map.
How it looks (preview)
A map of only the area around London
Loading map...
This map uses JavaScript to work. To view the map, turn on JavaScript in your browser's settings.
How to call this example
<%= render "components/map", {
heading_text: "A map of only the area around London",
zoom: 9,
centre: [
-0.12,
51.5
],
max_bounds: [
-1,
51.1,
1,
51.9
]
} %>