落日与鲸
2025-02-24 c91a9f61f8e7497e47c8bd60043979178ab5c33b
H5/pages/location/location.vue
@@ -5,8 +5,9 @@
            <image src="/static/location/back.png" class="w-19 h-35" mode=""></image>
         </view>
      </u-navbar>
   <!-- <web-view src="https://api.map.baidu.com/api?v=3.0&ak=W3x8DhCWKc2UFIwYgclpRBdL6BeGLLQt"></wwb-view> -->
      <view class="" id="container">
      </view>
      <view class="">
         <view class="searchMain mb-35">
            <view class="search fs-27 ">
@@ -38,12 +39,19 @@
            longitude: 116.39742,
         };
      },
      mounted() {
      },
       onReady() {
          var map = new BMapGL.Map("container");          // 创建地图实例
          var point = new BMapGL.Point(116.404, 39.915);  // 创建点坐标
          map.centerAndZoom(point, 15);
       }
   }
</script>
<style lang="scss" scoped>
   #baiduMap {
   #container {
      width: 100vw;
      height: 517rpx;
   }