tumcms / Open-Infra-Platform

This is the official repository of the open-source Open Infra Platform software (as of April 2020).
Other
50 stars 23 forks source link

Implementing "Zoom in" function for a separate object #465

Closed SamuilsRulovs closed 1 year ago

SamuilsRulovs commented 3 years ago

Fixes #435

SamuilsRulovs commented 3 years ago

I tried to implement zoom to object function, however something is not working. After clicking on the "Zoom to object" button objects are not moving at all. Maybe my implementation should be a bit more complex. image

SamuilsRulovs commented 3 years ago

Now the button works, but function "Zoom to object" is not ready yet (where are several inaccuracies, when we are having more than one object)

SamuilsRulovs commented 1 year ago

I went through this Pull Request and concluded that it is impossible to implement the "zoom in" feature into the solution for now. I have created a QPushbutton and a code allowing users to zoom in on objects. Right now, the code works for one object, however, in the case of several objects, the "zoom in" function calculates incorrectly the center of the BBOX. I tried to find a solution previously as well as now, but I couldn't solve it. Therefore I am commenting out my code. (Hopefully, this code can be helpful to others, who will want to continue developing this feature).

jschlenger commented 1 year ago

Thank you for taking another look at the pull request. I'll close this pull request.