ip-geoloc-leaflet.html.twig in IP Geolocation Views & Maps 8
ip-geoloc-leaflet.tpl.php
This template is used to output a placeholder for a map with location markers taken from a View.
Variables available:
- $map_id
- $height
- $view (to add title?)
1 theme call to ip-geoloc-leaflet.html.twig
- IpGeoLocPluginStyleLeaflet::render in src/
Plugin/ views/ style/ IpGeoLocPluginStyleLeaflet.php - Transform the View result in a list of marker locations and render on map.
File
templates/ip-geoloc-leaflet.html.twigView source
- {#
- /**
- * @file
- * ip-geoloc-leaflet.tpl.php
- *
- * This template is used to output a placeholder for a map with location
- * markers taken from a View.
- *
- * Variables available:
- * - $map_id
- * - $height
- * - $view (to add title?)
- */
-
- $marker_set = \Drupal::state()->get('ip_geoloc_marker_directory', '/markers');
- $marker_set = drupal_substr($marker_set, strrpos($marker_set, '/') + 1);
- #}
-
-
-
- <div class="ip-geoloc-map leaflet-view {{ marker_set }}">
- <div id="{{ map_id }}" {{ style|raw }}></div>
- </div>