POI Maps

Simple Google Maps integration for static and dynamic maps. The maps are responsive by default.

The width, height and scale properties are optional but the defaults for each are shown below.

A map showing the centre of London
Static map
= ui_component('poi_maps/static', properties: {as_below} )
{
  alt: "A map showing the centre of London",
  width: 320,
  height: 240,
  latitude: 51.5073,
  longitude: -0.1277
}
A map showing the centre of London
Static map
= ui_component('poi_maps/static', properties: {as_below} )
{
  alt: "A map showing the centre of London",
  zoom: 12,
  width: 320,
  height: 240,
  marker: false,
  latitude: 51.5073,
  longitude: -0.1277
}
Dynamic map
= ui_component('poi_maps/dynamic', properties: {as_below} )
{
  alt: "A map showing the centre of London",
  zoom: 15,
  scale: 2,
  width: 320,
  height: 240,
  latitude: 51.5073,
  longitude: -0.1277
}