wiedehopf / tar1090

Provides an improved webinterface for use with ADS-B decoders readsb / dump1090-fa
Other
1.25k stars 235 forks source link

Hiding scale and copyright text from the UI #158

Closed chvvkumar closed 2 years ago

chvvkumar commented 2 years ago

Hello guys,

I am trying to make a small display for tar1090 on my desktop. I managed to tune it to my liking except for the scale display and the map copyright information (photo below). Is there a way to hide both of these?

image

wiedehopf commented 2 years ago

It's not allowed to hide the copyright of the maps.

There are no options for this ... it is removable in the javascript but i won't assist with that.

chvvkumar commented 2 years ago

It's not allowed to hide the copyright of the maps.

There are no options for this ... it is removable in the javascript but i won't assist with that.

Understood on the copyright. What about the scale display?

wiedehopf commented 2 years ago

I'd have to look at the source where it's added. You're doing custom stuff, search for it yourself.

wiedehopf commented 2 years ago

1892 new ol.control.ScaleLine({units: DisplayUnits})
script.js

chvvkumar commented 2 years ago

I did look through the documentation but could not find anything related to waht I was looking for.

Appreciate the reference to the code fragment for scale, that is a good jumping off point.

EDIT: For any one looking for my solution, I found an easy way to hide the scale bar. I just used uBlock origin's element picker to hide it.