|
@@ -506,15 +506,12 @@
|
|
|
//地图标记
|
|
|
if (res.data != null && res.data.length > 0) {
|
|
|
for (let i = 0; i < res.data.length; i++) {
|
|
|
- let latlng = {
|
|
|
- lat: res.data[i].lat,
|
|
|
- lng: res.data[i].lng
|
|
|
- }
|
|
|
- that.graphicsList.push(latlng)
|
|
|
+ that.graphicsList.push(res.data[i].lng)
|
|
|
+ that.graphicsList.push(res.data[i].lat)
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
that.$refs.supermap.clearG()
|
|
|
- that.$refs.supermap.setGraphicsList(this.graphicsList, 'red')
|
|
|
+ that.$refs.supermap.setGraphicsList(this.graphicsList, 'red',0.8)
|
|
|
}, 1000)
|
|
|
} else {
|
|
|
that.$refs.supermap.clearG()
|