|
@@ -1092,10 +1092,11 @@
|
|
|
getRegionalFlag(id).then(res => {
|
|
|
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(() => {
|
|
|
that.$refs.supermap.clearG()
|