Commit 47ed710b by wangzhihui

去掉卫星

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