mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
Fix weird clustering and change marker colors
This commit is contained in:
parent
a478a3cd77
commit
c41f7b4cf8
3 changed files with 9 additions and 4 deletions
|
|
@ -23,9 +23,14 @@ class Visualization {
|
|||
// set up OMS
|
||||
this.oms = new OverlappingMarkerSpiderfier(map, {
|
||||
keepSpiderfied: true,
|
||||
circleSpiralSwitchover: 12,
|
||||
nearbyDistance: 1
|
||||
})
|
||||
|
||||
this.oms.legColors = {
|
||||
usual: 'rgba(0,0,0,.1)',
|
||||
highlighted: 'rgba(0,0,0,.4)'
|
||||
}
|
||||
|
||||
var popup = new L.Popup();
|
||||
this.oms.addListener('click', function (marker) {
|
||||
popup.setContent(marker.description.replace(/\n/g, '<br>'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue