geofield-google-map.html.twig in Geofield Map 8
Same filename and directory in other branches
Theme implementation to display a Geofield Google Map.
This creates a placeholder for the map to be injected in.
Available variables:
- mapid
- height
- width
2 theme calls to geofield-google-map.html.twig
- GeofieldMap::latLonProcess in src/
Element/ GeofieldMap.php - Generates the Geofield Map form element.
- geofield_map_googlemap_render in ./
geofield_map.module - Load all Geofield Google Map client files and return markup for a map.
File
templates/geofield-google-map.html.twigView source
- {#
- /**
- * @file
- * Theme implementation to display a Geofield Google Map.
- *
- * This creates a placeholder for the map to be injected in.
- *
- * Available variables:
- * - mapid
- * - height
- * - width
- *
- * @ingroup themeable
- *
- */
- #}
- <div id="{{ mapid }}" class="geofield-google-map" style="min-width: 200px; width: {{ width }}; min-height: 200px; height: {{ height }}"></div>