@reearth/core 0.0.7-alpha.62 → 0.0.7-alpha.64

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/index.d.ts CHANGED
@@ -351,6 +351,7 @@ export declare type CoreVisualizerProps = {
351
351
  interactionMode?: InteractionModeType;
352
352
  shouldRender?: boolean;
353
353
  meta?: Record<string, unknown>;
354
+ customProvider?: CustomProviderConfig;
354
355
  style?: CSSProperties;
355
356
  small?: boolean;
356
357
  ready?: boolean;
@@ -385,6 +386,15 @@ export declare type Credits = {
385
386
 
386
387
  declare type CursorType = "default" | "auto" | "help" | "pointer" | "grab" | "crosshair" | "wait";
387
388
 
389
+ export declare type CustomProviderConfig = {
390
+ imagery?: {
391
+ providers?: ImageryProviderEntry[];
392
+ };
393
+ layers?: {
394
+ providers?: LayerProviderEntry[];
395
+ };
396
+ };
397
+
388
398
  export declare type Data = {
389
399
  type: DataType;
390
400
  url?: string;
@@ -395,6 +405,7 @@ export declare type Data = {
395
405
  updateInterval?: number;
396
406
  parameters?: Record<string, any>;
397
407
  idProperty?: string;
408
+ provider?: string;
398
409
  serviceTokens?: {
399
410
  googleMapApiKey?: string;
400
411
  };
@@ -422,7 +433,7 @@ export declare type DataRange = {
422
433
  z: number;
423
434
  };
424
435
 
425
- export declare type DataType = "geojson" | "3dtiles" | "osm-buildings" | "google-photorealistic" | "czml" | "csv" | "wms" | "mvt" | "kml" | "gpx" | "shapefile" | "gtfs" | "gml" | "georss" | "gltf" | "tiles" | "tms" | "heatMap";
436
+ export declare type DataType = "geojson" | "3dtiles" | "osm-buildings" | "reearth-buildings" | "google-photorealistic" | "czml" | "csv" | "wms" | "mvt" | "kml" | "gpx" | "shapefile" | "gtfs" | "gml" | "georss" | "gltf" | "tiles" | "tms" | "heatMap";
426
437
 
427
438
  export declare type DebugProperty = {
428
439
  showGlobeWireframe?: boolean;
@@ -511,6 +522,7 @@ export declare type EngineProps = {
511
522
  isLayerDragging?: boolean;
512
523
  shouldRender?: boolean;
513
524
  meta?: Record<string, unknown>;
525
+ customProvider?: CustomProviderConfig;
514
526
  displayCredits?: boolean;
515
527
  layersRef?: RefObject<LayersRef | null>;
516
528
  requestingRenderMode?: MutableRefObject<RequestingRenderMode>;
@@ -844,6 +856,23 @@ export declare type ImageBasedLighting = {
844
856
  sphericalHarmonicCoefficients?: [number, number, number][];
845
857
  };
846
858
 
859
+ /**
860
+ * Generic provider configuration for overriding external data sources.
861
+ *
862
+ * - imagery.providers: imagery tile providers keyed by id
863
+ * - layers.providers: 3D tileset providers keyed by id
864
+ *
865
+ * Terrain is configured via viewer/engine terrain settings (see useTerrainProviderPromise)
866
+ * or via each layer's own `url` field.
867
+ */
868
+ export declare type ImageryProviderEntry = {
869
+ id: string;
870
+ url: string;
871
+ credit?: string;
872
+ maximumLevel?: number;
873
+ minimumLevel?: number;
874
+ };
875
+
847
876
  export declare type IndicatorProperty = {
848
877
  type?: "default" | "crosshair" | "custom";
849
878
  image?: string;
@@ -944,6 +973,12 @@ export declare type LayerLoadEvent = {
944
973
  layerId: string | undefined;
945
974
  };
946
975
 
976
+ export declare type LayerProviderEntry = {
977
+ id: string;
978
+ url: string;
979
+ options?: Record<string, unknown>;
980
+ };
981
+
947
982
  export declare type LayerSelectionReason = {
948
983
  reason?: string;
949
984
  defaultInfobox?: DefaultInfobox;
@@ -1670,7 +1705,7 @@ export declare type Tag = {
1670
1705
 
1671
1706
  export declare type TerrainProperty = {
1672
1707
  enabled?: boolean;
1673
- type?: "cesium" | "arcgis" | "cesiumion";
1708
+ type?: "cesium" | "cesiumion" | "reearth_terrain";
1674
1709
  url?: string;
1675
1710
  normal?: boolean;
1676
1711
  elevationHeatMap?: ElevationHeatMapProperty;
@@ -1702,6 +1737,7 @@ export declare type TileProperty = {
1702
1737
  id: string;
1703
1738
  type?: string;
1704
1739
  url?: string;
1740
+ cesiumIonAssetId?: number;
1705
1741
  opacity?: number;
1706
1742
  zoomLevel?: number[];
1707
1743
  zoomLevelForURL?: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reearth/core",
3
- "version": "0.0.7-alpha.62",
3
+ "version": "0.0.7-alpha.64",
4
4
  "author": "Re:Earth contributors <community@reearth.io>",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A library that abstracts a map engine as one common API.",