Commit 50248eba authored by shilei's avatar shilei

地图打点方案

parent e2fe0da5
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
<div class="f24 flex right-footer"> <div class="f24 flex right-footer">
<div class="nowrap" style="width: 200rpx"> <div class="nowrap" style="width: 200rpx">
<span class="c80">产业园级别:</span> <span class="c80">产业园级别:</span>
<span>{{ parkInfo.levelName || "--" }}</span> <span>{{ detail.levelName || "--" }}</span>
</div> </div>
<div class="nowrap" style="margin-left: 10rpx"> <div class="nowrap" style="margin-left: 10rpx">
<span class="c80">占地面积:</span <span class="c80">占地面积:</span
>{{ parkInfo.coverArea ? parkInfo.coverArea + "亩" : "--" }} >{{ detail.coverArea ? detail.coverArea + "亩" : "--" }}
</div> </div>
</div> </div>
</view> </view>
......
...@@ -95,8 +95,8 @@ ...@@ -95,8 +95,8 @@
> >
</u-empty> </u-empty>
</view> </view>
<div v-else class="content z-100"> <div v-show="mode === 'map'" class="content z-100" style="padding-top: 246rpx;">
<map id="mapId" @markertap="handleMarkerClick" @callouttap="handleMarkerClick" :scale='10' style="width: 100%;height: calc(100vh - 246rpx)" latitude="31.464086" longitude="116.944909" class="map" :markers="markers"> <map id="mapId" @markertap="handleMarkerClick" @callouttap="handleMarkerClick" :scale='11' style="width: 100%;height: calc(100vh - 246rpx)" latitude="31.464086" longitude="116.944909" class="map" :markers="markers">
</map> </map>
<div v-if="activeInfo.id" :key="activeInfo.id" @click="toDetail(activeInfo)" style="position: fixed;padding: 0 30rpx;bottom: 30rpx;width: 100vw;z-index: 999;box-sizing: border-box;"> <div v-if="activeInfo.id" :key="activeInfo.id" @click="toDetail(activeInfo)" style="position: fixed;padding: 0 30rpx;bottom: 30rpx;width: 100vw;z-index: 999;box-sizing: border-box;">
<park-card-vue :key="activeInfo.id" :key-words="keyWords" :detail="activeInfo" v-if="activeBar == 0"></park-card-vue> <park-card-vue :key="activeInfo.id" :key-words="keyWords" :detail="activeInfo" v-if="activeBar == 0"></park-card-vue>
...@@ -371,16 +371,22 @@ export default { ...@@ -371,16 +371,22 @@ export default {
}, },
markers() { markers() {
let temp = []; let temp = [];
this.dataList.forEach(item => { this.dataList.forEach((item,index) => {
temp.push({ temp.push({
id: item.id, id: item.id,
latitude: item.latitude, latitude: item.latitude + index * 0.00001 * Math.random(100),
longitude: item.longitude, longitude: item.longitude + index * 0.00001 * Math.random(100),
joinCluster: this.activeBar != 2,
width: 27,
height: 33,
iconPath: 'https://cfld-obs-pro01.obs.cn-north-4.myhuaweicloud.com/img/system/single1.png',
callout: { callout: {
content: item.name, content: item.name,
padding: 5, padding: 5,
display: 'ALWAYS', display: 'ALWAYS',
textAlign: 'center' textAlign: 'center',
color: '#ffffff',
bgColor: '#4374EF'
} }
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment