@reearth/core 0.0.7-alpha.13 → 0.0.7-alpha.14

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
@@ -20,7 +20,7 @@ var zm = (t, n, o, s) => ({
20
20
  import * as React from "react";
21
21
  import React__default, { useRef, useCallback, useState, useEffect, useMemo, useImperativeHandle, useContext as useContext$1, useReducer, useDebugValue, createContext, useLayoutEffect, forwardRef, Component as Component$1, isValidElement, createElement, memo as memo$1, Suspense, useInsertionEffect, Fragment, useId } from "react";
22
22
  import * as Cesium$1 from "cesium";
23
- import { Color as Color$3, Math as Math$1, ScreenSpaceEventType, ScreenSpaceEventHandler, BillboardCollection, BillboardGraphics as BillboardGraphics$1, BoxGraphics as BoxGraphics$1, Cesium3DTileset, Cesium3DTilesetGraphics as Cesium3DTilesetGraphics$1, CesiumWidget, ClassificationPrimitive as ClassificationPrimitive$1, CloudCollection, CorridorGraphics as CorridorGraphics$1, CustomDataSource, CylinderGraphics as CylinderGraphics$1, CzmlDataSource, EllipseGraphics as EllipseGraphics$1, EllipsoidGraphics as EllipsoidGraphics$1, Entity as Entity$2, Fog, GeoJsonDataSource, GroundPolylinePrimitive as GroundPolylinePrimitive$1, GroundPrimitive as GroundPrimitive$1, ImageryLayer, KmlDataSource, LabelCollection, LabelGraphics as LabelGraphics$1, Model as Model$1, ModelGraphics as ModelGraphics$1, Moon, ParticleSystem, PathGraphics as PathGraphics$1, PlaneGraphics as PlaneGraphics$1, PointGraphics as PointGraphics$1, PointPrimitiveCollection, PolygonGraphics as PolygonGraphics$1, PolylineCollection, PolylineGraphics as PolylineGraphics$1, PolylineVolumeGraphics as PolylineVolumeGraphics$1, PostProcessStage, PostProcessStageLibrary, PostProcessStageComposite, Primitive as Primitive$1, RectangleGraphics as RectangleGraphics$1, Sun, TimeDynamicPointCloud, Viewer, WallGraphics as WallGraphics$1, SceneMode as SceneMode$2, Event as Event$2, EntityCluster, HorizontalOrigin as HorizontalOrigin$2, VerticalOrigin as VerticalOrigin$2, Cartesian3 as Cartesian3$1, ClockRange, JulianDate as JulianDate$1, ClockStep, CameraEventType, KeyboardEventModifier, Cartesian2 as Cartesian2$1, Ray as Ray$1, Cartographic as Cartographic$1, BoundingSphere as BoundingSphere$1, HeadingPitchRange, Matrix4 as Matrix4$1, PerspectiveFrustum, IntersectionTests as IntersectionTests$1, OrthographicOffCenterFrustum as OrthographicOffCenterFrustum$1, Cesium3DTileColorBlendMode, ShadowMode as ShadowMode$2, Quaternion as Quaternion$1, Matrix3 as Matrix3$1, EllipsoidTerrainProvider, sampleTerrainMostDetailed, Plane as Plane$1, ColorBlendMode, HeightReference as HeightReference$2, ClassificationType as ClassificationType$2, CesiumTerrainProvider, IonResource, ArcGISTiledElevationTerrainProvider, IonImageryProvider, IonWorldImageryStyle, OpenStreetMapImageryProvider, ArcGisMapServerImageryProvider, UrlTemplateImageryProvider, DiscardEmptyTileImagePolicy as DiscardEmptyTileImagePolicy$1, TextureMagnificationFilter as TextureMagnificationFilter$2, TextureMinificationFilter as TextureMinificationFilter$2, SceneTransforms as SceneTransforms$1, WebMercatorTilingScheme as WebMercatorTilingScheme$1, Cesium3DTileFeature, Cesium3DTilePointFeature, PropertyBag as PropertyBag$1, TimeIntervalCollection, TimeInterval, Iso8601, DistanceDisplayCondition, CallbackProperty as CallbackProperty$1, ColorMaterialProperty as ColorMaterialProperty$1, ArcType as ArcType$2, ImageryLayerFeatureInfo, HeadingPitchRoll as HeadingPitchRoll$1, Transforms as Transforms$1, Axis, TranslationRotationScale as TranslationRotationScale$1, PolylineDashMaterialProperty as PolylineDashMaterialProperty$1, PerInstanceColorAppearance as PerInstanceColorAppearance$1, Material as Material$1, VertexFormat as VertexFormat$1, GeometryAttribute as GeometryAttribute$1, ComponentDatatype as ComponentDatatype$2, FrustumGeometry, GeometryInstance as GeometryInstance$1, Rectangle as Rectangle$1, PolygonGeometry, EllipsoidSurfaceAppearance, Intersect as Intersect$2, CustomShader, CustomShaderMode, LightingModel, CustomShaderTranslucencyMode, ImageBasedLighting, EasingFunction, PolygonHierarchy as PolygonHierarchy$1, Credit, WindingOrder as WindingOrder$2, TileMapServiceImageryProvider, WebMapServiceImageryProvider, ClippingPlane, ClippingPlaneCollection, Cesium3DTileStyle, defaultValue as defaultValue$2, Resource as Resource$2, GoogleMaps, Camera, EllipsoidGeodesic as EllipsoidGeodesic$1, PerspectiveOffCenterFrustum, BoundingRectangle as BoundingRectangle$1, Ellipsoid as Ellipsoid$2, SunLight, DirectionalLight, Ion, PostProcessStageSampleMode } from "cesium";
23
+ import { Color as Color$3, Math as Math$1, ScreenSpaceEventType, ScreenSpaceEventHandler, BillboardCollection, BillboardGraphics as BillboardGraphics$1, BoxGraphics as BoxGraphics$1, Cesium3DTileset, Cesium3DTilesetGraphics as Cesium3DTilesetGraphics$1, CesiumWidget, ClassificationPrimitive as ClassificationPrimitive$1, CloudCollection, CorridorGraphics as CorridorGraphics$1, CustomDataSource, CylinderGraphics as CylinderGraphics$1, CzmlDataSource, EllipseGraphics as EllipseGraphics$1, EllipsoidGraphics as EllipsoidGraphics$1, Entity as Entity$2, Fog, GeoJsonDataSource, GroundPolylinePrimitive as GroundPolylinePrimitive$1, GroundPrimitive as GroundPrimitive$1, ImageryLayer, KmlDataSource, LabelCollection, LabelGraphics as LabelGraphics$1, Model as Model$1, ModelGraphics as ModelGraphics$1, Moon, ParticleSystem, PathGraphics as PathGraphics$1, PlaneGraphics as PlaneGraphics$1, PointGraphics as PointGraphics$1, PointPrimitiveCollection, PolygonGraphics as PolygonGraphics$1, PolylineCollection, PolylineGraphics as PolylineGraphics$1, PolylineVolumeGraphics as PolylineVolumeGraphics$1, PostProcessStage, PostProcessStageLibrary, PostProcessStageComposite, Primitive as Primitive$1, RectangleGraphics as RectangleGraphics$1, Sun, TimeDynamicPointCloud, Viewer, WallGraphics as WallGraphics$1, SceneMode as SceneMode$2, Event as Event$2, EntityCluster, HorizontalOrigin as HorizontalOrigin$2, VerticalOrigin as VerticalOrigin$2, Cartesian3 as Cartesian3$1, ClockRange, JulianDate as JulianDate$1, ClockStep, CameraEventType, KeyboardEventModifier, Cartesian2 as Cartesian2$1, Ray as Ray$1, Cartographic as Cartographic$1, BoundingSphere as BoundingSphere$1, HeadingPitchRange, Matrix4 as Matrix4$1, PerspectiveFrustum, IntersectionTests as IntersectionTests$1, OrthographicOffCenterFrustum as OrthographicOffCenterFrustum$1, Cesium3DTileColorBlendMode, ShadowMode as ShadowMode$2, Quaternion as Quaternion$1, Matrix3 as Matrix3$1, EllipsoidTerrainProvider, sampleTerrainMostDetailed, Plane as Plane$1, ColorBlendMode, HeightReference as HeightReference$2, ClassificationType as ClassificationType$2, CesiumTerrainProvider, IonResource, ArcGISTiledElevationTerrainProvider, IonImageryProvider, IonWorldImageryStyle, OpenStreetMapImageryProvider, ArcGisMapServerImageryProvider, UrlTemplateImageryProvider, DiscardEmptyTileImagePolicy as DiscardEmptyTileImagePolicy$1, TextureMagnificationFilter as TextureMagnificationFilter$2, TextureMinificationFilter as TextureMinificationFilter$2, SceneTransforms as SceneTransforms$1, DistanceDisplayCondition, WebMercatorTilingScheme as WebMercatorTilingScheme$1, Cesium3DTileFeature, Cesium3DTilePointFeature, PropertyBag as PropertyBag$1, TimeIntervalCollection, TimeInterval, Iso8601, CallbackProperty as CallbackProperty$1, ColorMaterialProperty as ColorMaterialProperty$1, ArcType as ArcType$2, ImageryLayerFeatureInfo, HeadingPitchRoll as HeadingPitchRoll$1, Transforms as Transforms$1, Axis, TranslationRotationScale as TranslationRotationScale$1, PolylineDashMaterialProperty as PolylineDashMaterialProperty$1, PerInstanceColorAppearance as PerInstanceColorAppearance$1, Material as Material$1, VertexFormat as VertexFormat$1, GeometryAttribute as GeometryAttribute$1, ComponentDatatype as ComponentDatatype$2, FrustumGeometry, GeometryInstance as GeometryInstance$1, Rectangle as Rectangle$1, PolygonGeometry, EllipsoidSurfaceAppearance, Intersect as Intersect$2, CustomShader, CustomShaderMode, LightingModel, CustomShaderTranslucencyMode, ImageBasedLighting, EasingFunction, PolygonHierarchy as PolygonHierarchy$1, Credit, WindingOrder as WindingOrder$2, TileMapServiceImageryProvider, WebMapServiceImageryProvider, ClippingPlane, ClippingPlaneCollection, Cesium3DTileStyle, defaultValue as defaultValue$2, Resource as Resource$2, GoogleMaps, Camera, EllipsoidGeodesic as EllipsoidGeodesic$1, PerspectiveOffCenterFrustum, BoundingRectangle as BoundingRectangle$1, Ellipsoid as Ellipsoid$2, SunLight, DirectionalLight, Ion, PostProcessStageSampleMode } from "cesium";
24
24
  import "react-dom";
25
25
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
26
26
  function getDefaultExportFromCjs(t) {
@@ -62315,84 +62315,87 @@ const JapanGSIOptimalBVmapLabelImagery = memo$1(
62315
62315
  descendants: o,
62316
62316
  height: s = 50,
62317
62317
  style: c = defaultStyle,
62318
- labelCollection: d
62318
+ labelCollection: d,
62319
+ near: h,
62320
+ far: p
62319
62321
  }) => {
62320
- const h = $e$1(), p = suspend(
62322
+ const y = $e$1(), E = suspend(
62321
62323
  async () => await t.tileCache.get(getTileCoords(n, 16)),
62322
62324
  [JapanGSIOptimalBVmapLabelImagery, n.key]
62323
- ), y = useMemo(
62325
+ ), L = useMemo(
62324
62326
  () => t.tilingScheme.tileXYToRectangle(n.x, n.y, n.level),
62325
62327
  [t, n]
62326
- ), E = useMemo(
62328
+ ), F = useMemo(
62327
62329
  () => o == null ? void 0 : o.map(
62328
- (W) => t.tilingScheme.tileXYToRectangle(
62329
- W.x,
62330
- W.y,
62331
- W.level
62330
+ (lt) => t.tilingScheme.tileXYToRectangle(
62331
+ lt.x,
62332
+ lt.y,
62333
+ lt.level
62332
62334
  )
62333
62335
  ),
62334
62336
  [t, o]
62335
- ), L = useMemo(() => {
62336
- const W = p.get("Anno");
62337
- return W == null ? [] : W.filter(
62338
- (nt) => typeof nt.props.vt_code == "number" && // Look for annotations with 3-digits code only.
62337
+ ), N = useMemo(() => {
62338
+ const lt = E.get("Anno");
62339
+ return lt == null ? [] : lt.filter(
62340
+ (Ee) => typeof Ee.props.vt_code == "number" && // Look for annotations with 3-digits code only.
62339
62341
  // https://maps.gsi.go.jp/help/pdf/vector/optbv_featurecodes.pdf
62340
- `${nt.props.vt_code}`.length === 3 && typeof nt.props.vt_text == "string" && (nt.props.vt_arrng == null || typeof nt.props.vt_arrng == "number") && (nt.props.vt_arrngagl == null || typeof nt.props.vt_arrngagl == "number") && // `vt_flag17` property determines the visibility of features inside
62342
+ `${Ee.props.vt_code}`.length === 3 && typeof Ee.props.vt_text == "string" && (Ee.props.vt_arrng == null || typeof Ee.props.vt_arrng == "number") && (Ee.props.vt_arrngagl == null || typeof Ee.props.vt_arrngagl == "number") && // `vt_flag17` property determines the visibility of features inside
62341
62343
  // tiles at level 16.
62342
62344
  // https://maps.gsi.go.jp/help/pdf/vector/optbv_attribute.pdf
62343
- (n.level < 16 || n.level === 16 && nt.props.vt_flag17 !== 2 || n.level === 17 && nt.props.vr_flag17 !== 0)
62345
+ (n.level < 16 || n.level === 16 && Ee.props.vt_flag17 !== 2 || n.level === 17 && Ee.props.vr_flag17 !== 0)
62344
62346
  );
62345
- }, [p, n]), F = useRef(), N = h == null ? void 0 : h.scene, z = useCallback(() => {
62346
- const W = F.current;
62347
- W != null && (W.forEach(([nt, lt]) => {
62348
- var yt;
62349
- const Ee = getPosition(
62347
+ }, [E, n]), z = useRef(), oe = y == null ? void 0 : y.scene, W = useCallback(() => {
62348
+ const lt = z.current;
62349
+ lt != null && (lt.forEach(([Ee, yt]) => {
62350
+ var zi;
62351
+ const pi = getPosition(
62350
62352
  n,
62351
- nt,
62352
- y,
62353
- E,
62353
+ Ee,
62354
+ L,
62355
+ F,
62354
62356
  t.tileCache.tileSize,
62355
62357
  s,
62356
- (yt = N == null ? void 0 : N.globe) == null ? void 0 : yt.ellipsoid,
62358
+ (zi = oe == null ? void 0 : oe.globe) == null ? void 0 : zi.ellipsoid,
62357
62359
  positionScratch$1
62358
62360
  );
62359
- Ee != null ? (lt.position = Ee, lt.show = !0) : lt.show = !1;
62360
- }), N == null || N.requestRender());
62361
- }, [t, n, s, y, E, N]), oe = useRef(z);
62362
- return oe.current = z, useEffect(() => {
62363
- if (!N || !d)
62361
+ pi != null ? (yt.position = pi, yt.show = !0) : yt.show = !1;
62362
+ }), oe == null || oe.requestRender());
62363
+ }, [t, n, s, L, F, oe]), nt = useRef(W);
62364
+ return nt.current = W, useEffect(() => {
62365
+ if (!oe || !d)
62364
62366
  return;
62365
- const W = [], nt = L.map((Ee) => {
62366
- const yt = resolveStyle(Ee.props.vt_code, c);
62367
- if (yt == null)
62367
+ const lt = [], Ee = N.map((pi) => {
62368
+ const zi = resolveStyle(pi.props.vt_code, c);
62369
+ if (zi == null)
62368
62370
  return;
62369
- const pi = Ee.props.vt_text;
62370
- if (W.includes(pi))
62371
+ const ha = pi.props.vt_text;
62372
+ if (lt.includes(ha))
62371
62373
  return;
62372
- W.push(pi);
62373
- const zi = {
62374
- text: pi,
62374
+ lt.push(ha);
62375
+ const ba = {
62376
+ text: ha,
62375
62377
  style: LabelStyle$1.FILL_AND_OUTLINE,
62376
62378
  horizontalOrigin: HorizontalOrigin$1.CENTER,
62377
62379
  verticalOrigin: VerticalOrigin$1.BOTTOM,
62378
62380
  heightReference: HeightReference$1.CLAMP_TO_GROUND,
62381
+ distanceDisplayCondition: h || p ? new DistanceDisplayCondition(h, p) : void 0,
62379
62382
  disableDepthTestDistance: 1 / 0,
62380
- ...yt
62383
+ ...zi
62381
62384
  };
62382
- return [Ee, d.add(zi)];
62385
+ return [pi, d.add(ba)];
62383
62386
  }).filter(isNotNullish);
62384
- F.current = nt, oe.current();
62385
- const lt = () => {
62386
- d.isDestroyed() || nt.forEach(([, Ee]) => {
62387
- d.remove(Ee);
62388
- }), N.isDestroyed() || N == null || N.postRender.removeEventListener(lt);
62387
+ z.current = Ee, nt.current();
62388
+ const yt = () => {
62389
+ d.isDestroyed() || Ee.forEach(([, pi]) => {
62390
+ d.remove(pi);
62391
+ }), oe.isDestroyed() || oe == null || oe.postRender.removeEventListener(yt);
62389
62392
  };
62390
62393
  return () => {
62391
- F.current = void 0, N.isDestroyed() || N == null || N.postRender.addEventListener(lt);
62394
+ z.current = void 0, oe.isDestroyed() || oe == null || oe.postRender.addEventListener(yt);
62392
62395
  };
62393
- }, [c, L, N, d]), useEffect(() => {
62394
- z();
62395
- }, [z]), null;
62396
+ }, [c, N, oe, d, h, p]), useEffect(() => {
62397
+ W();
62398
+ }, [W]), null;
62396
62399
  }
62397
62400
  );
62398
62401
  JapanGSIOptimalBVmapLabelImagery.displayName = "JapanGSIOptimalBVmapLabelImagery";
@@ -62497,54 +62500,60 @@ function getImageriesToRender(t, n) {
62497
62500
  isEqualKeys(y, p.children) || (p.children = y), isEqualKeys(E, p.descendants) || (p.descendants = E);
62498
62501
  }), d.filter((p) => p.children != null && p.children.length < 4);
62499
62502
  }
62500
- const LabelImageryCollection = ({ imageryProvider: t, imageriesAtom: n, style: o, labelCollection: s }) => {
62501
- const c = useAtomValue(n);
62502
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: c.map((d) => /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
62503
+ const LabelImageryCollection = ({ imageryProvider: t, imageriesAtom: n, style: o, labelCollection: s, near: c, far: d }) => {
62504
+ const h = useAtomValue(n);
62505
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: h.map((p) => /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
62503
62506
  JapanGSIOptimalBVmapLabelImagery,
62504
62507
  {
62505
62508
  imageryProvider: t,
62506
- imagery: d,
62507
- descendants: d.descendants,
62509
+ imagery: p,
62510
+ descendants: p.descendants,
62508
62511
  style: o,
62509
- labelCollection: s
62510
- }
62511
- ) }, d.key)) });
62512
- }, JapanGSIOptimalBVmapVectorMapLabel = ({ style: t }) => {
62513
- const [n, o] = useState(), s = useCallback((F) => {
62514
- var N;
62515
- o(
62516
- ((N = F == null ? void 0 : F.cesiumElement) == null ? void 0 : N.imageryProvider) instanceof JapanGSIOptimalBVmapLabelImageryProvider ? F.cesiumElement.imageryProvider : void 0
62512
+ labelCollection: s,
62513
+ near: c,
62514
+ far: d
62515
+ }
62516
+ ) }, p.key)) });
62517
+ }, JapanGSIOptimalBVmapVectorMapLabel = ({
62518
+ style: t,
62519
+ near: n,
62520
+ far: o
62521
+ }) => {
62522
+ const [s, c] = useState(), d = useCallback((z) => {
62523
+ var oe;
62524
+ c(
62525
+ ((oe = z == null ? void 0 : z.cesiumElement) == null ? void 0 : oe.imageryProvider) instanceof JapanGSIOptimalBVmapLabelImageryProvider ? z.cesiumElement.imageryProvider : void 0
62517
62526
  );
62518
- }, []), c = useMemo(() => {
62519
- const F = atom([]);
62527
+ }, []), h = useMemo(() => {
62528
+ const z = atom([]);
62520
62529
  return atom(
62521
- (N) => N(F),
62522
- (N, z, oe) => {
62523
- const W = N(F), nt = typeof oe == "function" ? oe(W) : oe;
62524
- W.length !== nt.length && xorBy(W, nt, "key").length > 0 && z(F, nt);
62530
+ (oe) => oe(z),
62531
+ (oe, W, nt) => {
62532
+ const lt = oe(z), Ee = typeof nt == "function" ? nt(lt) : nt;
62533
+ lt.length !== Ee.length && xorBy(lt, Ee, "key").length > 0 && W(z, Ee);
62525
62534
  }
62526
62535
  );
62527
- }, []), d = useSetAtom(c);
62528
- usePreRender((F) => {
62529
- if (n == null)
62536
+ }, []), p = useSetAtom(h);
62537
+ usePreRender((z) => {
62538
+ if (s == null)
62530
62539
  return;
62531
- const N = getImageriesToRender(F, n);
62532
- d(N);
62540
+ const oe = getImageriesToRender(z, s);
62541
+ p(oe);
62533
62542
  });
62534
- const { labelCollection: h, scene: p } = $e$1(), y = useRef(!1), E = useMemo(() => h ?? (p ? new LabelCollection({ scene: p }) : void 0), [p, h]);
62543
+ const { labelCollection: y, scene: E } = $e$1(), L = useRef(!1), F = useMemo(() => y ?? (E ? new LabelCollection({ scene: E }) : void 0), [E, y]);
62535
62544
  useEffect(() => {
62536
- !h && p && !y.current && (p.primitives.add(E), y.current = !0);
62537
- }, [h, E, p]);
62538
- const L = useRef(0);
62539
- return usePreRender((F) => {
62540
- E && L.current !== E._labelsToUpdate.length && (F.requestRender(), L.current = E._labelsToUpdate.length);
62545
+ !y && E && !L.current && (E.primitives.add(F), L.current = !0);
62546
+ }, [y, F, E]);
62547
+ const N = useRef(0);
62548
+ return usePreRender((z) => {
62549
+ F && N.current !== F._labelsToUpdate.length && (z.requestRender(), N.current = F._labelsToUpdate.length);
62541
62550
  }), useEffect(() => () => {
62542
- p != null && p.isDestroyed() || p == null || p.requestRender();
62543
- }, [p]), /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
62551
+ E != null && E.isDestroyed() || E == null || E.requestRender();
62552
+ }, [E]), /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
62544
62553
  /* @__PURE__ */ jsxRuntimeExports.jsx(
62545
62554
  LabelImageryLayer,
62546
62555
  {
62547
- ref: s,
62556
+ ref: d,
62548
62557
  url: "https://cyberjapandata.gsi.go.jp/xyz/optimal_bvmap-v1/{z}/{x}/{y}.pbf",
62549
62558
  tileWidth: 1024,
62550
62559
  tileHeight: 1024,
@@ -62553,13 +62562,15 @@ const LabelImageryCollection = ({ imageryProvider: t, imageriesAtom: n, style: o
62553
62562
  maximumDataLevel: 16
62554
62563
  }
62555
62564
  ),
62556
- n != null && /* @__PURE__ */ jsxRuntimeExports.jsx(
62565
+ s != null && /* @__PURE__ */ jsxRuntimeExports.jsx(
62557
62566
  LabelImageryCollection,
62558
62567
  {
62559
- imageryProvider: n,
62560
- imageriesAtom: c,
62568
+ imageryProvider: s,
62569
+ imageriesAtom: h,
62561
62570
  style: t,
62562
- labelCollection: E
62571
+ labelCollection: F,
62572
+ near: n,
62573
+ far: o
62563
62574
  }
62564
62575
  )
62565
62576
  ] });
@@ -62569,7 +62580,15 @@ const LabelImageryCollection = ({ imageryProvider: t, imageriesAtom: n, style: o
62569
62580
  return null;
62570
62581
  switch (n.labelType) {
62571
62582
  case "japan_gsi_optimal_bvmap":
62572
- return /* @__PURE__ */ jsxRuntimeExports.jsx(JapanGSIOptimalBVmapVectorMapLabel, { style: n.style }, n.id);
62583
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
62584
+ JapanGSIOptimalBVmapVectorMapLabel,
62585
+ {
62586
+ style: n.style,
62587
+ near: n.near,
62588
+ far: n.far
62589
+ },
62590
+ n.id
62591
+ );
62573
62592
  default:
62574
62593
  return null;
62575
62594
  }
@@ -86052,7 +86071,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
86052
86071
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
86053
86072
  ] });
86054
86073
  }
86055
- const version = "0.0.7-alpha.13", useCoreAPI = ({ viewerProperty: t }) => {
86074
+ const version = "0.0.7-alpha.14", useCoreAPI = ({ viewerProperty: t }) => {
86056
86075
  const n = useRef(t);
86057
86076
  n.current = t;
86058
86077
  const o = useMemo(