|
@@ -1153,10 +1153,11 @@ export default {
|
|
getRegionalFlag(id).then((res) => {
|
|
getRegionalFlag(id).then((res) => {
|
|
that.graphicsList = [];
|
|
that.graphicsList = [];
|
|
//地图标记
|
|
//地图标记
|
|
- if (res.data != null && res.data.length > 0) {
|
|
|
|
- for (let i = 0; i < res.data.length; i++) {
|
|
|
|
- that.graphicsList.push(res.data[i].lng);
|
|
|
|
- that.graphicsList.push(res.data[i].lat);
|
|
|
|
|
|
+ let latLngs = JSON.parse(res.data.data.latLngs!=null?res.data.data.latLngs:'[]')
|
|
|
|
+ if (latLngs.length > 0) {
|
|
|
|
+ for (let i = 0; i < latLngs.length; i++) {
|
|
|
|
+ that.graphicsList.push(latLngs[i].lng);
|
|
|
|
+ that.graphicsList.push(latLngs[i].lat);
|
|
}
|
|
}
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
that.$refs.supermap.clearG();
|
|
that.$refs.supermap.clearG();
|