GeoRSSLayer-OMFPL5EF.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. import {
  2. S2 as S,
  3. m,
  4. n as n3,
  5. y as y2
  6. } from "./chunk-3Z755LKF.js";
  7. import "./chunk-LTZ5XXDV.js";
  8. import "./chunk-DLMAGHHC.js";
  9. import "./chunk-JOYXMSKE.js";
  10. import "./chunk-ECY35CJI.js";
  11. import {
  12. a
  13. } from "./chunk-MCWCB5IY.js";
  14. import {
  15. v
  16. } from "./chunk-JUWKPBLS.js";
  17. import {
  18. c as c2
  19. } from "./chunk-WLSB4F4I.js";
  20. import {
  21. c,
  22. f,
  23. j
  24. } from "./chunk-GLSWDDR3.js";
  25. import {
  26. O
  27. } from "./chunk-MIQGEDET.js";
  28. import "./chunk-DUEMJ5XS.js";
  29. import "./chunk-VRLXUHP2.js";
  30. import "./chunk-3LVSQLWJ.js";
  31. import "./chunk-4ONPMX2F.js";
  32. import "./chunk-CRGY2SDS.js";
  33. import "./chunk-4T5ZGMEN.js";
  34. import {
  35. p
  36. } from "./chunk-GN35O2ZO.js";
  37. import {
  38. n as n2
  39. } from "./chunk-XTVKPAWY.js";
  40. import "./chunk-3OSQ6GXO.js";
  41. import "./chunk-3WQOA5CB.js";
  42. import {
  43. t
  44. } from "./chunk-PLWDAYK7.js";
  45. import "./chunk-FZQZIM7U.js";
  46. import "./chunk-CZBRZ6SU.js";
  47. import "./chunk-VGWC3IKZ.js";
  48. import "./chunk-2H5MD622.js";
  49. import "./chunk-3RSFVUKZ.js";
  50. import "./chunk-UVVU4UUO.js";
  51. import "./chunk-X4SA4ELJ.js";
  52. import "./chunk-5N7JLUJJ.js";
  53. import "./chunk-ZAY3CMAZ.js";
  54. import "./chunk-P3XKUGLS.js";
  55. import "./chunk-2ZSOO377.js";
  56. import "./chunk-YUA3AHKR.js";
  57. import "./chunk-LU5IJZB4.js";
  58. import "./chunk-7IBV2TRE.js";
  59. import "./chunk-ZLNEXZAN.js";
  60. import "./chunk-5UVJ64RB.js";
  61. import "./chunk-SFEFRQCL.js";
  62. import {
  63. b
  64. } from "./chunk-DXVOOCG4.js";
  65. import "./chunk-3GZSQU56.js";
  66. import "./chunk-ZYRIJWLX.js";
  67. import "./chunk-RYY6632W.js";
  68. import "./chunk-DW42UVIT.js";
  69. import "./chunk-YAEIHDJH.js";
  70. import "./chunk-TJNOJH33.js";
  71. import "./chunk-OSHI574D.js";
  72. import "./chunk-ETGAZ7LF.js";
  73. import "./chunk-75U5LM2V.js";
  74. import "./chunk-RMDDCMKS.js";
  75. import "./chunk-VCH45Q2I.js";
  76. import "./chunk-LBW34VZ2.js";
  77. import "./chunk-GSSTTHIT.js";
  78. import "./chunk-YFSLJIO4.js";
  79. import "./chunk-IM3LVQXV.js";
  80. import "./chunk-55RWC67C.js";
  81. import "./chunk-HZRKBTHJ.js";
  82. import {
  83. U
  84. } from "./chunk-DVUG3KID.js";
  85. import "./chunk-FWSQEIAR.js";
  86. import {
  87. Ut
  88. } from "./chunk-VEGAOVMY.js";
  89. import {
  90. o,
  91. w2
  92. } from "./chunk-6T6G6LCQ.js";
  93. import "./chunk-YEJL5NEF.js";
  94. import {
  95. G
  96. } from "./chunk-PQFTYGF5.js";
  97. import {
  98. e,
  99. n5 as n,
  100. y3 as y
  101. } from "./chunk-2Z2TG5CU.js";
  102. import "./chunk-6KZ2LTDA.js";
  103. import "./chunk-U2XHEJM7.js";
  104. import "./chunk-SQOPWYIT.js";
  105. import {
  106. w
  107. } from "./chunk-V6P2MAQQ.js";
  108. import {
  109. s
  110. } from "./chunk-E5O6P5I2.js";
  111. import "./chunk-SPWQ3AWG.js";
  112. import "./chunk-2TIUKVZN.js";
  113. import {
  114. r
  115. } from "./chunk-YXWMMD76.js";
  116. import "./chunk-S5KM4IGW.js";
  117. // node_modules/@arcgis/core/layers/GeoRSSLayer.js
  118. var L = ["atom", "xml"];
  119. var R = { base: a, key: "type", typeMap: { "simple-line": m }, errorContext: "symbol" };
  120. var k = { base: a, key: "type", typeMap: { "picture-marker": n3, "simple-marker": y2 }, errorContext: "symbol" };
  121. var _ = { base: a, key: "type", typeMap: { "simple-fill": S }, errorContext: "symbol" };
  122. var w3 = class extends n2(p(c2(v(t(O(b)))))) {
  123. constructor(...e2) {
  124. 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";
  125. }
  126. normalizeCtorArgs(e2, o2) {
  127. return "string" == typeof e2 ? { url: e2, ...o2 } : e2;
  128. }
  129. readFeatureCollections(e2, o2) {
  130. return o2.featureCollection.layers.forEach((e3) => {
  131. var _a;
  132. const o3 = e3.layerDefinition.drawingInfo.renderer.symbol;
  133. o3 && "esriSFS" === o3.type && ((_a = o3.outline) == null ? void 0 : _a.style.includes("esriSFS")) && (o3.outline.style = "esriSLSSolid");
  134. }), o2.featureCollection.layers;
  135. }
  136. get hasPoints() {
  137. return this._hasGeometry("esriGeometryPoint");
  138. }
  139. get hasPolylines() {
  140. return this._hasGeometry("esriGeometryPolyline");
  141. }
  142. get hasPolygons() {
  143. return this._hasGeometry("esriGeometryPolygon");
  144. }
  145. get title() {
  146. const e2 = this._get("title");
  147. return e2 && "defaults" !== this.originOf("title") ? e2 : this.url ? Ut(this.url, L) || "GeoRSS" : e2 || "";
  148. }
  149. set title(e2) {
  150. this._set("title", e2);
  151. }
  152. load(e2) {
  153. const o2 = r(e2) ? e2.signal : null;
  154. return this.addResolvingPromise(this.loadFromPortal({ supportedTypes: ["Map Service", "Feature Service", "Feature Collection", "Scene Service"] }, e2).catch(w).then(() => this._fetchService(o2)).then((e3) => {
  155. this.read(e3, { origin: "service" });
  156. })), Promise.resolve(this);
  157. }
  158. async hasDataChanged() {
  159. const e2 = await this._fetchService();
  160. return this.read(e2, { origin: "service", ignoreDefaults: true }), true;
  161. }
  162. async _fetchService(e2) {
  163. var _a;
  164. const t2 = this.spatialReference, { data: s2 } = await U(s.geoRSSServiceUrl, { query: { url: this.url, refresh: !!this.loaded || void 0, outSR: G(t2) ? void 0 : (_a = t2.wkid) != null ? _a : JSON.stringify(t2) }, signal: e2 });
  165. return s2;
  166. }
  167. _hasGeometry(e2) {
  168. var _a, _b;
  169. return (_b = (_a = this.featureCollections) == null ? void 0 : _a.some((o2) => {
  170. var _a2, _b2;
  171. return ((_a2 = o2.featureSet) == null ? void 0 : _a2.geometryType) === e2 && ((_b2 = o2.featureSet.features) == null ? void 0 : _b2.length) > 0;
  172. })) != null ? _b : false;
  173. }
  174. };
  175. e([y()], w3.prototype, "description", void 0), e([y()], w3.prototype, "featureCollections", void 0), e([o("service", "featureCollections", ["featureCollection.layers"])], w3.prototype, "readFeatureCollections", null), e([y({ type: w2, json: { name: "lookAtExtent" } })], w3.prototype, "fullExtent", void 0), e([y(j)], w3.prototype, "id", void 0), e([y(c)], w3.prototype, "legendEnabled", void 0), e([y({ types: R, json: { write: true } })], w3.prototype, "lineSymbol", void 0), e([y({ type: ["show", "hide"] })], w3.prototype, "listMode", void 0), e([y({ types: k, json: { write: true } })], w3.prototype, "pointSymbol", void 0), e([y({ types: _, json: { write: true } })], w3.prototype, "polygonSymbol", void 0), e([y({ type: ["GeoRSS"] })], w3.prototype, "operationalLayerType", void 0), e([y(f)], w3.prototype, "url", void 0), e([y({ json: { origins: { service: { read: { source: "name", reader: (e2) => e2 || void 0 } } } } })], w3.prototype, "title", null), e([y({ readOnly: true, json: { read: false }, value: "geo-rss" })], w3.prototype, "type", void 0), w3 = e([n("esri.layers.GeoRSSLayer")], w3);
  176. var F = w3;
  177. export {
  178. F as default
  179. };
  180. //# sourceMappingURL=GeoRSSLayer-OMFPL5EF.js.map