mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-06-28 06:12:08 +02:00
Replaced checkbox with toggle button to start automatic updates.
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user