-
Notifications
You must be signed in to change notification settings - Fork 301
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
Migration to 3D Tiles renderer followup #2415
Conversation
Thank you for this ! I think that we should wait for the zoom to end and then wait for the tiles to load. Concerning the loaded tiles, I didn't find any event worthwhile to use from the lib. Could be interesting to open an issue for this. EDIT: |
42cf51a
to
73e5c3f
Compare
@AnthonyGlt Thanks, using both these events does the job :) @Desplandis I added functional tests and also updated the object returned by the picking to conform better to what's returned for other layers (types will be more than welcome for such cases :) ) |
5a92c77
to
4e1ccc1
Compare
Sooo, the tests pass locally but not on the CI 😅 I tried a few things to fix them on the ci but didn't succeed. If you guys have any idea let me know, otherwise I'll just remove them. |
Maybe a different version of We have an open PR (#2268) which should update the version of node on the CI (any news @mgermerie?) |
That was I though too but I already verified I used the right version. What's kind of weird is that one of the three tests is passing while all the test use pretty much the same logic. |
4e1ccc1
to
8fe5925
Compare
Sooo, I removed the functional tests for now 😅 I kept them here if we want to finish the work one day |
8fe5925
to
08ec526
Compare
Followup on 3D tiles renderer migration - see v1 of #2225:
OGC3DTilesLayer
Notes:
I started implementing functional tests on this branch but haven't fully succeeded yet and don't have much more time to put into it now. Basically I wanted to click on each button of the example, wait until the camera has moved and the tileset is loaded and then pick the scene to verify the 3D tiles layer is there. I tried several solutions but didn't manage to click on the buttons (or at least it didn't trigger the corresponding load methods) but directly calling the methods bound to onclick works ok. The main pain point is that
waitUntilItownsIsIdle
does not work in this case. I believe it's because it's based on thecommand-queue-empty
which is triggered before the tileset has finished loading since tileset loading is now managed by 3DTilesRenderer. We need to find a way to know when tileset loading is over in 3DTilesRendererJS and we may also need to account for that before dispatchingcommand-queue-empty
. @Desplandis @AnthonyGlt any thoughts on this?