geolocation-sexagesimal-formatter.html.twig in Geolocation Field 8.2
Same filename and directory in other branches
Implementation for a geolocation with latitude, longitude in sexagesimal notation.
Available variables:
- lat: The latitude value.
- lng: The longitude value.
See also
1 theme call to geolocation-sexagesimal-formatter.html.twig
- GeolocationSexagesimalFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ GeolocationSexagesimalFormatter.php - Builds a renderable array for a field value.
File
templates/geolocation-sexagesimal-formatter.html.twigView source
- {#
- /**
- * @file
- * Implementation for a geolocation with latitude, longitude in sexagesimal notation.
- *
- * Available variables:
- * - lat: The latitude value.
- * - lng: The longitude value.
- *
- * @see template_preprocess()
- *
- * @ingroup themeable
- */
- #}
- <span typeof="Place">
- <span property="geo" typeof="GeoCoordinates">
- <meta property="latitude" content="{{ lat }}">
- <meta property="longitude" content="{{ lng }}">
- </span>
- <span class="geolocation-sexagesimal">{{ lat }}, {{ lng }}</span>
- </span>