leaflet-map.html.twig in Leaflet 2.1.x
Same filename and directory in other branches
Theme implementation to display a Leaflet map.
This creates a placeholder for the map to be injected in.
Available variables:
- map_id
- height
Note: min-width is set so that a map will show when "Inline" is specified for the associated field label. This may of course be overridden. The default field label style is "Above" with a width of 100%.
1 theme call to leaflet-map.html.twig
- LeafletService::leafletRenderMap in src/
LeafletService.php - Load all Leaflet required client files and return markup for a map.
File
templates/leaflet-map.html.twigView source
- {#
- /**
- * @file
- * Theme implementation to display a Leaflet map.
- *
- * This creates a placeholder for the map to be injected in.
- *
- * Available variables:
- * - map_id
- * - height
- *
- * Note: min-width is set so that a map will show when "Inline" is specified
- * for the associated field label. This may of course be overridden. The default
- * field label style is "Above" with a width of 100%.
- *
- * @ingroup themeable
- *
- */
- #}
- <div id="{{ map_id }}" style="min-width: 150px; {% if height is not empty %}height: {{ height }}{% endif %}"></div>