-
Notifications
You must be signed in to change notification settings - Fork 320
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
LayerGroups basic raster sync #27
Comments
A simple implementation which will include all layers in the LayerGroup hierarchy will be part #25. Advanced impementation of LayerGroups with listeners on opacity/hue/.. of the whole group is to be implemented later on. |
Note from our client: "Our application uses several layer groups to make z-indexing and layer management very straightforward. The layer synchronization in ol3cs should be listening to change events from layer groups so layers stay synchronized between the map/globe." |
Basic implementation for syncing layers which are inside of a LayerGroup has been done. Advanced implementation of LayerGroups - which would allow changes of opacity of a LayerGroup - influencing opacity on all individual layers inside of a group goes beyond the original specification. @ahocevar - is there a bug report from the client on existing implementation of the LayerGroups? |
Closing this ticket - if the advanced "Visibility & opacity of LayerGroups" should be implemented lets create a new ticket for that... |
@klokan, the issue is with collection changes on layer groups, not visibility/opacity/etc. If a layer is added to/removed from the group that change should be reflected on the globe. We aren't changing display properties at the group level so we're not concerned about that. |
OK. It is now more clear and it belongs to this ticket. Reopening. |
Implementation available in the PR #88 |
Cesium does not support concept of layer groups.
Basic raster synchronization as described in #10 iterates on in the list of OL3 layers - unsupported layers are ignored (LayerGroup is now one of them).
If LayerGroup should be supported we must include listeners on the childern of each LayerGroup in hierarchy for opacity, change of saturation, etc. and calculate the final opacity value of whole hierarchy of LayerGroups in the OLCesium wrapper.
The text was updated successfully, but these errors were encountered: