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 +1 -1
- package/cpp/engine/CesiumEngine.cpp +4 -0
- package/package.json +1 -1
- package/scripts/cesium/config.mjs +1 -1
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.
|
|
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