mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
More cosmetics
This commit is contained in:
parent
c41f7b4cf8
commit
a7502baf7d
4 changed files with 44 additions and 23 deletions
|
|
@ -27,9 +27,7 @@ $.getJSON('/articles/')
|
|||
})
|
||||
|
||||
$('.begin').on('click', function (e) {
|
||||
$('#overlay')
|
||||
.fadeOut(700)
|
||||
.then(function() { $(this).remove() })
|
||||
$('#overlay').fadeOut(700)
|
||||
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
|
|
|
|||
|
|
@ -27,22 +27,24 @@ class Visualization {
|
|||
})
|
||||
|
||||
this.oms.legColors = {
|
||||
usual: 'rgba(0,0,0,.1)',
|
||||
highlighted: 'rgba(0,0,0,.4)'
|
||||
usual: 'rgba(0,0,0,.2)',
|
||||
highlighted: 'rgba(0,0,0,.5)'
|
||||
}
|
||||
|
||||
var popup = new L.Popup();
|
||||
var popup = new L.Popup({
|
||||
autoPanPadding: [96, 96],
|
||||
closeButton: false,
|
||||
maxHeight: 250
|
||||
});
|
||||
this.oms.addListener('click', function (marker) {
|
||||
if (map.getZoom() < 10)
|
||||
map.setZoom(9)
|
||||
|
||||
popup.setContent(marker.description.replace(/\n/g, '<br>'))
|
||||
popup.setLatLng(marker.getLatLng())
|
||||
map.openPopup(popup)
|
||||
})
|
||||
|
||||
this.oms.addListener('spiderfy', (marker) => {
|
||||
this.map.setCenter(marker.getLatLng())
|
||||
this.map.setZoom(20)
|
||||
})
|
||||
|
||||
// set up markers
|
||||
this._markers = new Map()
|
||||
this.setupMarkers()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue