PageSourceSearch

https://rxburnplanner.com/assets/WMSLayerView2D-CwwUd2bJ.js

js rxburnplanner.com collected 2026-10-05 11:46:39 UTC 3,830 bytes, 1 lines download raw bytes

1import{_ as s,m as c,e as M,cm as $,f as w,cy as F,eJ as S,at as C,f9 as R,bu as q}from"./index-CyVzZKgG.js";import{s as E}from"./BitmapContainer-D63FmVmZ.js";import{b as U}from"./LayerView2D-Dtnnq7Ok.js";import{M as V}from"./ExportStrategy-0T6qX4Le.js";import{d as L}from"./LayerView-BDFKgFC_.js";import{i as W}from"./RefreshableLayerView-DY_zTc8-.js";import{a as _}from"./ExportWMSImageParameters-ClCrP2ET.js";import{i as z}from"./timeSupport-DosvG4WH.js";import"./WGLContainer-D8AJ7Lzg.js";import"./Utils-B7KDTEFr.js";import"./ProgramTemplate-DULZpuIR.js";import"./VertexArrayObject-DkbpOVOt.js";import"./VertexBuffer-CLPmkREM.js";import"./BufferObject-BH6QMSVF.js";import"./vec3f32-WCVSSNPR.js";import"./Container-DIJ98BLI.js";import"./config-BOD8--da.js";import"./BitmapTechnique-CCXWXQjv.js";import"./GraphShaderModule-DslPvKFR.js";import"./FramebufferObject-BNdJFBQL.js";import"./ShaderBuilder-OAyDLXfD.js";import"./bitmapUtils-dHdtnPoo.js";const A=r=>{const i=r;let e=class extends i{initialize(){this.exportImageParameters=new _({layer:this.layer})}destroy(){this.exportImageParameters=$(this.exportImageParameters)}get exportImageVersion(){var t;return(t=this.exportImageParameters)==null||t.commitProperty("version"),this.commitProperty("timeExtent"),(this._get("exportImageVersion")||0)+1}get timeExtent(){var t;return z(this.layer,(t=this.view)==null?void 0:t.timeExtent,this._get("timeExtent"))}async fetchPopupFeaturesAtLocation(t,h){const{layer:m}=this;if(!t)throw new w("wmslayerview:fetchPopupFeatures","Nothing to fetch without area",{layer:m});const{popupEnabled:a}=m;if(!a)throw new w("wmslayerview:fetchPopupFeatures","popupEnabled should be true",{popupEnabled:a});const o=this.createFetchPopupFeaturesQuery(t);if(!o)return[];const{extent:n,width:p,height:u,x:y,y:g}=o;if(!(n&&p&&u))throw new w("wmslayerview:fetchPopupFeatures","WMSLayer does not support fetching features.",{extent:n,width:p,height:u});const d=await m.fetchFeatureInfo(n,p,u,y,g);return F(h),d}};return s([c()],e.prototype,"exportImageParameters",void 0),s([c({readOnly:!0})],e.prototype,"exportImageVersion",null),s([c()],e.prototype,"layer",void 0),s([c({readOnly:!0})],e.prototype,"timeExtent",null),e=s([M("esri.views.layers.WMSLayerView")],e),e};let l=class extends A(W(U(L))){constructor(){super(...arguments),this.bitmapContainer=new E}supportsSpatialReference(r){return this.layer.serviceSupportsSpatialReference(r)}update(r){this.strategy.update(r).catch(i=>{S(i)||C.getLogger(this).error(i)})}attach(){const{layer:r}=this,{imageMaxHeight:i,imageMaxWidth:e}=r;this.bitmapContainer=new E,this.container.addChild(this.bitmapContainer),this.strategy=new V({container:this.bitmapContainer,fetchSource:this.fetchImage.bind(this),requestUpdate:this.requestUpdate.bind(this),imageMaxHeight:i,imageMaxWidth:e,imageRotationSupported:!1,imageNormalizationSupported:!1,hidpi:!1}),this.addAttachHandles(R(()=>this.exportImageVersion,()=>this.requestUpdate()))}detach(){this.strategy=$(this.strategy),this.container.removeAllChildren()}viewChange(){}moveEnd(){this.requestUpdate()}createFetchPopupFeaturesQuery(r){const{view:i,bitmapContainer:e}=this,{x:t,y:h}=r,{spatialReference:m}=i;let a,o=0,n=0;if(e.children.some(g=>{const{width:d,height:v,resolution:b,x:f,y:x}=g,I=f+b*d,P=x-b*v;return t>=f&&t<=I&&h<=x&&h>=P&&(a=new q({xmin:f,ymin:P,xmax:I,ymax:x,spatialReference:m}),o=d,n=v,!0)}),!a)return null;const p=a.width/o,u=Math.round((t-a.xmin)/p),y=Math.round((a.ymax-h)/p);return{extent:a,width:o,height:n,x:u,y}}async doRefresh(){this.requestUpdate()}isUpdating(){return this.strategy.updating||this.updateRequested}fetchImage(r,i,e,t){return this.layer.fetchImageBitmap(r,i,e,{timeExtent:this.timeExtent,...t})}};s([c()],l.prototype,"strategy",void 0),l=s([M("esri.views.2d.layers.WMSLayerView2D")],l);const nt=l;export{nt as default};

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.