You are here

geolocation-map-formatter.html.twig in Geolocation Field 8

Default microdata theme implementation for a geolocation with latitude, longitude.

Available variables:

  • lat: The latitude value.
  • lng: The longitude value.

See also

template_preprocess()

File

templates/geolocation-map-formatter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default microdata theme implementation for a geolocation with latitude, longitude.
  5. *
  6. * Available variables:
  7. * - lat: The latitude value.
  8. * - lng: The longitude value.
  9. *
  10. * @see template_preprocess()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <div id="{{ uniqueid }}" class="geolocation-formatter-map-wrapper" {% if latitude is not empty %} data-map-lat="{{ latitude }}" {% endif %} {% if longitude is not empty %} data-map-lng="{{ longitude }}" {% endif %}>
  16. <div class="geolocation-google-map"></div>
  17. {% if locations is not empty %}
  18. <div class="geolocation-common-map-locations">
  19. {% for location in locations %}
  20. {{ location }}
  21. {% endfor %}
  22. </div>
  23. {% endif %}
  24. </div>