Hi to all, in my web app I would like to reproduce the behaviour of Cesium.Viewer baseLayerPicker in order to pick the “default” layer provided by Cesium (for example “Bing Maps Aerial”).
I’ve a radio buttons list, each radio button activates a specific layer.
For example, BING-AERIAL radio button behaviour is the following:
ERROR TypeError: Cannot read properties of undefined (reading 'tileXYToRectangle')
at new GE (node_modules\cesium\Build\Cesium\Cesium.js:9565:174)
at GE.createPlaceholder (node_modules\cesium\Build\Cesium\Cesium.js:9565:455)
at new gi (node_modules\cesium\Build\Cesium\Cesium.js:9565:3747)
at us.addImageryProvider (node_modules\cesium\Build\Cesium\Cesium.js:9565:65834)
at CesiumDirective.changeMapLayer (cesium.directive.ts:79:15)
at Object.next (cesium.directive.ts:50:14)
at ConsumerObserver.next (Subscriber.js:91:33)
at SafeSubscriber._next (Subscriber.js:60:26)
at SafeSubscriber.next (Subscriber.js:31:18)
at Subject.js:34:30
Thanks for your replay.
Rather than modify the baselayerpicker I would like to “emulare” It.
My goal is to have a button in My front end: once clicked It, a default Cesium imagery provider Will be activated (for example Bing with Aerial).
Thanks for your help.