You are here

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?)

File

templates/ip-geoloc-leaflet.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * ip-geoloc-leaflet.tpl.php
  5. *
  6. * This template is used to output a placeholder for a map with location
  7. * markers taken from a View.
  8. *
  9. * Variables available:
  10. * - $map_id
  11. * - $height
  12. * - $view (to add title?)
  13. */
  14. $marker_set = \Drupal::state()->get('ip_geoloc_marker_directory', '/markers');
  15. $marker_set = drupal_substr($marker_set, strrpos($marker_set, '/') + 1);
  16. #}
  17. <div class="ip-geoloc-map leaflet-view {{ marker_set }}">
  18. <div id="{{ map_id }}" {{ style|raw }}></div>
  19. </div>