This commit is contained in:
yanran200730
2022-01-26 11:13:46 +08:00
parent e95360fc81
commit d37554d317

View File

@@ -215,8 +215,8 @@
bounds.push(this.fitBounds(path.points.map(e => new TMap.LatLng(e[1], e[0])))) bounds.push(this.fitBounds(path.points.map(e => new TMap.LatLng(e[1], e[0]))))
polygon.on('click', e => { polygon.on('click', e => {
const id = e.target.id // const id = e.target.id
this.getGridInfo(id) // this.getGridInfo(id)
}) })
const points = path.points.map(e => new TMap.LatLng(e[1], e[0])) const points = path.points.map(e => new TMap.LatLng(e[1], e[0]))
@@ -246,7 +246,7 @@
}) })
this.labels.push(label) this.labels.push(label)
label.on('click', e => { label.on('click', e => {
this.getGridInfo(e.target.id.split('~')[1]) // this.getGridInfo(e.target.id.split('~')[1])
}); });
}) })
bounds = bounds.reduce((a, b) => { bounds = bounds.reduce((a, b) => {