Fix weird clustering and change marker colors

This commit is contained in:
Arne Schlüter 2015-02-09 00:11:05 +01:00
commit c41f7b4cf8
3 changed files with 9 additions and 4 deletions

View file

@ -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>'))