-
Notifications
You must be signed in to change notification settings - Fork 327
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
Problems when using a KML/vector layer in 3D mode #346
Comments
From #344 (comment):
|
I have tried to have the layer redrawn, but have been unsuccessful so far.
None of the above do update the cluster or make the kml layer appear (if enabled while in 3D). The only workaround I have found so far is to disable the 3D map and re-enable it, but that causes a noticeable flicker:
|
Have you tried to trigger the |
Thanks for the suggestion. I have just tried the following:
But there is no update on the Vector layer. |
Far from a full solution, but to help troubleshoot, both of these issues are solved if you comment out some code in setEnabled like so:
|
I did some digging into the use of I found a work-around which did deliver somewhat satisfactory results. By using the cameras position and the frustum to calculate the pixel dimension using the cameras height. With the pixels dimensions in meters, I reset the resolution on the 2D map. This forces the cluster to be re-rendered. Potentially, such a fix could also solve the problem of not being able to initialize the cluster source in 3D, but I did not investigate this. What I did experience, was a drastic drop in performance. Since every change to the altitude forces the entire cluster source to re-evaluate its features, thus clearing all the features first and then adding them again. So I am now trying to solve the issue via the use of Cesiums own clustering capabilities. |
Thanks @bkuster for your feedback. |
Using a Vector/KML layer in OpenLayers 3, with a Cluster. When using ol3-cesium in 3D mode this is somewhat working, but I have observed the following issues:
The text was updated successfully, but these errors were encountered: