Add maptype support to venue map
This commit is contained in:
@@ -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' ),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
@@ -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&q=<?php echo $address; ?>&center=<?php echo $latitude; ?>,<?php echo $longitude; ?>&zoom=<?php echo $zoom; ?>" allowfullscreen>
|
src="https://www.google.com/maps/embed/v1/place?key=AIzaSyAWyt_AG0k_Pgz4LuegtHwesA_OMRnSSAE&q=<?php echo $address; ?>&center=<?php echo $latitude; ?>,<?php echo $longitude; ?>&zoom=<?php echo $zoom; ?>&maptype=<?php echo $maptype; ?>" allowfullscreen>
|
||||||
</iframe>
|
</iframe>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
Reference in New Issue
Block a user