What the heck happened to the Zoom Slider and Pan Control

… on the Dump1090-mutability web page?

Shortly after I had made several modifications to my scripts to add color legends, color rings, local time, etc. I noticed that the zoom slider and the pan control were missing from the upper left side of the map. Thinking I had really screwed up the code, backed it all out by copying the original scripts back. The problem persisted.

I finally found the zoom buttons behind the rings color legend but I preferred the slider because I find it more useful on my mobile devices.

I found the answer. Evil Google (as apposed to Good Google), had changed the API defaults for these controls. Evil Google is the one that changes things without telling anyone about it e.g. changing the Gmail interface from an app menu bar to an app menu box. “Where the heck is my calendar?”

But I digress.

Google maps API 3.22 and later removes the pan control and zoom slider. It adds the + and - buttons for zoom in the lower right corner.

To restore the original (at least while Evil Google provides access to the old API), make the following change in /usr/share/dump1090-mutability/gmap.html.

The line is near the top of the file, line 5 under

If using nano as an editor, you can turn off the unreadable color text in the HTML file with an ALT-Y command.

Obj, if this change is inappropriate in any way, please feel free to let me know. I won’t be offended.

TD

Here is Google’s information about the new Map Controls.

developers.google.com/maps/arti … trols-diff

Marty

Thanks, Marty.

I didn’t get the memo. (It happens a lot.) :slight_smile: