Smaller status bar to suit mobile and further tweaked scale bar position for small mobile displays.

This commit is contained in:
hastarin
2013-05-12 14:14:58 +10:00
parent cb66801d9f
commit a150d54dd7
3 changed files with 25 additions and 26 deletions

View File

@ -232,13 +232,10 @@ window.setupMap = function() {
localStorage['ingress.intelmap.type']=selInd;
});
// map update status handling
map.on('movestart zoomstart', function() { window.mapRunsUserAction = true });
map.on('moveend zoomend', function() { window.mapRunsUserAction = false });
// update map hooks
map.on('movestart zoomstart', function() { window.requests.abort(); window.startRefreshTimeout(-1); });
map.on('moveend zoomend', function() { window.startRefreshTimeout(ON_MOVE_REFRESH*1000) });
// map update status handling & update map hooks
// ensures order of calls
map.on('movestart zoomstart', function() { window.mapRunsUserAction = true; window.requests.abort(); window.startRefreshTimeout(-1); });
map.on('moveend zoomend', function() { window.mapRunsUserAction = false; window.startRefreshTimeout(ON_MOVE_REFRESH*1000); });
window.addResumeFunction(window.requestData);
window.requests.addRefreshFunction(window.requestData);