Browse Source

切换标题小板边界刷新

wangcc 2 years ago
parent
commit
3ad615916e
1 changed files with 1 additions and 10 deletions
  1. 1 10
      src/components/amap.vue

+ 1 - 10
src/components/amap.vue

@@ -760,9 +760,8 @@ export default {
       let params = {
         cityId: this.$store.state.addr.selectCity.areaId,
         countyId: this.$store.state.addr.selectDistrict.areaId,
-        townId: this.$store.state.addr.selectStreet.areaId
+        // townId: this.$store.state.addr.selectStreet.areaId
       };
-      console.log(params);
       smallClassMap(params).then((res) => {
         if (res.code == 200) {
           this.smallClassMapArr = res.rows;
@@ -1074,17 +1073,9 @@ export default {
                 content: treeSmallLabel //设置文本标注内容
               });
               that.treeCompMarkers.push(that.smallMarker);
-              polygon.setOptions({
-                fillOpacity: 0.7,
-                fillColor: 'yellow'
-              });
             });
             polygon.on('mouseout', () => {
               that.map.remove(that.treeCompMarkers);
-              polygon.setOptions({
-                fillOpacity: 0,
-                fillColor: '#ccebc5'
-              });
             });
           }
         }