Browse Source

百度地图组件注释

rongxin_dev
庞东旭 13 hours ago
parent
commit
79fec23580
3 changed files with 14 additions and 14 deletions
  1. +4
    -4
      src/views/agriculturalTrusteeship/socialization/draftEdit.vue
  2. +5
    -5
      src/views/lawEnforcement/task/taskSignIn.vue
  3. +5
    -5
      src/views/lawEnforcement/task/taskSignInSee.vue

+ 4
- 4
src/views/agriculturalTrusteeship/socialization/draftEdit.vue View File

@@ -33,10 +33,10 @@
</div>

<div class="main">
<baidu-map :center="center" panBy="[50,50]" :zoom="zoom" :scroll-wheel-zoom="true" :pinch-to-zoom="true" map-type="BMAP_NORMAL_MAP" style="height:25vh" >
<!-- 必须给容器指高度,不然地图将显示在一个高度为0的容器中,看不到 -->
<bm-marker :position="center" :dragging="true" animation="BMAP_ANIMATION_BOUNCE" :icon="{url: '../../../../static/images/lawEnforcement/new/address.gif', size: {width: 50, height: 50}}"></bm-marker>
</baidu-map>
<!-- <baidu-map :center="center" panBy="[50,50]" :zoom="zoom" :scroll-wheel-zoom="true" :pinch-to-zoom="true" map-type="BMAP_NORMAL_MAP" style="height:25vh" >-->
<!-- &lt;!&ndash; 必须给容器指高度,不然地图将显示在一个高度为0的容器中,看不到 &ndash;&gt;-->
<!-- <bm-marker :position="center" :dragging="true" animation="BMAP_ANIMATION_BOUNCE" :icon="{url: '../../../../static/images/lawEnforcement/new/address.gif', size: {width: 50, height: 50}}"></bm-marker>-->
<!-- </baidu-map>-->
</div>

<div class="main_btn">


+ 5
- 5
src/views/lawEnforcement/task/taskSignIn.vue View File

@@ -4,11 +4,11 @@
执法打卡
<div class="return_btn" @click="onClickLeft"></div>
</div>
<baidu-map :center="center" panBy="[50,50]" :zoom="zoom" :scroll-wheel-zoom="true" :pinch-to-zoom="true" map-type="BMAP_NORMAL_MAP" style="height:150vh" >
<!-- 必须给容器指高度,不然地图将显示在一个高度为0的容器中,看不到 -->
<bm-geolocation anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :showAddressBar="true" :autoLocation="true"></bm-geolocation>
<bm-marker :position="center" :dragging="true" animation="BMAP_ANIMATION_BOUNCE" :icon="{url: '../../../../static/images/lawEnforcement/new/address.gif', size: {width: 50, height: 50}}"></bm-marker>
</baidu-map>
<!-- <baidu-map :center="center" panBy="[50,50]" :zoom="zoom" :scroll-wheel-zoom="true" :pinch-to-zoom="true" map-type="BMAP_NORMAL_MAP" style="height:150vh" >-->
<!-- &lt;!&ndash; 必须给容器指高度,不然地图将显示在一个高度为0的容器中,看不到 &ndash;&gt;-->
<!-- <bm-geolocation anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :showAddressBar="true" :autoLocation="true"></bm-geolocation>-->
<!-- <bm-marker :position="center" :dragging="true" animation="BMAP_ANIMATION_BOUNCE" :icon="{url: '../../../../static/images/lawEnforcement/new/address.gif', size: {width: 50, height: 50}}"></bm-marker>-->
<!-- </baidu-map>-->

<div style="position:absolute;top: 75px;width: 100%;">
<div :class="{'main_box' : true , 'top_box' : true , 'top_qu' : form.caseProgress == '4' , 'top_li' : form.caseProgress == '3' , 'top_kan' : form.caseProgress == '2'}">


+ 5
- 5
src/views/lawEnforcement/task/taskSignInSee.vue View File

@@ -4,11 +4,11 @@
查看打卡
<div class="return_btn" @click="onClickLeft"></div>
</div>
<baidu-map :center="center" panBy="[50,50]" :zoom="zoom" :scroll-wheel-zoom="true" :pinch-to-zoom="true" map-type="BMAP_NORMAL_MAP" style="height:150vh" >
<!-- 必须给容器指高度,不然地图将显示在一个高度为0的容器中,看不到 -->
<bm-geolocation anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :showAddressBar="true" :autoLocation="true"></bm-geolocation>
<bm-marker :position="center" :dragging="true" animation="BMAP_ANIMATION_BOUNCE" :icon="{url: '../../../../static/images/lawEnforcement/new/address.gif', size: {width: 50, height: 50}}"></bm-marker>
</baidu-map>
<!-- <baidu-map :center="center" panBy="[50,50]" :zoom="zoom" :scroll-wheel-zoom="true" :pinch-to-zoom="true" map-type="BMAP_NORMAL_MAP" style="height:150vh" >-->
<!-- &lt;!&ndash; 必须给容器指高度,不然地图将显示在一个高度为0的容器中,看不到 &ndash;&gt;-->
<!-- <bm-geolocation anchor="BMAP_ANCHOR_BOTTOM_RIGHT" :showAddressBar="true" :autoLocation="true"></bm-geolocation>-->
<!-- <bm-marker :position="center" :dragging="true" animation="BMAP_ANIMATION_BOUNCE" :icon="{url: '../../../../static/images/lawEnforcement/new/address.gif', size: {width: 50, height: 50}}"></bm-marker>-->
<!-- </baidu-map>-->

<div style="position:absolute;top: 75px;width: 100%;">
<div :class="{'main_box' : true , 'top_box' : true , 'top_qu' : form.caseProgress == '4' , 'top_li' : form.caseProgress == '3' , 'top_kan' : form.caseProgress == '2'}">


Loading…
Cancel
Save