Commit 47ed710b by wangzhihui

去掉卫星

1 parent 4968b63a
...@@ -36,11 +36,11 @@ export default { ...@@ -36,11 +36,11 @@ export default {
markerData: '', markerData: '',
contextMenuPositon: '', //右键菜单位置 contextMenuPositon: '', //右键菜单位置
controlList: [ controlList: [
{ // {
icon: 'moon', // icon: 'moon',
name: '卫星', // name: '卫星',
checked: false // checked: false
}, // },
{ {
icon: 'ranging', icon: 'ranging',
name: '测距', name: '测距',
...@@ -495,17 +495,17 @@ export default { ...@@ -495,17 +495,17 @@ export default {
// this.controlList[index].checked=! this.controlList[index].checked // this.controlList[index].checked=! this.controlList[index].checked
}, },
//卫星 //卫星
moonHandle(index) { // moonHandle(index) {
let { activeIndex } = this // let { activeIndex } = this
console.log(activeIndex, index) // console.log(activeIndex, index)
if (activeIndex === index) { // if (activeIndex === index) {
this.BMap.invoke('setMapType', 'BMAP_NORMAL_MAP') // this.BMap.invoke('setMapStyleNormal')
// 构造官方卫星、路网图层 // // 构造官方卫星、路网图层
} else { // } else {
this.BMap.invoke('setMapType', 'BMAP_SATELLITE_MAP') // this.BMap.invoke('setMapStyleSatellite')
// 地图上设置图层 // // 地图上设置图层
} // }
}, // },
//测距 //测距
rangingHandle(index) { rangingHandle(index) {
let { activeIndex } = this let { activeIndex } = this
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!