1.5.0
This commit is contained in:
7 files changed
+11
-11
No files matched your search
@@ -1,11 +1,11 @@
|
||||
const C6=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))Z(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&Z(i)}).observe(document,{childList:!0,subtree:!0});function T(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?r.credentials="include":e.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function Z(e){if(e.ep)return;e.ep=!0;const r=T(e);fetch(e.href,r)}};C6();function L(){return function(){throw new Error("Unimplemented abstract method.")}()}var x6=0;function U(n){return n.ol_uid||(n.ol_uid=String(++x6))}var w6="6.15.1",O6=globalThis&&globalThis.__extends||function(){var n=function(t,T){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,e){Z.__proto__=e}||function(Z,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Z[r]=e[r])},n(t,T)};return function(t,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");n(t,T);function Z(){this.constructor=t}t.prototype=T===null?Object.create(T):(Z.prototype=T.prototype,new Z)}}(),R6=function(n){O6(t,n);function t(T){var Z=this,e="v"+w6.split("-")[0],r="Assertion failed. See https://openlayers.org/en/"+e+"/doc/errors/#"+T+" for details.";return Z=n.call(this,r)||this,Z.code=T,Z.name="AssertionError",Z.message=r,Z}return t}(Error);const K3=R6;var S6=function(){function n(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return n.prototype.preventDefault=function(){this.defaultPrevented=!0},n.prototype.stopPropagation=function(){this.propagationStopped=!0},n}();const V2=S6,z0={PROPERTYCHANGE:"propertychange"};var I6=function(){function n(){this.disposed=!1}return n.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},n.prototype.disposeInternal=function(){},n}();const _5=I6;function P6(n,t,T){for(var Z,e,r=T||x0,i=0,o=n.length,a=!1;i<o;)Z=i+(o-i>>1),e=+r(n[Z],t),e<0?i=Z+1:(o=Z,a=!e);return a?i:~i}function x0(n,t){return n>t?1:n<t?-1:0}function y5(n,t,T){var Z=n.length;if(n[0]<=t)return 0;if(t<=n[Z-1])return Z-1;var e=void 0;if(T>0){for(e=1;e<Z;++e)if(n[e]<t)return e-1}else if(T<0){for(e=1;e<Z;++e)if(n[e]<=t)return e}else for(e=1;e<Z;++e){if(n[e]==t)return e;if(n[e]<t)return typeof T=="function"?T(t,n[e-1],n[e])>0?e-1:e:n[e-1]-t<t-n[e]?e-1:e}return Z-1}function L6(n,t,T){for(;t<T;){var Z=n[t];n[t]=n[T],n[T]=Z,++t,--T}}function B2(n,t){for(var T=Array.isArray(t)?t:[t],Z=T.length,e=0;e<Z;e++)n[n.length]=T[e]}function R0(n,t){var T=n.length;if(T!==t.length)return!1;for(var Z=0;Z<T;Z++)if(n[Z]!==t[Z])return!1;return!0}function A6(n,t,T){var Z=t||x0;return n.every(function(e,r){if(r===0)return!0;var i=Z(n[r-1],e);return!(i>0||T&&i===0)})}function W0(){return!0}function g4(){return!1}function w0(){}function M6(n){var t=!1,T,Z,e;return function(){var r=Array.prototype.slice.call(arguments);return(!t||this!==e||!R0(r,Z))&&(t=!0,e=this,Z=r,T=n.apply(this,arguments)),T}}var e2=typeof Object.assign=="function"?Object.assign:function(n,t){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var T=Object(n),Z=1,e=arguments.length;Z<e;++Z){var r=arguments[Z];if(r!=null)for(var i in r)r.hasOwnProperty(i)&&(T[i]=r[i])}return T};function R1(n){for(var t in n)delete n[t]}var V3=typeof Object.values=="function"?Object.values:function(n){var t=[];for(var T in n)t.push(n[T]);return t};function K0(n){var t;for(t in n)return!1;return!t}var F6=globalThis&&globalThis.__extends||function(){var n=function(t,T){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,e){Z.__proto__=e}||function(Z,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Z[r]=e[r])},n(t,T)};return function(t,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");n(t,T);function Z(){this.constructor=t}t.prototype=T===null?Object.create(T):(Z.prototype=T.prototype,new Z)}}(),D6=function(n){F6(t,n);function t(T){var Z=n.call(this)||this;return Z.eventTarget_=T,Z.pendingRemovals_=null,Z.dispatching_=null,Z.listeners_=null,Z}return t.prototype.addEventListener=function(T,Z){if(!(!T||!Z)){var e=this.listeners_||(this.listeners_={}),r=e[T]||(e[T]=[]);r.indexOf(Z)===-1&&r.push(Z)}},t.prototype.dispatchEvent=function(T){var Z=typeof T=="string",e=Z?T:T.type,r=this.listeners_&&this.listeners_[e];if(!!r){var i=Z?new V2(T):T;i.target||(i.target=this.eventTarget_||this);var o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});e in o||(o[e]=0,a[e]=0),++o[e];for(var s,l=0,h=r.length;l<h;++l)if("handleEvent"in r[l]?s=r[l].handleEvent(i):s=r[l].call(this,i),s===!Line truncated
|
||||
const C6=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))Z(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&Z(i)}).observe(document,{childList:!0,subtree:!0});function T(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?r.credentials="include":e.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function Z(e){if(e.ep)return;e.ep=!0;const r=T(e);fetch(e.href,r)}};C6();function A(){return function(){throw new Error("Unimplemented abstract method.")}()}var x6=0;function U(n){return n.ol_uid||(n.ol_uid=String(++x6))}var w6="6.15.1",O6=globalThis&&globalThis.__extends||function(){var n=function(t,T){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,e){Z.__proto__=e}||function(Z,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Z[r]=e[r])},n(t,T)};return function(t,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");n(t,T);function Z(){this.constructor=t}t.prototype=T===null?Object.create(T):(Z.prototype=T.prototype,new Z)}}(),R6=function(n){O6(t,n);function t(T){var Z=this,e="v"+w6.split("-")[0],r="Assertion failed. See https://openlayers.org/en/"+e+"/doc/errors/#"+T+" for details.";return Z=n.call(this,r)||this,Z.code=T,Z.name="AssertionError",Z.message=r,Z}return t}(Error);const K3=R6;var S6=function(){function n(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return n.prototype.preventDefault=function(){this.defaultPrevented=!0},n.prototype.stopPropagation=function(){this.propagationStopped=!0},n}();const V2=S6,z0={PROPERTYCHANGE:"propertychange"};var I6=function(){function n(){this.disposed=!1}return n.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},n.prototype.disposeInternal=function(){},n}();const _5=I6;function P6(n,t,T){for(var Z,e,r=T||x0,i=0,o=n.length,a=!1;i<o;)Z=i+(o-i>>1),e=+r(n[Z],t),e<0?i=Z+1:(o=Z,a=!e);return a?i:~i}function x0(n,t){return n>t?1:n<t?-1:0}function y5(n,t,T){var Z=n.length;if(n[0]<=t)return 0;if(t<=n[Z-1])return Z-1;var e=void 0;if(T>0){for(e=1;e<Z;++e)if(n[e]<t)return e-1}else if(T<0){for(e=1;e<Z;++e)if(n[e]<=t)return e}else for(e=1;e<Z;++e){if(n[e]==t)return e;if(n[e]<t)return typeof T=="function"?T(t,n[e-1],n[e])>0?e-1:e:n[e-1]-t<t-n[e]?e-1:e}return Z-1}function L6(n,t,T){for(;t<T;){var Z=n[t];n[t]=n[T],n[T]=Z,++t,--T}}function B2(n,t){for(var T=Array.isArray(t)?t:[t],Z=T.length,e=0;e<Z;e++)n[n.length]=T[e]}function R0(n,t){var T=n.length;if(T!==t.length)return!1;for(var Z=0;Z<T;Z++)if(n[Z]!==t[Z])return!1;return!0}function A6(n,t,T){var Z=t||x0;return n.every(function(e,r){if(r===0)return!0;var i=Z(n[r-1],e);return!(i>0||T&&i===0)})}function W0(){return!0}function g4(){return!1}function w0(){}function M6(n){var t=!1,T,Z,e;return function(){var r=Array.prototype.slice.call(arguments);return(!t||this!==e||!R0(r,Z))&&(t=!0,e=this,Z=r,T=n.apply(this,arguments)),T}}var e2=typeof Object.assign=="function"?Object.assign:function(n,t){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var T=Object(n),Z=1,e=arguments.length;Z<e;++Z){var r=arguments[Z];if(r!=null)for(var i in r)r.hasOwnProperty(i)&&(T[i]=r[i])}return T};function R1(n){for(var t in n)delete n[t]}var V3=typeof Object.values=="function"?Object.values:function(n){var t=[];for(var T in n)t.push(n[T]);return t};function K0(n){var t;for(t in n)return!1;return!t}var F6=globalThis&&globalThis.__extends||function(){var n=function(t,T){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,e){Z.__proto__=e}||function(Z,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Z[r]=e[r])},n(t,T)};return function(t,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");n(t,T);function Z(){this.constructor=t}t.prototype=T===null?Object.create(T):(Z.prototype=T.prototype,new Z)}}(),D6=function(n){F6(t,n);function t(T){var Z=n.call(this)||this;return Z.eventTarget_=T,Z.pendingRemovals_=null,Z.dispatching_=null,Z.listeners_=null,Z}return t.prototype.addEventListener=function(T,Z){if(!(!T||!Z)){var e=this.listeners_||(this.listeners_={}),r=e[T]||(e[T]=[]);r.indexOf(Z)===-1&&r.push(Z)}},t.prototype.dispatchEvent=function(T){var Z=typeof T=="string",e=Z?T:T.type,r=this.listeners_&&this.listeners_[e];if(!!r){var i=Z?new V2(T):T;i.target||(i.target=this.eventTarget_||this);var o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});e in o||(o[e]=0,a[e]=0),++o[e];for(var s,l=0,h=r.length;l<h;++l)if("handleEvent"in r[l]?s=r[l].handleEvent(i):s=r[l].call(this,i),s===!Line truncated
|
||||
`))?(R1(u5),b0=null,l5=void 0,X2.set(c,n)):(X2.set(c,X2.get(c)+1,!0),s=!1))}s&&(clearInterval(r),r=void 0)}return function(s){var l=F7(s);if(!!l)for(var h=l.families,u=0,c=h.length;u<c;++u){var f=h[u],p=l.style+`
|
||||
`+l.weight+`
|
||||
`+f;X2.get(p)===void 0&&(X2.set(p,n,!0),o(l.style,l.weight,f)||(X2.set(p,0,!0),r===void 0&&(r=setInterval(a,32))))}}}(),R8=function(){var n;return function(t){var T=u5[t];if(T==null){if(y4){var Z=F7(t),e=N7(t,"\u017Dg"),r=isNaN(Number(Z.lineHeight))?1.2:Number(Z.lineHeight);T=r*(e.actualBoundingBoxAscent+e.actualBoundingBoxDescent)}else n||(n=document.createElement("div"),n.innerHTML="M",n.style.minHeight="0",n.style.maxHeight="none",n.style.height="auto",n.style.padding="0",n.style.border="none",n.style.position="absolute",n.style.display="block",n.style.left="-99999px"),n.style.font=t,document.body.appendChild(n),T=n.offsetHeight,document.body.removeChild(n);u5[t]=T}return T}}();function N7(n,t){return b0||(b0=g2(1,1)),n!=l5&&(b0.font=n,l5=b0.font),b0.measureText(t)}function f4(n,t){return N7(n,t).width}function m3(n,t,T){if(t in T)return T[t];var Z=t.split(`
|
||||
`).reduce(function(e,r){return Math.max(e,f4(n,r))},0);return T[t]=Z,Z}function S8(n,t){for(var T=[],Z=[],e=[],r=0,i=0,o=0,a=0,s=0,l=t.length;s<=l;s+=2){var h=t[s];if(h===`
|
||||
`||s===l){r=Math.max(r,i),e.push(i),i=0,o+=a;continue}var u=t[s+1]||n.font,c=f4(u,h);T.push(c),i+=c;var f=R8(u);Z.push(f),a=Math.max(a,f)}return{width:r,height:o,widths:T,heights:Z,lineWidths:e}}function I8(n,t,T,Z,e,r,i,o,a,s,l){n.save(),T!==1&&(n.globalAlpha*=T),t&&n.setTransform.apply(n,t),Z.contextInstructions?(n.translate(a,s),n.scale(l[0],l[1]),P8(Z,n)):l[0]<0||l[1]<0?(n.translate(a,s),n.scale(l[0],l[1]),n.drawImage(Z,e,r,i,o,0,0,i,o)):n.drawImage(Z,e,r,i,o,a,s,i*l[0],o*l[1]),n.restore()}function P8(n,t){for(var T=n.contextInstructions,Z=0,e=T.length;Z<e;Z+=2)Array.isArray(T[Z+1])?t[T[Z]].apply(t,T[Z+1]):t[T[Z]]=T[Z+1]}var L8=globalThis&&globalThis.__extends||function(){var n=function(t,T){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,e){Z.__proto__=e}||function(Z,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Z[r]=e[r])},n(t,T)};return function(t,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");n(t,T);function Z(){this.constructor=t}t.prototype=T===null?Object.create(T):(Z.prototype=T.prototype,new Z)}}(),A8=function(n){L8(t,n);function t(T){var Z=this,e=T.rotateWithView!==void 0?T.rotateWithView:!1;return Z=n.call(this,{opacity:1,rotateWithView:e,rotation:T.rotation!==void 0?T.rotation:0,scale:T.scale!==void 0?T.scale:1,displacement:T.displacement!==void 0?T.displacement:[0,0],declutterMode:T.declutterMode})||this,Z.canvas_=void 0,Z.hitDetectionCanvas_=null,Z.fill_=T.fill!==void 0?T.fill:null,Z.origin_=[0,0],Z.points_=T.points,Z.radius_=T.radius!==void 0?T.radius:T.radius1,Z.radius2_=T.radius2,Z.angle_=T.angle!==void 0?T.angle:0,Z.stroke_=T.stroke!==void 0?T.stroke:null,Z.size_=null,Z.renderOptions_=null,Z.render(),Z}return t.prototype.clone=function(){var T=this.getScale(),Z=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(T)?T.slice():T,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return Z.setOpacity(this.getOpacity()),Z},t.prototype.getAnchor=function(){var T=this.size_;if(!T)return null;var Z=this.getDisplacement();return[T[0]/2-Z[0],T[1]/2+Z[1]]},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(T){this.fill_=T,this.render()},t.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},t.prototype.getImage=function(T){var Z=this.canvas_[T];if(!Z){var e=this.renderOptions_,r=g2(e.size*T,e.size*T);this.draw_(e,r,T),Z=r.canvas,this.canvas_[T]=Z}return Z},t.prototype.getPixelRatio=function(T){return T},t.prototype.getImageSize=function(){return this.size_},t.prototype.getImageState=function(){return $.LOADED},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(T){this.stroke_=T,this.render()},t.prototype.listenImageChange=function(T){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(T){},t.prototype.calculateLineJoinSize_=function(T,Z,e){if(Z===0||this.points_===1/0||T!=="bevel"&&T!=="miter")return Z;var r=this.radius_,i=this.radius2_===void 0?r:this.radius2_;if(r<i){var o=r;r=i,i=o}var a=this.radius2_===void 0?this.points_:this.points_*2,s=2*Math.PI/a,l=i*Math.sin(s),h=Math.sqrt(i*i-l*l),u=r-h,c=Math.sqrt(l*l+u*u),f=c/l;if(T==="miter"&&f<=e)return f*Z;var p=Z/2/f,d=Z/2*(u/c),_=Math.sqrt((r+p)*(r+p)+d*d),v=_-r;if(this.radius2_===void 0||T==="bevel")return v*2;var g=r*Math.sin(s),y=Math.sqrt(r*r-g*g),E=i-y,x=Math.sqrt(g*g+E*E),m=x/g;if(m<=e){var C=m*Z/2-i-r;return 2*Math.max(v,C)}return v*2},t.prototype.createRenderOptions=function(){var T=V0,Z=0,e=null,r=0,i,o=0;this.stroke_&&(i=this.stroke_.getColor(),i===null&&(i=x1),i=M2(i),o=this.stroke_.getWidth(),o===void 0&&(o=O1),e=this.stroke_.getLineDash(),r=this.stroke_.getLineDashOffset(),T=this.stroke_.getLineJoin(),T===void 0&&(T=V0),Z=this.stroke_.getMiterLimit(),Z===void 0&&(Z=C1));var a=this.calculateLineJoinSize_(T,o,Z),s=Math.max(this.radius_,this.radius2_||0),l=Math.ceil(2*s+a);return{strokeStyle:i,strokeWidth:o,size:l,lineDash:e,lineDashOffset:r,lineJoin:T,miterLimit:Z}},t.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var T=this.renderOptions_.size;this.canvas_={},this.size_=[T,T]},t.prototype.draw_=function(T,Z,e){if(Z.scale(e,e),Z.translate(T.size/2,T.size/2),this.createPath_(Z),this.fill_){var r=this.fill_.getColor();r===null
Line truncated
|
||||
`||s===l){r=Math.max(r,i),e.push(i),i=0,o+=a;continue}var u=t[s+1]||n.font,c=f4(u,h);T.push(c),i+=c;var f=R8(u);Z.push(f),a=Math.max(a,f)}return{width:r,height:o,widths:T,heights:Z,lineWidths:e}}function I8(n,t,T,Z,e,r,i,o,a,s,l){n.save(),T!==1&&(n.globalAlpha*=T),t&&n.setTransform.apply(n,t),Z.contextInstructions?(n.translate(a,s),n.scale(l[0],l[1]),P8(Z,n)):l[0]<0||l[1]<0?(n.translate(a,s),n.scale(l[0],l[1]),n.drawImage(Z,e,r,i,o,0,0,i,o)):n.drawImage(Z,e,r,i,o,a,s,i*l[0],o*l[1]),n.restore()}function P8(n,t){for(var T=n.contextInstructions,Z=0,e=T.length;Z<e;Z+=2)Array.isArray(T[Z+1])?t[T[Z]].apply(t,T[Z+1]):t[T[Z]]=T[Z+1]}var L8=globalThis&&globalThis.__extends||function(){var n=function(t,T){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,e){Z.__proto__=e}||function(Z,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Z[r]=e[r])},n(t,T)};return function(t,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");n(t,T);function Z(){this.constructor=t}t.prototype=T===null?Object.create(T):(Z.prototype=T.prototype,new Z)}}(),A8=function(n){L8(t,n);function t(T){var Z=this,e=T.rotateWithView!==void 0?T.rotateWithView:!1;return Z=n.call(this,{opacity:1,rotateWithView:e,rotation:T.rotation!==void 0?T.rotation:0,scale:T.scale!==void 0?T.scale:1,displacement:T.displacement!==void 0?T.displacement:[0,0],declutterMode:T.declutterMode})||this,Z.canvas_=void 0,Z.hitDetectionCanvas_=null,Z.fill_=T.fill!==void 0?T.fill:null,Z.origin_=[0,0],Z.points_=T.points,Z.radius_=T.radius!==void 0?T.radius:T.radius1,Z.radius2_=T.radius2,Z.angle_=T.angle!==void 0?T.angle:0,Z.stroke_=T.stroke!==void 0?T.stroke:null,Z.size_=null,Z.renderOptions_=null,Z.render(),Z}return t.prototype.clone=function(){var T=this.getScale(),Z=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(T)?T.slice():T,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return Z.setOpacity(this.getOpacity()),Z},t.prototype.getAnchor=function(){var T=this.size_;if(!T)return null;var Z=this.getDisplacement();return[T[0]/2-Z[0],T[1]/2+Z[1]]},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(T){this.fill_=T,this.render()},t.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},t.prototype.getImage=function(T){var Z=this.canvas_[T];if(!Z){var e=this.renderOptions_,r=g2(e.size*T,e.size*T);this.draw_(e,r,T),Z=r.canvas,this.canvas_[T]=Z}return Z},t.prototype.getPixelRatio=function(T){return T},t.prototype.getImageSize=function(){return this.size_},t.prototype.getImageState=function(){return $.LOADED},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(T){this.stroke_=T,this.render()},t.prototype.listenImageChange=function(T){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(T){},t.prototype.calculateLineJoinSize_=function(T,Z,e){if(Z===0||this.points_===1/0||T!=="bevel"&&T!=="miter")return Z;var r=this.radius_,i=this.radius2_===void 0?r:this.radius2_;if(r<i){var o=r;r=i,i=o}var a=this.radius2_===void 0?this.points_:this.points_*2,s=2*Math.PI/a,l=i*Math.sin(s),h=Math.sqrt(i*i-l*l),u=r-h,c=Math.sqrt(l*l+u*u),f=c/l;if(T==="miter"&&f<=e)return f*Z;var p=Z/2/f,d=Z/2*(u/c),_=Math.sqrt((r+p)*(r+p)+d*d),v=_-r;if(this.radius2_===void 0||T==="bevel")return v*2;var g=r*Math.sin(s),y=Math.sqrt(r*r-g*g),E=i-y,x=Math.sqrt(g*g+E*E),m=x/g;if(m<=e){var C=m*Z/2-i-r;return 2*Math.max(v,C)}return v*2},t.prototype.createRenderOptions=function(){var T=V0,Z=0,e=null,r=0,i,o=0;this.stroke_&&(i=this.stroke_.getColor(),i===null&&(i=x1),i=M2(i),o=this.stroke_.getWidth(),o===void 0&&(o=O1),e=this.stroke_.getLineDash(),r=this.stroke_.getLineDashOffset(),T=this.stroke_.getLineJoin(),T===void 0&&(T=V0),Z=this.stroke_.getMiterLimit(),Z===void 0&&(Z=C1));var a=this.calculateLineJoinSize_(T,o,Z),s=Math.max(this.radius_,this.radius2_||0),l=Math.ceil(2*s+a);return{strokeStyle:i,strokeWidth:o,size:l,lineDash:e,lineDashOffset:r,lineJoin:T,miterLimit:Z}},t.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var T=this.renderOptions_.size;this.canvas_={},this.size_=[T,T]},t.prototype.draw_=function(T,Z,e){if(Z.scale(e,e),Z.translate(T.size/2,T.size/2),this.createPath_(Z),this.fill_){var r=this.fill_.getColor();r===null
Line truncated
|
||||
`,""),n.push(t,""),n}var RT=function(){function n(t,T,Z,e){this.overlaps=Z,this.pixelRatio=T,this.resolution=t,this.alignFill_,this.instructions=e.instructions,this.coordinates=e.coordinates,this.coordinateCache_={},this.renderedTransform_=F2(),this.hitDetectionInstructions=e.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=e.fillStates||{},this.strokeStates=e.strokeStates||{},this.textStates=e.textStates||{},this.widths_={},this.labels_={}}return n.prototype.createLabel=function(t,T,Z,e){var r=t+T+Z+e;if(this.labels_[r])return this.labels_[r];var i=e?this.strokeStates[e]:null,o=Z?this.fillStates[Z]:null,a=this.textStates[T],s=this.pixelRatio,l=[a.scale[0]*s,a.scale[1]*s],h=Array.isArray(t),u=a.justify?d1[a.justify]:P3(Array.isArray(t)?t[0]:t,a.textAlign||w1),c=e&&i.lineWidth?i.lineWidth:0,f=h?t:t.split(`
|
||||
`).reduce(OT,[]),p=S8(a,f),d=p.width,_=p.height,v=p.widths,g=p.heights,y=p.lineWidths,E=d+c,x=[],m=(E+2)*l[0],C=(_+c)*l[1],O={width:m<0?Math.floor(m):Math.ceil(m),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:x};if((l[0]!=1||l[1]!=1)&&x.push("scale",l),e){x.push("strokeStyle",i.strokeStyle),x.push("lineWidth",c),x.push("lineCap",i.lineCap),x.push("lineJoin",i.lineJoin),x.push("miterLimit",i.miterLimit);var S=y4?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;S.prototype.setLineDash&&(x.push("setLineDash",[i.lineDash]),x.push("lineDashOffset",i.lineDashOffset))}Z&&x.push("fillStyle",o.fillStyle),x.push("textBaseline","middle"),x.push("textAlign","center");for(var A=.5-u,N=u*E+A*c,R=[],b=[],j=0,M=0,I=0,P=0,Y,W=0,K=f.length;W<K;W+=2){var w=f[W];if(w===`
|
||||
`){M+=j,j=0,N=u*E+A*c,++P;continue}var Q=f[W+1]||a.font;Q!==Y&&(e&&R.push("font",Q),Z&&b.push("font",Q),Y=Q),j=Math.max(j,g[I]);var V=[w,N+A*v[I]+u*(v[I]-y[P]),.5*(c+j)+M];N+=v[I],e&&R.push("strokeText",V),Z&&b.push("fillText",V),++I}return Array.prototype.push.apply(x,R),Array.prototype.push.apply(x,b),this.labels_[r]=O,O},n.prototype.replayTextBackground_=function(t,T,Z,e,r,i,o){t.beginPath(),t.moveTo.apply(t,T),t.lineTo.apply(t,Z),t.lineTo.apply(t,e),t.lineTo.apply(t,r),t.lineTo.apply(t,T),i&&(this.alignFill_=i[2],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())},n.prototype.calculateImageOrLabelDimensions_=function(t,T,Z,e,r,i,o,a,s,l,h,u,c,f,p,d){o*=u[0],a*=u[1];var _=Z-o,v=e-a,g=r+s>t?t-s:r,y=i+l>T?T-l:i,E=f[3]+g*u[0]+f[1],x=f[0]+y*u[1]+f[2],m=_-f[3],C=v-f[0];(p||h!==0)&&(J2[0]=m,Q2[0]=m,J2[1]=C,G2[1]=C,G2[0]=m+E,b2[0]=G2[0],b2[1]=C+x,Q2[1]=b2[1]);var O;return h!==0?(O=K2(F2(),Z,e,1,1,h,-Z,-e),t2(O,J2),t2(O,G2),t2(O,b2),t2(O,Q2),D2(Math.min(J2[0],G2[0],b2[0],Q2[0]),Math.min(J2[1],G2[1],b2[1],Q2[1]),Math.max(J2[0],G2[0],b2[0],Q2[0]),Math.max(J2[1],G2[1],b2[1],Q2[1]),N0)):D2(Math.min(m,m+E),Math.min(C,C+x),Math.max(m,m+E),Math.max(C,C+x),N0),c&&(_=Math.round(_),v=Math.round(v)),{drawImageX:_,drawImageY:v,drawImageW:g,drawImageH:y,originX:s,originY:l,declutterBox:{minX:N0[0],minY:N0[1],maxX:N0[2],maxY:N0[3],value:d},canvasTransform:O,scale:u}},n.prototype.replayImageOrLabel_=function(t,T,Z,e,r,i,o){var a=!!(i||o),s=e.declutterBox,l=t.canvas,h=o?o[2]*e.scale[0]/2:0,u=s.minX-h<=l.width/T&&s.maxX+h>=0&&s.minY-h<=l.height/T&&s.maxY+h>=0;return u&&(a&&this.replayTextBackground_(t,J2,G2,b2,Q2,i,o),I8(t,e.canvasTransform,r,Z,e.originX,e.originY,e.drawImageW,e.drawImageH,e.drawImageX,e.drawImageY,e.scale)),!0},n.prototype.fill_=function(t){if(this.alignFill_){var T=t2(this.renderedTransform_,[0,0]),Z=512*this.pixelRatio;t.save(),t.translate(T[0]%Z,T[1]%Z),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},n.prototype.setStrokeStyle_=function(t,T){t.strokeStyle=T[1],t.lineWidth=T[2],t.lineCap=T[3],t.lineJoin=T[4],t.miterLimit=T[5],t.setLineDash&&(t.lineDashOffset=T[7],t.setLineDash(T[6]))},n.prototype.drawLabelWithPointPlacement_=function(t,T,Z,e){var r=this.textStates[T],i=this.createLabel(t,T,e,Z),o=this.strokeStates[Z],a=this.pixelRatio,s=P3(Array.isArray(t)?t[0]:t,r.textAlign||w1),l=d1[r.textBaseline||c4],h=o&&o.lineWidth?o.lineWidth:0,u=i.width/a-2*r.scale[0],c=s*u+2*(.5-s)*h,f=l*i.height/a+2*(.5-l)*h;return{label:i,anchorX:c,anchorY:f}},n.prototype.execute_=function(t,T,Z,e,r,i,o,a){var s;this.pixelCoordinates_&&R0(Z,this.renderedTransform_)?s=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),s=C0(this.coordinates,0,this.coordinates.length,2,Z,this.pixelCoordinates_),$6(this.renderedTransform_,Z));for(var l=0,h=e.length,u=0,c,f,p,d,_,v,g,y,E,x,m,C,O=0,S=0,A=null,N=null,R=this.coordinateCache_,b=this.viewRotation_,j=Math.round(Math.atan2(-Z[1],Z[0])*1e12)/1e12,M={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:b},I=this.instructions!=e||this.overlaps?0:200,P,Y,W,K;l<h;){var w=e[l],Q=w[0];switch(Q){case F.BEGIN_GEOMETRY:P=w[1],K=w[3],P.getGeometry()?o!==void 0&&!d2(o,K.getExtent())?l=w[2]+1:++l:l=w[2];break;case F.BEGIN_PATH:O>I&&(this.fill_(t),O=0),S>I&&(t.stroke(),S=0),!O&&!S&&(t.beginPath(),d=NaN,_=NaN),++l;break;case F.CIRCLE:u=w[1];var V=s[u],k=s[u+1],i2=s[u+2],c2=s[u+3],o2=i2-V,L0=c2-k,v2=Math.sqrt(o2*o2+L0*L0);t.moveTo(V+v2,k),t.arc(V,k,v2,0,2*Math.PI,!0),++l;break;case F.CLOSE_PATH:t.closePath(),++l;break;case F.CUSTOM:u=w[1],c=w[2];var J0=w[3],P2=w[4],Q0=w.length==6?w[5]:void 0;M.geometry=J0,M.feature=P,l in R||(R[l]=[]);var l0=R[l];Q0?Q0(s,u,c,2,l0):(l0[0]=s[u],l0[1]=s[u+1],l0.length=2),P2(l0,M),++l;break;case F.DRAW_IMAGE:u=w[1],c=w[2],y=w[3],f=w[4],p=w[5];var A0=w[6],D1=w[7],N1=w[8],T1=w[9],Z1=w[10],$2=w[11],L4=w[12],u0=w[13],G1=w[14],H2=w[15];if(!y&&w.length>=20){E=w[19],x=w[20],m=w[21],C=w[22];var M0=this.drawLabelWithPointPlacement_(E,x,m,C);y=M0.label,w[3]=y;var A4=w[23];f=(M0.anchorX-A4)*this.pixelRatio,w[4]=f;var b1=w[24];p=(M0.anchorY-b1)*this.pixelRatio,w[5]=p,A0=y.height,w[6]=A0,u0=y.width,w[13]=u0}var t1=void 0;w.length>25&&(t1=w[25]);var N2=void 0,L2=void 0,h0=void 0;w.length>17?(N2=w[16],L2=w[17],h0=w[18]):(N2=y0,L2=!1,h0=!1),Z1&&j?$2+=b:!Z1&&!j&&($2-=b);for(var e1=0;u<c;u+=2)if(!(t1&&t1[e1++]<u0/this.pixelRatio)){var h2=this.calculateImageOrLabelDimensions_(y.width,y.height,s[u],s[u+1],u0,A0,f,p,N1,T1,$2,L4,r,N2,L2||h0,P),j1=[t,T,y,h2,D1,L2?A:null,h0?N:null];if(a){if(G1==="none")continue;if(G1==="obstacle"){a.insert(h2.declutterBox);continue}else{var a2=void 0,M4=void 0;if(H2){var k1=c-u;if(!H2[k1]){H2[k1]=j1;continue}if(a2=H2[k1],delete H2[k1],M4=I3(a2),a.collides(M4))continue}if(a.collides(h2.declutterBox))continue;a2&&(a.insert(M4),this.replayImageOrLabel_.apply(this,a2)),a.insert(h2.declutterBox)}}this.replayImageOrLabel_.apply(this,j1)}++l;break;case F.DRAW_CHARS:var z5=w[1],K5=w[2],F4=w[3],g6=w[4];C=w[5
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(xn(T,this.tileGrid),Z):this.setKey(Z)},t.prototype.tileUrlFunction=function(T,Z,e){},t.prototype.useTile=function(T,Z,e){var r=P4(T,Z,e);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(En);const In=Sn;var Pn=globalThis&&globalThis.__extends||function(){var n=function(t,T){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,e){Z.__proto__=e}||function(Z,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Z[r]=e[r])},n(t,T)};return function(t,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");n(t,T);function Z(){this.constructor=t}t.prototype=T===null?Object.create(T):(Z.prototype=T.prototype,new Z)}}(),Ln=function(n){Pn(t,n);function t(T){var Z=this,e=T.imageSmoothing!==void 0?T.imageSmoothing:!0;return T.interpolate!==void 0&&(e=T.interpolate),Z=n.call(this,{attributions:T.attributions,cacheSize:T.cacheSize,opaque:T.opaque,projection:T.projection,state:T.state,tileGrid:T.tileGrid,tileLoadFunction:T.tileLoadFunction?T.tileLoadFunction:An,tilePixelRatio:T.tilePixelRatio,tileUrlFunction:T.tileUrlFunction,url:T.url,urls:T.urls,wrapX:T.wrapX,transition:T.transition,interpolate:e,key:T.key,attributionsCollapsible:T.attributionsCollapsible,zDirection:T.zDirection})||this,Z.crossOrigin=T.crossOrigin!==void 0?T.crossOrigin:null,Z.tileClass=T.tileClass!==void 0?T.tileClass:q7,Z.tileCacheForProjection={},Z.tileGridForProjection={},Z.reprojectionErrorThreshold_=T.reprojectionErrorThreshold,Z.renderReprojectionEdges_=!1,Z}return t.prototype.canExpireCache=function(){if(!j2)return n.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var T in this.tileCacheForProjection)if(this.tileCacheForProjection[T].canExpireCache())return!0;return!1},t.prototype.expireCache=function(T,Z){if(!j2){n.prototype.expireCache.call(this,T,Z);return}var e=this.getTileCacheForProjection(T);this.tileCache.expireCache(this.tileCache==e?Z:{});for(var r in this.tileCacheForProjection){var i=this.tileCacheForProjection[r];i.expireCache(i==e?Z:{})}},t.prototype.getGutterForProjection=function(T){return j2&&this.getProjection()&&T&&!d0(this.getProjection(),T)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){var T=n.prototype.getKey.call(this);return this.getInterpolate()||(T+=":disable-interpolation"),T},t.prototype.getOpaque=function(T){return j2&&this.getProjection()&&T&&!d0(this.getProjection(),T)?!1:n.prototype.getOpaque.call(this,T)},t.prototype.getTileGridForProjection=function(T){if(!j2)return n.prototype.getTileGridForProjection.call(this,T);var Z=this.getProjection();if(this.tileGrid&&(!Z||d0(Z,T)))return this.tileGrid;var e=U(T);return e in this.tileGridForProjection||(this.tileGridForProjection[e]=p6(T)),this.tileGridForProjection[e]},t.prototype.getTileCacheForProjection=function(T){if(!j2)return n.prototype.getTileCacheForProjection.call(this,T);var Z=this.getProjection();if(!Z||d0(Z,T))return this.tileCache;var e=U(T);return e in this.tileCacheForProjection||(this.tileCacheForProjection[e]=new a6(this.tileCache.highWaterMark)),this.tileCacheForProjection[e]},t.prototype.createTile_=function(T,Z,e,r,i,o){var a=[T,Z,e],s=this.getTileCoordForTileUrlFunction(a,i),l=s?this.tileUrlFunction(s,r,i):void 0,h=new this.tileClass(a,l!==void 0?D.IDLE:D.EMPTY,l!==void 0?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=o,h.addEventListener(G.CHANGE,this.handleTileChange.bind(this)),h},t.prototype.getTile=function(T,Z,e,r,i){var o=this.getProjection();if(!j2||!o||!i||d0(o,i))return this.getTileInternal(T,Z,e,r,o||i);var a=this.getTileCacheForProjection(i),s=[T,Z,e],l=void 0,h=o6(s);a.containsKey(h)&&(l=a.get(h));var u=this.getKey();if(l&&l.key==u)return l;var c=this.getTileGridForProjection(o),f=this.getTileGridForProjection(i),p=this.getTileCoordForTileUrlFunction(s,i),d=new c6(o,c,i,f,s,p,this.getTilePixelRatio(r),this.getGutter(),function(_,v,g,y){return this.getTileInternal(_,v,g,y,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return d.key=u,l?(d.interimTile=l,d.refreshInterimChain(),a.replace(h,d)):a.set(h,d),d},t.prototype.getTileInternal=function(T,Z,e,r,i){var o=null,a=P4(T,Z,e),s=this.getKey();if(!this.tileCache.containsKey(a))o=this.createTile_(T,Z,e,r,i,s),this.tileCache.set(a,o);else if(o=this.tileCache.get(a),o.key!=s){var l=o;o=this.createTile_(T,Z,e,r,i,s),l.getState()==D.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}return o},t.prototype.setRenderReprojectionEdges=function(T){if(!(!j2||this.renderReprojectionEdges_==T)){this.renderReprojectionEdges_=T;for(var Z in this.tileCacheForProjection)this.tileCacheForProjection[Z].clear();this.changed()}},t.prototype.setTileGridForProjection=function(T,Z){if(j2){var e=Z2(T);if(e){var r=U(e);r in this.tileGridForProjec
Line truncated
|
||||
//# sourceMappingURL=index.148d1b99.js.map
|
||||
`).reduce(OT,[]),p=S8(a,f),d=p.width,_=p.height,v=p.widths,g=p.heights,y=p.lineWidths,E=d+c,x=[],m=(E+2)*l[0],C=(_+c)*l[1],O={width:m<0?Math.floor(m):Math.ceil(m),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:x};if((l[0]!=1||l[1]!=1)&&x.push("scale",l),e){x.push("strokeStyle",i.strokeStyle),x.push("lineWidth",c),x.push("lineCap",i.lineCap),x.push("lineJoin",i.lineJoin),x.push("miterLimit",i.miterLimit);var R=y4?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;R.prototype.setLineDash&&(x.push("setLineDash",[i.lineDash]),x.push("lineDashOffset",i.lineDashOffset))}Z&&x.push("fillStyle",o.fillStyle),x.push("textBaseline","middle"),x.push("textAlign","center");for(var L=.5-u,N=u*E+L*c,S=[],b=[],j=0,M=0,I=0,P=0,Y,W=0,K=f.length;W<K;W+=2){var w=f[W];if(w===`
|
||||
`){M+=j,j=0,N=u*E+L*c,++P;continue}var Q=f[W+1]||a.font;Q!==Y&&(e&&S.push("font",Q),Z&&b.push("font",Q),Y=Q),j=Math.max(j,g[I]);var V=[w,N+L*v[I]+u*(v[I]-y[P]),.5*(c+j)+M];N+=v[I],e&&S.push("strokeText",V),Z&&b.push("fillText",V),++I}return Array.prototype.push.apply(x,S),Array.prototype.push.apply(x,b),this.labels_[r]=O,O},n.prototype.replayTextBackground_=function(t,T,Z,e,r,i,o){t.beginPath(),t.moveTo.apply(t,T),t.lineTo.apply(t,Z),t.lineTo.apply(t,e),t.lineTo.apply(t,r),t.lineTo.apply(t,T),i&&(this.alignFill_=i[2],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())},n.prototype.calculateImageOrLabelDimensions_=function(t,T,Z,e,r,i,o,a,s,l,h,u,c,f,p,d){o*=u[0],a*=u[1];var _=Z-o,v=e-a,g=r+s>t?t-s:r,y=i+l>T?T-l:i,E=f[3]+g*u[0]+f[1],x=f[0]+y*u[1]+f[2],m=_-f[3],C=v-f[0];(p||h!==0)&&(J2[0]=m,Q2[0]=m,J2[1]=C,G2[1]=C,G2[0]=m+E,b2[0]=G2[0],b2[1]=C+x,Q2[1]=b2[1]);var O;return h!==0?(O=K2(F2(),Z,e,1,1,h,-Z,-e),t2(O,J2),t2(O,G2),t2(O,b2),t2(O,Q2),D2(Math.min(J2[0],G2[0],b2[0],Q2[0]),Math.min(J2[1],G2[1],b2[1],Q2[1]),Math.max(J2[0],G2[0],b2[0],Q2[0]),Math.max(J2[1],G2[1],b2[1],Q2[1]),N0)):D2(Math.min(m,m+E),Math.min(C,C+x),Math.max(m,m+E),Math.max(C,C+x),N0),c&&(_=Math.round(_),v=Math.round(v)),{drawImageX:_,drawImageY:v,drawImageW:g,drawImageH:y,originX:s,originY:l,declutterBox:{minX:N0[0],minY:N0[1],maxX:N0[2],maxY:N0[3],value:d},canvasTransform:O,scale:u}},n.prototype.replayImageOrLabel_=function(t,T,Z,e,r,i,o){var a=!!(i||o),s=e.declutterBox,l=t.canvas,h=o?o[2]*e.scale[0]/2:0,u=s.minX-h<=l.width/T&&s.maxX+h>=0&&s.minY-h<=l.height/T&&s.maxY+h>=0;return u&&(a&&this.replayTextBackground_(t,J2,G2,b2,Q2,i,o),I8(t,e.canvasTransform,r,Z,e.originX,e.originY,e.drawImageW,e.drawImageH,e.drawImageX,e.drawImageY,e.scale)),!0},n.prototype.fill_=function(t){if(this.alignFill_){var T=t2(this.renderedTransform_,[0,0]),Z=512*this.pixelRatio;t.save(),t.translate(T[0]%Z,T[1]%Z),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},n.prototype.setStrokeStyle_=function(t,T){t.strokeStyle=T[1],t.lineWidth=T[2],t.lineCap=T[3],t.lineJoin=T[4],t.miterLimit=T[5],t.setLineDash&&(t.lineDashOffset=T[7],t.setLineDash(T[6]))},n.prototype.drawLabelWithPointPlacement_=function(t,T,Z,e){var r=this.textStates[T],i=this.createLabel(t,T,e,Z),o=this.strokeStates[Z],a=this.pixelRatio,s=P3(Array.isArray(t)?t[0]:t,r.textAlign||w1),l=d1[r.textBaseline||c4],h=o&&o.lineWidth?o.lineWidth:0,u=i.width/a-2*r.scale[0],c=s*u+2*(.5-s)*h,f=l*i.height/a+2*(.5-l)*h;return{label:i,anchorX:c,anchorY:f}},n.prototype.execute_=function(t,T,Z,e,r,i,o,a){var s;this.pixelCoordinates_&&R0(Z,this.renderedTransform_)?s=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),s=C0(this.coordinates,0,this.coordinates.length,2,Z,this.pixelCoordinates_),$6(this.renderedTransform_,Z));for(var l=0,h=e.length,u=0,c,f,p,d,_,v,g,y,E,x,m,C,O=0,R=0,L=null,N=null,S=this.coordinateCache_,b=this.viewRotation_,j=Math.round(Math.atan2(-Z[1],Z[0])*1e12)/1e12,M={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:b},I=this.instructions!=e||this.overlaps?0:200,P,Y,W,K;l<h;){var w=e[l],Q=w[0];switch(Q){case F.BEGIN_GEOMETRY:P=w[1],K=w[3],P.getGeometry()?o!==void 0&&!d2(o,K.getExtent())?l=w[2]+1:++l:l=w[2];break;case F.BEGIN_PATH:O>I&&(this.fill_(t),O=0),R>I&&(t.stroke(),R=0),!O&&!R&&(t.beginPath(),d=NaN,_=NaN),++l;break;case F.CIRCLE:u=w[1];var V=s[u],k=s[u+1],i2=s[u+2],c2=s[u+3],o2=i2-V,L0=c2-k,v2=Math.sqrt(o2*o2+L0*L0);t.moveTo(V+v2,k),t.arc(V,k,v2,0,2*Math.PI,!0),++l;break;case F.CLOSE_PATH:t.closePath(),++l;break;case F.CUSTOM:u=w[1],c=w[2];var J0=w[3],P2=w[4],Q0=w.length==6?w[5]:void 0;M.geometry=J0,M.feature=P,l in S||(S[l]=[]);var l0=S[l];Q0?Q0(s,u,c,2,l0):(l0[0]=s[u],l0[1]=s[u+1],l0.length=2),P2(l0,M),++l;break;case F.DRAW_IMAGE:u=w[1],c=w[2],y=w[3],f=w[4],p=w[5];var A0=w[6],D1=w[7],N1=w[8],T1=w[9],Z1=w[10],$2=w[11],L4=w[12],u0=w[13],G1=w[14],H2=w[15];if(!y&&w.length>=20){E=w[19],x=w[20],m=w[21],C=w[22];var M0=this.drawLabelWithPointPlacement_(E,x,m,C);y=M0.label,w[3]=y;var A4=w[23];f=(M0.anchorX-A4)*this.pixelRatio,w[4]=f;var b1=w[24];p=(M0.anchorY-b1)*this.pixelRatio,w[5]=p,A0=y.height,w[6]=A0,u0=y.width,w[13]=u0}var t1=void 0;w.length>25&&(t1=w[25]);var N2=void 0,L2=void 0,h0=void 0;w.length>17?(N2=w[16],L2=w[17],h0=w[18]):(N2=y0,L2=!1,h0=!1),Z1&&j?$2+=b:!Z1&&!j&&($2-=b);for(var e1=0;u<c;u+=2)if(!(t1&&t1[e1++]<u0/this.pixelRatio)){var h2=this.calculateImageOrLabelDimensions_(y.width,y.height,s[u],s[u+1],u0,A0,f,p,N1,T1,$2,L4,r,N2,L2||h0,P),j1=[t,T,y,h2,D1,L2?L:null,h0?N:null];if(a){if(G1==="none")continue;if(G1==="obstacle"){a.insert(h2.declutterBox);continue}else{var a2=void 0,M4=void 0;if(H2){var k1=c-u;if(!H2[k1]){H2[k1]=j1;continue}if(a2=H2[k1],delete H2[k1],M4=I3(a2),a.collides(M4))continue}if(a.collides(h2.declutterBox))continue;a2&&(a.insert(M4),this.replayImageOrLabel_.apply(this,a2)),a.insert(h2.declutterBox)}}this.replayImageOrLabel_.apply(this,j1)}++l;break;case F.DRAW_CHARS:var z5=w[1],K5=w[2],F4=w[3],g6=w[4];C=w[5
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(xn(T,this.tileGrid),Z):this.setKey(Z)},t.prototype.tileUrlFunction=function(T,Z,e){},t.prototype.useTile=function(T,Z,e){var r=P4(T,Z,e);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(En);const In=Sn;var Pn=globalThis&&globalThis.__extends||function(){var n=function(t,T){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,e){Z.__proto__=e}||function(Z,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Z[r]=e[r])},n(t,T)};return function(t,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");n(t,T);function Z(){this.constructor=t}t.prototype=T===null?Object.create(T):(Z.prototype=T.prototype,new Z)}}(),Ln=function(n){Pn(t,n);function t(T){var Z=this,e=T.imageSmoothing!==void 0?T.imageSmoothing:!0;return T.interpolate!==void 0&&(e=T.interpolate),Z=n.call(this,{attributions:T.attributions,cacheSize:T.cacheSize,opaque:T.opaque,projection:T.projection,state:T.state,tileGrid:T.tileGrid,tileLoadFunction:T.tileLoadFunction?T.tileLoadFunction:An,tilePixelRatio:T.tilePixelRatio,tileUrlFunction:T.tileUrlFunction,url:T.url,urls:T.urls,wrapX:T.wrapX,transition:T.transition,interpolate:e,key:T.key,attributionsCollapsible:T.attributionsCollapsible,zDirection:T.zDirection})||this,Z.crossOrigin=T.crossOrigin!==void 0?T.crossOrigin:null,Z.tileClass=T.tileClass!==void 0?T.tileClass:q7,Z.tileCacheForProjection={},Z.tileGridForProjection={},Z.reprojectionErrorThreshold_=T.reprojectionErrorThreshold,Z.renderReprojectionEdges_=!1,Z}return t.prototype.canExpireCache=function(){if(!j2)return n.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var T in this.tileCacheForProjection)if(this.tileCacheForProjection[T].canExpireCache())return!0;return!1},t.prototype.expireCache=function(T,Z){if(!j2){n.prototype.expireCache.call(this,T,Z);return}var e=this.getTileCacheForProjection(T);this.tileCache.expireCache(this.tileCache==e?Z:{});for(var r in this.tileCacheForProjection){var i=this.tileCacheForProjection[r];i.expireCache(i==e?Z:{})}},t.prototype.getGutterForProjection=function(T){return j2&&this.getProjection()&&T&&!d0(this.getProjection(),T)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){var T=n.prototype.getKey.call(this);return this.getInterpolate()||(T+=":disable-interpolation"),T},t.prototype.getOpaque=function(T){return j2&&this.getProjection()&&T&&!d0(this.getProjection(),T)?!1:n.prototype.getOpaque.call(this,T)},t.prototype.getTileGridForProjection=function(T){if(!j2)return n.prototype.getTileGridForProjection.call(this,T);var Z=this.getProjection();if(this.tileGrid&&(!Z||d0(Z,T)))return this.tileGrid;var e=U(T);return e in this.tileGridForProjection||(this.tileGridForProjection[e]=p6(T)),this.tileGridForProjection[e]},t.prototype.getTileCacheForProjection=function(T){if(!j2)return n.prototype.getTileCacheForProjection.call(this,T);var Z=this.getProjection();if(!Z||d0(Z,T))return this.tileCache;var e=U(T);return e in this.tileCacheForProjection||(this.tileCacheForProjection[e]=new a6(this.tileCache.highWaterMark)),this.tileCacheForProjection[e]},t.prototype.createTile_=function(T,Z,e,r,i,o){var a=[T,Z,e],s=this.getTileCoordForTileUrlFunction(a,i),l=s?this.tileUrlFunction(s,r,i):void 0,h=new this.tileClass(a,l!==void 0?D.IDLE:D.EMPTY,l!==void 0?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=o,h.addEventListener(G.CHANGE,this.handleTileChange.bind(this)),h},t.prototype.getTile=function(T,Z,e,r,i){var o=this.getProjection();if(!j2||!o||!i||d0(o,i))return this.getTileInternal(T,Z,e,r,o||i);var a=this.getTileCacheForProjection(i),s=[T,Z,e],l=void 0,h=o6(s);a.containsKey(h)&&(l=a.get(h));var u=this.getKey();if(l&&l.key==u)return l;var c=this.getTileGridForProjection(o),f=this.getTileGridForProjection(i),p=this.getTileCoordForTileUrlFunction(s,i),d=new c6(o,c,i,f,s,p,this.getTilePixelRatio(r),this.getGutter(),function(_,v,g,y){return this.getTileInternal(_,v,g,y,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return d.key=u,l?(d.interimTile=l,d.refreshInterimChain(),a.replace(h,d)):a.set(h,d),d},t.prototype.getTileInternal=function(T,Z,e,r,i){var o=null,a=P4(T,Z,e),s=this.getKey();if(!this.tileCache.containsKey(a))o=this.createTile_(T,Z,e,r,i,s),this.tileCache.set(a,o);else if(o=this.tileCache.get(a),o.key!=s){var l=o;o=this.createTile_(T,Z,e,r,i,s),l.getState()==D.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}return o},t.prototype.setRenderReprojectionEdges=function(T){if(!(!j2||this.renderReprojectionEdges_==T)){this.renderReprojectionEdges_=T;for(var Z in this.tileCacheForProjection)this.tileCacheForProjection[Z].clear();this.changed()}},t.prototype.setTileGridForProjection=function(T,Z){if(j2){var e=Z2(T);if(e){var r=U(e);r in this.tileGridForProjec
Line truncated
|
||||
//# sourceMappingURL=index.892cac62.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.148d1b99.js","sources":["../../vite/modulepreload-polyfill","../../node_modules/ol/util.js","../../node_modules/ol/AssertionError.js","../../node_modules/ol/events/Event.js","../../node_modules/ol/ObjectEventType.js","../../node_modules/ol/Disposable.js","../../node_modules/ol/array.js","../../node_modules/ol/functions.js","../../node_modules/ol/obj.js","../../node_modules/ol/events/Target.js","../../node_modules/ol/events/EventType.js","../../node_modules/ol/events.js","../../node_modules/ol/Observable.js","../../node_modules/ol/Object.js","../../node_modules/ol/CollectionEventType.js","../../node_modules/ol/Collection.js","../../node_modules/ol/asserts.js","../../node_modules/ol/Feature.js","../../node_modules/ol/geom/GeometryLayout.js","../../node_modules/ol/proj/Units.js","../../node_modules/ol/has.js","../../node_modules/ol/transform.js","../../node_modules/ol/extent/Relationship.js","../../node_modules/ol/extent.js","../../node_modules/ol/proj/Projection.js","../../node_modules/ol/math.js","../../node_modules/ol/proj/epsg3857.js","../../node_modules/ol/proj/epsg4326.js","../../node_modules/ol/proj/projections.js","../../node_modules/ol/proj/transforms.js","../../node_modules/ol/coordinate.js","../../node_modules/ol/sphere.js","../../node_modules/ol/proj.js","../../node_modules/ol/geom/flat/transform.js","../../node_modules/ol/geom/Geometry.js","../../node_modules/ol/geom/SimpleGeometry.js","../../node_modules/ol/geom/flat/closest.js","../../node_modules/ol/geom/flat/deflate.js","../../node_modules/ol/geom/flat/simplify.js","../../node_modules/ol/geom/flat/inflate.js","../../node_modules/ol/geom/flat/area.js","../../node_modules/ol/geom/LinearRing.js","../../node_modules/ol/geom/Point.js","../../node_modules/ol/geom/flat/contains.js","../../node_modules/ol/geom/flat/interiorpoint.js","../../node_modules/ol/geom/flat/segments.js","../../node_modules/ol/geom/flat/intersectsextent.js","../../node_modules/ol/geom/flat/reverse.js","../../node_modules/ol/geom/flat/orient.js","../../node_modules/ol/geom/Polygon.js","../../node_modules/ol/render/EventType.js","../../node_modules/ol/style/Fill.js","../../node_modules/ol/geom/flat/interpolate.js","../../node_modules/ol/geom/flat/length.js","../../node_modules/ol/geom/LineString.js","../../node_modules/ol/style/Stroke.js","../../node_modules/ol/ImageState.js","../../node_modules/ol/size.js","../../node_modules/ol/style/Image.js","../../node_modules/ol/color.js","../../node_modules/ol/colorlike.js","../../node_modules/ol/dom.js","../../node_modules/ol/css.js","../../node_modules/ol/render/canvas.js","../../node_modules/ol/style/RegularShape.js","../../node_modules/ol/style/Circle.js","../../node_modules/ol/style/Style.js","../../node_modules/ol/style/TextPlacement.js","../../node_modules/ol/layer/Property.js","../../node_modules/ol/layer/Base.js","../../node_modules/ol/layer/Layer.js","../../node_modules/quickselect/index.js","../../node_modules/rbush/index.js","../../node_modules/ol/layer/BaseVector.js","../../node_modules/ol/render/canvas/Instruction.js","../../node_modules/ol/render/VectorContext.js","../../node_modules/ol/render/canvas/Builder.js","../../node_modules/ol/render/canvas/ImageBuilder.js","../../node_modules/ol/render/canvas/LineStringBuilder.js","../../node_modules/ol/render/canvas/PolygonBuilder.js","../../node_modules/ol/geom/flat/straightchunk.js","../../node_modules/ol/render/canvas/TextBuilder.js","../../node_modules/ol/render/canvas/BuilderGroup.js","../../node_modules/ol/renderer/Layer.js","../../node_modules/ol/render/Event.js","../../node_modules/ol/renderer/canvas/Layer.js","../../node_modules/ol/geom/flat/textpath.js","../../node_modules/ol/render/canvas/Executor.js","../../node_modules/ol/render/canvas/ExecutorGroup.js","../../node_modules/ol/ViewHint.js","../../node_modules/ol/render/canvas/Immediate.js","../../node_modules/ol/style/IconAnchorUnits.js","../../node_modules/ol/style/IconOrigin.js","../../node_modules/ol/style/IconImageCache.js","../../node_modules/ol/ImageBase.js","../../node_modules/ol/Image.js","../../node_modules/ol/style/IconImage.js","../../node_modules/ol/style/Icon.js","../../node_modules/ol/render/canvas/hitdetect.js","../../node_modules/ol/renderer/vector.js","../../node_modules/ol/renderer/canvas/VectorLayer.js","../../node_modules/ol/layer/Vector.js","../../node_modules/ol/structs/RBush.js","../../node_modules/ol/source/Source.js","../../node_modules/ol/source/VectorEventType.js","../../node_modules/ol/loadingstrategy.js","../../node_modules/ol/featureloader.js","../../node_modules/ol/source/Vector.js","../../node_modules/ol/TileState.js","../../node_modules/ol/easing.js","../../node_modules/ol/Tile.js","../../node_modules/ol/ImageTile.js","../../node_modules/ol/Kinetic.js","../../node_modules/ol/renderer/Map.js","../../node_modules/ol/renderer/Composite.js","../../node_modules/ol/layer/Group.js","../../node_modules/ol/MapEvent.js","../../node_modules/ol/MapBrowserEvent.js","../../Line truncated
|
||||
{"version":3,"file":"index.892cac62.js","sources":["../../vite/modulepreload-polyfill","../../node_modules/ol/util.js","../../node_modules/ol/AssertionError.js","../../node_modules/ol/events/Event.js","../../node_modules/ol/ObjectEventType.js","../../node_modules/ol/Disposable.js","../../node_modules/ol/array.js","../../node_modules/ol/functions.js","../../node_modules/ol/obj.js","../../node_modules/ol/events/Target.js","../../node_modules/ol/events/EventType.js","../../node_modules/ol/events.js","../../node_modules/ol/Observable.js","../../node_modules/ol/Object.js","../../node_modules/ol/CollectionEventType.js","../../node_modules/ol/Collection.js","../../node_modules/ol/asserts.js","../../node_modules/ol/Feature.js","../../node_modules/ol/geom/GeometryLayout.js","../../node_modules/ol/proj/Units.js","../../node_modules/ol/has.js","../../node_modules/ol/transform.js","../../node_modules/ol/extent/Relationship.js","../../node_modules/ol/extent.js","../../node_modules/ol/proj/Projection.js","../../node_modules/ol/math.js","../../node_modules/ol/proj/epsg3857.js","../../node_modules/ol/proj/epsg4326.js","../../node_modules/ol/proj/projections.js","../../node_modules/ol/proj/transforms.js","../../node_modules/ol/coordinate.js","../../node_modules/ol/sphere.js","../../node_modules/ol/proj.js","../../node_modules/ol/geom/flat/transform.js","../../node_modules/ol/geom/Geometry.js","../../node_modules/ol/geom/SimpleGeometry.js","../../node_modules/ol/geom/flat/closest.js","../../node_modules/ol/geom/flat/deflate.js","../../node_modules/ol/geom/flat/simplify.js","../../node_modules/ol/geom/flat/inflate.js","../../node_modules/ol/geom/flat/area.js","../../node_modules/ol/geom/LinearRing.js","../../node_modules/ol/geom/Point.js","../../node_modules/ol/geom/flat/contains.js","../../node_modules/ol/geom/flat/interiorpoint.js","../../node_modules/ol/geom/flat/segments.js","../../node_modules/ol/geom/flat/intersectsextent.js","../../node_modules/ol/geom/flat/reverse.js","../../node_modules/ol/geom/flat/orient.js","../../node_modules/ol/geom/Polygon.js","../../node_modules/ol/render/EventType.js","../../node_modules/ol/style/Fill.js","../../node_modules/ol/geom/flat/interpolate.js","../../node_modules/ol/geom/flat/length.js","../../node_modules/ol/geom/LineString.js","../../node_modules/ol/style/Stroke.js","../../node_modules/ol/ImageState.js","../../node_modules/ol/size.js","../../node_modules/ol/style/Image.js","../../node_modules/ol/color.js","../../node_modules/ol/colorlike.js","../../node_modules/ol/dom.js","../../node_modules/ol/css.js","../../node_modules/ol/render/canvas.js","../../node_modules/ol/style/RegularShape.js","../../node_modules/ol/style/Circle.js","../../node_modules/ol/style/Style.js","../../node_modules/ol/style/TextPlacement.js","../../node_modules/ol/layer/Property.js","../../node_modules/ol/layer/Base.js","../../node_modules/ol/layer/Layer.js","../../node_modules/quickselect/index.js","../../node_modules/rbush/index.js","../../node_modules/ol/layer/BaseVector.js","../../node_modules/ol/render/canvas/Instruction.js","../../node_modules/ol/render/VectorContext.js","../../node_modules/ol/render/canvas/Builder.js","../../node_modules/ol/render/canvas/ImageBuilder.js","../../node_modules/ol/render/canvas/LineStringBuilder.js","../../node_modules/ol/render/canvas/PolygonBuilder.js","../../node_modules/ol/geom/flat/straightchunk.js","../../node_modules/ol/render/canvas/TextBuilder.js","../../node_modules/ol/render/canvas/BuilderGroup.js","../../node_modules/ol/renderer/Layer.js","../../node_modules/ol/render/Event.js","../../node_modules/ol/renderer/canvas/Layer.js","../../node_modules/ol/geom/flat/textpath.js","../../node_modules/ol/render/canvas/Executor.js","../../node_modules/ol/render/canvas/ExecutorGroup.js","../../node_modules/ol/ViewHint.js","../../node_modules/ol/render/canvas/Immediate.js","../../node_modules/ol/style/IconAnchorUnits.js","../../node_modules/ol/style/IconOrigin.js","../../node_modules/ol/style/IconImageCache.js","../../node_modules/ol/ImageBase.js","../../node_modules/ol/Image.js","../../node_modules/ol/style/IconImage.js","../../node_modules/ol/style/Icon.js","../../node_modules/ol/render/canvas/hitdetect.js","../../node_modules/ol/renderer/vector.js","../../node_modules/ol/renderer/canvas/VectorLayer.js","../../node_modules/ol/layer/Vector.js","../../node_modules/ol/structs/RBush.js","../../node_modules/ol/source/Source.js","../../node_modules/ol/source/VectorEventType.js","../../node_modules/ol/loadingstrategy.js","../../node_modules/ol/featureloader.js","../../node_modules/ol/source/Vector.js","../../node_modules/ol/TileState.js","../../node_modules/ol/easing.js","../../node_modules/ol/Tile.js","../../node_modules/ol/ImageTile.js","../../node_modules/ol/Kinetic.js","../../node_modules/ol/renderer/Map.js","../../node_modules/ol/renderer/Composite.js","../../node_modules/ol/layer/Group.js","../../node_modules/ol/MapEvent.js","../../node_modules/ol/MapBrowserEvent.js","../../Line truncated
|
||||
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 260 KiB |
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Vendored
+1
-1
@@ -7,7 +7,7 @@
|
||||
<title>Road2Bitcoin Live Map</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css">
|
||||
<script defer data-domain="r2b22.kip.pe" src="https://plausible.io/js/plausible.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index.148d1b99.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index.892cac62.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.eed9f443.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ol-vite",
|
||||
"version": "1.4.0",
|
||||
"version": "1.5.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ol-vite",
|
||||
"version": "1.4.0",
|
||||
"version": "1.5.0",
|
||||
"dependencies": {
|
||||
"ol": "latest"
|
||||
},
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "map",
|
||||
"version": "1.4.0",
|
||||
"version": "1.5.0",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
"build": "vite build",
|
||||
|
||||
Reference in new issue
Block a user