|
|
|
@ -39,7 +39,7 @@ $(document).ready ->
|
|
|
|
|
map.addLayer layer
|
|
|
|
|
controls.addOverlay layer, text + ' - ' + json.length
|
|
|
|
|
|
|
|
|
|
if (location.href.contains('maps/') || url.contains('maps.json')) && layer.getBounds()._northEast && layer.getBounds()._southWest
|
|
|
|
|
if (/maps\//.test(location.href) || /maps.json/.test url) && layer.getBounds()._northEast && layer.getBounds()._southWest
|
|
|
|
|
# Automatic focus to all displayed events
|
|
|
|
|
map.fitBounds layer.getBounds()
|
|
|
|
|
|
|
|
|
|