yaapu / HorusMappingWidget

Offline GPS Mapping Widget for Horus and T16 radios
GNU General Public License v3.0
91 stars 26 forks source link

feature request: configurable zoom levels #18

Closed wilco1967 closed 3 years ago

wilco1967 commented 4 years ago

Perhaps, may I suggest a small improvement, which would make it even more useful for long range flying ? Now, I can select the starting zoom level in the configuration (for example 0). The zoom level channel then lets me change between -2, -1 and 0. I could also set the starting zoom to say 3. It would then let me change between 1, 2 and 3. 'trouble' is, those 3 zoom levels are not so much different from each other.

It would be even nicer, if I can define the three different zoom levels individually in the configurator. For example, -2, 0, +3 This gives me a nice detail when close by, and a nice large overview when far away....

I often fly long range, and on too high detail, I loose the overview where the plane is....

Even better would be allowing more than 3 different zoom levels (say 6), by using for example the S2 potmeter (or perhaps the 6 position switches).

Papsi77 commented 3 years ago

+1 Would be great if the function was implemented.

ReinhardZ1 commented 3 years ago

Isn't it possible to just rename the tile folders from e.g. -2, 0, 3 to -1, 0, 1 ?

handbrems commented 3 years ago

@ReinhardZ1 Have you tried that? Is it possible just by renaming the folders?

ReinhardZ1 commented 3 years ago

I have tried it meanwhile and unfortunately the map is not shown after renaming the folders.

handbrems commented 3 years ago

The names of the folders are probably geo-coded you cannot rename them without destroying the map structure. Too bad.

yaapu commented 3 years ago

Please test this new version and report back.

HorusMappingWidget_1.2.1dev.zip

check the /CFG/examples/yaapudev_sensors_maps.lua it has the zoomLevels table to define valid zoom levels. This version also supports google maps as mapping provider, to download the maps you need to follow the "other" wiki here

Thanks a lot for raising the issue and for the "long" patience :-)

Papsi77 commented 3 years ago

I tested version 1.2.1 today. The zoom level and switching work without any problems.

However, I found a bug: When you start the script you only get a blue screen, the GPS coordinates and the telemetry values can be seen below and on the right side. You then have to change the zoom level once and then the maps are displayed.

yaapu commented 3 years ago

ok thanks, found the bug try this one HorusMappingWidget-1.2.2dev.zip

Papsi77 commented 3 years ago

Perfect - problem solved.

Thank you for this and your other scripts