PageSourceSearch

https://geospatialem.github.io/5964.b327f4afb10783fd.js

js geospatialem.github.io collected 2026-10-03 09:16:15 UTC 3,200 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([[5964],{25964:(A,h,s)=>{s.r(h),s.d(h,{default:()=>R});var o=s(17626),v=s(47877),d=s(62208),E=s(99959),l=s(77712),c=(s(85931),s(8314),s(52323)),M=(s(90912),s(76898)),O=s(99433),p=s(63602),b=s(552),P=s(49286),u=s(6647),L=s(99555),D=s(6432),C=s(6119),f=s(32584);let t=class extends((0,b.h)((0,L.M)((0,P.q)((0,u.I)((0,C.Q)((0,D.K)((0,E.R)(p.Z)))))))){constructor(i){super(i),this._visibilityHandles={},this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._visibilityWatcher=this._visibilityWatcher.bind(this)}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.watch("visible",this._visibleWatcher.bind(this),!0)}_writeLayers(i,e,a,_){const r=[];if(!i)return r;i.forEach(y=>{const n=(0,f.Nw)(y,_.webmap?_.webmap.getLayerJSONFromResourceInfo(y):null,_);(0,d.pC)(n)&&n.layerType&&r.push(n)}),e.layers=r}set portalItem(i){this._set("portalItem",i)}set visibilityMode(i){const e=this._get("visibilityMode")!==i;this._set("visibilityMode",i),e&&this._enforceVisibility(i,this.visible)}load(i){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},i)),Promise.resolve(this)}loadAll(){return(0,v.GZ)(this,i=>{i(this.layers)})}layerAdded(i){i.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(i):"inherited"===this.visibilityMode&&(i.visible=this.visible),this._visibilityHandles[i.uid]=i.watch("visible",this._visibilityWatcher,!0)}layerRemoved(i){const e=this._visibilityHandles[i.uid];e&&(e.remove(),delete this._visibilityHandles[i.uid]),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(i){this.layers.forEach(e=>{e!==i&&(e.visible=!1)})}_enforceVisibility(i,e){if(!(0,c.vw)(this).initialized)return;const a=this.layers;let _=a.find(r=>r.visible);switch(i){case"exclusive":a.length&&!_&&(_=a.getItemAt(0),_.visible=!0),this._turnOffOtherLayers(_);break;case"inherited":a.forEach(r=>{r.visible=e})}}_visibleWatcher(i){"inherited"===this.visibilityMode&&this.layers.forEach(e=>{e.visible=i})}_visibilityWatcher(i,e,a,_){const r=_;switch(this.visibilityMode){case"exclusive":i?this._turnOffOtherLayers(r):this._isAnyLayerVisible()||(r.visible=!0);break;case"inherited":r.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some(i=>i.visible)}};(0,o._)([(0,l.Cb)()],t.prototype,"fullExtent",void 0),(0,o._)([(0,l.Cb)({json:{read:!1,write:{ignoreOrigin:!0}}})],t.prototype,"layers",void 0),(0,o._)([(0,O.c)("layers")],t.prototype,"_writeLayers",null),(0,o._)([(0,l.Cb)({type:["GroupLayer"]})],t.prototype,"operationalLayerType",void 0),(0,o._)([(0,l.Cb)({json:{origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"portalItem",null),(0,o._)([(0,l.Cb)()],t.prototype,"spatialReference",void 0),(0,o._)([(0,l.Cb)({json:{read:!1},readOnly:!0,value:"group"})],t.prototype,"type",void 0),(0,o._)([(0,l.Cb)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"visibilityMode",null),t=(0,o._)([(0,M.j)("esri.layers.GroupLayer")],t);const R=t}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.