google-map-field.tpl.php in Google Map Field 7.2
Same filename and directory in other branches
Default theme implementation for google map fields.
Available variables:
- $name: the display name of the map
- $lat: The latitude of the marker for the map being displayed
- $lng: The longitude of the marker for the map being displayed
- $zoom: The zoom factor of the map being displayed
1 theme call to google-map-field.tpl.php
- google_map_field_format_field in ./
google_map_field.module - This function formats the google map field for display, called by google_map_field_field_formatter_view().
File
theme/google-map-field.tpl.phpView source
<?php
/**
* @file
* Default theme implementation for google map fields.
*
* Available variables:
* - $name: the display name of the map
* - $lat: The latitude of the marker for the map being displayed
* - $lng: The longitude of the marker for the map being displayed
* - $zoom: The zoom factor of the map being displayed
*/
?>
<div class="google-map-field">
<div class="google-map-field-label">
<?php
print $name;
?>
</div>
<div class="google_map_field_display" data-lat="<?php
print $lat;
?>" data-lng="<?php
print $lng;
?>" data-zoom="<?php
print $zoom;
?>"></div>
</div>