|
@@ -393,21 +393,7 @@ export default {
|
|
|
let polygon = townPolygonMap.get(val);
|
|
|
map2DViewer.map.fitBounds(polygon.getBounds());
|
|
|
}
|
|
|
- // if (val === "全部") {
|
|
|
- // let locationArr = townLocationMap.get(val);
|
|
|
- // this.$refs.mapLoaderRef.setView(
|
|
|
- // [locationArr[0], locationArr[1] - 0.2],
|
|
|
- // 3
|
|
|
- // );
|
|
|
- // } else {
|
|
|
- // let locationArr = townLocationMap.get(val);
|
|
|
- // this.$refs.mapLoaderRef.setView(
|
|
|
- // [locationArr[0], locationArr[1] - 0.2],
|
|
|
- // 5
|
|
|
- // );
|
|
|
- // // let polygon = townPolygonMap.get(val);
|
|
|
- // // map2DViewer.map.fitBounds(polygon.getBounds());
|
|
|
- // }
|
|
|
+
|
|
|
},
|
|
|
// 获取自然资源分类数据接口(24个镇的数据)
|
|
|
getSourcesData() {
|