You are here

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

Implementation for a geolocation with latitude, longitude in sexagesimal notation.

Available variables:

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

See also

template_preprocess()

File

templates/geolocation-sexagesimal-formatter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Implementation for a geolocation with latitude, longitude in sexagesimal notation.
  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. <span typeof="Place">
  16. <span property="geo" typeof="GeoCoordinates">
  17. <meta property="latitude" content="{{ lat }}">
  18. <meta property="longitude" content="{{ lng }}">
  19. </span>
  20. <span class="geolocation-sexagesimal">{{ lat }}, {{ lng }}</span>
  21. </span>