Add maptype support to venue map

This commit is contained in:
Brian Miyaji
2016-07-30 02:25:37 +10:00
parent 36bfd8bf4a
commit b426dd7dda
2 changed files with 1 additions and 3 deletions

View File

@@ -158,8 +158,6 @@ class SP_Settings_Events extends SP_Settings_Page {
'options' => array( 'options' => array(
'ROADMAP' => __( 'Default', 'sportspress' ), 'ROADMAP' => __( 'Default', 'sportspress' ),
'SATELLITE' => __( 'Satellite', 'sportspress' ), 'SATELLITE' => __( 'Satellite', 'sportspress' ),
'HYBRID' => __( 'Hybrid', 'sportspress' ),
'TERRAIN' => __( 'Terrain', 'sportspress' ),
), ),
), ),

View File

@@ -28,7 +28,7 @@ if ( $latitude != null && $longitude != null ):
width="600" width="600"
height="320" height="320"
frameborder="0" style="border:0" frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?key=AIzaSyAWyt_AG0k_Pgz4LuegtHwesA_OMRnSSAE&amp;q=<?php echo $address; ?>&amp;center=<?php echo $latitude; ?>,<?php echo $longitude; ?>&amp;zoom=<?php echo $zoom; ?>" allowfullscreen> src="https://www.google.com/maps/embed/v1/place?key=AIzaSyAWyt_AG0k_Pgz4LuegtHwesA_OMRnSSAE&amp;q=<?php echo $address; ?>&amp;center=<?php echo $latitude; ?>,<?php echo $longitude; ?>&amp;zoom=<?php echo $zoom; ?>&amp;maptype=<?php echo $maptype; ?>" allowfullscreen>
</iframe> </iframe>
<?php <?php
endif; endif;