From 3c9d843fee16299b20dad06ef52245ffc9310417 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Thu, 1 Oct 2015 10:26:11 +0200 Subject: [PATCH] toggle autozoom colour --- docroot/last/functions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docroot/last/functions.js b/docroot/last/functions.js index b827c78..305dc16 100644 --- a/docroot/last/functions.js +++ b/docroot/last/functions.js @@ -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)'; }); }