Browse Source

绿化地图定位信息

main
ZhaoYang 20 hours ago
parent
commit
0063b2eecc
  1. 2
      chenhai-ui/.env.development
  2. 2
      chenhai-ui/.env.production
  3. 2
      chenhai-ui/.env.staging
  4. 2
      chenhai-ui/package.json
  5. 1208
      chenhai-ui/src/views/index.vue
  6. 43
      chenhai-ui/src/views/map_pol/mapVisual.vue

2
chenhai-ui/.env.development

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = 园林事务中心系统
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'

2
chenhai-ui/.env.production

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = 园林事务中心系统
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'

2
chenhai-ui/.env.staging

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = 园林事务中心系统
BABEL_ENV = production BABEL_ENV = production

2
chenhai-ui/package.json

@ -1,7 +1,7 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "3.9.2", "version": "3.9.2",
"description": "若依管理系统",
"description": "园林事务中心系统",
"author": "若依", "author": "若依",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

1208
chenhai-ui/src/views/index.vue
File diff suppressed because it is too large
View File

43
chenhai-ui/src/views/map_pol/mapVisual.vue

@ -88,9 +88,11 @@ export default {
for (var item of res.rows) { for (var item of res.rows) {
this.publicToilet(item, [item.longitude, item.latitude]) this.publicToilet(item, [item.longitude, item.latitude])
} }
break
break
case '绿化': case '绿化':
this.greening()
for (var item of res.rows) {
this.greening(item, item.coordinates)
}
break break
case '垃圾箱': case '垃圾箱':
for (var item of res.rows) { for (var item of res.rows) {
@ -103,9 +105,9 @@ export default {
} }
break break
case '古树': case '古树':
for (var item of res.rows) {
this.oldTrees(item, [item.longitude, item.latitude])
}
for (var item of res.rows) {
this.oldTrees(item, [item.longitude, item.latitude])
}
break break
default: default:
this.clean() this.clean()
@ -211,27 +213,11 @@ export default {
}, },
// 绿 // 绿
greening() {
greening(item,position) {
console.log('经纬度',position);
map.setCameraView({ lat: 38.824084, lng: 105.736887, alt: 994.9, heading: 351.4, pitch: -26.9 }) map.setCameraView({ lat: 38.824084, lng: 105.736887, alt: 994.9, heading: 351.4, pitch: -26.9 })
afforest = new mars3d.graphic.ScrollWall({ afforest = new mars3d.graphic.ScrollWall({
positions: [
[
105.736462,
38.840078
],
[
105.736533,
38.839389
],
[
105.737683,
38.839479
],
[
105.73757,
38.840146
]
],
positions: position,
style: { style: {
diffHeight: 30, // diffHeight: 30, //
color: "#0BEDAA", color: "#0BEDAA",
@ -245,7 +231,14 @@ export default {
} }
} }
}, },
attr: { remark: "示例1", xiaoguo: "鼠标移入时展示高亮效果" }
attr: item,
popup: `<div style="padding: 10px; color: #fff;">
<div style="border-bottom:1px solid #3D94E0;padding-bottom:5px; font-size: 16px; font-weight: bold; margin-bottom: 8px;">点位信息</div>
<div style="line-height: 1.5;">
<div>类型${item.type}</div>
<div>位置${item.name}</div>
</div>
</div>`
}) })
graphicLayer.addGraphic(afforest) graphicLayer.addGraphic(afforest)
}, },

Loading…
Cancel
Save