@honua/sdk-esri-compat 0.0.6-alpha.0

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 (289) hide show
  1. package/README.md +5 -0
  2. package/contract/edit-session.d.ts +203 -0
  3. package/contract/edit-session.d.ts.map +1 -0
  4. package/contract/edit-session.js +717 -0
  5. package/contract/index.d.ts +20 -0
  6. package/contract/index.d.ts.map +1 -0
  7. package/contract/index.js +15 -0
  8. package/contract/jobs.d.ts +115 -0
  9. package/contract/jobs.d.ts.map +1 -0
  10. package/contract/jobs.js +22 -0
  11. package/contract/source.d.ts +138 -0
  12. package/contract/source.d.ts.map +1 -0
  13. package/contract/source.js +3364 -0
  14. package/contract/spatial-aggregation.d.ts +312 -0
  15. package/contract/spatial-aggregation.d.ts.map +1 -0
  16. package/contract/spatial-aggregation.js +196 -0
  17. package/contract/types.d.ts +542 -0
  18. package/contract/types.d.ts.map +1 -0
  19. package/contract/types.js +171 -0
  20. package/core/batch.d.ts +37 -0
  21. package/core/batch.d.ts.map +1 -0
  22. package/core/batch.js +78 -0
  23. package/core/cache-state.d.ts +76 -0
  24. package/core/cache-state.d.ts.map +1 -0
  25. package/core/cache-state.js +84 -0
  26. package/core/client.d.ts +289 -0
  27. package/core/client.d.ts.map +1 -0
  28. package/core/client.js +2625 -0
  29. package/core/errors.d.ts +68 -0
  30. package/core/errors.d.ts.map +1 -0
  31. package/core/errors.js +116 -0
  32. package/core/grpc-adapter.d.ts +23 -0
  33. package/core/grpc-adapter.d.ts.map +1 -0
  34. package/core/grpc-adapter.js +704 -0
  35. package/core/odata.d.ts +347 -0
  36. package/core/odata.d.ts.map +1 -0
  37. package/core/odata.js +837 -0
  38. package/core/ogc-conformance.d.ts +35 -0
  39. package/core/ogc-conformance.d.ts.map +1 -0
  40. package/core/ogc-conformance.js +121 -0
  41. package/core/ogc-maps.d.ts +45 -0
  42. package/core/ogc-maps.d.ts.map +1 -0
  43. package/core/ogc-maps.js +53 -0
  44. package/core/ogc-processes.d.ts +92 -0
  45. package/core/ogc-processes.d.ts.map +1 -0
  46. package/core/ogc-processes.js +325 -0
  47. package/core/ogc-tiles.d.ts +55 -0
  48. package/core/ogc-tiles.d.ts.map +1 -0
  49. package/core/ogc-tiles.js +81 -0
  50. package/core/pbf-decoder.d.ts +28 -0
  51. package/core/pbf-decoder.d.ts.map +1 -0
  52. package/core/pbf-decoder.js +627 -0
  53. package/core/query-builder.d.ts +261 -0
  54. package/core/query-builder.d.ts.map +1 -0
  55. package/core/query-builder.js +538 -0
  56. package/core/spatial-filter.d.ts +93 -0
  57. package/core/spatial-filter.d.ts.map +1 -0
  58. package/core/spatial-filter.js +153 -0
  59. package/core/stac.d.ts +43 -0
  60. package/core/stac.d.ts.map +1 -0
  61. package/core/stac.js +116 -0
  62. package/core/surfaces.d.ts +464 -0
  63. package/core/surfaces.d.ts.map +1 -0
  64. package/core/surfaces.js +1322 -0
  65. package/core/types.d.ts +1238 -0
  66. package/core/types.d.ts.map +1 -0
  67. package/core/types.js +13 -0
  68. package/core/wfs-capabilities.d.ts +143 -0
  69. package/core/wfs-capabilities.d.ts.map +1 -0
  70. package/core/wfs-capabilities.js +478 -0
  71. package/core/wfs-filter.d.ts +118 -0
  72. package/core/wfs-filter.d.ts.map +1 -0
  73. package/core/wfs-filter.js +586 -0
  74. package/core/wfs.d.ts +219 -0
  75. package/core/wfs.d.ts.map +1 -0
  76. package/core/wfs.js +406 -0
  77. package/core/wms-capabilities.d.ts +110 -0
  78. package/core/wms-capabilities.d.ts.map +1 -0
  79. package/core/wms-capabilities.js +566 -0
  80. package/core/wms-types.d.ts +128 -0
  81. package/core/wms-types.d.ts.map +1 -0
  82. package/core/wms-types.js +32 -0
  83. package/core/wms.d.ts +108 -0
  84. package/core/wms.d.ts.map +1 -0
  85. package/core/wms.js +182 -0
  86. package/core/wmts-capabilities.d.ts +82 -0
  87. package/core/wmts-capabilities.d.ts.map +1 -0
  88. package/core/wmts-capabilities.js +409 -0
  89. package/core/wmts.d.ts +80 -0
  90. package/core/wmts.d.ts.map +1 -0
  91. package/core/wmts.js +173 -0
  92. package/esri-compat/basemap-gallery.d.ts +38 -0
  93. package/esri-compat/basemap-gallery.d.ts.map +1 -0
  94. package/esri-compat/basemap-gallery.js +159 -0
  95. package/esri-compat/basemap-layer-list.d.ts +35 -0
  96. package/esri-compat/basemap-layer-list.d.ts.map +1 -0
  97. package/esri-compat/basemap-layer-list.js +139 -0
  98. package/esri-compat/basemap.d.ts +32 -0
  99. package/esri-compat/basemap.d.ts.map +1 -0
  100. package/esri-compat/basemap.js +84 -0
  101. package/esri-compat/bookmarks.d.ts +36 -0
  102. package/esri-compat/bookmarks.d.ts.map +1 -0
  103. package/esri-compat/bookmarks.js +108 -0
  104. package/esri-compat/class-breaks-renderer.d.ts +50 -0
  105. package/esri-compat/class-breaks-renderer.d.ts.map +1 -0
  106. package/esri-compat/class-breaks-renderer.js +164 -0
  107. package/esri-compat/color.d.ts +22 -0
  108. package/esri-compat/color.d.ts.map +1 -0
  109. package/esri-compat/color.js +106 -0
  110. package/esri-compat/controls.d.ts +174 -0
  111. package/esri-compat/controls.d.ts.map +1 -0
  112. package/esri-compat/controls.js +479 -0
  113. package/esri-compat/coordinate-conversion.d.ts +41 -0
  114. package/esri-compat/coordinate-conversion.d.ts.map +1 -0
  115. package/esri-compat/coordinate-conversion.js +125 -0
  116. package/esri-compat/directions.d.ts +45 -0
  117. package/esri-compat/directions.d.ts.map +1 -0
  118. package/esri-compat/directions.js +123 -0
  119. package/esri-compat/editor.d.ts +47 -0
  120. package/esri-compat/editor.d.ts.map +1 -0
  121. package/esri-compat/editor.js +170 -0
  122. package/esri-compat/esri-config.d.ts +16 -0
  123. package/esri-compat/esri-config.d.ts.map +1 -0
  124. package/esri-compat/esri-config.js +23 -0
  125. package/esri-compat/esri-request.d.ts +17 -0
  126. package/esri-compat/esri-request.d.ts.map +1 -0
  127. package/esri-compat/esri-request.js +66 -0
  128. package/esri-compat/event-bus.d.ts +106 -0
  129. package/esri-compat/event-bus.d.ts.map +1 -0
  130. package/esri-compat/event-bus.js +90 -0
  131. package/esri-compat/expand.d.ts +36 -0
  132. package/esri-compat/expand.d.ts.map +1 -0
  133. package/esri-compat/expand.js +97 -0
  134. package/esri-compat/extent.d.ts +43 -0
  135. package/esri-compat/extent.d.ts.map +1 -0
  136. package/esri-compat/extent.js +140 -0
  137. package/esri-compat/feature-form.d.ts +64 -0
  138. package/esri-compat/feature-form.d.ts.map +1 -0
  139. package/esri-compat/feature-form.js +137 -0
  140. package/esri-compat/feature-layer.d.ts +173 -0
  141. package/esri-compat/feature-layer.d.ts.map +1 -0
  142. package/esri-compat/feature-layer.js +655 -0
  143. package/esri-compat/feature-set.d.ts +32 -0
  144. package/esri-compat/feature-set.d.ts.map +1 -0
  145. package/esri-compat/feature-set.js +80 -0
  146. package/esri-compat/feature-table.d.ts +141 -0
  147. package/esri-compat/feature-table.d.ts.map +1 -0
  148. package/esri-compat/feature-table.js +500 -0
  149. package/esri-compat/feature-templates.d.ts +41 -0
  150. package/esri-compat/feature-templates.d.ts.map +1 -0
  151. package/esri-compat/feature-templates.js +97 -0
  152. package/esri-compat/feature.d.ts +33 -0
  153. package/esri-compat/feature.d.ts.map +1 -0
  154. package/esri-compat/feature.js +83 -0
  155. package/esri-compat/graphic.d.ts +46 -0
  156. package/esri-compat/graphic.d.ts.map +1 -0
  157. package/esri-compat/graphic.js +103 -0
  158. package/esri-compat/graphics-layer.d.ts +49 -0
  159. package/esri-compat/graphics-layer.d.ts.map +1 -0
  160. package/esri-compat/graphics-layer.js +185 -0
  161. package/esri-compat/group-layer.d.ts +48 -0
  162. package/esri-compat/group-layer.d.ts.map +1 -0
  163. package/esri-compat/group-layer.js +212 -0
  164. package/esri-compat/identify.d.ts +71 -0
  165. package/esri-compat/identify.d.ts.map +1 -0
  166. package/esri-compat/identify.js +299 -0
  167. package/esri-compat/identity-manager.d.ts +31 -0
  168. package/esri-compat/identity-manager.d.ts.map +1 -0
  169. package/esri-compat/identity-manager.js +115 -0
  170. package/esri-compat/label-class.d.ts +31 -0
  171. package/esri-compat/label-class.d.ts.map +1 -0
  172. package/esri-compat/label-class.js +102 -0
  173. package/esri-compat/layer-list.d.ts +77 -0
  174. package/esri-compat/layer-list.d.ts.map +1 -0
  175. package/esri-compat/layer-list.js +342 -0
  176. package/esri-compat/legend.d.ts +53 -0
  177. package/esri-compat/legend.d.ts.map +1 -0
  178. package/esri-compat/legend.js +254 -0
  179. package/esri-compat/map-image-layer.d.ts +162 -0
  180. package/esri-compat/map-image-layer.d.ts.map +1 -0
  181. package/esri-compat/map-image-layer.js +704 -0
  182. package/esri-compat/map-view.d.ts +315 -0
  183. package/esri-compat/map-view.d.ts.map +1 -0
  184. package/esri-compat/map-view.js +1110 -0
  185. package/esri-compat/map.d.ts +47 -0
  186. package/esri-compat/map.d.ts.map +1 -0
  187. package/esri-compat/map.js +209 -0
  188. package/esri-compat/measurement-2d.d.ts +61 -0
  189. package/esri-compat/measurement-2d.d.ts.map +1 -0
  190. package/esri-compat/measurement-2d.js +184 -0
  191. package/esri-compat/measurement.d.ts +45 -0
  192. package/esri-compat/measurement.d.ts.map +1 -0
  193. package/esri-compat/measurement.js +193 -0
  194. package/esri-compat/oauth-info.d.ts +35 -0
  195. package/esri-compat/oauth-info.d.ts.map +1 -0
  196. package/esri-compat/oauth-info.js +115 -0
  197. package/esri-compat/picture-marker-symbol.d.ts +35 -0
  198. package/esri-compat/picture-marker-symbol.d.ts.map +1 -0
  199. package/esri-compat/picture-marker-symbol.js +126 -0
  200. package/esri-compat/point.d.ts +31 -0
  201. package/esri-compat/point.d.ts.map +1 -0
  202. package/esri-compat/point.js +102 -0
  203. package/esri-compat/polygon.d.ts +31 -0
  204. package/esri-compat/polygon.d.ts.map +1 -0
  205. package/esri-compat/polygon.js +107 -0
  206. package/esri-compat/polyline.d.ts +31 -0
  207. package/esri-compat/polyline.d.ts.map +1 -0
  208. package/esri-compat/polyline.js +107 -0
  209. package/esri-compat/popup-template.d.ts +55 -0
  210. package/esri-compat/popup-template.d.ts.map +1 -0
  211. package/esri-compat/popup-template.js +128 -0
  212. package/esri-compat/popup.d.ts +54 -0
  213. package/esri-compat/popup.d.ts.map +1 -0
  214. package/esri-compat/popup.js +312 -0
  215. package/esri-compat/print.d.ts +47 -0
  216. package/esri-compat/print.d.ts.map +1 -0
  217. package/esri-compat/print.js +105 -0
  218. package/esri-compat/query.d.ts +46 -0
  219. package/esri-compat/query.d.ts.map +1 -0
  220. package/esri-compat/query.js +119 -0
  221. package/esri-compat/reactive-utils.d.ts +23 -0
  222. package/esri-compat/reactive-utils.d.ts.map +1 -0
  223. package/esri-compat/reactive-utils.js +178 -0
  224. package/esri-compat/request.d.ts +41 -0
  225. package/esri-compat/request.d.ts.map +1 -0
  226. package/esri-compat/request.js +253 -0
  227. package/esri-compat/route-layer.d.ts +59 -0
  228. package/esri-compat/route-layer.d.ts.map +1 -0
  229. package/esri-compat/route-layer.js +223 -0
  230. package/esri-compat/route-task.d.ts +88 -0
  231. package/esri-compat/route-task.d.ts.map +1 -0
  232. package/esri-compat/route-task.js +225 -0
  233. package/esri-compat/scene-view.d.ts +41 -0
  234. package/esri-compat/scene-view.d.ts.map +1 -0
  235. package/esri-compat/scene-view.js +68 -0
  236. package/esri-compat/search.d.ts +112 -0
  237. package/esri-compat/search.d.ts.map +1 -0
  238. package/esri-compat/search.js +820 -0
  239. package/esri-compat/simple-fill-symbol.d.ts +27 -0
  240. package/esri-compat/simple-fill-symbol.d.ts.map +1 -0
  241. package/esri-compat/simple-fill-symbol.js +85 -0
  242. package/esri-compat/simple-line-symbol.d.ts +27 -0
  243. package/esri-compat/simple-line-symbol.d.ts.map +1 -0
  244. package/esri-compat/simple-line-symbol.js +85 -0
  245. package/esri-compat/simple-marker-symbol.d.ts +29 -0
  246. package/esri-compat/simple-marker-symbol.d.ts.map +1 -0
  247. package/esri-compat/simple-marker-symbol.js +92 -0
  248. package/esri-compat/simple-renderer.d.ts +29 -0
  249. package/esri-compat/simple-renderer.d.ts.map +1 -0
  250. package/esri-compat/simple-renderer.js +92 -0
  251. package/esri-compat/sketch.d.ts +64 -0
  252. package/esri-compat/sketch.d.ts.map +1 -0
  253. package/esri-compat/sketch.js +227 -0
  254. package/esri-compat/spatial-reference.d.ts +31 -0
  255. package/esri-compat/spatial-reference.d.ts.map +1 -0
  256. package/esri-compat/spatial-reference.js +102 -0
  257. package/esri-compat/swipe.d.ts +34 -0
  258. package/esri-compat/swipe.d.ts.map +1 -0
  259. package/esri-compat/swipe.js +93 -0
  260. package/esri-compat/table-list.d.ts +36 -0
  261. package/esri-compat/table-list.d.ts.map +1 -0
  262. package/esri-compat/table-list.js +126 -0
  263. package/esri-compat/text-symbol.d.ts +37 -0
  264. package/esri-compat/text-symbol.d.ts.map +1 -0
  265. package/esri-compat/text-symbol.js +123 -0
  266. package/esri-compat/tile-layer.d.ts +52 -0
  267. package/esri-compat/tile-layer.d.ts.map +1 -0
  268. package/esri-compat/tile-layer.js +167 -0
  269. package/esri-compat/time-slider.d.ts +70 -0
  270. package/esri-compat/time-slider.d.ts.map +1 -0
  271. package/esri-compat/time-slider.js +208 -0
  272. package/esri-compat/track.d.ts +51 -0
  273. package/esri-compat/track.d.ts.map +1 -0
  274. package/esri-compat/track.js +174 -0
  275. package/esri-compat/unique-value-renderer.d.ts +41 -0
  276. package/esri-compat/unique-value-renderer.d.ts.map +1 -0
  277. package/esri-compat/unique-value-renderer.js +127 -0
  278. package/esri-compat/url.d.ts +12 -0
  279. package/esri-compat/url.d.ts.map +1 -0
  280. package/esri-compat/url.js +54 -0
  281. package/esri-compat/web-map.d.ts +14 -0
  282. package/esri-compat/web-map.d.ts.map +1 -0
  283. package/esri-compat/web-map.js +24 -0
  284. package/gen/honua/v1/feature_service_pb.d.ts +918 -0
  285. package/gen/honua/v1/feature_service_pb.d.ts.map +1 -0
  286. package/gen/honua/v1/feature_service_pb.js +375 -0
  287. package/index.d.ts +130 -0
  288. package/index.js +65 -0
  289. package/package.json +22 -0
