Skip to content

Commit

Permalink
feat(components): 百度地图
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Jun 22, 2022
1 parent 66ab792 commit a2945f9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dgiot/components/DgiotBaiduMap/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
:average-center="averageCenter"
>
<bm-marker
v-for="marker of markers"
:key="marker"
v-for="(marker, index) of markers"
:key="index"
:position="{ lng: marker.lng, lat: marker.lat }"
/>
</bml-marker-clusterer>
Expand Down
1 change: 1 addition & 0 deletions src/views/DeviceCloud/manage/devicelist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
:bm-label="bmLabel"
:label="mapLabel"
:map-center="mapLabel.position"
:markers="[mapLabel.position]"
:nav-show="true"
:scale-show="true"
:scroll-wheel-zoom="true"
Expand Down
1 change: 1 addition & 0 deletions src/views/DeviceCloud/manage/devicesDetailLite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<dgiot-baidu-map
ref="map"
:bmLabel="bmLabel"
:markers="[mapLabel.position]"
:label="mapLabel"
:navShow="true"
:scaleShow="true"
Expand Down
1 change: 1 addition & 0 deletions src/views/DeviceCloud/manage/editdevices.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<dgiot-baidu-map
ref="map"
:bmLabel="bmLabel"
:markers="[mapLabel.position]"
:label="mapLabel"
:navShow="true"
:scaleShow="true"
Expand Down
1 change: 1 addition & 0 deletions src/views/DeviceCloud/manage/home_index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@
}
},
showAdddress(item) {
console.log(item)
this.editRow = item
this.map.keyword = item?.address ? item.address : this.map.keyword
this.form.address = item?.address ? item.address : this.form.keyword
Expand Down

0 comments on commit a2945f9

Please sign in to comment.