You are here

ip_geoloc_map_multi_visitor.html.twig in IP Geolocation Views & Maps 8

ip_geoloc_map_multi_visitor.tpl.php

This template is typically used to output a map of visitor locations in a non-view context, e.g. through a block.

Variables available:

  • $locations: array of locations each with lat/long coordinates and balloon texts; the map will be centered on the first location, usually the current visitor location
  • $div_id: id of the div in which the map will be injected; arbitrary but must be unique
  • $map_options: passed to Google Maps API, for example: '{"mapTypeId":"roadmap", "zoom": 10}'
  • $map_style: CSS style string, like 'height: 200px; width: 500px'

File

templates/ip_geoloc_map_multi_visitor.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * ip_geoloc_map_multi_visitor.tpl.php
  5. *
  6. * This template is typically used to output a map of visitor locations in a
  7. * non-view context, e.g. through a block.
  8. *
  9. * Variables available:
  10. * - $locations: array of locations each with lat/long coordinates and balloon
  11. * texts; the map will be centered on the first location, usually the current
  12. * visitor location
  13. * - $div_id: id of the div in which the map will be injected; arbitrary but
  14. * must be unique
  15. * - $map_options: passed to Google Maps API, for example:
  16. * '{"mapTypeId":"roadmap", "zoom": 10}'
  17. * - $map_style: CSS style string, like 'height: 200px; width: 500px'
  18. */
  19. #}
  20. {#
  21. Original
  22. <div class="ip-geoloc-map visitor-map">
  23. <?php print ip_geoloc_output_map_multi_visitor($locations, $div_id, $map_options, $map_style); ?>
  24. </div>
  25. #}
  26. <div class="ip-geoloc-map visitor-map">
  27. {{ ip_geoloc_output_map_multi_visitor }}
  28. </div>