Replaced checkbox with toggle button to start automatic updates.

This commit is contained in:
Raimund Renkert
2015-03-04 10:36:59 +01:00
parent f708a7c44b
commit 7413221341
2 changed files with 16 additions and 8 deletions

View File

@ -95,8 +95,8 @@ L.control.coordinates({
}).addTo(map);
var manualUpdateControl;
L.autoUpdate('autoUpdate', function(e) {
if (e.target.checked) {
L.autoUpdate('autoUpdate', function(pressed) {
if (pressed) {
manualUpdateControl.getContainer().style = 'visibility: hidden';
}
else {