|
@@ -86,12 +86,10 @@ export default {
|
|
|
watch: {
|
|
|
'$store.state.addr.parentId': {
|
|
|
handler(val) {
|
|
|
- console.log(val);
|
|
|
this.parentId = val;
|
|
|
if (this.$store.state.addr.mapLevel == 'street') {
|
|
|
this.parentId = val.substring(0, 6);
|
|
|
if (this.map) {
|
|
|
- console.log(this.parentId);
|
|
|
this.switch2AreaNode(
|
|
|
this.parentId,
|
|
|
this.$store.state.addr.mapLevel,
|
|
@@ -105,7 +103,6 @@ export default {
|
|
|
this.districtData = this.$store.state.addr.selectDistrict;
|
|
|
this.streetData = this.$store.state.addr.selectStreet;
|
|
|
if (this.map) {
|
|
|
- console.log(this.parentId);
|
|
|
this.switch2AreaNode(
|
|
|
this.parentId,
|
|
|
this.$store.state.addr.mapLevel,
|
|
@@ -451,7 +448,6 @@ export default {
|
|
|
|
|
|
this.map.on('mousewheel', (e) => {
|
|
|
var zoom = this.map.getZoom(); //获取当前地图级别
|
|
|
- console.log(this.$store.state.addr.mapLevel);
|
|
|
if (
|
|
|
zoom > '10.5' &&
|
|
|
zoom < '11' &&
|
|
@@ -748,7 +744,6 @@ export default {
|
|
|
// ) {
|
|
|
// return;
|
|
|
// }
|
|
|
- console.log('进入切换区域');
|
|
|
this.loadAreaNode(adcode, (error, areaNode) => {
|
|
|
if (error) {
|
|
|
if (callback) {
|
|
@@ -837,7 +832,6 @@ export default {
|
|
|
},
|
|
|
// 加载乡镇边界
|
|
|
getrjx(cityName) {
|
|
|
- console.log(cityName);
|
|
|
if (cityName == '榕江县') {
|
|
|
axios.get('/static/rongjangintown.json').then((res) => {
|
|
|
this.putPolygonData = res.data.features;
|
|
@@ -972,7 +966,7 @@ export default {
|
|
|
if (item.longitude && item.latitude) {
|
|
|
var lanLatArr = [];
|
|
|
lanLatArr = [item.longitude, item.latitude];
|
|
|
- if (this.$store.state.addr.mapLevel == 'district') {
|
|
|
+ if (this.$store.state.addr.mapLevel == 'district' || this.$store.state.addr.mapLevel == 'street') {
|
|
|
this.smallClassN = new AMap.Text({
|
|
|
map: this.map,
|
|
|
position: lanLatArr,
|