mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 11:13:40 +02:00
Close popups when spiderifying marker groups
This commit is contained in:
parent
7b907883bf
commit
f367103d0f
1 changed files with 5 additions and 0 deletions
|
|
@ -37,12 +37,17 @@ class Visualization {
|
|||
closeButton: true,
|
||||
maxHeight: 250
|
||||
})
|
||||
|
||||
this.oms.addListener('click', function (marker) {
|
||||
popup.setContent(template(marker.incident))
|
||||
popup.setLatLng(marker.getLatLng())
|
||||
map.openPopup(popup)
|
||||
})
|
||||
|
||||
this.oms.addListener('spiderfy', function () {
|
||||
map.closePopup()
|
||||
})
|
||||
|
||||
// set up markers
|
||||
this._markers = new Map()
|
||||
this.setupMarkers()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue