2025-10-10 11:14:54 +02:00
var e = { ADD : ` add ` , REMOVE : ` remove ` } , t = { PROPERTYCHANGE : ` propertychange ` } , n = { CHANGE : ` change ` , ERROR : ` error ` , BLUR : ` blur ` , CLEAR : ` clear ` , CONTEXTMENU : ` contextmenu ` , CLICK : ` click ` , DBLCLICK : ` dblclick ` , DRAGENTER : ` dragenter ` , DRAGOVER : ` dragover ` , DROP : ` drop ` , FOCUS : ` focus ` , KEYDOWN : ` keydown ` , KEYPRESS : ` keypress ` , LOAD : ` load ` , RESIZE : ` resize ` , TOUCHMOVE : ` touchmove ` , WHEEL : ` wheel ` } , r = class { constructor ( ) { this . disposed = ! 1 } dispose ( ) { this . disposed || ( this . disposed = ! 0 , this . disposeInternal ( ) ) } disposeInternal ( ) { } } ; function i ( e , t , n ) { let r , i ; n || = a ; let o = 0 , s = e . length , c = ! 1 ; for ( ; o < s ; ) r = o + ( s - o >> 1 ) , i = + n ( e [ r ] , t ) , i < 0 ? o = r + 1 : ( s = r , c = ! i ) ; return c ? o : ~ o } function a ( e , t ) { return e > t ? 1 : e < t ? - 1 : 0 } function o ( e , t ) { return e < t ? 1 : e > t ? - 1 : 0 } function s ( e , t , n ) { if ( e [ 0 ] <= t ) return 0 ; let r = e . length ; if ( t <= e [ r - 1 ] ) return r - 1 ; if ( typeof n == ` function ` ) { for ( let i = 1 ; i < r ; ++ i ) { let r = e [ i ] ; if ( r === t ) return i ; if ( r < t ) return n ( t , e [ i - 1 ] , r ) > 0 ? i - 1 : i } return r - 1 } if ( n > 0 ) { for ( let n = 1 ; n < r ; ++ n ) if ( e [ n ] < t ) return n - 1 ; return r - 1 } if ( n < 0 ) { for ( let n = 1 ; n < r ; ++ n ) if ( e [ n ] <= t ) return n ; return r - 1 } for ( let n = 1 ; n < r ; ++ n ) { if ( e [ n ] == t ) return n ; if ( e [ n ] < t ) return e [ n - 1 ] - t < t - e [ n ] ? n - 1 : n } return r - 1 } function c ( e , t , n ) { for ( ; t < n ; ) { let r = e [ t ] ; e [ t ] = e [ n ] , e [ n ] = r , ++ t , -- n } } function l ( e , t ) { let n = Array . isArray ( t ) ? t : [ t ] , r = n . length ; for ( let t = 0 ; t < r ; t ++ ) e [ e . length ] = n [ t ] } function u ( e , t ) { let n = e . length ; if ( n !== t . length ) return ! 1 ; for ( let r = 0 ; r < n ; r ++ ) if ( e [ r ] !== t [ r ] ) return ! 1 ; return ! 0 } function d ( e , t , n ) { let r = t || a ; return e . every ( function ( t , i ) { if ( i === 0 ) return ! 0 ; let a = r ( e [ i - 1 ] , t ) ; return ! ( a > 0 || n && a === 0 ) } ) } function f ( ) { return ! 0 } function p ( ) { return ! 1 } function m ( ) { } function h ( e ) { let t , n , r ; return function ( ) { let i = Array . prototype . slice . call ( arguments ) ; return ( ! n || this !== r || ! u ( i , n ) ) && ( r = this , n = i , t = e . apply ( this , arguments ) ) , t } } function g ( e ) { function t ( ) { let t ; try { t = e ( ) } catch ( e ) { return Promise . reject ( e ) } return t instanceof Promise ? t : Promise . resolve ( t ) } return t ( ) } function _ ( e ) { for ( let t in e ) delete e [ t ] } function v ( e ) { let t ; for ( t in e ) return ! 1 ; return ! t } var y = class { constructor ( e ) { this . propagationStopped , this . defaultPrevented , this . type = e , this . target = null } preventDefault ( ) { this . defaultPrevented = ! 0 } stopPropagation ( ) { this . propagationStopped = ! 0 } } , b = class extends r { constructor ( e ) { super ( ) , this . eventTarget _ = e , this . pendingRemovals _ = null , this . dispatching _ = null , this . listeners _ = null } addEventListener ( e , t ) { if ( ! e || ! t ) return ; let n = this . listeners _ || = { } , r = n [ e ] || ( n [ e ] = [ ] ) ; r . includes ( t ) || r . push ( t ) } dispatchEvent ( e ) { let t = typeof e == ` string ` , n = t ? e : e . type , r = this . listeners _ && this . listeners _ [ n ] ; if ( ! r ) return ; let i = t ? new y ( e ) : e ; i . target || = this . eventTarget _ || this ; let a = this . dispatching _ || = { } , o = this . pendingRemovals _ || = { } ; n in a || ( a [ n ] = 0 , o [ n ] = 0 ) , ++ a [ n ] ; let s ; for ( let e = 0 , t = r . length ; e < t ; ++ e ) if ( s = ` handleEvent ` in r [ e ] ? r [ e ] . handleEvent ( i ) : r [ e ] . call ( this , i ) , s === ! 1 || i . propagationStopped ) { s = ! 1 ; break } if ( -- a [ n ] === 0 ) { let e = o [ n ] ; for ( delete o [ n ] ; e -- ; ) this . removeEventListener ( n , m ) ; delete a [ n ] } return s } disposeInternal ( ) { this . listeners _ && _ ( this . listeners _ ) } getListeners ( e ) { return this . listeners _ && this . listeners _ [ e ] || void 0 } hasListener ( e ) { return this . listeners _ ? e ? e in this . listeners _ : Object . keys ( this . listeners _ ) . length > 0 : ! 1 } removeEventListener ( e , t ) { if ( ! this . listeners _ ) return ; let n = this . listeners _ [ e ] ; if ( ! n ) return ; let r = n . indexOf ( t ) ; r !== - 1 && ( this . pendingRemovals _ && e in this . pendingRemovals _ ? ( n [ r ] = m , ++ this . pendingRemovals _ [ e ] ) : ( n . splice ( r , 1 ) , n . length === 0 && delete this . listeners _ [ e ] ) ) } } ; function x ( e , t , n , r , i ) { if ( i ) { let i = n ; n = function ( a ) { return e . removeEventListener ( t , n ) , i . call ( r ? ? this , a ) } } else r && r !== e && ( n = n . bind ( r ) ) ; let a = { target : e , type : t , listener : n } ; return e . addEventListener ( t , n ) , a } function S ( e , t , n , r ) { return x ( e , t , n , r , ! 0 ) } function C ( e ) { e && e . target && ( e . target . removeEventListener ( e . type , e . listener ) , _ ( e ) ) } var w = class extends b { constructor ( ) { super ( ) , this . on = this . onInternal , this . once = this . onceInternal , this . un = this . unInternal , this . revision _ = 0 } changed ( ) { ++ this . revision _ , this . dispatchEvent ( n . CHANGE ) } getRevision ( ) { return this . revision _ } onInternal ( e , t ) { if ( Array . isArray ( e ) ) { let n = e . length , r = Array ( n ) ; for ( let i = 0 ; i < n ; ++ i ) r [ i ] = x ( this , e [ i ] , t ) ; return r } return x ( this , e , t ) } onceInternal ( e , t ) { let n ; if ( Array . isArray ( e ) ) { let r = e . length ; n = Array ( r ) ; for (
2025-10-04 14:22:51 +02:00
` ).reduce((t,n)=>Math.max(t,ya(e,n)),0);return n[t]=r,r}function xa(e,t){let n=[],r=[],i=[],a=0,o=0,s=0,c=0;for(let l=0,u=t.length;l<=u;l+=2){let d=t[l];if(d=== `
2025-10-10 11:14:54 +02:00
` ||l===u){a=Math.max(a,o),i.push(o),o=0,s+=c,c=0;continue}let f=t[l+1]||e.font,p=ya(f,d);n.push(p),o+=p;let m=_a(f);r.push(m),c=Math.max(c,m)}return{width:a,height:s,widths:n,heights:r,lineWidths:i}}function Sa(e,t,n,r,i,a,o,s,c,l,u){e.save(),n!==1&&(e.globalAlpha===void 0?e.globalAlpha=e=>e.globalAlpha*=n:e.globalAlpha*=n),t&&e.transform.apply(e,t),r.contextInstructions?(e.translate(c,l),e.scale(u[0],u[1]),Ca(r,e)):u[0]<0||u[1]<0?(e.translate(c,l),e.scale(u[0],u[1]),e.drawImage(r,i,a,o,s,0,0,o,s)):e.drawImage(r,i,a,o,s,c,l,o*u[0],s*u[1]),e.restore()}function Ca(e,t){let n=e.contextInstructions;for(let e=0,r=n.length;e<r;e+=2)Array.isArray(n[e+1])?t[n[e]].apply(t,n[e+1]):t[n[e]]=n[e+1]}var wa=class extends Xi{constructor(e,t,n,r,i,a,o){super(),this.context_=e,this.pixelRatio_=t,this.extent_=n,this.transform_=r,this.transformRotation_=r?Je(Math.atan2(r[1],r[0]),10):0,this.viewRotation_=i,this.squaredTolerance_=a,this.userTransform_=o,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_= ` ` ,this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=Fn()}drawImages_(e,t,n,r){if(!this.image_)return;let i=Wn(e,t,n,r,this.transform_,this.pixelCoordinates_),a=this.context_,o=this.tmpLocalTransform_,s=a.globalAlpha;this.imageOpacity_!=1&&(a.globalAlpha=s*this.imageOpacity_);let c=this.imageRotation_;this.transformRotation_===0&&(c-=this.viewRotation_),this.imageRotateWithView_&&(c+=this.viewRotation_);for(let e=0,t=i.length;e<t;e+=2){let t=i[e]-this.imageAnchorX_,n=i[e+1]-this.imageAnchorY_;if(c!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){let e=t+this.imageAnchorX_,r=n+this.imageAnchorY_;Ln(o,e,r,1,1,c,-e,-r),a.save(),a.transform.apply(a,o),a.translate(e,r),a.scale(this.imageScale_[0],this.imageScale_[1]),a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),a.restore()}else a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,t,n,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(a.globalAlpha=s)}drawText_(e,t,n,r){if(!this.textState_||this.text_=== ` ` )return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);let i=Wn(e,t,n,r,this.transform_,this.pixelCoordinates_),a=this.context_,o=this.textRotation_;for(this.transformRotation_===0&&(o-=this.viewRotation_),this.textRotateWithView_&&(o+=this.viewRotation_);t<n;t+=r){let e=i[t]+this.textOffsetX_,n=i[t+1]+this.textOffsetY_;o!==0||this.textScale_[0]!=1||this.textScale_[1]!=1?(a.save(),a.translate(e-this.textOffsetX_,n-this.textOffsetY_),a.rotate(o),a.translate(this.textOffsetX_,this.textOffsetY_),a.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&a.strokeText(this.text_,0,0),this.textFillState_&&a.fillText(this.text_,0,0),a.restore()):(this.textStrokeState_&&a.strokeText(this.text_,e,n),this.textFillState_&&a.fillText(this.text_,e,n))}}moveToLineTo_(e,t,n,r,i){let a=this.context_,o=Wn(e,t,n,r,this.transform_,this.pixelCoordinates_);a.moveTo(o[0],o[1]);let s=o.length;i&&(s-=2);for(let e=2;e<s;e+=2)a.lineTo(o[e],o[e+1]);return i&&a.closePath(),n}drawRings_(e,t,n,r){for(let i=0,a=n.length;i<a;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t}drawCircle(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Pe(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fi
` , ` ` ),e.push(t, ` ` ),e}function ys(e,t,n){return n%2==0&&(e+=t),e}var bs=class{constructor(e,t,n,r,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Fn(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=i?new ls:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,n,r){let i=e+t+n+r;if(this.labels_[i])return this.labels_[i];let a=r?this.strokeStates[r]:null,o=n?this.fillStates[n]:null,s=this.textStates[t],c=this.pixelRatio,l=[s.scale[0]*c,s.scale[1]*c],u=s.justify?ts[s.justify]:_s(Array.isArray(e)?e[0]:e,s.textAlign|| ` center ` ),d=r&&a.lineWidth?a.lineWidth:0,f=Array.isArray(e)?e:String(e).split( `
` ).reduce(vs,[]),{width:p,height:m,widths:h,heights:g,lineWidths:_}=xa(s,f),v=p+d,y=[],b=(v+2)*l[0],x=(m+d)*l[1],S={width:b<0?Math.floor(b):Math.ceil(b),height:x<0?Math.floor(x):Math.ceil(x),contextInstructions:y};(l[0]!=1||l[1]!=1)&&y.push( ` scale ` ,l),r&&(y.push( ` strokeStyle ` ,a.strokeStyle),y.push( ` lineWidth ` ,d),y.push( ` lineCap ` ,a.lineCap),y.push( ` lineJoin ` ,a.lineJoin),y.push( ` miterLimit ` ,a.miterLimit),y.push( ` setLineDash ` ,[a.lineDash]),y.push( ` lineDashOffset ` ,a.lineDashOffset)),n&&y.push( ` fillStyle ` ,o.fillStyle),y.push( ` textBaseline ` , ` middle ` ),y.push( ` textAlign ` , ` center ` );let C=.5-u,w=u*v+C*d,T=[],E=[],D=0,O=0,k=0,A=0,j;for(let e=0,t=f.length;e<t;e+=2){let t=f[e];if(t=== `
` ){O+=D,D=0,w=u*v+C*d,++A;continue}let i=f[e+1]||s.font;i!==j&&(r&&T.push( ` font ` ,i),n&&E.push( ` font ` ,i),j=i),D=Math.max(D,g[k]);let a=[t,w+C*h[k]+u*(h[k]-_[A]),.5*(d+D)+O];w+=h[k],r&&T.push( ` strokeText ` ,a),n&&E.push( ` fillText ` ,a),++k}return Array.prototype.push.apply(y,T),Array.prototype.push.apply(y,E),this.labels_[i]=S,S}replayTextBackground_(e,t,n,r,i,a,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),a&&(this.alignAndScaleFill_=a[2],e.fillStyle=a[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){o*=d[0],s*=d[1];let g=n-o,_=r-s,v=i+c>e?e-c:i,y=a+l>t?t-l:a,b=p[3]+v*d[0]+p[1],x=p[0]+y*d[1]+p[2],S=g-p[3],C=_-p[0];(m||u!==0)&&(ds[0]=S,ms[0]=S,ds[1]=C,fs[1]=C,fs[0]=S+b,ps[0]=fs[0],ps[1]=C+x,ms[1]=ps[1]);let w;return u===0?me(Math.min(S,S+b),Math.min(C,C+x),Math.max(S,S+b),Math.max(C,C+x),us):(w=Ln(Fn(),n,r,1,1,u,-n,-r),B(w,ds),B(w,fs),B(w,ps),B(w,ms),me(Math.min(ds[0],fs[0],ps[0],ms[0]),Math.min(ds[1],fs[1],ps[1],ms[1]),Math.max(ds[0],fs[0],ps[0],ms[0]),Math.max(ds[1],fs[1],ps[1],ms[1]),us)),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:v,drawImageH:y,originX:c,originY:l,declutterBox:{minX:us[0],minY:us[1],maxX:us[2],maxY:us[3],value:h},canvasTransform:w,scale:d}}replayImageOrLabel_(e,t,n,r,i,a,o){let s=!!(a||o),c=r.declutterBox,l=o?o[2]*r.scale[0]/2:0;return c.minX-l<=t[0]&&c.maxX+l>=0&&c.minY-l<=t[1]&&c.maxY+l>=0&&(s&&this.replayTextBackground_(e,ds,fs,ps,ms,a,o),Sa(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){let t=this.alignAndScaleFill_;if(t){let n=B(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(n[0]%r,n[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,n,r){let i=this.textStates[t],a=this.createLabel(e,t,r,n),o=this.strokeStates[n],s=this.pixelRatio,c=_s(Array.isArray(e)?e[0]:e,i.textAlign|| ` center ` ),l=ts[i.textBaseline|| ` middle ` ],u=o&&o.lineWidth?o.lineWidth:0;return{label:a,anchorX:c*(a.width/s-2*i.scale[0])+2*(.5-c)*u,anchorY:l*a.height/s+2*(.5-l)*u}}execute_(e,t,n,r,i,a,o,s){let c=this.zIndexContext_,l;this.pixelCoordinates_&&u(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||=[],l=Wn(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),In(this.renderedTransform_,n));let d=0,f=r.length,p=0,m,h,g,_,v,y,b,x,S,C,w,T,E,D=0,O=0,k=this.coordinateCache_,A=this.viewRotation_,j=Math.round(Math.atan2(-n[1],n[0])*0xe8d4a51000)/0xe8d4a51000,M={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:A},ee=this.instructions!=r||this.overlaps?0:200,N,P,te,ne;for(;d<f;){let n=r[d];switch(n[0]){case U.BEGIN_GEOMETRY:N=n[1],ne=n[3],N.getGeometry()?o!==void 0&&!Pe(o,ne.getExtent())?d=n[2]+1:++d:d=n[2],c&&(c.zIndex=n[4]);break;case U.BEGIN_PATH:D>ee&&(this.fill_(e),D=0),O>ee&&(e.stroke(),O=0),!D&&!O&&(e.beginPath(),v=NaN,y=NaN),++d;break;case U.CIRCLE:p=n[1];let r=l[p],u=l[p+1],f=l[p+2],re=l[p+3],F=f-r,ie=re-u,ae=Math.sqrt(F*F+ie*ie);e.moveTo(r+ae,u),e.arc(r,u,ae,0,2*Math.PI,!0),++d;break;case U.CLOSE_PATH:e.closePath(),++d;break;case U.CUSTOM:p=n[1],m=n[2];let oe=n[3],se=n[4],ce=n[5];M.geometry=oe,M.feature=N,d in k||(k[d]=[]);let le=k[d];ce?ce(l,p,m,2,le):(le[0]=l[p],le[1]=l[p+1],le.length=2),c&&(c.zIndex=n[6]),se(le,M),++d;break;case U.DRAW_IMAGE:p=n[1],m=n[2],S=n[3],h=n[4],g=n[5];let ue=n[6],de=n[7],fe=n[8],pe=n[9],me=n[10],he=n[11],ge=n[12],_e=n[13];_=n[14]|| ` declutter ` ;let ve=n[15];if(!S&&n.length>=20){C=n[19],w=n[20],T=n[21],E=n[22];let e=this.drawLabelWithPointPlacement_(C,w,T,E);S=e.label,n[3]=S;let t=n[23];h=(e.anchorX-t)*this.pixelRatio,n[4]=h;let r=n[24];g=(e.anchorY-r)*this.pixelRatio,n[5]=g,ue=S.height,n[6]=ue,_e=S.width,n[13]=_e}let ye;n.length>25&&(ye=n[25]);let be,xe,Se;
` );this.generateTileUrlFunction_?this.setTileUrlFunction(Nf(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,n){}},Bf=class extends zf{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Vf,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate===void 0?!0:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin===void 0?null:e.crossOrigin,this.tileClass=e.tileClass===void 0?Zl:e.tileClass,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!xn(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+= ` : disable - interpolation ` ),e}getTileGridForProjection(e){let t=this.getProjection();if(this.tileGrid&&(!t||xn(t,e)))return this.tileGrid;let n=k(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=yf(e)),this.tileGridForProjection[n]}createTile_(e,t,r,i,a,o){let s=[e,t,r],c=this.getTileCoordForTileUrlFunction(s,a),l=c?this.tileUrlFunction(c,i,a):void 0,u=new this.tileClass(s,l===void 0?Q.EMPTY:Q.IDLE,l===void 0? ` ` :l,this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,u.addEventListener(n.CHANGE,this.handleTileChange.bind(this)),u}getTile(e,t,n,r,i){let a=this.getProjection();if(!a||!i||xn(a,i))return this.getTileInternal(e,t,n,r,a||i);let o=[e,t,n],s=this.getKey(),c=new ef(a,this.getTileGridForProjection(a),i,this.getTileGridForProjection(i),o,this.getTileCoordForTileUrlFunction(o,i),this.getTilePixelRatio(r),this.getGutter(),(e,t,n,r)=>this.getTileInternal(e,t,n,r,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return c.key=s,c}getTileInternal(e,t,n,r,i){let a=this.getKey();return this.createTile_(e,t,n,r,i,a)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){let n=z(e);if(n){let e=k(n);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}};function Vf(e,t){e.getImage().src=t}var Hf=Bf,Uf=class extends Hf{constructor(e){e||={};let t=e.projection===void 0? ` EPSG : 3857 ` :e.projection,n=e.tileGrid===void 0?Sf({extent:Tf(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize}):e.tileGrid;super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:t,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=e.gutter===void 0?0:e.gutter}getGutter(){return this.gutter_}},Wf=class extends Uf{constructor(e){e||={};let t;t=e.attributions===void 0?[ ` & # 169 ; < a href = "https://www.openstreetmap.org/copyright" target = "_blank" > OpenStreetMap < /a> contributors.`]:e.attributions;let n=e.crossOrigin===void 0?`anonymous`:e.crossOrigin,r=e.url===void 0?`https:/ / tile . openstreetmap . org / { z } / { x } / { y } . png ` :e.url;super({attributions:t,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:n,interpolate:e.interpolate,maxZoom:e.maxZoom===void 0?19:e.maxZoom,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:r,wrapX:e.wrapX,zDirection:e.zDirection})}};export{Po as Circle,re as Feature,Do as Fill,Rd as GeoJSON,Wf as OSM,sd as OlMap,Er as Point,Oo as Stroke,Bo as Style,hf as TileLayer,ql as VectorLayer,Eo as VectorSource,Rl as View,pe as createEmpty,bn as fromLonLat};
2025-08-18 12:26:00 +02:00
//# sourceMappingURL=ol.min.js.map