@itwin/core-frontend 5.11.0-dev.11 → 5.11.0-dev.13

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.
Files changed (98) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/lib/cjs/BingLocation.d.ts +3 -0
  3. package/lib/cjs/BingLocation.d.ts.map +1 -1
  4. package/lib/cjs/BingLocation.js +5 -1
  5. package/lib/cjs/BingLocation.js.map +1 -1
  6. package/lib/cjs/GeoProviders.d.ts +45 -0
  7. package/lib/cjs/GeoProviders.d.ts.map +1 -0
  8. package/lib/cjs/GeoProviders.js +49 -0
  9. package/lib/cjs/GeoProviders.js.map +1 -0
  10. package/lib/cjs/IModelApp.d.ts +33 -0
  11. package/lib/cjs/IModelApp.d.ts.map +1 -1
  12. package/lib/cjs/IModelApp.js +31 -0
  13. package/lib/cjs/IModelApp.js.map +1 -1
  14. package/lib/cjs/IModelConnection.d.ts +3 -3
  15. package/lib/cjs/IModelConnection.d.ts.map +1 -1
  16. package/lib/cjs/IModelConnection.js +15 -8
  17. package/lib/cjs/IModelConnection.js.map +1 -1
  18. package/lib/cjs/ViewGlobalLocation.d.ts +1 -1
  19. package/lib/cjs/ViewGlobalLocation.d.ts.map +1 -1
  20. package/lib/cjs/ViewGlobalLocation.js +3 -6
  21. package/lib/cjs/ViewGlobalLocation.js.map +1 -1
  22. package/lib/cjs/core-frontend.d.ts +1 -0
  23. package/lib/cjs/core-frontend.d.ts.map +1 -1
  24. package/lib/cjs/core-frontend.js +2 -0
  25. package/lib/cjs/core-frontend.js.map +1 -1
  26. package/lib/cjs/internal/tile/RealityModelTileTree.d.ts.map +1 -1
  27. package/lib/cjs/internal/tile/RealityModelTileTree.js +6 -2
  28. package/lib/cjs/internal/tile/RealityModelTileTree.js.map +1 -1
  29. package/lib/cjs/internal/tile/RealityTileLoader.d.ts +22 -0
  30. package/lib/cjs/internal/tile/RealityTileLoader.d.ts.map +1 -1
  31. package/lib/cjs/internal/tile/RealityTileLoader.js +53 -5
  32. package/lib/cjs/internal/tile/RealityTileLoader.js.map +1 -1
  33. package/lib/cjs/tile/RealityTile.d.ts +5 -0
  34. package/lib/cjs/tile/RealityTile.d.ts.map +1 -1
  35. package/lib/cjs/tile/RealityTile.js +4 -0
  36. package/lib/cjs/tile/RealityTile.js.map +1 -1
  37. package/lib/cjs/tile/map/BingElevation.d.ts +16 -4
  38. package/lib/cjs/tile/map/BingElevation.d.ts.map +1 -1
  39. package/lib/cjs/tile/map/BingElevation.js +18 -8
  40. package/lib/cjs/tile/map/BingElevation.js.map +1 -1
  41. package/lib/cjs/tile/map/MapLayerFormatRegistry.d.ts +3 -2
  42. package/lib/cjs/tile/map/MapLayerFormatRegistry.d.ts.map +1 -1
  43. package/lib/cjs/tile/map/MapLayerFormatRegistry.js.map +1 -1
  44. package/lib/cjs/tile/map/MapTileTree.d.ts.map +1 -1
  45. package/lib/cjs/tile/map/MapTileTree.js +18 -8
  46. package/lib/cjs/tile/map/MapTileTree.js.map +1 -1
  47. package/lib/cjs/tools/ViewTool.d.ts.map +1 -1
  48. package/lib/cjs/tools/ViewTool.js +2 -3
  49. package/lib/cjs/tools/ViewTool.js.map +1 -1
  50. package/lib/esm/BingLocation.d.ts +3 -0
  51. package/lib/esm/BingLocation.d.ts.map +1 -1
  52. package/lib/esm/BingLocation.js +5 -1
  53. package/lib/esm/BingLocation.js.map +1 -1
  54. package/lib/esm/GeoProviders.d.ts +45 -0
  55. package/lib/esm/GeoProviders.d.ts.map +1 -0
  56. package/lib/esm/GeoProviders.js +45 -0
  57. package/lib/esm/GeoProviders.js.map +1 -0
  58. package/lib/esm/IModelApp.d.ts +33 -0
  59. package/lib/esm/IModelApp.d.ts.map +1 -1
  60. package/lib/esm/IModelApp.js +32 -1
  61. package/lib/esm/IModelApp.js.map +1 -1
  62. package/lib/esm/IModelConnection.d.ts +3 -3
  63. package/lib/esm/IModelConnection.d.ts.map +1 -1
  64. package/lib/esm/IModelConnection.js +15 -8
  65. package/lib/esm/IModelConnection.js.map +1 -1
  66. package/lib/esm/ViewGlobalLocation.d.ts +1 -1
  67. package/lib/esm/ViewGlobalLocation.d.ts.map +1 -1
  68. package/lib/esm/ViewGlobalLocation.js +3 -6
  69. package/lib/esm/ViewGlobalLocation.js.map +1 -1
  70. package/lib/esm/core-frontend.d.ts +1 -0
  71. package/lib/esm/core-frontend.d.ts.map +1 -1
  72. package/lib/esm/core-frontend.js +4 -1
  73. package/lib/esm/core-frontend.js.map +1 -1
  74. package/lib/esm/internal/tile/RealityModelTileTree.d.ts.map +1 -1
  75. package/lib/esm/internal/tile/RealityModelTileTree.js +6 -2
  76. package/lib/esm/internal/tile/RealityModelTileTree.js.map +1 -1
  77. package/lib/esm/internal/tile/RealityTileLoader.d.ts +22 -0
  78. package/lib/esm/internal/tile/RealityTileLoader.d.ts.map +1 -1
  79. package/lib/esm/internal/tile/RealityTileLoader.js +54 -6
  80. package/lib/esm/internal/tile/RealityTileLoader.js.map +1 -1
  81. package/lib/esm/tile/RealityTile.d.ts +5 -0
  82. package/lib/esm/tile/RealityTile.d.ts.map +1 -1
  83. package/lib/esm/tile/RealityTile.js +4 -0
  84. package/lib/esm/tile/RealityTile.js.map +1 -1
  85. package/lib/esm/tile/map/BingElevation.d.ts +16 -4
  86. package/lib/esm/tile/map/BingElevation.d.ts.map +1 -1
  87. package/lib/esm/tile/map/BingElevation.js +18 -8
  88. package/lib/esm/tile/map/BingElevation.js.map +1 -1
  89. package/lib/esm/tile/map/MapLayerFormatRegistry.d.ts +3 -2
  90. package/lib/esm/tile/map/MapLayerFormatRegistry.d.ts.map +1 -1
  91. package/lib/esm/tile/map/MapLayerFormatRegistry.js.map +1 -1
  92. package/lib/esm/tile/map/MapTileTree.d.ts.map +1 -1
  93. package/lib/esm/tile/map/MapTileTree.js +19 -9
  94. package/lib/esm/tile/map/MapTileTree.js.map +1 -1
  95. package/lib/esm/tools/ViewTool.d.ts.map +1 -1
  96. package/lib/esm/tools/ViewTool.js +2 -3
  97. package/lib/esm/tools/ViewTool.js.map +1 -1
  98. package/package.json +20 -20
@@ -38,7 +38,7 @@ export declare class ViewGlobalLocationConstants {
38
38
  * @internal
39
39
  */
40
40
  export declare function metersToRange(inputMeters: number, minimumOutput?: number, maximumOutput?: number, maximumInputMeters?: number): number;
41
- /** Queries the actual elevation of a cartographic point on the globe (using Bing elevation services)
41
+ /** Queries the actual elevation of a cartographic point on the globe.
42
42
  * @public
43
43
  * @extensions
44
44
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ViewGlobalLocation.d.ts","sourceRoot":"","sources":["../../src/ViewGlobalLocation.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAW,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAa,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAAG,SAAS,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,YAAY,CAAA;CAAE;AAExF;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAAG,MAAM,EAAE,YAAY,CAAC;IAAC,IAAI,CAAC,EAAE,kBAAkB,CAAA;CAAE;AAEnF,gBAAgB;AAChB,qBAAa,2BAA2B;IACtC,gBAAuB,4BAA4B,OAAS;IAC5D,gBAAuB,iCAAiC,SAAiB;IACzE,gBAAuB,eAAe,YAAc;IACpD,gBAAuB,qBAAqB,KAAO;IACnD,gBAAuB,sBAAsB,WAAW;CACzD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,GAAE,MAAY,EAAE,aAAa,GAAE,MAAa,EAAE,kBAAkB,SAAgE,GAAG,MAAM,CAcxM;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAAC,QAAQ,EAAE,cAAc,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AAChB,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,SAA2D,EAAE,iBAAiB,SAAI,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM,CAc/M"}
@@ -17,7 +17,7 @@ exports.eyeToCartographicOnGlobe = eyeToCartographicOnGlobe;
17
17
  exports.eyeToCartographicOnGlobeFromGcs = eyeToCartographicOnGlobeFromGcs;
18
18
  exports.viewGlobalLocation = viewGlobalLocation;
19
19
  const core_common_1 = require("@itwin/core-common");
20
- const internal_1 = require("./tile/internal");
20
+ const IModelApp_1 = require("./IModelApp");
21
21
  const ViewState_1 = require("./ViewState");
22
22
  /** @internal */
23
23
  class ViewGlobalLocationConstants {
@@ -48,18 +48,15 @@ function metersToRange(inputMeters, minimumOutput = 500, maximumOutput = 3000, m
48
48
  }
49
49
  return output;
50
50
  }
51
- /** Queries the actual elevation of a cartographic point on the globe (using Bing elevation services)
51
+ /** Queries the actual elevation of a cartographic point on the globe.
52
52
  * @public
53
53
  * @extensions
54
54
  */
55
55
  async function queryTerrainElevationOffset(viewport, carto) {
56
- const bingElevationProvider = new internal_1.BingElevationProvider();
57
56
  if (viewport && viewport.view instanceof ViewState_1.ViewState3d && viewport.iModel.isGeoLocated) {
58
57
  const view3d = viewport.view;
59
58
  if (view3d.displayStyle.displayTerrain) {
60
- const elevationOffset = await bingElevationProvider.getHeight(carto, view3d.globeMode === core_common_1.GlobeMode.Ellipsoid);
61
- if (elevationOffset !== undefined)
62
- return elevationOffset;
59
+ return IModelApp_1.IModelApp.elevationProvider.getHeight(carto, view3d.globeMode === core_common_1.GlobeMode.Ellipsoid);
63
60
  }
64
61
  }
65
62
  return 0;
@@ -1 +1 @@
1
- {"version":3,"file":"ViewGlobalLocation.js","sourceRoot":"","sources":["../../src/ViewGlobalLocation.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAqCH,sCAcC;AAMD,kEAWC;AAgB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;IAC/F,QAAQ,CAAC,aAAa,EAAE,CAAC;IAEzB,IAAI,SAAS;QACX,QAAQ,CAAC,gBAAgB,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAE1F,OAAO,kBAAkB,CAAC;AAC5B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Views\r\n */\r\n\r\nimport { Point3d, Range3d } from \"@itwin/core-geometry\";\r\nimport { Cartographic, GlobeMode } from \"@itwin/core-common\";\r\nimport { BingElevationProvider } from \"./tile/internal\";\r\nimport { ScreenViewport } from \"./Viewport\";\r\nimport { ViewState3d } from \"./ViewState\";\r\n\r\n/** Describes a rectangular area of the earth using cartographic data structures.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GlobalLocationArea { southwest: Cartographic, northeast: Cartographic }\r\n\r\n/** Describes a location on the earth using cartographic data structures.\r\n * The viewed area of the location can be optionally specified.\r\n * The center of the location is specified with the center position.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GlobalLocation { center: Cartographic, area?: GlobalLocationArea }\r\n\r\n/** @internal */\r\nexport class ViewGlobalLocationConstants {\r\n public static readonly birdHeightAboveEarthInMeters = 713.0;\r\n public static readonly satelliteHeightAboveEarthInMeters = 402336.0 * 24;\r\n public static readonly largestEarthArc = 20037500.0; // distance from point on earth to opposite point in meters\r\n public static readonly birdPitchAngleRadians = 0.0; // Angle.piOver4Radians;\r\n public static readonly maximumDistanceToDrive = 96560.6; // The distance in meters that we will \"drive\" instead of fly to a destination (60 miles)\r\n}\r\n\r\n/** Converts a distance in meters to some range (smaller distances result in lower number; longer distances result in larger number)\r\n * Uses 500 for minimum output and 3000 for maximum output, unless either are specified.\r\n * Uses [[ViewGlobalLocationConstants.satelliteHeightAboveEarthInMeters]] as maximum input meters unless specified.\r\n * A good use of this is to convert meters to some transition duration.\r\n * @internal\r\n */\r\nexport function metersToRange(inputMeters: number, minimumOutput: number = 500, maximumOutput: number = 3000, maximumInputMeters = ViewGlobalLocationConstants.satelliteHeightAboveEarthInMeters): number {\r\n let output: number;\r\n if (inputMeters <= 0)\r\n output = minimumOutput;\r\n else if (inputMeters >= maximumInputMeters)\r\n output = maximumOutput;\r\n else {\r\n const quickLerp = (start: number, end: number, amt: number): number => {\r\n return (1 - amt) * start + amt * end;\r\n };\r\n output = quickLerp(minimumOutput, maximumOutput, inputMeters / maximumInputMeters);\r\n }\r\n\r\n return output;\r\n}\r\n\r\n/** Queries the actual elevation of a cartographic point on the globe (using Bing elevation services)\r\n * @public\r\n * @extensions\r\n */\r\nexport async function queryTerrainElevationOffset(viewport: ScreenViewport, carto: Cartographic): Promise<number> {\r\n const bingElevationProvider = new BingElevationProvider();\r\n if (viewport && viewport.view instanceof ViewState3d && viewport.iModel.isGeoLocated) {\r\n const view3d = viewport.view;\r\n if (view3d.displayStyle.displayTerrain) {\r\n const elevationOffset = await bingElevationProvider.getHeight(carto, view3d.globeMode === GlobeMode.Ellipsoid);\r\n if (elevationOffset !== undefined)\r\n return elevationOffset;\r\n }\r\n }\r\n return 0;\r\n}\r\n\r\nfunction _areaToEyeHeight(view3d: ViewState3d, ne?: Point3d, sw?: Point3d, offset = 0): number {\r\n if (ne === undefined || sw === undefined)\r\n return 0;\r\n const diagonal = ne.distance(sw);\r\n\r\n view3d.camera.validateLens();\r\n const td = Math.tan(view3d.camera.getLensAngle().radians / 2.0);\r\n return 0 !== td ? (diagonal / (2 * td) + offset) : offset;\r\n}\r\n\r\n/** Converts a cartographic area on the globe to an ideal eye height to view that area.\r\n * Offset in meters, which defaults to 0, is applied to final eye height.\r\n * @internal\r\n */\r\nexport function areaToEyeHeight(view3d: ViewState3d, area: GlobalLocationArea, offset = 0): number {\r\n const ne = view3d.cartographicToRoot(area.northeast);\r\n const sw = view3d.cartographicToRoot(area.southwest);\r\n return _areaToEyeHeight(view3d, ne, sw, offset);\r\n}\r\n\r\n/** Converts a cartographic area on the globe to an ideal eye height to view that area using the GCS.\r\n * Offset in meters, which defaults to 0, is applied to final eye height.\r\n * @internal\r\n */\r\nexport async function areaToEyeHeightFromGcs(view3d: ViewState3d, area: GlobalLocationArea, offset = 0): Promise<number> {\r\n const corners = await view3d.cartographicToRootUsingGcs([area.northeast, area.southwest]);\r\n if (!corners)\r\n return 0;\r\n\r\n return _areaToEyeHeight(view3d, corners[0], corners[1], offset);\r\n}\r\n\r\n/** Converts a root range (often project extents) to a cartographic area.\r\n * @internal\r\n */\r\nexport function rangeToCartographicArea(view3d: ViewState3d, range: Range3d): GlobalLocationArea | undefined {\r\n const low = view3d.rootToCartographic(range.low);\r\n const high = view3d.rootToCartographic(range.high);\r\n if (low === undefined || high === undefined)\r\n return undefined;\r\n return low.latitude < high.latitude ? { northeast: high, southwest: low } : { northeast: low, southwest: high };\r\n}\r\n\r\n/** Converts the eye of the camera to a cartographic location on the globe as if it was at height 0.\r\n * If preserveHeight is set to true, then height will remain untouched.\r\n * @internal\r\n */\r\nexport function eyeToCartographicOnGlobe(viewport: ScreenViewport, preserveHeight = false): Cartographic | undefined {\r\n if (!(viewport.view instanceof ViewState3d) || !viewport.iModel.isGeoLocated)\r\n return undefined;\r\n\r\n const view3d = viewport.view;\r\n\r\n const eyePointCartographic = view3d.rootToCartographic(view3d.getEyeOrOrthographicViewPoint());\r\n if (eyePointCartographic !== undefined) {\r\n if (!preserveHeight)\r\n eyePointCartographic.height = 0.0;\r\n return eyePointCartographic;\r\n }\r\n\r\n return undefined;\r\n}\r\n\r\n/** Converts the eye of the camera to a cartographic location on the globe as if it was at height 0 using the GCS.\r\n * If preserveHeight is set to true, then height will remain untouched.\r\n * @internal\r\n */\r\nexport async function eyeToCartographicOnGlobeFromGcs(viewport: ScreenViewport, preserveHeight = false): Promise<Cartographic | undefined> {\r\n if (!(viewport.view instanceof ViewState3d) || !viewport.iModel.isGeoLocated)\r\n return undefined;\r\n\r\n const view3d = viewport.view;\r\n\r\n const eyePointCartographic = await view3d.rootToCartographicFromGcs(view3d.getEyeOrOrthographicViewPoint());\r\n if (eyePointCartographic !== undefined) {\r\n if (!preserveHeight)\r\n eyePointCartographic.height = 0.0;\r\n return eyePointCartographic;\r\n }\r\n\r\n return undefined;\r\n}\r\n\r\n/** @internal */\r\nexport function viewGlobalLocation(viewport: ScreenViewport, doAnimate: boolean, eyeHeight = ViewGlobalLocationConstants.birdHeightAboveEarthInMeters, pitchAngleRadians = 0, location?: GlobalLocation): number {\r\n if (!(viewport.view instanceof ViewState3d))\r\n return 0;\r\n\r\n const before = viewport.getFrustum();\r\n const view3d = viewport.view;\r\n\r\n const transitionDistance = view3d.lookAtGlobalLocation(eyeHeight, pitchAngleRadians, location);\r\n viewport.synchWithView();\r\n\r\n if (doAnimate)\r\n viewport.animateToCurrent(before, { animationTime: metersToRange(transitionDistance) });\r\n\r\n return transitionDistance;\r\n}\r\n"]}
1
+ {"version":3,"file":"ViewGlobalLocation.js","sourceRoot":"","sources":["../../src/ViewGlobalLocation.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAqCH,sCAcC;AAMD,kEAQC;AAgBD,0CAIC;AAMD,wDAMC;AAKD,0DAMC;AAMD,4DAcC;AAMD,0EAcC;AAGD,gDAcC;AAlKD,oDAA6D;AAC7D,2CAAwC;AAExC,2CAA0C;AAgB1C,gBAAgB;AAChB,MAAa,2BAA2B;IAC/B,MAAM,CAAU,4BAA4B,GAAG,KAAK,CAAC;IACrD,MAAM,CAAU,iCAAiC,GAAG,QAAQ,GAAG,EAAE,CAAC;IAClE,MAAM,CAAU,eAAe,GAAG,UAAU,CAAC,CAAC,2DAA2D;IACzG,MAAM,CAAU,qBAAqB,GAAG,GAAG,CAAC,CAAC,wBAAwB;IACrE,MAAM,CAAU,sBAAsB,GAAG,OAAO,CAAC,CAAC,yFAAyF;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AAC,yBAAyB,CAAC,MAAM,CAAC,6BAA6B,EAAE,CAAC,CAAC;IAC5G,IAAI,oBAAoB,KAAK,SAAS,EAAE,CAAC;QACvC,IAAI,CAAC,cAAc;YACjB,oBAAoB,CAAC,MAAM,GAAG,GAAG,CAAC;QACpC,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,gBAAgB;AAChB,SAAgB,kBAAkB,CAAC,QAAwB,EAAE,SAAkB,EAAE,SAAS,GAAG,2BAA2B,CAAC,4BAA4B,EAAE,iBAAiB,GAAG,CAAC,EAAE,QAAyB;IACrM,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,YAAY,uBAAW,CAAC;QACzC,OAAO,CAAC,CAAC;IAEX,MAAM,MAAM,GAAG,QAAQ,CAAC,UAAU,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC;IAE7B,MAAM,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,SAAS,EAAE,iBAAiB,EAAE,QAAQ,CAAC,CAAC;IAC/F,QAAQ,CAAC,aAAa,EAAE,CAAC;IAEzB,IAAI,SAAS;QACX,QAAQ,CAAC,gBAAgB,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAE1F,OAAO,kBAAkB,CAAC;AAC5B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Views\r\n */\r\n\r\nimport { Point3d, Range3d } from \"@itwin/core-geometry\";\r\nimport { Cartographic, GlobeMode } from \"@itwin/core-common\";\r\nimport { IModelApp } from \"./IModelApp\";\r\nimport { ScreenViewport } from \"./Viewport\";\r\nimport { ViewState3d } from \"./ViewState\";\r\n\r\n/** Describes a rectangular area of the earth using cartographic data structures.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GlobalLocationArea { southwest: Cartographic, northeast: Cartographic }\r\n\r\n/** Describes a location on the earth using cartographic data structures.\r\n * The viewed area of the location can be optionally specified.\r\n * The center of the location is specified with the center position.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GlobalLocation { center: Cartographic, area?: GlobalLocationArea }\r\n\r\n/** @internal */\r\nexport class ViewGlobalLocationConstants {\r\n public static readonly birdHeightAboveEarthInMeters = 713.0;\r\n public static readonly satelliteHeightAboveEarthInMeters = 402336.0 * 24;\r\n public static readonly largestEarthArc = 20037500.0; // distance from point on earth to opposite point in meters\r\n public static readonly birdPitchAngleRadians = 0.0; // Angle.piOver4Radians;\r\n public static readonly maximumDistanceToDrive = 96560.6; // The distance in meters that we will \"drive\" instead of fly to a destination (60 miles)\r\n}\r\n\r\n/** Converts a distance in meters to some range (smaller distances result in lower number; longer distances result in larger number)\r\n * Uses 500 for minimum output and 3000 for maximum output, unless either are specified.\r\n * Uses [[ViewGlobalLocationConstants.satelliteHeightAboveEarthInMeters]] as maximum input meters unless specified.\r\n * A good use of this is to convert meters to some transition duration.\r\n * @internal\r\n */\r\nexport function metersToRange(inputMeters: number, minimumOutput: number = 500, maximumOutput: number = 3000, maximumInputMeters = ViewGlobalLocationConstants.satelliteHeightAboveEarthInMeters): number {\r\n let output: number;\r\n if (inputMeters <= 0)\r\n output = minimumOutput;\r\n else if (inputMeters >= maximumInputMeters)\r\n output = maximumOutput;\r\n else {\r\n const quickLerp = (start: number, end: number, amt: number): number => {\r\n return (1 - amt) * start + amt * end;\r\n };\r\n output = quickLerp(minimumOutput, maximumOutput, inputMeters / maximumInputMeters);\r\n }\r\n\r\n return output;\r\n}\r\n\r\n/** Queries the actual elevation of a cartographic point on the globe.\r\n * @public\r\n * @extensions\r\n */\r\nexport async function queryTerrainElevationOffset(viewport: ScreenViewport, carto: Cartographic): Promise<number> {\r\n if (viewport && viewport.view instanceof ViewState3d && viewport.iModel.isGeoLocated) {\r\n const view3d = viewport.view;\r\n if (view3d.displayStyle.displayTerrain) {\r\n return IModelApp.elevationProvider.getHeight(carto, view3d.globeMode === GlobeMode.Ellipsoid);\r\n }\r\n }\r\n return 0;\r\n}\r\n\r\nfunction _areaToEyeHeight(view3d: ViewState3d, ne?: Point3d, sw?: Point3d, offset = 0): number {\r\n if (ne === undefined || sw === undefined)\r\n return 0;\r\n const diagonal = ne.distance(sw);\r\n\r\n view3d.camera.validateLens();\r\n const td = Math.tan(view3d.camera.getLensAngle().radians / 2.0);\r\n return 0 !== td ? (diagonal / (2 * td) + offset) : offset;\r\n}\r\n\r\n/** Converts a cartographic area on the globe to an ideal eye height to view that area.\r\n * Offset in meters, which defaults to 0, is applied to final eye height.\r\n * @internal\r\n */\r\nexport function areaToEyeHeight(view3d: ViewState3d, area: GlobalLocationArea, offset = 0): number {\r\n const ne = view3d.cartographicToRoot(area.northeast);\r\n const sw = view3d.cartographicToRoot(area.southwest);\r\n return _areaToEyeHeight(view3d, ne, sw, offset);\r\n}\r\n\r\n/** Converts a cartographic area on the globe to an ideal eye height to view that area using the GCS.\r\n * Offset in meters, which defaults to 0, is applied to final eye height.\r\n * @internal\r\n */\r\nexport async function areaToEyeHeightFromGcs(view3d: ViewState3d, area: GlobalLocationArea, offset = 0): Promise<number> {\r\n const corners = await view3d.cartographicToRootUsingGcs([area.northeast, area.southwest]);\r\n if (!corners)\r\n return 0;\r\n\r\n return _areaToEyeHeight(view3d, corners[0], corners[1], offset);\r\n}\r\n\r\n/** Converts a root range (often project extents) to a cartographic area.\r\n * @internal\r\n */\r\nexport function rangeToCartographicArea(view3d: ViewState3d, range: Range3d): GlobalLocationArea | undefined {\r\n const low = view3d.rootToCartographic(range.low);\r\n const high = view3d.rootToCartographic(range.high);\r\n if (low === undefined || high === undefined)\r\n return undefined;\r\n return low.latitude < high.latitude ? { northeast: high, southwest: low } : { northeast: low, southwest: high };\r\n}\r\n\r\n/** Converts the eye of the camera to a cartographic location on the globe as if it was at height 0.\r\n * If preserveHeight is set to true, then height will remain untouched.\r\n * @internal\r\n */\r\nexport function eyeToCartographicOnGlobe(viewport: ScreenViewport, preserveHeight = false): Cartographic | undefined {\r\n if (!(viewport.view instanceof ViewState3d) || !viewport.iModel.isGeoLocated)\r\n return undefined;\r\n\r\n const view3d = viewport.view;\r\n\r\n const eyePointCartographic = view3d.rootToCartographic(view3d.getEyeOrOrthographicViewPoint());\r\n if (eyePointCartographic !== undefined) {\r\n if (!preserveHeight)\r\n eyePointCartographic.height = 0.0;\r\n return eyePointCartographic;\r\n }\r\n\r\n return undefined;\r\n}\r\n\r\n/** Converts the eye of the camera to a cartographic location on the globe as if it was at height 0 using the GCS.\r\n * If preserveHeight is set to true, then height will remain untouched.\r\n * @internal\r\n */\r\nexport async function eyeToCartographicOnGlobeFromGcs(viewport: ScreenViewport, preserveHeight = false): Promise<Cartographic | undefined> {\r\n if (!(viewport.view instanceof ViewState3d) || !viewport.iModel.isGeoLocated)\r\n return undefined;\r\n\r\n const view3d = viewport.view;\r\n\r\n const eyePointCartographic = await view3d.rootToCartographicFromGcs(view3d.getEyeOrOrthographicViewPoint());\r\n if (eyePointCartographic !== undefined) {\r\n if (!preserveHeight)\r\n eyePointCartographic.height = 0.0;\r\n return eyePointCartographic;\r\n }\r\n\r\n return undefined;\r\n}\r\n\r\n/** @internal */\r\nexport function viewGlobalLocation(viewport: ScreenViewport, doAnimate: boolean, eyeHeight = ViewGlobalLocationConstants.birdHeightAboveEarthInMeters, pitchAngleRadians = 0, location?: GlobalLocation): number {\r\n if (!(viewport.view instanceof ViewState3d))\r\n return 0;\r\n\r\n const before = viewport.getFrustum();\r\n const view3d = viewport.view;\r\n\r\n const transitionDistance = view3d.lookAtGlobalLocation(eyeHeight, pitchAngleRadians, location);\r\n viewport.synchWithView();\r\n\r\n if (doAnimate)\r\n viewport.animateToCurrent(before, { animationTime: metersToRange(transitionDistance) });\r\n\r\n return transitionDistance;\r\n}\r\n"]}
@@ -3,6 +3,7 @@ export * from "./AccuSnap";
3
3
  export * from "./AuxCoordSys";
4
4
  export * from "./BingLocation";
5
5
  export * from "./BriefcaseConnection";
6
+ export * from "./GeoProviders";
6
7
  export * from "./BriefcaseTxns";
7
8
  export * from "./CatalogConnection";
8
9
  export * from "./CategorySelectorState";
@@ -1 +1 @@
1
- {"version":3,"file":"core-frontend.d.ts","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAKA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;A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;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AAGzC,OAAO,8BAA8B,CAAC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE"}
1
+ {"version":3,"file":"core-frontend.d.ts","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAKA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,c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,7 @@ __exportStar(require("./AccuSnap"), exports);
25
25
  __exportStar(require("./AuxCoordSys"), exports);
26
26
  __exportStar(require("./BingLocation"), exports);
27
27
  __exportStar(require("./BriefcaseConnection"), exports);
28
+ __exportStar(require("./GeoProviders"), exports);
28
29
  __exportStar(require("./BriefcaseTxns"), exports);
29
30
  __exportStar(require("./CatalogConnection"), exports);
30
31
  __exportStar(require("./CategorySelectorState"), exports);
@@ -145,6 +146,7 @@ Object.defineProperty(exports, "TileLoadPriority", { enumerable: true, get: func
145
146
  Object.defineProperty(exports, "TileBoundingBoxes", { enumerable: true, get: function () { return internal_1.TileBoundingBoxes; } });
146
147
  Object.defineProperty(exports, "TileUsageMarker", { enumerable: true, get: function () { return internal_1.TileUsageMarker; } });
147
148
  Object.defineProperty(exports, "TileUser", { enumerable: true, get: function () { return internal_1.TileUser; } });
149
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
148
150
  Object.defineProperty(exports, "BingElevationProvider", { enumerable: true, get: function () { return internal_1.BingElevationProvider; } });
149
151
  Object.defineProperty(exports, "QuadId", { enumerable: true, get: function () { return internal_1.QuadId; } });
150
152
  Object.defineProperty(exports, "MapTilingScheme", { enumerable: true, get: function () { return internal_1.MapTilingScheme; } });
@@ -1 +1 @@
1
- {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;;AAE/F,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,kDAAgC;AAChC,sDAAoC;AACpC,0DAAwC;AACxC,gDAA8B;AAC9B,yDAAuC;AACvC,2CAAyB;AACzB,6DAA2C;AAC3C,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,sDAAoC;AACpC,gDAA8B;AAC9B,2DAAyC;AACzC,4DAA0C;AAC1C,kDAAgC;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AA,+BAA+B,OAAA;AAAE,uGAAA,WAAW,OAAA;AACkC,+GAAA,mBAAmB,OAAA;AAC3E,mHAAA,uBAAuB,OAAA;AAE/C,uDAAqC;AACrC,6DAA2C;AAC3C,uDAAqC;AACrC,0DAAwC;AACxC,yDAAuC;AACvC,0DAAwC;AACxC,mDAAiC;AACjC,sDAAoC;AACpC,wDAAsC;AACtC,qDAAmC;AACnC,+CAA6B;AAC7B,uDAAqC;AACrC,oDAAkC;AAClC,yDAAuC;AACvC,mDAAiC;AACjC,2DAAyC;AACzC,0DAAwC;AACxC,kDAAgC;AAChC,kDAAgC;AAChC,oDAAkC;AAClC,kDAAgC;AAChC,sDAAoC;AAEpC,2DAAyC;AAEzC,sGAAsG;AACtG,wCAAsC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nexport * from \"./AccuDraw\";\r\nexport * from \"./AccuSnap\";\r\nexport * from \"./AuxCoordSys\";\r\nexport * from \"./BingLocation\";\r\nexport * from \"./BriefcaseConnection\";\r\nexport * from \"./BriefcaseTxns\";\r\nexport * from \"./CatalogConnection\";\r\nexport * from \"./CategorySelectorState\";\r\nexport * from \"./ChangeFlags\";\r\nexport * from \"./CheckpointConnection\";\r\nexport * from \"./common\";\r\nexport * from \"./ContextRealityModelState\";\r\nexport * from \"./CoordSystem\";\r\nexport * from \"./DecorationsCache\";\r\nexport * from \"./DevTools\";\r\nexport * from \"./DisplayStyleState\";\r\nexport * from \"./DrawingViewState\";\r\nexport * from \"./ElementLocateManager\";\r\nexport * from \"./EmphasizeElements\";\r\nexport * from \"./EntityState\";\r\nexport * from \"./EnvironmentDecorations\";\r\nexport * from \"./FeatureOverrideProvider\";\r\nexport * from \"./FlashSettings\";\r\nexport * from \"./FrontendHubAccess\";\r\nexport * from \"./Frustum2d\";\r\nexport * from \"./FrustumAnimator\";\r\nexport * from \"./FuzzySearch\";\r\nexport * from \"./GeoServices\";\r\nexport * from \"./GlobeAnimator\";\r\nexport * from \"./GraphicalEditingScope\";\r\nexport * from \"./HitDetail\";\r\nexport * from \"./IModelApp\";\r\nexport * from \"./IModelConnection\";\r\nexport * from \"./IModelRoutingContext\";\r\nexport * from \"./IpcApp\";\r\nexport * from \"./LinePlaneIntersect\";\r\nexport * from \"./MarginPercent\";\r\nexport * from \"./Marker\";\r\nexport * from \"./ModelSelectorState\";\r\nexport * from \"./ModelState\";\r\nexport * from \"./NativeApp\";\r\nexport * from \"./NativeAppLogger\";\r\nexport * from \"./NoRenderApp\";\r\nexport * from \"./NotificationManager\";\r\nexport * from \"./PerModelCategoryVisibility\";\r\nexport * from \"./PlanarClipMaskState\";\r\nexport * from \"./SelectionSet\";\r\nexport * from \"./SheetViewState\";\r\nexport * from \"./SpatialClassifiersState\";\r\nexport * from \"./SpatialViewState\";\r\nexport * from \"./Sprites\";\r\nexport * from \"./StandardView\";\r\nexport * from \"./SubCategoriesCache\";\r\nexport * from \"./TentativePoint\";\r\nexport * from \"./Tiles\";\r\nexport * from \"./UserPreferences\";\r\nexport * from \"./ViewAnimation\";\r\nexport * from \"./ViewContext\";\r\nexport * from \"./ViewGlobalLocation\";\r\nexport * from \"./ViewingSpace\";\r\nexport * from \"./ViewManager\";\r\nexport * from \"./Viewport\";\r\nexport * from \"./ViewportSync\";\r\nexport * from \"./ViewPose\";\r\nexport * from \"./ViewState\";\r\nexport * from \"./ViewStatus\";\r\nexport * from \"./extension/Extension\";\r\nexport * from \"./extension/providers/LocalExtensionProvider\";\r\nexport * from \"./extension/providers/RemoteExtensionProvider\";\r\nexport * from \"./properties/AngleDescription\";\r\nexport * from \"./properties/FormattedQuantityDescription\";\r\nexport * from \"./properties/LengthDescription\";\r\nexport * from \"./quantity-formatting/QuantityFormatter\";\r\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\r\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\r\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\r\nexport * from \"./render/CanvasDecoration\";\r\nexport * from \"./render/CreateRenderMaterialArgs\";\r\nexport * from \"./render/CreateTextureArgs\";\r\nexport * from \"./render/Decorations\";\r\nexport * from \"./render/FeatureSymbology\";\r\nexport * from \"./render/FrameStats\";\r\nexport * from \"./render/GraphicBranch\";\r\nexport * from \"./render/GraphicBuilder\";\r\nexport * from \"./render/GraphicTemplate\";\r\nexport * from \"./render/MeshArgs\";\r\nexport * from \"./render/ParticleCollectionBuilder\";\r\nexport * from \"./render/Pixel\";\r\nexport * from \"./render/PolylineArgs\";\r\nexport * from \"./render/RealityMeshParams\";\r\nexport * from \"./render/RenderClipVolume\";\r\nexport * from \"./render/RenderGraphic\";\r\nexport * from \"./render/RenderMemory\";\r\nexport * from \"./render/RenderSystem\";\r\nexport * from \"./render/RenderTarget\";\r\nexport * from \"./render/Scene\";\r\nexport * from \"./render/ScreenSpaceEffectBuilder\";\r\nexport * from \"./render/VisibleFeature\";\r\nexport * from \"./internal/render/webgl/IModelFrameLifecycle\";\r\nexport type {\r\n TxnEntityChange,\r\n TxnEntityChangeIterable,\r\n TxnEntityChangeType,\r\n TxnEntityChanges,\r\n TxnEntityChangesFilterOptions,\r\n TxnEntityMetadata,\r\n TxnEntityMetadataCriterion,\r\n} from \"./TxnEntityChanges\";\r\nexport {\r\n type TileTreeDiscloser, DisclosedTileTreeSet,\r\n type ReadGltfGraphicsArgs, type GltfGraphic, type GltfTemplate, readGltfGraphics, readGltfTemplate, readGltf,\r\n readElementGraphics,\r\n type BatchTableProperties, RealityTileTree,\r\n type RealityTileGeometry, RealityTile,\r\n type RenderGraphicTileTreeArgs,\r\n type GpuMemoryLimit, type GpuMemoryLimits, TileAdmin,\r\n type TileContent,\r\n type TiledGraphicsProvider,\r\n type TileDrawArgParams, TileDrawArgs,\r\n type CollectTileStatus, type TileGeometryCollectorOptions, TileGeometryCollector, type GeometryTileTreeReference,\r\n type GeometryTileTreeReferenceOptions,\r\n type TileParams,\r\n TileRequestChannels,\r\n type TileContentDecodingStatistics, TileRequestChannelStatistics, TileRequestChannel,\r\n TileRequest,\r\n type TileTreeOwner,\r\n type TileTreeParams,\r\n TileGraphicType, TileTreeReference,\r\n type TileTreeSupplier,\r\n TileTreeLoadStatus, TileTree,\r\n Tile, TileLoadStatus, TileVisibility, TileLoadPriority, TileBoundingBoxes,\r\n TileUsageMarker,\r\n TileUser,\r\n BingElevationProvider,\r\n QuadId, type QuadIdProps,\r\n MapTilingScheme, GeographicTilingScheme, WebMercatorProjection, WebMercatorTilingScheme,\r\n type MapLayerIndex,\r\n MapTileProjection, MapTile,\r\n MapLayerTileTreeReference,\r\n MapLayerSourceStatus, type MapLayerSourceProps, MapLayerSource, MapLayerSources,\r\n MapLayerImageryProviderStatus, MapLayerImageryProvider,\r\n ImageryMapLayerFormat,\r\n MapLayerFormat, type ValidateSourceArgs, type MapLayerFormatType, type MapLayerSourceValidation, type MapLayerOptions, MapLayerFormatRegistry,\r\n type MapLayerTokenEndpoint, type MapLayerAuthenticationInfo, type MapLayerAccessToken, type MapLayerAccessTokenParams, type MapLayerAccessClient,\r\n type MapFeatureInfoOptions, MapFeatureInfoRecord, type MapFeatureInfo, type MapLayerFeatureInfo, type MapSubLayerFeatureInfo, type MapLayerFeature, type MapLayerFeatureGeometry, type MapLayerFeatureAttribute, MapLayerFeatureRecord,\r\n MapCartoRectangle,\r\n ImageryMapLayerTreeReference,\r\n EllipsoidTerrainProvider,\r\n getCesiumAssetUrl,\r\n MapTileTreeScaleRangeVisibility, MapTileTree,\r\n type TerrainMeshProviderOptions, type RequestMeshDataArgs, type ReadMeshArgs, TerrainMeshProvider,\r\n type TerrainProvider, TerrainProviderRegistry,\r\n} from \"./tile/internal\";\r\nexport * from \"./tools/AccuDrawTool\";\r\nexport * from \"./tools/AccuDrawViewportUI\";\r\nexport * from \"./tools/ClipViewTool\";\r\nexport * from \"./tools/EditManipulator\";\r\nexport * from \"./tools/ElementSetTool\";\r\nexport * from \"./tools/EventController\";\r\nexport * from \"./tools/IdleTool\";\r\nexport * from \"./tools/MeasureTool\";\r\nexport * from \"./tools/PrimitiveTool\";\r\nexport * from \"./tools/SelectTool\";\r\nexport * from \"./tools/Tool\";\r\nexport * from \"./tools/ToolSettings\";\r\nexport * from \"./tools/ToolAdmin\";\r\nexport * from \"./tools/ToolAssistance\";\r\nexport * from \"./tools/ViewTool\";\r\nexport * from \"./workers/RegisterWorker\";\r\nexport * from \"./BackgroundMapGeometry\";\r\nexport * from \"./ViewCreator2d\";\r\nexport * from \"./ViewCreator3d\";\r\nexport * from \"./LocalhostIpcApp\";\r\nexport * from \"./request/utils\";\r\nexport * from \"./RealityDataSource\";\r\n\r\nexport * from \"./internal/cross-package\";\r\n\r\n// TODO/FIX: \"./extension/ExtensionRuntime\" import has to be last to avoid circular dependency errors.\r\nimport \"./extension/ExtensionRuntime\";\r\n\r\n/** @docs-package-description\r\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description IModelApp\r\n * Classes for configuring and administering an iTwin.js application.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description IModelConnection\r\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\r\n */\r\n/**\r\n * @docs-group-description ElementState\r\n * Classes for working with the *state* of Elements in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description ModelState\r\n * Classes for working with the *state* of Models in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\r\n */\r\n/**\r\n * @docs-group-description Measure\r\n * Classes for reporting point to point distances and mass properties of elements.\r\n */\r\n/**\r\n * @docs-group-description Views\r\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\r\n */\r\n/**\r\n * @docs-group-description LocatingElements\r\n * Classes for locating and snapping to elements in views.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Notifications\r\n * Notifications provide feedback to the user of something of interest.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Extensions\r\n * Classes for creating and managing Extensions.\r\n */\r\n/**\r\n * @docs-group-description Properties\r\n * Classes for working with property records and descriptions.\r\n */\r\n/**\r\n * @docs-group-description Rendering\r\n * Classes for rendering the contents of views.\r\n */\r\n/**\r\n * @docs-group-description SelectionSet\r\n * Classes for working with the set of selected elements.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description NativeApp\r\n * Classes for working with Native Applications\r\n */\r\n/**\r\n * @docs-group-description Utils\r\n * Miscellaneous utility classes.\r\n */\r\n/**\r\n * @docs-group-description Logging\r\n * Logger categories used by this package\r\n */\r\n/**\r\n * @docs-group-description QuantityFormatting\r\n * Classes for formatting and parsing quantity values.\r\n */\r\n/**\r\n * @docs-group-description Tiles\r\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\r\n */\r\n/**\r\n * @docs-group-description HubAccess\r\n * APIs for working with IModelHub\r\n */\r\n/**\r\n * @docs-group-description UserPreferences\r\n * APIs for working with user preferences in an iModelApp.\r\n * See [the learning articles]($docs/learning/frontend/preferences.md).\r\n */\r\n/**\r\n * @docs-group-description MapLayers\r\n * Classes supporting map layers display.\r\n */\r\n/**\r\n * @docs-group-description TileStorage\r\n * Class for working with cloud storage using iTwin/object-storage cloud providers\r\n*/"]}
1
+ {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;;AAE/F,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,iDAA+B;AAC/B,kDAAgC;AAChC,sDAAoC;AACpC,0DAAwC;AACxC,gDAA8B;AAC9B,yDAAuC;AACvC,2CAAyB;AACzB,6DAA2C;AAC3C,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,sDAAoC;AACpC,gDAA8B;AAC9B,2DAAyC;AACzC,4DAA0C;AAC1C,kDAAgC;AAChC,sDAAoC;AACpC,8CAA4B;AAC5B,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,0DAAwC;AACxC,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,yDAAuC;AACvC,2CAAyB;AACzB,uDAAqC;AACrC,kDAAgC;AAChC,2CAAyB;AACzB,uDAAqC;AACrC,+CAA6B;AAC7B,8CAA4B;AAC5B,oDAAkC;AAClC,gDAA8B;AAC9B,wDAAsC;AACtC,+DAA6C;AAC7C,wDAAsC;AACtC,iDAA+B;AAC/B,mDAAiC;AACjC,4DAA0C;AAC1C,qDAAmC;AACnC,4CAA0B;AAC1B,iDAA+B;AAC/B,uDAAqC;AACrC,mDAAiC;AACjC,0CAAwB;AACxB,oDAAkC;AAClC,kDAAgC;AAChC,gDAA8B;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AGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nexport * from \"./AccuDraw\";\r\nexport * from \"./AccuSnap\";\r\nexport * from \"./AuxCoordSys\";\r\nexport * from \"./BingLocation\";\r\nexport * from \"./BriefcaseConnection\";\r\nexport * from \"./GeoProviders\";\r\nexport * from \"./BriefcaseTxns\";\r\nexport * from \"./CatalogConnection\";\r\nexport * from \"./CategorySelectorState\";\r\nexport * from \"./ChangeFlags\";\r\nexport * from \"./CheckpointConnection\";\r\nexport * from \"./common\";\r\nexport * from \"./ContextRealityModelState\";\r\nexport * from \"./CoordSystem\";\r\nexport * from \"./DecorationsCache\";\r\nexport * from \"./DevTools\";\r\nexport * from \"./DisplayStyleState\";\r\nexport * from \"./DrawingViewState\";\r\nexport * from \"./ElementLocateManager\";\r\nexport * from \"./EmphasizeElements\";\r\nexport * from \"./EntityState\";\r\nexport * from \"./EnvironmentDecorations\";\r\nexport * from \"./FeatureOverrideProvider\";\r\nexport * from \"./FlashSettings\";\r\nexport * from \"./FrontendHubAccess\";\r\nexport * from \"./Frustum2d\";\r\nexport * from \"./FrustumAnimator\";\r\nexport * from \"./FuzzySearch\";\r\nexport * from \"./GeoServices\";\r\nexport * from \"./GlobeAnimator\";\r\nexport * from \"./GraphicalEditingScope\";\r\nexport * from \"./HitDetail\";\r\nexport * from \"./IModelApp\";\r\nexport * from \"./IModelConnection\";\r\nexport * from \"./IModelRoutingContext\";\r\nexport * from \"./IpcApp\";\r\nexport * from \"./LinePlaneIntersect\";\r\nexport * from \"./MarginPercent\";\r\nexport * from \"./Marker\";\r\nexport * from \"./ModelSelectorState\";\r\nexport * from \"./ModelState\";\r\nexport * from \"./NativeApp\";\r\nexport * from \"./NativeAppLogger\";\r\nexport * from \"./NoRenderApp\";\r\nexport * from \"./NotificationManager\";\r\nexport * from \"./PerModelCategoryVisibility\";\r\nexport * from \"./PlanarClipMaskState\";\r\nexport * from \"./SelectionSet\";\r\nexport * from \"./SheetViewState\";\r\nexport * from \"./SpatialClassifiersState\";\r\nexport * from \"./SpatialViewState\";\r\nexport * from \"./Sprites\";\r\nexport * from \"./StandardView\";\r\nexport * from \"./SubCategoriesCache\";\r\nexport * from \"./TentativePoint\";\r\nexport * from \"./Tiles\";\r\nexport * from \"./UserPreferences\";\r\nexport * from \"./ViewAnimation\";\r\nexport * from \"./ViewContext\";\r\nexport * from \"./ViewGlobalLocation\";\r\nexport * from \"./ViewingSpace\";\r\nexport * from \"./ViewManager\";\r\nexport * from \"./Viewport\";\r\nexport * from \"./ViewportSync\";\r\nexport * from \"./ViewPose\";\r\nexport * from \"./ViewState\";\r\nexport * from \"./ViewStatus\";\r\nexport * from \"./extension/Extension\";\r\nexport * from \"./extension/providers/LocalExtensionProvider\";\r\nexport * from \"./extension/providers/RemoteExtensionProvider\";\r\nexport * from \"./properties/AngleDescription\";\r\nexport * from \"./properties/FormattedQuantityDescription\";\r\nexport * from \"./properties/LengthDescription\";\r\nexport * from \"./quantity-formatting/QuantityFormatter\";\r\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\r\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\r\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\r\nexport * from \"./render/CanvasDecoration\";\r\nexport * from \"./render/CreateRenderMaterialArgs\";\r\nexport * from \"./render/CreateTextureArgs\";\r\nexport * from \"./render/Decorations\";\r\nexport * from \"./render/FeatureSymbology\";\r\nexport * from \"./render/FrameStats\";\r\nexport * from \"./render/GraphicBranch\";\r\nexport * from \"./render/GraphicBuilder\";\r\nexport * from \"./render/GraphicTemplate\";\r\nexport * from \"./render/MeshArgs\";\r\nexport * from \"./render/ParticleCollectionBuilder\";\r\nexport * from \"./render/Pixel\";\r\nexport * from \"./render/PolylineArgs\";\r\nexport * from \"./render/RealityMeshParams\";\r\nexport * from \"./render/RenderClipVolume\";\r\nexport * from \"./render/RenderGraphic\";\r\nexport * from \"./render/RenderMemory\";\r\nexport * from \"./render/RenderSystem\";\r\nexport * from \"./render/RenderTarget\";\r\nexport * from \"./render/Scene\";\r\nexport * from \"./render/ScreenSpaceEffectBuilder\";\r\nexport * from \"./render/VisibleFeature\";\r\nexport * from \"./internal/render/webgl/IModelFrameLifecycle\";\r\nexport type {\r\n TxnEntityChange,\r\n TxnEntityChangeIterable,\r\n TxnEntityChangeType,\r\n TxnEntityChanges,\r\n TxnEntityChangesFilterOptions,\r\n TxnEntityMetadata,\r\n TxnEntityMetadataCriterion,\r\n} from \"./TxnEntityChanges\";\r\nexport {\r\n type TileTreeDiscloser, DisclosedTileTreeSet,\r\n type ReadGltfGraphicsArgs, type GltfGraphic, type GltfTemplate, readGltfGraphics, readGltfTemplate, readGltf,\r\n readElementGraphics,\r\n type BatchTableProperties, RealityTileTree,\r\n type RealityTileGeometry, RealityTile,\r\n type RenderGraphicTileTreeArgs,\r\n type GpuMemoryLimit, type GpuMemoryLimits, TileAdmin,\r\n type TileContent,\r\n type TiledGraphicsProvider,\r\n type TileDrawArgParams, TileDrawArgs,\r\n type CollectTileStatus, type TileGeometryCollectorOptions, TileGeometryCollector, type GeometryTileTreeReference,\r\n type GeometryTileTreeReferenceOptions,\r\n type TileParams,\r\n TileRequestChannels,\r\n type TileContentDecodingStatistics, TileRequestChannelStatistics, TileRequestChannel,\r\n TileRequest,\r\n type TileTreeOwner,\r\n type TileTreeParams,\r\n TileGraphicType, TileTreeReference,\r\n type TileTreeSupplier,\r\n TileTreeLoadStatus, TileTree,\r\n Tile, TileLoadStatus, TileVisibility, TileLoadPriority, TileBoundingBoxes,\r\n TileUsageMarker,\r\n TileUser,\r\n // eslint-disable-next-line @typescript-eslint/no-deprecated\r\n BingElevationProvider,\r\n QuadId, type QuadIdProps,\r\n MapTilingScheme, GeographicTilingScheme, WebMercatorProjection, WebMercatorTilingScheme,\r\n type MapLayerIndex,\r\n MapTileProjection, MapTile,\r\n MapLayerTileTreeReference,\r\n MapLayerSourceStatus, type MapLayerSourceProps, MapLayerSource, MapLayerSources,\r\n MapLayerImageryProviderStatus, MapLayerImageryProvider,\r\n ImageryMapLayerFormat,\r\n MapLayerFormat, type ValidateSourceArgs, type MapLayerFormatType, type MapLayerSourceValidation, type MapLayerOptions, MapLayerFormatRegistry,\r\n type MapLayerTokenEndpoint, type MapLayerAuthenticationInfo, type MapLayerAccessToken, type MapLayerAccessTokenParams, type MapLayerAccessClient,\r\n type MapFeatureInfoOptions, MapFeatureInfoRecord, type MapFeatureInfo, type MapLayerFeatureInfo, type MapSubLayerFeatureInfo, type MapLayerFeature, type MapLayerFeatureGeometry, type MapLayerFeatureAttribute, MapLayerFeatureRecord,\r\n MapCartoRectangle,\r\n ImageryMapLayerTreeReference,\r\n EllipsoidTerrainProvider,\r\n getCesiumAssetUrl,\r\n MapTileTreeScaleRangeVisibility, MapTileTree,\r\n type TerrainMeshProviderOptions, type RequestMeshDataArgs, type ReadMeshArgs, TerrainMeshProvider,\r\n type TerrainProvider, TerrainProviderRegistry,\r\n} from \"./tile/internal\";\r\nexport * from \"./tools/AccuDrawTool\";\r\nexport * from \"./tools/AccuDrawViewportUI\";\r\nexport * from \"./tools/ClipViewTool\";\r\nexport * from \"./tools/EditManipulator\";\r\nexport * from \"./tools/ElementSetTool\";\r\nexport * from \"./tools/EventController\";\r\nexport * from \"./tools/IdleTool\";\r\nexport * from \"./tools/MeasureTool\";\r\nexport * from \"./tools/PrimitiveTool\";\r\nexport * from \"./tools/SelectTool\";\r\nexport * from \"./tools/Tool\";\r\nexport * from \"./tools/ToolSettings\";\r\nexport * from \"./tools/ToolAdmin\";\r\nexport * from \"./tools/ToolAssistance\";\r\nexport * from \"./tools/ViewTool\";\r\nexport * from \"./workers/RegisterWorker\";\r\nexport * from \"./BackgroundMapGeometry\";\r\nexport * from \"./ViewCreator2d\";\r\nexport * from \"./ViewCreator3d\";\r\nexport * from \"./LocalhostIpcApp\";\r\nexport * from \"./request/utils\";\r\nexport * from \"./RealityDataSource\";\r\n\r\nexport * from \"./internal/cross-package\";\r\n\r\n// TODO/FIX: \"./extension/ExtensionRuntime\" import has to be last to avoid circular dependency errors.\r\nimport \"./extension/ExtensionRuntime\";\r\n\r\n/** @docs-package-description\r\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description IModelApp\r\n * Classes for configuring and administering an iTwin.js application.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description IModelConnection\r\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\r\n */\r\n/**\r\n * @docs-group-description ElementState\r\n * Classes for working with the *state* of Elements in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description ModelState\r\n * Classes for working with the *state* of Models in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\r\n */\r\n/**\r\n * @docs-group-description Measure\r\n * Classes for reporting point to point distances and mass properties of elements.\r\n */\r\n/**\r\n * @docs-group-description Views\r\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\r\n */\r\n/**\r\n * @docs-group-description LocatingElements\r\n * Classes for locating and snapping to elements in views.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Notifications\r\n * Notifications provide feedback to the user of something of interest.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Extensions\r\n * Classes for creating and managing Extensions.\r\n */\r\n/**\r\n * @docs-group-description Properties\r\n * Classes for working with property records and descriptions.\r\n */\r\n/**\r\n * @docs-group-description Rendering\r\n * Classes for rendering the contents of views.\r\n */\r\n/**\r\n * @docs-group-description SelectionSet\r\n * Classes for working with the set of selected elements.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description NativeApp\r\n * Classes for working with Native Applications\r\n */\r\n/**\r\n * @docs-group-description Utils\r\n * Miscellaneous utility classes.\r\n */\r\n/**\r\n * @docs-group-description Logging\r\n * Logger categories used by this package\r\n */\r\n/**\r\n * @docs-group-description QuantityFormatting\r\n * Classes for formatting and parsing quantity values.\r\n */\r\n/**\r\n * @docs-group-description Tiles\r\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\r\n */\r\n/**\r\n * @docs-group-description HubAccess\r\n * APIs for working with IModelHub\r\n */\r\n/**\r\n * @docs-group-description UserPreferences\r\n * APIs for working with user preferences in an iModelApp.\r\n * See [the learning articles]($docs/learning/frontend/preferences.md).\r\n */\r\n/**\r\n * @docs-group-description MapLayers\r\n * Classes supporting map layers display.\r\n */\r\n/**\r\n * @docs-group-description TileStorage\r\n * Class for working with cloud storage using iTwin/object-storage cloud providers\r\n*/"]}
@@ -1 +1 @@
1
- {"version":3,"file":"RealityModelTileTree.d.ts","sourceRoot":"","sources":["../../../../src/internal/tile/RealityModelTileTree.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAE8D,UAAU,EAC9E,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACoC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,SAAS,GAAG,OAAO;IAUnC,UAAU,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;IAc3F,OAAO,CAAC,WAAW;IA+CjB,sGAAsG;IACxF,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAOrC,eAAe,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAOjF,QAAQ,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;CAM1D"}
@@ -277,6 +277,7 @@ class RealityModelTileProps {
277
277
  rangeCorners;
278
278
  region;
279
279
  geometricError;
280
+ contentUrl;
280
281
  constructor(args) {
281
282
  this.contentId = args.id;
282
283
  this.parent = args.parent;
@@ -294,9 +295,12 @@ class RealityModelTileProps {
294
295
  (0, core_bentley_1.assert)(false, "Unbounded tile");
295
296
  }
296
297
  this.isLeaf = !Array.isArray(json.children) || 0 === json.children.length;
297
- const hasContents = undefined !== getUrl(json.content);
298
- if (hasContents)
298
+ const contentUrl = getUrl(json.content);
299
+ const hasContents = undefined !== contentUrl;
300
+ if (hasContents) {
301
+ this.contentUrl = contentUrl;
299
302
  this.contentRange = RealityModelTileUtils.rangeFromBoundingVolume(json.content.boundingVolume)?.range;
303
+ }
300
304
  else {
301
305
  // A node without content should probably be selectable even if not additive refinement - But restrict it to that case here
302
306
  // to avoid potential problems with existing reality models, but still avoid overselection in the OSM world building set.