Line: Cesium ion: Conditional Basemap Switching (MapTiler Cloud & Bing Aerial) by Zoom & Region

I’m developing a Cesium ion application and need to implement a dynamic basemap solution that combines a MapTiler style map with Cesium Ion’s “Bing Aerial with Labels” imagery.

Specifically, I want the MapTiler map (from this style URL: https://api.maptiler.com/maps/0196a6a7-17e6-75c6-be1e-6f86cb1c9c9e/style.json?key=${MAPTILER_KEY}) to display globally for zoom levels 0 through 22.

However, for seven specific countries, I need the MapTiler map to show only up to zoom level 14. For zoom levels 15 through 22 within these countries, the basemap must switch to Cesium Ion’s “Bing Aerial with Labels” (asset ID 3).

How would I go about creating Cesium ion code to achieve this conditional basemap switching based on both zoom level and geographic bounding boxes?

Hi rsb,

Welcome to the Cesium community forum.

It sounds like you are asking about switching between different imagery providers based on the location of the camera in CesiumJS.

I’m going to move this from the Cesium ion group to the CesiumJS group since it more closely related to interacting with CesiumJS than tiling and streaming assets from Cesium ion. This will make the post more visible to people who have experience with CesiumJS.