Replies: 1 comment 8 replies
-
LNM uses distance to zoom everywhere. To avoid fuzzy maps (Marble bug) it zooms out one step after setting distance. So, you will not get what you set. Can be disabled in options. Not 100 percent sure if this also applies to the web UI. This is quite a mess in Marble and required quite a few workarounds. Marble is also very crash-happy if you pass in wrong values like a zoom rectangle with width = 1. About FoV: No idea how to solve this. Definitely not in the spherical projection. Looking at a pole you get a rectangle circumventing the whole globe, for example. Maybe just ignore the FoV issues for now. I also tend to limit the web UI to Mercator projection. |
Beta Was this translation helpful? Give feedback.
-
I believe https://api.kde.org/marble/html/classMarble_1_1MarbleWidget.html#a714c08d1ad92e216e77fcdc89190c3a0 (setDistance) is used for zoom parameter (named "distance") in webserver map commands. It appears to offer "arbitrary" precision for zoom.
Currently, webserver appears to ignore values between 2^n and 2^(n+1) for any n >0, falling back to the zoom which 2^n provides.
Additionally, there is https://api.kde.org/marble/html/classMarble_1_1MarbleWidget.html#ab3321f9d9fd1c48ffec36557bf66e1bb (setZoom). But it "is an abstract value without physical interpretation". From experiments, the distance parameter above might be fed into setZoom (it clamps at around 2^10 showing the whole globe which equals around 1000 which as zoom would do this according to the documentation).
setDistance appears to be fitting for zoming. Unfortunately it is not accompanied by a field of view: ie at a given distance, what is the angle area intersecting the earth surface producing a map boundary (which would be circular)? Think a cone intersecting a sphere where the cone can have any "opening angle".
Beta Was this translation helpful? Give feedback.
All reactions