mirror of
https://github.com/owntracks/recorder.git
synced 2026-05-05 02:36:45 +00:00
toggle autozoom colour
This commit is contained in:
@@ -63,6 +63,7 @@ function ButtonControl(controlDiv, map) {
|
||||
// Setup the click event listeners: simply set the map to Chicago.
|
||||
controlUI.addEventListener('click', function() {
|
||||
do_fit = !do_fit;
|
||||
controlText.style.color = (do_fit) ? 'rgb(0,153,0)' : 'rgb(25,25,25)';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user