-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Bug rendering PMTiles layer in OpenLayers for React frontend #2157
Comments
Just two clarify, there are two issues right?
|
Yes, there are multiple issues:
|
Tile generation issue (2)The second issue will be because of the swapped xy edit that was done on the Tokha server. As an alternative, we could swap out osm-fieldwork basemapper with go-tilepacks quite easily. Will give this some more thought. @Sujanadh we could look at this tomorrow 👍 Offline PMTiles issue (1)The first issue is a frontend bug. The PMTiles loading from OPFS should only load for the specified project id, if present in OPFS, else fallback to loading none. @NSUWAL123 I know you have a lot of tasks, but it would be amazing if you get a chance to debug this one 🙏 |
Yeah sure, Sam! I was also looking at the issue related to multiple-tile rendering. There were some issues that I faced:
|
|
Rendering problem is only there when user visualise the custom tiles on project details page by clicking on eye button on after tiles are generated. Visualising directly by switching the baselayer doesn't show any such issue. One thing we can do can also be removing eye icon from tile generation pop-up. |
Ah apologies, this is all the manager frontend then. Possible OpenLayers issue 👍 Useful info, thanks! |
Sure @spwoodcock I'll have a look at it |
Blocked by this issue. The status shows the PMTile is generated successfully but the s3 URL throws an error. CC: @spwoodcock @Sujanadh |
Hmm thanks, will check this later. Only an issue on local dev - for some reason the S3 URL is returning as https not http |
I can't reproduce this - are you sure it's not a configuration issue @NSUWAL123? I think it's likely the result of not having |
Interestingly, the default config for this is already I was just testing it out. By any chance do you have this in your .env |
@NSUWAL123 my vote is to remove the PMTiles visualisation and PMTiles library entirely from the manager frontend / openlayer map. (also the OPFS code too!) We mostly need to visualise on the maplibre mapper frontend anyway. Plus managers can still download and inspect the file manually 👍 |
Umm. But there might also be a case where a new imagery is uploaded and the validators may want to see if the new feature aligns with the building @manjitapandey ? |
I can't reproduce this. Can anybody else in the team? Can you provide any more debug info? Everything is working well on dev / stage regardless - it's a local dev problem only 👍 |
i was also having same rendering problem. |
i will provide you my env |
I am also getting the same - its a frontend issue with OpenLayers 👍 But Nishit is having a different issue with not being able to download the PMTiles from S3, due to config (which is seems that you aren't having Sujan, so it suggests a config difference between you). Also confirm which branch you are testing this on Nishit please 🙏 I assume its rebased to latest development |
I'll have a look again on Monday and get back to you then |
Definitely! I just realised I already removed the OPFS implementation 😁 So its just the direct PMTiles from S3 in OpenLayers that needs debugging |
Can't get to the solution on this issue. |
Don't worry about it 😃 Maybe just an upgrade to ol-pmtiles might fix it. Otherwise, its not a big deal for now. |
Describe the bug
The base imagery is not rendered properly and shows multiple imageries when zoomed out while using custom drone imagery.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The base imagery should be visualized on its location only and shouldn't be duplicated. Also it should be rendered properly.
Screenshots
Additional context
If zoomed in on the actual location of tms tile, the drone imagery is not seen there and is shifted to different location.
If you open different project too, same base imagery is visualized until you refresh the page.
The text was updated successfully, but these errors were encountered: