|
@@ -113,7 +113,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
'$store.state.addr.selectStreet'(val) {
|
|
'$store.state.addr.selectStreet'(val) {
|
|
- console.log(val);
|
|
|
|
if (val.label && val.value && val.areaId) {
|
|
if (val.label && val.value && val.areaId) {
|
|
this.map.remove(this.polygon);
|
|
this.map.remove(this.polygon);
|
|
this.map.setCity(val.label);
|
|
this.map.setCity(val.label);
|
|
@@ -124,7 +123,6 @@ export default {
|
|
// townId: this.$store.state.addr.selectStreet.areaId
|
|
// townId: this.$store.state.addr.selectStreet.areaId
|
|
// });
|
|
// });
|
|
// that.map.setBounds(townPolygon.getBounds(), null, null, true);
|
|
// that.map.setBounds(townPolygon.getBounds(), null, null, true);
|
|
- console.log(this.leftPage);
|
|
|
|
if (this.leftPage === 'forest') {
|
|
if (this.leftPage === 'forest') {
|
|
this.addForestPolygon(this.smallClassMapArr);
|
|
this.addForestPolygon(this.smallClassMapArr);
|
|
this.getForestSample(this.leftPage);
|
|
this.getForestSample(this.leftPage);
|
|
@@ -323,12 +321,10 @@ export default {
|
|
deep: true,
|
|
deep: true,
|
|
immediate: true,
|
|
immediate: true,
|
|
handler: function (val, oldVal) {
|
|
handler: function (val, oldVal) {
|
|
- console.log(val);
|
|
|
|
let _this = this;
|
|
let _this = this;
|
|
if (val) {
|
|
if (val) {
|
|
if (val.baseLongitude && val.baseLatitude && !val.name) {
|
|
if (val.baseLongitude && val.baseLatitude && !val.name) {
|
|
let lanLatArr = [val.baseLongitude, val.baseLatitude];
|
|
let lanLatArr = [val.baseLongitude, val.baseLatitude];
|
|
- console.log(lanLatArr);
|
|
|
|
let treeSmallLabel =
|
|
let treeSmallLabel =
|
|
"<div class='info-small'>" +
|
|
"<div class='info-small'>" +
|
|
"<h5 class='marker-title'>" +
|
|
"<h5 class='marker-title'>" +
|
|
@@ -451,8 +447,6 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getDistrict(adName, mapLevel) {
|
|
getDistrict(adName, mapLevel) {
|
|
- // street\
|
|
|
|
- console.log(adName);
|
|
|
|
if (mapLevel === 'street') {
|
|
if (mapLevel === 'street') {
|
|
mapLevel = 'district';
|
|
mapLevel = 'district';
|
|
}
|
|
}
|
|
@@ -776,7 +770,6 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
mapPolygon() {
|
|
mapPolygon() {
|
|
- console.log(this.$store.state.addr.mapLevel);
|
|
|
|
if (this.smallClassMapArr) {
|
|
if (this.smallClassMapArr) {
|
|
if (this.leftPage === 'forest') {
|
|
if (this.leftPage === 'forest') {
|
|
this.addForestPolygon(this.smallClassMapArr);
|
|
this.addForestPolygon(this.smallClassMapArr);
|
|
@@ -1367,7 +1360,6 @@ export default {
|
|
},
|
|
},
|
|
putPolygon(selectStreet) {
|
|
putPolygon(selectStreet) {
|
|
let that = this;
|
|
let that = this;
|
|
- console.log(selectStreet);
|
|
|
|
this.putPolygonData.forEach((element) => {
|
|
this.putPolygonData.forEach((element) => {
|
|
this.boundaryPolygon = new AMap.Polygon({
|
|
this.boundaryPolygon = new AMap.Polygon({
|
|
map: that.map,
|
|
map: that.map,
|
|
@@ -1408,7 +1400,6 @@ export default {
|
|
// name: label,
|
|
// name: label,
|
|
// mapLevel: 'street'
|
|
// mapLevel: 'street'
|
|
// });
|
|
// });
|
|
- console.log(this.streetData);
|
|
|
|
var outer = [
|
|
var outer = [
|
|
new AMap.LngLat(-360, 90, true),
|
|
new AMap.LngLat(-360, 90, true),
|
|
new AMap.LngLat(-360, -90, true),
|
|
new AMap.LngLat(-360, -90, true),
|
|
@@ -1436,9 +1427,7 @@ export default {
|
|
// });
|
|
// });
|
|
// that.map.setBounds(townPolygon.getBounds(), null, null, true);
|
|
// that.map.setBounds(townPolygon.getBounds(), null, null, true);
|
|
townPolygon.on('click', (e) => {
|
|
townPolygon.on('click', (e) => {
|
|
- console.log(e.lnglat.lng, e.lnglat.lat);
|
|
|
|
});
|
|
});
|
|
- console.log(this.leftPage);
|
|
|
|
if (this.leftPage === 'forest') {
|
|
if (this.leftPage === 'forest') {
|
|
this.addForestPolygon(this.smallClassMapArr);
|
|
this.addForestPolygon(this.smallClassMapArr);
|
|
this.getForestSample(this.leftPage);
|
|
this.getForestSample(this.leftPage);
|
|
@@ -1456,7 +1445,6 @@ export default {
|
|
getTreePlant() {
|
|
getTreePlant() {
|
|
treePlant().then((res) => {
|
|
treePlant().then((res) => {
|
|
this.treePlant = res.rows;
|
|
this.treePlant = res.rows;
|
|
- console.log(this.treePlant);
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|