Display pin overlay and link map
This commit is contained in:
@@ -525,10 +525,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Google Maps */
|
/* Google Maps */
|
||||||
|
.sp-google-map-container {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
.sp-google-map {
|
.sp-google-map {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 320px;
|
height: 320px;
|
||||||
}
|
}
|
||||||
|
.sp-google-map-link {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
background: url(../images/maps/pin.png) no-repeat center center;
|
||||||
|
background-size: 26px 44px;
|
||||||
|
}
|
||||||
.sp-google-map img {
|
.sp-google-map img {
|
||||||
max-width: none !important;
|
max-width: none !important;
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
assets/images/maps/pin.png
Normal file
BIN
assets/images/maps/pin.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
@@ -25,12 +25,15 @@ if ( 'satellite' !== $maptype ) $maptype = 'roadmap';
|
|||||||
|
|
||||||
if ( $latitude != null && $longitude != null ):
|
if ( $latitude != null && $longitude != null ):
|
||||||
?>
|
?>
|
||||||
<iframe
|
<div class="sp-google-map-container">
|
||||||
class="sp-google-map<?php if ( is_tax( 'sp_venue' ) ): ?> sp-venue-map<?php endif; ?>"
|
<iframe
|
||||||
width="600"
|
class="sp-google-map<?php if ( is_tax( 'sp_venue' ) ): ?> sp-venue-map<?php endif; ?>"
|
||||||
height="320"
|
width="600"
|
||||||
frameborder="0" style="border:0"
|
height="320"
|
||||||
src="//tboy.co/maps_embed?q=<?php echo $address; ?>&center=<?php echo $latitude; ?>,<?php echo $longitude; ?>&zoom=<?php echo $zoom; ?>&maptype=<?php echo $maptype; ?>" allowfullscreen>
|
frameborder="0" style="border:0"
|
||||||
</iframe>
|
src="//tboy.co/maps_embed?q=<?php echo $address; ?>&center=<?php echo $latitude; ?>,<?php echo $longitude; ?>&zoom=<?php echo $zoom; ?>&maptype=<?php echo $maptype; ?>" allowfullscreen>
|
||||||
|
</iframe>
|
||||||
|
<a href="https://www.google.com.au/maps/place/<?php echo $address; ?>/@<?php echo $latitude; ?>,<?php echo $longitude; ?>,<?php echo $zoom; ?>z" target="_blank" class="sp-google-map-link"></a>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
Reference in New Issue
Block a user