@reearth/core 0.0.7-alpha.42 → 0.0.7-alpha.43
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/dist/core.js
CHANGED
|
@@ -64336,7 +64336,15 @@ class JapanGSIOptimalBVmapLabelImageryProvider extends JapanGSIOptimalBVmapImage
|
|
|
64336
64336
|
), this.image))().catch(() => (this.discardedTileCoords.add(h), DiscardEmptyTileImagePolicy.EMPTY_IMAGE));
|
|
64337
64337
|
}
|
|
64338
64338
|
}
|
|
64339
|
-
const
|
|
64339
|
+
const PRESET_TILE_TYPES = [
|
|
64340
|
+
"default",
|
|
64341
|
+
"default_label",
|
|
64342
|
+
"default_road",
|
|
64343
|
+
"open_street_map",
|
|
64344
|
+
"black_marble",
|
|
64345
|
+
"japan_gsi_standard",
|
|
64346
|
+
"url"
|
|
64347
|
+
], isValidPresetTileType = (t) => PRESET_TILE_TYPES.includes(t), tiles = {
|
|
64340
64348
|
default: ({ cesiumIonAccessToken: t } = {}) => IonImageryProvider.fromAssetId(IonWorldImageryStyle.AERIAL, {
|
|
64341
64349
|
accessToken: t
|
|
64342
64350
|
}).catch(console.error),
|
|
@@ -64405,7 +64413,7 @@ function useImageryProviders({
|
|
|
64405
64413
|
presets: o
|
|
64406
64414
|
}) {
|
|
64407
64415
|
const s = useCallback(
|
|
64408
|
-
(F, N) => o[F.type
|
|
64416
|
+
(F, N) => o[isValidPresetTileType(F.type) ? F.type : "default"]({
|
|
64409
64417
|
url: F.url,
|
|
64410
64418
|
cesiumIonAccessToken: N,
|
|
64411
64419
|
heatmap: F.heatmap,
|
|
@@ -91375,7 +91383,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
|
|
|
91375
91383
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
|
|
91376
91384
|
] });
|
|
91377
91385
|
}
|
|
91378
|
-
const version = "0.0.7-alpha.
|
|
91386
|
+
const version = "0.0.7-alpha.43", useCoreAPI = ({ viewerProperty: t }) => {
|
|
91379
91387
|
const n = useRef(t);
|
|
91380
91388
|
n.current = t;
|
|
91381
91389
|
const o = useMemo(
|