@planet/maps 7.1.0 → 8.0.0-dev.1666713300824
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/config.js +32 -0
- package/lib/Map.js +70 -0
- package/lib/Overlay.js +24 -0
- package/lib/View.js +24 -0
- package/lib/control/Attribution.js +24 -0
- package/lib/control/Control.js +24 -0
- package/lib/control/FullScreen.js +24 -0
- package/lib/control/MousePosition.js +24 -0
- package/lib/control/OverviewMap.js +24 -0
- package/lib/control/Rotate.js +24 -0
- package/lib/control/ScaleLine.js +24 -0
- package/lib/control/Zoom.js +24 -0
- package/lib/control/ZoomSlider.js +24 -0
- package/lib/control/ZoomToExtent.js +24 -0
- package/lib/interaction/DoubleClickZoom.js +24 -0
- package/lib/interaction/DragAndDrop.js +24 -0
- package/lib/interaction/DragBox.js +24 -0
- package/lib/interaction/DragPan.js +24 -0
- package/lib/interaction/DragRotate.js +24 -0
- package/lib/interaction/DragRotateAndZoom.js +28 -0
- package/lib/interaction/DragZoom.js +24 -0
- package/lib/interaction/Draw.js +24 -0
- package/lib/interaction/Extent.js +24 -0
- package/lib/interaction/Interaction.js +24 -0
- package/lib/interaction/KeyboardPan.js +24 -0
- package/lib/interaction/KeyboardZoom.js +24 -0
- package/lib/interaction/Link.js +24 -0
- package/lib/interaction/Modify.js +24 -0
- package/lib/interaction/MouseWheelZoom.js +24 -0
- package/lib/interaction/PinchRotate.js +24 -0
- package/lib/interaction/PinchZoom.js +24 -0
- package/lib/interaction/Pointer.js +24 -0
- package/lib/interaction/Property.js +24 -0
- package/lib/interaction/Select.js +24 -0
- package/lib/interaction/Snap.js +24 -0
- package/lib/interaction/Translate.js +24 -0
- package/lib/layer/Base.js +29 -0
- package/lib/layer/BaseImage.js +29 -0
- package/lib/layer/BaseTile.js +29 -0
- package/lib/layer/BaseVector.js +29 -0
- package/lib/layer/Graticule.js +29 -0
- package/lib/layer/Group.js +29 -0
- package/lib/layer/Heatmap.js +29 -0
- package/lib/layer/Image.js +29 -0
- package/lib/layer/Layer.js +29 -0
- package/lib/layer/MapboxVector.js +29 -0
- package/lib/layer/Tile.js +29 -0
- package/lib/layer/Vector.js +29 -0
- package/lib/layer/VectorImage.js +29 -0
- package/lib/layer/VectorTile.js +29 -0
- package/lib/layer/WebGLPoints.js +29 -0
- package/lib/layer/WebGLTile.js +29 -0
- package/lib/source/BingMaps.js +24 -0
- package/lib/source/CartoDB.js +24 -0
- package/lib/source/Cluster.js +24 -0
- package/lib/source/DataTile.js +24 -0
- package/lib/source/GeoTIFF.js +24 -0
- package/lib/source/IIIF.js +24 -0
- package/lib/source/Image.js +24 -0
- package/lib/source/ImageArcGISRest.js +24 -0
- package/lib/source/ImageCanvas.js +24 -0
- package/lib/source/ImageMapGuide.js +24 -0
- package/lib/source/ImageStatic.js +24 -0
- package/lib/source/ImageWMS.js +24 -0
- package/lib/source/OGCMapTile.js +24 -0
- package/lib/source/OGCVectorTile.js +24 -0
- package/lib/source/OSM.js +24 -0
- package/lib/source/Raster.js +24 -0
- package/lib/source/Source.js +24 -0
- package/lib/source/Stamen.js +24 -0
- package/lib/source/Tile.js +24 -0
- package/lib/source/TileArcGISRest.js +24 -0
- package/lib/source/TileDebug.js +24 -0
- package/lib/source/TileImage.js +24 -0
- package/lib/source/TileJSON.js +24 -0
- package/lib/source/TileWMS.js +24 -0
- package/lib/source/UTFGrid.js +24 -0
- package/lib/source/UrlTile.js +24 -0
- package/lib/source/Vector.js +24 -0
- package/lib/source/VectorTile.js +24 -0
- package/lib/source/WMTS.js +24 -0
- package/lib/source/XYZ.js +24 -0
- package/lib/source/Zoomify.js +24 -0
- package/package.json +52 -17
- package/readme.md +44 -35
- package/renderer/render.js +304 -0
- package/renderer/update.js +98 -0
- package/.npmignore +0 -2
- package/common.js +0 -505
- package/debug.js +0 -88354
- package/embed.js +0 -293
- package/explorer.js +0 -464
- package/ol.css +0 -241
package/common.js
DELETED
|
@@ -1,505 +0,0 @@
|
|
|
1
|
-
// OpenLayers 3. See http://openlayers.org/
|
|
2
|
-
// License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md
|
|
3
|
-
// Version: v7.1.0
|
|
4
|
-
;(function (root, factory) {
|
|
5
|
-
if (typeof exports === "object") {
|
|
6
|
-
module.exports = factory();
|
|
7
|
-
} else if (typeof define === "function" && define.amd) {
|
|
8
|
-
define([], factory);
|
|
9
|
-
} else {
|
|
10
|
-
root.ol = factory();
|
|
11
|
-
}
|
|
12
|
-
}(this, function () {
|
|
13
|
-
var OPENLAYERS = {};
|
|
14
|
-
var k,aa=this;function r(a,b){var c=a.split("."),d=OPENLAYERS||aa;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]?d=d[e]:d=d[e]={}:d[e]=b};function v(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function ca(){}function w(a){return a.ri||(a.ri=++ea)}var ea=0;function ga(a){this.message="Assertion failed. See http://openlayers.org/en/v7.1.0/doc/errors/#"+a+" for details.";this.code=a;this.name="AssertionError"}v(ga,Error);function ha(a,b){if(!a)throw new ga(b);};function ia(a,b,c){return Math.min(Math.max(a,b),c)}var ja=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function ka(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function la(a,b){var c=a%b;return 0>c*b?c+b:c}function na(a,b,c){return a+c*(b-a)};function pa(a){return function(b){if(b)return[ia(b[0],a[0],a[2]),ia(b[1],a[1],a[3])]}}function sa(a){return a};function ta(a,b,c){this.center=a;this.resolution=b;this.rotation=c};var ua="function"===typeof Object.assign?Object.assign:function(a,b){if(!a||!a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1,e=arguments.length;d<e;++d){var f=arguments[d];if(void 0!==f&&null!==f)for(var g in f)f.hasOwnProperty(g)&&(c[g]=f[g])}return c};function wa(a){for(var b in a)delete a[b]}function xa(a){var b=[],c;for(c in a)b.push(a[c]);return b}function ya(a){for(var b in a)return!1;return!b};function Aa(a){function b(b){var d=a.listener,e=a.de||a.target;a.ge&&Ca(a);return d.call(e,b)}return a.ee=b}function Da(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.de===c)return d&&(e.deleteIndex=f),e}function Ea(a,b){var c=a.Qa;return c?c[b]:void 0}function Fa(a){var b=a.Qa;b||(b=a.Qa={});return b}
|
|
15
|
-
function Ha(a,b){var c=Ea(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].ee),wa(c[d]);c.length=0;if(c=a.Qa)delete c[b],0===Object.keys(c).length&&delete a.Qa}}function x(a,b,c,d,e){var f=Fa(a),g=f[b];g||(g=f[b]=[]);(f=Da(g,c,d,!1))?e||(f.ge=!1):(f={de:d,ge:!!e,listener:c,target:a,type:b},a.addEventListener(b,Aa(f)),g.push(f));return f}function Ia(a,b,c,d){(a=Ea(a,b))&&(c=Da(a,c,d,!0))&&Ca(c)}
|
|
16
|
-
function Ca(a){if(a&&a.target){a.target.removeEventListener(a.type,a.ee);var b=Ea(a.target,a.type);if(b){var c="deleteIndex"in a?a.deleteIndex:b.indexOf(a);-1!==c&&b.splice(c,1);0===b.length&&Ha(a.target,a.type)}wa(a)}};function Ja(){}Ja.prototype.Ib=!1;function Ka(a){a.Ib||(a.Ib=!0,a.ka())}Ja.prototype.ka=ca;function La(a){this.type=a;this.target=null}La.prototype.preventDefault=La.prototype.stopPropagation=function(){this.Di=!0};function Ma(a){a.stopPropagation()};function Na(){this.Da={};this.aa={};this.S={}}v(Na,Ja);Na.prototype.addEventListener=function(a,b){var c=this.S[a];c||(c=this.S[a]=[]);-1===c.indexOf(b)&&c.push(b)};
|
|
17
|
-
Na.prototype.c=function(a){var b="string"===typeof a?new La(a):a;a=b.type;b.target=this;var c=this.S[a],d;if(c){a in this.aa||(this.aa[a]=0,this.Da[a]=0);++this.aa[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.Di){d=!1;break}--this.aa[a];if(0===this.aa[a]){b=this.Da[a];for(delete this.Da[a];b--;)this.removeEventListener(a,ca);delete this.aa[a]}return d}};Na.prototype.ka=function(){var a=Fa(this),b;for(b in a)Ha(this,b)};
|
|
18
|
-
function Oa(a,b){return b?b in a.S:0<Object.keys(a.S).length}Na.prototype.removeEventListener=function(a,b){var c=this.S[a];if(c){var d=c.indexOf(b);a in this.Da?(c[d]=ca,++this.Da[a]):(c.splice(d,1),0===c.length&&delete this.S[a])}};function Pa(){Na.call(this);this.f=0}v(Pa,Na);k=Pa.prototype;k.s=function(){++this.f;this.c("change")};k.V=function(){return this.f};k.X=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=x(this,a[f],b,c);return e}return x(this,a,b,c)};k.Y=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=x(this,a[f],b,c,!0);return e}return x(this,a,b,c,!0)};
|
|
19
|
-
k.Z=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)Ia(this,a[d],b,c);else Ia(this,a,b,c)};k.$=function(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)Ca(a[b]);else Ca(a)};function Qa(a,b,c){La.call(this,a);this.key=b;this.oldValue=c}v(Qa,La);function Ra(a){Pa.call(this);w(this);this.B={};void 0!==a&&this.O(a)}v(Ra,Pa);var Sa={};function Ua(a){return Sa.hasOwnProperty(a)?Sa[a]:Sa[a]="change:"+a}k=Ra.prototype;k.get=function(a){var b;this.B.hasOwnProperty(a)&&(b=this.B[a]);return b};k.ba=function(){return Object.keys(this.B)};k.U=function(){return ua({},this.B)};function Wa(a,b,c){var d;d=Ua(b);a.c(new Qa(d,b,c));a.c(new Qa("propertychange",b,c))}
|
|
20
|
-
k.set=function(a,b,c){c?this.B[a]=b:(c=this.B[a],this.B[a]=b,c!==b&&Wa(this,a,c))};k.O=function(a,b){for(var c in a)this.set(c,a[c],b)};k.da=function(a,b){if(a in this.B){var c=this.B[a];delete this.B[a];b||Wa(this,a,c)}};function Xa(a,b){return a>b?1:a<b?-1:0}function Ya(a,b,c){var d=a.length;if(a[0]<=b)return 0;if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1}function Za(a,b){var c,d=Array.isArray(b)?b:[b],e=d.length;for(c=0;c<e;c++)a[a.length]=d[c]}function $a(a,b){var c=a.indexOf(b),d=-1<c;d&&a.splice(c,1);return d}
|
|
21
|
-
function ab(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}function bb(a){var b=cb,c=a.length,d=Array(a.length),e;for(e=0;e<c;e++)d[e]={index:e,value:a[e]};d.sort(function(a,c){return b(a.value,c.value)||a.index-c.index});for(e=0;e<a.length;e++)a[e]=d[e].value}function db(a,b){var c=b||Xa;return a.every(function(b,e){if(0===e)return!0;var f=c(a[e-1],b);return!(0<f||0===f)})};function eb(a){return function(b,c,d){if(void 0!==b)return b=Ya(a,b,d),b=ia(b+c,0,a.length-1),c=Math.floor(b),b!=c&&c<a.length-1?a[c]/Math.pow(a[c]/a[c+1],b-c):a[c]}}function fb(a,b,c){return function(d,e,f){if(void 0!==d)return d=Math.max(Math.floor(Math.log(b/d)/Math.log(a)+(-f/2+.5))+e,0),void 0!==c&&(d=Math.min(d,c)),b/Math.pow(a,d)}};function gb(a){if(void 0!==a)return 0}function hb(a,b){if(void 0!==a)return a+b}function ib(a){var b=2*Math.PI/a;return function(a,d){if(void 0!==a)return a=Math.floor((a+d)/b+.5)*b}}function jb(){var a=5*Math.PI/180;return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function kb(a,b){a[0]+=b[0];a[1]+=b[1]}function mb(a,b){var c=a[0],d=a[1],e=b[0],f=b[1],g=e[0],e=e[1],h=f[0],f=f[1],l=h-g,m=f-e,c=0===l&&0===m?0:(l*(c-g)+m*(d-e))/(l*l+m*m||0);0>=c||(1<=c?(g=h,e=f):(g+=c*l,e+=c*m));return[g,e]}function nb(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function ob(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e}function pb(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d};function qb(a){for(var b=rb(),c=0,d=a.length;c<d;++c)sb(b,a[c]);return b}function tb(a,b,c){return c?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]}function ub(a,b){return b?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function vb(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function wb(a,b){return xb(a,b[0],b[1])}function yb(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}
|
|
22
|
-
function xb(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function zb(a,b){var c=a[1],d=a[2],e=a[3],f=b[0],g=b[1],h=0;f<a[0]?h|=16:f>d&&(h|=4);g<c?h|=8:g>e&&(h|=2);0===h&&(h=1);return h}function rb(){return[Infinity,Infinity,-Infinity,-Infinity]}function Ab(a,b,c,d,e){return e?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function Bb(a){return Ab(Infinity,Infinity,-Infinity,-Infinity,a)}function Cb(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}
|
|
23
|
-
function Db(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function sb(a,b){b[0]<a[0]&&(a[0]=b[0]);b[0]>a[2]&&(a[2]=b[0]);b[1]<a[1]&&(a[1]=b[1]);b[1]>a[3]&&(a[3]=b[1])}function Eb(a,b,c,d,e){for(;c<d;c+=e){var f=a,g=b[c],h=b[c+1];f[0]=Math.min(f[0],g);f[1]=Math.min(f[1],h);f[2]=Math.max(f[2],g);f[3]=Math.max(f[3],h)}return a}
|
|
24
|
-
function Fb(a,b,c){var d;return(d=b.call(c,Gb(a)))||(d=b.call(c,Hb(a)))||(d=b.call(c,Ib(a)))?d:(d=b.call(c,Jb(a)))?d:!1}function Kb(a){var b=0;Lb(a)||(b=Mb(a)*Nb(a));return b}function Gb(a){return[a[0],a[1]]}function Hb(a){return[a[2],a[1]]}function Ob(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
|
|
25
|
-
function Pb(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);var g=Math.sin(c);c=f*b;f*=g;b*=d;var h=d*g,l=a[0],m=a[1];a=l-c+h;d=l-c-h;g=l+c-h;c=l+c+h;var h=m-f-b,l=m-f+b,n=m+f+b,f=m+f-b;return Ab(Math.min(a,d,g,c),Math.min(h,l,n,f),Math.max(a,d,g,c),Math.max(h,l,n,f),e)}function Nb(a){return a[3]-a[1]}function Qb(a,b,c){c=c?c:rb();Rb(a,b)&&(c[0]=a[0]>b[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]<b[2]?a[2]:b[2],c[3]=a[3]<b[3]?a[3]:b[3]);return c}function Jb(a){return[a[0],a[3]]}
|
|
26
|
-
function Ib(a){return[a[2],a[3]]}function Mb(a){return a[2]-a[0]}function Rb(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Lb(a){return a[2]<a[0]||a[3]<a[1]}function Sb(a,b){var c=(a[2]-a[0])/2*(b-1),d=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=d;a[3]+=d}
|
|
27
|
-
function Tb(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);var d=[a[0],a[2],a[4],a[6]],e=[a[1],a[3],a[5],a[7]];b=Math.min.apply(null,d);a=Math.min.apply(null,e);d=Math.max.apply(null,d);e=Math.max.apply(null,e);return Ab(b,a,d,e,c)};function Ub(){return!0}function Vb(){return!1};/*
|
|
28
|
-
|
|
29
|
-
Latitude/longitude spherical geodesy formulae taken from
|
|
30
|
-
http://www.movable-type.co.uk/scripts/latlong.html
|
|
31
|
-
Licensed under CC-BY-3.0.
|
|
32
|
-
*/
|
|
33
|
-
function Wb(a){this.radius=a}function Xb(a,b){var c=a[1]*Math.PI/180,d=b[1]*Math.PI/180,e=(d-c)/2,f=(b[0]-a[0])*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*Yb.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
|
|
34
|
-
Wb.prototype.offset=function(a,b,c){var d=a[1]*Math.PI/180;b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(a[0]*Math.PI/180+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var Yb=new Wb(6370997);var Zb={};Zb.degrees=2*Math.PI*Yb.radius/360;Zb.ft=.3048;Zb.m=1;Zb["us-ft"]=1200/3937;
|
|
35
|
-
function $b(a){this.f=a.code;this.b=a.units;this.g=void 0!==a.extent?a.extent:null;this.o=void 0!==a.worldExtent?a.worldExtent:null;this.h=void 0!==a.axisOrientation?a.axisOrientation:"enu";this.a=void 0!==a.global?a.global:!1;this.c=!(!this.a||!this.g);this.B=void 0!==a.getPointResolution?a.getPointResolution:this.lg;this.i=null;this.l=a.metersPerUnit;var b=ac,c=a.code,d=bc||window.proj4;if("function"==typeof d&&void 0===b[c]){var e=d.defs(c);if(void 0!==e){void 0!==e.axis&&void 0===a.axisOrientation&&
|
|
36
|
-
(this.h=e.axis);void 0===a.metersPerUnit&&(this.l=e.to_meter);void 0===a.units&&(this.b=e.units);for(var f in b)b=d.defs(f),void 0!==b&&(a=cc(f),b===e?dc([a,this]):(b=d(f,c),ec(a,this,b.forward,b.inverse)))}}}k=$b.prototype;k.Sf=function(){return this.f};k.A=function(){return this.g};k.rg=function(){return this.b};k.fb=function(){return this.l||Zb[this.b]};k.tg=function(){return this.o};k.Yg=function(){return this.a};k.Vi=function(a){this.a=a;this.c=!(!a||!this.g)};
|
|
37
|
-
k.Nh=function(a){this.g=a;this.c=!(!this.a||!a)};k.hj=function(a){this.o=a};k.Ui=function(a){this.B=a};k.lg=function(a,b){if("degrees"==this.b)return a;var c=fc(this,cc("EPSG:4326")),d=[b[0]-a/2,b[1],b[0]+a/2,b[1],b[0],b[1]-a/2,b[0],b[1]+a/2],d=c(d,d,2),c=(Xb(d.slice(0,2),d.slice(2,4))+Xb(d.slice(4,6),d.slice(6,8)))/2,d=this.fb();void 0!==d&&(c/=d);return c};k.getPointResolution=function(a,b){return this.B(a,b)};var ac={},gc={},bc=null;
|
|
38
|
-
function dc(a){hc(a);a.forEach(function(b){a.forEach(function(a){b!==a&&ic(b,a,jc)})})}function kc(){var a=lc,b=mc,c=nc;oc.forEach(function(d){a.forEach(function(a){ic(d,a,b);ic(a,d,c)})})}function pc(a){ac[a.f]=a;ic(a,a,jc)}function hc(a){var b=[];a.forEach(function(a){b.push(pc(a))})}function qc(a){return a?"string"===typeof a?cc(a):a:cc("EPSG:3857")}function ic(a,b,c){a=a.f;b=b.f;a in gc||(gc[a]={});gc[a][b]=c}function ec(a,b,c,d){a=cc(a);b=cc(b);ic(a,b,rc(c));ic(b,a,rc(d))}
|
|
39
|
-
function rc(a){return function(b,c,d){var e=b.length;d=void 0!==d?d:2;c=void 0!==c?c:Array(e);var f,g;for(g=0;g<e;g+=d)for(f=a([b[g],b[g+1]]),c[g]=f[0],c[g+1]=f[1],f=d-1;2<=f;--f)c[g+f]=b[g+f];return c}}function cc(a){var b;if(a instanceof $b)b=a;else if("string"===typeof a){b=ac[a];var c=bc||window.proj4;void 0===b&&"function"==typeof c&&void 0!==c.defs(a)&&(b=new $b({code:a}),pc(b))}return b||null}function sc(a,b){if(a===b)return!0;var c=a.b===b.b;return a.f===b.f?c:fc(a,b)===jc&&c}
|
|
40
|
-
function tc(a,b){var c=cc(a),d=cc(b);return fc(c,d)}function fc(a,b){var c=a.f,d=b.f,e;c in gc&&d in gc[c]&&(e=gc[c][d]);void 0===e&&(e=uc);return e}function uc(a,b){if(void 0!==b&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function jc(a,b){var c;if(void 0!==b){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c}function vc(a,b,c){return tc(b,c)(a,void 0,a.length)}function wc(a,b,c){b=tc(b,c);return Tb(a,b)};function xc(){Ra.call(this);this.o=rb();this.w=-1;this.g={};this.l=this.h=0}v(xc,Ra);k=xc.prototype;k.Ja=function(a,b){var c=b?b:[NaN,NaN];this.Ia(a[0],a[1],c,Infinity);return c};k.Aa=function(a){return this.jb(a[0],a[1])};k.jb=Vb;k.A=function(a){this.w!=this.f&&(this.o=this.kc(this.o),this.w=this.f);var b=this.o;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};k.Ma=function(a){return this.pc(a*a)};k.transform=function(a,b){this.nb(tc(a,b));return this};function yc(a,b,c,d,e,f){for(var g=f?f:[],h=0;b<c;b+=d){var l=a[b],m=a[b+1];g[h++]=e[0]*l+e[2]*m+e[4];g[h++]=e[1]*l+e[3]*m+e[5]}f&&g.length!=h&&(g.length=h);return g};function A(){xc.call(this);this.a="XY";this.v=2;this.j=null}v(A,xc);function zc(a){var b;"XY"==a?b=2:"XYZ"==a||"XYM"==a?b=3:"XYZM"==a&&(b=4);return b}k=A.prototype;k.jb=Vb;k.kc=function(a){var b=this.j,c=this.j.length,d=this.v;a=Bb(a);return Eb(a,b,0,c,d)};k.Sa=function(){return this.j.slice(0,this.v)};k.Ua=function(){return this.j.slice(this.j.length-this.v)};k.Va=function(){return this.a};
|
|
41
|
-
k.pc=function(a){this.l!=this.f&&(wa(this.g),this.h=0,this.l=this.f);if(0>a||0!==this.h&&a<=this.h)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=this.sb(a);if(c.j.length<this.j.length)return this.g[b]=c;this.h=a;return this};k.sb=function(){return this};function Ac(a,b,c){a.v=zc(b);a.a=b;a.j=c}
|
|
42
|
-
function Bc(a,b,c,d){if(b)c=zc(b);else{for(b=0;b<d;++b){if(0===c.length){a.a="XY";a.v=2;return}c=c[0]}c=c.length;var e;2==c?e="XY":3==c?e="XYZ":4==c&&(e="XYZM");b=e}a.a=b;a.v=c}k.nb=function(a){this.j&&(a(this.j,this.j,this.v),this.s())};k.rotate=function(a,b){var c=this.j;if(c){for(var d=c.length,e=this.v,f=c?c:[],g=Math.cos(a),h=Math.sin(a),l=b[0],m=b[1],n=0,p=0;p<d;p+=e){var q=c[p]-l,u=c[p+1]-m;f[n++]=l+q*g-u*h;f[n++]=m+q*h+u*g;for(q=p+2;q<p+e;++q)f[n++]=c[q]}c&&f.length!=n&&(f.length=n);this.s()}};
|
|
43
|
-
k.scale=function(a,b,c){var d=b;void 0===d&&(d=a);var e=c;e||(e=Ob(this.A()));if(c=this.j){b=c.length;for(var f=this.v,g=c?c:[],h=e[0],e=e[1],l=0,m=0;m<b;m+=f){var n=c[m]-h,p=c[m+1]-e;g[l++]=h+a*n;g[l++]=e+d*p;for(n=m+2;n<m+f;++n)g[l++]=c[n]}c&&g.length!=l&&(g.length=l);this.s()}};k.translate=function(a,b){var c=this.j;if(c){var d=c.length,e=this.v,f=c?c:[],g=0,h,l;for(h=0;h<d;h+=e)for(f[g++]=c[h]+a,f[g++]=c[h+1]+b,l=h+2;l<h+e;++l)f[g++]=c[l];c&&f.length!=g&&(f.length=g);this.s()}};function Cc(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(g*h-f*l),f=h,g=l;return e/2}function Dc(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+Cc(a,b,h,d);b=h}return e};function Ec(a,b,c,d,e,f,g){var h=a[b],l=a[b+1],m=a[c]-h,n=a[c+1]-l;if(0!==m||0!==n)if(f=((e-h)*m+(f-l)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=na(a[b+e],a[c+e],f);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d}function Fc(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],l=a[b+1],f=ka(f,g,h,l);f>e&&(e=f);f=h;g=l}return e}function Gc(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=Fc(a,b,h,d,e);b=h}return e}
|
|
44
|
-
function Hc(a,b,c,d,e,f,g,h,l,m,n){if(b==c)return m;var p;if(0===e){p=ka(g,h,a[b],a[b+1]);if(p<m){for(n=0;n<d;++n)l[n]=a[b+n];l.length=d;return p}return m}for(var q=n?n:[NaN,NaN],u=b+d;u<c;)if(Ec(a,u-d,u,d,g,h,q),p=ka(g,h,q[0],q[1]),p<m){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d;u+=d}else u+=d*Math.max((Math.sqrt(p)-Math.sqrt(m))/e|0,1);if(f&&(Ec(a,c-d,b,d,g,h,q),p=ka(g,h,q[0],q[1]),p<m)){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d}return m}
|
|
45
|
-
function Ic(a,b,c,d,e,f,g,h,l,m,n){n=n?n:[NaN,NaN];var p,q;p=0;for(q=c.length;p<q;++p){var u=c[p];m=Hc(a,b,u,d,e,f,g,h,l,m,n);b=u}return m};function Jc(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function Kc(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h;for(h=0;h<d;++h)a[b++]=g[h]}return b}function Lc(a,b,c,d,e){e=e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=Kc(a,b,c[g],d),e[f++]=b;e.length=f;return e};function Mc(a,b,c,d,e){e=void 0!==e?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function Nc(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var l=c[g];e[f++]=Mc(a,b,l,d,e[f]);b=l}e.length=f;return e};function Oc(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var l=Array(h);l[0]=1;l[h-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var p=c.pop(),q=c.pop(),u=0,z=a[q],t=a[q+1],y=a[p],da=a[p+1];for(n=q+d;n<p;n+=d){var Q;Q=a[n];var R=a[n+1],ba=z,ma=t,C=y-ba,qa=da-ma;if(0!==C||0!==qa){var ra=((Q-ba)*C+(R-ma)*qa)/(C*C+qa*qa);1<ra?(ba=y,ma=da):0<ra&&(ba+=C*ra,ma+=qa*ra)}Q=ka(Q,R,ba,ma);Q>u&&(m=n,u=Q)}u>e&&(l[(m-b)/d]=1,q+d<m&&c.push(q,m),m+d<p&&c.push(m,p))}for(n=0;n<
|
|
46
|
-
h;++n)l[n]&&(f[g++]=a[b+n*d],f[g++]=a[b+n*d+1]);return g}
|
|
47
|
-
function Pc(a,b,c,d,e,f,g,h){var l,m;l=0;for(m=c.length;l<m;++l){var n=c[l];a:{var p=a,q=n,u=d,z=e,t=f;if(b!=q){var y=z*Math.round(p[b]/z),da=z*Math.round(p[b+1]/z);b+=u;t[g++]=y;t[g++]=da;var Q,R;do if(Q=z*Math.round(p[b]/z),R=z*Math.round(p[b+1]/z),b+=u,b==q){t[g++]=Q;t[g++]=R;break a}while(Q==y&&R==da);for(;b<q;){var ba,ma;ba=z*Math.round(p[b]/z);ma=z*Math.round(p[b+1]/z);b+=u;if(ba!=Q||ma!=R){var C=Q-y,qa=R-da,ra=ba-y,X=ma-da;C*X==qa*ra&&(0>C&&ra<C||C==ra||0<C&&ra>C)&&(0>qa&&X<qa||qa==X||0<qa&&
|
|
48
|
-
X>qa)||(t[g++]=Q,t[g++]=R,y=Q,da=R);Q=ba;R=ma}}t[g++]=Q;t[g++]=R}}h.push(g);b=n}return g};function B(a,b){A.call(this);this.b=this.i=-1;this.ca(a,b)}v(B,A);k=B.prototype;k.clone=function(){var a=new B(null);Ac(a,this.a,this.j.slice());a.s();return a};k.Ia=function(a,b,c,d){if(d<vb(this.A(),a,b))return d;this.b!=this.f&&(this.i=Math.sqrt(Fc(this.j,0,this.j.length,this.v,0)),this.b=this.f);return Hc(this.j,0,this.j.length,this.v,this.i,!0,a,b,c,d)};k.Eh=function(){return Cc(this.j,0,this.j.length,this.v)};k.P=function(){return Mc(this.j,0,this.j.length,this.v)};
|
|
49
|
-
k.sb=function(a){var b=[];b.length=Oc(this.j,0,this.j.length,this.v,a,b,0);a=new B(null);Ac(a,"XY",b);a.s();return a};k.L=function(){return"LinearRing"};k.ca=function(a,b){a?(Bc(this,b,a,1),this.j||(this.j=[]),this.j.length=Kc(this.j,0,a,this.v)):Ac(this,"XY",null);this.s()};function D(a,b){A.call(this);this.ca(a,b)}v(D,A);k=D.prototype;k.clone=function(){var a=new D(null);Ac(a,this.a,this.j.slice());a.s();return a};k.Ia=function(a,b,c,d){var e=this.j;a=ka(a,b,e[0],e[1]);if(a<d){d=this.v;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};k.P=function(){return this.j?this.j.slice():[]};k.kc=function(a){var b=this.j,c=b[0],b=b[1];return Ab(c,b,c,b,a)};k.L=function(){return"Point"};k.oa=function(a){return xb(a,this.j[0],this.j[1])};
|
|
50
|
-
k.ca=function(a,b){a?(Bc(this,b,a,0),this.j||(this.j=[]),this.j.length=Jc(this.j,a)):Ac(this,"XY",null);this.s()};function Qc(a,b,c,d,e){return!Fb(e,function(e){return!Rc(a,b,c,d,e[0],e[1])})}function Rc(a,b,c,d,e,f){for(var g=!1,h=a[c-d],l=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];l>f!=n>f&&e<(m-h)*(f-l)/(n-l)+h&&(g=!g);h=m;l=n}return g}function Sc(a,b,c,d,e,f){if(0===c.length||!Rc(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(Rc(a,c[b-1],c[b],d,e,f))return!1;return!0};function Tc(a,b,c,d,e,f,g){var h,l,m,n,p,q=e[f+1],u=[],z=c[0];m=a[z-d];p=a[z-d+1];for(h=b;h<z;h+=d){n=a[h];l=a[h+1];if(q<=p&&l<=q||p<=q&&q<=l)m=(q-p)/(l-p)*(n-m)+m,u.push(m);m=n;p=l}z=NaN;p=-Infinity;u.sort(Xa);m=u[0];h=1;for(l=u.length;h<l;++h){n=u[h];var t=Math.abs(n-m);t>p&&(m=(m+n)/2,Sc(a,b,c,d,m,q)&&(z=m,p=t));m=n}isNaN(z)&&(z=e[f]);return g?(g.push(z,q),g):[z,q]};function Uc(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],l;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(l=e.call(f,g,h))return l;g[0]=h[0];g[1]=h[1]}return!1};function Vc(a,b,c,d,e){var f=Eb(rb(),a,b,c,d);return Rb(e,f)?yb(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:Uc(a,b,c,d,function(a,b){var c=!1,d=zb(e,a),f=zb(e,b);if(1===d||1===f)c=!0;else{var p=e[0],q=e[1],u=e[2],z=e[3],t=b[0],y=b[1],da=(y-a[1])/(t-a[0]);f&2&&!(d&2)&&(c=t-(y-z)/da,c=c>=p&&c<=u);c||!(f&4)||d&4||(c=y-(t-u)*da,c=c>=q&&c<=z);c||!(f&8)||d&8||(c=t-(y-q)/da,c=c>=p&&c<=u);c||!(f&16)||d&16||(c=y-(t-p)*da,c=c>=q&&c<=z)}return c}):!1}
|
|
51
|
-
function Wc(a,b,c,d,e){var f=c[0];if(!(Vc(a,b,f,d,e)||Rc(a,b,f,d,e[0],e[1])||Rc(a,b,f,d,e[0],e[3])||Rc(a,b,f,d,e[2],e[1])||Rc(a,b,f,d,e[2],e[3])))return!1;if(1===c.length)return!0;b=1;for(f=c.length;b<f;++b)if(Qc(a,c[b-1],c[b],d,e))return!1;return!0};function Xc(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(h-f)*(l+g),f=h,g=l;return 0<e}function Yc(a,b,c,d){var e=0;d=void 0!==d?d:!1;var f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],e=Xc(a,e,h,c);if(0===f){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=h}return!0}
|
|
52
|
-
function Zc(a,b,c,d,e){e=void 0!==e?e:!1;var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=Xc(a,b,h,d);if(0===f?e&&l||!e&&!l:e&&!l||!e&&l)for(var l=a,m=h,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=l[b+p];l[b+p]=l[m-n+p];l[m-n+p]=q}b+=n;m-=n}b=h}return b}function $c(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=Zc(a,e,b[f],c,d);return e};function E(a,b){A.call(this);this.fa=[];this.i=-1;this.u=null;this.F=this.C=this.D=-1;this.b=null;this.ca(a,b)}v(E,A);k=E.prototype;k.Kf=function(a){this.j?Za(this.j,a.j):this.j=a.j.slice();this.fa.push(this.j.length);this.s()};k.clone=function(){var a=new E(null);ad(a,this.a,this.j.slice(),this.fa.slice());return a};
|
|
53
|
-
k.Ia=function(a,b,c,d){if(d<vb(this.A(),a,b))return d;this.C!=this.f&&(this.D=Math.sqrt(Gc(this.j,0,this.fa,this.v,0)),this.C=this.f);return Ic(this.j,0,this.fa,this.v,this.D,!0,a,b,c,d)};k.jb=function(a,b){return Sc(bd(this),0,this.fa,this.v,a,b)};k.Hh=function(){return Dc(bd(this),0,this.fa,this.v)};k.P=function(a){var b;void 0!==a?(b=bd(this).slice(),Zc(b,0,this.fa,this.v,a)):b=this.j;return Nc(b,0,this.fa,this.v)};
|
|
54
|
-
function cd(a){if(a.i!=a.f){var b=Ob(a.A());a.u=Tc(bd(a),0,a.fa,a.v,b,0);a.i=a.f}return a.u}k.$f=function(){return new D(cd(this))};k.eg=function(){return this.fa.length};k.we=function(a){if(0>a||this.fa.length<=a)return null;var b=new B(null);Ac(b,this.a,this.j.slice(0===a?0:this.fa[a-1],this.fa[a]));b.s();return b};k.xe=function(){var a=this.a,b=this.j,c=this.fa,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=new B(null),m=l;Ac(m,a,b.slice(e,h));m.s();d.push(l);e=h}return d};
|
|
55
|
-
function bd(a){if(a.F!=a.f){var b=a.j;Yc(b,a.fa,a.v)?a.b=b:(a.b=b.slice(),a.b.length=Zc(a.b,0,a.fa,a.v));a.F=a.f}return a.b}k.sb=function(a){var b=[],c=[];b.length=Pc(this.j,0,this.fa,this.v,Math.sqrt(a),b,0,c);a=new E(null);ad(a,"XY",b,c);return a};k.L=function(){return"Polygon"};k.oa=function(a){return Wc(bd(this),0,this.fa,this.v,a)};
|
|
56
|
-
k.ca=function(a,b){if(a){Bc(this,b,a,2);this.j||(this.j=[]);var c=Lc(this.j,0,a,this.v,this.fa);this.j.length=0===c.length?0:c[c.length-1];this.s()}else ad(this,"XY",null,this.fa)};function ad(a,b,c,d){Ac(a,b,c);a.fa=d;a.s()}function dd(a){var b=a[0],c=a[1],d=a[2];a=a[3];b=[b,c,b,a,d,a,d,c,b,c];c=new E(null);ad(c,"XY",b,[b.length]);return c};function F(a){Ra.call(this);a=a||{};this.g=[0,0];var b={};b[ed]=void 0!==a.center?a.center:null;this.o=qc(a.projection);var c,d,e,f=void 0!==a.minZoom?a.minZoom:0;c=void 0!==a.maxZoom?a.maxZoom:28;var g=void 0!==a.zoomFactor?a.zoomFactor:2;if(void 0!==a.resolutions)c=a.resolutions,d=c[0],e=c[c.length-1],c=eb(c);else{d=qc(a.projection);e=d.A();var h=(e?Math.max(Mb(e),Nb(e)):360*Zb.degrees/d.fb())/256/Math.pow(2,0),l=h/Math.pow(2,28);d=a.maxResolution;void 0!==d?f=0:d=h/Math.pow(g,f);e=a.minResolution;
|
|
57
|
-
void 0===e&&(e=void 0!==a.maxZoom?void 0!==a.maxResolution?d/Math.pow(g,c):h/Math.pow(g,c):l);c=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,c-f);c=fb(g,d,c-f)}this.a=d;this.h=e;this.w=g;this.b=a.resolutions;this.i=f;f=void 0!==a.extent?pa(a.extent):sa;(void 0!==a.enableRotation?a.enableRotation:1)?(g=a.constrainRotation,g=void 0===g||!0===g?jb():!1===g?hb:"number"===typeof g?ib(g):hb):g=gb;this.l=new ta(f,c,g);void 0!==a.resolution?b[fd]=a.resolution:void 0!==a.zoom&&(b[fd]=this.constrainResolution(this.a,
|
|
58
|
-
a.zoom-this.i));b[gd]=void 0!==a.rotation?a.rotation:0;this.O(b)}v(F,Ra);k=F.prototype;k.lc=function(a){return this.l.center(a)};k.constrainResolution=function(a,b,c){return this.l.resolution(a,b||0,c||0)};k.constrainRotation=function(a,b){return this.l.rotation(a,b||0)};k.Ea=function(){return this.get(ed)};function hd(a,b){return void 0!==b?(b[0]=a.g[0],b[1]=a.g[1],b):a.g.slice()}
|
|
59
|
-
k.fe=function(a){var b=this.Ea();ha(b,1);var c=this.T();ha(void 0!==c,2);var d=this.Ba();ha(void 0!==d,3);return Pb(b,c,d,a)};k.xh=function(){return this.a};k.yh=function(){return this.h};k.ja=function(){return this.o};k.T=function(){return this.get(fd)};k.zh=function(){return this.b};function id(a,b){return Math.max(Mb(a)/b[0],Nb(a)/b[1])}function jd(a){var b=a.a,c=Math.log(b/a.h)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}k.Ba=function(){return this.get(gd)};
|
|
60
|
-
function kd(a){var b=a.a,c=Math.log(b/a.h)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}k.J=function(){var a=this.Ea(),b=this.ja(),c=this.T(),d=this.Ba();return{center:a.slice(),projection:void 0!==b?b:null,resolution:c,rotation:d}};k.ug=function(){var a,b=this.T();if(void 0!==b&&b>=this.h&&b<=this.a){a=this.i||0;var c,d;if(this.b){d=Ya(this.b,b,1);a+=d;if(d==this.b.length-1)return a;c=this.b[d];d=c/this.b[d+1]}else c=this.a,d=this.w;a+=Math.log(c/b)/Math.log(d)}return a};
|
|
61
|
-
k.Qf=function(a,b,c){a instanceof A||(ha(Array.isArray(a),24),ha(!Lb(a),25),a=dd(a));var d=c||{};c=void 0!==d.padding?d.padding:[0,0,0,0];var e=void 0!==d.constrainResolution?d.constrainResolution:!0,f=void 0!==d.nearest?d.nearest:!1,g;void 0!==d.minResolution?g=d.minResolution:void 0!==d.maxZoom?g=this.constrainResolution(this.a,d.maxZoom-this.i,0):g=0;var h=a.j,l=this.Ba(),d=Math.cos(-l),l=Math.sin(-l),m=Infinity,n=Infinity,p=-Infinity,q=-Infinity;a=a.v;for(var u=0,z=h.length;u<z;u+=a)var t=h[u]*
|
|
62
|
-
d-h[u+1]*l,y=h[u]*l+h[u+1]*d,m=Math.min(m,t),n=Math.min(n,y),p=Math.max(p,t),q=Math.max(q,y);b=id([m,n,p,q],[b[0]-c[1]-c[3],b[1]-c[0]-c[2]]);b=isNaN(b)?g:Math.max(b,g);e&&(g=this.constrainResolution(b,0,0),!f&&g<b&&(g=this.constrainResolution(g,-1,0)),b=g);this.Xa(b);l=-l;f=(m+p)/2+(c[1]-c[3])/2*b;c=(n+q)/2+(c[0]-c[2])/2*b;this.La([f*d-c*l,c*d+f*l])};
|
|
63
|
-
k.Of=function(a,b,c){var d=this.Ba(),e=Math.cos(-d),d=Math.sin(-d),f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var g=this.T(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.La([f*e-a*d,a*e+f*d])};k.rotate=function(a,b){if(void 0!==b){var c,d=this.Ea();void 0!==d&&(c=[d[0]-b[0],d[1]-b[1]],ob(c,a-this.Ba()),kb(c,b));this.La(c)}this.zd(a)};k.La=function(a){this.set(ed,a)};function ld(a,b){a.g[1]+=b}k.Xa=function(a){this.set(fd,a)};k.zd=function(a){this.set(gd,a)};
|
|
64
|
-
k.ij=function(a){a=this.constrainResolution(this.a,a-this.i,0);this.Xa(a)};var ed="center",fd="resolution",gd="rotation";function md(a){return Math.pow(a,3)}function nd(a){return 1-md(1-a)}function od(a){return 3*a*a-2*a*a*a}function pd(a){return a}function qd(a){return.5>a?od(2*a):1-od(2*(a-.5))};function rd(a){var b=a.source,c=a.start?a.start:Date.now(),d=b[0],e=b[1],f=void 0!==a.duration?a.duration:1E3,g=a.easing?a.easing:od;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[0]+=1,!0;if(b.time<c+f){var m=1-g((b.time-c)/f),n=d-b.viewState.center[0],p=e-b.viewState.center[1];b.animate=!0;b.viewState.center[0]+=m*n;b.viewState.center[1]+=m*p;b.viewHints[0]+=1;return!0}return!1}}
|
|
65
|
-
function sd(a){var b=a.rotation?a.rotation:0,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:od,f=a.anchor?a.anchor:null;return function(a,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){var l=1-e((h.time-c)/d),l=(b-h.viewState.rotation)*l;h.animate=!0;h.viewState.rotation+=l;if(f){var m=h.viewState.center;m[0]-=f[0];m[1]-=f[1];ob(m,l);kb(m,f)}h.viewHints[0]+=1;return!0}return!1}}
|
|
66
|
-
function td(a){var b=a.resolution,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:od;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),l=b-g.viewState.resolution;g.animate=!0;g.viewState.resolution+=h*l;g.viewHints[0]+=1;return!0}return!1}};function ud(a,b,c,d){this.H=a;this.M=b;this.N=c;this.R=d}function vd(a,b,c){return a.H<=b&&b<=a.M&&a.N<=c&&c<=a.R}function wd(a,b){return a.H<=b.M&&a.M>=b.H&&a.N<=b.R&&a.R>=b.N};function xd(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:b[0]=b[1]=a;return b};function yd(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.c=a.resolutions;ha(db(this.c,function(a,b){return b-a}),17);this.maxZoom=this.c.length-1;this.a=void 0!==a.origin?a.origin:null;this.b=null;void 0!==a.origins&&(this.b=a.origins,ha(this.b.length==this.c.length,20));var b=a.extent;void 0===b||this.a||this.b||(this.a=Jb(b));ha(!this.a&&this.b||this.a&&!this.b,18);this.g=null;void 0!==a.tileSizes&&(this.g=a.tileSizes,ha(this.g.length==this.c.length,19));this.h=void 0!==a.tileSize?a.tileSize:
|
|
67
|
-
this.g?null:256;ha(!this.h&&this.g||this.h&&!this.g,22);this.o=void 0!==b?b:null;this.f=null;this.i=[0,0];void 0!==a.sizes?this.f=a.sizes.map(function(a){return new ud(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):b&&zd(this,b)}var Ad=[0,0,0];k=yd.prototype;k.le=function(a,b,c){a=Bd(this,a,b);for(var d=a.H,e=a.M;d<=e;++d)for(var f=a.N,g=a.R;f<=g;++f)c([b,d,f])};
|
|
68
|
-
function Cd(a,b,c,d,e){e=a.Wa(b,e);for(b=b[0]-1;b>=a.minZoom;){if(c.call(null,b,Bd(a,e,b,d)))return!0;--b}return!1}k.A=function(){return this.o};k.ye=function(){return this.maxZoom};k.ze=function(){return this.minZoom};k.bc=function(a){return this.a?this.a:this.b[a]};k.T=function(a){return this.c[a]};k.Ze=function(){return this.c};function Dd(a,b,c,d){return b[0]<a.maxZoom?(d=a.Wa(b,d),Bd(a,d,b[0]+1,c)):null}
|
|
69
|
-
function Ed(a,b,c,d){Fd(a,b[0],b[1],c,!1,Ad);var e=Ad[1],f=Ad[2];Fd(a,b[2],b[3],c,!0,Ad);a=Ad[1];b=Ad[2];void 0!==d?(d.H=e,d.M=a,d.N=f,d.R=b):d=new ud(e,a,f,b);return d}function Bd(a,b,c,d){c=a.T(c);return Ed(a,b,c,d)}function Gd(a,b){var c=a.bc(b[0]),d=a.T(b[0]),e=xd(a.gb(b[0]),a.i);return[c[0]+(b[1]+.5)*e[0]*d,c[1]+(b[2]+.5)*e[1]*d]}k.Wa=function(a,b){var c=this.bc(a[0]),d=this.T(a[0]),e=xd(this.gb(a[0]),this.i),f=c[0]+a[1]*e[0]*d,c=c[1]+a[2]*e[1]*d;return Ab(f,c,f+e[0]*d,c+e[1]*d,b)};
|
|
70
|
-
k.Ee=function(a,b,c){return Fd(this,a[0],a[1],b,!1,c)};function Fd(a,b,c,d,e,f){var g=a.Vb(d),h=d/a.T(g),l=a.bc(g);a=xd(a.gb(g),a.i);b=h*Math.floor((b-l[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-l[1])/d+(e?0:.5))/a[1];e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;void 0!==f?(f[0]=g,f[1]=e,f[2]=c):f=[g,e,c];return f}k.rc=function(a,b,c){b=this.T(b);return Fd(this,a[0],a[1],b,!1,c)};k.gb=function(a){return this.h?this.h:this.g[a]};
|
|
71
|
-
k.Vb=function(a,b){return ia(Ya(this.c,a,b||0),this.minZoom,this.maxZoom)};function zd(a,b){for(var c=a.c.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=Bd(a,b,e);a.f=d};function Hd(a){var b=a.i;if(!b){var b=Id(a),c=Jd(b,void 0,void 0),b=new yd({extent:b,origin:Jb(b),resolutions:c,tileSize:void 0});a.i=b}return b}function Kd(a){var b={};ua(b,void 0!==a?a:{});void 0===b.extent&&(b.extent=cc("EPSG:3857").A());b.resolutions=Jd(b.extent,b.maxZoom,b.tileSize);delete b.maxZoom;return new yd(b)}function Jd(a,b,c){b=void 0!==b?b:42;var d=Nb(a);a=Mb(a);c=xd(void 0!==c?c:256);c=Math.max(a/c[0],d/c[1]);b+=1;d=Array(b);for(a=0;a<b;++a)d[a]=c/Math.pow(2,a);return d}
|
|
72
|
-
function Id(a){a=cc(a);var b=a.A();b||(a=180*Zb.degrees/a.fb(),b=Ab(-a,-a,a,a));return b};function Ld(a){this.f=a.html;this.c=a.tileRanges?a.tileRanges:null};function G(a){Ra.call(this);this.a=a?a:[];Md(this)}v(G,Ra);k=G.prototype;k.clear=function(){for(;0<this.vb();)this.pop()};k.yd=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};k.forEach=function(a,b){this.a.forEach(a,b)};k.ph=function(){return this.a};k.Le=function(a){return this.a[a]};k.vb=function(){return this.get(Nd)};k.vc=function(a,b){this.a.splice(a,0,b);Md(this);this.c(new Od(Pd,b))};k.pop=function(){return this.Jd(this.vb()-1)};
|
|
73
|
-
k.push=function(a){var b=this.a.length;this.vc(b,a);return b};k.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.Jd(c)};k.Jd=function(a){var b=this.a[a];this.a.splice(a,1);Md(this);this.c(new Od(Qd,b));return b};k.Qi=function(a,b){var c=this.vb();if(a<c)c=this.a[a],this.a[a]=b,this.c(new Od(Qd,c)),this.c(new Od(Pd,b));else{for(;c<a;++c)this.vc(c,void 0);this.vc(a,b)}};function Md(a){a.set(Nd,a.a.length)}var Nd="length",Pd="add",Qd="remove";
|
|
74
|
-
function Od(a,b){La.call(this,a);this.element=b}v(Od,La);var Rd=/^#(?:[0-9a-f]{3}){1,2}$/i,Sd=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Td=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i,Ud=/^([a-z]*)$/i;function Vd(a){if("string"!==typeof a){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+(void 0===a[3]?1:a[3])+")"}return a}
|
|
75
|
-
var Xd=function(){var a={},b=0;return function(c){var d;if(a.hasOwnProperty(c))d=a[c];else{if(1024<=b){d=0;for(var e in a)0===(d++&3)&&(delete a[e],--b)}d=c;var f,g;Ud.exec(d)&&(e=document.createElement("div"),e.style.color=d,document.body.appendChild(e),d=getComputedStyle(e).color,document.body.removeChild(e));Rd.exec(d)?(f=d.length-1,ha(3==f||6==f,54),g=3==f?1:2,f=parseInt(d.substr(1+0*g,g),16),e=parseInt(d.substr(1+1*g,g),16),d=parseInt(d.substr(1+2*g,g),16),1==g&&(f=(f<<4)+f,e=(e<<4)+e,d=(d<<
|
|
76
|
-
4)+d),f=[f,e,d,1]):(g=Td.exec(d))?(f=Number(g[1]),e=Number(g[2]),d=Number(g[3]),g=Number(g[4]),f=Wd([f,e,d,g])):(g=Sd.exec(d))?(f=Number(g[1]),e=Number(g[2]),d=Number(g[3]),f=Wd([f,e,d,1])):ha(!1,14);d=f;a[c]=d;++b}return d}}();function Wd(a){var b=[];b[0]=ia(a[0]+.5|0,0,255);b[1]=ia(a[1]+.5|0,0,255);b[2]=ia(a[2]+.5|0,0,255);b[3]=ia(a[3],0,1);return b};function Yd(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Vd(a)};function Zd(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function $d(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function ae(a,b,c){La.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}v(ae,La);function be(a){Ra.call(this);this.element=a.element?a.element:null;this.a=this.F=null;this.u=[];this.render=a.render?a.render:ca;a.target&&(a=a.target,this.F="string"===typeof a?document.getElementById(a):a)}v(be,Ra);be.prototype.ka=function(){$d(this.element);Ra.prototype.ka.call(this)};
|
|
77
|
-
be.prototype.setMap=function(a){this.a&&$d(this.element);for(var b=0,c=this.u.length;b<c;++b)Ca(this.u[b]);this.u.length=0;if(this.a=a)(this.F?this.F:a.u).appendChild(this.element),this.render!==ca&&this.u.push(x(a,"postrender",this.render,this)),a.render()};function ce(a){a=a?a:{};this.D=document.createElement("UL");this.l=document.createElement("LI");this.D.appendChild(this.l);this.l.style.display="none";this.h=void 0!==a.collapsed?a.collapsed:!0;this.w=void 0!==a.collapsible?a.collapsible:!0;this.w||(this.h=!1);var b=void 0!==a.className?a.className:"ol-attribution",c=void 0!==a.tipLabel?a.tipLabel:"Attributions",d=void 0!==a.collapseLabel?a.collapseLabel:"\u00bb";"string"===typeof d?(this.i=document.createElement("span"),this.i.textContent=d):this.i=
|
|
78
|
-
d;d=void 0!==a.label?a.label:"i";"string"===typeof d?(this.o=document.createElement("span"),this.o.textContent=d):this.o=d;var e=this.w&&!this.h?this.i:this.o,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);x(d,"click",this.I,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.h&&this.w?" ol-collapsed":"")+(this.w?"":" ol-uncollapsible");c.appendChild(this.D);c.appendChild(d);be.call(this,{element:c,render:a.render?
|
|
79
|
-
a.render:de,target:a.target});this.C=!0;this.g={};this.b={};this.G={}}v(ce,be);
|
|
80
|
-
function de(a){if(a=a.frameState){var b,c,d,e,f,g,h,l,m,n,p,q=a.layerStatesArray,u=ua({},a.attributions),z={},t=a.viewState.projection;c=0;for(b=q.length;c<b;c++)if(g=q[c].layer.ga())if(n=w(g).toString(),m=g.i)for(d=0,e=m.length;d<e;d++)if(h=m[d],l=w(h).toString(),!(l in u)){if(f=a.usedTiles[n]){var y=g.Za(t);a:{p=h;var da=t;if(p.c){var Q,R,ba,ma=void 0;for(ma in f)if(ma in p.c){ba=f[ma];var C;Q=0;for(R=p.c[ma].length;Q<R;++Q){C=p.c[ma][Q];if(wd(C,ba)){p=!0;break a}var qa=Bd(y,Id(da),parseInt(ma,
|
|
81
|
-
10)),ra=qa.M-qa.H+1;if(ba.H<qa.H||ba.M>qa.M)if(wd(C,new ud(la(ba.H,ra),la(ba.M,ra),ba.N,ba.R))||ba.M-ba.H+1>ra&&wd(C,qa)){p=!0;break a}}}p=!1}else p=!0}}else p=!1;p?(l in z&&delete z[l],u[l]=h):z[l]=h}b=[u,z];c=b[0];b=b[1];for(var X in this.g)X in c?(this.b[X]||(this.g[X].style.display="",this.b[X]=!0),delete c[X]):X in b?(this.b[X]&&(this.g[X].style.display="none",delete this.b[X]),delete b[X]):($d(this.g[X]),delete this.g[X],delete this.b[X]);for(X in c)d=document.createElement("LI"),d.innerHTML=
|
|
82
|
-
c[X].f,this.D.appendChild(d),this.g[X]=d,this.b[X]=!0;for(X in b)d=document.createElement("LI"),d.innerHTML=b[X].f,d.style.display="none",this.D.appendChild(d),this.g[X]=d;X=!ya(this.b)||!ya(a.logos);this.C!=X&&(this.element.style.display=X?"":"none",this.C=X);X&&ya(this.b)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var fa;a=a.logos;X=this.G;for(fa in X)fa in a||($d(X[fa]),delete X[fa]);for(var Ba in a)b=a[Ba],b instanceof HTMLElement&&(this.l.appendChild(b),
|
|
83
|
-
X[Ba]=b),Ba in X||(fa=new Image,fa.src=Ba,""===b?c=fa:(c=document.createElement("a"),c.href=b,c.appendChild(fa)),this.l.appendChild(c),X[Ba]=c);this.l.style.display=ya(a)?"none":""}else this.C&&(this.element.style.display="none",this.C=!1)}ce.prototype.I=function(a){a.preventDefault();this.element.classList.toggle("ol-collapsed");if(this.h){a=this.o;var b=a.parentNode;b&&b.replaceChild(this.i,a)}else a=this.i,(b=a.parentNode)&&b.replaceChild(this.o,a);this.h=!this.h};function ee(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.b=null;"string"===typeof c?(this.b=document.createElement("span"),this.b.className="ol-compass",this.b.textContent=c):(this.b=c,this.b.classList.add("ol-compass"));var d=a.tipLabel?a.tipLabel:"Reset rotation",c=document.createElement("button");c.className=b+"-reset";c.setAttribute("type","button");c.title=d;c.appendChild(this.b);x(c,"click",ee.prototype.o,this);d=document.createElement("div");
|
|
84
|
-
d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:fe;this.h=a.resetNorth?a.resetNorth:void 0;be.call(this,{element:d,render:b,target:a.target});this.i=void 0!==a.duration?a.duration:250;this.g=void 0!==a.autoHide?a.autoHide:!0;this.l=void 0;this.g&&this.element.classList.add("ol-hidden")}v(ee,be);
|
|
85
|
-
ee.prototype.o=function(a){a.preventDefault();if(void 0!==this.h)this.h();else{a=this.a;var b=a.W();if(b){var c=b.Ba();void 0!==c&&(0<this.i&&(c%=2*Math.PI,c<-Math.PI&&(c+=2*Math.PI),c>Math.PI&&(c-=2*Math.PI),a.xa(sd({rotation:c,duration:this.i,easing:nd}))),b.zd(0))}}};
|
|
86
|
-
function fe(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.l){var b="rotate("+a+"rad)";if(this.g){var c=this.element.classList.contains("ol-hidden");c||0!==a?c&&0!==a&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.b.style.msTransform=b;this.b.style.webkitTransform=b;this.b.style.transform=b}this.l=a}};function ge(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-zoom",c=void 0!==a.delta?a.delta:1,d=void 0!==a.zoomInLabel?a.zoomInLabel:"+",e=void 0!==a.zoomOutLabel?a.zoomOutLabel:"\u2212",f=void 0!==a.zoomInTipLabel?a.zoomInTipLabel:"Zoom in",g=void 0!==a.zoomOutTipLabel?a.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=b+"-in";h.setAttribute("type","button");h.title=f;h.appendChild("string"===typeof d?document.createTextNode(d):d);x(h,"click",ge.prototype.g.bind(this,
|
|
87
|
-
c));d=document.createElement("button");d.className=b+"-out";d.setAttribute("type","button");d.title=g;d.appendChild("string"===typeof e?document.createTextNode(e):e);x(d,"click",ge.prototype.g.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);be.call(this,{element:c,target:a.target});this.b=void 0!==a.duration?a.duration:250}v(ge,be);
|
|
88
|
-
ge.prototype.g=function(a,b){b.preventDefault();var c=this.a,d=c.W();if(d){var e=d.T();e&&(0<this.b&&c.xa(td({resolution:e,duration:this.b,easing:nd})),c=d.constrainResolution(e,a),d.Xa(c))}};function he(a){a=a?a:{};var b=new G;(void 0!==a.zoom?a.zoom:1)&&b.push(new ge(a.zoomOptions));(void 0!==a.rotate?a.rotate:1)&&b.push(new ee(a.rotateOptions));(void 0!==a.attribution?a.attribution:1)&&b.push(new ce(a.attributionOptions));return b};var ie="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",je=-1!==ie.indexOf("firefox"),ke=-1!==ie.indexOf("safari")&&-1==ie.indexOf("chrom"),le=-1!==ie.indexOf("webkit")&&-1==ie.indexOf("edge"),me=-1!==ie.indexOf("macintosh"),ne=window.devicePixelRatio||1,oe=!1,pe=function(){if(!("HTMLCanvasElement"in window))return!1;try{var a=document.createElement("CANVAS").getContext("2d");return a?(void 0!==a.setLineDash&&(oe=!0),!0):!1}catch(b){return!1}}(),qe="ontouchstart"in window,re="PointerEvent"in
|
|
89
|
-
window,se=!!navigator.msPointerEnabled;function te(a,b){this.c=a;this.g=b};function ue(a){te.call(this,a,{mousedown:this.$g,mousemove:this.ah,mouseup:this.eh,mouseover:this.dh,mouseout:this.bh});this.f=a.a;this.a=[]}v(ue,te);function ve(a,b){for(var c=a.a,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var l=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=l)return!0}return!1}function we(a){var b=xe(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}k=ue.prototype;
|
|
90
|
-
k.$g=function(a){if(!ve(this,a)){if((1).toString()in this.f){var b=we(a);ye(this.c,"pointercancel",b,a);delete this.f[(1).toString()]}b=we(a);this.f[(1).toString()]=a;ye(this.c,"pointerdown",b,a)}};k.ah=function(a){if(!ve(this,a)){var b=we(a);ye(this.c,"pointermove",b,a)}};k.eh=function(a){if(!ve(this,a)){var b=this.f[(1).toString()];b&&b.button===a.button&&(b=we(a),ye(this.c,"pointerup",b,a),delete this.f[(1).toString()])}};k.dh=function(a){if(!ve(this,a)){var b=we(a);ze(this.c,b,a)}};
|
|
91
|
-
k.bh=function(a){if(!ve(this,a)){var b=we(a);Ae(this.c,b,a)}};function Be(a){te.call(this,a,{MSPointerDown:this.jh,MSPointerMove:this.kh,MSPointerUp:this.nh,MSPointerOut:this.lh,MSPointerOver:this.mh,MSPointerCancel:this.ih,MSGotPointerCapture:this.gh,MSLostPointerCapture:this.hh});this.f=a.a;this.a=["","unavailable","touch","pen","mouse"]}v(Be,te);function Ce(a,b){var c=b;"number"===typeof b.pointerType&&(c=xe(b,b),c.pointerType=a.a[b.pointerType]);return c}k=Be.prototype;
|
|
92
|
-
k.jh=function(a){this.f[a.pointerId.toString()]=a;var b=Ce(this,a);ye(this.c,"pointerdown",b,a)};k.kh=function(a){var b=Ce(this,a);ye(this.c,"pointermove",b,a)};k.nh=function(a){var b=Ce(this,a);ye(this.c,"pointerup",b,a);delete this.f[a.pointerId.toString()]};k.lh=function(a){var b=Ce(this,a);Ae(this.c,b,a)};k.mh=function(a){var b=Ce(this,a);ze(this.c,b,a)};k.ih=function(a){var b=Ce(this,a);ye(this.c,"pointercancel",b,a);delete this.f[a.pointerId.toString()]};
|
|
93
|
-
k.hh=function(a){this.c.c(new De("lostpointercapture",a,a))};k.gh=function(a){this.c.c(new De("gotpointercapture",a,a))};function Ee(a){te.call(this,a,{pointerdown:this.xi,pointermove:this.yi,pointerup:this.Bi,pointerout:this.zi,pointerover:this.Ai,pointercancel:this.wi,gotpointercapture:this.vg,lostpointercapture:this.Zg})}v(Ee,te);k=Ee.prototype;k.xi=function(a){Fe(this.c,a)};k.yi=function(a){Fe(this.c,a)};k.Bi=function(a){Fe(this.c,a)};k.zi=function(a){Fe(this.c,a)};k.Ai=function(a){Fe(this.c,a)};k.wi=function(a){Fe(this.c,a)};k.Zg=function(a){Fe(this.c,a)};k.vg=function(a){Fe(this.c,a)};function De(a,b,c){La.call(this,a);this.c=b;a=c?c:{};this.buttons=Ge(a);this.pressure=He(a,this.buttons);this.bubbles="bubbles"in a?a.bubbles:!1;this.cancelable="cancelable"in a?a.cancelable:!1;this.view="view"in a?a.view:null;this.detail="detail"in a?a.detail:null;this.screenX="screenX"in a?a.screenX:0;this.screenY="screenY"in a?a.screenY:0;this.clientX="clientX"in a?a.clientX:0;this.clientY="clientY"in a?a.clientY:0;this.button="button"in a?a.button:0;this.relatedTarget="relatedTarget"in a?a.relatedTarget:
|
|
94
|
-
null;this.pointerId="pointerId"in a?a.pointerId:0;this.width="width"in a?a.width:0;this.height="height"in a?a.height:0;this.pointerType="pointerType"in a?a.pointerType:"";this.isPrimary="isPrimary"in a?a.isPrimary:!1;b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}v(De,La);function Ge(a){if(a.buttons||Ie)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}
|
|
95
|
-
function He(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var Ie=!1;try{Ie=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function Je(a,b){te.call(this,a,{touchstart:this.nj,touchmove:this.mj,touchend:this.lj,touchcancel:this.kj});this.f=a.a;this.i=b;this.a=void 0;this.h=0;this.b=void 0}v(Je,te);k=Je.prototype;k.cf=function(){this.h=0;this.b=void 0};
|
|
96
|
-
function Ke(a,b,c){b=xe(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.h;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.pressure=c.webkitForce||c.force||.5;b.isPrimary=a.a===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
|
|
97
|
-
function Le(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.changedTouches),f=e.length,g,h;for(g=0;g<f;++g)h=Ke(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
|
|
98
|
-
k.nj=function(a){var b=a.touches,c=Object.keys(this.f),d=c.length;if(d>=b.length){var e=[],f,g,h;for(f=0;f<d;++f){g=c[f];h=this.f[g];var l;if(!(l=1==g))a:{l=b.length;for(var m,n=0;n<l;n++)if(m=b[n],m.identifier===g-2){l=!0;break a}l=!1}l||e.push(h.out)}for(f=0;f<e.length;++f)this.Zc(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.f).length;if(0===c||1===c&&(1).toString()in this.f)this.a=b.identifier,void 0!==this.b&&clearTimeout(this.b);Me(this,a);this.h++;Le(this,a,this.si)};
|
|
99
|
-
k.si=function(a,b){this.f[b.pointerId]={target:b.target,out:b,$e:b.target};var c=this.c;b.bubbles=!0;ye(c,"pointerover",b,a);c=this.c;b.bubbles=!1;ye(c,"pointerenter",b,a);ye(this.c,"pointerdown",b,a)};k.mj=function(a){a.preventDefault();Le(this,a,this.fh)};
|
|
100
|
-
k.fh=function(a,b){var c=this.f[b.pointerId];if(c){var d=c.out,e=c.$e;ye(this.c,"pointermove",b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(Ae(this.c,d,a),ze(this.c,b,a)):(b.target=e,b.relatedTarget=null,this.Zc(a,b)));c.out=b;c.$e=b.target}};k.lj=function(a){Me(this,a);Le(this,a,this.oj)};
|
|
101
|
-
k.oj=function(a,b){ye(this.c,"pointerup",b,a);this.c.out(b,a);Ne(this.c,b,a);delete this.f[b.pointerId];b.isPrimary&&(this.a=void 0,this.b=setTimeout(this.cf.bind(this),200))};k.kj=function(a){Le(this,a,this.Zc)};k.Zc=function(a,b){ye(this.c,"pointercancel",b,a);this.c.out(b,a);Ne(this.c,b,a);delete this.f[b.pointerId];b.isPrimary&&(this.a=void 0,this.b=setTimeout(this.cf.bind(this),200))};
|
|
102
|
-
function Me(a,b){var c=a.i.a,d=b.changedTouches[0];if(a.a===d.identifier){var e=[d.clientX,d.clientY];c.push(e);setTimeout(function(){$a(c,e)},2500)}};function Oe(a){Na.call(this);this.h=a;this.a={};this.g={};this.f=[];re?Pe(this,new Ee(this)):se?Pe(this,new Be(this)):(a=new ue(this),Pe(this,a),qe&&Pe(this,new Je(this,a)));a=this.f.length;for(var b,c=0;c<a;c++)b=this.f[c],Qe(this,Object.keys(b.g))}v(Oe,Na);function Pe(a,b){var c=Object.keys(b.g);c&&(c.forEach(function(a){var c=b.g[a];c&&(this.g[a]=c.bind(b))},a),a.f.push(b))}Oe.prototype.b=function(a){var b=this.g[a.type];b&&b(a)};
|
|
103
|
-
function Qe(a,b){b.forEach(function(a){x(this.h,a,this.b,this)},a)}function Re(a,b){b.forEach(function(a){Ia(this.h,a,this.b,this)},a)}function xe(a,b){for(var c={},d,e=0,f=Se.length;e<f;e++)d=Se[e][0],c[d]=a[d]||b[d]||Se[e][1];return c}function Ne(a,b,c){b.bubbles=!1;ye(a,"pointerleave",b,c)}Oe.prototype.out=function(a,b){a.bubbles=!0;ye(this,"pointerout",a,b)};function Ae(a,b,c){a.out(b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||Ne(a,b,c)}
|
|
104
|
-
function ze(a,b,c){b.bubbles=!0;ye(a,"pointerover",b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||(b.bubbles=!1,ye(a,"pointerenter",b,c))}function ye(a,b,c,d){a.c(new De(b,d,c))}function Fe(a,b){a.c(new De(b.type,b,b))}Oe.prototype.ka=function(){for(var a=this.f.length,b,c=0;c<a;c++)b=this.f[c],Re(this,Object.keys(b.g));Na.prototype.ka.call(this)};
|
|
105
|
-
var Se=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Te(a,b,c,d,e){ae.call(this,a,b,e);this.originalEvent=c;this.pixel=b.md(c);this.coordinate=b.za(this.pixel);this.dragging=void 0!==d?d:!1}v(Te,ae);Te.prototype.preventDefault=function(){ae.prototype.preventDefault.call(this);this.originalEvent.preventDefault()};Te.prototype.stopPropagation=function(){ae.prototype.stopPropagation.call(this);this.originalEvent.stopPropagation()};function Ue(a,b,c,d,e){Te.call(this,a,b,c.c,d,e);this.c=c}v(Ue,Te);
|
|
106
|
-
function Ve(a){Na.call(this);this.b=a;this.i=0;this.B=!1;this.g=[];this.a=null;a=this.b.a;this.u=0;this.w={};this.h=new Oe(a);this.f=null;this.l=x(this.h,"pointerdown",this.Lg,this);this.o=x(this.h,"pointermove",this.Fi,this)}v(Ve,Na);function We(a,b){var c=new Ue(Xe,a.b,b);a.c(c);0!==a.i?(clearTimeout(a.i),a.i=0,c=new Ue(Ye,a.b,b),a.c(c)):a.i=setTimeout(function(){this.i=0;var a=new Ue(Ze,this.b,b);this.c(a)}.bind(a),250)}
|
|
107
|
-
function $e(a,b){b.type==af||b.type==bf?delete a.w[b.pointerId]:b.type==cf&&(a.w[b.pointerId]=!0);a.u=Object.keys(a.w).length}k=Ve.prototype;k.Je=function(a){$e(this,a);var b=new Ue(af,this.b,a);this.c(b);!this.B&&0===a.button&&We(this,this.a);0===this.u&&(this.g.forEach(Ca),this.g.length=0,this.B=!1,this.a=null,Ka(this.f),this.f=null)};
|
|
108
|
-
k.Lg=function(a){$e(this,a);var b=new Ue(cf,this.b,a);this.c(b);this.a=a;0===this.g.length&&(this.f=new Oe(document),this.g.push(x(this.f,df,this.uh,this),x(this.f,af,this.Je,this),x(this.h,bf,this.Je,this)))};k.uh=function(a){if(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY){this.B=!0;var b=new Ue(ef,this.b,a,this.B);this.c(b)}a.preventDefault()};k.Fi=function(a){this.c(new Ue(a.type,this.b,a,!(!this.a||a.clientX==this.a.clientX&&a.clientY==this.a.clientY)))};
|
|
109
|
-
k.ka=function(){this.o&&(Ca(this.o),this.o=null);this.l&&(Ca(this.l),this.l=null);this.g.forEach(Ca);this.g.length=0;this.f&&(Ka(this.f),this.f=null);this.h&&(Ka(this.h),this.h=null);Na.prototype.ka.call(this)};var Ze="singleclick",Xe="click",Ye="dblclick",ef="pointerdrag",df="pointermove",cf="pointerdown",af="pointerup",bf="pointercancel",ff={Hj:Ze,wj:Xe,xj:Ye,Aj:ef,Dj:df,zj:cf,Gj:af,Fj:"pointerover",Ej:"pointerout",Bj:"pointerenter",Cj:"pointerleave",yj:bf};function gf(a,b){Na.call(this);this.Pa=a;this.state=b;this.f=null;this.key=""}v(gf,Na);function hf(a){a.c("change")}gf.prototype.getKey=function(){return this.key+"/"+this.Pa};function jf(a){if(!a.f)return a;var b=a.f;do{if(b.J()==kf)return b;b=b.f}while(b);return a}gf.prototype.J=function(){return this.state};var kf=2;function lf(a,b){this.l=a;this.b=b;this.c=[];this.f=[];this.a={}}lf.prototype.clear=function(){this.c.length=0;this.f.length=0;wa(this.a)};lf.prototype.i=function(a){ha(!(this.b(a)in this.a),31);var b=this.l(a);return Infinity!=b?(this.c.push(a),this.f.push(b),this.a[this.b(a)]=!0,mf(this,0,this.c.length-1),!0):!1};function nf(a,b){for(var c=a.c,d=a.f,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var l=2*b+1,m=2*b+2,l=m<e&&d[m]<d[l]?m:l;c[b]=c[l];d[b]=d[l];b=l}c[b]=f;d[b]=g;mf(a,h,b)}
|
|
110
|
-
function mf(a,b,c){var d=a.c;a=a.f;for(var e=d[c],f=a[c];c>b;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f};function of(a,b){lf.call(this,function(b){return a.apply(null,b)},function(a){return a[0].getKey()});this.o=b;this.h=0;this.g={}}v(of,lf);of.prototype.i=function(a){var b=lf.prototype.i.call(this,a);b&&x(a[0],"change",this.B,this);return b};of.prototype.B=function(a){a=a.target;var b=a.J();if(b===kf||3===b||4===b||5===b)Ia(a,"change",this.B,this),a=a.getKey(),a in this.g&&(delete this.g[a],--this.h),this.o()};
|
|
111
|
-
function pf(a,b,c){for(var d=0,e,f;a.h<b&&d<c&&0<a.c.length;){e=a;var g=e.c,h=e.f;f=g[0];1==g.length?(g.length=0,h.length=0):(g[0]=g.pop(),h[0]=h.pop(),nf(e,0));g=e.b(f);delete e.a[g];e=f[0];f=e.getKey();0!==e.J()||f in a.g||(a.g[f]=!0,++a.h,++d,e.load())}};function qf(){this.c=[];this.f=this.a=0}function rf(a,b){var c=a.f,d=.05-c,e=Math.log(.05/a.f)/-.005;return rd({source:b,duration:e,easing:function(a){return c*(Math.exp(-.005*a*e)-1)/d}})};function sf(a){Ra.call(this);this.w=null;this.I(!0);this.handleEvent=a.handleEvent}v(sf,Ra);sf.prototype.F=function(){return this.get("active")};sf.prototype.sa=function(){return this.w};sf.prototype.I=function(a){this.set("active",a)};sf.prototype.setMap=function(a){this.w=a};function tf(a,b,c,d,e){if(void 0!==c){var f=b.Ba(),g=b.Ea();void 0!==f&&g&&e&&0<e&&(a.xa(sd({rotation:f,duration:e,easing:nd})),d&&a.xa(rd({source:g,duration:e,easing:nd})));b.rotate(c,d)}}
|
|
112
|
-
function uf(a,b,c,d,e){var f=b.T();c=b.constrainResolution(f,c,0);vf(a,b,c,d,e)}function vf(a,b,c,d,e){if(c){var f=b.T(),g=b.Ea();void 0!==f&&g&&c!==f&&e&&0<e&&(a.xa(td({resolution:f,duration:e,easing:nd})),d&&a.xa(rd({source:g,duration:e,easing:nd})));if(d){var h;a=b.Ea();e=b.T();void 0!==a&&void 0!==e&&(h=[d[0]-c*(d[0]-a[0])/e,d[1]-c*(d[1]-a[1])/e]);b.La(h)}b.Xa(c)}};function wf(a){a=a?a:{};this.a=a.delta?a.delta:1;sf.call(this,{handleEvent:xf});this.b=void 0!==a.duration?a.duration:250}v(wf,sf);function xf(a){var b=!1,c=a.originalEvent;if(a.type==Ye){var b=a.map,d=a.coordinate,c=c.shiftKey?-this.a:this.a,e=b.W();uf(b,e,c,d,this.b);a.preventDefault();b=!0}return!b};function yf(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function zf(a){a=a.originalEvent;return 0==a.button&&!(le&&me&&a.ctrlKey)}function Af(a){return"pointermove"==a.type}function Bf(a){return a.type==Ze}function Cf(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey}function Df(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}
|
|
113
|
-
function Ef(a){a=a.originalEvent.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function Ff(a){ha(a.c,56);return"mouse"==a.c.pointerType}function Gf(a){a=a.c;return a.isPrimary&&0===a.button};function Hf(a){a=a?a:{};sf.call(this,{handleEvent:a.handleEvent?a.handleEvent:If});this.Tc=a.handleDownEvent?a.handleDownEvent:Vb;this.Uc=a.handleDragEvent?a.handleDragEvent:ca;this.Vc=a.handleMoveEvent?a.handleMoveEvent:ca;this.sf=a.handleUpEvent?a.handleUpEvent:Vb;this.C=!1;this.ea={};this.h=[]}v(Hf,sf);function Jf(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}
|
|
114
|
-
function If(a){if(!(a instanceof Ue))return!0;var b=!1,c=a.type;if(c===cf||c===ef||c===af)c=a.c,a.type==af?delete this.ea[c.pointerId]:a.type==cf?this.ea[c.pointerId]=c:c.pointerId in this.ea&&(this.ea[c.pointerId]=c),this.h=xa(this.ea);this.C&&(a.type==ef?this.Uc(a):a.type==af&&(this.C=this.sf(a)));a.type==cf?(this.C=a=this.Tc(a),b=this.Fb(a)):a.type==df&&this.Vc(a);return!b}Hf.prototype.Fb=function(a){return a};function Kf(a){Hf.call(this,{handleDownEvent:Lf,handleDragEvent:Mf,handleUpEvent:Nf});a=a?a:{};this.a=a.kinetic;this.b=this.g=null;this.l=a.condition?a.condition:Cf;this.i=!1}v(Kf,Hf);function Mf(a){var b=Jf(this.h);this.a&&this.a.c.push(b[0],b[1],Date.now());if(this.b){var c=this.b[0]-b[0],d=b[1]-this.b[1];a=a.map.W();var e=a.J(),d=c=[c,d],f=e.resolution;d[0]*=f;d[1]*=f;ob(c,e.rotation);kb(c,e.center);c=a.lc(c);a.La(c)}this.b=b}
|
|
115
|
-
function Nf(a){var b=a.map;a=b.W();if(0===this.h.length){var c;if(c=!this.i&&this.a)if(c=this.a,6>c.c.length)c=!1;else{var d=Date.now()-100,e=c.c.length-3;if(c.c[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.c[f+2]>d;)f-=3;var d=c.c[e+2]-c.c[f+2],g=c.c[e]-c.c[f],e=c.c[e+1]-c.c[f+1];c.a=Math.atan2(e,g);c.f=Math.sqrt(g*g+e*e)/d;c=.05<c.f}}c?(c=(.05-this.a.f)/-.005,e=this.a.a,f=a.Ea(),this.g=rf(this.a,f),b.xa(this.g),f=b.Na(f),b=b.za([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),b=a.lc(b),a.La(b)):b.render();ld(a,
|
|
116
|
-
-1);return!1}this.b=null;return!0}function Lf(a){if(0<this.h.length&&this.l(a)){var b=a.map,c=b.W();this.b=null;this.C||ld(c,1);this.g&&$a(b.G,this.g)&&(c.La(a.frameState.viewState.center),this.g=null);this.a&&(a=this.a,a.c.length=0,a.a=0,a.f=0);this.i=1<this.h.length;return!0}return!1}Kf.prototype.Fb=Vb;function Of(a){a=a?a:{};Hf.call(this,{handleDownEvent:Pf,handleDragEvent:Qf,handleUpEvent:Rf});this.b=a.condition?a.condition:yf;this.a=void 0;this.g=void 0!==a.duration?a.duration:250}v(Of,Hf);function Qf(a){if(Ff(a)){var b=a.map,c=b.wb();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(void 0!==this.a){a=c-this.a;var d=b.W(),e=d.Ba();tf(b,d,e-a)}this.a=c}}
|
|
117
|
-
function Rf(a){if(!Ff(a))return!0;a=a.map;var b=a.W();ld(b,-1);var c=b.Ba(),d=this.g,c=b.constrainRotation(c,0);tf(a,b,c,void 0,d);return!1}function Pf(a){return Ff(a)&&zf(a)&&this.b(a)?(ld(a.map.W(),1),this.a=void 0,!0):!1}Of.prototype.Fb=Vb;function Sf(a){this.b=null;this.f=document.createElement("div");this.f.style.position="absolute";this.f.className="ol-box "+a;this.a=this.g=this.c=null}v(Sf,Ja);Sf.prototype.ka=function(){this.setMap(null)};function Tf(a){var b=a.g,c=a.a;a=a.f.style;a.left=Math.min(b[0],c[0])+"px";a.top=Math.min(b[1],c[1])+"px";a.width=Math.abs(c[0]-b[0])+"px";a.height=Math.abs(c[1]-b[1])+"px"}
|
|
118
|
-
Sf.prototype.setMap=function(a){if(this.c){this.c.C.removeChild(this.f);var b=this.f.style;b.left=b.top=b.width=b.height="inherit"}(this.c=a)&&this.c.C.appendChild(this.f)};function Uf(a){var b=a.g,c=a.a,b=[b,[b[0],c[1]],c,[c[0],b[1]]].map(a.c.za,a.c);b[4]=b[0].slice();a.b?a.b.ca([b]):a.b=new E([b])}Sf.prototype.K=function(){return this.b};function Vf(a){Hf.call(this,{handleDownEvent:Wf,handleDragEvent:Xf,handleUpEvent:Yf});a=a?a:{};this.a=new Sf(a.className||"ol-dragbox");this.b=null;this.o=a.condition?a.condition:Ub;this.l=a.boxEndCondition?a.boxEndCondition:Zf}v(Vf,Hf);function Zf(a,b,c){a=c[0]-b[0];b=c[1]-b[1];return 64<=a*a+b*b}function Xf(a){if(Ff(a)){var b=this.a,c=a.pixel;b.g=this.b;b.a=c;Uf(b);Tf(b);this.c(new $f(ag,a.coordinate,a))}}Vf.prototype.K=function(){return this.a.K()};Vf.prototype.i=ca;
|
|
119
|
-
function Yf(a){if(!Ff(a))return!0;this.a.setMap(null);this.l(a,this.b,a.pixel)&&(this.i(a),this.c(new $f(bg,a.coordinate,a)));return!1}function Wf(a){if(Ff(a)&&zf(a)&&this.o(a)){this.b=a.pixel;this.a.setMap(a.map);var b=this.a,c=this.b;b.g=this.b;b.a=c;Uf(b);Tf(b);this.c(new $f(cg,a.coordinate,a));return!0}return!1}var cg="boxstart",ag="boxdrag",bg="boxend";function $f(a,b,c){La.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}v($f,La);function dg(a){a=a?a:{};var b=a.condition?a.condition:Df;this.g=void 0!==a.duration?a.duration:200;this.u=void 0!==a.out?a.out:!1;Vf.call(this,{condition:b,className:a.className||"ol-dragzoom"})}v(dg,Vf);
|
|
120
|
-
dg.prototype.i=function(){var a=this.w,b=a.W(),c=a.wb(),d=this.K().A();if(this.u){var e=b.fe(c),d=[a.Na(Gb(d)),a.Na(Ib(d))],f=Bb(void 0),g,h;g=0;for(h=d.length;g<h;++g)sb(f,d[g]);Sb(e,1/id(f,c));d=e}c=b.constrainResolution(id(d,c));e=b.T();f=b.Ea();a.xa(td({resolution:e,duration:this.g,easing:nd}));a.xa(rd({source:f,duration:this.g,easing:nd}));b.La(Ob(d));b.Xa(c)};function eg(a){sf.call(this,{handleEvent:fg});a=a||{};this.a=function(a){return Cf(a)&&Ef(a)};this.b=void 0!==a.condition?a.condition:this.a;this.g=void 0!==a.duration?a.duration:100;this.h=void 0!==a.pixelDelta?a.pixelDelta:128}v(eg,sf);
|
|
121
|
-
function fg(a){var b=!1;if("keydown"==a.type){var c=a.originalEvent.keyCode;if(this.b(a)&&(40==c||37==c||39==c||38==c)){var d=a.map,b=d.W(),e=b.T()*this.h,f=0,g=0;40==c?g=-e:37==c?f=-e:39==c?f=e:g=e;c=[f,g];ob(c,b.Ba());e=this.g;if(f=b.Ea())e&&0<e&&d.xa(rd({source:f,duration:e,easing:pd})),d=b.lc([f[0]+c[0],f[1]+c[1]]),b.La(d);a.preventDefault();b=!0}}return!b};function gg(a){sf.call(this,{handleEvent:hg});a=a?a:{};this.b=a.condition?a.condition:Ef;this.a=a.delta?a.delta:1;this.g=void 0!==a.duration?a.duration:100}v(gg,sf);function hg(a){var b=!1;if("keydown"==a.type||"keypress"==a.type){var c=a.originalEvent.charCode;if(this.b(a)&&(43==c||45==c)){var b=a.map,c=43==c?this.a:-this.a,d=b.W();uf(b,d,c,void 0,this.g);a.preventDefault();b=!0}}return!b};function ig(a){sf.call(this,{handleEvent:jg});a=a||{};this.a=0;this.l=void 0!==a.duration?a.duration:250;this.o=void 0!==a.useAnchor?a.useAnchor:!0;this.g=null;this.h=this.b=void 0}v(ig,sf);
|
|
122
|
-
function jg(a){var b=!1;if("wheel"==a.type||"mousewheel"==a.type){var b=a.map,c=a.originalEvent;this.o&&(this.g=a.coordinate);var d;"wheel"==a.type?(d=c.deltaY,je&&c.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(d/=ne),c.deltaMode===WheelEvent.DOM_DELTA_LINE&&(d*=40)):"mousewheel"==a.type&&(d=-c.wheelDeltaY,ke&&(d/=3));this.a+=d;void 0===this.b&&(this.b=Date.now());d=Math.max(80-(Date.now()-this.b),0);clearTimeout(this.h);this.h=setTimeout(this.i.bind(this,b),d);a.preventDefault();b=!0}return!b}
|
|
123
|
-
ig.prototype.i=function(a){var b=ia(this.a,-1,1),c=a.W();uf(a,c,-b,this.g,this.l);this.a=0;this.g=null;this.h=this.b=void 0};function kg(a){Hf.call(this,{handleDownEvent:lg,handleDragEvent:mg,handleUpEvent:ng});a=a||{};this.b=null;this.g=void 0;this.a=!1;this.i=0;this.o=void 0!==a.threshold?a.threshold:.3;this.l=void 0!==a.duration?a.duration:250}v(kg,Hf);
|
|
124
|
-
function mg(a){var b=0,c=this.h[0],d=this.h[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.g&&(b=c-this.g,this.i+=b,!this.a&&Math.abs(this.i)>this.o&&(this.a=!0));this.g=c;a=a.map;c=a.a.getBoundingClientRect();d=Jf(this.h);d[0]-=c.left;d[1]-=c.top;this.b=a.za(d);this.a&&(c=a.W(),d=c.Ba(),a.render(),tf(a,c,d+b,this.b))}
|
|
125
|
-
function ng(a){if(2>this.h.length){a=a.map;var b=a.W();ld(b,-1);if(this.a){var c=b.Ba(),d=this.b,e=this.l,c=b.constrainRotation(c,0);tf(a,b,c,d,e)}return!1}return!0}function lg(a){return 2<=this.h.length?(a=a.map,this.b=null,this.g=void 0,this.a=!1,this.i=0,this.C||ld(a.W(),1),a.render(),!0):!1}kg.prototype.Fb=Vb;function og(a){Hf.call(this,{handleDownEvent:pg,handleDragEvent:qg,handleUpEvent:rg});a=a?a:{};this.b=null;this.i=void 0!==a.duration?a.duration:400;this.a=void 0;this.g=1}v(og,Hf);function qg(a){var b=1,c=this.h[0],d=this.h[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);void 0!==this.a&&(b=this.a/e);this.a=e;1!=b&&(this.g=b);a=a.map;var e=a.W(),c=e.T(),d=a.a.getBoundingClientRect(),f=Jf(this.h);f[0]-=d.left;f[1]-=d.top;this.b=a.za(f);a.render();vf(a,e,c*b,this.b)}
|
|
126
|
-
function rg(a){if(2>this.h.length){a=a.map;var b=a.W();ld(b,-1);var c=b.T(),d=this.b,e=this.i,c=b.constrainResolution(c,0,this.g-1);vf(a,b,c,d,e);return!1}return!0}function pg(a){return 2<=this.h.length?(a=a.map,this.b=null,this.a=void 0,this.g=1,this.C||ld(a.W(),1),a.render(),!0):!1}og.prototype.Fb=Vb;function sg(a){a=a?a:{};var b=new G,c=new qf;(void 0!==a.altShiftDragRotate?a.altShiftDragRotate:1)&&b.push(new Of);(void 0!==a.doubleClickZoom?a.doubleClickZoom:1)&&b.push(new wf({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.dragPan?a.dragPan:1)&&b.push(new Kf({kinetic:c}));(void 0!==a.pinchRotate?a.pinchRotate:1)&&b.push(new kg);(void 0!==a.pinchZoom?a.pinchZoom:1)&&b.push(new og({duration:a.zoomDuration}));if(void 0!==a.keyboard?a.keyboard:1)b.push(new eg),b.push(new gg({delta:a.zoomDelta,
|
|
127
|
-
duration:a.zoomDuration}));(void 0!==a.mouseWheelZoom?a.mouseWheelZoom:1)&&b.push(new ig({duration:a.zoomDuration}));(void 0!==a.shiftDragZoom?a.shiftDragZoom:1)&&b.push(new dg({duration:a.zoomDuration}));return b};function tg(a){Ra.call(this);var b=ua({},a);b.opacity=void 0!==a.opacity?a.opacity:1;b.visible=void 0!==a.visible?a.visible:!0;b.zIndex=void 0!==a.zIndex?a.zIndex:0;b.maxResolution=void 0!==a.maxResolution?a.maxResolution:Infinity;b.minResolution=void 0!==a.minResolution?a.minResolution:0;this.O(b);this.a={layer:this,xd:!0}}v(tg,Ra);
|
|
128
|
-
function ug(a){a.a.opacity=ia(a.Zb(),0,1);a.a.jj=a.pd();a.a.visible=a.hb();a.a.extent=a.A();a.a.zIndex=a.$b();a.a.maxResolution=a.Xb();a.a.minResolution=Math.max(a.Yb(),0);return a.a}k=tg.prototype;k.A=function(){return this.get("extent")};k.Xb=function(){return this.get("maxResolution")};k.Yb=function(){return this.get("minResolution")};k.Zb=function(){return this.get("opacity")};k.hb=function(){return this.get("visible")};k.$b=function(){return this.get("zIndex")};
|
|
129
|
-
k.zc=function(a){this.set("extent",a)};k.Oc=function(a){this.set("maxResolution",a)};k.Pc=function(a){this.set("minResolution",a)};k.Ac=function(a){this.set("opacity",a)};k.Bc=function(a){this.set("visible",a)};k.Cc=function(a){this.set("zIndex",a)};function H(a){var b=a||{};a=ua({},b);delete a.layers;b=b.layers;tg.call(this,a);this.g=[];this.b={};x(this,Ua(vg),this.Hg,this);b?Array.isArray(b)?b=new G(b.slice()):ha(b instanceof G,43):b=new G;this.gf(b)}v(H,tg);k=H.prototype;k.tc=function(){this.hb()&&this.s()};
|
|
130
|
-
k.Hg=function(){this.g.forEach(Ca);this.g.length=0;var a=this.xb();this.g.push(x(a,Pd,this.Gg,this),x(a,Qd,this.Ig,this));for(var b in this.b)this.b[b].forEach(Ca);wa(this.b);var a=a.a,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.b[w(d).toString()]=[x(d,"propertychange",this.tc,this),x(d,"change",this.tc,this)];this.s()};k.Gg=function(a){a=a.element;var b=w(a).toString();this.b[b]=[x(a,"propertychange",this.tc,this),x(a,"change",this.tc,this)];this.s()};
|
|
131
|
-
k.Ig=function(a){a=w(a.element).toString();this.b[a].forEach(Ca);delete this.b[a];this.s()};k.xb=function(){return this.get(vg)};k.gf=function(a){this.set(vg,a)};
|
|
132
|
-
k.nd=function(a){var b=void 0!==a?a:[],c=b.length;this.xb().forEach(function(a){a.nd(b)});a=ug(this);var d,e;for(d=b.length;c<d;c++)e=b[c],e.opacity*=a.opacity,e.visible=e.visible&&a.visible,e.maxResolution=Math.min(e.maxResolution,a.maxResolution),e.minResolution=Math.max(e.minResolution,a.minResolution),void 0!==a.extent&&(e.extent=void 0!==e.extent?Qb(e.extent,a.extent):a.extent);return b};k.pd=function(){return"ready"};var vg="layers";function wg(a){$b.call(this,{code:a,units:"m",extent:xg,global:!0,worldExtent:yg})}v(wg,$b);wg.prototype.getPointResolution=function(a,b){return a/ja(b[1]/6378137)};var zg=6378137*Math.PI,xg=[-zg,-zg,zg,zg],yg=[-180,-85,180,85],lc="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(a){return new wg(a)});
|
|
133
|
-
function mc(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}function nc(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b};var Ag=new Wb(6378137);function Bg(a,b){$b.call(this,{code:a,units:"degrees",extent:Cg,axisOrientation:b,global:!0,metersPerUnit:Dg,worldExtent:Cg})}v(Bg,$b);Bg.prototype.getPointResolution=function(a){return a};
|
|
134
|
-
var Cg=[-180,-90,180,90],Dg=Math.PI*Ag.radius/180,oc=[new Bg("CRS:84"),new Bg("EPSG:4326","neu"),new Bg("urn:ogc:def:crs:EPSG::4326","neu"),new Bg("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Bg("urn:ogc:def:crs:OGC:1.3:CRS84"),new Bg("urn:ogc:def:crs:OGC:2:84"),new Bg("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Bg("urn:x-ogc:def:crs:EPSG:4326","neu")];function Eg(){dc(lc);dc(oc);kc()};function Fg(a,b,c,d,e){La.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}v(Fg,La);function Gg(a){var b=ua({},a);delete b.source;tg.call(this,b);this.h=this.g=this.b=null;a.map&&this.setMap(a.map);x(this,Ua("source"),this.Qg,this);this.Qc(a.source?a.source:null)}v(Gg,tg);k=Gg.prototype;k.nd=function(a){a=a?a:[];a.push(ug(this));return a};k.ga=function(){return this.get("source")||null};k.pd=function(){var a=this.ga();return a?a.J():"undefined"};k.Mh=function(){this.s()};k.Qg=function(){this.h&&(Ca(this.h),this.h=null);var a=this.ga();a&&(this.h=x(a,"change",this.Mh,this));this.s()};
|
|
135
|
-
k.setMap=function(a){this.b&&(Ca(this.b),this.b=null);a||this.s();this.g&&(Ca(this.g),this.g=null);a&&(this.b=x(a,"precompose",function(a){var c=ug(this);c.xd=!1;c.zIndex=Infinity;a.frameState.layerStatesArray.push(c);a.frameState.layerStates[w(this)]=c},this),this.g=x(this,"change",a.render,a),this.s())};k.Qc=function(a){this.set("source",a)};function Hg(){this.c={};this.f=0}Hg.prototype.clear=function(){this.c={};this.f=0};Hg.prototype.get=function(a,b,c){a=b+":"+a+":"+(c?Vd(c):"null");return a in this.c?this.c[a]:null};Hg.prototype.set=function(a,b,c,d){this.c[b+":"+a+":"+(c?Vd(c):"null")]=d;++this.f};var Ig=new Hg;var Jg=Array(6);function Kg(){return[1,0,0,1,0,0]}function Lg(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],l=b[0],m=b[1],n=b[2],p=b[3],q=b[4],u=b[5];a[0]=c*l+e*m;a[1]=d*l+f*m;a[2]=c*n+e*p;a[3]=d*n+f*p;a[4]=c*q+e*u+g;a[5]=d*q+f*u+h}function Mg(a,b,c,d,e){a[0]=b;a[1]=0;a[2]=0;a[3]=c;a[4]=d;a[5]=e;return a}function Ng(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];return a}function Og(a,b){var c=b[0],d=b[1];b[0]=a[0]*c+a[2]*d+a[4];b[1]=a[1]*c+a[3]*d+a[5];return b}
|
|
136
|
-
function Pg(a,b,c,d,e,f,g,h){var l=Math.sin(f);f=Math.cos(f);a[0]=d*f;a[1]=e*l;a[2]=-d*l;a[3]=e*f;a[4]=g*d*f-h*d*l+b;a[5]=g*e*l+h*e*f+c;return a}function Qg(a){var b=a[0]*a[3]-a[1]*a[2];ha(0!==b,32);var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5];a[0]=f/b;a[1]=-d/b;a[2]=-e/b;a[3]=c/b;a[4]=(e*h-f*g)/b;a[5]=-(c*h-d*g)/b;return a};function Rg(a,b){this.h=b;this.f={};this.b={}}v(Rg,Ja);k=Rg.prototype;k.ka=function(){for(var a in this.f)Ka(this.f[a])};function Sg(){if(32<Ig.f){var a=0,b,c;for(b in Ig.c)c=Ig.c[b],0!==(a++&3)||Oa(c)||(delete Ig.c[b],--Ig.f)}}
|
|
137
|
-
k.ya=function(a,b,c,d,e,f){function g(a,e){var f=w(a).toString(),g=b.layerStates[w(e)].xd;if(!(f in b.skippedFeatureUids)||g)return c.call(d,a,g?e:null)}var h,l=b.viewState,m=l.resolution,n=l.projection,l=a;if(n.c){var n=n.A(),p=Mb(n),q=a[0];if(q<n[0]||q>n[2])l=[q+p*Math.ceil((n[0]-q)/p),a[1]]}n=b.layerStatesArray;for(p=n.length-1;0<=p;--p){var u=n[p],q=u.layer;if(u.visible&&m>=u.minResolution&&m<u.maxResolution&&e.call(f,q)&&(u=Tg(this,q),q.ga()&&(h=u.ya(q.ga().w?l:a,b,g,d)),h))return h}};
|
|
138
|
-
function Tg(a,b){var c=w(b).toString();if(c in a.f)return a.f[c];var d;d=b instanceof I?new Ug(b):b instanceof J?new Vg(b):b instanceof K?new Wg(b):null;a.f[c]=d;a.b[c]=x(d,"change",a.Fg,a);return d}k.Fg=function(){this.h.render()};k.bf=ca;k.Li=function(a,b){for(var c in this.f)if(!(b&&c in b.layerStates)){var d=c,e=this.f[d];delete this.f[d];Ca(this.b[d]);delete this.b[d];Ka(e)}};function cb(a,b){return a.zIndex-b.zIndex};function I(a){Gg.call(this,a?a:{})}v(I,Gg);function J(a){a=a?a:{};var b=ua({},a);delete b.preload;delete b.useInterimTilesOnError;Gg.call(this,b);this.i(void 0!==a.preload?a.preload:0);this.l(void 0!==a.useInterimTilesOnError?a.useInterimTilesOnError:!0)}v(J,Gg);J.prototype.o=function(){return this.get(Xg)};J.prototype.i=function(a){this.set(Xg,a)};J.prototype.w=function(){return this.get(Yg)};J.prototype.l=function(a){this.set(Yg,a)};var Xg="preload",Yg="useInterimTilesOnError";function Zg(a,b,c,d,e){Na.call(this);this.h=e;this.extent=a;this.g=c;this.resolution=b;this.state=d}v(Zg,Na);function $g(a){a.c("change")}Zg.prototype.A=function(){return this.extent};Zg.prototype.T=function(){return this.resolution};Zg.prototype.J=function(){return this.state};function ah(a,b,c,d,e,f,g){Zg.call(this,a,b,c,bh,d);this.B=e;this.f=new Image;null!==f&&(this.f.crossOrigin=f);this.b={};this.a=null;this.state=bh;this.i=g}v(ah,Zg);ah.prototype.$a=function(a){if(void 0!==a){var b;a=w(a);if(a in this.b)return this.b[a];ya(this.b)?b=this.f:b=this.f.cloneNode(!1);return this.b[a]=b}return this.f};ah.prototype.l=function(){this.state=ch;this.a.forEach(Ca);this.a=null;$g(this)};
|
|
139
|
-
ah.prototype.o=function(){void 0===this.resolution&&(this.resolution=Nb(this.extent)/this.f.height);this.state=dh;this.a.forEach(Ca);this.a=null;$g(this)};ah.prototype.load=function(){if(this.state==bh||this.state==ch)this.state=eh,$g(this),this.a=[x(this.f,"error",this.l,this,!0),x(this.f,"load",this.o,this,!0)],this.i(this,this.B)};var bh=0,eh=1,dh=2,ch=3;var fh=[0,0,0,1],gh=[],hh=[0,0,0,1];function ih(a,b,c,d){0!==b&&(a.translate(c,d),a.rotate(b),a.translate(-c,-d))};function jh(a){this.B=a.opacity;this.C=a.rotateWithView;this.o=a.rotation;this.l=a.scale;this.w=a.snapToPixel}k=jh.prototype;k.Ec=function(){return this.B};k.Fc=function(){return this.C};k.Gc=function(){return this.o};k.Hc=function(){return this.l};k.qc=function(){return this.w};k.Ab=function(a){this.B=a};k.Ic=function(a){this.o=a};k.Bb=function(a){this.l=a};function kh(a){a=a||{};this.i=a.atlasManager;this.h=this.b=this.g=null;this.a=void 0!==a.fill?a.fill:null;this.c=void 0!==a.stroke?a.stroke:null;this.f=a.radius;this.aa=[0,0];this.u=this.F=this.D=this.S=null;lh(this,this.i);jh.call(this,{opacity:1,rotateWithView:!1,rotation:0,scale:1,snapToPixel:void 0!==a.snapToPixel?a.snapToPixel:!0})}v(kh,jh);k=kh.prototype;
|
|
140
|
-
k.clone=function(){var a=new kh({fill:this.a?this.a.clone():void 0,stroke:this.c?this.c.clone():void 0,radius:this.f,snapToPixel:this.w,atlasManager:this.i});a.Ab(this.B);a.Bb(this.l);return a};k.pb=function(){return this.S};k.Ph=function(){return this.a};k.Cd=function(){return this.h};k.ab=function(){return this.b};k.ac=function(){return dh};k.zb=function(){return this.aa};k.Qh=function(){return this.f};k.bb=function(){return this.D};k.Rh=function(){return this.c};
|
|
141
|
-
k.Sh=function(a){this.f=a;lh(this,this.i)};k.wd=ca;k.load=ca;k.Qd=ca;
|
|
142
|
-
function lh(a,b){var c,d=null,e,f=0;a.c&&(e=Yd(a.c.f),f=a.c.b,void 0===f&&(f=1),d=a.c.a,oe||(d=null));var g=2*(a.f+f)+1,d={strokeStyle:e,fc:f,size:g,lineDash:d};if(void 0===b)e=Zd(g,g),a.b=e.canvas,c=g=a.b.width,a.Ve(d,e,0,0),a.u=[d.size,d.size],a.a?a.h=a.b:(e=Zd(d.size,d.size),a.h=e.canvas,a.Ue(d,e,0,0));else{g=Math.round(g);(e=!a.a)&&(c=a.Ue.bind(a,d));var f=a.c?mh(a.c):"-",h=a.a?nh(a.a):"-";a.g&&f==a.g[1]&&h==a.g[2]&&a.f==a.g[3]||(a.g=["c"+f+h+(void 0!==a.f?a.f.toString():"-"),f,h,a.f]);d=b.add(a.g[0],
|
|
143
|
-
g,g,a.Ve.bind(a,d),c);a.b=d.image;a.aa=[d.offsetX,d.offsetY];c=d.image.width;e?(a.h=d.uc,a.u=[d.uc.width,d.uc.height]):(a.h=a.b,a.u=[c,c])}a.S=[g/2,g/2];a.D=[g,g];a.F=[c,c]}k.Ve=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();b.arc(a.size/2,a.size/2,this.f,0,2*Math.PI,!0);this.a&&(b.fillStyle=Yd(this.a.c),b.fill());this.c&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.fc,a.lineDash&&b.setLineDash(a.lineDash),b.stroke());b.closePath()};
|
|
144
|
-
k.Ue=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();b.arc(a.size/2,a.size/2,this.f,0,2*Math.PI,!0);b.fillStyle=Vd(fh);b.fill();this.c&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.fc,a.lineDash&&b.setLineDash(a.lineDash),b.stroke());b.closePath()};function oh(a){a=a||{};this.c=void 0!==a.color?a.color:null;this.f=void 0}oh.prototype.clone=function(){var a=this.c;return new oh({color:a&&a.slice?a.slice():a||void 0})};oh.prototype.a=function(){return this.c};oh.prototype.b=function(a){this.c=a;this.f=void 0};function nh(a){void 0===a.f&&(a.f=a.c instanceof CanvasPattern||a.c instanceof CanvasGradient?w(a.c).toString():"f"+(a.c?Vd(a.c):"-"));return a.f};function ph(a){a=a||{};this.f=void 0!==a.color?a.color:null;this.g=a.lineCap;this.a=void 0!==a.lineDash?a.lineDash:null;this.h=a.lineJoin;this.i=a.miterLimit;this.b=a.width;this.c=void 0}k=ph.prototype;k.clone=function(){var a=this.f;return new ph({color:a&&a.slice?a.slice():a||void 0,lineCap:this.g,lineDash:this.a?this.a.slice():void 0,lineJoin:this.h,miterLimit:this.i,width:this.b})};k.Zh=function(){return this.f};k.bg=function(){return this.g};k.$h=function(){return this.a};k.cg=function(){return this.h};
|
|
145
|
-
k.fg=function(){return this.i};k.ai=function(){return this.b};k.bi=function(a){this.f=a;this.c=void 0};k.Xi=function(a){this.g=a;this.c=void 0};k.setLineDash=function(a){this.a=a;this.c=void 0};k.Yi=function(a){this.h=a;this.c=void 0};k.Zi=function(a){this.i=a;this.c=void 0};k.gj=function(a){this.b=a;this.c=void 0};
|
|
146
|
-
function mh(a){void 0===a.c&&(a.c="s",a.c=a.f?"string"===typeof a.f?a.c+a.f:a.c+w(a.f).toString():a.c+"-",a.c+=","+(void 0!==a.g?a.g.toString():"-")+","+(a.a?a.a.toString():"-")+","+(void 0!==a.h?a.h:"-")+","+(void 0!==a.i?a.i.toString():"-")+","+(void 0!==a.b?a.b.toString():"-"));return a.c};function qh(a){a=a||{};this.i=null;this.g=rh;void 0!==a.geometry&&this.Ye(a.geometry);this.b=void 0!==a.fill?a.fill:null;this.h=void 0!==a.image?a.image:null;this.a=void 0!==a.stroke?a.stroke:null;this.f=void 0!==a.text?a.text:null;this.c=a.zIndex}k=qh.prototype;k.clone=function(){var a=this.K();a&&a.clone&&(a=a.clone());return new qh({geometry:a,fill:this.b?this.b.clone():void 0,image:this.h?this.h.clone():void 0,stroke:this.a?this.a.clone():void 0,text:this.f?this.f.clone():void 0,zIndex:this.c})};
|
|
147
|
-
k.K=function(){return this.i};k.Xf=function(){return this.g};k.ci=function(){return this.b};k.di=function(){return this.h};k.ei=function(){return this.a};k.fi=function(){return this.f};k.gi=function(){return this.c};k.Ye=function(a){"function"===typeof a?this.g=a:"string"===typeof a?this.g=function(b){return b.get(a)}:a?a&&(this.g=function(){return a}):this.g=rh;this.i=a};k.hi=function(a){this.c=a};
|
|
148
|
-
function sh(a){if("function"!==typeof a){var b;Array.isArray(a)?b=a:(ha(a instanceof qh,41),b=[a]);a=function(){return b}}return a}var th=null;function uh(){if(!th){var a=new oh({color:"rgba(255,255,255,0.4)"}),b=new ph({color:"#3399CC",width:1.25});th=[new qh({image:new kh({fill:a,stroke:b,radius:5}),fill:a,stroke:b})]}return th}
|
|
149
|
-
function vh(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new qh({fill:new oh({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new qh({stroke:new ph({color:b,width:5})}),new qh({stroke:new ph({color:c,width:3})})];a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);a.Point=[new qh({image:new kh({radius:6,fill:new oh({color:c}),stroke:new ph({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.LineString,
|
|
150
|
-
a.Point);return a}function rh(a){return a.K()};function K(a){a=a?a:{};var b=ua({},a);delete b.style;delete b.renderBuffer;delete b.updateWhileAnimating;delete b.updateWhileInteracting;Gg.call(this,b);this.u=void 0!==a.renderBuffer?a.renderBuffer:100;this.l=null;this.i=void 0;this.C(a.style);this.G=void 0!==a.updateWhileAnimating?a.updateWhileAnimating:!1;this.I=void 0!==a.updateWhileInteracting?a.updateWhileInteracting:!1}v(K,Gg);K.prototype.D=function(){return this.l};K.prototype.F=function(){return this.i};
|
|
151
|
-
K.prototype.C=function(a){this.l=void 0!==a?a:uh;this.i=null===a?void 0:sh(this.l);this.s()};function wh(){};function xh(a,b,c,d,e){this.b=a;this.C=b;this.g=c;this.S=d;this.Ra=e;this.h=this.c=this.f=this.ha=this.ea=this.Da=null;this.Qa=this.sa=this.w=this.F=this.D=this.aa=0;this.na=!1;this.i=this.pa=0;this.Ib=!1;this.G=0;this.a="";this.ua=this.ta=0;this.wa=!1;this.l=this.Ga=0;this.I=this.o=this.B=null;this.u=[];this.Ha=Kg()}v(xh,wh);
|
|
152
|
-
function yh(a,b,c){if(a.h){b=yc(b,0,c,2,a.S,a.u);c=a.b;var d=a.Ha,e=c.globalAlpha;1!=a.w&&(c.globalAlpha=e*a.w);var f=a.pa;a.na&&(f+=a.Ra);var g,h;g=0;for(h=b.length;g<h;g+=2){var l=b[g]-a.aa,m=b[g+1]-a.D;a.Ib&&(l=Math.round(l),m=Math.round(m));if(0!==f||1!=a.i){var n=l+a.aa,p=m+a.D;Pg(d,n,p,a.i,a.i,f,-n,-p);c.setTransform.apply(c,d)}c.drawImage(a.h,a.sa,a.Qa,a.G,a.F,l,m,a.G,a.F)}0===f&&1==a.i||c.setTransform(1,0,0,1,0,0);1!=a.w&&(c.globalAlpha=e)}}
|
|
153
|
-
function zh(a,b,c,d){var e=0;if(a.I&&""!==a.a){a.B&&Ah(a,a.B);a.o&&Bh(a,a.o);var f=a.I,g=a.b,h=a.ha;h?(h.font!=f.font&&(h.font=g.font=f.font),h.textAlign!=f.textAlign&&(h.textAlign=g.textAlign=f.textAlign),h.textBaseline!=f.textBaseline&&(h.textBaseline=g.textBaseline=f.textBaseline)):(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.ha={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});b=yc(b,e,c,d,a.S,a.u);f=a.b;g=a.Ga;for(a.wa&&(g+=a.Ra);e<c;e+=d){var h=b[e]+
|
|
154
|
-
a.ta,l=b[e+1]+a.ua;if(0!==g||1!=a.l){var m=Pg(a.Ha,h,l,a.l,a.l,g,-h,-l);f.setTransform.apply(f,m)}a.o&&f.strokeText(a.a,h,l);a.B&&f.fillText(a.a,h,l)}0===g&&1==a.l||f.setTransform(1,0,0,1,0,0)}}function Ch(a,b,c,d,e,f){var g=a.b;a=yc(b,c,d,e,a.S,a.u);g.moveTo(a[0],a[1]);b=a.length;f&&(b-=2);for(c=2;c<b;c+=2)g.lineTo(a[c],a[c+1]);f&&g.closePath();return d}function Dh(a,b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f)c=Ch(a,b,c,d[f],e,!0);return c}k=xh.prototype;
|
|
155
|
-
k.mc=function(a){if(Rb(this.g,a.A())){if(this.f||this.c){this.f&&Ah(this,this.f);this.c&&Bh(this,this.c);var b;b=(b=a.j)?yc(b,0,b.length,a.v,this.S,this.u):null;var c=b[2]-b[0],d=b[3]-b[1],c=Math.sqrt(c*c+d*d),d=this.b;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);this.f&&d.fill();this.c&&d.stroke()}""!==this.a&&zh(this,a.Wb(),2,2)}};k.Re=function(a){this.cb(a.b,a.a);this.Nc(a.h);this.Ya(a.f)};
|
|
156
|
-
k.bd=function(a){switch(a.L()){case "Point":this.gd(a);break;case "LineString":this.cd(a);break;case "Polygon":this.hd(a);break;case "MultiPoint":this.ed(a);break;case "MultiLineString":this.dd(a);break;case "MultiPolygon":this.fd(a);break;case "GeometryCollection":a=a.ia;var b,c;b=0;for(c=a.length;b<c;++b)this.bd(a[b]);break;case "Circle":this.mc(a)}};k.Pf=function(a,b){var c=(0,b.g)(a);c&&Rb(this.g,c.A())&&(this.Re(b),this.bd(c))};
|
|
157
|
-
k.gd=function(a){var b=a.j;a=a.v;this.h&&yh(this,b,b.length);""!==this.a&&zh(this,b,b.length,a)};k.ed=function(a){var b=a.j;a=a.v;this.h&&yh(this,b,b.length);""!==this.a&&zh(this,b,b.length,a)};k.cd=function(a){if(Rb(this.g,a.A())){if(this.c){Bh(this,this.c);var b=this.b,c=a.j;b.beginPath();Ch(this,c,0,c.length,a.v,!1);b.stroke()}""!==this.a&&(a=Eh(a),zh(this,a,2,2))}};
|
|
158
|
-
k.dd=function(a){var b=a.A();if(Rb(this.g,b)){if(this.c){Bh(this,this.c);var b=this.b,c=a.j,d=0,e=a.ma,f=a.v;b.beginPath();var g,h;g=0;for(h=e.length;g<h;++g)d=Ch(this,c,d,e[g],f,!1);b.stroke()}""!==this.a&&(a=Fh(a),zh(this,a,a.length,2))}};k.hd=function(a){if(Rb(this.g,a.A())){if(this.c||this.f){this.f&&Ah(this,this.f);this.c&&Bh(this,this.c);var b=this.b;b.beginPath();Dh(this,bd(a),0,a.fa,a.v);this.f&&b.fill();this.c&&b.stroke()}""!==this.a&&(a=cd(a),zh(this,a,2,2))}};
|
|
159
|
-
k.fd=function(a){if(Rb(this.g,a.A())){if(this.c||this.f){this.f&&Ah(this,this.f);this.c&&Bh(this,this.c);var b=this.b,c=Gh(a),d=0,e=a.b,f=a.v,g,h;b.beginPath();g=0;for(h=e.length;g<h;++g)d=Dh(this,c,d,e[g],f);this.f&&b.fill();this.c&&b.stroke()}""!==this.a&&(a=Hh(a),zh(this,a,a.length,2))}};function Ah(a,b){var c=a.b,d=a.Da;d?d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle):(c.fillStyle=b.fillStyle,a.Da={fillStyle:b.fillStyle})}
|
|
160
|
-
function Bh(a,b){var c=a.b,d=a.ea;d?(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),oe&&!ab(d.lineDash,b.lineDash)&&c.setLineDash(d.lineDash=b.lineDash),d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=b.lineJoin),d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=b.lineWidth),d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit),d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=c.strokeStyle=b.strokeStyle)):(c.lineCap=b.lineCap,oe&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=
|
|
161
|
-
b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.ea={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle})}
|
|
162
|
-
k.cb=function(a,b){if(a){var c=a.c;this.f={fillStyle:Yd(c?c:fh)}}else this.f=null;if(b){var c=b.f,d=b.g,e=b.a,f=b.h,g=b.b,h=b.i;this.c={lineCap:void 0!==d?d:"round",lineDash:e?e:gh,lineJoin:void 0!==f?f:"round",lineWidth:this.C*(void 0!==g?g:1),miterLimit:void 0!==h?h:10,strokeStyle:Yd(c?c:hh)}}else this.c=null};
|
|
163
|
-
k.Nc=function(a){if(a){var b=a.pb(),c=a.ab(1),d=a.zb(),e=a.bb();this.aa=b[0];this.D=b[1];this.F=e[1];this.h=c;this.w=a.B;this.sa=d[0];this.Qa=d[1];this.na=a.C;this.pa=a.o;this.i=a.l;this.Ib=a.w;this.G=e[0]}else this.h=null};
|
|
164
|
-
k.Ya=function(a){if(a){var b=a.c;b?(b=b.c,this.B={fillStyle:Yd(b?b:fh)}):this.B=null;var c=a.f;if(c){var b=c.f,d=c.g,e=c.a,f=c.h,g=c.b,c=c.i;this.o={lineCap:void 0!==d?d:"round",lineDash:e?e:gh,lineJoin:void 0!==f?f:"round",lineWidth:void 0!==g?g:1,miterLimit:void 0!==c?c:10,strokeStyle:Yd(b?b:hh)}}else this.o=null;var b=a.a,d=a.b,e=a.g,f=a.w,g=a.h,c=a.i,h=a.B,l=a.l;a=a.o;this.I={font:void 0!==b?b:"10px sans-serif",textAlign:void 0!==l?l:"center",textBaseline:void 0!==a?a:"middle"};this.a=void 0!==
|
|
165
|
-
h?h:"";this.ta=void 0!==d?this.C*d:0;this.ua=void 0!==e?this.C*e:0;this.wa=void 0!==f?f:!1;this.Ga=void 0!==g?g:0;this.l=this.C*(void 0!==c?c:1)}else this.a=""};function Ih(a){Pa.call(this);this.a=a}v(Ih,Pa);Ih.prototype.ya=ca;Ih.prototype.l=function(a,b,c,d){a=Og(b.pixelToCoordinateTransform,a.slice());if(this.ya(a,b,Ub,this))return c.call(d,this.a,null)};function Jh(a,b,c){return function(d,e){return Kh(a,b,d,e,function(a){c[d]||(c[d]={});c[d][a.Pa.toString()]=a})}}Ih.prototype.I=function(a){a.target.J()===dh&&Lh(this)};function Lh(a){var b=a.a;b.hb()&&"ready"==b.pd()&&a.s()}
|
|
166
|
-
function Mh(a,b){b.Se()&&a.postRenderFunctions.push(function(a,b,e){b=w(a).toString();a.ob(e.viewState.projection,e.usedTiles[b])}.bind(null,b))}function Nh(a,b){if(b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[w(c).toString()]=c}}function Oh(a,b){var c=b.G;void 0!==c&&("string"===typeof c?a.logos[c]="":c&&(ha("string"==typeof c.href,44),ha("string"==typeof c.src,45),a.logos[c.src]=c.href))}
|
|
167
|
-
function Ph(a,b,c,d){b=w(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],d.H<a.H&&(a.H=d.H),d.M>a.M&&(a.M=d.M),d.N<a.N&&(a.N=d.N),d.R>a.R&&(a.R=d.R)):a[b][c]=d:(a[b]={},a[b][c]=d)}
|
|
168
|
-
function Qh(a,b,c,d,e,f,g,h){var l=w(b).toString();l in a.wantedTiles||(a.wantedTiles[l]={});var m=a.wantedTiles[l];a=a.tileQueue;var n=c.minZoom,p,q,u,z,t,y;for(y=g;y>=n;--y)for(q=Bd(c,f,y,q),u=c.T(y),z=q.H;z<=q.M;++z)for(t=q.N;t<=q.R;++t)g-y<=h?(p=Rh(b,y,z,t,d,e),0==p.J()&&(m[p.getKey()]=!0,p.getKey()in a.a||a.i([p,l,Gd(c,p.Pa),u]))):b.nf(y,z,t,e)};function Sh(a){Ih.call(this,a);this.ea=Kg()}v(Sh,Ih);function Th(a,b,c){var d=b.pixelRatio,e=b.size[0]*d,f=b.size[1]*d,g=b.viewState.rotation,h=Jb(c),l=Ib(c),m=Hb(c);c=Gb(c);Og(b.coordinateToPixelTransform,h);Og(b.coordinateToPixelTransform,l);Og(b.coordinateToPixelTransform,m);Og(b.coordinateToPixelTransform,c);a.save();ih(a,-g,e/2,f/2);a.beginPath();a.moveTo(h[0]*d,h[1]*d);a.lineTo(l[0]*d,l[1]*d);a.lineTo(m[0]*d,m[1]*d);a.lineTo(c[0]*d,c[1]*d);a.clip();ih(a,g,e/2,f/2)}
|
|
169
|
-
Sh.prototype.h=function(a,b,c){Uh(this,"precompose",c,a,void 0);var d=this.b?this.b.$a():null;if(d){var e=b.extent,f=void 0!==e;f&&Th(c,a,e);var e=this.o,g=c.globalAlpha;c.globalAlpha=b.opacity;c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[4]),Math.round(e[5]),Math.round(d.width*e[0]),Math.round(d.height*e[3]));c.globalAlpha=g;f&&c.restore()}Uh(this,"postcompose",c,a,void 0)};
|
|
170
|
-
function Uh(a,b,c,d,e){var f=a.a;if(Oa(f,b)){var g=d.size[0]*d.pixelRatio,h=d.size[1]*d.pixelRatio,l=d.viewState.rotation;ih(c,-l,g/2,h/2);a=void 0!==e?e:Vh(a,d,0);f.c(new Fg(b,new xh(c,d.pixelRatio,d.extent,a,d.viewState.rotation),d,c,null));ih(c,l,g/2,h/2)}}function Vh(a,b,c){var d=b.viewState,e=b.pixelRatio,f=e/d.resolution;return Pg(a.ea,e*b.size[0]/2,e*b.size[1]/2,f,-f,-d.rotation,-d.center[0]+c,-d.center[1])};function Wh(){};function Xh(a,b,c,d){this.na=a;this.Da=b;this.overlaps=d;this.b=0;this.resolution=c;this.G=this.F=null;this.f=[];this.coordinates=[];this.ha=Kg();this.c=[];this.ea=[];this.sa=Kg();this.Qa=Kg()}v(Xh,wh);
|
|
171
|
-
function Yh(a,b,c,d,e,f,g){var h=a.coordinates.length,l=a.kd();g&&(c+=e);g=[b[c],b[c+1]];var m=[NaN,NaN],n=!0,p,q,u;for(p=c+e;p<d;p+=e)m[0]=b[p],m[1]=b[p+1],u=zb(l,m),u!==q?(n&&(a.coordinates[h++]=g[0],a.coordinates[h++]=g[1]),a.coordinates[h++]=m[0],a.coordinates[h++]=m[1],n=!1):1===u?(a.coordinates[h++]=m[0],a.coordinates[h++]=m[1],n=!1):n=!0,g[0]=m[0],g[1]=m[1],q=u;if(f&&n||p===c+e)a.coordinates[h++]=g[0],a.coordinates[h++]=g[1];return h}
|
|
172
|
-
function Zh(a,b){a.F=[0,b,0];a.f.push(a.F);a.G=[0,b,0];a.c.push(a.G)}
|
|
173
|
-
function $h(a,b,c,d,e,f,g,h,l){var m;ab(d,a.ha)?m=a.ea:(m=yc(a.coordinates,0,a.coordinates.length,2,d,a.ea),Ng(a.ha,d));d=!ya(f);var n=0,p=g.length,q,u,z=a.sa,t=a.Qa,y,da,Q,R,ba=0,ma=0;for(a=a.f!=g||a.overlaps?0:200;n<p;){var C=g[n],qa,ra,X,fa;switch(C[0]){case 0:q=C[1];d&&f[w(q).toString()]||!q.K()?n=C[2]:void 0===l||Rb(l,q.K().A())?++n:n=C[2]+1;break;case 1:ba>a&&(b.fill(),ba=0);ma>a&&(b.stroke(),ma=0);ba||ma||b.beginPath();++n;break;case 2:q=C[1];u=m[q];C=m[q+1];Q=m[q+2]-u;q=m[q+3]-C;q=Math.sqrt(Q*
|
|
174
|
-
Q+q*q);b.moveTo(u+q,C);b.arc(u,C,q,0,2*Math.PI,!0);++n;break;case 3:b.closePath();++n;break;case 4:q=C[1];u=C[2];qa=C[3];ra=C[4]*c;X=C[5]*c;var Ba=C[6],za=C[7],va=C[8],Ga=C[9];fa=C[10];Q=C[11];R=C[12];var oa=C[13],Ta=C[14];for(fa&&(Q+=e);q<u;q+=2){C=m[q]-ra;fa=m[q+1]-X;oa&&(C=Math.round(C),fa=Math.round(fa));if(1!=R||0!==Q){var lb=C+ra,Va=fa+X;Pg(z,lb,Va,R,R,Q,-lb,-Va);b.transform.apply(b,z)}lb=b.globalAlpha;1!=za&&(b.globalAlpha=lb*za);var Va=Ta+va>qa.width?qa.width-va:Ta,vi=Ba+Ga>qa.height?qa.height-
|
|
175
|
-
Ga:Ba;b.drawImage(qa,va,Ga,Va,vi,C,fa,Va*c,vi*c);1!=za&&(b.globalAlpha=lb);if(1!=R||0!==Q)Qg(Ng(t,z)),b.transform.apply(b,t)}++n;break;case 5:q=C[1];u=C[2];X=C[3];Ba=C[4]*c;za=C[5]*c;Q=C[6];R=C[7]*c;qa=C[8];ra=C[9];for((fa=C[10])&&(Q+=e);q<u;q+=2){C=m[q]+Ba;fa=m[q+1]+za;if(1!=R||0!==Q)Pg(z,C,fa,R,R,Q,-C,-fa),b.transform.apply(b,z);va=X.split("\n");Ga=va.length;1<Ga?(oa=Math.round(1.5*b.measureText("M").width),fa-=(Ga-1)/2*oa):oa=0;for(Ta=0;Ta<Ga;Ta++)lb=va[Ta],ra&&b.strokeText(lb,C,fa),qa&&b.fillText(lb,
|
|
176
|
-
C,fa),fa+=oa;if(1!=R||0!==Q)Qg(Ng(t,z)),b.transform.apply(b,t)}++n;break;case 6:if(void 0!==h&&(q=C[1],q=h(q)))return q;++n;break;case 7:a?ba++:b.fill();++n;break;case 8:q=C[1];u=C[2];C=m[q];fa=m[q+1];Q=C+.5|0;R=fa+.5|0;if(Q!==y||R!==da)b.moveTo(C,fa),y=Q,da=R;for(q+=2;q<u;q+=2)if(C=m[q],fa=m[q+1],Q=C+.5|0,R=fa+.5|0,q==u-2||Q!==y||R!==da)b.lineTo(C,fa),y=Q,da=R;++n;break;case 9:ba&&(b.fill(),ba=0);b.fillStyle=C[1];++n;break;case 10:y=void 0!==C[7]?C[7]:!0;da=C[2];ma&&(b.stroke(),ma=0);b.strokeStyle=
|
|
177
|
-
C[1];b.lineWidth=y?da*c:da;b.lineCap=C[3];b.lineJoin=C[4];b.miterLimit=C[5];oe&&b.setLineDash(C[6]);da=y=NaN;++n;break;case 11:b.font=C[1];b.textAlign=C[2];b.textBaseline=C[3];++n;break;case 12:a?ma++:b.stroke();++n;break;default:++n}}ba&&b.fill();ma&&b.stroke()}Xh.prototype.D=function(a,b,c,d,e){$h(this,a,b,c,d,e,this.f,void 0,void 0)};
|
|
178
|
-
function ai(a){var b=a.c;b.reverse();var c,d=b.length,e,f,g=-1;for(c=0;c<d;++c)if(e=b[c],f=e[0],6==f)g=c;else if(0==f){e[2]=c;e=a.c;for(f=c;g<f;){var h=e[g];e[g]=e[f];e[f]=h;++g;--f}g=-1}}function bi(a,b){a.F[2]=a.f.length;a.F=null;a.G[2]=a.c.length;a.G=null;var c=[6,b];a.f.push(c);a.c.push(c)}Xh.prototype.Dc=ca;Xh.prototype.kd=function(){return this.Da};function ci(a,b,c,d){Xh.call(this,a,b,c,d);this.i=this.I=null;this.aa=this.S=this.C=this.u=this.w=this.o=this.l=this.B=this.h=this.g=this.a=void 0}v(ci,Xh);ci.prototype.gd=function(a,b){if(this.i){Zh(this,b);var c=a.j,d=this.coordinates.length,c=Yh(this,c,0,c.length,a.v,!1,!1);this.f.push([4,d,c,this.i,this.a,this.g,this.h,this.B,this.l,this.o,this.w,this.u,this.C,this.S,this.aa]);this.c.push([4,d,c,this.I,this.a,this.g,this.h,this.B,this.l,this.o,this.w,this.u,this.C,this.S,this.aa]);bi(this,b)}};
|
|
179
|
-
ci.prototype.ed=function(a,b){if(this.i){Zh(this,b);var c=a.j,d=this.coordinates.length,c=Yh(this,c,0,c.length,a.v,!1,!1);this.f.push([4,d,c,this.i,this.a,this.g,this.h,this.B,this.l,this.o,this.w,this.u,this.C,this.S,this.aa]);this.c.push([4,d,c,this.I,this.a,this.g,this.h,this.B,this.l,this.o,this.w,this.u,this.C,this.S,this.aa]);bi(this,b)}};ci.prototype.Dc=function(){ai(this);this.g=this.a=void 0;this.i=this.I=null;this.aa=this.S=this.u=this.w=this.o=this.l=this.B=this.C=this.h=void 0};
|
|
180
|
-
ci.prototype.Nc=function(a){var b=a.pb(),c=a.bb(),d=a.Cd(1),e=a.ab(1),f=a.zb();this.a=b[0];this.g=b[1];this.I=d;this.i=e;this.h=c[1];this.B=a.B;this.l=f[0];this.o=f[1];this.w=a.C;this.u=a.o;this.C=a.l;this.S=a.w;this.aa=c[0]};function di(a,b,c,d){Xh.call(this,a,b,c,d);this.g=null;this.a={Rb:void 0,Mb:void 0,Nb:null,Ob:void 0,Pb:void 0,Qb:void 0,vd:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(di,Xh);function ei(a,b,c,d,e){var f=a.coordinates.length;b=Yh(a,b,c,d,e,!1,!1);f=[8,f,b];a.f.push(f);a.c.push(f);return d}k=di.prototype;k.kd=function(){this.g||(this.g=ub(this.Da),0<this.b&&tb(this.g,this.resolution*(this.b+1)/2,this.g));return this.g};
|
|
181
|
-
function fi(a){var b=a.a,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineJoin,g=b.lineWidth,h=b.miterLimit;b.Rb==c&&b.Mb==d&&ab(b.Nb,e)&&b.Ob==f&&b.Pb==g&&b.Qb==h||(b.vd!=a.coordinates.length&&(a.f.push([12]),b.vd=a.coordinates.length),a.f.push([10,c,g,d,f,h,e],[1]),b.Rb=c,b.Mb=d,b.Nb=e,b.Ob=f,b.Pb=g,b.Qb=h)}
|
|
182
|
-
k.cd=function(a,b){var c=this.a,d=c.lineWidth;void 0!==c.strokeStyle&&void 0!==d&&(fi(this),Zh(this,b),this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]),c=a.j,ei(this,c,0,c.length,a.v),this.c.push([12]),bi(this,b))};
|
|
183
|
-
k.dd=function(a,b){var c=this.a,d=c.lineWidth;if(void 0!==c.strokeStyle&&void 0!==d){fi(this);Zh(this,b);this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]);var c=a.ma,d=a.j,e=a.v,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=ei(this,d,f,c[g],e);this.c.push([12]);bi(this,b)}};k.Dc=function(){this.a.vd!=this.coordinates.length&&this.f.push([12]);ai(this);this.a=null};
|
|
184
|
-
k.cb=function(a,b){var c=b.f;this.a.strokeStyle=Yd(c?c:hh);c=b.g;this.a.lineCap=void 0!==c?c:"round";c=b.a;this.a.lineDash=c?c:gh;c=b.h;this.a.lineJoin=void 0!==c?c:"round";c=b.b;this.a.lineWidth=void 0!==c?c:1;c=b.i;this.a.miterLimit=void 0!==c?c:10;this.a.lineWidth>this.b&&(this.b=this.a.lineWidth,this.g=null)};function gi(a,b,c,d){Xh.call(this,a,b,c,d);this.g=null;this.a={ie:void 0,Rb:void 0,Mb:void 0,Nb:null,Ob:void 0,Pb:void 0,Qb:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(gi,Xh);
|
|
185
|
-
function hi(a,b,c,d,e){var f=a.a,g=void 0!==f.fillStyle,f=void 0!=f.strokeStyle,h=d.length,l=[1];a.f.push(l);a.c.push(l);for(l=0;l<h;++l){var m=d[l],n=a.coordinates.length;c=Yh(a,b,c,m,e,!0,!f);c=[8,n,c];a.f.push(c);a.c.push(c);f&&(c=[3],a.f.push(c),a.c.push(c));c=m}b=[7];a.c.push(b);g&&a.f.push(b);f&&(g=[12],a.f.push(g),a.c.push(g));return c}k=gi.prototype;
|
|
186
|
-
k.mc=function(a,b){var c=this.a,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){ii(this);Zh(this,b);this.c.push([9,Vd(fh)]);void 0!==c.strokeStyle&&this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var e=a.j,d=this.coordinates.length;Yh(this,e,0,e.length,a.v,!1,!1);e=[1];d=[2,d];this.f.push(e,d);this.c.push(e,d);d=[7];this.c.push(d);void 0!==c.fillStyle&&this.f.push(d);void 0!==c.strokeStyle&&(c=[12],this.f.push(c),this.c.push(c));bi(this,b)}};
|
|
187
|
-
k.hd=function(a,b){var c=this.a;ii(this);Zh(this,b);this.c.push([9,Vd(fh)]);void 0!==c.strokeStyle&&this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var c=a.fa,d=bd(a);hi(this,d,0,c,a.v);bi(this,b)};
|
|
188
|
-
k.fd=function(a,b){var c=this.a,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){ii(this);Zh(this,b);this.c.push([9,Vd(fh)]);void 0!==c.strokeStyle&&this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var c=a.b,d=Gh(a),e=a.v,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=hi(this,d,f,c[g],e);bi(this,b)}};k.Dc=function(){ai(this);this.a=null;var a=this.na;if(0!==a){var b=this.coordinates,c,d;c=0;for(d=b.length;c<d;++c)b[c]=a*Math.round(b[c]/a)}};
|
|
189
|
-
k.kd=function(){this.g||(this.g=ub(this.Da),0<this.b&&tb(this.g,this.resolution*(this.b+1)/2,this.g));return this.g};
|
|
190
|
-
k.cb=function(a,b){var c=this.a;if(a){var d=a.c;c.fillStyle=Yd(d?d:fh)}else c.fillStyle=void 0;b?(d=b.f,c.strokeStyle=Yd(d?d:hh),d=b.g,c.lineCap=void 0!==d?d:"round",d=b.a,c.lineDash=d?d.slice():gh,d=b.h,c.lineJoin=void 0!==d?d:"round",d=b.b,c.lineWidth=void 0!==d?d:1,d=b.i,c.miterLimit=void 0!==d?d:10,c.lineWidth>this.b&&(this.b=c.lineWidth,this.g=null)):(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=void 0)};
|
|
191
|
-
function ii(a){var b=a.a,c=b.fillStyle,d=b.strokeStyle,e=b.lineCap,f=b.lineDash,g=b.lineJoin,h=b.lineWidth,l=b.miterLimit;void 0!==c&&b.ie!=c&&(a.f.push([9,c]),b.ie=b.fillStyle);void 0===d||b.Rb==d&&b.Mb==e&&b.Nb==f&&b.Ob==g&&b.Pb==h&&b.Qb==l||(a.f.push([10,d,h,e,g,l,f]),b.Rb=d,b.Mb=e,b.Nb=f,b.Ob=g,b.Pb=h,b.Qb=l)};function ji(a,b,c,d){Xh.call(this,a,b,c,d);this.aa=this.S=this.C=null;this.i="";this.l=this.B=0;this.o=void 0;this.u=this.w=0;this.h=this.g=this.a=null}v(ji,Xh);
|
|
192
|
-
function ki(a,b,c,d,e){if(""!==a.i&&a.h&&(a.a||a.g)){if(a.a){var f=a.a,g=a.C;if(!g||g.fillStyle!=f.fillStyle){var h=[9,f.fillStyle];a.f.push(h);a.c.push(h);g?g.fillStyle=f.fillStyle:a.C={fillStyle:f.fillStyle}}}a.g&&(f=a.g,g=a.S,g&&g.lineCap==f.lineCap&&g.lineDash==f.lineDash&&g.lineJoin==f.lineJoin&&g.lineWidth==f.lineWidth&&g.miterLimit==f.miterLimit&&g.strokeStyle==f.strokeStyle||(h=[10,f.strokeStyle,f.lineWidth,f.lineCap,f.lineJoin,f.miterLimit,f.lineDash,!1],a.f.push(h),a.c.push(h),g?(g.lineCap=
|
|
193
|
-
f.lineCap,g.lineDash=f.lineDash,g.lineJoin=f.lineJoin,g.lineWidth=f.lineWidth,g.miterLimit=f.miterLimit,g.strokeStyle=f.strokeStyle):a.S={lineCap:f.lineCap,lineDash:f.lineDash,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}));f=a.h;g=a.aa;g&&g.font==f.font&&g.textAlign==f.textAlign&&g.textBaseline==f.textBaseline||(h=[11,f.font,f.textAlign,f.textBaseline],a.f.push(h),a.c.push(h),g?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline):a.aa=
|
|
194
|
-
{font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});Zh(a,e);f=a.coordinates.length;b=Yh(a,b,0,c,d,!1,!1);b=[5,f,b,a.i,a.B,a.l,a.w,a.u,!!a.a,!!a.g,a.o];a.f.push(b);a.c.push(b);bi(a,e)}}
|
|
195
|
-
ji.prototype.Ya=function(a){if(a){var b=a.c;b?(b=b.c,b=Yd(b?b:fh),this.a?this.a.fillStyle=b:this.a={fillStyle:b}):this.a=null;var c=a.f;if(c){var b=c.f,d=c.g,e=c.a,f=c.h,g=c.b,c=c.i,d=void 0!==d?d:"round",e=e?e.slice():gh,f=void 0!==f?f:"round",g=void 0!==g?g:1,c=void 0!==c?c:10,b=Yd(b?b:hh);if(this.g){var h=this.g;h.lineCap=d;h.lineDash=e;h.lineJoin=f;h.lineWidth=g;h.miterLimit=c;h.strokeStyle=b}else this.g={lineCap:d,lineDash:e,lineJoin:f,lineWidth:g,miterLimit:c,strokeStyle:b}}else this.g=null;
|
|
196
|
-
var l=a.a,b=a.b,d=a.g,e=a.w,g=a.h,c=a.i,f=a.B,h=a.l,m=a.o;a=void 0!==l?l:"10px sans-serif";h=void 0!==h?h:"center";m=void 0!==m?m:"middle";this.h?(l=this.h,l.font=a,l.textAlign=h,l.textBaseline=m):this.h={font:a,textAlign:h,textBaseline:m};this.i=void 0!==f?f:"";this.B=void 0!==b?b:0;this.l=void 0!==d?d:0;this.o=void 0!==e?e:!1;this.w=void 0!==g?g:0;this.u=void 0!==c?c:1}else this.i=""};var li=["Polygon","LineString","Image","Text"];function mi(a,b,c,d,e){this.B=a;this.f=b;this.h=d;this.i=c;this.a=e;this.c={};this.b=Zd(1,1);this.g=Kg()}v(mi,Wh);function ni(a){for(var b in a.c){var c=a.c[b],d;for(d in c)c[d].Dc()}}mi.prototype.ya=function(a,b,c,d,e){var f=Pg(this.g,.5,.5,1/b,-1/b,-c,-a[0],-a[1]),g=this.b;g.clearRect(0,0,1,1);var h;void 0!==this.a&&(h=rb(),sb(h,a),tb(h,b*this.a,h));return oi(this,g,f,c,d,function(a){if(0<g.getImageData(0,0,1,1).data[3]){if(a=e(a))return a;g.clearRect(0,0,1,1)}},h)};
|
|
197
|
-
function pi(a,b,c){var d=void 0!==b?b.toString():"0";b=a.c[d];void 0===b&&(b={},a.c[d]=b);d=b[c];void 0===d&&(d=new qi[c](a.B,a.f,a.i,a.h),b[c]=d);return d}
|
|
198
|
-
mi.prototype.D=function(a,b,c,d,e,f){var g=Object.keys(this.c).map(Number);g.sort(Xa);var h=this.f,l=h[0],m=h[1],n=h[2],h=h[3],l=[l,m,l,h,n,h,n,m];yc(l,0,8,2,c,l);a.save();a.beginPath();a.moveTo(l[0],l[1]);a.lineTo(l[2],l[3]);a.lineTo(l[4],l[5]);a.lineTo(l[6],l[7]);a.clip();f=f?f:li;for(var p,q,l=0,m=g.length;l<m;++l)for(p=this.c[g[l].toString()],n=0,h=f.length;n<h;++n)q=p[f[n]],void 0!==q&&q.D(a,b,c,d,e);a.restore()};
|
|
199
|
-
function oi(a,b,c,d,e,f,g){var h=Object.keys(a.c).map(Number);h.sort(function(a,b){return b-a});var l,m,n,p,q;l=0;for(m=h.length;l<m;++l)for(p=a.c[h[l].toString()],n=li.length-1;0<=n;--n)if(q=p[li[n]],void 0!==q&&(q=$h(q,b,1,c,d,e,q.c,f,g)))return q}var qi={Image:ci,LineString:di,Polygon:gi,Text:ji};function ri(a,b){return w(a)-w(b)}function si(a,b){var c=.5*a/b;return c*c}function ti(a,b,c,d,e,f){var g=!1,h,l;if(h=c.h)l=h.ac(),l==dh||l==ch?h.Qd(e,f):(l==bh&&h.load(),h.wd(e,f),g=!0);if(e=(0,c.g)(b))d=e.pc(d),(0,ui[d.L()])(a,d,c,b);return g}
|
|
200
|
-
var ui={Point:function(a,b,c,d){var e=c.h;if(e){if(e.ac()!=dh)return;var f=pi(a,c.c,"Image");f.Nc(e);f.gd(b,d)}if(e=c.f)a=pi(a,c.c,"Text"),a.Ya(e),ki(a,b.j,2,2,d)},LineString:function(a,b,c,d){var e=c.a;if(e){var f=pi(a,c.c,"LineString");f.cb(null,e);f.cd(b,d)}if(e=c.f)a=pi(a,c.c,"Text"),a.Ya(e),ki(a,Eh(b),2,2,d)},Polygon:function(a,b,c,d){var e=c.b,f=c.a;if(e||f){var g=pi(a,c.c,"Polygon");g.cb(e,f);g.hd(b,d)}if(e=c.f)a=pi(a,c.c,"Text"),a.Ya(e),ki(a,cd(b),2,2,d)},MultiPoint:function(a,b,c,d){var e=
|
|
201
|
-
c.h;if(e){if(e.ac()!=dh)return;var f=pi(a,c.c,"Image");f.Nc(e);f.ed(b,d)}if(e=c.f)a=pi(a,c.c,"Text"),a.Ya(e),c=b.j,ki(a,c,c.length,b.v,d)},MultiLineString:function(a,b,c,d){var e=c.a;if(e){var f=pi(a,c.c,"LineString");f.cb(null,e);f.dd(b,d)}if(e=c.f)a=pi(a,c.c,"Text"),a.Ya(e),b=Fh(b),ki(a,b,b.length,2,d)},MultiPolygon:function(a,b,c,d){var e=c.b,f=c.a;if(f||e){var g=pi(a,c.c,"Polygon");g.cb(e,f);g.fd(b,d)}if(e=c.f)a=pi(a,c.c,"Text"),a.Ya(e),b=Hh(b),ki(a,b,b.length,2,d)},GeometryCollection:function(a,
|
|
202
|
-
b,c,d){b=b.ia;var e,f;e=0;for(f=b.length;e<f;++e)(0,ui[b[e].L()])(a,b[e],c,d)},Circle:function(a,b,c,d){var e=c.b,f=c.a;if(e||f){var g=pi(a,c.c,"Polygon");g.cb(e,f);g.mc(b,d)}if(e=c.f)a=pi(a,c.c,"Text"),a.Ya(e),ki(a,b.Wb(),2,2,d)}};function wi(a,b,c,d,e,f){this.b=void 0!==f?f:null;Zg.call(this,a,b,c,void 0!==f?bh:dh,d);this.a=e}v(wi,Zg);wi.prototype.f=function(a){this.state=a?ch:dh;$g(this)};wi.prototype.load=function(){this.state==bh&&(this.state=eh,$g(this),this.b(this.f.bind(this)))};wi.prototype.$a=function(){return this.a};var xi,yi=-1<navigator.userAgent.indexOf("OPR"),zi=-1<navigator.userAgent.indexOf("Edge");xi=!(!navigator.userAgent.match("CriOS")&&"chrome"in window&&"Google Inc."===navigator.vendor&&0==yi&&0==zi);function Ai(a,b,c,d){var e=vc(c,b,a);c=b.getPointResolution(d,c);b=b.fb();void 0!==b&&(c*=b);b=a.fb();void 0!==b&&(c/=b);a=a.getPointResolution(c,e)/c;isFinite(a)&&0<a&&(c/=a);return c}function Bi(a,b,c,d){a=c-a;b=d-b;var e=Math.sqrt(a*a+b*b);return[Math.round(c+a/e),Math.round(d+b/e)]}
|
|
203
|
-
function Ci(a,b,c,d,e,f,g,h,l,m,n){var p=Zd(Math.round(c*a),Math.round(c*b));if(0===l.length)return p.canvas;p.scale(c,c);var q=rb();l.forEach(function(a){Db(q,a.extent)});var u=Zd(Math.round(c*Mb(q)/d),Math.round(c*Nb(q)/d)),z=c/d;l.forEach(function(a){u.drawImage(a.image,m,m,a.image.width-2*m,a.image.height-2*m,(a.extent[0]-q[0])*z,-(a.extent[3]-q[3])*z,Mb(a.extent)*z,Nb(a.extent)*z)});var t=Jb(g);h.b.forEach(function(a){var b=a.source,e=a.target,g=b[1][0],h=b[1][1],l=b[2][0],n=b[2][1];a=(e[0][0]-
|
|
204
|
-
t[0])/f;var m=-(e[0][1]-t[1])/f,z=(e[1][0]-t[0])/f,X=-(e[1][1]-t[1])/f,fa=(e[2][0]-t[0])/f,Ba=-(e[2][1]-t[1])/f,e=b[0][0],b=b[0][1],g=g-e,h=h-b,l=l-e,n=n-b;a:{g=[[g,h,0,0,z-a],[l,n,0,0,fa-a],[0,0,g,h,X-m],[0,0,l,n,Ba-m]];h=g.length;for(l=0;l<h;l++){for(var n=l,za=Math.abs(g[l][l]),va=l+1;va<h;va++){var Ga=Math.abs(g[va][l]);Ga>za&&(za=Ga,n=va)}if(0===za){g=null;break a}za=g[n];g[n]=g[l];g[l]=za;for(n=l+1;n<h;n++)for(za=-g[n][l]/g[l][l],va=l;va<h+1;va++)g[n][va]=l==va?0:g[n][va]+za*g[l][va]}l=Array(h);
|
|
205
|
-
for(n=h-1;0<=n;n--)for(l[n]=g[n][h]/g[n][n],za=n-1;0<=za;za--)g[za][h]-=g[za][n]*l[n];g=l}g&&(p.save(),p.beginPath(),xi?(l=(a+z+fa)/3,n=(m+X+Ba)/3,h=Bi(l,n,a,m),z=Bi(l,n,z,X),fa=Bi(l,n,fa,Ba),p.moveTo(z[0],z[1]),p.lineTo(h[0],h[1]),p.lineTo(fa[0],fa[1])):(p.moveTo(z,X),p.lineTo(a,m),p.lineTo(fa,Ba)),p.clip(),p.transform(g[0],g[2],g[1],g[3],a,m),p.translate(q[0]-e,q[3]-b),p.scale(d/c,-d/c),p.drawImage(u.canvas,0,0),p.restore())});n&&(p.save(),p.strokeStyle="black",p.lineWidth=1,h.b.forEach(function(a){var b=
|
|
206
|
-
a.target;a=(b[0][0]-t[0])/f;var c=-(b[0][1]-t[1])/f,d=(b[1][0]-t[0])/f,e=-(b[1][1]-t[1])/f,g=(b[2][0]-t[0])/f,b=-(b[2][1]-t[1])/f;p.beginPath();p.moveTo(d,e);p.lineTo(a,c);p.lineTo(g,b);p.closePath();p.stroke()}),p.restore());return p.canvas};function Di(a,b,c,d,e){this.a=a;this.g=b;var f={},g=tc(this.g,this.a);this.f=function(a){var b=a[0]+"/"+a[1];f[b]||(f[b]=g(a));return f[b]};this.h=d;this.o=e*e;this.b=[];this.B=!1;this.l=this.a.c&&!!d&&!!this.a.A()&&Mb(d)==Mb(this.a.A());this.c=this.a.A()?Mb(this.a.A()):null;this.i=this.g.A()?Mb(this.g.A()):null;a=Jb(c);b=Ib(c);d=Hb(c);c=Gb(c);e=this.f(a);var h=this.f(b),l=this.f(d),m=this.f(c);Ei(this,a,b,d,c,e,h,l,m,10);if(this.B){var n=Infinity;this.b.forEach(function(a){n=Math.min(n,a.source[0][0],
|
|
207
|
-
a.source[1][0],a.source[2][0])});this.b.forEach(function(a){if(Math.max(a.source[0][0],a.source[1][0],a.source[2][0])-n>this.c/2){var b=[[a.source[0][0],a.source[0][1]],[a.source[1][0],a.source[1][1]],[a.source[2][0],a.source[2][1]]];b[0][0]-n>this.c/2&&(b[0][0]-=this.c);b[1][0]-n>this.c/2&&(b[1][0]-=this.c);b[2][0]-n>this.c/2&&(b[2][0]-=this.c);Math.max(b[0][0],b[1][0],b[2][0])-Math.min(b[0][0],b[1][0],b[2][0])<this.c/2&&(a.source=b)}},this)}f={}}
|
|
208
|
-
function Ei(a,b,c,d,e,f,g,h,l,m){var n=qb([f,g,h,l]),p=a.c?Mb(n)/a.c:null,q=a.c,u=a.a.c&&.5<p&&1>p,z=!1;if(0<m){if(a.g.a&&a.i)var t=qb([b,c,d,e]),z=z|.25<Mb(t)/a.i;!u&&a.a.a&&p&&(z|=.25<p)}if(z||!a.h||Rb(n,a.h)){if(!(z||isFinite(f[0])&&isFinite(f[1])&&isFinite(g[0])&&isFinite(g[1])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(l[0])&&isFinite(l[1])))if(0<m)z=!0;else return;if(0<m&&(z||(n=a.f([(b[0]+d[0])/2,(b[1]+d[1])/2]),q=u?(la(f[0],q)+la(h[0],q))/2-la(n[0],q):(f[0]+h[0])/2-n[0],n=(f[1]+h[1])/2-n[1],
|
|
209
|
-
z=q*q+n*n>a.o),z)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(u=[(c[0]+d[0])/2,(c[1]+d[1])/2],q=a.f(u),n=[(e[0]+b[0])/2,(e[1]+b[1])/2],p=a.f(n),Ei(a,b,c,u,n,f,g,q,p,m-1),Ei(a,n,u,d,e,p,q,h,l,m-1)):(u=[(b[0]+c[0])/2,(b[1]+c[1])/2],q=a.f(u),n=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=a.f(n),Ei(a,b,u,n,e,f,q,p,l,m-1),Ei(a,u,c,d,n,q,g,h,p,m-1));return}if(u){if(!a.l)return;a.B=!0}a.b.push({source:[f,h,l],target:[b,d,e]});a.b.push({source:[f,g,h],target:[b,c,d]})}}
|
|
210
|
-
function Fi(a){var b=rb();a.b.forEach(function(a){a=a.source;sb(b,a[0]);sb(b,a[1]);sb(b,a[2])});return b};function Gi(a,b,c,d,e,f){this.o=b;this.l=a.A();var g=b.A(),h=g?Qb(c,g):c,g=Ai(a,b,Ob(h),d);this.i=new Di(a,b,h,this.l,.5*g);this.a=d;this.f=c;a=Fi(this.i);this.B=(this.Fa=f(a,g,e))?this.Fa.g:1;this.ec=this.b=null;e=dh;f=[];this.Fa&&(e=bh,f=this.Fa.h);Zg.call(this,c,d,this.B,e,f)}v(Gi,Zg);k=Gi.prototype;k.ka=function(){this.state==eh&&(Ca(this.ec),this.ec=null);Zg.prototype.ka.call(this)};k.$a=function(){return this.b};k.ja=function(){return this.o};
|
|
211
|
-
k.cc=function(){var a=this.Fa.J();a==dh&&(this.b=Ci(Mb(this.f)/this.a,Nb(this.f)/this.a,this.B,this.Fa.T(),0,this.a,this.f,this.i,[{extent:this.Fa.A(),image:this.Fa.$a()}],0));this.state=a;$g(this)};k.load=function(){if(this.state==bh){this.state=eh;$g(this);var a=this.Fa.J();a==dh||a==ch?this.cc():(this.ec=x(this.Fa,"change",function(){var a=this.Fa.J();if(a==dh||a==ch)Ca(this.ec),this.ec=null,this.cc()},this),this.Fa.load())}};function Hi(a){Ra.call(this);this.Ra=cc(a.projection);this.i=Ii(a.attributions);this.G=a.logo;this.sa=void 0!==a.state?a.state:"ready";this.w=void 0!==a.wrapX?a.wrapX:!1}v(Hi,Ra);function Ii(a){if("string"===typeof a)return[new Ld({html:a})];if(a instanceof Ld)return[a];if(Array.isArray(a)){for(var b=a.length,c=Array(b),d=0;d<b;d++){var e=a[d];c[d]="string"===typeof e?new Ld({html:e}):e}return c}return null}k=Hi.prototype;k.ya=ca;k.yb=function(){return this.i};k.rb=function(){return this.G};
|
|
212
|
-
k.ja=function(){return this.Ra};k.J=function(){return this.sa};k.kb=function(){this.s()};k.lb=function(a){this.i=Ii(a);this.s()};function Ji(a,b){a.sa=b;a.s()};function Ki(a){Hi.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.u=void 0!==a.resolutions?a.resolutions:null;this.a=null;this.na=0}v(Ki,Hi);
|
|
213
|
-
Ki.prototype.ha=function(a,b,c,d){var e=this.ja();if(e&&d&&!sc(e,d)){if(this.a){if(this.na==this.f&&sc(this.a.ja(),d)&&this.a.T()==b&&this.a.g==c&&Cb(this.a.A(),a))return this.a;Ka(this.a);this.a=null}this.a=new Gi(e,d,a,b,c,function(a,b,c){return this.l(a,b,c,e)}.bind(this));this.na=this.f;return this.a}e&&(d=e);return this.l(a,b,c,d)};Ki.prototype.o=function(a){a=a.target;switch(a.J()){case eh:this.c(new Li(Mi,a));break;case dh:this.c(new Li(Ni,a));break;case ch:this.c(new Li(Oi,a))}};
|
|
214
|
-
function Pi(a,b){a.$a().src=b}function Li(a,b){La.call(this,a);this.image=b}v(Li,La);var Mi="imageloadstart",Ni="imageloadend",Oi="imageloaderror";function Qi(a){Ki.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});this.ta=a.canvasFunction;this.F=null;this.I=0;this.Jb=void 0!==a.ratio?a.ratio:1.5}v(Qi,Ki);Qi.prototype.l=function(a,b,c,d){this.u&&(b=this.u[Ya(this.u,b,0)]);var e=this.F;if(e&&this.I==this.f&&e.T()==b&&e.g==c&&yb(e.A(),a))return e;a=a.slice();Sb(a,this.Jb);(d=this.ta(a,b,c,[Mb(a)/b*c,Nb(a)/b*c],d))&&(e=new wi(a,b,c,this.i,d));this.F=e;this.I=this.f;return e};function Ri(a){this.b=a.source;this.wa=Kg();this.g=Zd();this.h=[0,0];this.ua=void 0==a.renderBuffer?100:a.renderBuffer;this.C=null;Qi.call(this,{attributions:a.attributions,canvasFunction:this.pa.bind(this),logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.b.J()});this.ea=null;this.D=void 0;a=a.style;this.ea=void 0!==a?a:uh;this.D=a?sh(this.ea):void 0;this.s();x(this.b,"change",this.Ha,this)}v(Ri,Qi);
|
|
215
|
-
Ri.prototype.pa=function(a,b,c,d,e){var f=new mi(.5*b/c,a,b,this.b.I,this.ua);Si(this.b,a,b,e);var g=!1;this.b.eb(a,function(a){var d;if(!(d=g)){var e;(d=a.g)?e=d.call(a,b):this.D&&(e=this.D(a,b));if(e){var n,p=!1;Array.isArray(e)||(e=[e]);d=0;for(n=e.length;d<n;++d)p=ti(f,a,e[d],si(b,c),this.Ga,this)||p;d=p}else d=!1}g=d},this);ni(f);if(g)return null;this.h[0]!=d[0]||this.h[1]!=d[1]?(this.g.canvas.width=d[0],this.g.canvas.height=d[1],this.h[0]=d[0],this.h[1]=d[1]):this.g.clearRect(0,0,d[0],d[1]);
|
|
216
|
-
a=Ti(this,Ob(a),b,c,d);f.D(this.g,c,a,0,{});this.C=f;return this.g.canvas};Ri.prototype.ya=function(a,b,c,d,e){if(this.C){var f={};return this.C.ya(a,b,0,d,function(a){var b=w(a).toString();if(!(b in f))return f[b]=!0,e(a)})}};function Ti(a,b,c,d,e){c=d/c;return Pg(a.wa,e[0]/2,e[1]/2,c,-c,0,-b[0],-b[1])}Ri.prototype.Ga=function(){this.s()};Ri.prototype.Ha=function(){Ji(this,this.b.J())};function Ug(a){Sh.call(this,a);this.b=null;this.o=Kg();this.g=this.i=null}v(Ug,Sh);Ug.prototype.ya=function(a,b,c,d){var e=this.a;return e.ga().ya(a,b.viewState.resolution,b.viewState.rotation,b.skippedFeatureUids,function(a){return c.call(d,a,e)})};
|
|
217
|
-
Ug.prototype.l=function(a,b,c,d){if(this.b&&this.b.$a())if(this.a.ga()instanceof Ri){if(a=Og(b.pixelToCoordinateTransform,a.slice()),this.ya(a,b,Ub,this))return c.call(d,this.a,null)}else if(this.i||(this.i=Qg(this.o.slice())),b=Og(this.i,a.slice()),this.g||(this.g=Zd(1,1)),this.g.clearRect(0,0,1,1),this.g.drawImage(this.b?this.b.$a():null,b[0],b[1],1,1,0,0,1,1),b=this.g.getImageData(0,0,1,1).data,0<b[3])return c.call(d,this.a,b)};
|
|
218
|
-
Ug.prototype.B=function(a,b){var c=a.pixelRatio,d=a.viewState,e=d.center,f=d.resolution,g=this.a.ga(),h=a.viewHints,l=a.extent;void 0!==b.extent&&(l=Qb(l,b.extent));if(!h[0]&&!h[1]&&!Lb(l)){if(h=d=g.ha(l,f,c,d.projection))h=d,l=h.J(),l!=dh&&l!=ch&&x(h,"change",this.I,this),l==bh&&(h.load(),l=h.J()),h=l==dh;h&&(this.b=d)}if(this.b){var d=this.b,h=d.A(),l=d.T(),m=d.g,f=c*l/(f*m),n=Mg(this.o,1,1,0,0);Lg(n,Mg(Jg,1,1,c*a.size[0]/2,c*a.size[1]/2));Lg(n,Mg(Jg,f,f,0,0));Lg(n,Mg(Jg,1,1,m*(h[0]-e[0])/l,m*(e[1]-
|
|
219
|
-
h[3])/l));this.i=null;Nh(a.attributions,d.h);Oh(a,g)}return!!this.b};function Vg(a){Sh.call(this,a);this.g=Zd();this.i=[];this.w=rb();this.C=[0,0,0];this.u=Kg()}v(Vg,Sh);
|
|
220
|
-
Vg.prototype.h=function(a,b,c){var d=Vh(this,a,0);Uh(this,"precompose",c,a,d);var e=a.pixelRatio,f=a.viewState,g=f.center,h=f.projection,l=f.rotation,m=a.size,n=Math.round(e*m[0]/2),m=Math.round(e*m[1]/2),f=e/f.resolution,p=this.a,q=p.ga(),u=e*q.ue(h),z=q.Za(h),p=Oa(p,"render"),t=c,y=1,da,Q,R;if(l||p){t=this.g;da=t.canvas;var y=q.C/e,ba=c.canvas.width*y;Q=c.canvas.height*y;R=Math.round(Math.sqrt(ba*ba+Q*Q));da.width!=R?da.width=da.height=R:t.clearRect(0,0,R,R);da=(R-ba)/2/y;Q=(R-Q)/2/y;f*=y;n=Math.round(y*
|
|
221
|
-
(n+da));m=Math.round(y*(m+Q))}ba=t.globalAlpha;t.globalAlpha=b.opacity;var ma=this.i,C,qa=q.od(h)&&1==b.opacity;qa||(ma.reverse(),C=[]);var ra=b.extent;if(b=void 0!==ra){var X=Jb(ra),fa=Ib(ra),Ba=Hb(ra),ra=Gb(ra);Og(a.coordinateToPixelTransform,X);Og(a.coordinateToPixelTransform,fa);Og(a.coordinateToPixelTransform,Ba);Og(a.coordinateToPixelTransform,ra);var za=da||0,va=Q||0;t.save();var Ga=t.canvas.width/2,oa=t.canvas.height/2;ih(t,-l,Ga,oa);t.beginPath();t.moveTo(y*(X[0]*e+za),y*(X[1]*e+va));t.lineTo(y*
|
|
222
|
-
(fa[0]*e+za),y*(fa[1]*e+va));t.lineTo(y*(Ba[0]*e+za),y*(Ba[1]*e+va));t.lineTo(y*(ra[0]*e+za),y*(ra[1]*e+va));t.clip();ih(t,l,Ga,oa)}e=0;for(X=ma.length;e<X;++e){fa=ma[e];Ba=fa.Pa;va=z.Wa(Ba,this.w);Ga=Ba[0];oa=Gb(z.Wa(z.rc(g,Ga,this.C)));Ba=Math.round(Mb(va)*f);ra=Math.round(Nb(va)*f);za=Math.round((va[0]-oa[0])*f/Ba)*Ba+n+Math.round((oa[0]-g[0])*f);va=Math.round((oa[1]-va[3])*f/ra)*ra+m+Math.round((g[1]-oa[1])*f);if(!qa){oa=[za,va,za+Ba,va+ra];t.save();for(var Ta=0,lb=C.length;Ta<lb;++Ta){var Va=
|
|
223
|
-
C[Ta];Rb(oa,Va)&&(t.beginPath(),t.moveTo(oa[0],oa[1]),t.lineTo(oa[0],oa[3]),t.lineTo(oa[2],oa[3]),t.lineTo(oa[2],oa[1]),t.moveTo(Va[0],Va[1]),t.lineTo(Va[2],Va[1]),t.lineTo(Va[2],Va[3]),t.lineTo(Va[0],Va[3]),t.closePath(),t.clip())}C.push(oa)}oa=q;Ta=Ga;lb=oa.Za(h);Ga=oa.C;Ta=xd(lb.gb(Ta),oa.I);1==Ga?Ga=Ta:(oa=oa.I,void 0===oa&&(oa=[0,0]),oa[0]=Ta[0]*Ga+.5|0,oa[1]=Ta[1]*Ga+.5|0,Ga=oa);t.drawImage(fa.yc(),u,u,Ga[0],Ga[1],za,va,Ba,ra);qa||t.restore()}b&&t.restore();p&&(h=da-n/y+n,n=Q-m/y+m,g=Pg(this.u,
|
|
224
|
-
R/2-h,R/2-n,f,-f,-l,-g[0]+h/f,-g[1]-n/f),Uh(this,"render",t,a,g));(l||p)&&c.drawImage(t.canvas,-Math.round(da),-Math.round(Q),R/y,R/y);t.globalAlpha=ba;Uh(this,"postcompose",c,a,d)};
|
|
225
|
-
Vg.prototype.B=function(a,b){function c(a){a=a.J();return a==kf||4==a||3==a&&!u}var d=a.pixelRatio,e=a.viewState,f=e.projection,g=this.a,h=g.ga(),l=h.Za(f),e=l.Vb(e.resolution,0),m=l.T(e),n=a.extent;void 0!==b.extent&&(n=Qb(n,b.extent));if(Lb(n))return!1;var m=Ed(l,n,m),p={};p[e]={};var q=Jh(h,f,p),u=g.w(),z=this.w,t=new ud(0,0,0,0),y,da,Q,R;for(Q=m.H;Q<=m.M;++Q)for(R=m.N;R<=m.R;++R)y=Rh(h,e,Q,R,d,f),c(y)||(y=jf(y)),c(y)?p[e][y.Pa.toString()]=y:(da=Cd(l,y.Pa,q,t,z),da||(y=Dd(l,y.Pa,t,z))&&q(e+1,y));
|
|
226
|
-
q=Object.keys(p).map(Number);q.sort(Xa);z=this.i;z.length=0;var ba,t=0;for(Q=q.length;t<Q;++t)for(ba in y=q[t],R=p[y],R)y=R[ba],y.J()==kf&&z.push(y);Ph(a.usedTiles,h,e,m);Qh(a,h,l,d,f,n,e,g.o());Mh(a,h);Oh(a,h);return!0};Vg.prototype.l=function(a,b,c,d){var e=this.g.canvas,f=b.size,g=b.pixelRatio;e.width=f[0]*g;e.height=f[1]*g;this.h(b,ug(this.a),this.g);a=this.g.getImageData(a[0],a[1],1,1).data;if(0<a[3])return c.call(d,this.a,a)};function Wg(a){Sh.call(this,a);this.g=!1;this.F=-1;this.D=NaN;this.u=rb();this.i=this.C=null;this.w=Zd()}v(Wg,Sh);
|
|
227
|
-
Wg.prototype.h=function(a,b,c){var d=a.extent,e=a.pixelRatio,f=b.xd?a.skippedFeatureUids:{},g=a.viewState,h=g.projection,g=g.rotation,l=h.A(),m=this.a.ga(),n=Vh(this,a,0);Uh(this,"precompose",c,a,n);var p=b.extent,q=void 0!==p;q&&Th(c,a,p);if((p=this.i)&&!ya(p.c)){var u=0,z=0,t;if(Oa(this.a,"render")){t=c.canvas.width;var y=c.canvas.height;if(g){var da=Math.round(Math.sqrt(t*t+y*y)),u=(da-t)/2,z=(da-y)/2;t=y=da}this.w.canvas.width=t;this.w.canvas.height=y;t=this.w}else t=c;y=t.globalAlpha;t.globalAlpha=
|
|
228
|
-
b.opacity;t!=c&&t.translate(u,z);b=a.size[0]*e;da=a.size[1]*e;ih(t,-g,b/2,da/2);p.D(t,e,n,g,f);if(m.w&&h.c&&!yb(l,d)){for(var h=d[0],m=Mb(l),Q=0;h<l[0];)--Q,n=m*Q,n=Vh(this,a,n),p.D(t,e,n,g,f),h+=m;Q=0;for(h=d[2];h>l[2];)++Q,n=m*Q,n=Vh(this,a,n),p.D(t,e,n,g,f),h-=m;n=Vh(this,a,0)}ih(t,g,b/2,da/2);t!=c&&(Uh(this,"render",t,a,n),c.drawImage(t.canvas,-u,-z),t.translate(-u,-z));t.globalAlpha=y}q&&c.restore();Uh(this,"postcompose",c,a,n)};
|
|
229
|
-
Wg.prototype.ya=function(a,b,c,d){if(this.i){var e=this.a,f={};return this.i.ya(a,b.viewState.resolution,b.viewState.rotation,{},function(a){var b=w(a).toString();if(!(b in f))return f[b]=!0,c.call(d,a,e)})}};Wg.prototype.G=function(){Lh(this)};
|
|
230
|
-
Wg.prototype.B=function(a){function b(a){var b,d=a.g;d?b=d.call(a,m):(d=c.i)&&(b=d(a,m));if(b){if(b){d=!1;if(Array.isArray(b))for(var e=0,f=b.length;e<f;++e)d=ti(q,a,b[e],si(m,n),this.G,this)||d;else d=ti(q,a,b,si(m,n),this.G,this)||d;a=d}else a=!1;this.g=this.g||a}}var c=this.a,d=c.ga();Nh(a.attributions,d.i);Oh(a,d);var e=a.viewHints[0],f=a.viewHints[1],g=c.G,h=c.I;if(!this.g&&!g&&e||!h&&f)return!0;var l=a.extent,h=a.viewState,e=h.projection,m=h.resolution,n=a.pixelRatio,f=c.f,p=c.u,g=c.get("renderOrder");
|
|
231
|
-
void 0===g&&(g=ri);l=tb(l,p*m);p=h.projection.A();d.w&&h.projection.c&&!yb(p,a.extent)&&(a=Math.max(Mb(l)/2,Mb(p)),l[0]=p[0]-a,l[2]=p[2]+a);if(!this.g&&this.D==m&&this.F==f&&this.C==g&&yb(this.u,l))return!0;this.i=null;this.g=!1;var q=new mi(.5*m/n,l,m,d.I,c.u);Si(d,l,m,e);if(g){var u=[];d.eb(l,function(a){u.push(a)},this);u.sort(g);u.forEach(b,this)}else d.eb(l,b,this);ni(q);this.D=m;this.F=f;this.C=g;this.u=l;this.i=q;return!0};function Ui(a,b){Rg.call(this,0,b);this.g=Zd();this.c=this.g.canvas;this.c.style.width="100%";this.c.style.height="100%";this.c.className="ol-unselectable";a.insertBefore(this.c,a.childNodes[0]||null);this.a=!0;this.i=Kg()}v(Ui,Rg);function Vi(a,b,c){var d=a.h,e=a.g;if(Oa(d,b)){var f=c.extent,g=c.pixelRatio,h=c.viewState.rotation,l=c.viewState,m=c.pixelRatio/l.resolution;a=Pg(a.i,a.c.width/2,a.c.height/2,m,-m,-l.rotation,-l.center[0],-l.center[1]);d.c(new Fg(b,new xh(e,g,f,a,h),c,e,null))}}
|
|
232
|
-
Ui.prototype.L=function(){return"canvas"};
|
|
233
|
-
Ui.prototype.bf=function(a){if(a){var b=this.g,c=a.pixelRatio,d=Math.round(a.size[0]*c),c=Math.round(a.size[1]*c);this.c.width!=d||this.c.height!=c?(this.c.width=d,this.c.height=c):b.clearRect(0,0,d,c);var e=a.viewState.rotation,f=a.viewState,g=a.coordinateToPixelTransform,h=a.pixelToCoordinateTransform;Pg(g,a.size[0]/2,a.size[1]/2,1/f.resolution,-1/f.resolution,-f.rotation,-f.center[0],-f.center[1]);Qg(Ng(h,g));Vi(this,"precompose",a);f=a.layerStatesArray;bb(f);ih(b,e,d/2,c/2);var g=a.viewState.resolution,
|
|
234
|
-
l,m,n,h=0;for(l=f.length;h<l;++h)n=f[h],m=n.layer,m=Tg(this,m),n.visible&&g>=n.minResolution&&g<n.maxResolution&&"ready"==n.jj&&m.B(a,n)&&m.h(a,n,b);ih(b,-e,d/2,c/2);Vi(this,"postcompose",a);this.a||(this.c.style.display="",this.a=!0);for(var p in this.f)if(!(p in a.layerStates)){a.postRenderFunctions.push(this.Li.bind(this));break}a.postRenderFunctions.push(Sg)}else this.a&&(this.c.style.display="none",this.a=!1)};function Wi(){this.b=0;this.a={};this.f=this.c=null}k=Wi.prototype;k.clear=function(){this.b=0;this.a={};this.f=this.c=null};k.forEach=function(a,b){for(var c=this.c;c;)a.call(b,c.Hb,c.ub,this),c=c.Ka};k.get=function(a){a=this.a[a];ha(void 0!==a,15);if(a===this.f)return a.Hb;a===this.c?(this.c=this.c.Ka,this.c.Cb=null):(a.Ka.Cb=a.Cb,a.Cb.Ka=a.Ka);a.Ka=null;a.Cb=this.f;this.f=this.f.Ka=a;return a.Hb};
|
|
235
|
-
k.pop=function(){var a=this.c;delete this.a[a.ub];a.Ka&&(a.Ka.Cb=null);this.c=a.Ka;this.c||(this.f=null);--this.b;return a.Hb};k.replace=function(a,b){this.get(a);this.a[a].Hb=b};k.set=function(a,b){ha(!(a in this.a),16);var c={ub:a,Ka:null,Cb:this.f,Hb:b};this.f?this.f.Ka=c:this.c=c;this.f=c;this.a[a]=c;++this.b};var Xi=["canvas","webgl"];
|
|
236
|
-
function L(a){Ra.call(this);var b=Yi(a);this.Ra=void 0!==a.loadTilesWhileAnimating?a.loadTilesWhileAnimating:!1;this.Jb=void 0!==a.loadTilesWhileInteracting?a.loadTilesWhileInteracting:!1;this.Uc=void 0!==a.pixelRatio?a.pixelRatio:ne;this.Tc=b.logos;this.sa=function(){this.h=void 0;this.Mi.call(this,Date.now())}.bind(this);this.Ga=Kg();this.Vc=Kg();this.Ha=0;this.b=null;this.wa=rb();this.F=this.I=null;this.a=document.createElement("DIV");this.a.className="ol-viewport"+(qe?" ol-touch":"");this.a.style.position=
|
|
237
|
-
"relative";this.a.style.overflow="hidden";this.a.style.width="100%";this.a.style.height="100%";this.a.style.msTouchAction="none";this.a.style.touchAction="none";this.C=document.createElement("DIV");this.C.className="ol-overlaycontainer";this.a.appendChild(this.C);this.u=document.createElement("DIV");this.u.className="ol-overlaycontainer-stopevent";a=["click","dblclick","mousedown","touchstart","mspointerdown",cf,"mousewheel","wheel"];for(var c=0,d=a.length;c<d;++c)x(this.u,a[c],Ma);this.a.appendChild(this.u);
|
|
238
|
-
this.pa=new Ve(this);for(var e in ff)x(this.pa,ff[e],this.Ie,this);this.na=b.keyboardEventTarget;this.w=null;x(this.a,"wheel",this.tb,this);x(this.a,"mousewheel",this.tb,this);this.l=b.controls;this.i=b.interactions;this.o=b.overlays;this.Dd={};this.D=new b.Oi(this.a,this);this.ea=null;this.G=[];this.ua=[];this.ta=new of(this.qg.bind(this),this.Sg.bind(this));this.ha={};x(this,Ua(Zi),this.Eg,this);x(this,Ua($i),this.Tg,this);x(this,Ua(aj),this.Pg,this);x(this,Ua(bj),this.Rg,this);this.O(b.values);
|
|
239
|
-
this.l.forEach(function(a){a.setMap(this)},this);x(this.l,Pd,function(a){a.element.setMap(this)},this);x(this.l,Qd,function(a){a.element.setMap(null)},this);this.i.forEach(function(a){a.setMap(this)},this);x(this.i,Pd,function(a){a.element.setMap(this)},this);x(this.i,Qd,function(a){a.element.setMap(null)},this);this.o.forEach(this.ce,this);x(this.o,Pd,function(a){this.ce(a.element)},this);x(this.o,Qd,function(a){var b=a.element.Ta();void 0!==b&&delete this.Dd[b.toString()];a.element.setMap(null)},
|
|
240
|
-
this)}v(L,Ra);k=L.prototype;k.Ef=function(a){this.l.push(a)};k.Ff=function(a){this.i.push(a)};k.Gf=function(a){this.qb().xb().push(a)};k.Hf=function(a){this.o.push(a)};k.ce=function(a){var b=a.Ta();void 0!==b&&(this.Dd[b.toString()]=a);a.setMap(this)};k.xa=function(a){this.render();Array.prototype.push.apply(this.G,arguments)};
|
|
241
|
-
k.ka=function(){Ka(this.pa);Ka(this.D);Ia(this.a,"wheel",this.tb,this);Ia(this.a,"mousewheel",this.tb,this);void 0!==this.g&&(window.removeEventListener("resize",this.g,!1),this.g=void 0);this.h&&(cancelAnimationFrame(this.h),this.h=void 0);this.Ne(null);Ra.prototype.ka.call(this)};k.jd=function(a,b,c,d,e){if(this.b)return a=this.za(a),this.D.ya(a,this.b,b,void 0!==c?c:null,void 0!==d?d:Ub,void 0!==e?e:null)};
|
|
242
|
-
k.vh=function(a,b,c,d,e){if(this.b){a:{var f=this.D,g=this.b;c=void 0!==c?c:null;d=void 0!==d?d:Ub;e=void 0!==e?e:null;var h,l=g.viewState.resolution,m=g.layerStatesArray,n;for(n=m.length-1;0<=n;--n){h=m[n];var p=h.layer;if(h.visible&&l>=h.minResolution&&l<h.maxResolution&&d.call(e,p)&&(h=Tg(f,p).l(a,g,b,c))){a=h;break a}}a=void 0}return a}};k.Vg=function(a,b,c){if(!this.b)return!1;a=this.za(a);var d=this.D;return void 0!==d.ya(a,this.b,Ub,d,void 0!==b?b:Ub,void 0!==c?c:null)};k.Vf=function(a){return this.za(this.md(a))};
|
|
243
|
-
k.md=function(a){var b=this.a.getBoundingClientRect();a=a.changedTouches?a.changedTouches[0]:a;return[a.clientX-b.left,a.clientY-b.top]};k.qd=function(){return this.get(bj)};k.Tb=function(){var a=this.qd();return void 0!==a?"string"===typeof a?document.getElementById(a):a:null};k.za=function(a){var b=this.b;return b?Og(b.pixelToCoordinateTransform,a.slice()):null};k.Uf=function(){return this.l};k.jg=function(){return this.o};k.ig=function(a){a=this.Dd[a.toString()];return void 0!==a?a:null};
|
|
244
|
-
k.Zf=function(){return this.i};k.qb=function(){return this.get(Zi)};k.wh=function(){return this.qb().xb()};k.Na=function(a){var b=this.b;return b?Og(b.coordinateToPixelTransform,a.slice(0,2)):null};k.wb=function(){return this.get(aj)};k.W=function(){return this.get($i)};k.sg=function(){return this.a};k.qg=function(a,b,c,d){var e=this.b;if(!(e&&b in e.wantedTiles&&e.wantedTiles[b][a.getKey()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};
|
|
245
|
-
k.tb=function(a,b){var c=new Te(b||a.type,this,a);this.Ie(c)};k.Ie=function(a){if(this.b){this.ea=a.coordinate;a.frameState=this.b;var b=this.i.a,c;if(!1!==this.c(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.F()&&!d.handleEvent(a))break}}};
|
|
246
|
-
k.Og=function(){var a=this.b,b=this.ta;if(0!==b.c.length){var c=16,d=c;if(a){var e=a.viewHints;e[0]&&(c=this.Ra?8:0,d=2);e[1]&&(c=this.Jb?8:0,d=2)}if(b.h<c){var e=b.l,f=b.c,g=b.f,h=0,l=f.length,m,n,p;for(n=0;n<l;++n)m=f[n],p=e(m),Infinity==p?delete b.a[b.b(m)]:(g[h]=p,f[h++]=m);f.length=h;g.length=h;for(e=(b.c.length>>1)-1;0<=e;e--)nf(b,e);pf(b,c,d)}}b=this.ua;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};k.Pg=function(){this.render()};
|
|
247
|
-
k.Rg=function(){var a;this.qd()&&(a=this.Tb());if(this.w){for(var b=0,c=this.w.length;b<c;++b)Ca(this.w[b]);this.w=null}a?(a.appendChild(this.a),a=this.na?this.na:a,this.w=[x(a,"keydown",this.tb,this),x(a,"keypress",this.tb,this)],this.g||(this.g=this.Rd.bind(this),window.addEventListener("resize",this.g,!1))):($d(this.a),void 0!==this.g&&(window.removeEventListener("resize",this.g,!1),this.g=void 0));this.Rd()};k.Sg=function(){this.render()};k.Ug=function(){this.render()};
|
|
248
|
-
k.Tg=function(){this.I&&(Ca(this.I),this.I=null);var a=this.W();a&&(this.I=x(a,"propertychange",this.Ug,this));this.render()};k.Eg=function(){this.F&&(this.F.forEach(Ca),this.F=null);var a=this.qb();a&&(this.F=[x(a,"propertychange",this.render,this),x(a,"change",this.render,this)]);this.render()};k.Ni=function(){this.h&&cancelAnimationFrame(this.h);this.sa()};k.render=function(){void 0===this.h&&(this.h=requestAnimationFrame(this.sa))};k.Gi=function(a){return this.l.remove(a)};k.Hi=function(a){return this.i.remove(a)};
|
|
249
|
-
k.Ji=function(a){return this.qb().xb().remove(a)};k.Ki=function(a){return this.o.remove(a)};
|
|
250
|
-
k.Mi=function(a){var b,c,d,e=this.wb(),f=this.W(),g=rb(),h=null;if(b=void 0!==e&&0<e[0]&&0<e[1]&&f)b=!!f.Ea()&&void 0!==f.T();if(b){var h=hd(f,this.b?this.b.viewHints:void 0),l=this.qb().nd(),m={};b=0;for(c=l.length;b<c;++b)m[w(l[b].layer)]=l[b];d=f.J();h={animate:!1,attributions:{},coordinateToPixelTransform:this.Ga,extent:g,focus:this.ea?this.ea:d.center,index:this.Ha++,layerStates:m,layerStatesArray:l,logos:ua({},this.Tc),pixelRatio:this.Uc,pixelToCoordinateTransform:this.Vc,postRenderFunctions:[],
|
|
251
|
-
size:e,skippedFeatureUids:this.ha,tileQueue:this.ta,time:a,usedTiles:{},viewState:d,viewHints:h,wantedTiles:{}}}if(h){a=this.G;b=e=0;for(c=a.length;b<c;++b)f=a[b],f(this,h)&&(a[e++]=f);a.length=e;h.extent=Pb(d.center,d.resolution,d.rotation,h.size,g)}this.b=h;this.D.bf(h);h&&(h.animate&&this.render(),Array.prototype.push.apply(this.ua,h.postRenderFunctions),0!==this.G.length||h.viewHints[0]||h.viewHints[1]||Cb(h.extent,this.wa)||(this.c(new ae("moveend",this,h)),ub(h.extent,this.wa)));this.c(new ae("postrender",
|
|
252
|
-
this,h));setTimeout(this.Og.bind(this),0)};k.Wi=function(a){this.set(Zi,a)};k.Nd=function(a){this.set(aj,a)};k.Ne=function(a){this.set(bj,a)};k.fj=function(a){this.set($i,a)};k.kf=function(a){a=w(a).toString();this.ha[a]=!0;this.render()};
|
|
253
|
-
k.Rd=function(){var a=this.Tb();if(a){var b=getComputedStyle(a);this.Nd([a.offsetWidth-parseFloat(b.borderLeftWidth)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight)-parseFloat(b.borderRightWidth),a.offsetHeight-parseFloat(b.borderTopWidth)-parseFloat(b.paddingTop)-parseFloat(b.paddingBottom)-parseFloat(b.borderBottomWidth)])}else this.Nd(void 0)};k.lf=function(a){a=w(a).toString();delete this.ha[a];this.render()};
|
|
254
|
-
function Yi(a){var b=null;void 0!==a.keyboardEventTarget&&(b="string"===typeof a.keyboardEventTarget?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d={};if(void 0===a.logo||"boolean"===typeof a.logo&&a.logo)d["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]=
|
|
255
|
-
"http://openlayers.org/";else{var e=a.logo;"string"===typeof e?d[e]="":e instanceof HTMLElement?d[w(e).toString()]=e:e&&(ha("string"==typeof e.href,44),ha("string"==typeof e.src,45),d[e.src]=e.href)}e=a.layers instanceof H?a.layers:new H({layers:a.layers});c[Zi]=e;c[bj]=a.target;c[$i]=void 0!==a.view?a.view:new F;var e=Rg,f;void 0!==a.renderer?(Array.isArray(a.renderer)?f=a.renderer:"string"===typeof a.renderer?f=[a.renderer]:ha(!1,46),0<=f.indexOf("dom")&&(f=f.concat(Xi))):f=Xi;var g,h;g=0;for(h=
|
|
256
|
-
f.length;g<h;++g)if("canvas"==f[g]&&pe){e=Ui;break}void 0!==a.controls?Array.isArray(a.controls)?f=new G(a.controls.slice()):(ha(a.controls instanceof G,47),f=a.controls):f=he();void 0!==a.interactions?Array.isArray(a.interactions)?g=new G(a.interactions.slice()):(ha(a.interactions instanceof G,48),g=a.interactions):g=sg();void 0!==a.overlays?Array.isArray(a.overlays)?a=new G(a.overlays.slice()):(ha(a.overlays instanceof G,49),a=a.overlays):a=new G;return{controls:f,interactions:g,keyboardEventTarget:b,
|
|
257
|
-
logos:d,overlays:a,Oi:e,values:c}}var Zi="layergroup",aj="size",bj="target",$i="view";Eg();function M(a){Ra.call(this);this.o=a.id;this.l=void 0!==a.insertFirst?a.insertFirst:!0;this.w=void 0!==a.stopEvent?a.stopEvent:!0;this.b=document.createElement("DIV");this.b.className="ol-overlay-container";this.b.style.position="absolute";this.autoPan=void 0!==a.autoPan?a.autoPan:!1;this.h=void 0!==a.autoPanAnimation?a.autoPanAnimation:{};this.i=void 0!==a.autoPanMargin?a.autoPanMargin:20;this.a={jc:"",wc:"",Lc:"",Sc:"",visible:!0};this.g=null;x(this,Ua(cj),this.yg,this);x(this,Ua(dj),this.Jg,this);
|
|
258
|
-
x(this,Ua(ej),this.Kg,this);x(this,Ua(fj),this.Mg,this);x(this,Ua(gj),this.Ng,this);void 0!==a.element&&this.df(a.element);this.hf(void 0!==a.offset?a.offset:[0,0]);this.jf(void 0!==a.positioning?a.positioning:hj);void 0!==a.position&&this.Oe(a.position)}v(M,Ra);k=M.prototype;k.ld=function(){return this.get(cj)};k.Ta=function(){return this.o};k.xc=function(){return this.get(dj)};k.Ae=function(){return this.get(ej)};k.Ce=function(){return this.get(fj)};k.De=function(){return this.get(gj)};
|
|
259
|
-
k.yg=function(){for(var a=this.b;a.lastChild;)a.removeChild(a.lastChild);(a=this.ld())&&this.b.appendChild(a)};k.Jg=function(){this.g&&($d(this.b),Ca(this.g),this.g=null);var a=this.xc();a&&(this.g=x(a,"postrender",this.render,this),ij(this),a=this.w?a.u:a.C,this.l?a.insertBefore(this.b,a.childNodes[0]||null):a.appendChild(this.b))};k.render=function(){ij(this)};k.Kg=function(){ij(this)};
|
|
260
|
-
k.Mg=function(){ij(this);if(void 0!==this.get(fj)&&this.autoPan){var a=this.xc();if(void 0!==a&&a.Tb()){var b=jj(a.Tb(),a.wb()),c=this.ld(),d=c.offsetWidth,e=c.currentStyle||getComputedStyle(c),d=d+(parseInt(e.marginLeft,10)+parseInt(e.marginRight,10)),e=c.offsetHeight,f=c.currentStyle||getComputedStyle(c),e=e+(parseInt(f.marginTop,10)+parseInt(f.marginBottom,10)),g=jj(c,[d,e]),c=this.i;yb(b,g)||(d=g[0]-b[0],e=b[2]-g[2],f=g[1]-b[1],g=b[3]-g[3],b=[0,0],0>d?b[0]=d-c:0>e&&(b[0]=Math.abs(e)+c),0>f?b[1]=
|
|
261
|
-
f-c:0>g&&(b[1]=Math.abs(g)+c),0===b[0]&&0===b[1])||(c=a.W().Ea(),d=a.Na(c),b=[d[0]+b[0],d[1]+b[1]],this.h&&(this.h.source=c,a.xa(rd(this.h))),a.W().La(a.za(b)))}}};k.Ng=function(){ij(this)};k.df=function(a){this.set(cj,a)};k.setMap=function(a){this.set(dj,a)};k.hf=function(a){this.set(ej,a)};k.Oe=function(a){this.set(fj,a)};function jj(a,b){var c=a.getBoundingClientRect(),d=c.left+window.pageXOffset,c=c.top+window.pageYOffset;return[d,c,d+b[0],c+b[1]]}k.jf=function(a){this.set(gj,a)};
|
|
262
|
-
function kj(a,b){a.a.visible!==b&&(a.b.style.display=b?"":"none",a.a.visible=b)}
|
|
263
|
-
function ij(a){var b=a.xc(),c=a.Ce();if(void 0!==b&&b.b&&void 0!==c){var c=b.Na(c),d=b.wb(),b=a.b.style,e=a.Ae(),f=a.De(),g=e[0],e=e[1];if(f==lj||f==mj||f==nj)""!==a.a.wc&&(a.a.wc=b.left=""),g=Math.round(d[0]-c[0]-g)+"px",a.a.Lc!=g&&(a.a.Lc=b.right=g);else{""!==a.a.Lc&&(a.a.Lc=b.right="");if(f==oj||f==pj||f==qj)g-=a.b.offsetWidth/2;g=Math.round(c[0]+g)+"px";a.a.wc!=g&&(a.a.wc=b.left=g)}if(f==rj||f==oj||f==lj)""!==a.a.Sc&&(a.a.Sc=b.top=""),c=Math.round(d[1]-c[1]-e)+"px",a.a.jc!=c&&(a.a.jc=b.bottom=
|
|
264
|
-
c);else{""!==a.a.jc&&(a.a.jc=b.bottom="");if(f==sj||f==pj||f==mj)e-=a.b.offsetHeight/2;c=Math.round(c[1]+e)+"px";a.a.Sc!=c&&(a.a.Sc=b.top=c)}kj(a,!0)}else kj(a,!1)}var rj="bottom-left",oj="bottom-center",lj="bottom-right",sj="center-left",pj="center-center",mj="center-right",hj="top-left",qj="top-center",nj="top-right",cj="element",dj="map",ej="offset",fj="position",gj="positioning";function tj(a){a=a?a:{};this.b=void 0;this.g=uj;this.l=[];this.w=this.i=0;this.G=null;this.ea=!1;this.I=void 0!==a.duration?a.duration:200;var b=void 0!==a.className?a.className:"ol-zoomslider",c=document.createElement("button");c.setAttribute("type","button");c.className=b+"-thumb ol-unselectable";var d=document.createElement("div");d.className=b+" ol-unselectable ol-control";d.appendChild(c);this.h=new Oe(d);x(this.h,"pointerdown",this.xg,this);x(this.h,"pointermove",this.Ge,this);x(this.h,"pointerup",
|
|
265
|
-
this.He,this);x(d,"click",this.wg,this);x(c,"click",Ma);be.call(this,{element:d,render:a.render?a.render:vj})}v(tj,be);tj.prototype.ka=function(){Ka(this.h);be.prototype.ka.call(this)};var uj=0;k=tj.prototype;k.setMap=function(a){be.prototype.setMap.call(this,a);a&&a.render()};
|
|
266
|
-
function vj(a){if(a.frameState){if(!this.ea){var b=this.element,c=b.offsetWidth,d=b.offsetHeight,e=b.firstElementChild,f=getComputedStyle(e),b=e.offsetWidth+parseFloat(f.marginRight)+parseFloat(f.marginLeft),e=e.offsetHeight+parseFloat(f.marginTop)+parseFloat(f.marginBottom);this.G=[b,e];c>d?(this.g=1,this.w=c-b):(this.g=uj,this.i=d-e);this.ea=!0}a=a.frameState.viewState.resolution;a!==this.b&&(this.b=a,wj(this,a))}}
|
|
267
|
-
k.wg=function(a){var b=this.a,c=b.W(),d=c.T();b.xa(td({resolution:d,duration:this.I,easing:nd}));a=xj(this,ia(1===this.g?(a.offsetX-this.G[0]/2)/this.w:(a.offsetY-this.G[1]/2)/this.i,0,1));c.Xa(c.constrainResolution(a))};
|
|
268
|
-
k.xg=function(a){if(!this.o&&a.c.target===this.element.firstElementChild&&(ld(this.a.W(),1),this.C=a.clientX,this.D=a.clientY,this.o=!0,0===this.l.length)){a=this.Ge;var b=this.He;this.l.push(x(document,"mousemove",a,this),x(document,"touchmove",a,this),x(document,"pointermove",a,this),x(document,"mouseup",b,this),x(document,"touchend",b,this),x(document,"pointerup",b,this))}};
|
|
269
|
-
k.Ge=function(a){if(this.o){var b=this.element.firstElementChild;this.b=xj(this,ia(1===this.g?(a.clientX-this.C+parseInt(b.style.left,10))/this.w:(a.clientY-this.D+parseInt(b.style.top,10))/this.i,0,1));this.a.W().Xa(this.b);wj(this,this.b);this.C=a.clientX;this.D=a.clientY}};k.He=function(){if(this.o){var a=this.a,b=a.W();ld(b,-1);a.xa(td({resolution:this.b,duration:this.I,easing:nd}));a=b.constrainResolution(this.b);b.Xa(a);this.o=!1;this.D=this.C=void 0;this.l.forEach(Ca);this.l.length=0}};
|
|
270
|
-
function wj(a,b){var c;c=1-kd(a.a.W())(b);var d=a.element.firstElementChild;1==a.g?d.style.left=a.w*c+"px":d.style.top=a.i*c+"px"}function xj(a,b){return jd(a.a.W())(1-b)};function N(a){Ra.call(this);this.i=void 0;this.a="geometry";this.h=null;this.g=void 0;this.b=null;x(this,Ua(this.a),this.sc,this);void 0!==a&&(a instanceof xc||!a?this.Oa(a):this.O(a))}v(N,Ra);k=N.prototype;k.clone=function(){var a=new N(this.U());a.Mc(this.a);var b=this.K();b&&a.Oa(b.clone());(b=this.h)&&a.Me(b);return a};k.K=function(){return this.get(this.a)};k.Ta=function(){return this.i};k.Yf=function(){return this.a};k.qh=function(){return this.h};k.rh=function(){return this.g};k.Bg=function(){this.s()};
|
|
271
|
-
k.sc=function(){this.b&&(Ca(this.b),this.b=null);var a=this.K();a&&(this.b=x(a,"change",this.Bg,this));this.s()};k.Oa=function(a){this.set(this.a,a)};k.Me=function(a){this.g=(this.h=a)?yj(a):void 0;this.s()};k.ff=function(a){this.i=a;this.s()};k.Mc=function(a){Ia(this,Ua(this.a),this.sc,this);this.a=a;x(this,Ua(this.a),this.sc,this);this.sc()};function yj(a){if("function"!==typeof a){var b;Array.isArray(a)?b=a:(ha(a instanceof qh,41),b=[a]);a=function(){return b}}return a};function zj(a,b,c){return function(d,e,f){var g=new XMLHttpRequest;g.open("GET","function"===typeof a?a(d,e,f):a,!0);"arraybuffer"==b.L()&&(g.responseType="arraybuffer");g.onload=function(){if(!g.status||200<=g.status&&300>g.status){var a=b.L(),d;"json"==a||"text"==a?d=g.responseText:"xml"==a?(d=g.responseXML,d||(a=g.responseText,d=(new DOMParser).parseFromString(a,"application/xml"))):"arraybuffer"==a&&(d=g.response);d&&c.call(this,b.Jc(d,{featureProjection:f}),b.Kc(d))}}.bind(this);g.send()}}
|
|
272
|
-
function Aj(a,b){return zj(a,b,function(a){this.ic(a)})};function Bj(){this.defaultDataProjection=null}function Cj(a,b,c){var d;c&&(d={dataProjection:c.dataProjection?c.dataProjection:a.Kc(b),featureProjection:c.featureProjection});return Dj(a,d)}function Dj(a,b){var c;b&&(c={featureProjection:b.featureProjection,dataProjection:b.dataProjection?b.dataProjection:a.defaultDataProjection,rightHanded:b.rightHanded},b.decimals&&(c.decimals=b.decimals));return c}
|
|
273
|
-
function Ej(a,b,c){var d=c?cc(c.featureProjection):null,e=c?cc(c.dataProjection):null,f;d&&e&&!sc(d,e)?a instanceof xc?f=(b?a.clone():a).transform(b?d:e,b?e:d):f=wc(b?a.slice():a,b?d:e,b?e:d):f=a;if(b&&c&&c.decimals){var g=Math.pow(10,c.decimals);a=function(a){for(var b=0,c=a.length;b<c;++b)a[b]=Math.round(a[b]*g)/g;return a};Array.isArray(f)?a(f):f.nb(a)}return f};function Fj(){this.defaultDataProjection=null}v(Fj,Bj);function Gj(a){return"string"===typeof a?(a=JSON.parse(a))?a:null:null!==a?a:null}k=Fj.prototype;k.L=function(){return"json"};k.Hd=function(a,b){return Hj(this,Gj(a),Cj(this,a,b))};k.Jc=function(a,b){var c=Gj(a),d=Cj(this,a,b),e;if("Feature"==c.type)e=[Hj(this,c,d)];else if("FeatureCollection"==c.type){e=[];var c=c.features,f,g;f=0;for(g=c.length;f<g;++f)e.push(Hj(this,c[f],d))}else ha(!1,35);return e};
|
|
274
|
-
k.Id=function(a,b){var c=Gj(a),d=Cj(this,a,b);return Ij(c,d)};k.Kc=function(a){a=Gj(a).crs;var b;a?"name"==a.type?b=cc(a.properties.name):"EPSG"==a.type?b=cc("EPSG:"+a.properties.code):ha(!1,36):b=this.defaultDataProjection;return b};k.Sd=function(a,b){return JSON.stringify(this.c(a,b))};k.Td=function(a,b){return JSON.stringify(this.a(a,b))};k.Ud=function(a,b){return JSON.stringify(this.b(a,b))};function Jj(a,b,c,d,e,f){var g=NaN,h=NaN,l=(c-b)/d;if(0!==l)if(1==l)g=a[b],h=a[b+1];else if(2==l)g=(1-e)*a[b]+e*a[b+d],h=(1-e)*a[b+1]+e*a[b+d+1];else{var h=a[b],l=a[b+1],m=0,g=[0],n;for(n=b+d;n<c;n+=d){var p=a[n],q=a[n+1],m=m+Math.sqrt((p-h)*(p-h)+(q-l)*(q-l));g.push(m);h=p;l=q}c=e*m;l=0;m=g.length;for(n=!1;l<m;)e=l+(m-l>>1),h=+Xa(g[e],c),0>h?l=e+1:(m=e,n=!h);e=n?l:~l;0>e?(c=(c-g[-e-2])/(g[-e-1]-g[-e-2]),b+=(-e-2)*d,g=na(a[b],a[b+d],c),h=na(a[b+1],a[b+d+1],c)):(g=a[b+e*d],h=a[b+e*d+1])}return f?(f[0]=
|
|
275
|
-
g,f[1]=h,f):[g,h]}function Kj(a,b,c,d,e,f){if(c==b)return null;if(e<a[b+d-1])return f?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return f?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<c;)f=b+c>>1,e<a[(f+1)*d-1]?c=f:b=f+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);f=(e-c)/(a[(b+1)*d-1]-c);c=[];var g;for(g=0;g<d-1;++g)c.push(na(a[(b-1)*d+g],a[b*d+g],f));c.push(e);return c}
|
|
276
|
-
function Lj(a,b,c,d,e,f){var g=0;if(f)return Kj(a,g,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(f=b.length;e<f;++e){var h=b[e];if(g!=h){if(d<a[g+c-1])break;if(d<=a[h-1])return Kj(a,g,h,c,d,!1);g=h}}return null};function O(a,b){A.call(this);this.b=null;this.u=this.C=this.i=-1;this.ca(a,b)}v(O,A);k=O.prototype;k.If=function(a){this.j?Za(this.j,a):this.j=a.slice();this.s()};k.clone=function(){var a=new O(null);Mj(a,this.a,this.j.slice());return a};k.Ia=function(a,b,c,d){if(d<vb(this.A(),a,b))return d;this.u!=this.f&&(this.C=Math.sqrt(Fc(this.j,0,this.j.length,this.v,0)),this.u=this.f);return Hc(this.j,0,this.j.length,this.v,this.C,!1,a,b,c,d)};k.Rf=function(a,b){return Uc(this.j,0,this.j.length,this.v,a,b)};
|
|
277
|
-
k.Ch=function(a,b){return"XYM"!=this.a&&"XYZM"!=this.a?null:Kj(this.j,0,this.j.length,this.v,a,void 0!==b?b:!1)};k.P=function(){return Mc(this.j,0,this.j.length,this.v)};k.ne=function(a,b){return Jj(this.j,0,this.j.length,this.v,a,b)};k.Dh=function(){var a=this.j,b=this.v,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.j.length;f+=b)var g=a[f],h=a[f+1],e=e+Math.sqrt((g-c)*(g-c)+(h-d)*(h-d)),c=g,d=h;return e};function Eh(a){a.i!=a.f&&(a.b=a.ne(.5,a.b),a.i=a.f);return a.b}
|
|
278
|
-
k.sb=function(a){var b=[];b.length=Oc(this.j,0,this.j.length,this.v,a,b,0);a=new O(null);Mj(a,"XY",b);return a};k.L=function(){return"LineString"};k.oa=function(a){return Vc(this.j,0,this.j.length,this.v,a)};k.ca=function(a,b){a?(Bc(this,b,a,1),this.j||(this.j=[]),this.j.length=Kc(this.j,0,a,this.v),this.s()):Mj(this,"XY",null)};function Mj(a,b,c){Ac(a,b,c);a.s()};function P(a,b){A.call(this);this.ma=[];this.b=this.i=-1;this.ca(a,b)}v(P,A);k=P.prototype;k.Jf=function(a){this.j?Za(this.j,a.j.slice()):this.j=a.j.slice();this.ma.push(this.j.length);this.s()};k.clone=function(){var a=new P(null),b=this.ma.slice();Ac(a,this.a,this.j.slice());a.ma=b;a.s();return a};k.Ia=function(a,b,c,d){if(d<vb(this.A(),a,b))return d;this.b!=this.f&&(this.i=Math.sqrt(Gc(this.j,0,this.ma,this.v,0)),this.b=this.f);return Ic(this.j,0,this.ma,this.v,this.i,!1,a,b,c,d)};
|
|
279
|
-
k.Fh=function(a,b,c){return"XYM"!=this.a&&"XYZM"!=this.a||0===this.j.length?null:Lj(this.j,this.ma,this.v,a,void 0!==b?b:!1,void 0!==c?c:!1)};k.P=function(){return Nc(this.j,0,this.ma,this.v)};k.dg=function(a){if(0>a||this.ma.length<=a)return null;var b=new O(null);Mj(b,this.a,this.j.slice(0===a?0:this.ma[a-1],this.ma[a]));return b};k.ve=function(){var a=this.j,b=this.ma,c=this.a,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],l=new O(null);Mj(l,c,a.slice(e,h));d.push(l);e=h}return d};
|
|
280
|
-
function Fh(a){var b=[],c=a.j,d=0,e=a.ma;a=a.v;var f,g;f=0;for(g=e.length;f<g;++f){var h=e[f],d=Jj(c,d,h,a,.5);Za(b,d);d=h}return b}k.sb=function(a){var b=[],c=[],d=this.j,e=this.ma,f=this.v,g=0,h=0,l,m;l=0;for(m=e.length;l<m;++l){var n=e[l],h=Oc(d,g,n,f,a,b,h);c.push(h);g=n}b.length=h;a=new P(null);Ac(a,"XY",b);a.ma=c;a.s();return a};k.L=function(){return"MultiLineString"};
|
|
281
|
-
k.oa=function(a){a:{var b=this.j,c=this.ma,d=this.v,e=0,f,g;f=0;for(g=c.length;f<g;++f){if(Vc(b,e,c[f],d,a)){a=!0;break a}e=c[f]}a=!1}return a};k.ca=function(a,b){if(a){Bc(this,b,a,2);this.j||(this.j=[]);var c=Lc(this.j,0,a,this.v,this.ma);this.j.length=0===c.length?0:c[c.length-1]}else c=this.ma,Ac(this,"XY",null),this.ma=c;this.s()};function S(a,b){A.call(this);this.ca(a,b)}v(S,A);k=S.prototype;k.Lf=function(a){this.j?Za(this.j,a.j):this.j=a.j.slice();this.s()};k.clone=function(){var a=new S(null);Ac(a,this.a,this.j.slice());a.s();return a};k.Ia=function(a,b,c,d){if(d<vb(this.A(),a,b))return d;var e=this.j,f=this.v,g,h,l;g=0;for(h=e.length;g<h;g+=f)if(l=ka(a,b,e[g],e[g+1]),l<d){d=l;for(l=0;l<f;++l)c[l]=e[g+l];c.length=f}return d};k.P=function(){return Mc(this.j,0,this.j.length,this.v)};
|
|
282
|
-
k.kg=function(a){var b=this.j?this.j.length/this.v:0;if(0>a||b<=a)return null;b=new D(null);Ac(b,this.a,this.j.slice(a*this.v,(a+1)*this.v));b.s();return b};k.Pe=function(){var a=this.j,b=this.a,c=this.v,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new D(null),h=g;Ac(h,b,a.slice(e,e+c));h.s();d.push(g)}return d};k.L=function(){return"MultiPoint"};k.oa=function(a){var b=this.j,c=this.v,d,e,f,g;d=0;for(e=b.length;d<e;d+=c)if(f=b[d],g=b[d+1],xb(a,f,g))return!0;return!1};
|
|
283
|
-
k.ca=function(a,b){a?(Bc(this,b,a,1),this.j||(this.j=[]),this.j.length=Kc(this.j,0,a,this.v)):Ac(this,"XY",null);this.s()};function T(a,b){A.call(this);this.b=[];this.u=-1;this.C=null;this.G=this.D=this.F=-1;this.i=null;this.ca(a,b)}v(T,A);k=T.prototype;k.Mf=function(a){if(this.j){var b=this.j.length;Za(this.j,a.j);a=a.fa.slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}else this.j=a.j.slice(),a=a.fa.slice(),this.b.push();this.b.push(a);this.s()};k.clone=function(){for(var a=new T(null),b=this.b.length,c=Array(b),d=0;d<b;++d)c[d]=this.b[d].slice();Ac(a,this.a,this.j.slice());a.b=c;a.s();return a};
|
|
284
|
-
k.Ia=function(a,b,c,d){if(d<vb(this.A(),a,b))return d;if(this.D!=this.f){var e=this.b,f=0,g=0,h,l;h=0;for(l=e.length;h<l;++h)var m=e[h],g=Gc(this.j,f,m,this.v,g),f=m[m.length-1];this.F=Math.sqrt(g);this.D=this.f}e=Gh(this);f=this.b;g=this.v;h=this.F;l=0;var m=[NaN,NaN],n,p;n=0;for(p=f.length;n<p;++n){var q=f[n];d=Ic(e,l,q,g,h,!0,a,b,c,d,m);l=q[q.length-1]}return d};
|
|
285
|
-
k.jb=function(a,b){var c;a:{c=Gh(this);var d=this.b,e=this.v,f=0;if(0!==d.length){var g,h;g=0;for(h=d.length;g<h;++g){var l=d[g];if(Sc(c,f,l,e,a,b)){c=!0;break a}f=l[l.length-1]}}c=!1}return c};k.Gh=function(){var a=Gh(this),b=this.b,c=0,d=0,e,f;e=0;for(f=b.length;e<f;++e)var g=b[e],d=d+Dc(a,c,g,this.v),c=g[g.length-1];return d};
|
|
286
|
-
k.P=function(a){var b;void 0!==a?(b=Gh(this).slice(),$c(b,this.b,this.v,a)):b=this.j;a=b;b=this.b;var c=this.v,d=0,e=[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var l=b[g];e[f++]=Nc(a,d,l,c,e[f]);d=l[l.length-1]}e.length=f;return e};
|
|
287
|
-
function Hh(a){if(a.u!=a.f){var b=a.j,c=a.b,d=a.v,e=0,f=[],g,h,l;g=0;for(h=c.length;g<h;++g){var m=c[g];l=b;var n=m[0],p=d,q=Bb(void 0);l=Eb(q,l,e,n,p);f.push((l[0]+l[2])/2,(l[1]+l[3])/2);e=m[m.length-1]}b=Gh(a);c=a.b;d=a.v;g=0;h=[];m=0;for(l=c.length;m<l;++m)e=c[m],h=Tc(b,g,e,d,f,2*m,h),g=e[e.length-1];a.C=h;a.u=a.f}return a.C}k.ag=function(){var a=new S(null),b=Hh(this).slice();Ac(a,"XY",b);a.s();return a};
|
|
288
|
-
function Gh(a){if(a.G!=a.f){var b=a.j,c;a:{c=a.b;var d,e;d=0;for(e=c.length;d<e;++d)if(!Yc(b,c[d],a.v,void 0)){c=!1;break a}c=!0}c?a.i=b:(a.i=b.slice(),a.i.length=$c(a.i,a.b,a.v));a.G=a.f}return a.i}k.sb=function(a){var b=[],c=[],d=this.j,e=this.b,f=this.v;a=Math.sqrt(a);var g=0,h=0,l,m;l=0;for(m=e.length;l<m;++l){var n=e[l],p=[],h=Pc(d,g,n,f,a,b,h,p);c.push(p);g=n[n.length-1]}b.length=h;d=new T(null);Ac(d,"XY",b);d.b=c;d.s();return d};
|
|
289
|
-
k.mg=function(a){if(0>a||this.b.length<=a)return null;var b;0===a?b=0:(b=this.b[a-1],b=b[b.length-1]);a=this.b[a].slice();var c=a[a.length-1];if(0!==b){var d,e;d=0;for(e=a.length;d<e;++d)a[d]-=b}d=new E(null);ad(d,this.a,this.j.slice(b,c),a);return d};k.Be=function(){var a=this.a,b=this.j,c=this.b,d=[],e=0,f,g,h,l;f=0;for(g=c.length;f<g;++f){var m=c[f].slice(),n=m[m.length-1];if(0!==e)for(h=0,l=m.length;h<l;++h)m[h]-=e;h=new E(null);ad(h,a,b.slice(e,n),m);d.push(h);e=n}return d};k.L=function(){return"MultiPolygon"};
|
|
290
|
-
k.oa=function(a){a:{var b=Gh(this),c=this.b,d=this.v,e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];if(Wc(b,e,h,d,a)){a=!0;break a}e=h[h.length-1]}a=!1}return a};k.ca=function(a,b){if(a){Bc(this,b,a,3);this.j||(this.j=[]);var c=this.j,d=this.v,e=this.b,f=0,e=e?e:[],g=0,h,l;h=0;for(l=a.length;h<l;++h)f=Lc(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;0===e.length?this.j.length=0:(c=e[e.length-1],this.j.length=0===c.length?0:c[c.length-1])}else c=this.b,Ac(this,"XY",null),this.b=c;this.s()};function U(a){xc.call(this);this.ia=a?a:null;Nj(this)}v(U,xc);function Oj(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].clone());return b}function Pj(a){var b,c;if(a.ia)for(b=0,c=a.ia.length;b<c;++b)Ia(a.ia[b],"change",a.s,a)}function Nj(a){var b,c;if(a.ia)for(b=0,c=a.ia.length;b<c;++b)x(a.ia[b],"change",a.s,a)}k=U.prototype;k.clone=function(){var a=new U(null);a.ef(this.ia);return a};
|
|
291
|
-
k.Ia=function(a,b,c,d){if(d<vb(this.A(),a,b))return d;var e=this.ia,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].Ia(a,b,c,d);return d};k.jb=function(a,b){var c=this.ia,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].jb(a,b))return!0;return!1};k.kc=function(a){Bb(a);for(var b=this.ia,c=0,d=b.length;c<d;++c)Db(a,b[c].A());return a};k.te=function(){return Oj(this.ia)};
|
|
292
|
-
k.pc=function(a){this.l!=this.f&&(wa(this.g),this.h=0,this.l=this.f);if(0>a||0!==this.h&&a<this.h)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=[],d=this.ia,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],l=h.pc(a);c.push(l);l!==h&&(e=!0)}if(e)return a=new U(null),Pj(a),a.ia=c,Nj(a),a.s(),this.g[b]=a;this.h=a;return this};k.L=function(){return"GeometryCollection"};k.oa=function(a){var b=this.ia,c,d;c=0;for(d=b.length;c<d;++c)if(b[c].oa(a))return!0;return!1};
|
|
293
|
-
k.rotate=function(a,b){for(var c=this.ia,d=0,e=c.length;d<e;++d)c[d].rotate(a,b);this.s()};k.scale=function(a,b,c){c||(c=Ob(this.A()));for(var d=this.ia,e=0,f=d.length;e<f;++e)d[e].scale(a,b,c);this.s()};k.ef=function(a){a=Oj(a);Pj(this);this.ia=a;Nj(this);this.s()};k.nb=function(a){var b=this.ia,c,d;c=0;for(d=b.length;c<d;++c)b[c].nb(a);this.s()};k.translate=function(a,b){var c=this.ia,d,e;d=0;for(e=c.length;d<e;++d)c[d].translate(a,b);this.s()};k.ka=function(){Pj(this);xc.prototype.ka.call(this)};function Qj(a){a=a?a:{};this.defaultDataProjection=null;this.defaultDataProjection=cc(a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326");this.f=a.geometryName}v(Qj,Fj);function Ij(a,b){return a?Ej((0,Rj[a.type])(a),!1,b):null}function Sj(a,b){return(0,Tj[a.L()])(Ej(a,!0,b),b)}
|
|
294
|
-
var Rj={Point:function(a){return new D(a.coordinates)},LineString:function(a){return new O(a.coordinates)},Polygon:function(a){return new E(a.coordinates)},MultiPoint:function(a){return new S(a.coordinates)},MultiLineString:function(a){return new P(a.coordinates)},MultiPolygon:function(a){return new T(a.coordinates)},GeometryCollection:function(a,b){var c=a.geometries.map(function(a){return Ij(a,b)});return new U(c)}},Tj={Point:function(a){return{type:"Point",coordinates:a.P()}},LineString:function(a){return{type:"LineString",
|
|
295
|
-
coordinates:a.P()}},Polygon:function(a,b){var c;b&&(c=b.rightHanded);return{type:"Polygon",coordinates:a.P(c)}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.P()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.P()}},MultiPolygon:function(a,b){var c;b&&(c=b.rightHanded);return{type:"MultiPolygon",coordinates:a.P(c)}},GeometryCollection:function(a,b){return{type:"GeometryCollection",geometries:a.ia.map(function(a){var d=ua({},b);delete d.featureProjection;return Sj(a,
|
|
296
|
-
d)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function Hj(a,b,c){c=Ij(b.geometry,c);var d=new N;a.f&&d.Mc(a.f);d.Oa(c);void 0!==b.id&&d.ff(b.id);b.properties&&d.O(b.properties);return d}Qj.prototype.c=function(a,b){b=Dj(this,b);var c={type:"Feature"},d=a.Ta();void 0!==d&&(c.id=d);(d=a.K())?c.geometry=Sj(d,b):c.geometry=null;d=a.U();delete d[a.a];ya(d)?c.properties=null:c.properties=d;return c};
|
|
297
|
-
Qj.prototype.a=function(a,b){b=Dj(this,b);var c=[],d,e;d=0;for(e=a.length;d<e;++d)c.push(this.c(a[d],b));return{type:"FeatureCollection",features:c}};Qj.prototype.b=function(a,b){return Sj(a,Dj(this,b))};function Uj(){this.defaultDataProjection=null}v(Uj,Bj);function Vj(a){return"string"===typeof a?a:""}k=Uj.prototype;k.L=function(){return"text"};k.Hd=function(a,b){var c;if(c=Wj(Vj(a),Dj(this,b))){var d=new N;d.Oa(c);c=d}else c=null;return c};k.Jc=function(a,b){var c=[],d=Wj(Vj(a),Dj(this,b));this.c&&"GeometryCollection"==d.L()?c=d.ia:c=[d];for(var e=[],f=0,g=c.length;f<g;++f)d=new N,d.Oa(c[f]),e.push(d);return e};k.Id=function(a,b){return Wj(Vj(a),Dj(this,b))};k.Kc=function(){return this.defaultDataProjection};
|
|
298
|
-
k.Sd=function(a,b){return Xj(a,Dj(this,b))};k.Td=function(a,b){var c;c=Dj(this,b);if(1==a.length)c=Xj(a[0],c);else{for(var d=[],e=0,f=a.length;e<f;++e)d.push(a[e].K());d=new U(d);c=Yj(Ej(d,!0,c))}return c};k.Ud=function(a,b){return Yj(Ej(a,!0,Dj(this,b)))};function Zj(a,b,c,d,e,f){Na.call(this);this.B=null;this.f=a?a:new Image;null!==d&&(this.f.crossOrigin=d);this.g=f?document.createElement("CANVAS"):null;this.i=f;this.h=null;this.b=e;this.a=c;this.l=b;this.o=!1;this.b==dh&&ak(this)}v(Zj,Na);function ak(a){var b=Zd(1,1);try{b.drawImage(a.f,0,0),b.getImageData(0,0,1,1)}catch(c){a.o=!0}}Zj.prototype.w=function(){this.b=ch;this.h.forEach(Ca);this.h=null;this.c("change")};
|
|
299
|
-
Zj.prototype.u=function(){this.b=dh;this.a&&(this.f.width=this.a[0],this.f.height=this.a[1]);this.a=[this.f.width,this.f.height];this.h.forEach(Ca);this.h=null;ak(this);if(!this.o&&null!==this.i){this.g.width=this.f.width;this.g.height=this.f.height;var a=this.g.getContext("2d");a.drawImage(this.f,0,0);for(var b=a.getImageData(0,0,this.f.width,this.f.height),c=b.data,d=this.i[0]/255,e=this.i[1]/255,f=this.i[2]/255,g=0,h=c.length;g<h;g+=4)c[g]*=d,c[g+1]*=e,c[g+2]*=f;a.putImageData(b,0,0)}this.c("change")};
|
|
300
|
-
Zj.prototype.load=function(){if(this.b==bh){this.b=eh;this.h=[x(this.f,"error",this.w,this,!0),x(this.f,"load",this.u,this,!0)];try{this.f.src=this.l}catch(a){this.w()}}};function bk(a){a=a||{};this.b=void 0!==a.anchor?a.anchor:[.5,.5];this.h=null;this.f=void 0!==a.anchorOrigin?a.anchorOrigin:ck;this.S=void 0!==a.anchorXUnits?a.anchorXUnits:dk;this.aa=void 0!==a.anchorYUnits?a.anchorYUnits:dk;this.D=void 0!==a.crossOrigin?a.crossOrigin:null;var b=void 0!==a.img?a.img:null,c=void 0!==a.imgSize?a.imgSize:null,d=a.src;ha(!(void 0!==d&&b),4);ha(!b||b&&c,5);void 0!==d&&0!==d.length||!b||(d=b.src||w(b).toString());ha(void 0!==d&&0<d.length,6);var e=void 0!==a.src?bh:dh,
|
|
301
|
-
f;void 0!==a.color?(f=a.color,f=Array.isArray(f)?f:Xd(f)):f=null;this.g=f;f=this.D;var g=this.g,h=Ig.get(d,f,g);h||(h=new Zj(b,d,c,f,e,g),Ig.set(d,f,g,h));this.c=h;this.F=void 0!==a.offset?a.offset:[0,0];this.a=void 0!==a.offsetOrigin?a.offsetOrigin:ck;this.i=null;this.u=void 0!==a.size?a.size:null;jh.call(this,{opacity:void 0!==a.opacity?a.opacity:1,rotation:void 0!==a.rotation?a.rotation:0,scale:void 0!==a.scale?a.scale:1,snapToPixel:void 0!==a.snapToPixel?a.snapToPixel:!0,rotateWithView:void 0!==
|
|
302
|
-
a.rotateWithView?a.rotateWithView:!1})}v(bk,jh);k=bk.prototype;
|
|
303
|
-
k.clone=function(){var a=this.ab(1),b;if(this.c.b===dh)if("IMG"===a.tagName.toUpperCase())b=a.cloneNode(!0);else{b=document.createElement("canvas");var c=b.getContext("2d");b.width=a.width;b.height=a.height;c.drawImage(a,0,0)}return new bk({anchor:this.b.slice(),anchorOrigin:this.f,anchorXUnits:this.S,anchorYUnits:this.aa,crossOrigin:this.D,color:this.g&&this.g.slice?this.g.slice():this.g||void 0,img:b?b:void 0,imgSize:b?this.c.a.slice():void 0,src:b?void 0:this.c.l,offset:this.F.slice(),offsetOrigin:this.a,
|
|
304
|
-
size:null!==this.u?this.u.slice():void 0,opacity:this.B,scale:this.l,snapToPixel:this.w,rotation:this.o,rotateWithView:this.C})};k.pb=function(){if(this.h)return this.h;var a=this.b,b=this.bb();if(this.S==dk||this.aa==dk){if(!b)return null;a=this.b.slice();this.S==dk&&(a[0]*=b[0]);this.aa==dk&&(a[1]*=b[1])}if(this.f!=ck){if(!b)return null;a===this.b&&(a=this.b.slice());if(this.f==ek||this.f==fk)a[0]=-a[0]+b[0];if(this.f==gk||this.f==fk)a[1]=-a[1]+b[1]}return this.h=a};
|
|
305
|
-
k.ab=function(){var a=this.c;return a.g?a.g:a.f};k.ac=function(){return this.c.b};k.Cd=function(){var a=this.c;if(!a.B)if(a.o){var b=a.a[0],c=a.a[1],d=Zd(b,c);d.fillRect(0,0,b,c);a.B=d.canvas}else a.B=a.f;return a.B};k.zb=function(){if(this.i)return this.i;var a=this.F;if(this.a!=ck){var b=this.bb(),c=this.c.a;if(!b||!c)return null;a=a.slice();if(this.a==ek||this.a==fk)a[0]=c[0]-b[0]-a[0];if(this.a==gk||this.a==fk)a[1]=c[1]-b[1]-a[1]}return this.i=a};k.Th=function(){return this.c.l};
|
|
306
|
-
k.bb=function(){return this.u?this.u:this.c.a};k.wd=function(a,b){return x(this.c,"change",a,b)};k.load=function(){this.c.load()};k.Qd=function(a,b){Ia(this.c,"change",a,b)};var dk="fraction",gk="bottom-left",fk="bottom-right",ck="top-left",ek="top-right";function hk(a){a=a||{};this.a=a.font;this.h=a.rotation;this.w=a.rotateWithView;this.i=a.scale;this.B=a.text;this.l=a.textAlign;this.o=a.textBaseline;this.c=void 0!==a.fill?a.fill:new oh({color:"#333"});this.f=void 0!==a.stroke?a.stroke:null;this.b=void 0!==a.offsetX?a.offsetX:0;this.g=void 0!==a.offsetY?a.offsetY:0}k=hk.prototype;
|
|
307
|
-
k.clone=function(){return new hk({font:this.a,rotation:this.h,rotateWithView:this.w,scale:this.i,text:this.B,textAlign:this.l,textBaseline:this.o,fill:this.c?this.c.clone():void 0,stroke:this.f?this.f.clone():void 0,offsetX:this.b,offsetY:this.g})};k.Wf=function(){return this.a};k.gg=function(){return this.b};k.hg=function(){return this.g};k.ii=function(){return this.c};k.ji=function(){return this.w};k.ki=function(){return this.h};k.li=function(){return this.i};k.mi=function(){return this.f};
|
|
308
|
-
k.ni=function(){return this.B};k.og=function(){return this.l};k.pg=function(){return this.o};k.Ti=function(a){this.a=a};k.$i=function(a){this.b=a};k.aj=function(a){this.g=a};k.Si=function(a){this.c=a};k.oi=function(a){this.h=a};k.pi=function(a){this.i=a};k.bj=function(a){this.f=a};k.cj=function(a){this.B=a};k.dj=function(a){this.l=a};k.ej=function(a){this.o=a};function ik(a){a=a?a:{};this.defaultDataProjection=null;this.c=void 0!==a.splitCollection?a.splitCollection:!1}v(ik,Uj);function jk(a){a=a.P();return 0===a.length?"":a[0]+" "+a[1]}function kk(a){a=a.P();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c][0]+" "+a[c][1]);return b.join(",")}function lk(a){var b=[];a=a.xe();for(var c=0,d=a.length;c<d;++c)b.push("("+kk(a[c])+")");return b.join(",")}function Yj(a){var b=a.L();a=(0,mk[b])(a);b=b.toUpperCase();return 0===a.length?b+" EMPTY":b+"("+a+")"}
|
|
309
|
-
var mk={Point:jk,LineString:kk,Polygon:lk,MultiPoint:function(a){var b=[];a=a.Pe();for(var c=0,d=a.length;c<d;++c)b.push("("+jk(a[c])+")");return b.join(",")},MultiLineString:function(a){var b=[];a=a.ve();for(var c=0,d=a.length;c<d;++c)b.push("("+kk(a[c])+")");return b.join(",")},MultiPolygon:function(a){var b=[];a=a.Be();for(var c=0,d=a.length;c<d;++c)b.push("("+lk(a[c])+")");return b.join(",")},GeometryCollection:function(a){var b=[];a=a.te();for(var c=0,d=a.length;c<d;++c)b.push(Yj(a[c]));return b.join(",")}};
|
|
310
|
-
function Wj(a,b){var c;c=new nk(new ok(a));c.c=pk(c.f);return(c=qk(c))?Ej(c,!1,b):null}function Xj(a,b){var c=a.K();return c?Yj(Ej(c,!0,b)):""}function ok(a){this.f=a;this.c=-1}
|
|
311
|
-
function pk(a){var b=a.f.charAt(++a.c),c={position:a.c,value:b};if("("==b)c.type=2;else if(","==b)c.type=5;else if(")"==b)c.type=3;else if("0"<=b&&"9">=b||"."==b||"-"==b){c.type=4;var d,b=a.c,e=!1,f=!1;do{if("."==d)e=!0;else if("e"==d||"E"==d)f=!0;d=a.f.charAt(++a.c)}while("0"<=d&&"9">=d||"."==d&&(void 0===e||!e)||!f&&("e"==d||"E"==d)||f&&("-"==d||"+"==d));a=parseFloat(a.f.substring(b,a.c--));c.value=a}else if("a"<=b&&"z">=b||"A"<=b&&"Z">=b){c.type=1;b=a.c;do d=a.f.charAt(++a.c);while("a"<=d&&"z">=
|
|
312
|
-
d||"A"<=d&&"Z">=d);a=a.f.substring(b,a.c--).toUpperCase();c.value=a}else{if(" "==b||"\t"==b||"\r"==b||"\n"==b)return pk(a);if(""===b)c.type=6;else throw Error("Unexpected character: "+b);}return c}function nk(a){this.f=a}function rk(a,b){var c=a.c.type==b;c&&(a.c=pk(a.f));return c}
|
|
313
|
-
function qk(a){var b=a.c;if(rk(a,1)){var c=b.value;if("GEOMETRYCOLLECTION"==c){a:{if(rk(a,2)){b=[];do b.push(qk(a));while(rk(a,5));if(rk(a,3)){a=b;break a}}else if(sk(a)){a=[];break a}throw Error(tk(a));}return new U(a)}var d=uk[c],b=vk[c];if(!d||!b)throw Error("Invalid geometry type: "+c);a=d.call(a);return new b(a)}throw Error(tk(a));}k=nk.prototype;k.Fd=function(){if(rk(this,2)){var a=wk(this);if(rk(this,3))return a}else if(sk(this))return null;throw Error(tk(this));};
|
|
314
|
-
k.Ed=function(){if(rk(this,2)){var a=xk(this);if(rk(this,3))return a}else if(sk(this))return[];throw Error(tk(this));};k.Gd=function(){if(rk(this,2)){var a=yk(this);if(rk(this,3))return a}else if(sk(this))return[];throw Error(tk(this));};k.ui=function(){if(rk(this,2)){var a;if(2==this.c.type)for(a=[this.Fd()];rk(this,5);)a.push(this.Fd());else a=xk(this);if(rk(this,3))return a}else if(sk(this))return[];throw Error(tk(this));};
|
|
315
|
-
k.ti=function(){if(rk(this,2)){var a=yk(this);if(rk(this,3))return a}else if(sk(this))return[];throw Error(tk(this));};k.vi=function(){if(rk(this,2)){for(var a=[this.Gd()];rk(this,5);)a.push(this.Gd());if(rk(this,3))return a}else if(sk(this))return[];throw Error(tk(this));};function wk(a){for(var b=[],c=0;2>c;++c){var d=a.c;if(rk(a,4))b.push(d.value);else break}if(2==b.length)return b;throw Error(tk(a));}function xk(a){for(var b=[wk(a)];rk(a,5);)b.push(wk(a));return b}
|
|
316
|
-
function yk(a){for(var b=[a.Ed()];rk(a,5);)b.push(a.Ed());return b}function sk(a){var b=1==a.c.type&&"EMPTY"==a.c.value;b&&(a.c=pk(a.f));return b}function tk(a){return"Unexpected `"+a.c.value+"` at position "+a.c.position+" in `"+a.f.f+"`"}var vk={POINT:D,LINESTRING:O,POLYGON:E,MULTIPOINT:S,MULTILINESTRING:P,MULTIPOLYGON:T},uk={POINT:nk.prototype.Fd,LINESTRING:nk.prototype.Ed,POLYGON:nk.prototype.Gd,MULTIPOINT:nk.prototype.ui,MULTILINESTRING:nk.prototype.ti,MULTIPOLYGON:nk.prototype.vi};function V(a,b,c){A.call(this);this.Ld(a,b?b:0,c)}v(V,A);k=V.prototype;k.clone=function(){var a=new V(null);Ac(a,this.a,this.j.slice());a.s();return a};k.Ia=function(a,b,c,d){var e=this.j;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(0===b)for(d=0;d<this.v;++d)c[d]=e[d];else for(d=this.Ad()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2;d<this.v;++d)c[d]=e[d];c.length=this.v;return b}return d};k.jb=function(a,b){var c=this.j,d=a-c[0],c=b-c[1];return d*d+c*c<=zk(this)};
|
|
317
|
-
k.Wb=function(){return this.j.slice(0,this.v)};k.kc=function(a){var b=this.j,c=b[this.v]-b[0];return Ab(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};k.Ad=function(){return Math.sqrt(zk(this))};function zk(a){var b=a.j[a.v]-a.j[0];a=a.j[a.v+1]-a.j[1];return b*b+a*a}k.L=function(){return"Circle"};k.oa=function(a){var b=this.A();return Rb(a,b)?(b=this.Wb(),a[0]<=b[0]&&a[2]>=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:Fb(a,this.Aa,this)):!1};
|
|
318
|
-
k.Ah=function(a){var b=this.v,c=a.slice();c[b]=c[0]+(this.j[b]-this.j[0]);var d;for(d=1;d<b;++d)c[b+d]=a[d];Ac(this,this.a,c);this.s()};k.Ld=function(a,b,c){if(a){Bc(this,c,a,0);this.j||(this.j=[]);c=this.j;a=Jc(c,a);c[a++]=c[0]+b;var d;b=1;for(d=this.v;b<d;++b)c[a++]=c[b];c.length=a}else Ac(this,"XY",null);this.s()};k.Bh=function(a){this.j[this.v]=this.j[0]+a;this.s()};function Ak(a,b,c,d,e){gf.call(this,a,b);this.g=c;this.a=new Image;null!==d&&(this.a.crossOrigin=d);this.b=null;this.h=e}v(Ak,gf);k=Ak.prototype;k.ka=function(){1==this.state&&Bk(this);this.f&&Ka(this.f);this.state=5;hf(this);gf.prototype.ka.call(this)};k.yc=function(){return this.a};k.getKey=function(){return this.g};k.sh=function(){this.state=3;Bk(this);hf(this)};k.th=function(){this.state=this.a.naturalWidth&&this.a.naturalHeight?kf:4;Bk(this);hf(this)};
|
|
319
|
-
k.load=function(){if(0==this.state||3==this.state)this.state=1,hf(this),this.b=[x(this.a,"error",this.sh,this,!0),x(this.a,"load",this.th,this,!0)],this.h(this,this.g)};function Bk(a){a.b.forEach(Ca);a.b=null};function Ck(){return[[-Infinity,-Infinity,Infinity,Infinity]]};var Dk,Ek;
|
|
320
|
-
(function(){var a={},b={qa:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.qa=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Kj=c()}})(function(){return function d(a,b,g){function h(n,m){if(!b[n]){if(!a[n]){var q="function"==typeof require&&require;if(!m&&q)return q(n,!0);if(l)return l(n,!0);q=Error("Cannot find module '"+n+"'");throw q.code="MODULE_NOT_FOUND",q;}q=b[n]={qa:{}};a[n][0].call(q.qa,function(b){var d=
|
|
321
|
-
a[n][1][b];return h(d?d:b)},q,q.qa,d,a,b,g)}return b[n].qa}for(var l="function"==typeof require&&require,m=0;m<g.length;m++)h(g[m]);return h}({1:[function(a,b){function f(a,b,d,e,q){d=d||0;e=e||a.length-1;for(q=q||h;e>d;){if(600<e-d){var u=e-d+1,z=b-d+1,t=Math.log(u),y=.5*Math.exp(2*t/3),t=.5*Math.sqrt(t*y*(u-y)/u)*(0>z-u/2?-1:1);f(a,b,Math.max(d,Math.floor(b-z*y/u+t)),Math.min(e,Math.floor(b+(u-z)*y/u+t)),q)}u=a[b];z=d;y=e;g(a,d,b);for(0<q(a[e],u)&&g(a,d,e);z<y;){g(a,z,y);z++;for(y--;0>q(a[z],u);)z++;
|
|
322
|
-
for(;0<q(a[y],u);)y--}0===q(a[d],u)?g(a,d,y):(y++,g(a,y,e));y<=b&&(d=y+1);b<=y&&(e=y-1)}}function g(a,b,d){var e=a[b];a[b]=a[d];a[d]=e}function h(a,b){return a<b?-1:a>b?1:0}b.qa=f},{}],2:[function(a,b){function f(a,b){if(!(this instanceof f))return new f(a,b);this.Yc=Math.max(4,a||9);this.$d=Math.max(2,Math.ceil(.4*this.Yc));b&&this.zf(b);this.clear()}function g(a,b){h(a,0,a.children.length,b,a)}function h(a,b,d,e,f){f||(f=t(null));f.H=Infinity;f.N=Infinity;f.M=-Infinity;f.R=-Infinity;for(var g;b<
|
|
323
|
-
d;b++)g=a.children[b],l(f,a.va?e(g):g);return f}function l(a,b){a.H=Math.min(a.H,b.H);a.N=Math.min(a.N,b.N);a.M=Math.max(a.M,b.M);a.R=Math.max(a.R,b.R)}function m(a,b){return a.H-b.H}function n(a,b){return a.N-b.N}function p(a){return(a.M-a.H)*(a.R-a.N)}function q(a){return a.M-a.H+(a.R-a.N)}function u(a,b){return a.H<=b.H&&a.N<=b.N&&b.M<=a.M&&b.R<=a.R}function z(a,b){return b.H<=a.M&&b.N<=a.R&&b.M>=a.H&&b.R>=a.N}function t(a){return{children:a,height:1,va:!0,H:Infinity,N:Infinity,M:-Infinity,R:-Infinity}}
|
|
324
|
-
function y(a,b,d,e,f){for(var g=[b,d],h;g.length;)d=g.pop(),b=g.pop(),d-b<=e||(h=b+Math.ceil((d-b)/e/2)*e,da(a,h,b,d,f),g.push(b,h,h,d))}b.qa=f;var da=a("quickselect");f.prototype={all:function(){return this.Vd(this.data,[])},search:function(a){var b=this.data,d=[],e=this.Ca;if(!z(a,b))return d;for(var f=[],g,h,l,n;b;){g=0;for(h=b.children.length;g<h;g++)l=b.children[g],n=b.va?e(l):l,z(a,n)&&(b.va?d.push(l):u(a,n)?this.Vd(l,d):f.push(l));b=f.pop()}return d},load:function(a){if(!a||!a.length)return this;
|
|
325
|
-
if(a.length<this.$d){for(var b=0,d=a.length;b<d;b++)this.ra(a[b]);return this}a=this.Xd(a.slice(),0,a.length-1,0);this.data.children.length?this.data.height===a.height?this.be(this.data,a):(this.data.height<a.height&&(b=this.data,this.data=a,a=b),this.Zd(a,this.data.height-a.height-1,!0)):this.data=a;return this},ra:function(a){a&&this.Zd(a,this.data.height-1);return this},clear:function(){this.data=t([]);return this},remove:function(a,b){if(!a)return this;for(var d=this.data,e=this.Ca(a),f=[],g=
|
|
326
|
-
[],h,l,n,m;d||f.length;){d||(d=f.pop(),l=f[f.length-1],h=g.pop(),m=!0);if(d.va){a:{n=a;var q=d.children,p=b;if(p){for(var t=0;t<q.length;t++)if(p(n,q[t])){n=t;break a}n=-1}else n=q.indexOf(n)}if(-1!==n){d.children.splice(n,1);f.push(d);this.xf(f);break}}m||d.va||!u(d,e)?l?(h++,d=l.children[h],m=!1):d=null:(f.push(d),g.push(h),h=0,l=d,d=d.children[0])}return this},Ca:function(a){return a},$c:m,ad:n,toJSON:function(){return this.data},Vd:function(a,b){for(var d=[];a;)a.va?b.push.apply(b,a.children):
|
|
327
|
-
d.push.apply(d,a.children),a=d.pop();return b},Xd:function(a,b,d,e){var f=d-b+1,h=this.Yc,l;if(f<=h)return l=t(a.slice(b,d+1)),g(l,this.Ca),l;e||(e=Math.ceil(Math.log(f)/Math.log(h)),h=Math.ceil(f/Math.pow(h,e-1)));l=t([]);l.va=!1;l.height=e;var f=Math.ceil(f/h),h=f*Math.ceil(Math.sqrt(h)),n,m,q;for(y(a,b,d,h,this.$c);b<=d;b+=h)for(m=Math.min(b+h-1,d),y(a,b,m,f,this.ad),n=b;n<=m;n+=f)q=Math.min(n+f-1,m),l.children.push(this.Xd(a,n,q,e-1));g(l,this.Ca);return l},wf:function(a,b,d,e){for(var f,g,h,
|
|
328
|
-
l,n,m,q,u;;){e.push(b);if(b.va||e.length-1===d)break;q=u=Infinity;f=0;for(g=b.children.length;f<g;f++)h=b.children[f],n=p(h),m=(Math.max(h.M,a.M)-Math.min(h.H,a.H))*(Math.max(h.R,a.R)-Math.min(h.N,a.N))-n,m<u?(u=m,q=n<q?n:q,l=h):m===u&&n<q&&(q=n,l=h);b=l||b.children[0]}return b},Zd:function(a,b,d){var e=this.Ca;d=d?a:e(a);var e=[],f=this.wf(d,this.data,b,e);f.children.push(a);for(l(f,d);0<=b;)if(e[b].children.length>this.Yc)this.Cf(e,b),b--;else break;this.tf(d,e,b)},Cf:function(a,b){var d=a[b],e=
|
|
329
|
-
d.children.length,f=this.$d;this.uf(d,f,e);e=this.vf(d,f,e);e=t(d.children.splice(e,d.children.length-e));e.height=d.height;e.va=d.va;g(d,this.Ca);g(e,this.Ca);b?a[b-1].children.push(e):this.be(d,e)},be:function(a,b){this.data=t([a,b]);this.data.height=a.height+1;this.data.va=!1;g(this.data,this.Ca)},vf:function(a,b,d){var e,f,g,l,n,m,q;n=m=Infinity;for(e=b;e<=d-b;e++)f=h(a,0,e,this.Ca),g=h(a,e,d,this.Ca),l=Math.max(0,Math.min(f.M,g.M)-Math.max(f.H,g.H))*Math.max(0,Math.min(f.R,g.R)-Math.max(f.N,
|
|
330
|
-
g.N)),f=p(f)+p(g),l<n?(n=l,q=e,m=f<m?f:m):l===n&&f<m&&(m=f,q=e);return q},uf:function(a,b,d){var e=a.va?this.$c:m,f=a.va?this.ad:n,g=this.Wd(a,b,d,e);b=this.Wd(a,b,d,f);g<b&&a.children.sort(e)},Wd:function(a,b,d,e){a.children.sort(e);e=this.Ca;var f=h(a,0,b,e),g=h(a,d-b,d,e),n=q(f)+q(g),m,p;for(m=b;m<d-b;m++)p=a.children[m],l(f,a.va?e(p):p),n+=q(f);for(m=d-b-1;m>=b;m--)p=a.children[m],l(g,a.va?e(p):p),n+=q(g);return n},tf:function(a,b,d){for(;0<=d;d--)l(b[d],a)},xf:function(a){for(var b=a.length-
|
|
331
|
-
1,d;0<=b;b--)0===a[b].children.length?0<b?(d=a[b-1].children,d.splice(d.indexOf(a[b]),1)):this.clear():g(a[b],this.Ca)},zf:function(a){var b=["return a"," - b",";"];this.$c=new Function("a","b",b.join(a[0]));this.ad=new Function("a","b",b.join(a[1]));this.Ca=new Function("a","return {minX: a"+a[0]+", minY: a"+a[1]+", maxX: a"+a[2]+", maxY: a"+a[3]+"};")}}},{quickselect:1}]},{},[2])(2)});Dk=b.qa})();function Fk(a){this.c=Dk(a);this.f={}}k=Fk.prototype;k.ra=function(a,b){var c={H:a[0],N:a[1],M:a[2],R:a[3],value:b};this.c.ra(c);this.f[w(b)]=c};k.load=function(a,b){for(var c=Array(b.length),d=0,e=b.length;d<e;d++){var f=a[d],g=b[d],f={H:f[0],N:f[1],M:f[2],R:f[3],value:g};c[d]=f;this.f[w(g)]=f}this.c.load(c)};k.remove=function(a){a=w(a);var b=this.f[a];delete this.f[a];return null!==this.c.remove(b)};function Gk(a,b,c){var d=a.f[w(c)];Cb([d.H,d.N,d.M,d.R],b)||(a.remove(c),a.ra(b,c))}
|
|
332
|
-
function Hk(a){return a.c.all().map(function(a){return a.value})}function Ik(a,b){return a.c.search({H:b[0],N:b[1],M:b[2],R:b[3]}).map(function(a){return a.value})}k.forEach=function(a,b){return Jk(Hk(this),a,b)};function Kk(a,b,c,d){return Jk(Ik(a,b),c,d)}function Jk(a,b,c){for(var d,e=0,f=a.length;e<f&&!(d=b.call(c,a[e]));e++);return d}k.clear=function(){this.c.clear();this.f={}};k.A=function(){var a=this.c.data;return[a.H,a.N,a.M,a.R]};function W(a){a=a||{};Hi.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:void 0!==a.wrapX?a.wrapX:!0});this.C=ca;this.u=a.format;this.I=void 0==a.overlaps?!0:a.overlaps;this.D=a.url;void 0!==a.loader?this.C=a.loader:void 0!==this.D&&(ha(this.u,7),this.C=Aj(this.D,this.u));this.ea=void 0!==a.strategy?a.strategy:Ck;var b=void 0!==a.useSpatialIndex?a.useSpatialIndex:!0;this.a=b?new Fk:null;this.F=new Fk;this.g={};this.h={};this.l={};this.o={};this.b=null;var c,
|
|
333
|
-
d;a.features instanceof G?(c=a.features,d=c.a):Array.isArray(a.features)&&(d=a.features);b||void 0!==c||(c=new G(d));void 0!==d&&Lk(this,d);void 0!==c&&Mk(this,c)}v(W,Hi);k=W.prototype;k.Lb=function(a){var b=w(a).toString();if(Nk(this,b,a)){Ok(this,b,a);var c=a.K();c?(b=c.A(),this.a&&this.a.ra(b,a)):this.g[b]=a;this.c(new Pk(Qk,a))}this.s()};function Ok(a,b,c){a.o[b]=[x(c,"change",a.Te,a),x(c,"propertychange",a.Te,a)]}
|
|
334
|
-
function Nk(a,b,c){var d=!0,e=c.Ta();void 0!==e?e.toString()in a.h?d=!1:a.h[e.toString()]=c:(ha(!(b in a.l),30),a.l[b]=c);return d}k.ic=function(a){Lk(this,a);this.s()};function Lk(a,b){var c,d,e,f,g=[],h=[],l=[];d=0;for(e=b.length;d<e;d++)f=b[d],c=w(f).toString(),Nk(a,c,f)&&h.push(f);d=0;for(e=h.length;d<e;d++){f=h[d];c=w(f).toString();Ok(a,c,f);var m=f.K();m?(c=m.A(),g.push(c),l.push(f)):a.g[c]=f}a.a&&a.a.load(g,l);d=0;for(e=h.length;d<e;d++)a.c(new Pk(Qk,h[d]))}
|
|
335
|
-
function Mk(a,b){var c=!1;x(a,Qk,function(a){c||(c=!0,b.push(a.feature),c=!1)});x(a,Rk,function(a){c||(c=!0,b.remove(a.feature),c=!1)});x(b,Pd,function(a){c||(c=!0,this.Lb(a.element),c=!1)},a);x(b,Qd,function(a){c||(c=!0,this.Db(a.element),c=!1)},a);a.b=b}
|
|
336
|
-
k.clear=function(a){if(a){for(var b in this.o)this.o[b].forEach(Ca);this.b||(this.o={},this.h={},this.l={})}else if(this.a){this.a.forEach(this.Kd,this);for(var c in this.g)this.Kd(this.g[c])}this.b&&this.b.clear();this.a&&this.a.clear();this.F.clear();this.g={};this.c(new Pk(Sk));this.s()};k.je=function(a,b){if(this.a)return this.a.forEach(a,b);if(this.b)return this.b.forEach(a,b)};function Tk(a,b,c){a.eb([b[0],b[1],b[0],b[1]],function(a){if(a.K().Aa(b))return c.call(void 0,a)})}
|
|
337
|
-
k.eb=function(a,b,c){if(this.a)return Kk(this.a,a,b,c);if(this.b)return this.b.forEach(b,c)};k.ke=function(a,b,c){return this.eb(a,function(d){if(d.K().oa(a)&&(d=b.call(c,d)))return d})};k.qe=function(){return this.b};k.nc=function(){var a;this.b?a=this.b.a:this.a&&(a=Hk(this.a),ya(this.g)||Za(a,xa(this.g)));return a};k.pe=function(a){var b=[];Tk(this,a,function(a){b.push(a)});return b};k.re=function(a){return Ik(this.a,a)};
|
|
338
|
-
k.me=function(a,b){var c=a[0],d=a[1],e=null,f=[NaN,NaN],g=Infinity,h=[-Infinity,-Infinity,Infinity,Infinity],l=b?b:Ub;Kk(this.a,h,function(a){if(l(a)){var b=a.K(),p=g;g=b.Ia(c,d,f,g);g<p&&(e=a,a=Math.sqrt(g),h[0]=c-a,h[1]=d-a,h[2]=c+a,h[3]=d+a)}});return e};k.A=function(){return this.a.A()};k.oe=function(a){a=this.h[a.toString()];return void 0!==a?a:null};k.se=function(){return this.u};k.Fe=function(){return this.D};
|
|
339
|
-
k.Te=function(a){a=a.target;var b=w(a).toString(),c=a.K();c?(c=c.A(),b in this.g?(delete this.g[b],this.a&&this.a.ra(c,a)):this.a&&Gk(this.a,c,a)):b in this.g||(this.a&&this.a.remove(a),this.g[b]=a);c=a.Ta();void 0!==c?(c=c.toString(),b in this.l?(delete this.l[b],this.h[c]=a):this.h[c]!==a&&(Uk(this,a),this.h[c]=a)):b in this.l||(Uk(this,a),this.l[b]=a);this.s();this.c(new Pk(Vk,a))};
|
|
340
|
-
function Si(a,b,c,d){var e=a.F;b=a.ea(b,c);var f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];Kk(e,h,function(a){return yb(a.extent,h)})||(a.C.call(a,h,c,d),e.ra(h,{extent:h.slice()}))}}k.Db=function(a){var b=w(a).toString();b in this.g?delete this.g[b]:this.a&&this.a.remove(a);this.Kd(a);this.s()};k.Kd=function(a){var b=w(a).toString();this.o[b].forEach(Ca);delete this.o[b];var c=a.Ta();void 0!==c?delete this.h[c.toString()]:delete this.l[b];this.c(new Pk(Rk,a))};
|
|
341
|
-
function Uk(a,b){for(var c in a.h)if(a.h[c]===b){delete a.h[c];break}}function Pk(a,b){La.call(this,a);this.feature=b}v(Pk,La);var Qk="addfeature",Vk="changefeature",Sk="clear",Rk="removefeature";function Wk(a){Hf.call(this,{handleDownEvent:Xk,handleEvent:Yk,handleUpEvent:Zk});this.na=null;this.D=!1;this.Ra=a.source?a.source:null;this.Ga=a.features?a.features:null;this.Df=a.snapTolerance?a.snapTolerance:12;this.ha=a.type;this.b=$k(this.ha);this.wa=a.minPoints?a.minPoints:this.b===al?3:2;this.ua=a.maxPoints?a.maxPoints:Infinity;this.Jb=a.finishCondition?a.finishCondition:Ub;var b=a.geometryFunction;if(!b)if("Circle"===this.ha)b=function(a,b){var c=b?b:new V([NaN,NaN]);c.Ld(a[0],Math.sqrt(pb(a[0],
|
|
342
|
-
a[1])));return c};else{var c,b=this.b;b===bl?c=D:b===cl?c=O:b===al&&(c=E);b=function(a,b){var f=b;f?f.ca(a):f=new c(a);return f}}this.o=b;this.G=this.l=this.a=this.u=this.g=this.i=null;this.Nf=a.clickTolerance?a.clickTolerance*a.clickTolerance:36;this.pa=new K({source:new W({useSpatialIndex:!1,wrapX:a.wrapX?a.wrapX:!1}),style:a.style?a.style:dl()});this.Ha=a.geometryName;this.qf=a.condition?a.condition:Cf;this.ta=a.freehandCondition?a.freehandCondition:Df;x(this,Ua("active"),this.mf,this)}v(Wk,Hf);
|
|
343
|
-
function dl(){var a=vh();return function(b){return a[b.K().L()]}}k=Wk.prototype;k.setMap=function(a){Hf.prototype.setMap.call(this,a);this.mf()};function Yk(a){this.b!==cl&&this.b!==al||!this.ta(a)||(this.D=!0);var b=!this.D;this.D&&a.type===ef&&null!==this.g?(el(this,a),b=!1):a.type===df?b=fl(this,a):a.type===Ye&&(b=!1);return If.call(this,a)&&b}function Xk(a){return this.qf(a)?(this.na=a.pixel,!0):this.D?(this.na=a.pixel,this.i||gl(this,a),!0):!1}
|
|
344
|
-
function Zk(a){this.D=!1;var b=this.na,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],c=!0;d*d+b*b<=this.Nf&&(fl(this,a),this.i?this.b===hl?this.Sb():il(this,a)?this.Jb(a)&&this.Sb():el(this,a):(gl(this,a),this.b===bl&&this.Sb()),c=!1);return c}
|
|
345
|
-
function fl(a,b){if(a.i){var c=b.coordinate,d=a.g.K(),e;a.b===bl?e=a.a:a.b===al?(e=a.a[0],e=e[e.length-1],il(a,b)&&(c=a.i.slice())):(e=a.a,e=e[e.length-1]);e[0]=c[0];e[1]=c[1];a.o(a.a,d);a.u&&a.u.K().ca(c);d instanceof E&&a.b!==al?(a.l||(a.l=new N(new O(null))),d=d.we(0),c=a.l.K(),Mj(c,d.a,d.j)):a.G&&(c=a.l.K(),c.ca(a.G));jl(a)}else c=b.coordinate.slice(),a.u?a.u.K().ca(c):(a.u=new N(new D(c)),jl(a));return!0}
|
|
346
|
-
function il(a,b){var c=!1;if(a.g){var d=!1,e=[a.i];a.b===cl?d=a.a.length>a.wa:a.b===al&&(d=a.a[0].length>a.wa,e=[a.a[0][0],a.a[0][a.a[0].length-2]]);if(d)for(var d=b.map,f=0,g=e.length;f<g;f++){var h=e[f],l=d.Na(h),m=b.pixel,c=m[0]-l[0],l=m[1]-l[1],m=a.D&&a.ta(b)?1:a.Df;if(c=Math.sqrt(c*c+l*l)<=m){a.i=h;break}}}return c}
|
|
347
|
-
function gl(a,b){var c=b.coordinate;a.i=c;a.b===bl?a.a=c.slice():a.b===al?(a.a=[[c.slice(),c.slice()]],a.G=a.a[0]):(a.a=[c.slice(),c.slice()],a.b===hl&&(a.G=a.a));a.G&&(a.l=new N(new O(a.G)));c=a.o(a.a);a.g=new N;a.Ha&&a.g.Mc(a.Ha);a.g.Oa(c);jl(a);a.c(new kl(ll,a.g))}function el(a,b){var c=b.coordinate,d=a.g.K(),e,f;if(a.b===cl)a.i=c.slice(),f=a.a,f.push(c.slice()),e=f.length>a.ua,a.o(f,d);else if(a.b===al){f=a.a[0];f.push(c.slice());if(e=f.length>a.ua)a.i=f[0];a.o(a.a,d)}jl(a);e&&a.Sb()}
|
|
348
|
-
k.Ii=function(){var a=this.g.K(),b,c;this.b===cl?(b=this.a,b.splice(-2,1),this.o(b,a)):this.b===al&&(b=this.a[0],b.splice(-2,1),c=this.l.K(),c.ca(b),this.o(this.a,a));0===b.length&&(this.i=null);jl(this)};
|
|
349
|
-
k.Sb=function(){var a=ml(this),b=this.a,c=a.K();this.b===cl?(b.pop(),this.o(b,c)):this.b===al&&(b[0].pop(),b[0].push(b[0][0]),this.o(b,c));"MultiPoint"===this.ha?a.Oa(new S([b])):"MultiLineString"===this.ha?a.Oa(new P([b])):"MultiPolygon"===this.ha&&a.Oa(new T([b]));this.c(new kl(nl,a));this.Ga&&this.Ga.push(a);this.Ra&&this.Ra.Lb(a)};function ml(a){a.i=null;var b=a.g;b&&(a.g=null,a.u=null,a.l=null,a.pa.ga().clear(!0));return b}
|
|
350
|
-
k.Ih=function(a){var b=a.K();this.g=a;this.a=b.P();a=this.a[this.a.length-1];this.i=a.slice();this.a.push(a.slice());jl(this);this.c(new kl(ll,this.g))};k.Fb=Vb;function jl(a){var b=[];a.g&&b.push(a.g);a.l&&b.push(a.l);a.u&&b.push(a.u);a=a.pa.ga();a.clear(!0);a.ic(b)}k.mf=function(){var a=this.w,b=this.F();a&&b||ml(this);this.pa.setMap(b?a:null)};
|
|
351
|
-
function $k(a){var b;"Point"===a||"MultiPoint"===a?b=bl:"LineString"===a||"MultiLineString"===a?b=cl:"Polygon"===a||"MultiPolygon"===a?b=al:"Circle"===a&&(b=hl);return b}var bl="Point",cl="LineString",al="Polygon",hl="Circle";function kl(a,b){La.call(this,a);this.feature=b}v(kl,La);var ll="drawstart",nl="drawend";function pl(a){Hf.call(this,{handleDownEvent:ql,handleDragEvent:rl,handleEvent:sl,handleUpEvent:tl});this.Ha=a.condition?a.condition:Gf;this.wa=function(a){return Cf(a)&&Bf(a)};this.Ga=a.deleteCondition?a.deleteCondition:this.wa;this.ua=this.b=null;this.pa=[0,0];this.o=this.G=!1;this.a=new Fk;this.u=void 0!==a.pixelTolerance?a.pixelTolerance:10;this.i=this.ta=!1;this.g=[];this.D=new K({source:new W({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.style?a.style:ul(),updateWhileAnimating:!0,updateWhileInteracting:!0});
|
|
352
|
-
this.na={Point:this.uj,LineString:this.pf,LinearRing:this.pf,Polygon:this.vj,MultiPoint:this.sj,MultiLineString:this.rj,MultiPolygon:this.tj,GeometryCollection:this.qj};this.l=a.features;this.l.forEach(this.Bd,this);x(this.l,Pd,this.zg,this);x(this.l,Qd,this.Ag,this);this.ha=null}v(pl,Hf);k=pl.prototype;k.Bd=function(a){var b=a.K();b&&b.L()in this.na&&this.na[b.L()].call(this,a,b);(b=this.w)&&vl(this,this.pa,b);x(a,"change",this.Qe,this)};function wl(a,b){a.o||(a.o=!0,a.c(new xl(yl,a.l,b)))}
|
|
353
|
-
function zl(a,b){Al(a,b);a.b&&0===a.l.vb()&&(a.D.ga().Db(a.b),a.b=null);Ia(b,"change",a.Qe,a)}function Al(a,b){var c=a.a,d=[];c.forEach(function(a){b===a.feature&&d.push(a)});for(var e=d.length-1;0<=e;--e)c.remove(d[e])}k.setMap=function(a){this.D.setMap(a);Hf.prototype.setMap.call(this,a)};k.zg=function(a){this.Bd(a.element)};k.Qe=function(a){this.i||(a=a.target,zl(this,a),this.Bd(a))};k.Ag=function(a){zl(this,a.element)};
|
|
354
|
-
k.uj=function(a,b){var c=b.P(),c={feature:a,geometry:b,la:[c,c]};this.a.ra(b.A(),c)};k.sj=function(a,b){var c=b.P(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,geometry:b,depth:[e],index:e,la:[d,d]},this.a.ra(b.A(),d)};k.pf=function(a,b){var c=b.P(),d,e,f,g;d=0;for(e=c.length-1;d<e;++d)f=c.slice(d,d+2),g={feature:a,geometry:b,index:d,la:f},this.a.ra(qb(f),g)};
|
|
355
|
-
k.rj=function(a,b){var c=b.P(),d,e,f,g,h,l,m;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)l=d.slice(e,e+2),m={feature:a,geometry:b,depth:[g],index:e,la:l},this.a.ra(qb(l),m)};k.vj=function(a,b){var c=b.P(),d,e,f,g,h,l,m;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)l=d.slice(e,e+2),m={feature:a,geometry:b,depth:[g],index:e,la:l},this.a.ra(qb(l),m)};
|
|
356
|
-
k.tj=function(a,b){var c=b.P(),d,e,f,g,h,l,m,n,p,q;l=0;for(m=c.length;l<m;++l)for(n=c[l],g=0,h=n.length;g<h;++g)for(d=n[g],e=0,f=d.length-1;e<f;++e)p=d.slice(e,e+2),q={feature:a,geometry:b,depth:[g,l],index:e,la:p},this.a.ra(qb(p),q)};k.qj=function(a,b){var c,d=b.ia;for(c=0;c<d.length;++c)this.na[d[c].L()].call(this,a,d[c])};function Bl(a,b){var c=a.b;c?c.K().ca(b):(c=new N(new D(b)),a.b=c,a.D.ga().Lb(c))}function Cl(a,b){return a.index-b.index}
|
|
357
|
-
function ql(a){if(!this.Ha(a))return!1;vl(this,a.pixel,a.map);this.g.length=0;this.o=!1;var b=this.b;if(b){var c=[],b=b.K().P(),d=qb([b]),d=Ik(this.a,d),e={};d.sort(Cl);for(var f=0,g=d.length;f<g;++f){var h=d[f],l=h.la,m=w(h.feature),n=h.depth;n&&(m+="-"+n.join("-"));e[m]||(e[m]=Array(2));if(nb(l[0],b)&&!e[m][0])this.g.push([h,0]),e[m][0]=h;else if(nb(l[1],b)&&!e[m][1]){if("LineString"!==h.geometry.L()&&"MultiLineString"!==h.geometry.L()||!e[m][0]||0!==e[m][0].index)this.g.push([h,1]),e[m][1]=h}else w(l)in
|
|
358
|
-
this.ua&&!e[m][0]&&!e[m][1]&&c.push([h,b])}c.length&&wl(this,a);for(a=c.length-1;0<=a;--a)this.Xg.apply(this,c[a])}return!!this.b}
|
|
359
|
-
function rl(a){this.G=!1;wl(this,a);a=a.coordinate;for(var b=0,c=this.g.length;b<c;++b){for(var d=this.g[b],e=d[0],f=e.depth,g=e.geometry,h=g.P(),l=e.la,d=d[1];a.length<g.v;)a.push(0);switch(g.L()){case "Point":h=a;l[0]=l[1]=a;break;case "MultiPoint":h[e.index]=a;l[0]=l[1]=a;break;case "LineString":h[e.index+d]=a;l[d]=a;break;case "MultiLineString":h[f[0]][e.index+d]=a;l[d]=a;break;case "Polygon":h[f[0]][e.index+d]=a;l[d]=a;break;case "MultiPolygon":h[f[1]][f[0]][e.index+d]=a,l[d]=a}e=g;this.i=!0;
|
|
360
|
-
e.ca(h);this.i=!1}Bl(this,a)}function tl(a){for(var b,c=this.g.length-1;0<=c;--c)b=this.g[c][0],Gk(this.a,qb(b.la),b);this.o&&(this.c(new xl(Dl,this.l,a)),this.o=!1);return!1}function sl(a){if(!(a instanceof Ue))return!0;this.ha=a;var b;hd(a.map.W())[1]||a.type!=df||this.C||(this.pa=a.pixel,vl(this,a.pixel,a.map));this.b&&this.Ga(a)&&(b=a.type==Ze&&this.G?!0:this.af());a.type==Ze&&(this.G=!1);return If.call(this,a)&&!b}
|
|
361
|
-
function vl(a,b,c){function d(a,b){return pb(e,mb(e,a.la))-pb(e,mb(e,b.la))}var e=c.za(b),f=c.za([b[0]-a.u,b[1]+a.u]),g=c.za([b[0]+a.u,b[1]-a.u]),f=qb([f,g]),f=Ik(a.a,f);if(0<f.length){f.sort(d);var g=f[0].la,h=mb(e,g),l=c.Na(h);if(Math.sqrt(pb(b,l))<=a.u){b=c.Na(g[0]);c=c.Na(g[1]);b=pb(l,b);c=pb(l,c);a.ta=Math.sqrt(Math.min(b,c))<=a.u;a.ta&&(h=b>c?g[1]:g[0]);Bl(a,h);c={};c[w(g)]=!0;b=1;for(l=f.length;b<l;++b)if(h=f[b].la,nb(g[0],h[0])&&nb(g[1],h[1])||nb(g[0],h[1])&&nb(g[1],h[0]))c[w(h)]=!0;else break;
|
|
362
|
-
a.ua=c;return}}a.b&&(a.D.ga().Db(a.b),a.b=null)}
|
|
363
|
-
k.Xg=function(a,b){for(var c=a.la,d=a.feature,e=a.geometry,f=a.depth,g=a.index,h;b.length<e.v;)b.push(0);switch(e.L()){case "MultiLineString":h=e.P();h[f[0]].splice(g+1,0,b);break;case "Polygon":h=e.P();h[f[0]].splice(g+1,0,b);break;case "MultiPolygon":h=e.P();h[f[1]][f[0]].splice(g+1,0,b);break;case "LineString":h=e.P();h.splice(g+1,0,b);break;default:return}this.i=!0;e.ca(h);this.i=!1;h=this.a;h.remove(a);El(this,e,g,f,1);var l={la:[c[0],b],feature:d,geometry:e,depth:f,index:g};h.ra(qb(l.la),l);
|
|
364
|
-
this.g.push([l,1]);c={la:[b,c[1]],feature:d,geometry:e,depth:f,index:g+1};h.ra(qb(c.la),c);this.g.push([c,0]);this.G=!0};
|
|
365
|
-
k.af=function(){var a=!1;if(this.ha&&this.ha.type!=ef){var b=this.ha;wl(this,b);var c=this.g,a={},d=!1,e,f,g,h,l,m,n,p;for(h=c.length-1;0<=h;--h)g=c[h],n=g[0],p=w(n.feature),n.depth&&(p+="-"+n.depth.join("-")),p in a||(a[p]={}),0===g[1]?(a[p].right=n,a[p].index=n.index):1==g[1]&&(a[p].left=n,a[p].index=n.index+1);for(p in a){m=a[p].right;h=a[p].left;g=a[p].index;l=g-1;n=void 0!==h?h:m;0>l&&(l=0);c=n.geometry;e=f=c.P();d=!1;switch(c.L()){case "MultiLineString":2<f[n.depth[0]].length&&(f[n.depth[0]].splice(g,
|
|
366
|
-
1),d=!0);break;case "LineString":2<f.length&&(f.splice(g,1),d=!0);break;case "MultiPolygon":e=e[n.depth[1]];case "Polygon":e=e[n.depth[0]],4<e.length&&(g==e.length-1&&(g=0),e.splice(g,1),d=!0,0===g&&(e.pop(),e.push(e[0]),l=e.length-1))}d&&(e=c,this.i=!0,e.ca(f),this.i=!1,f=[],void 0!==h&&(this.a.remove(h),f.push(h.la[0])),void 0!==m&&(this.a.remove(m),f.push(m.la[1])),void 0!==h&&void 0!==m&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:l,la:f},this.a.ra(qb(h.la),h)),El(this,c,g,n.depth,
|
|
367
|
-
-1),this.b&&(this.D.ga().Db(this.b),this.b=null))}a=d;this.c(new xl(Dl,this.l,b));this.o=!1}return a};function El(a,b,c,d,e){Kk(a.a,b.A(),function(a){a.geometry===b&&(void 0===d||void 0===a.depth||ab(a.depth,d))&&a.index>c&&(a.index+=e)})}function ul(){var a=vh();return function(){return a.Point}}function xl(a,b,c){La.call(this,a);this.features=b;this.mapBrowserEvent=c}v(xl,La);var yl="modifystart",Dl="modifyend";function Fl(a){sf.call(this,{handleEvent:Gl});a=a?a:{};this.o=a.condition?a.condition:Bf;this.l=a.addCondition?a.addCondition:Vb;this.u=a.removeCondition?a.removeCondition:Vb;this.C=a.toggleCondition?a.toggleCondition:Df;this.i=a.multi?a.multi:!1;this.g=a.filter?a.filter:Ub;this.b=new K({source:new W({useSpatialIndex:!1,features:a.features,wrapX:a.wrapX}),style:a.style?a.style:Hl(),updateWhileAnimating:!0,updateWhileInteracting:!0});if(a.layers)if("function"===typeof a.layers)a=a.layers;else{var b=
|
|
368
|
-
a.layers;a=function(a){return 0<=b.indexOf(a)}}else a=Ub;this.h=a;this.a={};a=this.b.ga().b;x(a,Pd,this.Jh,this);x(a,Qd,this.Lh,this)}v(Fl,sf);k=Fl.prototype;k.nc=function(){return this.b.ga().b};k.Kh=function(a){ha(a instanceof N,42);a=w(a);return this.a[a]};
|
|
369
|
-
function Gl(a){if(!this.o(a))return!0;var b=this.l(a),c=this.u(a),d=this.C(a),e=!b&&!c&&!d,f=a.map,g=this.b.ga().b,h=[],l=[];if(e){wa(this.a);f.jd(a.pixel,function(a,b){if(this.g(a,b)){l.push(a);var c=w(a);this.a[c]=b;return!this.i}},this,this.h);for(e=g.vb()-1;0<=e;--e){var f=g.Le(e),m=l.indexOf(f);-1<m?l.splice(m,1):(g.remove(f),h.push(f))}0!==l.length&&g.yd(l)}else{f.jd(a.pixel,function(a,e){if(this.g(a,e)){if(!b&&!d||0<=g.a.indexOf(a))(c||d)&&0<=g.a.indexOf(a)&&(h.push(a),f=w(a),delete this.a[f]);
|
|
370
|
-
else{l.push(a);var f=w(a);this.a[f]=e}return!this.i}},this,this.h);for(e=h.length-1;0<=e;--e)g.remove(h[e]);g.yd(l)}(0<l.length||0<h.length)&&this.c(new Il(Jl,l,h,a));return Af(a)}k.setMap=function(a){var b=this.w,c=this.b.ga().b;b&&c.forEach(b.lf,b);sf.prototype.setMap.call(this,a);this.b.setMap(a);a&&c.forEach(a.kf,a)};function Hl(){var a=vh();Za(a.Polygon,a.LineString);Za(a.GeometryCollection,a.LineString);return function(b){return b.K()?a[b.K().L()]:null}}k.Jh=function(a){var b=this.w;b&&b.kf(a.element)};
|
|
371
|
-
k.Lh=function(a){var b=this.w;b&&b.lf(a.element)};function Il(a,b,c,d){La.call(this,a);this.selected=b;this.deselected=c;this.mapBrowserEvent=d}v(Il,La);var Jl="select";function Kl(a,b,c){function d(){delete window[f];e.parentNode.removeChild(e)}var e=document.createElement("script"),f="olc_"+w(b);e.async=!0;e.src=a+(-1==a.indexOf("?")?"?":"&")+"callback="+f;var g=setTimeout(function(){d();c&&c()},1E4);window[f]=function(a){clearTimeout(g);d();b(a)};document.getElementsByTagName("head")[0].appendChild(e)};function Ll(a,b,c,d,e,f,g,h,l,m,n){gf.call(this,e,0);this.u=void 0!==n?n:!1;this.w=g;this.o=h;this.l=null;this.b=b;this.h=d;this.i=f?f:e;this.a=[];this.Gb=null;this.g=0;f=d.Wa(this.i);h=this.h.A();e=this.b.A();f=h?Qb(f,h):f;if(0===Kb(f))this.state=4;else if((h=a.A())&&(e?e=Qb(e,h):e=h),d=d.T(this.i[0]),d=Ai(a,c,Ob(f),d),!isFinite(d)||0>=d)this.state=4;else if(this.B=new Di(a,c,f,e,d*(void 0!==m?m:.5)),0===this.B.b.length)this.state=4;else if(this.g=b.Vb(d),c=Fi(this.B),e&&(a.c?(c[1]=ia(c[1],e[1],
|
|
372
|
-
e[3]),c[3]=ia(c[3],e[1],e[3])):c=Qb(c,e)),Kb(c)){a=Bd(b,c,this.g);for(b=a.H;b<=a.M;b++)for(c=a.N;c<=a.R;c++)(m=l(this.g,b,c,g))&&this.a.push(m);0===this.a.length&&(this.state=4)}else this.state=4}v(Ll,gf);Ll.prototype.ka=function(){1==this.state&&(this.Gb.forEach(Ca),this.Gb=null);gf.prototype.ka.call(this)};Ll.prototype.yc=function(){return this.l};
|
|
373
|
-
Ll.prototype.cc=function(){var a=[];this.a.forEach(function(b){b&&b.J()==kf&&a.push({extent:this.b.Wa(b.Pa),image:b.yc()})},this);this.a.length=0;if(0===a.length)this.state=3;else{var b=this.i[0],c=this.h.gb(b),d="number"===typeof c?c:c[0],c="number"===typeof c?c:c[1],b=this.h.T(b),e=this.b.T(this.g),f=this.h.Wa(this.i);this.l=Ci(d,c,this.w,e,this.b.A(),b,f,this.B,a,this.o,this.u);this.state=kf}hf(this)};
|
|
374
|
-
Ll.prototype.load=function(){if(0==this.state){this.state=1;hf(this);var a=0;this.Gb=[];this.a.forEach(function(b){var c=b.J();if(0==c||1==c){a++;var d;d=x(b,"change",function(){var c=b.J();if(c==kf||3==c||4==c)Ca(d),a--,0===a&&(this.Gb.forEach(Ca),this.Gb=null,this.cc())},this);this.Gb.push(d)}},this);this.a.forEach(function(a){0==a.J()&&a.load()});0===a&&setTimeout(this.cc.bind(this),0)}};function Ml(a,b){var c=/\{z\}/g,d=/\{x\}/g,e=/\{y\}/g,f=/\{-y\}/g;return function(g){if(g)return a.replace(c,g[0].toString()).replace(d,g[1].toString()).replace(e,function(){return(-g[2]-1).toString()}).replace(f,function(){var a=b.f?b.f[g[0]]:null;ha(a,55);return(a.R-a.N+1+g[2]).toString()})}}function Nl(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=Ml(a[e],b);return Ol(d)}function Ol(a){return 1===a.length?a[0]:function(b,c,d){if(b)return a[la((b[1]<<b[0])+b[2],a.length)](b,c,d)}}
|
|
375
|
-
function Pl(){};function Ql(a){Wi.call(this);this.g=void 0!==a?a:2048}v(Ql,Wi);function Rl(a){return a.b>a.g}Ql.prototype.ob=function(a){for(var b,c;Rl(this);){b=this.c.Hb;c=b.Pa[0].toString();var d;if(d=c in a)b=b.Pa,d=vd(a[c],b[1],b[2]);if(d)break;else Ka(this.pop())}};function Sl(a){Hi.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.ea=void 0!==a.opaque?a.opaque:!1;this.C=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new Ql(a.cacheSize);this.I=[0,0];this.ub=""}v(Sl,Hi);k=Sl.prototype;k.Se=function(){return Rl(this.a)};k.ob=function(a,b){var c=this.Ub(a);c&&c.ob(b)};
|
|
376
|
-
function Kh(a,b,c,d,e){b=a.Ub(b);if(!b)return!1;for(var f=!0,g,h,l=d.H;l<=d.M;++l)for(var m=d.N;m<=d.R;++m)g=a.oc(c,l,m),h=!1,b.a.hasOwnProperty(g)&&(g=b.get(g),(h=g.J()===kf)&&(h=!1!==e(g))),h||(f=!1);return f}k.ue=function(){return 0};k.getKey=function(){return this.ub};k.oc=function(a,b,c){return a+"/"+b+"/"+c};k.od=function(){return this.ea};k.rd=function(){return this.tileGrid};k.Za=function(a){return this.tileGrid?this.tileGrid:Hd(a)};
|
|
377
|
-
k.Ub=function(a){var b=this.ja();return b&&!sc(b,a)?null:this.a};function Tl(a,b,c){var d=void 0!==c?c:a.ja();c=a.Za(d);if(a.w&&d.a){var e=b;b=e[0];a=Gd(c,e);d=Id(d);wb(d,a)?b=e:(e=Mb(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=c.rc(a,b))}e=b[0];d=b[1];a=b[2];if(c.minZoom>e||e>c.maxZoom)c=!1;else{var f=c.A();c=(c=f?Bd(c,f,e):c.f?c.f[e]:null)?vd(c,d,a):!0}return c?b:null}k.kb=function(){this.a.clear();this.s()};k.nf=ca;function Ul(a,b){La.call(this,a);this.tile=b}v(Ul,La);function Vl(a){Sl.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileLoadFunction=a.tileLoadFunction;this.tileUrlFunction=this.h?this.h.bind(this):Pl;this.urls=null;a.urls?this.Rc(a.urls):a.url&&this.dc(a.url);a.tileUrlFunction&&this.Eb(a.tileUrlFunction)}v(Vl,Sl);k=Vl.prototype;k.sd=function(){return this.tileLoadFunction};k.td=function(){return this.tileUrlFunction};
|
|
378
|
-
k.ud=function(){return this.urls};k.Oh=function(a){a=a.target;switch(a.J()){case 1:this.c(new Ul("tileloadstart",a));break;case kf:this.c(new Ul("tileloadend",a));break;case 3:this.c(new Ul("tileloaderror",a))}};k.Pd=function(a){this.a.clear();this.tileLoadFunction=a;this.s()};k.Eb=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?this.ub!==b&&(this.ub=b,this.s()):this.s()};
|
|
379
|
-
k.dc=function(a){var b=[],c=/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else if(c=c=/\{(\d+)-(\d+)\}/.exec(a))for(d=parseInt(c[2],10),e=parseInt(c[1],10);e<=d;e++)b.push(a.replace(c[0],e.toString()));else b.push(a);b=this.urls=b;this.Eb(this.h?this.h.bind(this):Nl(b,this.tileGrid),a)};k.Rc=function(a){this.urls=a;var b=a.join("\n");this.Eb(this.h?this.h.bind(this):Nl(a,this.tileGrid),b)};
|
|
380
|
-
k.nf=function(a,b,c){a=this.oc(a,b,c);this.a.a.hasOwnProperty(a)&&this.a.get(a)};function Wl(a){Vl.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction?a.tileLoadFunction:Xl,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:a.wrapX});this.crossOrigin=void 0!==a.crossOrigin?a.crossOrigin:null;this.tileClass=void 0!==a.tileClass?a.tileClass:Ak;this.b={};this.l={};this.ha=a.reprojectionErrorThreshold;
|
|
381
|
-
this.o=!1}v(Wl,Vl);k=Wl.prototype;k.Se=function(){if(Rl(this.a))return!0;for(var a in this.b)if(Rl(this.b[a]))return!0;return!1};k.ob=function(a,b){var c=this.Ub(a);this.a.ob(this.a==c?b:{});for(var d in this.b){var e=this.b[d];e.ob(e==c?b:{})}};k.ue=function(a){return this.ja()&&a&&sc(this.ja(),a),0};k.od=function(a){return this.ja()&&a&&!sc(this.ja(),a)?!1:Vl.prototype.od.call(this,a)};
|
|
382
|
-
k.Za=function(a){var b=this.ja();return!this.tileGrid||b&&!sc(b,a)?(b=w(a).toString(),b in this.l||(this.l[b]=Hd(a)),this.l[b]):this.tileGrid};k.Ub=function(a){var b=this.ja();if(!b||sc(b,a))return this.a;a=w(a).toString();a in this.b||(this.b[a]=new Ql);return this.b[a]};function Yl(a,b,c,d,e,f,g){b=[b,c,d];e=(c=Tl(a,b,f))?a.tileUrlFunction(c,e,f):void 0;e=new a.tileClass(b,void 0!==e?0:4,void 0!==e?e:"",a.crossOrigin,a.tileLoadFunction);e.key=g;x(e,"change",a.Oh,a);return e}
|
|
383
|
-
function Rh(a,b,c,d,e,f){if(a.ja()&&f&&!sc(a.ja(),f)){e=a.Ub(f);d=[b,c,d];var g;b=a.oc.apply(a,d);e.a.hasOwnProperty(b)&&(g=e.get(b));c=a.getKey();if(g&&g.key==c)return g;var h=a.ja(),l=a.Za(h),m=a.Za(f),n=Tl(a,d,f);a=new Ll(h,l,f,m,d,n,a.C,0,function(a,b,c,d){return Zl(this,a,b,c,d,h)}.bind(a),a.ha,a.o);a.key=c;g?(a.f=g,e.replace(b,a)):e.set(b,a);return a}return Zl(a,b,c,d,e,f)}
|
|
384
|
-
function Zl(a,b,c,d,e,f){var g,h=a.oc(b,c,d),l=a.getKey();if(a.a.a.hasOwnProperty(h)){if(g=a.a.get(h),g.key!=l){var m=g;g=Yl(a,b,c,d,e,f,l);0==m.J()?g.f=m.f:g.f=m;if(g.f){b=g.f;c=g;do{if(b.J()==kf){b.f=null;break}else 1==b.J()?c=b:0==b.J()?c.f=b.f:c=b;b=c.f}while(b)}a.a.replace(h,g)}}else g=Yl(a,b,c,d,e,f,l),a.a.set(h,g);return g}k.Md=function(a){if(this.o!=a){this.o=a;for(var b in this.b)this.b[b].clear();this.s()}};k.Od=function(a,b){var c=cc(a);c&&(c=w(c).toString(),c in this.l||(this.l[c]=b))};
|
|
385
|
-
function Xl(a,b){a.yc().src=b};function Y(a){a=a||{};var b=void 0!==a.projection?a.projection:"EPSG:3857",c=void 0!==a.tileGrid?a.tileGrid:Kd({extent:Id(b),maxZoom:a.maxZoom,minZoom:a.minZoom,tileSize:a.tileSize});Wl.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,
|
|
386
|
-
wrapX:void 0!==a.wrapX?a.wrapX:!0})}v(Y,Wl);function Z(a){this.D=a.account;this.F=a.map||"";this.g=a.config||{};this.u={};Y.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,maxZoom:void 0!==a.maxZoom?a.maxZoom:18,minZoom:a.minZoom,projection:a.projection,state:"loading",wrapX:a.wrapX});$l(this)}v(Z,Y);k=Z.prototype;k.Tf=function(){return this.g};k.pj=function(a){ua(this.g,a);$l(this)};k.Ri=function(a){this.g=a||{};$l(this)};
|
|
387
|
-
function $l(a){var b=JSON.stringify(a.g);if(a.u[b])am(a,a.u[b]);else{var c="https://"+a.D+".cartodb.com/api/v1/map";a.F&&(c+="/named/"+a.F);var d=new XMLHttpRequest;d.addEventListener("load",a.Dg.bind(a,b));d.addEventListener("error",a.Cg.bind(a));d.open("POST",c);d.setRequestHeader("Content-type","application/json");d.send(JSON.stringify(a.g))}}
|
|
388
|
-
k.Dg=function(a,b){var c=b.target;if(!c.status||200<=c.status&&300>c.status){var d;try{d=JSON.parse(c.responseText)}catch(e){Ji(this,"error");return}am(this,d);this.u[a]=d;Ji(this,"ready")}else Ji(this,"error")};k.Cg=function(){Ji(this,"error")};function am(a,b){a.dc("https://"+b.cdn_url.https+"/"+a.D+"/api/v1/map/"+b.layergroupid+"/{z}/{x}/{y}.png")};function bm(a){var b=a.imageExtent,c=void 0!==a.crossOrigin?a.crossOrigin:null,d=void 0!==a.imageLoadFunction?a.imageLoadFunction:Pi;Ki.call(this,{attributions:a.attributions,logo:a.logo,projection:cc(a.projection)});this.b=new ah(b,void 0,1,this.i,a.url,c,d);this.g=a.imageSize?a.imageSize:null;x(this.b,"change",this.o,this)}v(bm,Ki);bm.prototype.l=function(a){return Rb(a,this.b.A())?this.b:null};
|
|
389
|
-
bm.prototype.o=function(a){if(this.b.J()==dh){var b=this.b.A(),c=this.b.$a(),d,e;this.g?(d=this.g[0],e=this.g[1]):(d=c.width,e=c.height);b=Math.ceil(Mb(b)/(Nb(b)/e));if(b!=d){var b=Zd(b,e),f=b.canvas;b.drawImage(c,0,0,d,e,0,0,f.width,f.height);this.b.f=f}}Ki.prototype.o.call(this,a)};(function(){var a={},b={qa:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.qa=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Jj=c()}})(function(){return function d(a,b,g){function h(n,m){if(!b[n]){if(!a[n]){var q="function"==typeof require&&require;if(!m&&q)return q(n,!0);if(l)return l(n,!0);q=Error("Cannot find module '"+n+"'");throw q.code="MODULE_NOT_FOUND",q;}q=b[n]={qa:{}};a[n][0].call(q.qa,function(b){var d=
|
|
390
|
-
a[n][1][b];return h(d?d:b)},q,q.qa,d,a,b,g)}return b[n].qa}for(var l="function"==typeof require&&require,m=0;m<g.length;m++)h(g[m]);return h}({1:[function(a,b,f){a=a("./processor");f.rf=a},{"./processor":2}],2:[function(a,b){function f(a){var b=!0;try{new ImageData(10,10)}catch(d){b=!1}return function(d){var e=d.buffers,f=d.meta,g=d.width,h=d.height,l=e.length,m=e[0].byteLength;if(d.imageOps){m=Array(l);for(d=0;d<l;++d){var R=m,ba=d,ma;ma=new Uint8ClampedArray(e[d]);var C=g,qa=h;ma=b?new ImageData(ma,
|
|
391
|
-
C,qa):{data:ma,width:C,height:qa};R[ba]=ma}g=a(m,f).data}else{g=new Uint8ClampedArray(m);h=Array(l);R=Array(l);for(d=0;d<l;++d)h[d]=new Uint8ClampedArray(e[d]),R[d]=[0,0,0,0];for(e=0;e<m;e+=4){for(d=0;d<l;++d)ba=h[d],R[d][0]=ba[e],R[d][1]=ba[e+1],R[d][2]=ba[e+2],R[d][3]=ba[e+3];d=a(R,f);g[e]=d[0];g[e+1]=d[1];g[e+2]=d[2];g[e+3]=d[3]}}return g.buffer}}function g(a,b){var d=Object.keys(a.lib||{}).map(function(b){return"var "+b+" = "+a.lib[b].toString()+";"}).concat(["var __minion__ = ("+f.toString()+
|
|
392
|
-
")(",a.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),d=URL.createObjectURL(new Blob(d,{type:"text/javascript"})),d=new Worker(d);d.addEventListener("message",b);return d}function h(a,b){var d=f(a.operation);return{postMessage:function(a){setTimeout(function(){b({data:{buffer:d(a),meta:a.meta}})},0)}}}function l(a){this.Wc=!!a.Wg;var b;0===a.threads?
|
|
393
|
-
b=0:this.Wc?b=1:b=a.threads||1;var d=[];if(b)for(var e=0;e<b;++e)d[e]=g(a,this.ae.bind(this,e));else d[0]=h(a,this.ae.bind(this,0));this.hc=d;this.Kb=[];this.Af=a.Ei||Infinity;this.gc=0;this.mb={};this.Xc=null}var m=a("./util").oh;l.prototype.Ci=function(a,b,d){this.yf({ib:a,Ke:b,he:d});this.Yd()};l.prototype.yf=function(a){for(this.Kb.push(a);this.Kb.length>this.Af;)this.Kb.shift().he(null,null)};l.prototype.Yd=function(){if(0===this.gc&&0<this.Kb.length){var a=this.Xc=this.Kb.shift(),b=a.ib[0].width,
|
|
394
|
-
d=a.ib[0].height,e=a.ib.map(function(a){return a.data.buffer}),f=this.hc.length;this.gc=f;if(1===f)this.hc[0].postMessage({buffers:e,meta:a.Ke,imageOps:this.Wc,width:b,height:d},e);else for(var g=4*Math.ceil(a.ib[0].data.length/4/f),h=0;h<f;++h){for(var l=h*g,m=[],R=0,ba=e.length;R<ba;++R)m.push(e[h].slice(l,l+g));this.hc[h].postMessage({buffers:m,meta:a.Ke,imageOps:this.Wc,width:b,height:d},m)}}};l.prototype.ae=function(a,b){this.Ij||(this.mb[a]=b.data,--this.gc,0===this.gc&&this.Bf())};l.prototype.Bf=
|
|
395
|
-
function(){var a=this.Xc,b=this.hc.length,d,e;if(1===b)d=new Uint8ClampedArray(this.mb[0].buffer),e=this.mb[0].meta;else{var f=a.ib[0].data.length;d=new Uint8ClampedArray(f);e=Array(f);for(var f=4*Math.ceil(f/4/b),g=0;g<b;++g){var h=g*f;d.set(new Uint8ClampedArray(this.mb[g].buffer),h);e[g]=this.mb[g].meta}}this.Xc=null;this.mb={};a.he(null,m(d,a.ib[0].width,a.ib[0].height),e);this.Yd()};b.qa=l},{"./util":3}],3:[function(a,b,f){var g=!0;try{new ImageData(10,10)}catch(l){g=!1}var h=document.createElement("canvas").getContext("2d");
|
|
396
|
-
f.oh=function(a,b,d){if(g)return new ImageData(a,b,d);b=h.createImageData(b,d);b.data.set(a);return b}},{}]},{},[1])(1)});Ek=b.qa})();function cm(a){this.F=null;this.ua=void 0!==a.operationType?a.operationType:"pixel";this.wa=void 0!==a.threads?a.threads:1;this.b=dm(a.sources);for(var b=0,c=this.b.length;b<c;++b)x(this.b[b],"change",this.s,this);this.g=Zd();this.pa=new of(function(){return 1},this.s.bind(this));for(var b=em(this.b),c={},d=0,e=b.length;d<e;++d)c[w(b[d].layer)]=b[d];this.h=this.C=null;this.ea={animate:!1,attributions:{},coordinateToPixelTransform:Kg(),extent:null,focus:null,index:0,layerStates:c,layerStatesArray:b,
|
|
397
|
-
logos:{},pixelRatio:1,pixelToCoordinateTransform:Kg(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.pa,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}};Ki.call(this,{});void 0!==a.operation&&this.D(a.operation,a.lib)}v(cm,Ki);cm.prototype.D=function(a,b){this.F=new Ek.rf({operation:a,Wg:"image"===this.ua,Ei:1,lib:b,threads:this.wa});this.s()};function fm(a,b,c){var d=a.C;return!d||a.f!==d.Pi||c!==d.resolution||!Cb(b,d.extent)}
|
|
398
|
-
cm.prototype.ha=function(a,b,c,d){c=!0;for(var e,f=0,g=this.b.length;f<g;++f)if(e=this.b[f].a.ga(),"ready"!==e.J()){c=!1;break}if(!c)return null;a=a.slice();if(!fm(this,a,b))return this.h;c=this.g.canvas;e=Math.round(Mb(a)/b);f=Math.round(Nb(a)/b);if(e!==c.width||f!==c.height)c.width=e,c.height=f;e=ua({},this.ea);e.viewState=ua({},e.viewState);var f=Ob(a),g=Math.round(Mb(a)/b),h=Math.round(Nb(a)/b);e.extent=a;e.focus=Ob(a);e.size[0]=g;e.size[1]=h;g=e.viewState;g.center=f;g.projection=d;g.resolution=
|
|
399
|
-
b;this.h=d=new wi(a,b,1,this.i,c,this.I.bind(this,e));this.C={extent:a,resolution:b,Pi:this.f};return d};
|
|
400
|
-
cm.prototype.I=function(a,b){for(var c=this.b.length,d=Array(c),e=0;e<c;++e){var f;f=this.b[e];var g=a,h=a.layerStatesArray[e];if(f.B(g,h)){var l=g.size[0],m=g.size[1];if(gm){var n=gm.canvas;n.width!==l||n.height!==m?gm=Zd(l,m):gm.clearRect(0,0,l,m)}else gm=Zd(l,m);f.h(g,h,gm);f=gm.getImageData(0,0,l,m)}else f=null;if(f)d[e]=f;else return}c={};this.c(new hm(im,a,c));this.F.Ci(d,c,this.ta.bind(this,a,b));pf(a.tileQueue,16,16)};
|
|
401
|
-
cm.prototype.ta=function(a,b,c,d,e){c?b(c):d&&(this.c(new hm(jm,a,e)),fm(this,a.extent,a.viewState.resolution/a.pixelRatio)||this.g.putImageData(d,0,0),b(null))};var gm=null;function em(a){return a.map(function(a){return ug(a.a)})}function dm(a){for(var b=a.length,c=Array(b),d=0;d<b;++d){var e=d,f=a[d],g=null;f instanceof Sl?(f=new J({source:f}),g=new Vg(f)):f instanceof Ki&&(f=new I({source:f}),g=new Ug(f));c[e]=g}return c}
|
|
402
|
-
function hm(a,b,c){La.call(this,a);this.extent=b.extent;this.resolution=b.viewState.resolution/b.pixelRatio;this.data=c}v(hm,La);var im="beforeoperations",jm="afteroperations";function km(a){Wl.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,projection:cc("EPSG:3857"),reprojectionErrorThreshold:a.reprojectionErrorThreshold,state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:void 0!==a.wrapX?a.wrapX:!0});if(a.jsonp)Kl(a.url,this.u.bind(this),this.g.bind(this));else{var b=new XMLHttpRequest;b.addEventListener("load",this.F.bind(this));b.addEventListener("error",this.D.bind(this));b.open("GET",a.url);b.send()}}v(km,Wl);
|
|
403
|
-
km.prototype.F=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){var b;try{b=JSON.parse(a.responseText)}catch(c){this.g();return}this.u(b)}else this.g()};km.prototype.D=function(){this.g()};
|
|
404
|
-
km.prototype.u=function(a){var b=cc("EPSG:4326"),c=this.ja(),d;if(void 0!==a.bounds){var e=fc(b,c);d=Tb(a.bounds,e)}var f=a.minzoom||0,e=a.maxzoom||22;this.tileGrid=c=Kd({extent:Id(c),maxZoom:e,minZoom:f});this.tileUrlFunction=Nl(a.tiles,c);if(void 0!==a.attribution&&!this.i){b=void 0!==d?d:b.A();d={};for(var g;f<=e;++f)g=f.toString(),d[g]=[Bd(c,b,f)];this.lb([new Ld({html:a.attribution,tileRanges:d})])}Ji(this,"ready")};km.prototype.g=function(){Ji(this,"error")};function lm(a){this.l=a.matrixIds;yd.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes,sizes:a.sizes})}v(lm,yd);lm.prototype.B=function(){return this.l};function mm(a,b){this.c=b;this.f=[{x:0,y:0,width:a,height:a}];this.b={};this.a=Zd(a,a);this.g=this.a.canvas}mm.prototype.get=function(a){return this.b[a]||null};
|
|
405
|
-
mm.prototype.add=function(a,b,c,d,e){var f,g,h;g=0;for(h=this.f.length;g<h;++g)if(f=this.f[g],f.width>=b+this.c&&f.height>=c+this.c)return h={offsetX:f.x+this.c,offsetY:f.y+this.c,image:this.g},this.b[a]=h,d.call(e,this.a,f.x+this.c,f.y+this.c),a=g,b+=this.c,d=c+this.c,f.width-b>f.height-d?(c={x:f.x+b,y:f.y,width:f.width-b,height:f.height},b={x:f.x,y:f.y+d,width:b,height:f.height-d},nm(this,a,c,b)):(c={x:f.x+b,y:f.y,width:f.width-b,height:d},b={x:f.x,y:f.y+d,width:f.width,height:f.height-d},nm(this,
|
|
406
|
-
a,c,b)),h;return null};function nm(a,b,c,d){b=[b,1];0<c.width&&0<c.height&&b.push(c);0<d.width&&0<d.height&&b.push(d);a.f.splice.apply(a.f,b)};function om(a){a=a||{};this.f=void 0!==a.initialSize?a.initialSize:256;this.a=void 0!==a.maxSize?a.maxSize:2048;this.c=void 0!==a.space?a.space:1;this.g=[new mm(this.f,this.c)];this.b=this.f;this.h=[new mm(this.b,this.c)]}om.prototype.add=function(a,b,c,d,e,f){if(b+this.c>this.a||c+this.c>this.a)return null;d=pm(this,!1,a,b,c,d,f);if(!d)return null;a=pm(this,!0,a,b,c,void 0!==e?e:ca,f);return{offsetX:d.offsetX,offsetY:d.offsetY,image:d.image,uc:a.image}};
|
|
407
|
-
function pm(a,b,c,d,e,f,g){var h=b?a.h:a.g,l,m,n;m=0;for(n=h.length;m<n;++m){l=h[m];if(l=l.add(c,d,e,f,g))return l;l||m!==n-1||(b?(l=Math.min(2*a.b,a.a),a.b=l):(l=Math.min(2*a.f,a.a),a.f=l),l=new mm(l,a.c),h.push(l),++n)}return null};function qm(a){this.S=this.u=this.g=null;this.h=void 0!==a.fill?a.fill:null;this.F=[0,0];this.c=a.points;this.a=void 0!==a.radius?a.radius:a.radius1;this.b=void 0!==a.radius2?a.radius2:this.a;this.i=void 0!==a.angle?a.angle:0;this.f=void 0!==a.stroke?a.stroke:null;this.G=this.aa=null;var b=this.D=a.atlasManager,c="",d="",e=0,f=null,g,h=0;this.f&&(g=Yd(this.f.f),h=this.f.b,void 0===h&&(h=1),f=this.f.a,oe||(f=null),d=this.f.h,void 0===d&&(d="round"),c=this.f.g,void 0===c&&(c="round"),e=this.f.i,void 0===
|
|
408
|
-
e&&(e=10));var l=2*(this.a+h)+1,c={strokeStyle:g,fc:h,size:l,lineCap:c,lineDash:f,lineJoin:d,miterLimit:e};if(void 0===b)b=Zd(l,l),this.u=b.canvas,l=this.u.width,this.Xe(c,b,0,0),this.h?this.S=this.u:(b=Zd(c.size,c.size),this.S=b.canvas,this.We(c,b,0,0));else{var l=Math.round(l),d=!this.h,m;d&&(m=this.We.bind(this,c));e=this.f?mh(this.f):"-";f=this.h?nh(this.h):"-";this.g&&e==this.g[1]&&f==this.g[2]&&this.a==this.g[3]&&this.b==this.g[4]&&this.i==this.g[5]&&this.c==this.g[6]||(this.g=["r"+e+f+(void 0!==
|
|
409
|
-
this.a?this.a.toString():"-")+(void 0!==this.b?this.b.toString():"-")+(void 0!==this.i?this.i.toString():"-")+(void 0!==this.c?this.c.toString():"-"),e,f,this.a,this.b,this.i,this.c]);b=b.add(this.g[0],l,l,this.Xe.bind(this,c),m);this.u=b.image;this.F=[b.offsetX,b.offsetY];this.S=d?b.uc:this.u}this.aa=[l/2,l/2];this.G=[l,l];jh.call(this,{opacity:1,rotateWithView:void 0!==a.rotateWithView?a.rotateWithView:!1,rotation:void 0!==a.rotation?a.rotation:0,scale:1,snapToPixel:void 0!==a.snapToPixel?a.snapToPixel:
|
|
410
|
-
!0})}v(qm,jh);k=qm.prototype;k.clone=function(){var a=new qm({fill:this.h?this.h.clone():void 0,points:this.b!==this.a?this.c/2:this.c,radius:this.a,radius2:this.b,angle:this.i,snapToPixel:this.w,stroke:this.f?this.f.clone():void 0,rotation:this.o,rotateWithView:this.C,atlasManager:this.D});a.Ab(this.B);a.Bb(this.l);return a};k.pb=function(){return this.aa};k.Uh=function(){return this.i};k.Vh=function(){return this.h};k.Cd=function(){return this.S};k.ab=function(){return this.u};k.ac=function(){return dh};
|
|
411
|
-
k.zb=function(){return this.F};k.Wh=function(){return this.c};k.Xh=function(){return this.a};k.ng=function(){return this.b};k.bb=function(){return this.G};k.Yh=function(){return this.f};k.wd=ca;k.load=ca;k.Qd=ca;
|
|
412
|
-
k.Xe=function(a,b,c,d){var e;b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();this.b!==this.a&&(this.c*=2);for(c=0;c<=this.c;c++)d=2*c*Math.PI/this.c-Math.PI/2+this.i,e=0===c%2?this.a:this.b,b.lineTo(a.size/2+e*Math.cos(d),a.size/2+e*Math.sin(d));this.h&&(b.fillStyle=Yd(this.h.c),b.fill());this.f&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.fc,a.lineDash&&b.setLineDash(a.lineDash),b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,b.miterLimit=a.miterLimit,b.stroke());b.closePath()};
|
|
413
|
-
k.We=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();this.b!==this.a&&(this.c*=2);var e;for(c=0;c<=this.c;c++)e=2*c*Math.PI/this.c-Math.PI/2+this.i,d=0===c%2?this.a:this.b,b.lineTo(a.size/2+d*Math.cos(e),a.size/2+d*Math.sin(e));b.fillStyle=fh;b.fill();this.f&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.fc,a.lineDash&&b.setLineDash(a.lineDash),b.stroke());b.closePath()};r("ol.Attribution",Ld);r("ol.Collection",G);G.prototype.clear=G.prototype.clear;G.prototype.extend=G.prototype.yd;G.prototype.forEach=G.prototype.forEach;G.prototype.getArray=G.prototype.ph;G.prototype.item=G.prototype.Le;G.prototype.getLength=G.prototype.vb;G.prototype.insertAt=G.prototype.vc;G.prototype.pop=G.prototype.pop;G.prototype.push=G.prototype.push;G.prototype.remove=G.prototype.remove;G.prototype.removeAt=G.prototype.Jd;G.prototype.setAt=G.prototype.Qi;G.prototype.get=G.prototype.get;
|
|
414
|
-
G.prototype.getKeys=G.prototype.ba;G.prototype.getProperties=G.prototype.U;G.prototype.set=G.prototype.set;G.prototype.setProperties=G.prototype.O;G.prototype.unset=G.prototype.da;G.prototype.changed=G.prototype.s;G.prototype.dispatchEvent=G.prototype.c;G.prototype.getRevision=G.prototype.V;G.prototype.on=G.prototype.X;G.prototype.once=G.prototype.Y;G.prototype.un=G.prototype.Z;G.prototype.unByKey=G.prototype.$;r("ol.Feature",N);N.prototype.clone=N.prototype.clone;N.prototype.getGeometry=N.prototype.K;
|
|
415
|
-
N.prototype.getId=N.prototype.Ta;N.prototype.getGeometryName=N.prototype.Yf;N.prototype.getStyle=N.prototype.qh;N.prototype.getStyleFunction=N.prototype.rh;N.prototype.setGeometry=N.prototype.Oa;N.prototype.setStyle=N.prototype.Me;N.prototype.setId=N.prototype.ff;N.prototype.setGeometryName=N.prototype.Mc;N.prototype.get=N.prototype.get;N.prototype.getKeys=N.prototype.ba;N.prototype.getProperties=N.prototype.U;N.prototype.set=N.prototype.set;N.prototype.setProperties=N.prototype.O;
|
|
416
|
-
N.prototype.unset=N.prototype.da;N.prototype.changed=N.prototype.s;N.prototype.dispatchEvent=N.prototype.c;N.prototype.getRevision=N.prototype.V;N.prototype.on=N.prototype.X;N.prototype.once=N.prototype.Y;N.prototype.un=N.prototype.Z;N.prototype.unByKey=N.prototype.$;r("ol.Map",L);L.prototype.addControl=L.prototype.Ef;L.prototype.addInteraction=L.prototype.Ff;L.prototype.addLayer=L.prototype.Gf;L.prototype.addOverlay=L.prototype.Hf;L.prototype.beforeRender=L.prototype.xa;
|
|
417
|
-
L.prototype.forEachFeatureAtPixel=L.prototype.jd;L.prototype.forEachLayerAtPixel=L.prototype.vh;L.prototype.hasFeatureAtPixel=L.prototype.Vg;L.prototype.getEventCoordinate=L.prototype.Vf;L.prototype.getEventPixel=L.prototype.md;L.prototype.getTarget=L.prototype.qd;L.prototype.getTargetElement=L.prototype.Tb;L.prototype.getCoordinateFromPixel=L.prototype.za;L.prototype.getControls=L.prototype.Uf;L.prototype.getOverlays=L.prototype.jg;L.prototype.getOverlayById=L.prototype.ig;
|
|
418
|
-
L.prototype.getInteractions=L.prototype.Zf;L.prototype.getLayerGroup=L.prototype.qb;L.prototype.getLayers=L.prototype.wh;L.prototype.getPixelFromCoordinate=L.prototype.Na;L.prototype.getSize=L.prototype.wb;L.prototype.getView=L.prototype.W;L.prototype.getViewport=L.prototype.sg;L.prototype.renderSync=L.prototype.Ni;L.prototype.render=L.prototype.render;L.prototype.removeControl=L.prototype.Gi;L.prototype.removeInteraction=L.prototype.Hi;L.prototype.removeLayer=L.prototype.Ji;
|
|
419
|
-
L.prototype.removeOverlay=L.prototype.Ki;L.prototype.setLayerGroup=L.prototype.Wi;L.prototype.setSize=L.prototype.Nd;L.prototype.setTarget=L.prototype.Ne;L.prototype.setView=L.prototype.fj;L.prototype.updateSize=L.prototype.Rd;L.prototype.get=L.prototype.get;L.prototype.getKeys=L.prototype.ba;L.prototype.getProperties=L.prototype.U;L.prototype.set=L.prototype.set;L.prototype.setProperties=L.prototype.O;L.prototype.unset=L.prototype.da;L.prototype.changed=L.prototype.s;L.prototype.dispatchEvent=L.prototype.c;
|
|
420
|
-
L.prototype.getRevision=L.prototype.V;L.prototype.on=L.prototype.X;L.prototype.once=L.prototype.Y;L.prototype.un=L.prototype.Z;L.prototype.unByKey=L.prototype.$;Pa.prototype.changed=Pa.prototype.s;Pa.prototype.dispatchEvent=Pa.prototype.c;Pa.prototype.getRevision=Pa.prototype.V;Pa.prototype.on=Pa.prototype.X;Pa.prototype.once=Pa.prototype.Y;Pa.prototype.un=Pa.prototype.Z;Pa.prototype.unByKey=Pa.prototype.$;r("ol.Overlay",M);M.prototype.getElement=M.prototype.ld;M.prototype.getId=M.prototype.Ta;
|
|
421
|
-
M.prototype.getMap=M.prototype.xc;M.prototype.getOffset=M.prototype.Ae;M.prototype.getPosition=M.prototype.Ce;M.prototype.getPositioning=M.prototype.De;M.prototype.setElement=M.prototype.df;M.prototype.setMap=M.prototype.setMap;M.prototype.setOffset=M.prototype.hf;M.prototype.setPosition=M.prototype.Oe;M.prototype.setPositioning=M.prototype.jf;M.prototype.get=M.prototype.get;M.prototype.getKeys=M.prototype.ba;M.prototype.getProperties=M.prototype.U;M.prototype.set=M.prototype.set;
|
|
422
|
-
M.prototype.setProperties=M.prototype.O;M.prototype.unset=M.prototype.da;M.prototype.changed=M.prototype.s;M.prototype.dispatchEvent=M.prototype.c;M.prototype.getRevision=M.prototype.V;M.prototype.on=M.prototype.X;M.prototype.once=M.prototype.Y;M.prototype.un=M.prototype.Z;M.prototype.unByKey=M.prototype.$;r("ol.View",F);F.prototype.constrainCenter=F.prototype.lc;F.prototype.constrainResolution=F.prototype.constrainResolution;F.prototype.constrainRotation=F.prototype.constrainRotation;
|
|
423
|
-
F.prototype.getCenter=F.prototype.Ea;F.prototype.calculateExtent=F.prototype.fe;F.prototype.getMaxResolution=F.prototype.xh;F.prototype.getMinResolution=F.prototype.yh;F.prototype.getProjection=F.prototype.ja;F.prototype.getResolution=F.prototype.T;F.prototype.getResolutions=F.prototype.zh;F.prototype.getRotation=F.prototype.Ba;F.prototype.getZoom=F.prototype.ug;F.prototype.fit=F.prototype.Qf;F.prototype.centerOn=F.prototype.Of;F.prototype.rotate=F.prototype.rotate;F.prototype.setCenter=F.prototype.La;
|
|
424
|
-
F.prototype.setResolution=F.prototype.Xa;F.prototype.setRotation=F.prototype.zd;F.prototype.setZoom=F.prototype.ij;F.prototype.get=F.prototype.get;F.prototype.getKeys=F.prototype.ba;F.prototype.getProperties=F.prototype.U;F.prototype.set=F.prototype.set;F.prototype.setProperties=F.prototype.O;F.prototype.unset=F.prototype.da;F.prototype.changed=F.prototype.s;F.prototype.dispatchEvent=F.prototype.c;F.prototype.getRevision=F.prototype.V;F.prototype.on=F.prototype.X;F.prototype.once=F.prototype.Y;
|
|
425
|
-
F.prototype.un=F.prototype.Z;F.prototype.unByKey=F.prototype.$;r("ol.animation.bounce",function(a){var b=a.resolution,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:qd;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=e((g.time-c)/d),l=b-g.viewState.resolution;g.animate=!0;g.viewState.resolution+=h*l;g.viewHints[0]+=1;return!0}return!1}});r("ol.animation.pan",rd);r("ol.animation.rotate",sd);r("ol.animation.zoom",td);
|
|
426
|
-
r("ol.control.ZoomSlider",tj);r("ol.control.defaults",he);r("ol.easing.easeIn",md);r("ol.easing.easeOut",nd);r("ol.easing.inAndOut",od);r("ol.easing.linear",pd);r("ol.easing.upAndDown",qd);r("ol.events.condition.altKeyOnly",function(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey});r("ol.events.condition.altShiftKeysOnly",yf);r("ol.events.condition.always",Ub);r("ol.events.condition.click",function(a){return a.type==Xe});r("ol.events.condition.never",Vb);
|
|
427
|
-
r("ol.events.condition.pointerMove",Af);r("ol.events.condition.singleClick",Bf);r("ol.events.condition.doubleClick",function(a){return a.type==Ye});r("ol.events.condition.noModifierKeys",Cf);r("ol.events.condition.platformModifierKeyOnly",function(a){a=a.originalEvent;return!a.altKey&&(me?a.metaKey:a.ctrlKey)&&!a.shiftKey});r("ol.events.condition.shiftKeyOnly",Df);r("ol.events.condition.targetNotEditable",Ef);r("ol.events.condition.mouseOnly",Ff);r("ol.events.condition.primaryAction",Gf);
|
|
428
|
-
La.prototype.type=La.prototype.type;La.prototype.target=La.prototype.target;La.prototype.preventDefault=La.prototype.preventDefault;La.prototype.stopPropagation=La.prototype.stopPropagation;r("ol.extent.boundingExtent",qb);r("ol.extent.buffer",tb);r("ol.extent.containsCoordinate",wb);r("ol.extent.containsExtent",yb);r("ol.extent.containsXY",xb);r("ol.extent.createEmpty",rb);r("ol.extent.equals",Cb);r("ol.extent.extend",Db);r("ol.extent.getBottomLeft",Gb);r("ol.extent.getBottomRight",Hb);
|
|
429
|
-
r("ol.extent.getCenter",Ob);r("ol.extent.getHeight",Nb);r("ol.extent.getIntersection",Qb);r("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});r("ol.extent.getTopLeft",Jb);r("ol.extent.getTopRight",Ib);r("ol.extent.getWidth",Mb);r("ol.extent.intersects",Rb);r("ol.extent.isEmpty",Lb);r("ol.extent.applyTransform",Tb);r("ol.format.GeoJSON",Qj);Qj.prototype.readFeature=Qj.prototype.Hd;Qj.prototype.readFeatures=Qj.prototype.Jc;Qj.prototype.readGeometry=Qj.prototype.Id;
|
|
430
|
-
Qj.prototype.readProjection=Qj.prototype.Kc;Qj.prototype.writeFeature=Qj.prototype.Sd;Qj.prototype.writeFeatureObject=Qj.prototype.c;Qj.prototype.writeFeatures=Qj.prototype.Td;Qj.prototype.writeFeaturesObject=Qj.prototype.a;Qj.prototype.writeGeometry=Qj.prototype.Ud;Qj.prototype.writeGeometryObject=Qj.prototype.b;r("ol.format.WKT",ik);ik.prototype.readFeature=ik.prototype.Hd;ik.prototype.readFeatures=ik.prototype.Jc;ik.prototype.readGeometry=ik.prototype.Id;ik.prototype.writeFeature=ik.prototype.Sd;
|
|
431
|
-
ik.prototype.writeFeatures=ik.prototype.Td;ik.prototype.writeGeometry=ik.prototype.Ud;r("ol.geom.Circle",V);V.prototype.clone=V.prototype.clone;V.prototype.getCenter=V.prototype.Wb;V.prototype.getRadius=V.prototype.Ad;V.prototype.getType=V.prototype.L;V.prototype.intersectsExtent=V.prototype.oa;V.prototype.setCenter=V.prototype.Ah;V.prototype.setCenterAndRadius=V.prototype.Ld;V.prototype.setRadius=V.prototype.Bh;V.prototype.transform=V.prototype.transform;r("ol.geom.Geometry",xc);
|
|
432
|
-
xc.prototype.getClosestPoint=xc.prototype.Ja;xc.prototype.intersectsCoordinate=xc.prototype.Aa;xc.prototype.getExtent=xc.prototype.A;xc.prototype.rotate=xc.prototype.rotate;xc.prototype.scale=xc.prototype.scale;xc.prototype.simplify=xc.prototype.Ma;xc.prototype.transform=xc.prototype.transform;r("ol.geom.GeometryCollection",U);U.prototype.clone=U.prototype.clone;U.prototype.getGeometries=U.prototype.te;U.prototype.getType=U.prototype.L;U.prototype.intersectsExtent=U.prototype.oa;
|
|
433
|
-
U.prototype.setGeometries=U.prototype.ef;U.prototype.applyTransform=U.prototype.nb;U.prototype.translate=U.prototype.translate;r("ol.geom.LinearRing",B);B.prototype.clone=B.prototype.clone;B.prototype.getArea=B.prototype.Eh;B.prototype.getCoordinates=B.prototype.P;B.prototype.getType=B.prototype.L;B.prototype.setCoordinates=B.prototype.ca;r("ol.geom.LineString",O);O.prototype.appendCoordinate=O.prototype.If;O.prototype.clone=O.prototype.clone;O.prototype.forEachSegment=O.prototype.Rf;
|
|
434
|
-
O.prototype.getCoordinateAtM=O.prototype.Ch;O.prototype.getCoordinates=O.prototype.P;O.prototype.getCoordinateAt=O.prototype.ne;O.prototype.getLength=O.prototype.Dh;O.prototype.getType=O.prototype.L;O.prototype.intersectsExtent=O.prototype.oa;O.prototype.setCoordinates=O.prototype.ca;r("ol.geom.MultiLineString",P);P.prototype.appendLineString=P.prototype.Jf;P.prototype.clone=P.prototype.clone;P.prototype.getCoordinateAtM=P.prototype.Fh;P.prototype.getCoordinates=P.prototype.P;
|
|
435
|
-
P.prototype.getLineString=P.prototype.dg;P.prototype.getLineStrings=P.prototype.ve;P.prototype.getType=P.prototype.L;P.prototype.intersectsExtent=P.prototype.oa;P.prototype.setCoordinates=P.prototype.ca;r("ol.geom.MultiPoint",S);S.prototype.appendPoint=S.prototype.Lf;S.prototype.clone=S.prototype.clone;S.prototype.getCoordinates=S.prototype.P;S.prototype.getPoint=S.prototype.kg;S.prototype.getPoints=S.prototype.Pe;S.prototype.getType=S.prototype.L;S.prototype.intersectsExtent=S.prototype.oa;
|
|
436
|
-
S.prototype.setCoordinates=S.prototype.ca;r("ol.geom.MultiPolygon",T);T.prototype.appendPolygon=T.prototype.Mf;T.prototype.clone=T.prototype.clone;T.prototype.getArea=T.prototype.Gh;T.prototype.getCoordinates=T.prototype.P;T.prototype.getInteriorPoints=T.prototype.ag;T.prototype.getPolygon=T.prototype.mg;T.prototype.getPolygons=T.prototype.Be;T.prototype.getType=T.prototype.L;T.prototype.intersectsExtent=T.prototype.oa;T.prototype.setCoordinates=T.prototype.ca;r("ol.geom.Point",D);
|
|
437
|
-
D.prototype.clone=D.prototype.clone;D.prototype.getCoordinates=D.prototype.P;D.prototype.getType=D.prototype.L;D.prototype.intersectsExtent=D.prototype.oa;D.prototype.setCoordinates=D.prototype.ca;r("ol.geom.Polygon",E);E.prototype.appendLinearRing=E.prototype.Kf;E.prototype.clone=E.prototype.clone;E.prototype.getArea=E.prototype.Hh;E.prototype.getCoordinates=E.prototype.P;E.prototype.getInteriorPoint=E.prototype.$f;E.prototype.getLinearRingCount=E.prototype.eg;E.prototype.getLinearRing=E.prototype.we;
|
|
438
|
-
E.prototype.getLinearRings=E.prototype.xe;E.prototype.getType=E.prototype.L;E.prototype.intersectsExtent=E.prototype.oa;E.prototype.setCoordinates=E.prototype.ca;r("ol.geom.Polygon.circular",function(a,b,c,d){var e=d?d:32;d=[];var f;for(f=0;f<e;++f)Za(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new E(null);ad(a,"XY",d,[d.length]);return a});r("ol.geom.Polygon.fromExtent",dd);
|
|
439
|
-
r("ol.geom.Polygon.fromCircle",function(a,b,c){var d=b?b:32,e=a.v,f=a.a;b=new E(null,f);for(var d=e*(d+1),e=Array(d),g=0;g<d;g++)e[g]=0;ad(b,f,e,[e.length]);f=a.Wb();a=a.Ad();var d=b.j,e=b.a,g=b.v,h=b.fa,l=d.length/g-1;c=c?c:0;for(var m,n,p=0;p<=l;++p)n=p*g,m=c+2*la(p,l)*Math.PI/l,d[n]=f[0]+a*Math.cos(m),d[n+1]=f[1]+a*Math.sin(m);ad(b,e,d,h);return b});r("ol.geom.SimpleGeometry",A);A.prototype.getFirstCoordinate=A.prototype.Sa;A.prototype.getLastCoordinate=A.prototype.Ua;A.prototype.getLayout=A.prototype.Va;
|
|
440
|
-
A.prototype.applyTransform=A.prototype.nb;A.prototype.translate=A.prototype.translate;xc.prototype.get=xc.prototype.get;xc.prototype.getKeys=xc.prototype.ba;xc.prototype.getProperties=xc.prototype.U;xc.prototype.set=xc.prototype.set;xc.prototype.setProperties=xc.prototype.O;xc.prototype.unset=xc.prototype.da;xc.prototype.changed=xc.prototype.s;xc.prototype.dispatchEvent=xc.prototype.c;xc.prototype.getRevision=xc.prototype.V;xc.prototype.on=xc.prototype.X;xc.prototype.once=xc.prototype.Y;
|
|
441
|
-
xc.prototype.un=xc.prototype.Z;xc.prototype.unByKey=xc.prototype.$;A.prototype.getClosestPoint=A.prototype.Ja;A.prototype.intersectsCoordinate=A.prototype.Aa;A.prototype.getExtent=A.prototype.A;A.prototype.rotate=A.prototype.rotate;A.prototype.scale=A.prototype.scale;A.prototype.simplify=A.prototype.Ma;A.prototype.transform=A.prototype.transform;A.prototype.get=A.prototype.get;A.prototype.getKeys=A.prototype.ba;A.prototype.getProperties=A.prototype.U;A.prototype.set=A.prototype.set;
|
|
442
|
-
A.prototype.setProperties=A.prototype.O;A.prototype.unset=A.prototype.da;A.prototype.changed=A.prototype.s;A.prototype.dispatchEvent=A.prototype.c;A.prototype.getRevision=A.prototype.V;A.prototype.on=A.prototype.X;A.prototype.once=A.prototype.Y;A.prototype.un=A.prototype.Z;A.prototype.unByKey=A.prototype.$;V.prototype.getFirstCoordinate=V.prototype.Sa;V.prototype.getLastCoordinate=V.prototype.Ua;V.prototype.getLayout=V.prototype.Va;V.prototype.rotate=V.prototype.rotate;V.prototype.scale=V.prototype.scale;
|
|
443
|
-
V.prototype.getClosestPoint=V.prototype.Ja;V.prototype.intersectsCoordinate=V.prototype.Aa;V.prototype.getExtent=V.prototype.A;V.prototype.simplify=V.prototype.Ma;V.prototype.get=V.prototype.get;V.prototype.getKeys=V.prototype.ba;V.prototype.getProperties=V.prototype.U;V.prototype.set=V.prototype.set;V.prototype.setProperties=V.prototype.O;V.prototype.unset=V.prototype.da;V.prototype.changed=V.prototype.s;V.prototype.dispatchEvent=V.prototype.c;V.prototype.getRevision=V.prototype.V;
|
|
444
|
-
V.prototype.on=V.prototype.X;V.prototype.once=V.prototype.Y;V.prototype.un=V.prototype.Z;V.prototype.unByKey=V.prototype.$;U.prototype.getClosestPoint=U.prototype.Ja;U.prototype.intersectsCoordinate=U.prototype.Aa;U.prototype.getExtent=U.prototype.A;U.prototype.rotate=U.prototype.rotate;U.prototype.scale=U.prototype.scale;U.prototype.simplify=U.prototype.Ma;U.prototype.transform=U.prototype.transform;U.prototype.get=U.prototype.get;U.prototype.getKeys=U.prototype.ba;U.prototype.getProperties=U.prototype.U;
|
|
445
|
-
U.prototype.set=U.prototype.set;U.prototype.setProperties=U.prototype.O;U.prototype.unset=U.prototype.da;U.prototype.changed=U.prototype.s;U.prototype.dispatchEvent=U.prototype.c;U.prototype.getRevision=U.prototype.V;U.prototype.on=U.prototype.X;U.prototype.once=U.prototype.Y;U.prototype.un=U.prototype.Z;U.prototype.unByKey=U.prototype.$;B.prototype.getFirstCoordinate=B.prototype.Sa;B.prototype.getLastCoordinate=B.prototype.Ua;B.prototype.getLayout=B.prototype.Va;B.prototype.rotate=B.prototype.rotate;
|
|
446
|
-
B.prototype.scale=B.prototype.scale;B.prototype.getClosestPoint=B.prototype.Ja;B.prototype.intersectsCoordinate=B.prototype.Aa;B.prototype.getExtent=B.prototype.A;B.prototype.simplify=B.prototype.Ma;B.prototype.transform=B.prototype.transform;B.prototype.get=B.prototype.get;B.prototype.getKeys=B.prototype.ba;B.prototype.getProperties=B.prototype.U;B.prototype.set=B.prototype.set;B.prototype.setProperties=B.prototype.O;B.prototype.unset=B.prototype.da;B.prototype.changed=B.prototype.s;
|
|
447
|
-
B.prototype.dispatchEvent=B.prototype.c;B.prototype.getRevision=B.prototype.V;B.prototype.on=B.prototype.X;B.prototype.once=B.prototype.Y;B.prototype.un=B.prototype.Z;B.prototype.unByKey=B.prototype.$;O.prototype.getFirstCoordinate=O.prototype.Sa;O.prototype.getLastCoordinate=O.prototype.Ua;O.prototype.getLayout=O.prototype.Va;O.prototype.rotate=O.prototype.rotate;O.prototype.scale=O.prototype.scale;O.prototype.getClosestPoint=O.prototype.Ja;O.prototype.intersectsCoordinate=O.prototype.Aa;
|
|
448
|
-
O.prototype.getExtent=O.prototype.A;O.prototype.simplify=O.prototype.Ma;O.prototype.transform=O.prototype.transform;O.prototype.get=O.prototype.get;O.prototype.getKeys=O.prototype.ba;O.prototype.getProperties=O.prototype.U;O.prototype.set=O.prototype.set;O.prototype.setProperties=O.prototype.O;O.prototype.unset=O.prototype.da;O.prototype.changed=O.prototype.s;O.prototype.dispatchEvent=O.prototype.c;O.prototype.getRevision=O.prototype.V;O.prototype.on=O.prototype.X;O.prototype.once=O.prototype.Y;
|
|
449
|
-
O.prototype.un=O.prototype.Z;O.prototype.unByKey=O.prototype.$;P.prototype.getFirstCoordinate=P.prototype.Sa;P.prototype.getLastCoordinate=P.prototype.Ua;P.prototype.getLayout=P.prototype.Va;P.prototype.rotate=P.prototype.rotate;P.prototype.scale=P.prototype.scale;P.prototype.getClosestPoint=P.prototype.Ja;P.prototype.intersectsCoordinate=P.prototype.Aa;P.prototype.getExtent=P.prototype.A;P.prototype.simplify=P.prototype.Ma;P.prototype.transform=P.prototype.transform;P.prototype.get=P.prototype.get;
|
|
450
|
-
P.prototype.getKeys=P.prototype.ba;P.prototype.getProperties=P.prototype.U;P.prototype.set=P.prototype.set;P.prototype.setProperties=P.prototype.O;P.prototype.unset=P.prototype.da;P.prototype.changed=P.prototype.s;P.prototype.dispatchEvent=P.prototype.c;P.prototype.getRevision=P.prototype.V;P.prototype.on=P.prototype.X;P.prototype.once=P.prototype.Y;P.prototype.un=P.prototype.Z;P.prototype.unByKey=P.prototype.$;S.prototype.getFirstCoordinate=S.prototype.Sa;S.prototype.getLastCoordinate=S.prototype.Ua;
|
|
451
|
-
S.prototype.getLayout=S.prototype.Va;S.prototype.rotate=S.prototype.rotate;S.prototype.scale=S.prototype.scale;S.prototype.getClosestPoint=S.prototype.Ja;S.prototype.intersectsCoordinate=S.prototype.Aa;S.prototype.getExtent=S.prototype.A;S.prototype.simplify=S.prototype.Ma;S.prototype.transform=S.prototype.transform;S.prototype.get=S.prototype.get;S.prototype.getKeys=S.prototype.ba;S.prototype.getProperties=S.prototype.U;S.prototype.set=S.prototype.set;S.prototype.setProperties=S.prototype.O;
|
|
452
|
-
S.prototype.unset=S.prototype.da;S.prototype.changed=S.prototype.s;S.prototype.dispatchEvent=S.prototype.c;S.prototype.getRevision=S.prototype.V;S.prototype.on=S.prototype.X;S.prototype.once=S.prototype.Y;S.prototype.un=S.prototype.Z;S.prototype.unByKey=S.prototype.$;T.prototype.getFirstCoordinate=T.prototype.Sa;T.prototype.getLastCoordinate=T.prototype.Ua;T.prototype.getLayout=T.prototype.Va;T.prototype.rotate=T.prototype.rotate;T.prototype.scale=T.prototype.scale;T.prototype.getClosestPoint=T.prototype.Ja;
|
|
453
|
-
T.prototype.intersectsCoordinate=T.prototype.Aa;T.prototype.getExtent=T.prototype.A;T.prototype.simplify=T.prototype.Ma;T.prototype.transform=T.prototype.transform;T.prototype.get=T.prototype.get;T.prototype.getKeys=T.prototype.ba;T.prototype.getProperties=T.prototype.U;T.prototype.set=T.prototype.set;T.prototype.setProperties=T.prototype.O;T.prototype.unset=T.prototype.da;T.prototype.changed=T.prototype.s;T.prototype.dispatchEvent=T.prototype.c;T.prototype.getRevision=T.prototype.V;
|
|
454
|
-
T.prototype.on=T.prototype.X;T.prototype.once=T.prototype.Y;T.prototype.un=T.prototype.Z;T.prototype.unByKey=T.prototype.$;D.prototype.getFirstCoordinate=D.prototype.Sa;D.prototype.getLastCoordinate=D.prototype.Ua;D.prototype.getLayout=D.prototype.Va;D.prototype.rotate=D.prototype.rotate;D.prototype.scale=D.prototype.scale;D.prototype.getClosestPoint=D.prototype.Ja;D.prototype.intersectsCoordinate=D.prototype.Aa;D.prototype.getExtent=D.prototype.A;D.prototype.simplify=D.prototype.Ma;
|
|
455
|
-
D.prototype.transform=D.prototype.transform;D.prototype.get=D.prototype.get;D.prototype.getKeys=D.prototype.ba;D.prototype.getProperties=D.prototype.U;D.prototype.set=D.prototype.set;D.prototype.setProperties=D.prototype.O;D.prototype.unset=D.prototype.da;D.prototype.changed=D.prototype.s;D.prototype.dispatchEvent=D.prototype.c;D.prototype.getRevision=D.prototype.V;D.prototype.on=D.prototype.X;D.prototype.once=D.prototype.Y;D.prototype.un=D.prototype.Z;D.prototype.unByKey=D.prototype.$;
|
|
456
|
-
E.prototype.getFirstCoordinate=E.prototype.Sa;E.prototype.getLastCoordinate=E.prototype.Ua;E.prototype.getLayout=E.prototype.Va;E.prototype.rotate=E.prototype.rotate;E.prototype.scale=E.prototype.scale;E.prototype.getClosestPoint=E.prototype.Ja;E.prototype.intersectsCoordinate=E.prototype.Aa;E.prototype.getExtent=E.prototype.A;E.prototype.simplify=E.prototype.Ma;E.prototype.transform=E.prototype.transform;E.prototype.get=E.prototype.get;E.prototype.getKeys=E.prototype.ba;
|
|
457
|
-
E.prototype.getProperties=E.prototype.U;E.prototype.set=E.prototype.set;E.prototype.setProperties=E.prototype.O;E.prototype.unset=E.prototype.da;E.prototype.changed=E.prototype.s;E.prototype.dispatchEvent=E.prototype.c;E.prototype.getRevision=E.prototype.V;E.prototype.on=E.prototype.X;E.prototype.once=E.prototype.Y;E.prototype.un=E.prototype.Z;E.prototype.unByKey=E.prototype.$;r("ol.inherits",v);r("ol.interaction.DoubleClickZoom",wf);wf.prototype.getActive=wf.prototype.F;wf.prototype.getMap=wf.prototype.sa;
|
|
458
|
-
wf.prototype.setActive=wf.prototype.I;wf.prototype.get=wf.prototype.get;wf.prototype.getKeys=wf.prototype.ba;wf.prototype.getProperties=wf.prototype.U;wf.prototype.set=wf.prototype.set;wf.prototype.setProperties=wf.prototype.O;wf.prototype.unset=wf.prototype.da;wf.prototype.changed=wf.prototype.s;wf.prototype.dispatchEvent=wf.prototype.c;wf.prototype.getRevision=wf.prototype.V;wf.prototype.on=wf.prototype.X;wf.prototype.once=wf.prototype.Y;wf.prototype.un=wf.prototype.Z;wf.prototype.unByKey=wf.prototype.$;
|
|
459
|
-
r("ol.interaction.Draw",Wk);Wk.prototype.removeLastPoint=Wk.prototype.Ii;Wk.prototype.finishDrawing=Wk.prototype.Sb;Wk.prototype.extend=Wk.prototype.Ih;Wk.prototype.getActive=Wk.prototype.F;Wk.prototype.getMap=Wk.prototype.sa;Wk.prototype.setActive=Wk.prototype.I;Wk.prototype.get=Wk.prototype.get;Wk.prototype.getKeys=Wk.prototype.ba;Wk.prototype.getProperties=Wk.prototype.U;Wk.prototype.set=Wk.prototype.set;Wk.prototype.setProperties=Wk.prototype.O;Wk.prototype.unset=Wk.prototype.da;
|
|
460
|
-
Wk.prototype.changed=Wk.prototype.s;Wk.prototype.dispatchEvent=Wk.prototype.c;Wk.prototype.getRevision=Wk.prototype.V;Wk.prototype.on=Wk.prototype.X;Wk.prototype.once=Wk.prototype.Y;Wk.prototype.un=Wk.prototype.Z;Wk.prototype.unByKey=Wk.prototype.$;r("ol.interaction.Modify",pl);pl.prototype.removePoint=pl.prototype.af;pl.prototype.getActive=pl.prototype.F;pl.prototype.getMap=pl.prototype.sa;pl.prototype.setActive=pl.prototype.I;pl.prototype.get=pl.prototype.get;pl.prototype.getKeys=pl.prototype.ba;
|
|
461
|
-
pl.prototype.getProperties=pl.prototype.U;pl.prototype.set=pl.prototype.set;pl.prototype.setProperties=pl.prototype.O;pl.prototype.unset=pl.prototype.da;pl.prototype.changed=pl.prototype.s;pl.prototype.dispatchEvent=pl.prototype.c;pl.prototype.getRevision=pl.prototype.V;pl.prototype.on=pl.prototype.X;pl.prototype.once=pl.prototype.Y;pl.prototype.un=pl.prototype.Z;pl.prototype.unByKey=pl.prototype.$;r("ol.interaction.Select",Fl);Fl.prototype.getFeatures=Fl.prototype.nc;Fl.prototype.getLayer=Fl.prototype.Kh;
|
|
462
|
-
Fl.prototype.setMap=Fl.prototype.setMap;Fl.prototype.getActive=Fl.prototype.F;Fl.prototype.getMap=Fl.prototype.sa;Fl.prototype.setActive=Fl.prototype.I;Fl.prototype.get=Fl.prototype.get;Fl.prototype.getKeys=Fl.prototype.ba;Fl.prototype.getProperties=Fl.prototype.U;Fl.prototype.set=Fl.prototype.set;Fl.prototype.setProperties=Fl.prototype.O;Fl.prototype.unset=Fl.prototype.da;Fl.prototype.changed=Fl.prototype.s;Fl.prototype.dispatchEvent=Fl.prototype.c;Fl.prototype.getRevision=Fl.prototype.V;
|
|
463
|
-
Fl.prototype.on=Fl.prototype.X;Fl.prototype.once=Fl.prototype.Y;Fl.prototype.un=Fl.prototype.Z;Fl.prototype.unByKey=Fl.prototype.$;r("ol.interaction.defaults",sg);r("ol.interaction.defaults",sg);r("ol.layer.Group",H);H.prototype.getLayers=H.prototype.xb;H.prototype.setLayers=H.prototype.gf;H.prototype.getExtent=H.prototype.A;H.prototype.getMaxResolution=H.prototype.Xb;H.prototype.getMinResolution=H.prototype.Yb;H.prototype.getOpacity=H.prototype.Zb;H.prototype.getVisible=H.prototype.hb;
|
|
464
|
-
H.prototype.getZIndex=H.prototype.$b;H.prototype.setExtent=H.prototype.zc;H.prototype.setMaxResolution=H.prototype.Oc;H.prototype.setMinResolution=H.prototype.Pc;H.prototype.setOpacity=H.prototype.Ac;H.prototype.setVisible=H.prototype.Bc;H.prototype.setZIndex=H.prototype.Cc;H.prototype.get=H.prototype.get;H.prototype.getKeys=H.prototype.ba;H.prototype.getProperties=H.prototype.U;H.prototype.set=H.prototype.set;H.prototype.setProperties=H.prototype.O;H.prototype.unset=H.prototype.da;
|
|
465
|
-
H.prototype.changed=H.prototype.s;H.prototype.dispatchEvent=H.prototype.c;H.prototype.getRevision=H.prototype.V;H.prototype.on=H.prototype.X;H.prototype.once=H.prototype.Y;H.prototype.un=H.prototype.Z;H.prototype.unByKey=H.prototype.$;r("ol.layer.Image",I);I.prototype.getSource=I.prototype.ga;I.prototype.setMap=I.prototype.setMap;I.prototype.setSource=I.prototype.Qc;I.prototype.getExtent=I.prototype.A;I.prototype.getMaxResolution=I.prototype.Xb;I.prototype.getMinResolution=I.prototype.Yb;
|
|
466
|
-
I.prototype.getOpacity=I.prototype.Zb;I.prototype.getVisible=I.prototype.hb;I.prototype.getZIndex=I.prototype.$b;I.prototype.setExtent=I.prototype.zc;I.prototype.setMaxResolution=I.prototype.Oc;I.prototype.setMinResolution=I.prototype.Pc;I.prototype.setOpacity=I.prototype.Ac;I.prototype.setVisible=I.prototype.Bc;I.prototype.setZIndex=I.prototype.Cc;I.prototype.get=I.prototype.get;I.prototype.getKeys=I.prototype.ba;I.prototype.getProperties=I.prototype.U;I.prototype.set=I.prototype.set;
|
|
467
|
-
I.prototype.setProperties=I.prototype.O;I.prototype.unset=I.prototype.da;I.prototype.changed=I.prototype.s;I.prototype.dispatchEvent=I.prototype.c;I.prototype.getRevision=I.prototype.V;I.prototype.on=I.prototype.X;I.prototype.once=I.prototype.Y;I.prototype.un=I.prototype.Z;I.prototype.unByKey=I.prototype.$;r("ol.layer.Tile",J);J.prototype.getPreload=J.prototype.o;J.prototype.getSource=J.prototype.ga;J.prototype.setPreload=J.prototype.i;J.prototype.getUseInterimTilesOnError=J.prototype.w;
|
|
468
|
-
J.prototype.setUseInterimTilesOnError=J.prototype.l;J.prototype.setMap=J.prototype.setMap;J.prototype.setSource=J.prototype.Qc;J.prototype.getExtent=J.prototype.A;J.prototype.getMaxResolution=J.prototype.Xb;J.prototype.getMinResolution=J.prototype.Yb;J.prototype.getOpacity=J.prototype.Zb;J.prototype.getVisible=J.prototype.hb;J.prototype.getZIndex=J.prototype.$b;J.prototype.setExtent=J.prototype.zc;J.prototype.setMaxResolution=J.prototype.Oc;J.prototype.setMinResolution=J.prototype.Pc;
|
|
469
|
-
J.prototype.setOpacity=J.prototype.Ac;J.prototype.setVisible=J.prototype.Bc;J.prototype.setZIndex=J.prototype.Cc;J.prototype.get=J.prototype.get;J.prototype.getKeys=J.prototype.ba;J.prototype.getProperties=J.prototype.U;J.prototype.set=J.prototype.set;J.prototype.setProperties=J.prototype.O;J.prototype.unset=J.prototype.da;J.prototype.changed=J.prototype.s;J.prototype.dispatchEvent=J.prototype.c;J.prototype.getRevision=J.prototype.V;J.prototype.on=J.prototype.X;J.prototype.once=J.prototype.Y;
|
|
470
|
-
J.prototype.un=J.prototype.Z;J.prototype.unByKey=J.prototype.$;r("ol.layer.Vector",K);K.prototype.getSource=K.prototype.ga;K.prototype.getStyle=K.prototype.D;K.prototype.getStyleFunction=K.prototype.F;K.prototype.setStyle=K.prototype.C;K.prototype.setMap=K.prototype.setMap;K.prototype.setSource=K.prototype.Qc;K.prototype.getExtent=K.prototype.A;K.prototype.getMaxResolution=K.prototype.Xb;K.prototype.getMinResolution=K.prototype.Yb;K.prototype.getOpacity=K.prototype.Zb;K.prototype.getVisible=K.prototype.hb;
|
|
471
|
-
K.prototype.getZIndex=K.prototype.$b;K.prototype.setExtent=K.prototype.zc;K.prototype.setMaxResolution=K.prototype.Oc;K.prototype.setMinResolution=K.prototype.Pc;K.prototype.setOpacity=K.prototype.Ac;K.prototype.setVisible=K.prototype.Bc;K.prototype.setZIndex=K.prototype.Cc;K.prototype.get=K.prototype.get;K.prototype.getKeys=K.prototype.ba;K.prototype.getProperties=K.prototype.U;K.prototype.set=K.prototype.set;K.prototype.setProperties=K.prototype.O;K.prototype.unset=K.prototype.da;
|
|
472
|
-
K.prototype.changed=K.prototype.s;K.prototype.dispatchEvent=K.prototype.c;K.prototype.getRevision=K.prototype.V;K.prototype.on=K.prototype.X;K.prototype.once=K.prototype.Y;K.prototype.un=K.prototype.Z;K.prototype.unByKey=K.prototype.$;r("ol.proj.common.add",Eg);r("ol.proj.METERS_PER_UNIT",Zb);r("ol.proj.Projection",$b);$b.prototype.getCode=$b.prototype.Sf;$b.prototype.getExtent=$b.prototype.A;$b.prototype.getUnits=$b.prototype.rg;$b.prototype.getMetersPerUnit=$b.prototype.fb;
|
|
473
|
-
$b.prototype.getWorldExtent=$b.prototype.tg;$b.prototype.isGlobal=$b.prototype.Yg;$b.prototype.setGlobal=$b.prototype.Vi;$b.prototype.setExtent=$b.prototype.Nh;$b.prototype.setWorldExtent=$b.prototype.hj;$b.prototype.setGetPointResolution=$b.prototype.Ui;$b.prototype.getPointResolution=$b.prototype.getPointResolution;r("ol.proj.setProj4",function(a){bc=a});r("ol.proj.addEquivalentProjections",dc);r("ol.proj.addProjection",pc);r("ol.proj.addCoordinateTransforms",ec);
|
|
474
|
-
r("ol.proj.fromLonLat",function(a,b){return vc(a,"EPSG:4326",void 0!==b?b:"EPSG:3857")});r("ol.proj.toLonLat",function(a,b){return vc(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});r("ol.proj.get",cc);r("ol.proj.equivalent",sc);r("ol.proj.getTransform",tc);r("ol.proj.transform",vc);r("ol.proj.transformExtent",wc);xh.prototype.drawCircle=xh.prototype.mc;xh.prototype.setStyle=xh.prototype.Re;xh.prototype.drawGeometry=xh.prototype.bd;xh.prototype.drawFeature=xh.prototype.Pf;r("ol.source.CartoDB",Z);
|
|
475
|
-
Z.prototype.getConfig=Z.prototype.Tf;Z.prototype.updateConfig=Z.prototype.pj;Z.prototype.setConfig=Z.prototype.Ri;Z.prototype.setRenderReprojectionEdges=Z.prototype.Md;Z.prototype.setTileGridForProjection=Z.prototype.Od;Z.prototype.getTileLoadFunction=Z.prototype.sd;Z.prototype.getTileUrlFunction=Z.prototype.td;Z.prototype.getUrls=Z.prototype.ud;Z.prototype.setTileLoadFunction=Z.prototype.Pd;Z.prototype.setTileUrlFunction=Z.prototype.Eb;Z.prototype.setUrl=Z.prototype.dc;Z.prototype.setUrls=Z.prototype.Rc;
|
|
476
|
-
Z.prototype.getTileGrid=Z.prototype.rd;Z.prototype.refresh=Z.prototype.kb;Z.prototype.getAttributions=Z.prototype.yb;Z.prototype.getLogo=Z.prototype.rb;Z.prototype.getProjection=Z.prototype.ja;Z.prototype.getState=Z.prototype.J;Z.prototype.setAttributions=Z.prototype.lb;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.ba;Z.prototype.getProperties=Z.prototype.U;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.O;Z.prototype.unset=Z.prototype.da;
|
|
477
|
-
Z.prototype.changed=Z.prototype.s;Z.prototype.dispatchEvent=Z.prototype.c;Z.prototype.getRevision=Z.prototype.V;Z.prototype.on=Z.prototype.X;Z.prototype.once=Z.prototype.Y;Z.prototype.un=Z.prototype.Z;Z.prototype.unByKey=Z.prototype.$;r("ol.source.ImageStatic",bm);r("ol.source.ImageVector",Ri);r("ol.source.Raster",cm);cm.prototype.setOperation=cm.prototype.D;cm.prototype.getAttributions=cm.prototype.yb;cm.prototype.getLogo=cm.prototype.rb;cm.prototype.getProjection=cm.prototype.ja;
|
|
478
|
-
cm.prototype.getState=cm.prototype.J;cm.prototype.refresh=cm.prototype.kb;cm.prototype.setAttributions=cm.prototype.lb;cm.prototype.get=cm.prototype.get;cm.prototype.getKeys=cm.prototype.ba;cm.prototype.getProperties=cm.prototype.U;cm.prototype.set=cm.prototype.set;cm.prototype.setProperties=cm.prototype.O;cm.prototype.unset=cm.prototype.da;cm.prototype.changed=cm.prototype.s;cm.prototype.dispatchEvent=cm.prototype.c;cm.prototype.getRevision=cm.prototype.V;cm.prototype.on=cm.prototype.X;
|
|
479
|
-
cm.prototype.once=cm.prototype.Y;cm.prototype.un=cm.prototype.Z;cm.prototype.unByKey=cm.prototype.$;r("ol.source.TileJSON",km);r("ol.source.Vector",W);r("ol.source.Vector",W);W.prototype.addFeature=W.prototype.Lb;W.prototype.addFeatures=W.prototype.ic;W.prototype.clear=W.prototype.clear;W.prototype.forEachFeature=W.prototype.je;W.prototype.forEachFeatureInExtent=W.prototype.eb;W.prototype.forEachFeatureIntersectingExtent=W.prototype.ke;W.prototype.getFeaturesCollection=W.prototype.qe;
|
|
480
|
-
W.prototype.getFeatures=W.prototype.nc;W.prototype.getFeaturesAtCoordinate=W.prototype.pe;W.prototype.getFeaturesInExtent=W.prototype.re;W.prototype.getClosestFeatureToCoordinate=W.prototype.me;W.prototype.getExtent=W.prototype.A;W.prototype.getFeatureById=W.prototype.oe;W.prototype.getFormat=W.prototype.se;W.prototype.getUrl=W.prototype.Fe;W.prototype.removeFeature=W.prototype.Db;W.prototype.getAttributions=W.prototype.yb;W.prototype.getLogo=W.prototype.rb;W.prototype.getProjection=W.prototype.ja;
|
|
481
|
-
W.prototype.getState=W.prototype.J;W.prototype.refresh=W.prototype.kb;W.prototype.setAttributions=W.prototype.lb;W.prototype.get=W.prototype.get;W.prototype.getKeys=W.prototype.ba;W.prototype.getProperties=W.prototype.U;W.prototype.set=W.prototype.set;W.prototype.setProperties=W.prototype.O;W.prototype.unset=W.prototype.da;W.prototype.changed=W.prototype.s;W.prototype.dispatchEvent=W.prototype.c;W.prototype.getRevision=W.prototype.V;W.prototype.on=W.prototype.X;W.prototype.once=W.prototype.Y;
|
|
482
|
-
W.prototype.un=W.prototype.Z;W.prototype.unByKey=W.prototype.$;W.prototype.addFeature=W.prototype.Lb;W.prototype.addFeatures=W.prototype.ic;W.prototype.clear=W.prototype.clear;W.prototype.forEachFeature=W.prototype.je;W.prototype.forEachFeatureInExtent=W.prototype.eb;W.prototype.forEachFeatureIntersectingExtent=W.prototype.ke;W.prototype.getFeaturesCollection=W.prototype.qe;W.prototype.getFeatures=W.prototype.nc;W.prototype.getFeaturesAtCoordinate=W.prototype.pe;W.prototype.getFeaturesInExtent=W.prototype.re;
|
|
483
|
-
W.prototype.getClosestFeatureToCoordinate=W.prototype.me;W.prototype.getExtent=W.prototype.A;W.prototype.getFeatureById=W.prototype.oe;W.prototype.getFormat=W.prototype.se;W.prototype.getUrl=W.prototype.Fe;W.prototype.removeFeature=W.prototype.Db;W.prototype.getAttributions=W.prototype.yb;W.prototype.getLogo=W.prototype.rb;W.prototype.getProjection=W.prototype.ja;W.prototype.getState=W.prototype.J;W.prototype.refresh=W.prototype.kb;W.prototype.setAttributions=W.prototype.lb;W.prototype.get=W.prototype.get;
|
|
484
|
-
W.prototype.getKeys=W.prototype.ba;W.prototype.getProperties=W.prototype.U;W.prototype.set=W.prototype.set;W.prototype.setProperties=W.prototype.O;W.prototype.unset=W.prototype.da;W.prototype.changed=W.prototype.s;W.prototype.dispatchEvent=W.prototype.c;W.prototype.getRevision=W.prototype.V;W.prototype.on=W.prototype.X;W.prototype.once=W.prototype.Y;W.prototype.un=W.prototype.Z;W.prototype.unByKey=W.prototype.$;r("ol.source.XYZ",Y);r("ol.source.XYZ",Y);Y.prototype.setRenderReprojectionEdges=Y.prototype.Md;
|
|
485
|
-
Y.prototype.setTileGridForProjection=Y.prototype.Od;Y.prototype.getTileLoadFunction=Y.prototype.sd;Y.prototype.getTileUrlFunction=Y.prototype.td;Y.prototype.getUrls=Y.prototype.ud;Y.prototype.setTileLoadFunction=Y.prototype.Pd;Y.prototype.setTileUrlFunction=Y.prototype.Eb;Y.prototype.setUrl=Y.prototype.dc;Y.prototype.setUrls=Y.prototype.Rc;Y.prototype.getTileGrid=Y.prototype.rd;Y.prototype.refresh=Y.prototype.kb;Y.prototype.getAttributions=Y.prototype.yb;Y.prototype.getLogo=Y.prototype.rb;
|
|
486
|
-
Y.prototype.getProjection=Y.prototype.ja;Y.prototype.getState=Y.prototype.J;Y.prototype.setAttributions=Y.prototype.lb;Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.ba;Y.prototype.getProperties=Y.prototype.U;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.O;Y.prototype.unset=Y.prototype.da;Y.prototype.changed=Y.prototype.s;Y.prototype.dispatchEvent=Y.prototype.c;Y.prototype.getRevision=Y.prototype.V;Y.prototype.on=Y.prototype.X;Y.prototype.once=Y.prototype.Y;
|
|
487
|
-
Y.prototype.un=Y.prototype.Z;Y.prototype.unByKey=Y.prototype.$;Y.prototype.setRenderReprojectionEdges=Y.prototype.Md;Y.prototype.setTileGridForProjection=Y.prototype.Od;Y.prototype.getTileLoadFunction=Y.prototype.sd;Y.prototype.getTileUrlFunction=Y.prototype.td;Y.prototype.getUrls=Y.prototype.ud;Y.prototype.setTileLoadFunction=Y.prototype.Pd;Y.prototype.setTileUrlFunction=Y.prototype.Eb;Y.prototype.setUrl=Y.prototype.dc;Y.prototype.setUrls=Y.prototype.Rc;Y.prototype.getTileGrid=Y.prototype.rd;
|
|
488
|
-
Y.prototype.refresh=Y.prototype.kb;Y.prototype.getAttributions=Y.prototype.yb;Y.prototype.getLogo=Y.prototype.rb;Y.prototype.getProjection=Y.prototype.ja;Y.prototype.getState=Y.prototype.J;Y.prototype.setAttributions=Y.prototype.lb;Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.ba;Y.prototype.getProperties=Y.prototype.U;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.O;Y.prototype.unset=Y.prototype.da;Y.prototype.changed=Y.prototype.s;
|
|
489
|
-
Y.prototype.dispatchEvent=Y.prototype.c;Y.prototype.getRevision=Y.prototype.V;Y.prototype.on=Y.prototype.X;Y.prototype.once=Y.prototype.Y;Y.prototype.un=Y.prototype.Z;Y.prototype.unByKey=Y.prototype.$;r("ol.style.AtlasManager",om);r("ol.style.Circle",kh);kh.prototype.clone=kh.prototype.clone;kh.prototype.getFill=kh.prototype.Ph;kh.prototype.getImage=kh.prototype.ab;kh.prototype.getRadius=kh.prototype.Qh;kh.prototype.getStroke=kh.prototype.Rh;kh.prototype.setRadius=kh.prototype.Sh;
|
|
490
|
-
r("ol.style.Fill",oh);oh.prototype.clone=oh.prototype.clone;oh.prototype.getColor=oh.prototype.a;oh.prototype.setColor=oh.prototype.b;r("ol.style.Icon",bk);bk.prototype.clone=bk.prototype.clone;bk.prototype.getAnchor=bk.prototype.pb;bk.prototype.getImage=bk.prototype.ab;bk.prototype.getOrigin=bk.prototype.zb;bk.prototype.getSrc=bk.prototype.Th;bk.prototype.getSize=bk.prototype.bb;bk.prototype.load=bk.prototype.load;r("ol.style.Image",jh);jh.prototype.getOpacity=jh.prototype.Ec;
|
|
491
|
-
jh.prototype.getRotateWithView=jh.prototype.Fc;jh.prototype.getRotation=jh.prototype.Gc;jh.prototype.getScale=jh.prototype.Hc;jh.prototype.getSnapToPixel=jh.prototype.qc;jh.prototype.setOpacity=jh.prototype.Ab;jh.prototype.setRotation=jh.prototype.Ic;jh.prototype.setScale=jh.prototype.Bb;r("ol.style.RegularShape",qm);qm.prototype.clone=qm.prototype.clone;qm.prototype.getAnchor=qm.prototype.pb;qm.prototype.getAngle=qm.prototype.Uh;qm.prototype.getFill=qm.prototype.Vh;qm.prototype.getImage=qm.prototype.ab;
|
|
492
|
-
qm.prototype.getOrigin=qm.prototype.zb;qm.prototype.getPoints=qm.prototype.Wh;qm.prototype.getRadius=qm.prototype.Xh;qm.prototype.getRadius2=qm.prototype.ng;qm.prototype.getSize=qm.prototype.bb;qm.prototype.getStroke=qm.prototype.Yh;r("ol.style.Stroke",ph);ph.prototype.clone=ph.prototype.clone;ph.prototype.getColor=ph.prototype.Zh;ph.prototype.getLineCap=ph.prototype.bg;ph.prototype.getLineDash=ph.prototype.$h;ph.prototype.getLineJoin=ph.prototype.cg;ph.prototype.getMiterLimit=ph.prototype.fg;
|
|
493
|
-
ph.prototype.getWidth=ph.prototype.ai;ph.prototype.setColor=ph.prototype.bi;ph.prototype.setLineCap=ph.prototype.Xi;ph.prototype.setLineDash=ph.prototype.setLineDash;ph.prototype.setLineJoin=ph.prototype.Yi;ph.prototype.setMiterLimit=ph.prototype.Zi;ph.prototype.setWidth=ph.prototype.gj;r("ol.style.Style",qh);qh.prototype.clone=qh.prototype.clone;qh.prototype.getGeometry=qh.prototype.K;qh.prototype.getGeometryFunction=qh.prototype.Xf;qh.prototype.getFill=qh.prototype.ci;qh.prototype.getImage=qh.prototype.di;
|
|
494
|
-
qh.prototype.getStroke=qh.prototype.ei;qh.prototype.getText=qh.prototype.fi;qh.prototype.getZIndex=qh.prototype.gi;qh.prototype.setGeometry=qh.prototype.Ye;qh.prototype.setZIndex=qh.prototype.hi;r("ol.style.Text",hk);hk.prototype.clone=hk.prototype.clone;hk.prototype.getFont=hk.prototype.Wf;hk.prototype.getOffsetX=hk.prototype.gg;hk.prototype.getOffsetY=hk.prototype.hg;hk.prototype.getFill=hk.prototype.ii;hk.prototype.getRotateWithView=hk.prototype.ji;hk.prototype.getRotation=hk.prototype.ki;
|
|
495
|
-
hk.prototype.getScale=hk.prototype.li;hk.prototype.getStroke=hk.prototype.mi;hk.prototype.getText=hk.prototype.ni;hk.prototype.getTextAlign=hk.prototype.og;hk.prototype.getTextBaseline=hk.prototype.pg;hk.prototype.setFont=hk.prototype.Ti;hk.prototype.setOffsetX=hk.prototype.$i;hk.prototype.setOffsetY=hk.prototype.aj;hk.prototype.setFill=hk.prototype.Si;hk.prototype.setRotation=hk.prototype.oi;hk.prototype.setScale=hk.prototype.pi;hk.prototype.setStroke=hk.prototype.bj;hk.prototype.setText=hk.prototype.cj;
|
|
496
|
-
hk.prototype.setTextAlign=hk.prototype.dj;hk.prototype.setTextBaseline=hk.prototype.ej;kh.prototype.getOpacity=kh.prototype.Ec;kh.prototype.getRotateWithView=kh.prototype.Fc;kh.prototype.getRotation=kh.prototype.Gc;kh.prototype.getScale=kh.prototype.Hc;kh.prototype.getSnapToPixel=kh.prototype.qc;kh.prototype.setOpacity=kh.prototype.Ab;kh.prototype.setRotation=kh.prototype.Ic;kh.prototype.setScale=kh.prototype.Bb;bk.prototype.getOpacity=bk.prototype.Ec;bk.prototype.getRotateWithView=bk.prototype.Fc;
|
|
497
|
-
bk.prototype.getRotation=bk.prototype.Gc;bk.prototype.getScale=bk.prototype.Hc;bk.prototype.getSnapToPixel=bk.prototype.qc;bk.prototype.setOpacity=bk.prototype.Ab;bk.prototype.setRotation=bk.prototype.Ic;bk.prototype.setScale=bk.prototype.Bb;qm.prototype.getOpacity=qm.prototype.Ec;qm.prototype.getRotateWithView=qm.prototype.Fc;qm.prototype.getRotation=qm.prototype.Gc;qm.prototype.getScale=qm.prototype.Hc;qm.prototype.getSnapToPixel=qm.prototype.qc;qm.prototype.setOpacity=qm.prototype.Ab;
|
|
498
|
-
qm.prototype.setRotation=qm.prototype.Ic;qm.prototype.setScale=qm.prototype.Bb;r("ol.tilegrid.createXYZ",Kd);r("ol.tilegrid.TileGrid",yd);yd.prototype.forEachTileCoord=yd.prototype.le;yd.prototype.getMaxZoom=yd.prototype.ye;yd.prototype.getMinZoom=yd.prototype.ze;yd.prototype.getOrigin=yd.prototype.bc;yd.prototype.getResolution=yd.prototype.T;yd.prototype.getResolutions=yd.prototype.Ze;yd.prototype.getTileCoordExtent=yd.prototype.Wa;yd.prototype.getTileCoordForCoordAndResolution=yd.prototype.Ee;
|
|
499
|
-
yd.prototype.getTileCoordForCoordAndZ=yd.prototype.rc;yd.prototype.getTileSize=yd.prototype.gb;yd.prototype.getZForResolution=yd.prototype.Vb;r("ol.tilegrid.WMTS",lm);lm.prototype.getMatrixIds=lm.prototype.B;
|
|
500
|
-
r("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",function(a,b){var c=[],d=[],e=[],f=[],g=[],h;h=cc(a.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var l=h.fb(),m="ne"==h.h.substr(0,2);a.TileMatrix.sort(function(a,b){return b.ScaleDenominator-a.ScaleDenominator});a.TileMatrix.forEach(function(a){d.push(a.Identifier);var b=2.8E-4*a.ScaleDenominator/l,h=a.TileWidth,u=a.TileHeight;m?e.push([a.TopLeftCorner[1],a.TopLeftCorner[0]]):e.push(a.TopLeftCorner);c.push(b);f.push(h==u?
|
|
501
|
-
h:[h,u]);g.push([a.MatrixWidth,-a.MatrixHeight])});return new lm({extent:b,origins:e,resolutions:c,matrixIds:d,tileSizes:f,sizes:g})});lm.prototype.forEachTileCoord=lm.prototype.le;lm.prototype.getMaxZoom=lm.prototype.ye;lm.prototype.getMinZoom=lm.prototype.ze;lm.prototype.getOrigin=lm.prototype.bc;lm.prototype.getResolution=lm.prototype.T;lm.prototype.getResolutions=lm.prototype.Ze;lm.prototype.getTileCoordExtent=lm.prototype.Wa;lm.prototype.getTileCoordForCoordAndResolution=lm.prototype.Ee;
|
|
502
|
-
lm.prototype.getTileCoordForCoordAndZ=lm.prototype.rc;lm.prototype.getTileSize=lm.prototype.gb;lm.prototype.getZForResolution=lm.prototype.Vb;
|
|
503
|
-
return OPENLAYERS.ol;
|
|
504
|
-
}));
|
|
505
|
-
|