@@ -0,0 +1,47 @@
1
+ import { CompatEventBus } from "./event-bus.js";
2
+ export interface MapCompatOptions {
3
+ basemap?: unknown;
4
+ layers?: unknown;
5
+ ground?: unknown;
6
+ tables?: unknown[];
7
+ portalItem?: unknown;
8
+ spatialReference?: unknown;
9
+ eventBus?: CompatEventBus;
10
+ }
11
+ export type MapLoadStatusCompat = "not-loaded" | "loading" | "loaded";
12
+ export interface MapCompatHandle {
13
+ remove(): void;
14
+ }
15
+ export declare class MapCompat {
16
+ basemap: unknown;
17
+ ground: unknown;
18
+ tables: unknown[];
19
+ portalItem: unknown;
20
+ spatialReference: unknown;
21
+ loaded: boolean;
22
+ loadStatus: MapLoadStatusCompat;
23
+ readonly eventBus: CompatEventBus;
24
+ private readonly watchListeners;
25
+ private readonly layersInternal;
26
+ constructor(options?: MapCompatOptions);
27
+ load(): Promise<MapCompat>;
28
+ when(callback?: (map: MapCompat) => void): Promise<MapCompat>;
29
+ watch(propertyName: string, listener: (value: unknown) => void): MapCompatHandle;
30
+ get layers(): readonly unknown[];
31
+ get allLayers(): readonly unknown[];
32
+ add(layer: unknown, index?: number): void;
33
+ addMany(layers: readonly unknown[], index?: number): void;
34
+ remove(layer: unknown): boolean;
35
+ removeMany(layers: readonly unknown[]): number;
36
+ removeAll(): void;
37
+ reorder(layer: unknown, index: number): boolean;
38
+ findLayerById(id: string): unknown;
39
+ setBasemap(basemap: unknown): void;
40
+ setGround(ground: unknown): void;
41
+ setTables(tables: readonly unknown[]): void;
42
+ setPortalItem(portalItem: unknown): void;
43
+ destroy(): void;
44
+ setSpatialReference(spatialReference: unknown): void;
45
+ private notifyWatchers;
46
+ }
47
+ //# sourceMappingURL=map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/esri-compat/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmD,MAAM,gBAAgB,CAAC;AAEjG,MAAM,WAAW,gB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IAgBzC,OAAO,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAqBzD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAa/B,UAAU,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM;IAU9C,SAAS,IAAI,IAAI;IAQjB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAe/C,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAUlC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAMlC,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAMhC,SAAS,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI;IAM3C,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAMxC,OAAO,IAAI,IAAI;IAKf,mBAAmB,CAAC,gBAAgB,EAAE,OAAO,GAAG,IAAI;IAM3D,OAAO,CAAC,cAAc;CAUvB"}
@@ -0,0 +1,209 @@
1
+ import { CompatEventBus, resolveCompatEventBus, safeInvokeCompatListener } from "./event-bus.js";
2
+ export class MapCompat {
3
+ basemap;
4
+ ground;
5
+ tables;
6
+ portalItem;
7
+ spatialReference;
8
+ loaded;
9
+ loadStatus;
10
+ eventBus;
11
+ watchListeners;
12
+ layersInternal;
13
+ constructor(options = {}) {
14
+ this.basemap = options.basemap;
15
+ this.ground = options.ground;
16
+ this.tables = Array.isArray(options.tables) ? [...options.tables] : [];
17
+ this.portalItem = options.portalItem;
18
+ this.spatialReference = options.spatialReference;
19
+ this.loaded = false;
20
+ this.loadStatus = "not-loaded";
21
+ this.layersInternal = Array.isArray(options.layers) ? [...options.layers] : [];
22
+ this.eventBus = options.eventBus ?? resolveCompatEventBus(options.layers) ?? new CompatEventBus();
23
+ this.watchListeners = new Map();
24
+ }
25
+ async load() {
26
+ if (this.loaded) {
27
+ return this;
28
+ }
29
+ this.loadStatus = "loading";
30
+ this.notifyWatchers("loadStatus", this.loadStatus);
31
+ this.eventBus.emit("map.loading", { layerCount: this.layersInternal.length }, this);
32
+ this.loaded = true;
33
+ this.notifyWatchers("loaded", this.loaded);
34
+ this.loadStatus = "loaded";
35
+ this.notifyWatchers("loadStatus", this.loadStatus);
36
+ this.eventBus.emit("map.loaded", { layerCount: this.layersInternal.length }, this);
37
+ return this;
38
+ }
39
+ async when(callback) {
40
+ const map = await this.load();
41
+ if (callback) {
42
+ callback(map);
43
+ }
44
+ return map;
45
+ }
46
+ watch(propertyName, listener) {
47
+ let listeners = this.watchListeners.get(propertyName);
48
+ if (!listeners) {
49
+ listeners = new Set();
50
+ this.watchListeners.set(propertyName, listeners);
51
+ }
52
+ listeners.add(listener);
53
+ return {
54
+ remove: () => {
55
+ listeners?.delete(listener);
56
+ },
57
+ };
58
+ }
59
+ get layers() {
60
+ return this.layersInternal;
61
+ }
62
+ get allLayers() {
63
+ const flattened = [];
64
+ for (const layer of this.layersInternal) {
65
+ flattened.push(layer);
66
+ flattened.push(...extractNestedLayers(layer));
67
+ }
68
+ return flattened;
69
+ }
70
+ add(layer, index) {
71
+ if (index === undefined) {
72
+ this.layersInternal.push(layer);
73
+ this.notifyWatchers("layers", this.layers);
74
+ this.notifyWatchers("allLayers", this.allLayers);
75
+ this.eventBus.emit("map.layer-added", { layer, index: this.layersInternal.length - 1 }, this);
76
+ return;
77
+ }
78
+ const insertAt = normalizeInsertIndex(index, this.layersInternal.length);
79
+ this.layersInternal.splice(insertAt, 0, layer);
80
+ this.notifyWatchers("layers", this.layers);
81
+ this.notifyWatchers("allLayers", this.allLayers);
82
+ this.eventBus.emit("map.layer-added", { layer, index: insertAt }, this);
83
+ }
84
+ addMany(layers, index) {
85
+ if (layers.length === 0) {
86
+ return;
87
+ }
88
+ if (index === undefined) {
89
+ const startIndex = this.layersInternal.length;
90
+ this.layersInternal.push(...layers);
91
+ this.notifyWatchers("layers", this.layers);
92
+ this.notifyWatchers("allLayers", this.allLayers);
93
+ this.eventBus.emit("map.layers-added", { layers: [...layers], index: startIndex }, this);
94
+ return;
95
+ }
96
+ const insertAt = normalizeInsertIndex(index, this.layersInternal.length);
97
+ this.layersInternal.splice(insertAt, 0, ...layers);
98
+ this.notifyWatchers("layers", this.layers);
99
+ this.notifyWatchers("allLayers", this.allLayers);
100
+ this.eventBus.emit("map.layers-added", { layers: [...layers], index: insertAt }, this);
101
+ }
102
+ remove(layer) {
103
+ const index = this.layersInternal.indexOf(layer);
104
+ if (index < 0) {
105
+ return false;
106
+ }
107
+ this.layersInternal.splice(index, 1);
108
+ this.notifyWatchers("layers", this.layers);
109
+ this.notifyWatchers("allLayers", this.allLayers);
110
+ this.eventBus.emit("map.layer-removed", { layer, index }, this);
111
+ return true;
112
+ }
113
+ removeMany(layers) {
114
+ let removedCount = 0;
115
+ for (const layer of layers) {
116
+ if (this.remove(layer)) {
117
+ removedCount += 1;
118
+ }
119
+ }
120
+ return removedCount;
121
+ }
122
+ removeAll() {
123
+ const removedLayers = [...this.layersInternal];
124
+ this.layersInternal.length = 0;
125
+ this.notifyWatchers("layers", this.layers);
126
+ this.notifyWatchers("allLayers", this.allLayers);
127
+ this.eventBus.emit("map.layers-cleared", { layers: removedLayers }, this);
128
+ }
129
+ reorder(layer, index) {
130
+ const existingIndex = this.layersInternal.indexOf(layer);
131
+ if (existingIndex < 0) {
132
+ return false;
133
+ }
134
+ this.layersInternal.splice(existingIndex, 1);
135
+ const insertAt = normalizeInsertIndex(index, this.layersInternal.length);
136
+ this.layersInternal.splice(insertAt, 0, layer);
137
+ this.notifyWatchers("layers", this.layers);
138
+ this.notifyWatchers("allLayers", this.allLayers);
139
+ this.eventBus.emit("map.layer-reordered", { layer, fromIndex: existingIndex, toIndex: insertAt }, this);
140
+ return true;
141
+ }
142
+ findLayerById(id) {
143
+ for (const layer of this.allLayers) {
144
+ if (isLayerWithId(layer) && layer.id === id) {
145
+ return layer;
146
+ }
147
+ }
148
+ return undefined;
149
+ }
150
+ setBasemap(basemap) {
151
+ this.basemap = basemap;
152
+ this.notifyWatchers("basemap", this.basemap);
153
+ this.eventBus.emit("map.basemap-changed", { basemap }, this);
154
+ }
155
+ setGround(ground) {
156
+ this.ground = ground;
157
+ this.notifyWatchers("ground", this.ground);
158
+ this.eventBus.emit("map.ground-changed", { ground }, this);
159
+ }
160
+ setTables(tables) {
161
+ this.tables = [...tables];
162
+ this.notifyWatchers("tables", this.tables);
163
+ this.eventBus.emit("map.tables-changed", { tables: this.tables }, this);
164
+ }
165
+ setPortalItem(portalItem) {
166
+ this.portalItem = portalItem;
167
+ this.notifyWatchers("portalItem", this.portalItem);
168
+ this.eventBus.emit("map.portal-item-changed", { portalItem }, this);
169
+ }
170
+ destroy() {
171
+ this.watchListeners.clear();
172
+ this.eventBus.emit("map.destroyed", { layerCount: this.layersInternal.length }, this);
173
+ }
174
+ setSpatialReference(spatialReference) {
175
+ this.spatialReference = spatialReference;
176
+ this.notifyWatchers("spatialReference", this.spatialReference);
177
+ this.eventBus.emit("map.spatial-reference-changed", { spatialReference }, this);
178
+ }
179
+ notifyWatchers(propertyName, value) {
180
+ const listeners = this.watchListeners.get(propertyName);
181
+ if (!listeners) {
182
+ return;
183
+ }
184
+ for (const listener of listeners) {
185
+ safeInvokeCompatListener(listener, value);
186
+ }
187
+ }
188
+ }
189
+ function isLayerWithId(value) {
190
+ return typeof value === "object" && value !== null && "id" in value && typeof value.id === "string";
191
+ }
192
+ function extractNestedLayers(layer) {
193
+ if (!isLayerWithChildren(layer)) {
194
+ return [];
195
+ }
196
+ const nested = [];
197
+ for (const child of layer.layers) {
198
+ nested.push(child);
199
+ nested.push(...extractNestedLayers(child));
200
+ }
201
+ return nested;
202
+ }
203
+ function isLayerWithChildren(value) {
204
+ return typeof value === "object" && value !== null && "layers" in value && Array.isArray(value.layers);
205
+ }
206
+ function normalizeInsertIndex(index, length) {
207
+ const sanitized = Number.isFinite(index) ? Math.trunc(index) : length;
208
+ return Math.min(Math.max(sanitized, 0), length);
209
+ }
@@ -0,0 +1,61 @@
1
+ import { type CompatEventBus } from "./event-bus.js";
2
+ import { type AreaUnitCompat, type LinearUnitCompat, MeasurementCompat, type MeasurementResultCompat } from "./measurement.js";
3
+ export interface DistanceMeasurement2DCompatOptions {
4
+ view?: unknown;
5
+ container?: unknown;
6
+ eventBus?: CompatEventBus;
7
+ unit?: LinearUnitCompat;
8
+ }
9
+ export interface AreaMeasurement2DCompatOptions {
10
+ view?: unknown;
11
+ container?: unknown;
12
+ eventBus?: CompatEventBus;
13
+ unit?: AreaUnitCompat;
14
+ }
15
+ export type DistanceMeasurement2DLoadStatusCompat = "not-loaded" | "loading" | "loaded";
16
+ export interface DistanceMeasurement2DHandleCompat {
17
+ remove(): void;
18
+ }
19
+ export type AreaMeasurement2DLoadStatusCompat = "not-loaded" | "loading" | "loaded";
20
+ export interface AreaMeasurement2DHandleCompat {
21
+ remove(): void;
22
+ }
23
+ export declare class DistanceMeasurement2DCompat {
24
+ readonly view: unknown;
25
+ readonly container: unknown;
26
+ readonly eventBus: CompatEventBus;
27
+ loaded: boolean;
28
+ loadStatus: DistanceMeasurement2DLoadStatusCompat;
29
+ unit: LinearUnitCompat;
30
+ lastMeasurement: MeasurementResultCompat | undefined;
31
+ readonly measurement: MeasurementCompat;
32
+ private readonly watchListeners;
33
+ constructor(options?: DistanceMeasurement2DCompatOptions);
34
+ load(): Promise<DistanceMeasurement2DCompat>;
35
+ when(callback?: (widget: DistanceMeasurement2DCompat) => void): Promise<DistanceMeasurement2DCompat>;
36
+ watch(propertyName: string, listener: (value: unknown) => void): DistanceMeasurement2DHandleCompat;
37
+ clear(): void;
38
+ measure(points: readonly [number, number][]): MeasurementResultCompat;
39
+ destroy(): void;
40
+ private notifyWatchers;
41
+ }
42
+ export declare class AreaMeasurement2DCompat {
43
+ readonly view: unknown;
44
+ readonly container: unknown;
45
+ readonly eventBus: CompatEventBus;
46
+ loaded: boolean;
47
+ loadStatus: AreaMeasurement2DLoadStatusCompat;
48
+ unit: AreaUnitCompat;
49
+ lastMeasurement: MeasurementResultCompat | undefined;
50
+ readonly measurement: MeasurementCompat;
51
+ private readonly watchListeners;
52
+ constructor(options?: AreaMeasurement2DCompatOptions);
53
+ load(): Promise<AreaMeasurement2DCompat>;
54
+ when(callback?: (widget: AreaMeasurement2DCompat) => void): Promise<AreaMeasurement2DCompat>;
55
+ watch(propertyName: string, listener: (value: unknown) => void): AreaMeasurement2DHandleCompat;
56
+ clear(): void;
57
+ measure(ring: readonly [number, number][]): MeasurementResultCompat;
58
+ destroy(): void;
59
+ private notifyWatchers;
60
+ }
61
+ //# sourceMappingURL=measurement-2d.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measurement-2d.d.ts","sourceRoot":"","sources":["../../../src/esri-compat/measurement-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAA4B,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,kCAAkC;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED,MAAM,MAAM,qCAAqC,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAExF,MAAM,WAAW,iCAAiC;IAChD,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,MAAM,MAAM,iCAAiC,GAAG,YAAY,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;IAC/C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6C;gBAEzD,OAAO,GAAE,8BAAmC;IAkBlD,IAAI,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAiBxC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAQlG,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,6BAA6B;IAe9F,KAAK,IAAI,IAAI;IAOb,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,uBAAuB;IAWnE,OAAO,IAAI,IAAI;IAItB,OAAO,CAAC,cAAc;CAUvB"}
@@ -0,0 +1,184 @@
1
+ import { safeInvokeCompatListener } from "./event-bus.js";
2
+ import { MeasurementCompat, } from "./measurement.js";
3
+ export class DistanceMeasurement2DCompat {
4
+ view;
5
+ container;
6
+ eventBus;
7
+ loaded;
8
+ loadStatus;
9
+ unit;
10
+ lastMeasurement;
11
+ measurement;
12
+ watchListeners;
13
+ constructor(options = {}) {
14
+ this.view = options.view;
15
+ this.container = options.container;
16
+ this.measurement = new MeasurementCompat({
17
+ view: options.view,
18
+ container: options.container,
19
+ eventBus: options.eventBus,
20
+ activeTool: "distance",
21
+ linearUnit: options.unit,
22
+ });
23
+ this.eventBus = this.measurement.eventBus;
24
+ this.loaded = false;
25
+ this.loadStatus = "not-loaded";
26
+ this.unit = this.measurement.linearUnit;
27
+ this.lastMeasurement = undefined;
28
+ this.watchListeners = new Map();
29
+ }
30
+ async load() {
31
+ if (this.loaded) {
32
+ return this;
33
+ }
34
+ this.loadStatus = "loading";
35
+ this.notifyWatchers("loadStatus", this.loadStatus);
36
+ this.eventBus.emit("distance-measurement-2d.loading", undefined, this);
37
+ await this.measurement.load();
38
+ this.loaded = true;
39
+ this.notifyWatchers("loaded", this.loaded);
40
+ this.loadStatus = "loaded";
41
+ this.notifyWatchers("loadStatus", this.loadStatus);
42
+ this.eventBus.emit("distance-measurement-2d.loaded", undefined, this);
43
+ return this;
44
+ }
45
+ async when(callback) {
46
+ const widget = await this.load();
47
+ if (callback) {
48
+ callback(widget);
49
+ }
50
+ return widget;
51
+ }
52
+ watch(propertyName, listener) {
53
+ let listeners = this.watchListeners.get(propertyName);
54
+ if (!listeners) {
55
+ listeners = new Set();
56
+ this.watchListeners.set(propertyName, listeners);
57
+ }
58
+ listeners.add(listener);
59
+ return {
60
+ remove: () => {
61
+ listeners?.delete(listener);
62
+ },
63
+ };
64
+ }
65
+ clear() {
66
+ this.measurement.clear();
67
+ this.lastMeasurement = undefined;
68
+ this.notifyWatchers("lastMeasurement", this.lastMeasurement);
69
+ this.eventBus.emit("distance-measurement-2d.cleared", undefined, this);
70
+ }
71
+ measure(points) {
72
+ this.measurement.start("distance");
73
+ const result = this.measurement.measureDistance(points);
74
+ this.unit = this.measurement.linearUnit;
75
+ this.notifyWatchers("unit", this.unit);
76
+ this.lastMeasurement = result;
77
+ this.notifyWatchers("lastMeasurement", this.lastMeasurement);
78
+ this.eventBus.emit("distance-measurement-2d.updated", result, this);
79
+ return result;
80
+ }
81
+ destroy() {
82
+ this.watchListeners.clear();
83
+ }
84
+ notifyWatchers(propertyName, value) {
85
+ const listeners = this.watchListeners.get(propertyName);
86
+ if (!listeners) {
87
+ return;
88
+ }
89
+ for (const listener of listeners) {
90
+ safeInvokeCompatListener(listener, value);
91
+ }
92
+ }
93
+ }
94
+ export class AreaMeasurement2DCompat {
95
+ view;
96
+ container;
97
+ eventBus;
98
+ loaded;
99
+ loadStatus;
100
+ unit;
101
+ lastMeasurement;
102
+ measurement;
103
+ watchListeners;
104
+ constructor(options = {}) {
105
+ this.view = options.view;
106
+ this.container = options.container;
107
+ this.measurement = new MeasurementCompat({
108
+ view: options.view,
109
+ container: options.container,
110
+ eventBus: options.eventBus,
111
+ activeTool: "area",
112
+ areaUnit: options.unit,
113
+ });
114
+ this.eventBus = this.measurement.eventBus;
115
+ this.loaded = false;
116
+ this.loadStatus = "not-loaded";
117
+ this.unit = this.measurement.areaUnit;
118
+ this.lastMeasurement = undefined;
119
+ this.watchListeners = new Map();
120
+ }
121
+ async load() {
122
+ if (this.loaded) {
123
+ return this;
124
+ }
125
+ this.loadStatus = "loading";
126
+ this.notifyWatchers("loadStatus", this.loadStatus);
127
+ this.eventBus.emit("area-measurement-2d.loading", undefined, this);
128
+ await this.measurement.load();
129
+ this.loaded = true;
130
+ this.notifyWatchers("loaded", this.loaded);
131
+ this.loadStatus = "loaded";
132
+ this.notifyWatchers("loadStatus", this.loadStatus);
133
+ this.eventBus.emit("area-measurement-2d.loaded", undefined, this);
134
+ return this;
135
+ }
136
+ async when(callback) {
137
+ const widget = await this.load();
138
+ if (callback) {
139
+ callback(widget);
140
+ }
141
+ return widget;
142
+ }
143
+ watch(propertyName, listener) {
144
+ let listeners = this.watchListeners.get(propertyName);
145
+ if (!listeners) {
146
+ listeners = new Set();
147
+ this.watchListeners.set(propertyName, listeners);
148
+ }
149
+ listeners.add(listener);
150
+ return {
151
+ remove: () => {
152
+ listeners?.delete(listener);
153
+ },
154
+ };
155
+ }
156
+ clear() {
157
+ this.measurement.clear();
158
+ this.lastMeasurement = undefined;
159
+ this.notifyWatchers("lastMeasurement", this.lastMeasurement);
160
+ this.eventBus.emit("area-measurement-2d.cleared", undefined, this);
161
+ }
162
+ measure(ring) {
163
+ this.measurement.start("area");
164
+ const result = this.measurement.measureArea(ring);
165
+ this.unit = this.measurement.areaUnit;
166
+ this.notifyWatchers("unit", this.unit);
167
+ this.lastMeasurement = result;
168
+ this.notifyWatchers("lastMeasurement", this.lastMeasurement);
169
+ this.eventBus.emit("area-measurement-2d.updated", result, this);
170
+ return result;
171
+ }
172
+ destroy() {
173
+ this.watchListeners.clear();
174
+ }
175
+ notifyWatchers(propertyName, value) {
176
+ const listeners = this.watchListeners.get(propertyName);
177
+ if (!listeners) {
178
+ return;
179
+ }
180
+ for (const listener of listeners) {
181
+ safeInvokeCompatListener(listener, value);
182
+ }
183
+ }
184
+ }
@@ -0,0 +1,45 @@
1
+ import { CompatEventBus } from "./event-bus.js";
2
+ export type MeasurementToolCompat = "distance" | "area" | "direct-line";
3
+ export type LinearUnitCompat = "meters" | "kilometers" | "feet" | "miles";
4
+ export type AreaUnitCompat = "square-meters" | "square-kilometers" | "square-feet" | "square-miles";
5
+ export interface MeasurementCompatOptions {
6
+ view?: unknown;
7
+ container?: unknown;
8
+ eventBus?: CompatEventBus;
9
+ activeTool?: MeasurementToolCompat;
10
+ linearUnit?: LinearUnitCompat;
11
+ areaUnit?: AreaUnitCompat;
12
+ }
13
+ export interface MeasurementResultCompat {
14
+ tool: MeasurementToolCompat;
15
+ value: number;
16
+ unit: LinearUnitCompat | AreaUnitCompat;
17
+ }
18
+ export type MeasurementLoadStatusCompat = "not-loaded" | "loading" | "loaded";
19
+ export interface MeasurementHandleCompat {
20
+ remove(): void;
21
+ }
22
+ export declare class MeasurementCompat {
23
+ readonly view: unknown;
24
+ readonly container: unknown;
25
+ readonly eventBus: CompatEventBus;
26
+ loaded: boolean;
27
+ loadStatus: MeasurementLoadStatusCompat;
28
+ activeTool: MeasurementToolCompat | undefined;
29
+ linearUnit: LinearUnitCompat;
30
+ areaUnit: AreaUnitCompat;
31
+ lastMeasurement: MeasurementResultCompat | undefined;
32
+ private readonly watchListeners;
33
+ constructor(options?: MeasurementCompatOptions);
34
+ load(): Promise<MeasurementCompat>;
35
+ when(callback?: (widget: MeasurementCompat) => void): Promise<MeasurementCompat>;
36
+ watch(propertyName: string, listener: (value: unknown) => void): MeasurementHandleCompat;
37
+ start(tool: MeasurementToolCompat): void;
38
+ stop(): void;
39
+ clear(): void;
40
+ measureDistance(points: readonly [number, number][]): MeasurementResultCompat;
41
+ measureArea(ring: readonly [number, number][]): MeasurementResultCompat;
42
+ destroy(): void;
43
+ private notifyWatchers;
44
+ }
45
+ //# sourceMapp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