-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panoramax plugin #348
base: master
Are you sure you want to change the base?
Panoramax plugin #348
Conversation
Hi @cazitouni , thanks for the PR! Regarding MVT here is a working configuration of a background layer, maybe it helps?
Would indeed make sense to keep it configurable.
I can also reproduce the issue with the Cyclomedia plugin, I'll have a look. |
Re pop out window: with |
Re @manisandro , For the MVT, the method I use is actually good to calculate the resolutions for EPSG:3857. The problem is when the theme doesn't use EPSG:3857, the MVT is projected in the wrong place, which seems logical. QGIS Desktop handles this by reprojecting on the fly, but I do not know if it is possible to do that in OpenLayers. I was thinking maybe recalculating the resolutions for the theme's EPSG could help. But I do not know; maybe it's not a solvable problem in the current state of things. For the pop-out, I've tried with usePortal set to false, and it now pops up the window with an empty DOM. With usePortal set to true, I get a good viewer with clickable buttons, etc., but I think it's an event listener issue because the viewer moves when I click on the popup and then move my mouse over the map. It's like the event listener for the viewer's mouse move is still on the map window but not the rest. I do not know if it's super clear. I will try to look more at it this weekend if I have time. Thanks for the feedback! |
What does this plugin do? Are there screenshots of it or a screencast or documentation of it somewhere? |
Hi @cazitouni, Panoramax is a great procect, thanks for your contribution! AFAIK, Openlayers doesn't support reprojecting MVTs, right, @ahocevar? |
The event listener problem is a bit tricky, indeed if you do
This is relatively easy for self-written code, it is more problematic in thirdparty libraries which may need patching. [1] https://github.com/qgis/qwc2/blob/master/components/SideBar.jsx# |
Hello @tpo, The aim of this plugin is to implement support that allows users to consult images from a Panoramax instance in their QWC2 themes. Panoramax is an open-source application that aims to centralize equirectangular (or other) images from all over the world. You can self-host an instance for yourself or your organization, or simply use a public one. For now, it may be a bit premature since it's a draft, but it will, of course, be documented in the appropriate section if the plugin is completed. For usage, it's straightforward. The user clicks on the plugin, which loads the vector tiles with the sequences over the theme. Then, the user can select an image from any sequence, navigate through it via the viewer, or simply select another image on the map. When finished, the user closes the window, and the vector tiles unload. I made a small clip Let me know if you need anything else. Thank for your feedback. |
Thanks for the insight, I will look into it. I will try this weekend if I can. |
Hello @manisandro,
I am taking the liberty to submit this draft PR to get your opinion on the Panoramax plugin I've created.
I believe there could be a few improvements in the future, but it will be a good first implementation of Panoramax.
For instance, highlighting sequences, managing more tile styles, and navigating through dates/sequences within the image, etc.
On a more critical note, I still have no idea how to handle MVT tiles in a projection different from EPSG:3857.
See issue --> qgis/qwc2-demo-app#600
Additionally, the poor MVT performance of OpenLayers (qgis/qwc2-demo-app#503) could result in some lag when using MVT in an area with a lot of sequences at certain scales.
Maybe find a way or submit a modification to panoramax API to send a miror wms could be a solution ?
Also, is there a reason the image style anchor was set to a fixed value of
[0.5,1]
instead of usingoptions.anchor
inFeatureStyles.js
? I've modified it because I need that for the orientation symbol. I've seen no impact on the rest of the app so far, but I do not know all of it.I've fixed a small bug in the Panoramax web viewer here --> https://gitlab.com/panoramax/clients/web-viewer/-/merge_requests/61
So, maybe waiting for the next release before merging anything would be a good idea.
Panoramax itself also has a few bugs that will need solving directly in the viewer repo. For example, in Chrome, it selects everything when you move your mouse out of the viewport of the sphere, and on some setups, the cursor is always a closed hand, which feels weird.
And finally, I didn't find any way to make the viewer work when you pop out the resizable windows of QWC. I do not know if there is any solution to that or if we should just disable this option for this plugin.
Sorry for the long explanation !
let me know what you think about that.
Kind regards,
Clément.