Reputation: 2670
I want to add checkboxes to the main scene, each indicating a WMS layer. Selecting them will automatically initialize the provider with the layer info and add them to the map. Couldn't find anything useful on this. How can I achieve this? Is there any way defined in the Cesium API to accomplish it, or should I just create custom HTML checkboxes and render the scene everytime a checkbox is selected?
Thanks in advance fellas.
Upvotes: 1
Views: 2346
Reputation: 12448
Use HTML checkboxes (or similar) for the UI, with Cesium API calls in response to events.
There is an Imagery Layers Manipulation Demo available, that has checkboxes similar to what I think you're describing.
Also check out the Sandcastle live code for the above demo.
Upvotes: 2