Only do expensive area coverage calculation if there where blocks loaded from database.

If there are not, nothing changed, so nothing to recalculate.
Takes a good deal from the clock.
This commit is contained in:
Sascha L. Teichmann
2017-02-26 12:57:38 +01:00
parent 7f78feb9bd
commit 3e3413566b
4 changed files with 39 additions and 20 deletions

View File

@ -48,7 +48,7 @@
<script type="text/javascript" src="js/leaflet.awesome-markers.js"></script>
<script>
var useWebsocket = false; // Set to true if you want websocket support
var useWebsocket = true; // Set to true if you want websocket support
L.Projection.NoWrap = {
project: function (latlng) {