simple-gmap-output.tpl.php in Simple Google Maps 7
File
simple-gmap-output.tpl.php
View source
<?php
if ($include_map) {
$new_map_type = 0;
if ($map_type == 'k') {
$new_map_type = 1;
}
?>
<iframe width="<?php
print $width;
?>" height="<?php
print $height;
?>" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/embed?origin=mfe&pb=!1m4!2m1!1s<?php
print $url_suffix;
?>!5e<?php
print $new_map_type;
?>!6i<?php
print $zoom;
?>!5m1!1s<?php
print $langcode;
?>"></iframe>
<?php
}
if ($include_static_map) {
$static_w = (int) $width;
$static_h = (int) $height;
$static_s = (int) $static_scale;
?>
<div class="simple-gmap-static-map">
<img src="https://maps.googleapis.com/maps/api/staticmap?size=<?php
print $static_w;
?>x<?php
print $static_h;
?>&scale=<?php
print $static_s;
?>&zoom=<?php
print $zoom;
?>&language=<?php
print $langcode;
?>&maptype=<?php
print $static_map_type;
?>&markers=color:red|<?php
print $url_suffix;
?>&sensor=false&key=<?php
print $apikey;
?>" />
</div>
<?php
}
if ($include_link) {
?>
<p class="simple-gmap-link"><a href="https://www.google.com/maps?q=<?php
print $url_suffix;
?>&hl=<?php
print $langcode;
?>&z=<?php
print $zoom;
?>&t=<?php
print $map_type;
?>" target="_blank"><?php
print $link_text;
?></a></p>
<?php
}
if (!empty($address_text)) {
?>
<p class="simple-gmap-address"><?php
print $address_text;
?></p>
<?php
}