Adding and removing Tile provider to the menu?

We don’t have a live code example for it, but you can find a few snippets of how to do this on the forum, like in this discussion: Defining new Cesium.ProviderViewModel with url from String array

A better way to do it for your use case would be to either:

  1. Create an HTML UI, like a dropdown, that selects each layer you have, instead of the built-in base layer picker widget
  2. Attach it to the timeline, so the user can scrub the timeline at the bottom to see changes automatically over tiem.

For option 2 you’d have to create an onTick event, listen for the current time period, and based on that pick the right imagery layer to show.

1 Like