react-native-cesium 1.2.20 → 1.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -184,7 +184,7 @@ npm run build --prefix node_modules/react-native-cesium
184
184
 
185
185
  **Yarn/npm workspaces:** if `react-native-cesium` is a workspace package in your monorepo, use your tool’s workspace runner, e.g. `yarn workspace react-native-cesium run update` (exact syntax depends on your workspace layout).
186
186
 
187
- - `update` checks out **Cesium Native `v0.65.0`** into `vendor/cesium-native` under the package (next to its other files; typically ignored in app repos).
187
+ - `update` checks out **Cesium Native `v0.66.0`** into `vendor/cesium-native` under the package (next to its other files; typically ignored in app repos).
188
188
  - `build` runs `scripts/cesium/build.mjs` (**CMake**, **vcpkg** under `vendor/vcpkg` unless **`VCPKG_ROOT`** is set, **Ninja** on macOS) and writes **`vendor/ios/CesiumNative.xcframework`** and/or **`vendor/android`** depending on **`CESIUM_BUILD_ONLY`**.
189
189
 
190
190
  Then install pods (iOS):
@@ -396,8 +396,12 @@ void CesiumEngine::applyImageryOverlay(int64_t targetAssetId) {
396
396
  if (!tileset_) return;
397
397
  if (targetAssetId == currentImageryAssetId_) return;
398
398
 
399
+ // Same order as destroyTileset: detach, drain in-flight Ion raster work
400
+ // while this engine still owns the overlay, then release it. Releasing
401
+ // currentOverlay_ before that drain frees it under those destructors.
399
402
  if (currentOverlay_) {
400
403
  tileset_->getOverlays().remove(currentOverlay_);
404
+ drainAsyncWork();
401
405
  currentOverlay_ = nullptr;
402
406
  }
403
407
  currentImageryAssetId_ = (targetAssetId <= 0) ? 1 : targetAssetId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-cesium",
3
- "version": "1.2.20",
3
+ "version": "1.2.21",
4
4
  "description": "Experimental Cesium rendering for React Native via Nitro",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",
@@ -5,4 +5,4 @@
5
5
  */
6
6
 
7
7
  /** Git tag of CesiumGS/cesium-native to clone and build. */
8
- export const CESIUM_NATIVE_REF = 'v0.65.0'
8
+ export const CESIUM_NATIVE_REF = 'v0.66.0'