我希望你能帮助我。 Google地图不起作用,我想用背景图片替换谷歌地图。我该怎么做?
有些人可以告诉我吗?我不是很擅长php,它是wordpress中的一些代码。
我的代码:
<section id="contact">
<!-- map -->
<div id="gmap_canvas"></div>
<?php
global $tlazya_evential;
$glat = $tlazya_evential['map_lat'];
$glng = $tlazya_evential['map_lng'];
$gzoom = $tlazya_evential['map_zoom'];
$gct1 = $tlazya_evential['map_marker_title'];
$gct2 = $tlazya_evential['map_marker_content'];
if ((isset($tlazya_evential['map_lat']) && $tlazya_evential['map_lat'] != '') && (isset($tlazya_evential['map_lng']) && $tlazya_evential['map_lng'] != '')) {
?>
<?php echo do_shortcode('[rms-googlemap lat="' . esc_attr($glat) . '" lng="' . esc_attr($glng) . '" zoom="' . esc_attr($gzoom) . '" contents="' . esc_html($gct1) . '" contents2="' . esc_html($gct2) . '"]'); ?>
<?php
} else {
?>
<?php echo do_shortcode('[rms-googlemap lat="56.171243" lng="9.556884" zoom="16" contents="ThemeonLab" contents2="Quality Template Provide"]'); ?>
<?php } ?>
<div class="container">
<div class="row">
<div class="col-md-4 col-lg-4 col-sm-6 col-xs-12">
<?php if(isset($tlazya_evential['address_info']) && $tlazya_evential['address_info'] != ''){ ?>
<div class="contact">
<?php
global $tlazya_evential;
if (isset($tlazya_evential['title_info']) && $tlazya_evential['title_info'] != '') {
echo '<h2 class="uppercase">' . esc_html($tlazya_evential['title_info']) . '</h2>';
}
?>
<?php