{# /** * @file * Displays the Geofield Google Map (static) formatter. * * Available variables: * - width: Width of map. * - height: Height of map. * - scale: For use with retinal displays. Can double the width and * height of static map (possible values 1, 2 or 4). * - locations: Array of Markers locations * maps. Contains the URL-encoded address. * - zoom: Zoom level for embedded and linked maps. * - langcode: Two-letter language code to use. * - static_map_type: Type of map to use for static map (Google code, such as * 'roadmap' or 'satellite'). * - apikey: Google Maps API key. * - marker_color: The marker color (optional) * - marker_size: The marker size * * @ingroup themeable */ #} {# Define a zoom string depending on the numer of locations. #} {% set zoom_string = locations|length > 1 ? "" : "&zoom=" ~ zoom %}