|
@@ -74,6 +74,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import parse from "wellknown";
|
|
|
import { GetPage, Delect } from "@/api/ghss/hgxfx.js";
|
|
|
import { Message, MessageBox } from "element-ui";
|
|
|
import { rest } from "lodash";
|
|
@@ -207,7 +208,7 @@ export default {
|
|
|
},
|
|
|
zoomItem(item) {
|
|
|
this.now = item.bsm;
|
|
|
- this.addPolygon(item.geojson);
|
|
|
+ this.addPolygon(parse(item.geom));
|
|
|
},
|
|
|
// 加载GeoJSON数据
|
|
|
addPolygon(geojson) {
|