GeoRSSLayer-RJD4ROGC.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. import {
  2. S2 as S,
  3. m,
  4. n as n3,
  5. y
  6. } from "./chunk-EN7YGJWG.js";
  7. import "./chunk-VBNMTM7L.js";
  8. import "./chunk-3D3QEPRE.js";
  9. import "./chunk-JFNNSBWL.js";
  10. import "./chunk-WNCU6BFU.js";
  11. import {
  12. a
  13. } from "./chunk-C43UE3Z5.js";
  14. import "./chunk-7XXXCK2A.js";
  15. import "./chunk-7ZIDBK7B.js";
  16. import {
  17. v as v2
  18. } from "./chunk-KHA63LLS.js";
  19. import {
  20. c as c2
  21. } from "./chunk-FGKNEJKJ.js";
  22. import {
  23. c,
  24. f,
  25. v
  26. } from "./chunk-PSV473TI.js";
  27. import {
  28. O
  29. } from "./chunk-I3OBGWNS.js";
  30. import "./chunk-FONIFA5N.js";
  31. import "./chunk-EG5OI4V4.js";
  32. import "./chunk-65BYCSII.js";
  33. import "./chunk-WZQZRKNH.js";
  34. import "./chunk-LRDX4TO7.js";
  35. import "./chunk-6A4U74YA.js";
  36. import {
  37. n as n2
  38. } from "./chunk-CYI7KFYB.js";
  39. import {
  40. a as a2
  41. } from "./chunk-5LXROFTA.js";
  42. import "./chunk-GJXW4HL5.js";
  43. import "./chunk-WJW5DUN6.js";
  44. import {
  45. t
  46. } from "./chunk-W72F6AS3.js";
  47. import "./chunk-PJ7ZQ4VD.js";
  48. import "./chunk-WDLTDV2L.js";
  49. import "./chunk-TERAW6FT.js";
  50. import "./chunk-N2663GRX.js";
  51. import "./chunk-O4FY3ITT.js";
  52. import "./chunk-WEMIK25H.js";
  53. import {
  54. b
  55. } from "./chunk-4DDBH2K5.js";
  56. import "./chunk-7N4X6GF3.js";
  57. import "./chunk-JXW4QTJA.js";
  58. import "./chunk-UXF37FQ4.js";
  59. import "./chunk-ZOEK6QHJ.js";
  60. import "./chunk-XNLG7T2T.js";
  61. import "./chunk-IR4PV7VK.js";
  62. import "./chunk-2Z6LERTI.js";
  63. import "./chunk-OWVBLVP3.js";
  64. import "./chunk-AFZ7XSEW.js";
  65. import "./chunk-EGZW6HC3.js";
  66. import "./chunk-4NKD334K.js";
  67. import "./chunk-65K7LC56.js";
  68. import "./chunk-ATPLLI5W.js";
  69. import "./chunk-WJ3OEUD3.js";
  70. import "./chunk-MXB2XLKV.js";
  71. import "./chunk-XH7RUGVZ.js";
  72. import "./chunk-TBBTRX4O.js";
  73. import "./chunk-YBSUITLL.js";
  74. import "./chunk-ALDCDSPV.js";
  75. import "./chunk-DT6EAZQ5.js";
  76. import "./chunk-HNOZUNJ4.js";
  77. import {
  78. U
  79. } from "./chunk-VNFRAYHO.js";
  80. import "./chunk-R5IG2D6H.js";
  81. import {
  82. Ut
  83. } from "./chunk-VBRY5KJM.js";
  84. import "./chunk-PDKDCAAD.js";
  85. import {
  86. M2 as M,
  87. o
  88. } from "./chunk-ECW2QABR.js";
  89. import "./chunk-GCDJLKH4.js";
  90. import {
  91. G
  92. } from "./chunk-MRJEICT6.js";
  93. import {
  94. d,
  95. e,
  96. n2 as n
  97. } from "./chunk-Y3WMVFTW.js";
  98. import "./chunk-SAS7RONY.js";
  99. import "./chunk-WSRBH7BF.js";
  100. import "./chunk-IHXECKQQ.js";
  101. import {
  102. w
  103. } from "./chunk-ULGDPLM2.js";
  104. import {
  105. r as r2
  106. } from "./chunk-EMJ4ZSM2.js";
  107. import "./chunk-IKP3YN53.js";
  108. import {
  109. r
  110. } from "./chunk-GZT4BVFP.js";
  111. import "./chunk-A5ICIBVI.js";
  112. // node_modules/@arcgis/core/layers/GeoRSSLayer.js
  113. var L = ["atom", "xml"];
  114. var R = { base: a, key: "type", typeMap: { "simple-line": m }, errorContext: "symbol" };
  115. var k = { base: a, key: "type", typeMap: { "picture-marker": n3, "simple-marker": y }, errorContext: "symbol" };
  116. var _ = { base: a, key: "type", typeMap: { "simple-fill": S }, errorContext: "symbol" };
  117. var w2 = class extends a2(n2(c2(v2(t(O(b)))))) {
  118. constructor(...e2) {
  119. super(...e2), this.description = null, this.fullExtent = null, this.legendEnabled = true, this.lineSymbol = null, this.pointSymbol = null, this.polygonSymbol = null, this.operationalLayerType = "GeoRSS", this.url = null, this.type = "geo-rss";
  120. }
  121. normalizeCtorArgs(e2, o2) {
  122. return typeof e2 == "string" ? { url: e2, ...o2 } : e2;
  123. }
  124. readFeatureCollections(e2, o2) {
  125. return o2.featureCollection.layers.forEach((e3) => {
  126. const o3 = e3.layerDefinition.drawingInfo.renderer.symbol;
  127. o3 && o3.type === "esriSFS" && o3.outline?.style.includes("esriSFS") && (o3.outline.style = "esriSLSSolid");
  128. }), o2.featureCollection.layers;
  129. }
  130. get hasPoints() {
  131. return this._hasGeometry("esriGeometryPoint");
  132. }
  133. get hasPolylines() {
  134. return this._hasGeometry("esriGeometryPolyline");
  135. }
  136. get hasPolygons() {
  137. return this._hasGeometry("esriGeometryPolygon");
  138. }
  139. get title() {
  140. const e2 = this._get("title");
  141. return e2 && this.originOf("title") !== "defaults" ? e2 : this.url ? Ut(this.url, L) || "GeoRSS" : e2 || "";
  142. }
  143. set title(e2) {
  144. this._set("title", e2);
  145. }
  146. load(e2) {
  147. const o2 = r(e2) ? e2.signal : null;
  148. return this.addResolvingPromise(this.loadFromPortal({ supportedTypes: ["Map Service", "Feature Service", "Feature Collection", "Scene Service"] }, e2).catch(w).then(() => this._fetchService(o2)).then((e3) => {
  149. this.read(e3, { origin: "service" });
  150. })), Promise.resolve(this);
  151. }
  152. async hasDataChanged() {
  153. const e2 = await this._fetchService();
  154. return this.read(e2, { origin: "service", ignoreDefaults: true }), true;
  155. }
  156. async _fetchService(e2) {
  157. const t2 = this.spatialReference, { data: s } = await U(r2.geoRSSServiceUrl, { query: { url: this.url, refresh: !!this.loaded || void 0, outSR: G(t2) ? void 0 : t2.wkid ?? JSON.stringify(t2) }, signal: e2 });
  158. return s;
  159. }
  160. _hasGeometry(e2) {
  161. return this.featureCollections?.some((o2) => o2.featureSet?.geometryType === e2 && o2.featureSet.features?.length > 0) ?? false;
  162. }
  163. };
  164. e([d()], w2.prototype, "description", void 0), e([d()], w2.prototype, "featureCollections", void 0), e([o("service", "featureCollections", ["featureCollection.layers"])], w2.prototype, "readFeatureCollections", null), e([d({ type: M, json: { name: "lookAtExtent" } })], w2.prototype, "fullExtent", void 0), e([d(v)], w2.prototype, "id", void 0), e([d(c)], w2.prototype, "legendEnabled", void 0), e([d({ types: R, json: { write: true } })], w2.prototype, "lineSymbol", void 0), e([d({ type: ["show", "hide"] })], w2.prototype, "listMode", void 0), e([d({ types: k, json: { write: true } })], w2.prototype, "pointSymbol", void 0), e([d({ types: _, json: { write: true } })], w2.prototype, "polygonSymbol", void 0), e([d({ type: ["GeoRSS"] })], w2.prototype, "operationalLayerType", void 0), e([d(f)], w2.prototype, "url", void 0), e([d({ json: { origins: { service: { read: { source: "name", reader: (e2) => e2 || void 0 } } } } })], w2.prototype, "title", null), e([d({ readOnly: true, json: { read: false }, value: "geo-rss" })], w2.prototype, "type", void 0), w2 = e([n("esri.layers.GeoRSSLayer")], w2);
  165. var F = w2;
  166. export {
  167. F as default
  168. };
  169. //# sourceMappingURL=GeoRSSLayer-RJD4ROGC.js.map