@planet/maps 7.1.1-alpha-heat → 8.0.0-dev.1666714337006
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 +53 -34
- package/renderer/render.js +304 -0
- package/renderer/update.js +98 -0
- package/.npmignore +0 -2
- package/common.js +0 -589
- package/debug.js +0 -92555
- package/embed.js +0 -431
- package/explorer.js +0 -92555
- package/ol.css +0 -241
package/embed.js
DELETED
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
// OpenLayers 3. See https://openlayers.org/
|
|
2
|
-
// License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md
|
|
3
|
-
// Version: v7.1.0-1-gf3b4e0a
|
|
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 l,ca=this;function q(a,b){var c=a.split("."),d=OPENLAYERS||ca;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 u(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function fa(){}function ga(a){return a.Ef||(a.Ef=++ha)}var ha=0;function ja(a){this.message="Assertion failed. See https://openlayers.org/en/v7.1.0/doc/errors/#"+a+" for details.";this.code=a;this.name="AssertionError"}u(ja,Error);function v(a,b){if(!a)throw new ja(b);};function la(a,b,c){return Math.min(Math.max(a,b),c)}var na=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function oa(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function pa(a,b){var c=a%b;return 0>c*b?c+b:c}function qa(a,b,c){return a+c*(b-a)};function ra(a){return function(b){if(b)return[la(b[0],a[0],a[2]),la(b[1],a[1],a[3])]}}function ta(a){return a};function ua(a,b,c){this.center=a;this.resolution=b;this.rotation=c};var va="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){for(var b in a)return!1;return!b};function ya(a){function b(b){var d=a.listener,e=a.yc||a.target;a.Bc&&za(a);return d.call(e,b)}return a.zc=b}function Aa(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.yc===c)return d&&(e.deleteIndex=f),e}function Ba(a,b){var c=a.ta;return c?c[b]:void 0}function Ca(a){var b=a.ta;b||(b=a.ta={});return b}
|
|
15
|
-
function Ea(a,b){var c=Ba(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].zc),wa(c[d]);c.length=0;if(c=a.ta)delete c[b],0===Object.keys(c).length&&delete a.ta}}function x(a,b,c,d,e){var f=Ca(a),g=f[b];g||(g=f[b]=[]);(f=Aa(g,c,d,!1))?e||(f.Bc=!1):(f={yc:d,Bc:!!e,listener:c,target:a,type:b},a.addEventListener(b,ya(f)),g.push(f));return f}function Fa(a,b,c,d){(a=Ba(a,b))&&(c=Aa(a,c,d,!0))&&za(c)}
|
|
16
|
-
function za(a){if(a&&a.target){a.target.removeEventListener(a.type,a.zc);var b=Ba(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&&Ea(a.target,a.type)}wa(a)}};function Ga(){}Ga.prototype.cb=!1;function Ha(a){a.cb||(a.cb=!0,a.$())}Ga.prototype.$=fa;function Ia(a){this.type=a;this.target=null}Ia.prototype.preventDefault=Ia.prototype.stopPropagation=function(){this.Mf=!0};function Ja(a){a.stopPropagation()};function Ka(){this.na={};this.da={};this.P={}}u(Ka,Ga);Ka.prototype.addEventListener=function(a,b){var c=this.P[a];c||(c=this.P[a]=[]);-1===c.indexOf(b)&&c.push(b)};
|
|
17
|
-
Ka.prototype.c=function(a){var b="string"===typeof a?new Ia(a):a;a=b.type;b.target=this;var c=this.P[a],d;if(c){a in this.da||(this.da[a]=0,this.na[a]=0);++this.da[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.Mf){d=!1;break}--this.da[a];if(0===this.da[a]){b=this.na[a];for(delete this.na[a];b--;)this.removeEventListener(a,fa);delete this.da[a]}return d}};Ka.prototype.$=function(){var a=Ca(this),b;for(b in a)Ea(this,b)};
|
|
18
|
-
function La(a,b){return b?b in a.P:0<Object.keys(a.P).length}Ka.prototype.removeEventListener=function(a,b){var c=this.P[a];if(c){var d=c.indexOf(b);console.assert(-1!=d,"listener not found");a in this.na?(c[d]=fa,++this.na[a]):(c.splice(d,1),0===c.length&&delete this.P[a])}};function Ma(){Ka.call(this);this.i=0}u(Ma,Ka);l=Ma.prototype;l.s=function(){++this.i;this.c("change")};l.aa=function(){return this.i};l.ba=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)};l.ca=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
|
-
l.ea=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)Fa(this,a[d],b,c);else Fa(this,a,b,c)};l.fa=function(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)za(a[b]);else za(a)};function Na(a){Ma.call(this);ga(this);this.u={};void 0!==a&&this.O(a)}u(Na,Ma);var Oa={};function Pa(a){return Oa.hasOwnProperty(a)?Oa[a]:Oa[a]="change:"+a}l=Na.prototype;l.get=function(a){var b;this.u.hasOwnProperty(a)&&(b=this.u[a]);return b};l.ia=function(){return Object.keys(this.u)};l.X=function(){return va({},this.u)};function Qa(a,b,c){var d;d=Pa(b);a.c(new Ra(d,b,c));d=Sa;a.c(new Ra(d,b,c))}l.set=function(a,b,c){c?this.u[a]=b:(c=this.u[a],this.u[a]=b,c!==b&&Qa(this,a,c))};
|
|
20
|
-
l.O=function(a,b){for(var c in a)this.set(c,a[c],b)};l.ja=function(a,b){if(a in this.u){var c=this.u[a];delete this.u[a];b||Qa(this,a,c)}};var Sa="propertychange";function Ra(a,b,c){Ia.call(this,a);this.key=b;this.oldValue=c}u(Ra,Ia);function Ta(a,b){return a>b?1:a<b?-1:0}function Ua(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 Va(a,b){var c,d=Array.isArray(b)?b:[b],e=d.length;for(c=0;c<e;c++)a[a.length]=d[c]}
|
|
21
|
-
function Wa(a){var b=Xa,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 Ya(a,b){var c=b||Ta;return a.every(function(b,e){if(0===e)return!0;var f=c(a[e-1],b);return!(0<f||0===f)})};function Za(a){return function(b,c,d){if(void 0!==b)return b=Ua(a,b,d),b=la(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 $a(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 ab(a){if(void 0!==a)return 0}function bb(a,b){if(void 0!==a)return a+b}function cb(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 db(){var a=5*Math.PI/180;return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function eb(a){a=""+a;var b=a.indexOf("."),b=-1===b?a.length:b;return 2<b?a:Array(3-b).join("0")+a};function fb(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 gb(a){return 1-Math.pow(1-a,3)}function hb(a){return 3*a*a-2*a*a*a}function ib(a){return a};function jb(a){for(var b=kb(),c=0,d=a.length;c<d;++c)lb(b,a[c]);return b}function mb(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 nb(a,b){return ob(a,b[0],b[1])}function pb(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function ob(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function qb(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}
|
|
22
|
-
function kb(){return[Infinity,Infinity,-Infinity,-Infinity]}function rb(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 sb(a){return rb(Infinity,Infinity,-Infinity,-Infinity,a)}function tb(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function ub(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 lb(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])}
|
|
23
|
-
function vb(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}function wb(a,b,c){var d;return(d=b.call(c,xb(a)))||(d=b.call(c,yb(a)))||(d=b.call(c,zb(a)))?d:(d=b.call(c,Ab(a)))?d:!1}function Bb(a){var b=0;Cb(a)||(b=Db(a)*Eb(a));return b}function xb(a){return[a[0],a[1]]}function yb(a){return[a[2],a[1]]}function Fb(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
|
|
24
|
-
function Gb(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,k=a[0],n=a[1];a=k-c+h;d=k-c-h;g=k+c-h;c=k+c+h;var h=n-f-b,k=n-f+b,m=n+f+b,f=n+f-b;return rb(Math.min(a,d,g,c),Math.min(h,k,m,f),Math.max(a,d,g,c),Math.max(h,k,m,f),e)}function Eb(a){return a[3]-a[1]}function Hb(a,b,c){c=c?c:kb();Ib(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 Ab(a){return[a[0],a[3]]}
|
|
25
|
-
function zb(a){return[a[2],a[3]]}function Db(a){return a[2]-a[0]}function Ib(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Cb(a){return a[2]<a[0]||a[3]<a[1]}
|
|
26
|
-
function Jb(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]];console.assert(0<d.length,"xs length should be larger than 0");console.assert(0<e.length,"ys length should be larger than 0");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 rb(b,a,d,e,c)};function Kb(){return!0}function Lb(){return!1};/*
|
|
27
|
-
|
|
28
|
-
Latitude/longitude spherical geodesy formulae taken from
|
|
29
|
-
http://www.movable-type.co.uk/scripts/latlong.html
|
|
30
|
-
Licensed under CC-BY-3.0.
|
|
31
|
-
*/
|
|
32
|
-
function Mb(a){this.radius=a}function Nb(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*Ob.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
|
|
33
|
-
Mb.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 Ob=new Mb(6370997);var Pb={};Pb.degrees=2*Math.PI*Ob.radius/360;Pb.ft=.3048;Pb.m=1;Pb["us-ft"]=1200/3937;function Qb(a){this.a=a.code;this.i=a.units;this.f=void 0!==a.extent?a.extent:null;this.l=void 0!==a.worldExtent?a.worldExtent:null;this.c=void 0!==a.global?a.global:!1;this.b=!(!this.c||!this.f);this.j=a.getPointResolution;this.u=null;this.P=a.metersPerUnit;console.assert(void 0!==a.code,'Option "code" is required for constructing instance')}l=Qb.prototype;l.ce=function(){return this.a};l.B=function(){return this.f};l.qe=function(){return this.i};l.Ua=function(){return this.P||Pb[this.i]};l.se=function(){return this.l};
|
|
34
|
-
l.Je=function(){return this.c};l.bg=function(a){this.c=a;this.b=!(!a||!this.f)};l.Bf=function(a){this.f=a;this.b=!(!this.c||!a)};l.hg=function(a){this.l=a};l.ag=function(a){this.j=a};var Rb={};var Sb={};function Tb(a,b,c){a=a.a;b=b.a;a in Sb||(Sb[a]={});Sb[a][b]=c};function Ub(a,b,c){var d=a.j;d?b=d(b,c):"degrees"!=a.i&&(d=Vb(a,Wb("EPSG:4326")),b=[c[0]-b/2,c[1],c[0]+b/2,c[1],c[0],c[1]-b/2,c[0],c[1]+b/2],b=d(b,b,2),b=(Nb(b.slice(0,2),b.slice(2,4))+Nb(b.slice(4,6),b.slice(6,8)))/2,a=a.Ua(),void 0!==a&&(b/=a));return b}function Xb(a){Yb(a);a.forEach(function(b){a.forEach(function(a){b!==a&&Tb(b,a,Zb)})})}function $b(){var a=ac,b=bc,c=cc;dc.forEach(function(d){a.forEach(function(a){Tb(d,a,b);Tb(a,d,c)})})}function ec(a){Rb[a.a]=a;Tb(a,a,Zb)}
|
|
35
|
-
function Yb(a){var b=[];a.forEach(function(a){b.push(ec(a))})}function fc(a){return a?"string"===typeof a?Wb(a):a:Wb("EPSG:3857")}function gc(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 Wb(a){var b=null;a instanceof Qb?b=a:"string"===typeof a&&(b=Rb[a]||null);return b}
|
|
36
|
-
function hc(a,b){if(a===b)return!0;var c=a.i===b.i;return a.a===b.a?c:Vb(a,b)===Zb&&c}function ic(a,b){var c=Wb(a),d=Wb(b);return Vb(c,d)}function Vb(a,b){var c;c=a.a;var d=b.a,e;c in Sb&&d in Sb[c]&&(e=Sb[c][d]);c=e;c||(console.assert(c,"transform should be defined"),c=jc);return c}function jc(a,b){if(void 0!==b&&a!==b){console.assert(!1,"This should not be used internally.");for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
|
|
37
|
-
function Zb(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 kc(a,b,c){return ic(b,c)(a,void 0,a.length)}function nc(a,b,c){b=ic(b,c);return Jb(a,b)};function y(){Na.call(this);this.A=kb();this.H=-1;this.j={};this.v=this.l=0}u(y,Na);l=y.prototype;l.ua=function(a,b){var c=b?b:[NaN,NaN];this.za(a[0],a[1],c,Infinity);return c};l.ra=function(a){return this.Na(a[0],a[1])};l.Na=Lb;l.B=function(a){this.H!=this.i&&(this.A=this.vb(this.A),this.H=this.i);var b=this.A;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};l.xa=function(a){return this.Tb(a*a)};
|
|
38
|
-
l.sa=function(a,b){console.assert("tile-pixels"!==Wb(a).i&&"tile-pixels"!==Wb(b).i,"cannot transform geometries with TILE_PIXELS units");this.Ra(ic(a,b));return this};function oc(a,b,c,d,e,f){for(var g=f?f:[],h=0;b<c;b+=d){var k=a[b],n=a[b+1];g[h++]=e[0]*k+e[2]*n+e[4];g[h++]=e[1]*k+e[3]*n+e[5]}f&&g.length!=h&&(g.length=h);return g};function A(){y.call(this);this.C="XY";this.a=2;this.g=null}u(A,y);function pc(a){var b;"XY"==a?b=2:"XYZ"==a||"XYM"==a?b=3:"XYZM"==a&&(b=4);console.assert(b,"unsupported layout: "+a);return b}l=A.prototype;l.Na=Lb;l.vb=function(a){var b=this.g,c=this.g.length,d=this.a;a=sb(a);return vb(a,b,0,c,d)};l.Da=function(){return this.g.slice(0,this.a)};l.Ea=function(){return this.g.slice(this.g.length-this.a)};l.Fa=function(){return this.C};
|
|
39
|
-
l.Tb=function(a){this.v!=this.i&&(wa(this.j),this.l=0,this.v=this.i);if(0>a||0!==this.l&&a<=this.l)return this;var b=a.toString();if(this.j.hasOwnProperty(b))return this.j[b];var c=this.Va(a);if(c.g.length<this.g.length)return this.j[b]=c;this.l=a;return this};l.Va=function(){return this};function qc(a,b,c){a.a=pc(b);a.C=b;a.g=c}
|
|
40
|
-
function rc(a,b,c,d){if(b)c=pc(b);else{for(b=0;b<d;++b){if(0===c.length){a.C="XY";a.a=2;return}c=c[0]}c=c.length;var e;2==c?e="XY":3==c?e="XYZ":4==c&&(e="XYZM");console.assert(e,"unsupported stride: "+c);b=e}a.C=b;a.a=c}l.Ra=function(a){this.g&&(a(this.g,this.g,this.a),this.s())};
|
|
41
|
-
l.rotate=function(a,b){var c=this.g;if(c){for(var d=c.length,e=this.a,f=c?c:[],g=Math.cos(a),h=Math.sin(a),k=b[0],n=b[1],m=0,p=0;p<d;p+=e){var r=c[p]-k,w=c[p+1]-n;f[m++]=k+r*g-w*h;f[m++]=n+r*h+w*g;for(r=p+2;r<p+e;++r)f[m++]=c[r]}c&&f.length!=m&&(f.length=m);this.s()}};
|
|
42
|
-
l.scale=function(a,b,c){var d=b;void 0===d&&(d=a);var e=c;e||(e=Fb(this.B()));if(c=this.g){b=c.length;for(var f=this.a,g=c?c:[],h=e[0],e=e[1],k=0,n=0;n<b;n+=f){var m=c[n]-h,p=c[n+1]-e;g[k++]=h+a*m;g[k++]=e+d*p;for(m=n+2;m<n+f;++m)g[k++]=c[m]}c&&g.length!=k&&(g.length=k);this.s()}};l.translate=function(a,b){var c=this.g;if(c){var d=c.length,e=this.a,f=c?c:[],g=0,h,k;for(h=0;h<d;h+=e)for(f[g++]=c[h]+a,f[g++]=c[h+1]+b,k=h+2;k<h+e;++k)f[g++]=c[k];c&&f.length!=g&&(f.length=g);this.s()}};function sc(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],k=a[b+1],e=e+(g*h-f*k),f=h,g=k;return e/2}function tc(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+sc(a,b,h,d);b=h}return e};function uc(a,b,c,d,e,f,g){var h=a[b],k=a[b+1],n=a[c]-h,m=a[c+1]-k;if(0!==n||0!==m)if(f=((e-h)*n+(f-k)*m)/(n*n+m*m),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=qa(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 vc(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],k=a[b+1],f=oa(f,g,h,k);f>e&&(e=f);f=h;g=k}return e}function wc(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=vc(a,b,h,d,e);b=h}return e}
|
|
43
|
-
function xc(a,b,c,d,e,f,g,h,k,n,m){if(b==c)return n;var p;if(0===e){p=oa(g,h,a[b],a[b+1]);if(p<n){for(m=0;m<d;++m)k[m]=a[b+m];k.length=d;return p}return n}console.assert(0<e,"maxDelta should be larger than 0");for(var r=m?m:[NaN,NaN],w=b+d;w<c;)if(uc(a,w-d,w,d,g,h,r),p=oa(g,h,r[0],r[1]),p<n){n=p;for(m=0;m<d;++m)k[m]=r[m];k.length=d;w+=d}else w+=d*Math.max((Math.sqrt(p)-Math.sqrt(n))/e|0,1);if(f&&(uc(a,c-d,b,d,g,h,r),p=oa(g,h,r[0],r[1]),p<n)){n=p;for(m=0;m<d;++m)k[m]=r[m];k.length=d}return n}
|
|
44
|
-
function yc(a,b,c,d,e,f,g,h,k,n,m){m=m?m:[NaN,NaN];var p,r;p=0;for(r=c.length;p<r;++p){var w=c[p];n=xc(a,b,w,d,e,f,g,h,k,n,m);b=w}return n};function zc(a,b,c){var d=0;console.assert(b.length==c,"length of the coordinate array should match stride");var e;c=0;for(e=b.length;c<e;++c)a[d++]=b[c];return d}function Ac(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e];console.assert(g.length==d,"length of coordinate array should match stride");var h;for(h=0;h<d;++h)a[b++]=g[h]}return b}function Bc(a,b,c,d,e){e=e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=Ac(a,b,c[g],d),e[f++]=b;e.length=f;return e};function Cc(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 Dc(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 k=c[g];e[f++]=Cc(a,b,k,d,e[f]);b=k}e.length=f;return e};function Ec(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 k=Array(h);k[0]=1;k[h-1]=1;c=[b,c-d];for(var n=0,m;0<c.length;){var p=c.pop(),r=c.pop(),w=0,t=a[r],z=a[r+1],J=a[p],W=a[p+1];for(m=r+d;m<p;m+=d){var ea;ea=a[m];var Y=a[m+1],ia=t,aa=z,da=J-ia,U=W-aa;if(0!==da||0!==U){var Z=((ea-ia)*da+(Y-aa)*U)/(da*da+U*U);1<Z?(ia=J,aa=W):0<Z&&(ia+=da*Z,aa+=U*Z)}ea=oa(ea,Y,ia,aa);ea>w&&(n=m,w=ea)}w>e&&(k[(n-b)/d]=1,r+d<n&&c.push(r,n),n+d<p&&c.push(n,p))}for(m=0;m<h;++m)k[m]&&
|
|
45
|
-
(f[g++]=a[b+m*d],f[g++]=a[b+m*d+1]);return g}
|
|
46
|
-
function Fc(a,b,c,d,e,f,g,h){var k,n;k=0;for(n=c.length;k<n;++k){var m=c[k];a:{var p=a,r=m,w=d,t=e,z=f;if(b!=r){var J=t*Math.round(p[b]/t),W=t*Math.round(p[b+1]/t);b+=w;z[g++]=J;z[g++]=W;var ea,Y;do if(ea=t*Math.round(p[b]/t),Y=t*Math.round(p[b+1]/t),b+=w,b==r){z[g++]=ea;z[g++]=Y;break a}while(ea==J&&Y==W);for(;b<r;){var ia,aa;ia=t*Math.round(p[b]/t);aa=t*Math.round(p[b+1]/t);b+=w;if(ia!=ea||aa!=Y){var da=ea-J,U=Y-W,Z=ia-J,ba=aa-W;da*ba==U*Z&&(0>da&&Z<da||da==Z||0<da&&Z>da)&&(0>U&&ba<U||U==ba||0<
|
|
47
|
-
U&&ba>U)||(z[g++]=ea,z[g++]=Y,J=ea,W=Y);ea=ia;Y=aa}}z[g++]=ea;z[g++]=Y}}h.push(g);b=m}return g};function B(a,b){A.call(this);this.b=this.o=-1;this.Y(a,b)}u(B,A);l=B.prototype;l.clone=function(){var a=new B(null);qc(a,this.C,this.g.slice());a.s();return a};l.za=function(a,b,c,d){if(d<mb(this.B(),a,b))return d;this.b!=this.i&&(this.o=Math.sqrt(vc(this.g,0,this.g.length,this.a,0)),this.b=this.i);return xc(this.g,0,this.g.length,this.a,this.o,!0,a,b,c,d)};l.sf=function(){return sc(this.g,0,this.g.length,this.a)};l.ga=function(){return Cc(this.g,0,this.g.length,this.a)};
|
|
48
|
-
l.Va=function(a){var b=[];b.length=Ec(this.g,0,this.g.length,this.a,a,b,0);a=new B(null);qc(a,"XY",b);a.s();return a};l.T=function(){return"LinearRing"};l.Y=function(a,b){a?(rc(this,b,a,1),this.g||(this.g=[]),this.g.length=Ac(this.g,0,a,this.a)):qc(this,"XY",null);this.s()};function C(a,b){A.call(this);this.Y(a,b)}u(C,A);l=C.prototype;l.clone=function(){var a=new C(null);a.G(this.C,this.g.slice());return a};l.za=function(a,b,c,d){var e=this.g;a=oa(a,b,e[0],e[1]);if(a<d){d=this.a;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};l.ga=function(){return this.g?this.g.slice():[]};l.vb=function(a){var b=this.g,c=b[0],b=b[1];return rb(c,b,c,b,a)};l.T=function(){return"Point"};l.ha=function(a){return ob(a,this.g[0],this.g[1])};
|
|
49
|
-
l.Y=function(a,b){a?(rc(this,b,a,0),this.g||(this.g=[]),this.g.length=zc(this.g,a,this.a),this.s()):this.G("XY",null)};l.G=function(a,b){qc(this,a,b);this.s()};function Gc(a,b,c,d,e){return!wb(e,function(e){return!Hc(a,b,c,d,e[0],e[1])})}function Hc(a,b,c,d,e,f){for(var g=0,h=a[c-d],k=a[c-d+1];b<c;b+=d){var n=a[b],m=a[b+1];k<=f?m>f&&0<(n-h)*(f-k)-(e-h)*(m-k)&&g++:m<=f&&0>(n-h)*(f-k)-(e-h)*(m-k)&&g--;h=n;k=m}return 0!==g}function Ic(a,b,c,d,e,f){console.assert(0<c.length,"ends should not be an empty array");if(0===c.length||!Hc(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(Hc(a,c[b-1],c[b],d,e,f))return!1;return!0};function Jc(a,b,c,d,e,f,g){var h,k,n,m,p,r=e[f+1],w=[],t=c[0];n=a[t-d];p=a[t-d+1];for(h=b;h<t;h+=d){m=a[h];k=a[h+1];if(r<=p&&k<=r||p<=r&&r<=k)n=(r-p)/(k-p)*(m-n)+n,w.push(n);n=m;p=k}t=NaN;p=-Infinity;w.sort(Ta);n=w[0];h=1;for(k=w.length;h<k;++h){m=w[h];var z=Math.abs(m-n);z>p&&(n=(n+m)/2,Ic(a,b,c,d,n,r)&&(t=n,p=z));n=m}isNaN(t)&&(t=e[f]);return g?(g.push(t,r),g):[t,r]};function Kc(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],k;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(k=e.call(f,g,h))return k;g[0]=h[0];g[1]=h[1]}return!1};function Lc(a,b,c,d,e){var f=vb(kb(),a,b,c,d);return Ib(e,f)?pb(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:Kc(a,b,c,d,function(a,b){var c=!1,d=qb(e,a),f=qb(e,b);if(1===d||1===f)c=!0;else{var p=e[0],r=e[1],w=e[2],t=e[3],z=b[0],J=b[1],W=(J-a[1])/(z-a[0]);f&2&&!(d&2)&&(c=z-(J-t)/W,c=c>=p&&c<=w);c||!(f&4)||d&4||(c=J-(z-w)*W,c=c>=r&&c<=t);c||!(f&8)||d&8||(c=z-(J-r)/W,c=c>=p&&c<=w);c||!(f&16)||d&16||(c=J-(z-p)*W,c=c>=r&&c<=t)}return c}):!1}
|
|
50
|
-
function Mc(a,b,c,d,e){console.assert(0<c.length,"ends should not be an empty array");var f=c[0];if(!(Lc(a,b,f,d,e)||Hc(a,b,f,d,e[0],e[1])||Hc(a,b,f,d,e[0],e[3])||Hc(a,b,f,d,e[2],e[1])||Hc(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(Gc(a,c[b-1],c[b],d,e))return!1;return!0};function Nc(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],k=a[b+1],e=e+(h-f)*(k+g),f=h,g=k;return 0<e}function Oc(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=Nc(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}
|
|
51
|
-
function Pc(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],k=Nc(a,b,h,d);if(0===f?e&&k||!e&&!k:e&&!k||!e&&k)for(var k=a,n=h,m=d;b<n-m;){var p;for(p=0;p<m;++p){var r=k[b+p];k[b+p]=k[n-m+p];k[n-m+p]=r}b+=m;n-=m}b=h}return b}function Qc(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=Pc(a,e,b[f],c,d);return e};function D(a,b){A.call(this);this.b=[];this.F=-1;this.N=null;this.S=this.R=this.W=-1;this.o=null;this.Y(a,b)}u(D,A);l=D.prototype;l.Od=function(a){console.assert(a.C==this.C,"layout of linearRing should match layout");this.g?Va(this.g,a.g):this.g=a.g.slice();this.b.push(this.g.length);this.s()};l.clone=function(){var a=new D(null);a.G(this.C,this.g.slice(),this.b.slice());return a};
|
|
52
|
-
l.za=function(a,b,c,d){if(d<mb(this.B(),a,b))return d;this.R!=this.i&&(this.W=Math.sqrt(wc(this.g,0,this.b,this.a,0)),this.R=this.i);return yc(this.g,0,this.b,this.a,this.W,!0,a,b,c,d)};l.Na=function(a,b){return Ic(Rc(this),0,this.b,this.a,a,b)};l.vf=function(){return tc(Rc(this),0,this.b,this.a)};l.ga=function(a){var b;void 0!==a?(b=Rc(this).slice(),Pc(b,0,this.b,this.a,a)):b=this.g;return Dc(b,0,this.b,this.a)};l.Ka=function(){return this.b};
|
|
53
|
-
function Sc(a){if(a.F!=a.i){var b=Fb(a.B());a.N=Jc(Rc(a),0,a.b,a.a,b,0);a.F=a.i}return a.N}l.ge=function(){return new C(Sc(this))};l.ke=function(){return this.b.length};l.je=function(a){console.assert(0<=a&&a<this.b.length,"index should be in between 0 and and length of this.ends_");if(0>a||this.b.length<=a)return null;var b=new B(null);qc(b,this.C,this.g.slice(0===a?0:this.b[a-1],this.b[a]));b.s();return b};
|
|
54
|
-
l.Gc=function(){var a=this.C,b=this.g,c=this.b,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],k=new B(null),n=k;qc(n,a,b.slice(e,h));n.s();d.push(k);e=h}return d};function Rc(a){if(a.S!=a.i){var b=a.g;Oc(b,a.b,a.a)?a.o=b:(a.o=b.slice(),a.o.length=Pc(a.o,0,a.b,a.a));a.S=a.i}return a.o}l.Va=function(a){var b=[],c=[];b.length=Fc(this.g,0,this.b,this.a,Math.sqrt(a),b,0,c);a=new D(null);a.G("XY",b,c);return a};l.T=function(){return"Polygon"};l.ha=function(a){return Mc(Rc(this),0,this.b,this.a,a)};
|
|
55
|
-
l.Y=function(a,b){if(a){rc(this,b,a,2);this.g||(this.g=[]);var c=Bc(this.g,0,a,this.a,this.b);this.g.length=0===c.length?0:c[c.length-1];this.s()}else this.G("XY",null,this.b)};l.G=function(a,b,c){b?0===c.length?console.assert(0===b.length,"flatCoordinates should be an empty array"):console.assert(b.length==c[c.length-1],"the length of flatCoordinates should be the last entry of ends"):console.assert(c&&0===c.length,"ends must be an empty array");qc(this,a,b);this.b=c;this.s()};
|
|
56
|
-
function Tc(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 D(null);c.G("XY",b,[b.length]);return c};function E(a){var b;Na.call(this);a=a||{};this.b=[0,0];this.a=[];this.Hb=this.Hb.bind(this);var c={};c[Uc]=void 0!==a.center?a.center:null;this.H=fc(a.projection);var d,e,f=void 0!==a.minZoom?a.minZoom:0;b=void 0!==a.maxZoom?a.maxZoom:28;var g=void 0!==a.zoomFactor?a.zoomFactor:2;if(void 0!==a.resolutions)b=a.resolutions,d=b[0],e=b[b.length-1],b=Za(b);else{d=fc(a.projection);e=d.B();var h=(e?Math.max(Db(e),Eb(e)):360*Pb.degrees/d.Ua())/256/Math.pow(2,0),k=h/Math.pow(2,28);d=a.maxResolution;void 0!==
|
|
57
|
-
d?f=0:d=h/Math.pow(g,f);e=a.minResolution;void 0===e&&(e=void 0!==a.maxZoom?void 0!==a.maxResolution?d/Math.pow(g,b):h/Math.pow(g,b):k);b=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,b-f);b=$a(g,d,b-f)}this.f=d;this.A=e;this.F=g;this.j=a.resolutions;this.l=f;f=void 0!==a.extent?ra(a.extent):ta;g=Vc(a);this.v=new ua(f,b,g);void 0!==a.resolution?c[Wc]=a.resolution:void 0!==a.zoom&&(c[Wc]=this.constrainResolution(this.f,a.zoom-this.l));c[Xc]=void 0!==a.rotation?a.rotation:0;this.O(c)}u(E,Na);
|
|
58
|
-
l=E.prototype;
|
|
59
|
-
l.animate=function(a){var b=Date.now(),c=this.wa().slice(),d=this.la(),e=this.ma(),f=arguments.length,g;1<f&&"function"===typeof arguments[f-1]&&(g=arguments[f-1],--f);for(var h=[],k=0;k<f;++k){var n=arguments[k],m={start:b,complete:!1,anchor:n.anchor,duration:void 0!==n.duration?n.duration:1E3,easing:n.easing||hb};n.center&&(m.ic=c,m.kc=n.center,c=m.kc);void 0!==n.zoom?(m.Fb=d,m.Gb=this.constrainResolution(this.f,n.zoom-this.l,0),d=m.Gb):n.resolution&&(m.Fb=d,m.Gb=n.resolution,d=m.Gb);void 0!==n.rotation&&
|
|
60
|
-
(m.jc=e,m.od=n.rotation,e=m.od);m.ub=g;b+=m.duration;h.push(m)}this.a.push(h);Yc(this,Zc,1);this.Hb()};function $c(a){Yc(a,Zc,-ad(a)[Zc]);for(var b=0,c=a.a.length;b<c;++b){var d=a.a[b];d[0].ub&&d[0].ub(!1)}a.a.length=0}
|
|
61
|
-
l.Hb=function(){void 0!==this.o&&(cancelAnimationFrame(this.o),this.o=void 0);if(0<ad(this)[Zc]){for(var a=Date.now(),b=!1,c=this.a.length-1;0<=c;--c){for(var d=this.a[c],e=!0,f=0,g=d.length;f<g;++f){var h=d[f];if(!h.complete){b=a-h.start;b=0<h.duration?b/h.duration:1;1<=b?(h.complete=!0,b=1):e=!1;b=h.easing(b);if(h.ic){var k=h.ic[0],n=h.ic[1];this.set(Uc,[k+b*(h.kc[0]-k),n+b*(h.kc[1]-n)])}h.Fb&&(k=h.Fb+b*(h.Gb-h.Fb),h.anchor&&this.set(Uc,bd(this,k,h.anchor)),this.set(Wc,k));void 0!==h.jc&&(b=h.jc+
|
|
62
|
-
b*(h.od-h.jc),h.anchor&&this.set(Uc,cd(this,b,h.anchor)),this.set(Xc,b));b=!0;if(!h.complete)break}}e&&(this.a[c]=null,Yc(this,Zc,-1),(d=d[0].ub)&&d(!0))}this.a=this.a.filter(Boolean);b&&void 0===this.o&&(this.o=requestAnimationFrame(this.Hb))}};function cd(a,b,c){var d,e=a.wa();void 0!==e&&(d=[e[0]-c[0],e[1]-c[1]],fb(d,b-a.ma()),a=d,a[0]+=c[0],a[1]+=c[1]);return d}function bd(a,b,c){var d,e=a.wa();a=a.la();void 0!==e&&void 0!==a&&(d=[c[0]-b*(c[0]-e[0])/a,c[1]-b*(c[1]-e[1])/a]);return d}l.wb=function(a){return this.v.center(a)};
|
|
63
|
-
l.constrainResolution=function(a,b,c){return this.v.resolution(a,b||0,c||0)};l.constrainRotation=function(a,b){return this.v.rotation(a,b||0)};l.wa=function(){return this.get(Uc)};function ad(a,b){return void 0!==b?(b[0]=a.b[0],b[1]=a.b[1],b):a.b.slice()}l.Ac=function(a){var b=this.wa();v(b,1);var c=this.la();v(void 0!==c,2);var d=this.ma();v(void 0!==d,3);return Gb(b,c,d,a)};l.jf=function(){return this.f};l.kf=function(){return this.A};l.lf=function(){return this.H};l.la=function(){return this.get(Wc)};
|
|
64
|
-
l.mf=function(){return this.j};function dd(a,b){return Math.max(Db(a)/b[0],Eb(a)/b[1])}l.ma=function(){return this.get(Xc)};l.V=function(){console.assert(ed(this),"the view was not defined (had no center and/or resolution)");var a=this.wa(),b=this.H,c=this.la(),d=this.ma();return{center:a.slice(),projection:void 0!==b?b:null,resolution:c,rotation:d}};
|
|
65
|
-
l.te=function(){var a,b=this.la();if(void 0!==b&&b>=this.A&&b<=this.f){a=this.l||0;var c,d;if(this.j){d=Ua(this.j,b,1);a+=d;if(d==this.j.length-1)return a;c=this.j[d];d=c/this.j[d+1]}else c=this.f,d=this.F;a+=Math.log(c/b)/Math.log(d)}return a};
|
|
66
|
-
l.$d=function(a,b,c){a instanceof A||(v(Array.isArray(a),24),v(!Cb(a),25),a=Tc(a));c=c||{};var d=void 0!==c.padding?c.padding:[0,0,0,0],e=void 0!==c.constrainResolution?c.constrainResolution:!0,f=void 0!==c.nearest?c.nearest:!1,g;void 0!==c.minResolution?g=c.minResolution:void 0!==c.maxZoom?g=this.constrainResolution(this.f,c.maxZoom-this.l,0):g=0;var h=a.g,k=this.ma();console.assert(void 0!==k,"rotation was not defined");var n=Math.cos(-k),k=Math.sin(-k),m=Infinity,p=Infinity,r=-Infinity,w=-Infinity;
|
|
67
|
-
a=a.a;for(var t=0,z=h.length;t<z;t+=a)var J=h[t]*n-h[t+1]*k,W=h[t]*k+h[t+1]*n,m=Math.min(m,J),p=Math.min(p,W),r=Math.max(r,J),w=Math.max(w,W);b=dd([m,p,r,w],[b[0]-d[1]-d[3],b[1]-d[0]-d[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);k=-k;f=(m+r)/2+(d[1]-d[3])/2*b;d=(p+w)/2+(d[0]-d[2])/2*b;n=[f*n-d*k,d*n+f*k];void 0!==c.duration?this.animate({resolution:b,center:n,duration:c.duration,easing:c.easing}):(this.$a(b),this.Ha(n))};
|
|
68
|
-
l.Sd=function(a,b,c){var d=this.ma(),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.la(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.Ha([f*e-a*d,a*e+f*d])};function ed(a){return!!a.wa()&&void 0!==a.la()}l.rotate=function(a,b){if(void 0!==b){var c=cd(this,a,b);this.Ha(c)}this.Zb(a)};l.Ha=function(a){this.set(Uc,a);0<ad(this)[Zc]&&$c(this)};
|
|
69
|
-
function Yc(a,b,c){console.assert(0<=b&&b<a.b.length,"illegal hint (%s), must be between 0 and %s",b,a.b.length);a.b[b]+=c;console.assert(0<=a.b[b],"Hint at %s must be positive, was %s",b,a.b[b]);a.s()}l.$a=function(a){this.set(Wc,a);0<ad(this)[Zc]&&$c(this)};l.Zb=function(a){this.set(Xc,a);0<ad(this)[Zc]&&$c(this)};l.ig=function(a){a=this.constrainResolution(this.f,a-this.l,0);this.$a(a)};
|
|
70
|
-
function Vc(a){if(void 0!==a.enableRotation?a.enableRotation:1){a=a.constrainRotation;if(void 0===a||!0===a)return db();if(!1===a)return bb;if("number"===typeof a)return cb(a);console.assert(!1,"illegal option for constrainRotation (%s)",a);return bb}return ab}var Uc="center",Wc="resolution",Xc="rotation",Zc=0;function fd(a,b,c,d){this.I=a;this.J=b;this.L=c;this.M=d}function gd(a,b,c){return a.I<=b&&b<=a.J&&a.L<=c&&c<=a.M}function hd(a,b){return a.I<=b.J&&a.J>=b.I&&a.L<=b.M&&a.M>=b.L};function id(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:b[0]=b[1]=a;return b};function jd(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.a=a.resolutions;v(Ya(this.a,function(a,b){return b-a}),17);this.maxZoom=this.a.length-1;this.c=void 0!==a.origin?a.origin:null;this.i=null;void 0!==a.origins&&(this.i=a.origins,v(this.i.length==this.a.length,20));var b=a.extent;void 0===b||this.c||this.i||(this.c=Ab(b));v(!this.c&&this.i||this.c&&!this.i,18);this.b=null;void 0!==a.tileSizes&&(this.b=a.tileSizes,v(this.b.length==this.a.length,19));this.u=void 0!==a.tileSize?a.tileSize:
|
|
71
|
-
this.b?null:256;v(!this.u&&this.b||this.u&&!this.b,22);this.l=void 0!==b?b:null;this.f=null;this.j=[0,0];void 0!==a.sizes?(console.assert(a.sizes.length==this.a.length,"number of sizes and resolutions must be equal"),this.f=a.sizes.map(function(a){console.assert(0!==a[0],"width must not be 0");console.assert(0!==a[1],"height must not be 0");return new fd(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this)):b&&kd(this,b)}var ld=[0,0,0];jd.prototype.B=function(){return this.l};
|
|
72
|
-
function md(a,b){if(a.c)return a.c;console.assert(a.minZoom<=b&&b<=a.maxZoom,"given z is not in allowed range (%s <= %s <= %s)",a.minZoom,b,a.maxZoom);return a.i[b]}function nd(a,b){console.assert(a.minZoom<=b&&b<=a.maxZoom,"given z is not in allowed range (%s <= %s <= %s)",a.minZoom,b,a.maxZoom);return a.a[b]}function od(a,b,c,d){pd(a,b[0],b[1],c,!1,ld);var e=ld[1],f=ld[2];pd(a,b[2],b[3],c,!0,ld);a=ld[1];b=ld[2];void 0!==d?(d.I=e,d.J=a,d.L=f,d.M=b):d=new fd(e,a,f,b);return d}
|
|
73
|
-
function qd(a,b,c,d){c=nd(a,c);return od(a,b,c,d)}function rd(a,b){var c=md(a,b[0]),d=nd(a,b[0]),e=id(sd(a,b[0]),a.j);return[c[0]+(b[1]+.5)*e[0]*d,c[1]+(b[2]+.5)*e[1]*d]}function td(a,b,c){var d=md(a,b[0]),e=nd(a,b[0]);a=id(sd(a,b[0]),a.j);var f=d[0]+b[1]*a[0]*e;b=d[1]+b[2]*a[1]*e;return rb(f,b,f+a[0]*e,b+a[1]*e,c)}
|
|
74
|
-
function pd(a,b,c,d,e,f){var g=ud(a,d),h=d/nd(a,g),k=md(a,g);a=id(sd(a,g),a.j);b=h*Math.floor((b-k[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-k[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}function sd(a,b){if(a.u)return a.u;console.assert(a.minZoom<=b&&b<=a.maxZoom,"z is not in allowed range (%s <= %s <= %s",a.minZoom,b,a.maxZoom);return a.b[b]}
|
|
75
|
-
function vd(a,b){return a.f?(console.assert(a.minZoom<=b&&b<=a.maxZoom,"z is not in allowed range (%s <= %s <= %s",a.minZoom,b,a.maxZoom),a.f[b]):null}function ud(a,b,c){return la(Ua(a.a,b,c||0),a.minZoom,a.maxZoom)}function kd(a,b){for(var c=a.a.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=qd(a,b,e);a.f=d};function wd(a){var b=a.u;if(!b){var b=xd(a),c=yd(b,void 0,void 0),b=new jd({extent:b,origin:Ab(b),resolutions:c,tileSize:void 0});a.u=b}return b}function yd(a,b,c){b=void 0!==b?b:42;var d=Eb(a);a=Db(a);c=id(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}function xd(a){a=Wb(a);var b=a.B();b||(a=180*Pb.degrees/a.Ua(),b=rb(-a,-a,a,a));return b};function zd(a){this.c=a.html;this.a=a.tileRanges?a.tileRanges:null};function Ad(a){Na.call(this);this.a=a?a:[];Bd(this)}u(Ad,Na);l=Ad.prototype;l.clear=function(){for(;0<this.get(Cd);)this.pop()};l.forEach=function(a,b){this.a.forEach(a,b)};l.item=function(a){return this.a[a]};l.pop=function(){return Dd(this,this.get(Cd)-1)};l.push=function(a){var b=this.get(Cd);this.a.splice(b,0,a);Bd(this);this.c(new Ed(Fd,a));return this.get(Cd)};l.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return Dd(this,c)};
|
|
76
|
-
function Dd(a,b){var c=a.a[b];a.a.splice(b,1);Bd(a);a.c(new Ed(Gd,c));return c}function Bd(a){a.set(Cd,a.a.length)}var Cd="length",Fd="add",Gd="remove";function Ed(a,b){Ia.call(this,a);this.element=b}u(Ed,Ia);var Hd=/^#(?:[0-9a-f]{3}){1,2}$/i,Id=/^([a-z]*)$/i;function Jd(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}
|
|
77
|
-
var Ld=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;Id.exec(d)&&(e=document.createElement("div"),e.style.color=d,document.body.appendChild(e),d=getComputedStyle(e).color,document.body.removeChild(e));if(Hd.exec(d)){f=d.length-1;v(3==f||6==f,54);var 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=
|
|
78
|
-
(d<<4)+d);f=[f,e,d,1]}else 0==d.indexOf("rgba(")?(d=d.slice(5,-1).split(",").map(Number),f=Kd(d)):0==d.indexOf("rgb(")?(d=d.slice(4,-1).split(",").map(Number),d.push(1),f=Kd(d)):v(!1,14);d=f;a[c]=d;++b}return d}}();function Kd(a){var b=[];b[0]=la(a[0]+.5|0,0,255);b[1]=la(a[1]+.5|0,0,255);b[2]=la(a[2]+.5|0,0,255);b[3]=la(a[3],0,1);return b};function Md(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Jd(a)};function Nd(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function Od(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function Pd(a,b,c){Ia.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}u(Pd,Ia);function Qd(a){Na.call(this);this.element=a.element?a.element:null;this.v=this.R=null;this.A=[];this.render=a.render?a.render:fa;a.target&&(a=a.target,this.R="string"===typeof a?document.getElementById(a):a)}u(Qd,Na);Qd.prototype.$=function(){Od(this.element);Na.prototype.$.call(this)};
|
|
79
|
-
Qd.prototype.setMap=function(a){this.v&&Od(this.element);for(var b=0,c=this.A.length;b<c;++b)za(this.A[b]);this.A.length=0;if(this.v=a)(this.R?this.R:a.N).appendChild(this.element),this.render!==fa&&this.A.push(x(a,"postrender",this.render,this)),a.render()};function Rd(a){a=a?a:{};this.N=document.createElement("UL");this.j=document.createElement("LI");this.N.appendChild(this.j);this.j.style.display="none";this.f=void 0!==a.collapsed?a.collapsed:!0;this.H=void 0!==a.collapsible?a.collapsible:!0;this.H||(this.f=!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.l=document.createElement("span"),this.l.textContent=d):this.l=
|
|
80
|
-
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.H&&!this.f?this.l:this.o,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);x(d,"click",this.S,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.f&&this.H?" ol-collapsed":"")+(this.H?"":" ol-uncollapsible");c.appendChild(this.N);c.appendChild(d);Qd.call(this,{element:c,render:a.render?
|
|
81
|
-
a.render:Sd,target:a.target});this.F=!0;this.b={};this.a={};this.W={}}u(Rd,Qd);
|
|
82
|
-
function Sd(a){if(a=a.frameState){var b,c,d,e,f,g,h,k,n,m,p,r=a.layerStatesArray,w=va({},a.attributions),t={},z={},J=a.viewState.projection;c=0;for(b=r.length;c<b;c++)if(g=r[c].layer.Ia())if(m=ga(g).toString(),n=g.o)for(d=0,e=n.length;d<e;d++)if(h=n[d],k=ga(h).toString(),!(k in w)){if(f=a.usedTiles[m]){var W=g.La(J);a:{p=h;var ea=J;if(p.a){var Y,ia,aa,da=void 0;for(da in f)if(da in p.a){aa=f[da];var U;Y=0;for(ia=p.a[da].length;Y<ia;++Y){U=p.a[da][Y];if(hd(U,aa)){p=!0;break a}var Z=qd(W,xd(ea),parseInt(da,
|
|
83
|
-
10)),ba=Z.J-Z.I+1;if(aa.I<Z.I||aa.J>Z.J)if(hd(U,new fd(pa(aa.I,ba),pa(aa.J,ba),aa.L,aa.M))||aa.J-aa.I+1>ba&&hd(U,Z)){p=!0;break a}}}p=!1}else p=!0}}else p=!1;p?(k in t&&delete t[k],p=h.c,p in z||(z[p]=!0,w[k]=h)):t[k]=h}b=[w,t];c=b[0];b=b[1];for(var N in this.b)N in c?(this.a[N]||(this.b[N].style.display="",this.a[N]=!0),delete c[N]):N in b?(this.a[N]&&(this.b[N].style.display="none",delete this.a[N]),delete b[N]):(Od(this.b[N]),delete this.b[N],delete this.a[N]);for(N in c)d=document.createElement("LI"),
|
|
84
|
-
d.innerHTML=c[N].c,this.N.appendChild(d),this.b[N]=d,this.a[N]=!0;for(N in b)d=document.createElement("LI"),d.innerHTML=b[N].c,d.style.display="none",this.N.appendChild(d),this.b[N]=d;N=!xa(this.a)||!xa(a.logos);this.F!=N&&(this.element.style.display=N?"":"none",this.F=N);N&&xa(this.a)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var ma;a=a.logos;N=this.W;for(ma in N)ma in a||(Od(N[ma]),delete N[ma]);for(var ka in a)b=a[ka],b instanceof HTMLElement&&(this.j.appendChild(b),
|
|
85
|
-
N[ka]=b),ka in N||(ma=new Image,ma.src=ka,""===b?c=ma:(c=document.createElement("a"),c.href=b,c.appendChild(ma)),this.j.appendChild(c),N[ka]=c);this.j.style.display=xa(a)?"none":""}else this.F&&(this.element.style.display="none",this.F=!1)}Rd.prototype.S=function(a){a.preventDefault();this.element.classList.toggle("ol-collapsed");if(this.f){a=this.o;var b=a.parentNode;b&&b.replaceChild(this.l,a)}else a=this.l,(b=a.parentNode)&&b.replaceChild(this.o,a);this.f=!this.f};function Td(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.a=null;"string"===typeof c?(this.a=document.createElement("span"),this.a.className="ol-compass",this.a.textContent=c):(this.a=c,this.a.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.a);x(c,"click",Td.prototype.o,this);d=document.createElement("div");
|
|
86
|
-
d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:Ud;this.f=a.resetNorth?a.resetNorth:void 0;Qd.call(this,{element:d,render:b,target:a.target});this.j=void 0!==a.duration?a.duration:250;this.b=void 0!==a.autoHide?a.autoHide:!0;this.l=void 0;this.b&&this.element.classList.add("ol-hidden")}u(Td,Qd);Td.prototype.o=function(a){a.preventDefault();void 0!==this.f?this.f():(a=this.v.U())&&void 0!==a.ma()&&(0<this.j?a.animate({rotation:0,duration:this.j,easing:gb}):a.Zb(0))};
|
|
87
|
-
function Ud(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.l){var b="rotate("+a+"rad)";if(this.b){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.a.style.msTransform=b;this.a.style.webkitTransform=b;this.a.style.transform=b}this.l=a}};function Vd(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",Vd.prototype.b.bind(this,
|
|
88
|
-
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",Vd.prototype.b.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);Qd.call(this,{element:c,target:a.target});this.a=void 0!==a.duration?a.duration:250}u(Vd,Qd);
|
|
89
|
-
Vd.prototype.b=function(a,b){b.preventDefault();var c=this.v.U();if(c){var d=c.la();d&&(d=c.constrainResolution(d,a),0<this.a?(0<ad(c)[Zc]&&$c(c),c.animate({resolution:d,duration:this.a,easing:gb})):c.$a(d))}};function Wd(a,b,c,d,e){Pd.call(this,a,b,e);this.originalEvent=c;this.pixel=b.Pb(c);this.coordinate=b.Ca(this.pixel);this.dragging=void 0!==d?d:!1}u(Wd,Pd);Wd.prototype.preventDefault=function(){Pd.prototype.preventDefault.call(this);this.originalEvent.preventDefault()};Wd.prototype.stopPropagation=function(){Pd.prototype.stopPropagation.call(this);this.originalEvent.stopPropagation()};
|
|
90
|
-
var Xd={Cg:"singleclick",qg:"click",rg:"dblclick",ug:"pointerdrag",xg:"pointermove",tg:"pointerdown",Ag:"pointerup",zg:"pointerover",yg:"pointerout",vg:"pointerenter",wg:"pointerleave",sg:"pointercancel"};function Yd(a,b,c,d,e){Wd.call(this,a,b,c.a,d,e);this.a=c}u(Yd,Wd);var Zd="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",$d=-1!==Zd.indexOf("firefox"),ae=-1!==Zd.indexOf("safari")&&-1==Zd.indexOf("chrom"),be=-1!==Zd.indexOf("webkit")&&-1==Zd.indexOf("edge"),ce=-1!==Zd.indexOf("macintosh"),de=window.devicePixelRatio||1,ee=!1,fe=function(){if(!("HTMLCanvasElement"in window))return!1;try{var a=document.createElement("CANVAS").getContext("2d");return a?(void 0!==a.setLineDash&&(ee=!0),!0):!1}catch(b){return!1}}(),ge="ontouchstart"in window,he="PointerEvent"in
|
|
91
|
-
window,ie=!!navigator.msPointerEnabled;function je(a,b){this.a=a;this.f=b};function ke(a){je.call(this,a,{mousedown:this.Me,mousemove:this.Ne,mouseup:this.Qe,mouseover:this.Pe,mouseout:this.Oe});this.c=a.i;this.i=[]}u(ke,je);function le(a,b){for(var c=a.i,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var k=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=k)return!0}return!1}function me(a){var b=ne(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}l=ke.prototype;
|
|
92
|
-
l.Me=function(a){if(!le(this,a)){if((1).toString()in this.c){var b=me(a);oe(this.a,"pointercancel",b,a);delete this.c[(1).toString()]}b=me(a);this.c[(1).toString()]=a;oe(this.a,"pointerdown",b,a)}};l.Ne=function(a){if(!le(this,a)){var b=me(a);oe(this.a,"pointermove",b,a)}};l.Qe=function(a){if(!le(this,a)){var b=this.c[(1).toString()];b&&b.button===a.button&&(b=me(a),oe(this.a,"pointerup",b,a),delete this.c[(1).toString()])}};l.Pe=function(a){if(!le(this,a)){var b=me(a);pe(this.a,b,a)}};
|
|
93
|
-
l.Oe=function(a){if(!le(this,a)){var b=me(a);qe(this.a,b,a)}};function re(a){je.call(this,a,{MSPointerDown:this.Ve,MSPointerMove:this.We,MSPointerUp:this.Ze,MSPointerOut:this.Xe,MSPointerOver:this.Ye,MSPointerCancel:this.Ue,MSGotPointerCapture:this.Se,MSLostPointerCapture:this.Te});this.c=a.i;this.i=["","unavailable","touch","pen","mouse"]}u(re,je);function se(a,b){var c=b;"number"===typeof b.pointerType&&(c=ne(b,b),c.pointerType=a.i[b.pointerType]);return c}l=re.prototype;
|
|
94
|
-
l.Ve=function(a){this.c[a.pointerId.toString()]=a;var b=se(this,a);oe(this.a,"pointerdown",b,a)};l.We=function(a){var b=se(this,a);oe(this.a,"pointermove",b,a)};l.Ze=function(a){var b=se(this,a);oe(this.a,"pointerup",b,a);delete this.c[a.pointerId.toString()]};l.Xe=function(a){var b=se(this,a);qe(this.a,b,a)};l.Ye=function(a){var b=se(this,a);pe(this.a,b,a)};l.Ue=function(a){var b=se(this,a);oe(this.a,"pointercancel",b,a);delete this.c[a.pointerId.toString()]};
|
|
95
|
-
l.Te=function(a){this.a.c(new te("lostpointercapture",a,a))};l.Se=function(a){this.a.c(new te("gotpointercapture",a,a))};function ue(a){je.call(this,a,{pointerdown:this.Hf,pointermove:this.If,pointerup:this.Lf,pointerout:this.Jf,pointerover:this.Kf,pointercancel:this.Gf,gotpointercapture:this.ue,lostpointercapture:this.Ke})}u(ue,je);l=ue.prototype;l.Hf=function(a){ve(this.a,a)};l.If=function(a){ve(this.a,a)};l.Lf=function(a){ve(this.a,a)};l.Jf=function(a){ve(this.a,a)};l.Kf=function(a){ve(this.a,a)};l.Gf=function(a){ve(this.a,a)};l.Ke=function(a){ve(this.a,a)};l.ue=function(a){ve(this.a,a)};function te(a,b,c){Ia.call(this,a);this.a=b;a=c?c:{};this.buttons=we(a);this.pressure=xe(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:
|
|
96
|
-
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()})}u(te,Ia);function we(a){if(a.buttons||ye)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}
|
|
97
|
-
function xe(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var ye=!1;try{ye=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function ze(a,b){je.call(this,a,{touchstart:this.og,touchmove:this.ng,touchend:this.mg,touchcancel:this.lg});this.c=a.i;this.j=b;this.i=void 0;this.u=0;this.b=void 0}u(ze,je);l=ze.prototype;l.ed=function(){this.u=0;this.b=void 0};
|
|
98
|
-
function Ae(a,b,c){b=ne(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.u;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.i===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
|
|
99
|
-
function Be(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=Ae(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
|
|
100
|
-
l.og=function(a){var b=a.touches,c=Object.keys(this.c),d=c.length;if(d>=b.length){var e=[],f,g,h;for(f=0;f<d;++f){g=c[f];h=this.c[g];var k;if(!(k=1==g))a:{k=b.length;for(var n,m=0;m<k;m++)if(n=b[m],n.identifier===g-2){k=!0;break a}k=!1}k||e.push(h.out)}for(f=0;f<e.length;++f)this.Lb(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.c).length;if(0===c||1===c&&(1).toString()in this.c)this.i=b.identifier,void 0!==this.b&&clearTimeout(this.b);Ce(this,a);this.u++;Be(this,a,this.Ff)};
|
|
101
|
-
l.Ff=function(a,b){this.c[b.pointerId]={target:b.target,out:b,bd:b.target};var c=this.a;b.bubbles=!0;oe(c,"pointerover",b,a);c=this.a;b.bubbles=!1;oe(c,"pointerenter",b,a);oe(this.a,"pointerdown",b,a)};l.ng=function(a){a.preventDefault();Be(this,a,this.Re)};
|
|
102
|
-
l.Re=function(a,b){var c=this.c[b.pointerId];if(c){var d=c.out,e=c.bd;oe(this.a,"pointermove",b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(qe(this.a,d,a),pe(this.a,b,a)):(b.target=e,b.relatedTarget=null,this.Lb(a,b)));c.out=b;c.bd=b.target}};l.mg=function(a){Ce(this,a);Be(this,a,this.pg)};
|
|
103
|
-
l.pg=function(a,b){oe(this.a,"pointerup",b,a);this.a.out(b,a);De(this.a,b,a);delete this.c[b.pointerId];b.isPrimary&&(this.i=void 0,this.b=setTimeout(this.ed.bind(this),200))};l.lg=function(a){Be(this,a,this.Lb)};l.Lb=function(a,b){oe(this.a,"pointercancel",b,a);this.a.out(b,a);De(this.a,b,a);delete this.c[b.pointerId];b.isPrimary&&(this.i=void 0,this.b=setTimeout(this.ed.bind(this),200))};
|
|
104
|
-
function Ce(a,b){var c=a.j.i,d=b.changedTouches[0];if(a.i===d.identifier){var e=[d.clientX,d.clientY];c.push(e);setTimeout(function(){var a=c.indexOf(e);-1<a&&c.splice(a,1)},2500)}};function Ee(a){Ka.call(this);this.u=a;this.i={};this.f={};this.a=[];he?Fe(this,new ue(this)):ie?Fe(this,new re(this)):(a=new ke(this),Fe(this,a),ge&&Fe(this,new ze(this,a)));a=this.a.length;for(var b,c=0;c<a;c++)b=this.a[c],Ge(this,Object.keys(b.f))}u(Ee,Ka);function Fe(a,b){var c=Object.keys(b.f);c&&(c.forEach(function(a){var c=b.f[a];c&&(this.f[a]=c.bind(b))},a),a.a.push(b))}Ee.prototype.b=function(a){var b=this.f[a.type];b&&b(a)};
|
|
105
|
-
function Ge(a,b){b.forEach(function(a){x(this.u,a,this.b,this)},a)}function He(a,b){b.forEach(function(a){Fa(this.u,a,this.b,this)},a)}function ne(a,b){for(var c={},d,e=0,f=Ie.length;e<f;e++)d=Ie[e][0],c[d]=a[d]||b[d]||Ie[e][1];return c}function De(a,b,c){b.bubbles=!1;oe(a,"pointerleave",b,c)}Ee.prototype.out=function(a,b){a.bubbles=!0;oe(this,"pointerout",a,b)};function qe(a,b,c){a.out(b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||De(a,b,c)}
|
|
106
|
-
function pe(a,b,c){b.bubbles=!0;oe(a,"pointerover",b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||(b.bubbles=!1,oe(a,"pointerenter",b,c))}function oe(a,b,c,d){a.c(new te(b,d,c))}function ve(a,b){a.c(new te(b.type,b,b))}Ee.prototype.$=function(){for(var a=this.a.length,b,c=0;c<a;c++)b=this.a[c],He(this,Object.keys(b.f));Ka.prototype.$.call(this)};
|
|
107
|
-
var Ie=[["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 Je(a){Ka.call(this);this.b=a;this.j=0;this.l=!1;this.f=[];this.a=null;a=this.b.a;this.o=0;this.H={};this.u=new Ee(a);this.i=null;this.v=x(this.u,"pointerdown",this.Ae,this);this.A=x(this.u,"pointermove",this.Rf,this)}u(Je,Ka);function Ke(a,b){var c=new Yd("click",a.b,b);a.c(c);0!==a.j?(clearTimeout(a.j),a.j=0,c=new Yd("dblclick",a.b,b),a.c(c)):a.j=setTimeout(function(){this.j=0;var a=new Yd("singleclick",this.b,b);this.c(a)}.bind(a),250)}
|
|
108
|
-
function Le(a,b){"pointerup"==b.type||"pointercancel"==b.type?delete a.H[b.pointerId]:"pointerdown"==b.type&&(a.H[b.pointerId]=!0);a.o=Object.keys(a.H).length}l=Je.prototype;
|
|
109
|
-
l.Pc=function(a){Le(this,a);var b=new Yd("pointerup",this.b,a);this.c(b);this.l||0!==a.button||(console.assert(this.a,"this.down_ must be truthy"),Ke(this,this.a));console.assert(0<=this.o,"this.activePointers_ should be equal to or larger than 0");0===this.o&&(this.f.forEach(za),this.f.length=0,this.l=!1,this.a=null,Ha(this.i),this.i=null)};
|
|
110
|
-
l.Ae=function(a){Le(this,a);var b=new Yd("pointerdown",this.b,a);this.c(b);this.a=a;0===this.f.length&&(this.i=new Ee(document),this.f.push(x(this.i,"pointermove",this.ef,this),x(this.i,"pointerup",this.Pc,this),x(this.u,"pointercancel",this.Pc,this)))};l.ef=function(a){if(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY){this.l=!0;var b=new Yd("pointerdrag",this.b,a,this.l);this.c(b)}a.preventDefault()};
|
|
111
|
-
l.Rf=function(a){this.c(new Yd(a.type,this.b,a,!(!this.a||a.clientX==this.a.clientX&&a.clientY==this.a.clientY)))};l.$=function(){this.A&&(za(this.A),this.A=null);this.v&&(za(this.v),this.v=null);this.f.forEach(za);this.f.length=0;this.i&&(Ha(this.i),this.i=null);this.u&&(Ha(this.u),this.u=null);Ka.prototype.$.call(this)};function Me(a,b){Ka.call(this);this.Aa=a;this.state=b;this.a=null;this.key=""}u(Me,Ka);Me.prototype.s=function(){this.c("change")};Me.prototype.getKey=function(){return this.key+"/"+this.Aa};Me.prototype.V=function(){return this.state};function Ne(a,b){this.P=a;this.u=b;this.a=[];this.i=[];this.c={}}Ne.prototype.clear=function(){this.a.length=0;this.i.length=0;wa(this.c)};Ne.prototype.j=function(a){v(!(this.u(a)in this.c),31);var b=this.P(a);return Infinity!=b?(this.a.push(a),this.i.push(b),this.c[this.u(a)]=!0,Oe(this,0,this.a.length-1),!0):!1};function Pe(a,b){for(var c=a.a,d=a.i,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var k=2*b+1,n=2*b+2,k=n<e&&d[n]<d[k]?n:k;c[b]=c[k];d[b]=d[k];b=k}c[b]=f;d[b]=g;Oe(a,h,b)}
|
|
112
|
-
function Oe(a,b,c){var d=a.a;a=a.i;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 Qe(a,b){Ne.call(this,function(b){return a.apply(null,b)},function(a){return a[0].getKey()});this.o=b;this.f=0;this.b={}}u(Qe,Ne);Qe.prototype.j=function(a){var b=Ne.prototype.j.call(this,a);b&&x(a[0],"change",this.l,this);return b};Qe.prototype.l=function(a){a=a.target;var b=a.V();if(2===b||3===b||4===b||5===b)Fa(a,"change",this.l,this),a=a.getKey(),a in this.b&&(delete this.b[a],--this.f),this.o();console.assert(Object.keys(this.b).length===this.f)};function Re(){this.a=[];this.c=this.i=0};function Se(a){Na.call(this);this.H=null;this.set(Te,!0);this.handleEvent=a.handleEvent}u(Se,Na);Se.prototype.setMap=function(a){this.H=a};function Ue(a,b,c,d){if(void 0!==b){var e=a.ma(),f=a.wa();void 0!==e&&f&&0<d?a.animate({rotation:b,anchor:c,duration:d,easing:gb}):a.rotate(b,c)}}function Ve(a,b,c,d){var e=a.la();b=a.constrainResolution(e,b,0);We(a,b,c,d)}
|
|
113
|
-
function We(a,b,c,d){if(b){var e=a.la(),f=a.wa();void 0!==e&&f&&b!==e&&d?a.animate({resolution:b,anchor:c,duration:d,easing:gb}):(c&&(c=bd(a,b,c),a.Ha(c)),a.$a(b))}}var Te="active";function Xe(a){a=a?a:{};this.a=a.delta?a.delta:1;Se.call(this,{handleEvent:Ye});this.b=void 0!==a.duration?a.duration:250}u(Xe,Se);function Ye(a){var b=!1,c=a.originalEvent;if("dblclick"==a.type){var b=a.coordinate,c=c.shiftKey?-this.a:this.a,d=a.map.U();Ve(d,c,b,this.b);a.preventDefault();b=!0}return!b};function Ze(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function $e(a){a=a.originalEvent;return 0==a.button&&!(be&&ce&&a.ctrlKey)}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}function ef(a){a=a.originalEvent.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function ff(a){v(a.a,56);return"mouse"==a.a.pointerType};function gf(a){a=a?a:{};Se.call(this,{handleEvent:a.handleEvent?a.handleEvent:hf});this.F=a.handleDownEvent?a.handleDownEvent:Lb;this.N=a.handleDragEvent?a.handleDragEvent:fa;this.R=a.handleMoveEvent?a.handleMoveEvent:fa;this.W=a.handleUpEvent?a.handleUpEvent:Lb;this.f=!1;this.o={};this.a=[]}u(gf,Se);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 hf(a){if(!(a instanceof Yd))return!0;var b=!1,c=a.type;if("pointerdown"===c||"pointerdrag"===c||"pointerup"===c){c=a.a;"pointerup"==a.type?delete this.o[c.pointerId]:"pointerdown"==a.type?this.o[c.pointerId]=c:c.pointerId in this.o&&(this.o[c.pointerId]=c);var c=this.o,d=[],e;for(e in c)d.push(c[e]);this.a=d}this.f&&("pointerdrag"==a.type?this.N(a):"pointerup"==a.type&&(this.f=this.W(a)));"pointerdown"==a.type?(this.f=a=this.F(a),b=this.l(a)):"pointermove"==a.type&&this.R(a);return!b}
|
|
115
|
-
gf.prototype.l=function(a){return a};function kf(a){gf.call(this,{handleDownEvent:lf,handleDragEvent:mf,handleUpEvent:nf});a=a?a:{};this.b=a.kinetic;this.j=null;this.A=a.condition?a.condition:cf;this.v=!1}u(kf,gf);
|
|
116
|
-
function mf(a){console.assert(1<=this.a.length,"the length of this.targetPointers should be more than 1");var b=jf(this.a);this.b&&this.b.a.push(b[0],b[1],Date.now());if(this.j){var c=this.j[0]-b[0],d=b[1]-this.j[1];a=a.map.U();var e=a.V(),d=c=[c,d],f=e.resolution;d[0]*=f;d[1]*=f;fb(c,e.rotation);d=c;e=e.center;d[0]+=e[0];d[1]+=e[1];c=a.wb(c);a.Ha(c)}this.j=b}
|
|
117
|
-
function nf(a){var b=a.map;a=b.U();if(0===this.a.length){var c;if(c=!this.v&&this.b)if(c=this.b,6>c.a.length)c=!1;else{var d=Date.now()-100,e=c.a.length-3;if(c.a[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.a[f+2]>d;)f-=3;var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.i=Math.atan2(e,g);c.c=Math.sqrt(g*g+e*e)/d;c=.05<c.c}}c&&(c=(.05-this.b.c)/-.005,e=this.b.i,f=a.wa(),f=b.yb(f),b=b.Ca([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),a.animate({center:a.wb(b),duration:500,easing:gb}));Yc(a,1,-1);return!1}this.j=
|
|
118
|
-
null;return!0}function lf(a){if(0<this.a.length&&this.A(a)){var b=a.map.U();this.j=null;this.f||Yc(b,1,1);b.Ha(a.frameState.viewState.center);this.b&&(a=this.b,a.a.length=0,a.i=0,a.c=0);this.v=1<this.a.length;return!0}return!1}kf.prototype.l=Lb;function of(a){a=a?a:{};gf.call(this,{handleDownEvent:pf,handleDragEvent:qf,handleUpEvent:rf});this.j=a.condition?a.condition:Ze;this.b=void 0;this.v=void 0!==a.duration?a.duration:250}u(of,gf);function qf(a){if(ff(a)){var b=a.map,c=b.Bb();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(void 0!==this.b){a=c-this.b;var b=b.U(),d=b.ma();Ue(b,d-a)}this.b=c}}function rf(a){if(!ff(a))return!0;a=a.map.U();Yc(a,1,-1);var b=a.ma(),c=this.v,b=a.constrainRotation(b,0);Ue(a,b,void 0,c);return!1}
|
|
119
|
-
function pf(a){return ff(a)&&$e(a)&&this.j(a)?(Yc(a.map.U(),1,1),this.b=void 0,!0):!1}of.prototype.l=Lb;function sf(a){this.b=null;this.c=document.createElement("div");this.c.style.position="absolute";this.c.className="ol-box "+a;this.i=this.f=this.a=null}u(sf,Ga);sf.prototype.$=function(){this.setMap(null)};function tf(a){var b=a.f,c=a.i;a=a.c.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"}
|
|
120
|
-
sf.prototype.setMap=function(a){if(this.a){this.a.R.removeChild(this.c);var b=this.c.style;b.left=b.top=b.width=b.height="inherit"}(this.a=a)&&this.a.R.appendChild(this.c)};function uf(a){var b=a.f,c=a.i,b=[b,[b[0],c[1]],c,[c[0],b[1]]].map(a.a.Ca,a.a);b[4]=b[0].slice();a.b?a.b.Y([b]):a.b=new D([b])}sf.prototype.oa=function(){return this.b};function vf(a){gf.call(this,{handleDownEvent:wf,handleDragEvent:xf,handleUpEvent:yf});a=a?a:{};this.b=new sf(a.className||"ol-dragbox");this.j=null;this.S=a.condition?a.condition:Kb;this.A=a.boxEndCondition?a.boxEndCondition:zf}u(vf,gf);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.b,c=a.pixel;b.f=this.j;b.i=c;uf(b);tf(b);this.c(new Af(Bf,a.coordinate,a))}}vf.prototype.oa=function(){return this.b.oa()};vf.prototype.v=fa;
|
|
121
|
-
function yf(a){if(!ff(a))return!0;this.b.setMap(null);this.A(a,this.j,a.pixel)&&(this.v(a),this.c(new Af(Cf,a.coordinate,a)));return!1}function wf(a){if(ff(a)&&$e(a)&&this.S(a)){this.j=a.pixel;this.b.setMap(a.map);var b=this.b,c=this.j;b.f=this.j;b.i=c;uf(b);tf(b);this.c(new Af(Df,a.coordinate,a));return!0}return!1}var Df="boxstart",Bf="boxdrag",Cf="boxend";function Af(a,b,c){Ia.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}u(Af,Ia);function Ef(a){a=a?a:{};var b=a.condition?a.condition:df;this.qa=void 0!==a.duration?a.duration:200;this.ya=void 0!==a.out?a.out:!1;vf.call(this,{condition:b,className:a.className||"ol-dragzoom"})}u(Ef,vf);
|
|
122
|
-
Ef.prototype.v=function(){var a=this.H,b=a.U(),c=a.Bb(),d=this.oa().B();if(this.ya){var e=b.Ac(c),d=[a.yb(xb(d)),a.yb(zb(d))],a=sb(void 0),f,g;f=0;for(g=d.length;f<g;++f)lb(a,d[f]);a=1/dd(a,c);d=(e[2]-e[0])/2*(a-1);a=(e[3]-e[1])/2*(a-1);e[0]-=d;e[2]+=d;e[1]-=a;e[3]+=a;d=e}c=b.constrainResolution(dd(d,c));b.animate({resolution:c,center:Fb(d),duration:this.qa,easing:gb})};function Ff(a){Se.call(this,{handleEvent:Gf});a=a||{};this.a=function(a){return cf(a)&&ef(a)};this.b=void 0!==a.condition?a.condition:this.a;this.f=void 0!==a.duration?a.duration:100;this.j=void 0!==a.pixelDelta?a.pixelDelta:128}u(Ff,Se);
|
|
123
|
-
function Gf(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 b=a.map.U(),d=b.la()*this.j,e=0,f=0;40==c?f=-d:37==c?e=-d:39==c?e=d:f=d;d=[e,f];fb(d,b.ma());c=this.f;if(e=b.wa())d=b.wb([e[0]+d[0],e[1]+d[1]]),c?b.animate({duration:c,easing:ib,center:d}):b.Ha(d);a.preventDefault();b=!0}}return!b};function Hf(a){Se.call(this,{handleEvent:If});a=a?a:{};this.b=a.condition?a.condition:ef;this.a=a.delta?a.delta:1;this.f=void 0!==a.duration?a.duration:100}u(Hf,Se);function If(a){var b=!1;if("keydown"==a.type||"keypress"==a.type){var c=a.originalEvent.charCode;!this.b(a)||43!=c&&45!=c||(b=43==c?this.a:-this.a,c=a.map.U(),Ve(c,b,void 0,this.f),a.preventDefault(),b=!0)}return!b};function Jf(a){Se.call(this,{handleEvent:Kf});a=a||{};this.f=0;this.F=void 0!==a.duration?a.duration:250;this.N=void 0!==a.timeout?a.timeout:80;this.R=void 0!==a.useAnchor?a.useAnchor:!0;this.a=null;this.l=this.j=this.o=this.b=void 0}u(Jf,Se);
|
|
124
|
-
function Kf(a){var b=a.type;if("wheel"!==b&&"mousewheel"!==b)return!0;a.preventDefault();var b=a.map,c=a.originalEvent;this.R&&(this.a=a.coordinate);var d;"wheel"==a.type?(d=c.deltaY,$d&&c.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(d/=de),c.deltaMode===WheelEvent.DOM_DELTA_LINE&&(d*=40)):"mousewheel"==a.type&&(d=-c.wheelDeltaY,ae&&(d/=3));if(0===d)return!1;a=Date.now();void 0===this.b&&(this.b=a);if(!this.j||400<a-this.b)this.j=4>Math.abs(d)?Lf:Mf;if(this.j===Lf){b=b.U();this.l?clearTimeout(this.l):
|
|
125
|
-
Yc(b,1,1);this.l=setTimeout(this.v.bind(this),400);d=b.la()*Math.pow(2,d/300);var c=b.A,e=b.f,f=0;d<c?(d=Math.max(d,c/1.5),f=1):d>e&&(d=Math.min(d,1.5*e),f=-1);if(this.a){var g=bd(b,d,this.a);b.Ha(g)}b.$a(d);0<f?b.animate({resolution:c,easing:gb,anchor:this.a,duration:500}):0>f&&b.animate({resolution:e,easing:gb,anchor:this.a,duration:500});this.b=a;return!1}this.f+=d;a=Math.max(this.N-(a-this.b),0);clearTimeout(this.o);this.o=setTimeout(this.A.bind(this,b),a);return!1}
|
|
126
|
-
Jf.prototype.v=function(){this.l=void 0;Yc(this.H.U(),1,-1)};Jf.prototype.A=function(a){a=a.U();0<ad(a)[Zc]&&$c(a);Ve(a,-la(this.f,-1,1),this.a,this.F);this.j=void 0;this.f=0;this.a=null;this.o=this.b=void 0};var Lf="trackpad",Mf="wheel";function Nf(a){gf.call(this,{handleDownEvent:Of,handleDragEvent:Pf,handleUpEvent:Qf});a=a||{};this.j=null;this.v=void 0;this.b=!1;this.A=0;this.qa=void 0!==a.threshold?a.threshold:.3;this.S=void 0!==a.duration?a.duration:250}u(Nf,gf);
|
|
127
|
-
function Pf(a){console.assert(2<=this.a.length,"length of this.targetPointers should be greater than or equal to 2");var b=0,c=this.a[0],d=this.a[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.v&&(b=c-this.v,this.A+=b,!this.b&&Math.abs(this.A)>this.qa&&(this.b=!0));this.v=c;a=a.map;c=a.a.getBoundingClientRect();d=jf(this.a);d[0]-=c.left;d[1]-=c.top;this.j=a.Ca(d);this.b&&(c=a.U(),d=c.ma(),a.render(),Ue(c,d+b,this.j))}
|
|
128
|
-
function Qf(a){if(2>this.a.length){a=a.map.U();Yc(a,1,-1);if(this.b){var b=a.ma(),c=this.j,d=this.S,b=a.constrainRotation(b,0);Ue(a,b,c,d)}return!1}return!0}function Of(a){return 2<=this.a.length?(a=a.map,this.j=null,this.v=void 0,this.b=!1,this.A=0,this.f||Yc(a.U(),1,1),!0):!1}Nf.prototype.l=Lb;function Rf(a){gf.call(this,{handleDownEvent:Sf,handleDragEvent:Tf,handleUpEvent:Uf});a=a?a:{};this.A=a.constrainResolution||!1;this.j=null;this.S=void 0!==a.duration?a.duration:400;this.b=void 0;this.v=1}u(Rf,gf);
|
|
129
|
-
function Tf(a){console.assert(2<=this.a.length,"length of this.targetPointers should be 2 or more");var b=1,c=this.a[0],d=this.a[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);void 0!==this.b&&(b=this.b/e);this.b=e;1!=b&&(this.v=b);a=a.map;var e=a.U(),c=e.la(),d=a.a.getBoundingClientRect(),f=jf(this.a);f[0]-=d.left;f[1]-=d.top;this.j=a.Ca(f);a.render();We(e,c*b,this.j)}
|
|
130
|
-
function Uf(a){if(2>this.a.length){a=a.map.U();Yc(a,1,-1);if(this.A){var b=a.la(),c=this.j,d=this.S,b=a.constrainResolution(b,0,this.v-1);We(a,b,c,d)}return!1}return!0}function Sf(a){return 2<=this.a.length?(a=a.map,this.j=null,this.b=void 0,this.v=1,this.f||Yc(a.U(),1,1),!0):!1}Rf.prototype.l=Lb;function Vf(a){Na.call(this);var b=va({},a);b[Wf]=void 0!==a.opacity?a.opacity:1;b[Xf]=void 0!==a.visible?a.visible:!0;b[Yf]=void 0!==a.zIndex?a.zIndex:0;b[Zf]=void 0!==a.maxResolution?a.maxResolution:Infinity;b[$f]=void 0!==a.minResolution?a.minResolution:0;this.O(b);this.b={layer:this,Rc:!0}}u(Vf,Na);function ag(a){a.b.opacity=la(a.Wc(),0,1);a.b.kg=a.Jc();a.b.visible=a.Wb();a.b.extent=a.B();a.b.zIndex=a.Xc();a.b.maxResolution=a.Uc();a.b.minResolution=Math.max(a.Vc(),0);return a.b}l=Vf.prototype;
|
|
131
|
-
l.B=function(){return this.get(bg)};l.Uc=function(){return this.get(Zf)};l.Vc=function(){return this.get($f)};l.Wc=function(){return this.get(Wf)};l.Wb=function(){return this.get(Xf)};l.Xc=function(){return this.get(Yf)};l.wf=function(a){this.set(bg,a)};l.eg=function(a){this.set(Zf,a)};l.fg=function(a){this.set($f,a)};l.xf=function(a){this.set(Wf,a)};l.yf=function(a){this.set(Xf,a)};l.zf=function(a){this.set(Yf,a)};var Wf="opacity",Xf="visible",bg="extent",Yf="zIndex",Zf="maxResolution",$f="minResolution";function cg(a){var b=a||{};a=va({},b);delete a.layers;b=b.layers;Vf.call(this,a);this.f=[];this.a={};x(this,Pa(dg),this.ye,this);b?Array.isArray(b)?b=new Ad(b.slice()):v(b instanceof Ad,43):b=new Ad;this.set(dg,b)}u(cg,Vf);l=cg.prototype;l.Ab=function(){this.Wb()&&this.s()};
|
|
132
|
-
l.ye=function(){this.f.forEach(za);this.f.length=0;var a=this.get(dg);this.f.push(x(a,Fd,this.xe,this),x(a,Gd,this.ze,this));for(var b in this.a)this.a[b].forEach(za);wa(this.a);var a=a.a,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.a[ga(d).toString()]=[x(d,Sa,this.Ab,this),x(d,"change",this.Ab,this)];this.s()};l.xe=function(a){a=a.element;var b=ga(a).toString();console.assert(!(b in this.a),"listeners already registered");this.a[b]=[x(a,Sa,this.Ab,this),x(a,"change",this.Ab,this)];this.s()};
|
|
133
|
-
l.ze=function(a){a=ga(a.element).toString();console.assert(a in this.a,"no listeners to unregister");this.a[a].forEach(za);delete this.a[a];this.s()};
|
|
134
|
-
l.Qb=function(a){var b=void 0!==a?a:[],c=b.length;this.get(dg).forEach(function(a){a.Qb(b)});a=ag(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?Hb(e.extent,a.extent):a.extent);return b};l.Jc=function(){return"ready"};var dg="layers";function eg(a){Qb.call(this,{code:a,units:"m",extent:fg,global:!0,worldExtent:gg,getPointResolution:function(a,c){return a/na(c[1]/6378137)}})}u(eg,Qb);var hg=6378137*Math.PI,fg=[-hg,-hg,hg,hg],gg=[-180,-85,180,85],ac="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 eg(a)});
|
|
135
|
-
function bc(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));console.assert(0===b.length%c,"modulus of output.length with dimension should be 0");for(var e=0;e<d;e+=c){b[e]=hg*a[e]/180;var f=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));f>hg?f=hg:f<-hg&&(f=-hg);b[e+1]=f}return b}
|
|
136
|
-
function cc(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));console.assert(0===b.length%c,"modulus of output.length with dimension should be 0");for(var e=0;e<d;e+=c)b[e]=180*a[e]/hg,b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b};var ig=new Mb(6378137);function jg(a,b){Qb.call(this,{code:a,units:"degrees",extent:kg,axisOrientation:b,global:!0,metersPerUnit:lg,worldExtent:kg})}u(jg,Qb);var kg=[-180,-90,180,90],lg=Math.PI*ig.radius/180,dc=[new jg("CRS:84"),new jg("EPSG:4326","neu"),new jg("urn:ogc:def:crs:EPSG::4326","neu"),new jg("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new jg("urn:ogc:def:crs:OGC:1.3:CRS84"),new jg("urn:ogc:def:crs:OGC:2:84"),new jg("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new jg("urn:x-ogc:def:crs:EPSG:4326","neu")];function mg(){Xb(ac);Xb(dc);$b()};function ng(a,b,c,d,e){Ia.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}u(ng,Ia);function og(a){var b=va({},a);delete b.source;Vf.call(this,b);this.j=this.f=this.a=null;a.map&&this.setMap(a.map);x(this,Pa("source"),this.De,this);this.kd(a.source?a.source:null)}u(og,Vf);l=og.prototype;l.Qb=function(a){a=a?a:[];a.push(ag(this));return a};l.Ia=function(){return this.get("source")||null};l.Jc=function(){var a=this.Ia();return a?a.V():"undefined"};l.Af=function(){this.s()};l.De=function(){this.j&&(za(this.j),this.j=null);var a=this.Ia();a&&(this.j=x(a,"change",this.Af,this));this.s()};
|
|
137
|
-
l.setMap=function(a){this.a&&(za(this.a),this.a=null);a||this.s();this.f&&(za(this.f),this.f=null);a&&(this.a=x(a,"precompose",function(a){var c=ag(this);c.Rc=!1;c.zIndex=Infinity;a.frameState.layerStatesArray.push(c);a.frameState.layerStates[ga(this)]=c},this),this.f=x(this,"change",a.render,a),this.s())};l.kd=function(a){this.set("source",a)};function pg(){this.a={};this.c=0}function qg(a,b,c){console.assert(void 0!==b,"argument crossOrigin must be defined");return b+":"+a+":"+(c?Jd(c):"null")}pg.prototype.clear=function(){this.a={};this.c=0};pg.prototype.get=function(a,b,c){a=qg(a,b,c);return a in this.a?this.a[a]:null};pg.prototype.set=function(a,b,c,d){a=qg(a,b,c);this.a[a]=d;++this.c};var rg=new pg;function sg(){return[1,0,0,1,0,0]}function tg(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}function ug(a,b,c,d,e,f,g,h){var k=Math.sin(f);f=Math.cos(f);a[0]=d*f;a[1]=e*k;a[2]=-d*k;a[3]=e*f;a[4]=g*d*f-h*d*k+b;a[5]=g*e*k+h*e*f+c;return a};function vg(a,b){this.u=b;this.c={};this.i={}}u(vg,Ga);l=vg.prototype;l.$=function(){for(var a in this.c)Ha(this.c[a])};function wg(){if(32<rg.c){var a=0,b,c;for(b in rg.a)c=rg.a[b],0!==(a++&3)||La(c)||(delete rg.a[b],--rg.c)}}
|
|
138
|
-
l.Ba=function(a,b,c,d,e,f,g){function h(a,c){var f=ga(a).toString(),g=b.layerStates[ga(c)].Rc;if(!(f in b.skippedFeatureUids)||g)return d.call(e,a,g?c:null)}var k,n=b.viewState,m=n.resolution,p=n.projection,n=a;if(p.b){var p=p.B(),r=Db(p),w=a[0];if(w<p[0]||w>p[2])n=[w+r*Math.ceil((p[0]-w)/r),a[1]]}p=b.layerStatesArray;for(r=p.length-1;0<=r;--r){var t=p[r],w=t.layer;if(t.visible&&m>=t.minResolution&&m<t.maxResolution&&f.call(g,w)&&(t=xg(this,w),w.Ia()&&(k=t.Ba(w.Ia().N?n:a,b,c,h,e)),k))return k}};
|
|
139
|
-
function xg(a,b){var c=ga(b).toString();if(c in a.c)return a.c[c];var d;b instanceof F?d=new yg(b):(console.assert(!1,"unexpected layer configuration"),d=null);a.c[c]=d;a.i[c]=x(d,"change",a.we,a);return d}l.we=function(){this.u.render()};l.cd=fa;
|
|
140
|
-
l.Wf=function(a,b){for(var c in this.c)if(!(b&&c in b.layerStates)){var d=c;console.assert(d in this.c,"given layerKey (%s) exists in layerRenderers",d);var e=this.c[d];delete this.c[d];console.assert(d in this.i,"given layerKey (%s) exists in layerRendererListeners",d);za(this.i[d]);delete this.i[d];Ha(e)}};function Xa(a,b){return a.zIndex-b.zIndex};function F(a){a=a?a:{};var b=va({},a);delete b.preload;delete b.useInterimTilesOnError;og.call(this,b);this.v(void 0!==a.preload?a.preload:0);this.A(void 0!==a.useInterimTilesOnError?a.useInterimTilesOnError:!0)}u(F,og);F.prototype.l=function(){return this.get(zg)};F.prototype.v=function(a){this.set(zg,a)};F.prototype.o=function(){return this.get(Ag)};F.prototype.A=function(a){this.set(Ag,a)};var zg="preload",Ag="useInterimTilesOnError";var Bg=[0,0,0,1],Cg=[],Dg=[0,0,0,1];function Eg(a,b,c,d){0!==b&&(a.translate(c,d),a.rotate(b),a.translate(-c,-d))};function Fg(a){this.H=a.opacity;this.F=a.rotateWithView;this.da=a.rotation;this.v=a.scale;this.ta=a.snapToPixel};function Gg(a){a=a||{};this.a=void 0!==a.color?a.color:null}Gg.prototype.clone=function(){var a=this.a;return new Gg({color:a&&a.slice?a.slice():a||void 0})};function Hg(a){a=a||{};this.c=void 0!==a.color?a.color:null;this.b=a.lineCap;this.a=void 0!==a.lineDash?a.lineDash:null;this.f=a.lineJoin;this.u=a.miterLimit;this.i=a.width}Hg.prototype.clone=function(){var a=this.c;return new Hg({color:a&&a.slice?a.slice():a||void 0,lineCap:this.b,lineDash:this.a?this.a.slice():void 0,lineJoin:this.f,miterLimit:this.u,width:this.i})};Hg.prototype.setLineDash=function(a){this.a=a};function Ig(a){a=a||{};this.f=null;this.a=Jg;void 0!==a.geometry&&this.Eb(a.geometry);this.c=void 0!==a.fill?a.fill:null;this.i=void 0!==a.image?a.image:null;this.b=void 0!==a.stroke?a.stroke:null;this.u=void 0!==a.text?a.text:null;this.j=a.zIndex}Ig.prototype.clone=function(){var a=this.oa();a&&a.clone&&(a=a.clone());return new Ig({geometry:a,fill:this.c?this.c.clone():void 0,image:this.i?this.i.clone():void 0,stroke:this.b?this.b.clone():void 0,text:this.Ga()?this.Ga().clone():void 0,zIndex:this.j})};
|
|
141
|
-
Ig.prototype.oa=function(){return this.f};Ig.prototype.Ga=function(){return this.u};Ig.prototype.Eb=function(a){"function"===typeof a?this.a=a:"string"===typeof a?this.a=function(b){return b.get(a)}:a?a&&(this.a=function(){return a}):this.a=Jg;this.f=a};function Jg(a){return a.oa()};function Kg(){};function Lg(a,b,c,d,e){this.b=a;this.A=b;this.f=c;this.na=d;this.ob=e;this.u=this.a=this.c=this.qa=this.S=this.W=null;this.bb=this.ya=this.da=this.ta=this.F=this.H=0;this.cb=!1;this.j=this.eb=0;this.fb=!1;this.N=0;this.i="";this.hb=this.gb=0;this.ib=!1;this.P=this.mb=0;this.R=this.o=this.l=null;this.v=[];this.nb=sg()}u(Lg,Kg);
|
|
142
|
-
function Mg(a,b,c){if(a.u){console.assert(!0,"offset should be 0");console.assert(c==b.length,"end should be equal to the length of flatCoordinates");b=oc(b,0,c,2,a.na,a.v);c=a.b;var d=a.nb,e=c.globalAlpha;1!=a.da&&(c.globalAlpha=e*a.da);var f=a.eb;a.cb&&(f+=a.ob);var g,h;g=0;for(h=b.length;g<h;g+=2){var k=b[g]-a.H,n=b[g+1]-a.F;a.fb&&(k=Math.round(k),n=Math.round(n));if(0!==f||1!=a.j){var m=k+a.H,p=n+a.F;ug(d,m,p,a.j,a.j,f,-m,-p);c.setTransform.apply(c,d)}c.drawImage(a.u,a.ya,a.bb,a.N,a.ta,k,n,a.N,
|
|
143
|
-
a.ta)}0===f&&1==a.j||c.setTransform(1,0,0,1,0,0);1!=a.da&&(c.globalAlpha=e)}}
|
|
144
|
-
function Ng(a,b,c,d){var e=0;if(a.R&&""!==a.i){a.l&&Og(a,a.l);a.o&&Pg(a,a.o);var f=a.R,g=a.b,h=a.qa;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.qa={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});console.assert(0===e,"offset should be 0");console.assert(c==b.length,"end should be equal to the length of flatCoordinates");
|
|
145
|
-
b=oc(b,e,c,d,a.na,a.v);f=a.b;g=a.mb;for(a.ib&&(g+=a.ob);e<c;e+=d){var h=b[e]+a.gb,k=b[e+1]+a.hb;if(0!==g||1!=a.P){var n=ug(a.nb,h,k,a.P,a.P,g,-h,-k);f.setTransform.apply(f,n)}a.o&&f.strokeText(a.i,h,k);a.l&&f.fillText(a.i,h,k)}0===g&&1==a.P||f.setTransform(1,0,0,1,0,0)}}function Qg(a,b,c,d,e,f){var g=a.b;a=oc(b,c,d,e,a.na,a.v);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}
|
|
146
|
-
function Rg(a,b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f)c=Qg(a,b,c,d[f],e,!0);return c}l=Lg.prototype;l.Cc=function(a){if(Ib(this.f,a.B())){if(this.c||this.a){this.c&&Og(this,this.c);this.a&&Pg(this,this.a);var b;b=this.na;var c=this.v,d=a.g;b=d?oc(d,0,d.length,a.a,b,c):null;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.c&&d.fill();this.a&&d.stroke()}""!==this.i&&Ng(this,a.Db(),2,2)}};l.Yc=function(a){this.$f(a.c,a.b);this.cg(a.i);this.Cf(a.Ga())};
|
|
147
|
-
l.Ob=function(a){var b=a.T();switch(b){case "Point":this.Yd(a);break;case "LineString":this.Ud(a);break;case "Polygon":this.Zd(a);break;case "MultiPoint":this.Wd(a);break;case "MultiLineString":this.Vd(a);break;case "MultiPolygon":this.Xd(a);break;case "GeometryCollection":a=a.f;var c,b=0;for(c=a.length;b<c;++b)this.Ob(a[b]);break;case "Circle":this.Cc(a);break;default:console.assert(!1,"Unsupported geometry type: "+b)}};l.Td=function(a,b){var c=(0,b.a)(a);c&&Ib(this.f,c.B())&&(this.Yc(b),this.Ob(c))};
|
|
148
|
-
l.Yd=function(a){var b=a.g;a=a.a;this.u&&Mg(this,b,b.length);""!==this.i&&Ng(this,b,b.length,a)};l.Wd=function(a){var b=a.g;a=a.a;this.u&&Mg(this,b,b.length);""!==this.i&&Ng(this,b,b.length,a)};l.Ud=function(a){if(Ib(this.f,a.B())){if(this.a){Pg(this,this.a);var b=this.b,c=a.g;b.beginPath();Qg(this,c,0,c.length,a.a,!1);b.stroke()}""!==this.i&&(a.F!=a.i&&(a.o=a.Dc(.5,a.o),a.F=a.i),Ng(this,a.o,2,2))}};
|
|
149
|
-
l.Vd=function(a){var b=a.B();if(Ib(this.f,b)){if(this.a){Pg(this,this.a);var b=this.b,c=a.g,d=0,e=a.Ka(),f=a.a;b.beginPath();var g,h;g=0;for(h=e.length;g<h;++g)d=Qg(this,c,d,e[g],f,!1);b.stroke()}if(""!==this.i){b=[];c=a.g;e=0;d=a.b;a=a.a;f=0;for(g=d.length;f<g;++f)h=d[f],e=Sg(c,e,h,a,.5),Va(b,e),e=h;Ng(this,b,b.length,2)}}};
|
|
150
|
-
l.Zd=function(a){if(Ib(this.f,a.B())){if(this.a||this.c){this.c&&Og(this,this.c);this.a&&Pg(this,this.a);var b=this.b;b.beginPath();Rg(this,Rc(a),0,a.Ka(),a.a);this.c&&b.fill();this.a&&b.stroke()}""!==this.i&&(a=Sc(a),Ng(this,a,2,2))}};
|
|
151
|
-
l.Xd=function(a){if(Ib(this.f,a.B())){if(this.a||this.c){this.c&&Og(this,this.c);this.a&&Pg(this,this.a);var b=this.b,c=Tg(a),d=0,e=a.b,f=a.a,g,h;b.beginPath();g=0;for(h=e.length;g<h;++g)d=Rg(this,c,d,e[g],f);this.c&&b.fill();this.a&&b.stroke()}""!==this.i&&(a=Ug(a),Ng(this,a,a.length,2))}};function Og(a,b){var c=a.b,d=a.W;d?d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle):(c.fillStyle=b.fillStyle,a.W={fillStyle:b.fillStyle})}
|
|
152
|
-
function Pg(a,b){var c=a.b,d=a.S;if(d){d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap);var e;if(e=ee){a:{e=d.lineDash;var f=b.lineDash,g=e.length;if(g!==f.length)e=!1;else{for(var h=0;h<g;h++)if(e[h]!==f[h]){e=!1;break a}e=!0}}e=!e}e&&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=
|
|
153
|
-
c.strokeStyle=b.strokeStyle)}else c.lineCap=b.lineCap,ee&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.S={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle}}
|
|
154
|
-
l.$f=function(a,b){if(a){var c=a.a;this.c={fillStyle:Md(c?c:Bg)}}else this.c=null;if(b){var c=b.c,d=b.b,e=b.a,f=b.f,g=b.i,h=b.u;this.a={lineCap:void 0!==d?d:"round",lineDash:e?e:Cg,lineJoin:void 0!==f?f:"round",lineWidth:this.A*(void 0!==g?g:1),miterLimit:void 0!==h?h:10,strokeStyle:Md(c?c:Dg)}}else this.a=null};
|
|
155
|
-
l.cg=function(a){if(a){var b=Vg(a),c=Wg(a),d=Xg(a),e=Yg(a);console.assert(c,"imageImage must be truthy");this.H=b[0];this.F=b[1];this.ta=e[1];this.u=c;this.da=a.H;this.ya=d[0];this.bb=d[1];this.cb=a.F;this.eb=a.da;this.j=a.v;this.fb=a.ta;this.N=e[0]}else this.u=null};
|
|
156
|
-
l.Cf=function(a){if(a){var b=a.a;b?(b=b.a,this.l={fillStyle:Md(b?b:Bg)}):this.l=null;var c=a.i;if(c){var b=c.c,d=c.b,e=c.a,f=c.f,g=c.i,c=c.u;this.o={lineCap:void 0!==d?d:"round",lineDash:e?e:Cg,lineJoin:void 0!==f?f:"round",lineWidth:void 0!==g?g:1,miterLimit:void 0!==c?c:10,strokeStyle:Md(b?b:Dg)}}else this.o=null;var b=a.b,d=a.f,e=a.u,f=a.j,g=a.l,c=a.c,h=a.Ga(),k=a.P;a=a.o;this.R={font:void 0!==b?b:"10px sans-serif",textAlign:void 0!==k?k:"center",textBaseline:void 0!==a?a:"middle"};this.i=void 0!==
|
|
157
|
-
h?h:"";this.gb=void 0!==d?this.A*d:0;this.hb=void 0!==e?this.A*e:0;this.ib=void 0!==f?f:!1;this.mb=void 0!==g?g:0;this.P=this.A*(void 0!==c?c:1)}else this.i=""};function Zg(a){Ma.call(this);this.a=a}u(Zg,Ma);Zg.prototype.Ba=fa;function $g(a,b,c){return function(d,e){return ah(a,b,d,e,function(a){c[d]||(c[d]={});c[d][a.Aa.toString()]=a})}}function bh(a,b){b.ad()&&a.postRenderFunctions.push(function(a,b,e){b=ga(a).toString();a.Sa(e.viewState.projection,e.usedTiles[b])}.bind(null,b))};function ch(a){Zg.call(this,a);this.F=sg()}u(ch,Zg);function dh(a,b,c,d){var e=a.a;if(La(e,b)){var f=d.size[0]*d.pixelRatio,g=d.size[1]*d.pixelRatio,h=d.viewState.rotation;Eg(c,-h,f/2,g/2);var k=d.viewState,n=d.pixelRatio,m=n/k.resolution;a=ug(a.F,n*d.size[0]/2,n*d.size[1]/2,m,-m,-k.rotation,-k.center[0]+0,-k.center[1]);e.c(new ng(b,new Lg(c,d.pixelRatio,d.extent,a,d.viewState.rotation),d,c,null));Eg(c,h,f/2,g/2)}}ch.prototype.o=function(a,b,c,d){if(this.Ba(a,b,0,Kb,this))return c.call(d,this.a,null)};
|
|
158
|
-
ch.prototype.S=function(a,b){dh(this,"postcompose",a,b)};function eh(a){ch.call(this,a);this.v=sg();this.b=null}u(eh,ch);
|
|
159
|
-
eh.prototype.N=function(a,b,c){dh(this,"precompose",c,a);var d=this.f.canvas;if(d){var e=b.extent,f=void 0!==e;if(f){var g=a.pixelRatio,h=a.size[0]*g,k=a.size[1]*g,n=a.viewState.rotation,m=Ab(e),p=zb(e),r=yb(e),e=xb(e);tg(a.coordinateToPixelTransform,m);tg(a.coordinateToPixelTransform,p);tg(a.coordinateToPixelTransform,r);tg(a.coordinateToPixelTransform,e);c.save();Eg(c,-n,h/2,k/2);c.beginPath();c.moveTo(m[0]*g,m[1]*g);c.lineTo(p[0]*g,p[1]*g);c.lineTo(r[0]*g,r[1]*g);c.lineTo(e[0]*g,e[1]*g);c.clip();
|
|
160
|
-
Eg(c,n,h/2,k/2)}g=this.A;h=c.globalAlpha;c.globalAlpha=b.opacity;c.drawImage(d,0,0,+d.width,+d.height,Math.round(g[4]),Math.round(g[5]),Math.round(d.width*g[0]),Math.round(d.height*g[3]));c.globalAlpha=h;f&&c.restore()}this.S(c,a)};eh.prototype.Ba=function(a,b,c,d,e){var f=this.a;return f.Ia().Ba(a,b.viewState.resolution,b.viewState.rotation,c,b.skippedFeatureUids,function(a){return d.call(e,a,f)})};
|
|
161
|
-
eh.prototype.o=function(a,b,c,d){if(this.f.canvas){if(this.a.Ia().Ba!==fa)return ch.prototype.o.apply(this,arguments);var e=tg(this.v,a),f=e,g=b.viewState.resolution/this.j;f[0]*=g;f[1]*=g;this.b||(this.b=Nd(1,1));this.b.clearRect(0,0,1,1);this.b.drawImage(this.f.canvas,e[0],e[1],1,1,0,0,1,1);e=this.b.getImageData(0,0,1,1).data;if(0<e[3])return c.call(d,this.a,e)}};function yg(a){eh.call(this,a);this.f=Nd();this.u=null;this.l=[];this.qa=kb();this.ya=new fd(0,0,0,0);this.A=sg()}u(yg,eh);
|
|
162
|
-
yg.prototype.R=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.projection,g=e.resolution,h=e.center,k=this.a,e=k.Ia(),n=e.i,m=e.La(f),p=ud(m,g,0),r=nd(m,p),w=a.extent;void 0!==b.extent&&(w=Hb(w,b.extent));if(Cb(w))return!1;var t=od(m,w,r),z,J=md(m,p);z=nd(m,p);var W=id(sd(m,p),m.j);z=rb(J[0]+t.I*W[0]*z,J[1]+t.L*W[1]*z,J[0]+(t.J+1)*W[0]*z,J[1]+(t.M+1)*W[1]*z,void 0);J=e.A;W={};W[p]={};var ea=$g(e,f,W),Y=k.o(),ia=this.qa,aa=this.ya,da=!1,U,Z,ba;for(Z=t.I;Z<=t.J;++Z)for(ba=t.L;ba<=t.M;++ba){U=
|
|
163
|
-
fh(e,p,Z,ba,c,f);var N=U.V();if(2==N||4==N||3==N&&!Y)2==N&&(W[p][U.Aa.toString()]=U,da||-1!=this.l.indexOf(U)||(da=!0));else{a:if(U.a){N=U.a;do{if(2==N.V()){U=N;break a}N=N.a}while(N)}a:{for(var N=m,ma=U.Aa,ka=ea,sa=aa,lc=td(N,ma,ia),ma=ma[0]-1;ma>=N.minZoom;){if(ka.call(null,ma,qd(N,lc,ma,sa))){N=!0;break a}--ma}N=!1}N||(N=m,U=U.Aa,ka=aa,U[0]<N.maxZoom?(sa=td(N,U,ia),U=qd(N,sa,U[0]+1,ka)):U=null,U&&ea(p+1,U))}}Z=a.viewHints;if(!(this.j&&16<Date.now()-a.time&&(Z[Zc]||Z[1])||!da&&this.u&&tb(this.u,
|
|
164
|
-
z)&&this.W==n)){ba=gh(e,p,f);Z=(t.J-t.I+1)*ba[0];ba=(t.M-t.L+1)*ba[0];da=this.f;U=da.canvas;ea=e.Sb(f);U.width!=Z||U.height!=ba?(U.width=Z,U.height=ba):da.clearRect(0,0,Z,ba);this.l.length=0;Y=Object.keys(W).map(Number);Y.sort(Ta);for(var af,bf,N=0,ka=Y.length;N<ka;++N){Z=Y[N];aa=gh(e,Z,f);ba=nd(m,Z);var sa=ba/r,lc=J*e.Fc(f),ma=W[Z],Da;for(Da in ma)U=ma[Da],ba=td(m,U.Aa,ia),Z=(ba[0]-z[0])/r*J,ba=(z[3]-ba[3])/r*J,af=aa[0]*sa,bf=aa[1]*sa,ea||da.clearRect(Z,ba,af,bf),this.H(U,Z,ba,af,bf,lc),this.l.push(U)}this.W=
|
|
165
|
-
n;this.j=r;this.u=z}Da=c/J*this.j/g;Da=ug(this.A,c*d[0]/2,c*d[1]/2,Da,Da,0,J*(this.u[0]-h[0])/this.j,J*(h[1]-this.u[3])/this.j);ug(this.v,c*d[0]/2-Da[4],c*d[1]/2-Da[5],c/g,-c/g,0,-h[0],-h[1]);d=a.usedTiles;g=ga(e).toString();h=p.toString();g in d?h in d[g]?(d=d[g][h],t.I<d.I&&(d.I=t.I),t.J>d.J&&(d.J=t.J),t.L<d.L&&(d.L=t.L),t.M>d.M&&(d.M=t.M)):d[g][h]=t:(d[g]={},d[g][h]=t);k=k.l();t=ga(e).toString();t in a.wantedTiles||(a.wantedTiles[t]={});var d=a.wantedTiles[t],g=a.tileQueue,h=m.minZoom,mc;for(z=
|
|
166
|
-
p;z>=h;--z)for(mc=qd(m,w,z,mc),n=nd(m,z),r=mc.I;r<=mc.J;++r)for(J=mc.L;J<=mc.M;++J)p-z<=k?(Da=fh(e,z,r,J,c,f),0==Da.V()&&(d[Da.getKey()]=!0,Da.getKey()in g.c||g.j([Da,t,rd(m,Da.Aa),n]))):e.pd(z,r,J,f);bh(a,e);c=e.H;void 0!==c&&("string"===typeof c?a.logos[c]="":c&&(v("string"==typeof c.href,44),v("string"==typeof c.src,45),a.logos[c.src]=c.href));return 0<this.l.length};yg.prototype.H=function(a,b,c,d,e,f){(a=a.Cb())&&this.f.drawImage(a,f,f,a.width-2*f,a.height-2*f,b,c,d,e)};function hh(a,b){vg.call(this,0,b);this.f=Nd();this.a=this.f.canvas;this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";a.insertBefore(this.a,a.childNodes[0]||null);this.b=!0;this.j=sg()}u(hh,vg);function ih(a,b,c){var d=a.u,e=a.f;if(La(d,b)){var f=c.extent,g=c.pixelRatio,h=c.viewState.rotation,k=c.viewState,n=c.pixelRatio/k.resolution;a=ug(a.j,a.a.width/2,a.a.height/2,n,-n,-k.rotation,-k.center[0],-k.center[1]);d.c(new ng(b,new Lg(e,g,f,a,h),c,e,null))}}
|
|
167
|
-
hh.prototype.T=function(){return"canvas"};
|
|
168
|
-
hh.prototype.cd=function(a){if(a){var b=this.f,c=a.pixelRatio,d=Math.round(a.size[0]*c),c=Math.round(a.size[1]*c);this.a.width!=d||this.a.height!=c?(this.a.width=d,this.a.height=c):b.clearRect(0,0,d,c);var e=a.viewState.rotation,f=a.viewState,g=a.coordinateToPixelTransform,h=a.pixelToCoordinateTransform;console.assert(g,"frameState has a coordinateToPixelTransform");ug(g,a.size[0]/2,a.size[1]/2,1/f.resolution,-1/f.resolution,-f.rotation,-f.center[0],-f.center[1]);h[0]=g[0];h[1]=g[1];h[2]=g[2];h[3]=
|
|
169
|
-
g[3];h[4]=g[4];h[5]=g[5];f=h[0]*h[3]-h[1]*h[2];v(0!==f,32);var g=h[0],k=h[1],n=h[2],m=h[3],p=h[4],r=h[5];h[0]=m/f;h[1]=-k/f;h[2]=-n/f;h[3]=g/f;h[4]=(n*r-m*p)/f;h[5]=-(g*r-k*p)/f;ih(this,"precompose",a);h=a.layerStatesArray;Wa(h);Eg(b,e,d/2,c/2);f=a.viewState.resolution;g=0;for(k=h.length;g<k;++g)n=h[g],m=n.layer,m=xg(this,m),n.visible&&f>=n.minResolution&&f<n.maxResolution&&"ready"==n.kg&&m.R(a,n)&&m.N(a,n,b);Eg(b,-e,d/2,c/2);ih(this,"postcompose",a);this.b||(this.a.style.display="",this.b=!0);for(var w in this.c)if(!(w in
|
|
170
|
-
a.layerStates)){a.postRenderFunctions.push(this.Wf.bind(this));break}a.postRenderFunctions.push(wg)}else this.b&&(this.a.style.display="none",this.b=!1)};(function(){var a={},b={K:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.K=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Kg=c()}})(function(){return function d(a,b,g){function h(m,n){if(!b[m]){if(!a[m]){var r="function"==typeof require&&require;if(!n&&r)return r(m,!0);if(k)return k(m,!0);r=Error("Cannot find module '"+m+"'");throw r.code="MODULE_NOT_FOUND",r;}r=b[m]={K:{}};a[m][0].call(r.K,function(b){var d=
|
|
171
|
-
a[m][1][b];return h(d?d:b)},r,r.K,d,a,b,g)}return b[m].K}for(var k="function"==typeof require&&require,n=0;n<g.length;n++)h(g[n]);return h}({1:[function(a,b){function f(a,b,d,e,r){d=d||0;e=e||a.length-1;for(r=r||h;e>d;){if(600<e-d){var w=e-d+1,t=b-d+1,z=Math.log(w),J=.5*Math.exp(2*z/3),z=.5*Math.sqrt(z*J*(w-J)/w)*(0>t-w/2?-1:1);f(a,b,Math.max(d,Math.floor(b-t*J/w+z)),Math.min(e,Math.floor(b+(w-t)*J/w+z)),r)}w=a[b];t=d;J=e;g(a,d,b);for(0<r(a[e],w)&&g(a,d,e);t<J;){g(a,t,J);t++;for(J--;0>r(a[t],w);)t++;
|
|
172
|
-
for(;0<r(a[J],w);)J--}0===r(a[d],w)?g(a,d,J):(J++,g(a,J,e));J<=b&&(d=J+1);b<=J&&(e=J-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.K=f},{}],2:[function(a,b){function f(a,b){if(!(this instanceof f))return new f(a,b);this.Kb=Math.max(4,a||9);this.tc=Math.max(2,Math.ceil(.4*this.Kb));b&&this.Cd(b);this.clear()}function g(a,b){h(a,0,a.children.length,b,a)}function h(a,b,d,e,f){f||(f=z(null));f.I=Infinity;f.L=Infinity;f.J=-Infinity;f.M=-Infinity;for(var g;b<
|
|
173
|
-
d;b++)g=a.children[b],k(f,a.ka?e(g):g);return f}function k(a,b){a.I=Math.min(a.I,b.I);a.L=Math.min(a.L,b.L);a.J=Math.max(a.J,b.J);a.M=Math.max(a.M,b.M)}function n(a,b){return a.I-b.I}function m(a,b){return a.L-b.L}function p(a){return(a.J-a.I)*(a.M-a.L)}function r(a){return a.J-a.I+(a.M-a.L)}function w(a,b){return a.I<=b.I&&a.L<=b.L&&b.J<=a.J&&b.M<=a.M}function t(a,b){return b.I<=a.J&&b.L<=a.M&&b.J>=a.I&&b.M>=a.L}function z(a){return{children:a,height:1,ka:!0,I:Infinity,L:Infinity,J:-Infinity,M:-Infinity}}
|
|
174
|
-
function J(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,W(a,h,b,d,f),g.push(b,h,h,d))}b.K=f;var W=a("quickselect");f.prototype={all:function(){return this.oc(this.data,[])},search:function(a){var b=this.data,d=[],e=this.pa;if(!t(a,b))return d;for(var f=[],g,h,k,m;b;){g=0;for(h=b.children.length;g<h;g++)k=b.children[g],m=b.ka?e(k):k,t(a,m)&&(b.ka?d.push(k):w(a,m)?this.oc(k,d):f.push(k));b=f.pop()}return d},load:function(a){if(!a||!a.length)return this;
|
|
175
|
-
if(a.length<this.tc){for(var b=0,d=a.length;b<d;b++)this.Ie(a[b]);return this}a=this.qc(a.slice(),0,a.length-1,0);this.data.children.length?this.data.height===a.height?this.wc(this.data,a):(this.data.height<a.height&&(b=this.data,this.data=a,a=b),this.sc(a,this.data.height-a.height-1,!0)):this.data=a;return this},Ie:function(a){a&&this.sc(a,this.data.height-1);return this},clear:function(){this.data=z([]);return this},remove:function(a,b){if(!a)return this;for(var d=this.data,e=this.pa(a),f=[],g=
|
|
176
|
-
[],h,k,m,n;d||f.length;){d||(d=f.pop(),k=f[f.length-1],h=g.pop(),n=!0);if(d.ka){a:{m=a;var p=d.children,r=b;if(r){for(var t=0;t<p.length;t++)if(r(m,p[t])){m=t;break a}m=-1}else m=p.indexOf(m)}if(-1!==m){d.children.splice(m,1);f.push(d);this.Ad(f);break}}n||d.ka||!w(d,e)?k?(h++,d=k.children[h],n=!1):d=null:(f.push(d),g.push(h),h=0,k=d,d=d.children[0])}return this},pa:function(a){return a},Mb:n,Nb:m,toJSON:function(){return this.data},oc:function(a,b){for(var d=[];a;)a.ka?b.push.apply(b,a.children):
|
|
177
|
-
d.push.apply(d,a.children),a=d.pop();return b},qc:function(a,b,d,e){var f=d-b+1,h=this.Kb,k;if(f<=h)return k=z(a.slice(b,d+1)),g(k,this.pa),k;e||(e=Math.ceil(Math.log(f)/Math.log(h)),h=Math.ceil(f/Math.pow(h,e-1)));k=z([]);k.ka=!1;k.height=e;var f=Math.ceil(f/h),h=f*Math.ceil(Math.sqrt(h)),m,n,p;for(J(a,b,d,h,this.Mb);b<=d;b+=h)for(n=Math.min(b+h-1,d),J(a,b,n,f,this.Nb),m=b;m<=n;m+=f)p=Math.min(m+f-1,n),k.children.push(this.qc(a,m,p,e-1));g(k,this.pa);return k},zd:function(a,b,d,e){for(var f,g,h,
|
|
178
|
-
k,m,n,r,t;;){e.push(b);if(b.ka||e.length-1===d)break;r=t=Infinity;f=0;for(g=b.children.length;f<g;f++)h=b.children[f],m=p(h),n=(Math.max(h.J,a.J)-Math.min(h.I,a.I))*(Math.max(h.M,a.M)-Math.min(h.L,a.L))-m,n<t?(t=n,r=m<r?m:r,k=h):n===t&&m<r&&(r=m,k=h);b=k||b.children[0]}return b},sc:function(a,b,d){var e=this.pa;d=d?a:e(a);var e=[],f=this.zd(d,this.data,b,e);f.children.push(a);for(k(f,d);0<=b;)if(e[b].children.length>this.Kb)this.Gd(e,b),b--;else break;this.wd(d,e,b)},Gd:function(a,b){var d=a[b],e=
|
|
179
|
-
d.children.length,f=this.tc;this.xd(d,f,e);e=this.yd(d,f,e);e=z(d.children.splice(e,d.children.length-e));e.height=d.height;e.ka=d.ka;g(d,this.pa);g(e,this.pa);b?a[b-1].children.push(e):this.wc(d,e)},wc:function(a,b){this.data=z([a,b]);this.data.height=a.height+1;this.data.ka=!1;g(this.data,this.pa)},yd:function(a,b,d){var e,f,g,k,m,n,r;m=n=Infinity;for(e=b;e<=d-b;e++)f=h(a,0,e,this.pa),g=h(a,e,d,this.pa),k=Math.max(0,Math.min(f.J,g.J)-Math.max(f.I,g.I))*Math.max(0,Math.min(f.M,g.M)-Math.max(f.L,
|
|
180
|
-
g.L)),f=p(f)+p(g),k<m?(m=k,r=e,n=f<n?f:n):k===m&&f<n&&(n=f,r=e);return r},xd:function(a,b,d){var e=a.ka?this.Mb:n,f=a.ka?this.Nb:m,g=this.pc(a,b,d,e);b=this.pc(a,b,d,f);g<b&&a.children.sort(e)},pc:function(a,b,d,e){a.children.sort(e);e=this.pa;var f=h(a,0,b,e),g=h(a,d-b,d,e),m=r(f)+r(g),n,p;for(n=b;n<d-b;n++)p=a.children[n],k(f,a.ka?e(p):p),m+=r(f);for(n=d-b-1;n>=b;n--)p=a.children[n],k(g,a.ka?e(p):p),m+=r(g);return m},wd:function(a,b,d){for(;0<=d;d--)k(b[d],a)},Ad:function(a){for(var b=a.length-
|
|
181
|
-
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.pa)},Cd:function(a){var b=["return a"," - b",";"];this.Mb=new Function("a","b",b.join(a[0]));this.Nb=new Function("a","b",b.join(a[1]));this.pa=new Function("a","return {minX: a"+a[0]+", minY: a"+a[1]+", maxX: a"+a[2]+", maxY: a"+a[3]+"};")}}},{quickselect:1}]},{},[2])(2)})})();var jh,kh=-1<navigator.userAgent.indexOf("OPR"),lh=-1<navigator.userAgent.indexOf("Edge");jh=!(!navigator.userAgent.match("CriOS")&&"chrome"in window&&"Google Inc."===navigator.vendor&&0==kh&&0==lh);function mh(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)]}
|
|
182
|
-
function nh(a,b,c,d,e,f,g,h,k,n,m){var p=Nd(Math.round(c*a),Math.round(c*b));if(0===k.length)return p.canvas;p.scale(c,c);var r=kb();k.forEach(function(a){ub(r,a.extent)});var w=Nd(Math.round(c*Db(r)/d),Math.round(c*Eb(r)/d)),t=c/d;k.forEach(function(a){w.drawImage(a.image,n,n,a.image.width-2*n,a.image.height-2*n,(a.extent[0]-r[0])*t,-(a.extent[3]-r[3])*t,Db(a.extent)*t,Eb(a.extent)*t)});var z=Ab(g);h.b.forEach(function(a){var b=a.source,e=a.target,g=b[1][0],h=b[1][1],k=b[2][0],m=b[2][1];a=(e[0][0]-
|
|
183
|
-
z[0])/f;var n=-(e[0][1]-z[1])/f,t=(e[1][0]-z[0])/f,ba=-(e[1][1]-z[1])/f,N=(e[2][0]-z[0])/f,ma=-(e[2][1]-z[1])/f,e=b[0][0],b=b[0][1],g=g-e,h=h-b,k=k-e,m=m-b;a:{g=[[g,h,0,0,t-a],[k,m,0,0,N-a],[0,0,g,h,ba-n],[0,0,k,m,ma-n]];h=g.length;for(k=0;k<h;k++)console.assert(g[k].length==h+1,"every row should have correct number of columns");for(k=0;k<h;k++){for(var m=k,ka=Math.abs(g[k][k]),sa=k+1;sa<h;sa++){var lc=Math.abs(g[sa][k]);lc>ka&&(ka=lc,m=sa)}if(0===ka){g=null;break a}ka=g[m];g[m]=g[k];g[k]=ka;for(m=
|
|
184
|
-
k+1;m<h;m++)for(ka=-g[m][k]/g[k][k],sa=k;sa<h+1;sa++)g[m][sa]=k==sa?0:g[m][sa]+ka*g[k][sa]}k=Array(h);for(m=h-1;0<=m;m--)for(k[m]=g[m][h]/g[m][m],ka=m-1;0<=ka;ka--)g[ka][h]-=g[ka][m]*k[m];g=k}g&&(p.save(),p.beginPath(),jh?(k=(a+t+N)/3,m=(n+ba+ma)/3,h=mh(k,m,a,n),t=mh(k,m,t,ba),N=mh(k,m,N,ma),p.moveTo(t[0],t[1]),p.lineTo(h[0],h[1]),p.lineTo(N[0],N[1])):(p.moveTo(t,ba),p.lineTo(a,n),p.lineTo(N,ma)),p.clip(),p.transform(g[0],g[2],g[1],g[3],a,n),p.translate(r[0]-e,r[3]-b),p.scale(d/c,-d/c),p.drawImage(w.canvas,
|
|
185
|
-
0,0),p.restore())});m&&(p.save(),p.strokeStyle="black",p.lineWidth=1,h.b.forEach(function(a){var b=a.target;a=(b[0][0]-z[0])/f;var c=-(b[0][1]-z[1])/f,d=(b[1][0]-z[0])/f,e=-(b[1][1]-z[1])/f,g=(b[2][0]-z[0])/f,b=-(b[2][1]-z[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 oh(a,b,c,d,e){this.i=a;this.f=b;var f={},g=ic(this.f,this.i);this.c=function(a){var b=a[0]+"/"+a[1];f[b]||(f[b]=g(a));return f[b]};this.u=d;this.o=e*e;this.b=[];this.l=!1;this.P=this.i.b&&!!d&&!!this.i.B()&&Db(d)==Db(this.i.B());this.a=this.i.B()?Db(this.i.B()):null;this.j=this.f.B()?Db(this.f.B()):null;a=Ab(c);b=zb(c);d=yb(c);c=xb(c);e=this.c(a);var h=this.c(b),k=this.c(d),n=this.c(c);ph(this,a,b,d,c,e,h,k,n,10);if(this.l){console.assert(null!==this.a);var m=Infinity;this.b.forEach(function(a){m=
|
|
186
|
-
Math.min(m,a.source[0][0],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])-m>this.a/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]-m>this.a/2&&(b[0][0]-=this.a);b[1][0]-m>this.a/2&&(b[1][0]-=this.a);b[2][0]-m>this.a/2&&(b[2][0]-=this.a);Math.max(b[0][0],b[1][0],b[2][0])-Math.min(b[0][0],b[1][0],b[2][0])<this.a/2&&(a.source=b)}},this)}f={}}
|
|
187
|
-
function ph(a,b,c,d,e,f,g,h,k,n){var m=jb([f,g,h,k]),p=a.a?Db(m)/a.a:null,r=a.a,w=a.i.b&&.5<p&&1>p,t=!1;if(0<n){if(a.f.c&&a.j)var z=jb([b,c,d,e]),t=t|.25<Db(z)/a.j;!w&&a.i.c&&p&&(t|=.25<p)}if(t||!a.u||Ib(m,a.u)){if(!(t||isFinite(f[0])&&isFinite(f[1])&&isFinite(g[0])&&isFinite(g[1])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(k[0])&&isFinite(k[1])))if(0<n)t=!0;else return;if(0<n&&(t||(m=a.c([(b[0]+d[0])/2,(b[1]+d[1])/2]),r=w?(pa(f[0],r)+pa(h[0],r))/2-pa(m[0],r):(f[0]+h[0])/2-m[0],m=(f[1]+h[1])/2-m[1],
|
|
188
|
-
t=r*r+m*m>a.o),t)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(w=[(c[0]+d[0])/2,(c[1]+d[1])/2],r=a.c(w),m=[(e[0]+b[0])/2,(e[1]+b[1])/2],p=a.c(m),ph(a,b,c,w,m,f,g,r,p,n-1),ph(a,m,w,d,e,p,r,h,k,n-1)):(w=[(b[0]+c[0])/2,(b[1]+c[1])/2],r=a.c(w),m=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=a.c(m),ph(a,b,w,m,e,f,r,p,k,n-1),ph(a,w,c,d,m,r,g,h,p,n-1));return}if(w){if(!a.P)return;a.l=!0}a.b.push({source:[f,h,k],target:[b,d,e]});a.b.push({source:[f,g,h],target:[b,c,d]})}}
|
|
189
|
-
function qh(a){var b=kb();a.b.forEach(function(a){a=a.source;lb(b,a[0]);lb(b,a[1]);lb(b,a[2])});return b};function rh(a){Na.call(this);this.b=Wb(a.projection);this.o=sh(a.attributions);this.H=a.logo;this.R=void 0!==a.state?a.state:"ready";this.N=void 0!==a.wrapX?a.wrapX:!1}u(rh,Na);function sh(a){if("string"===typeof a)return[new zd({html:a})];if(a instanceof zd)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 zd({html:e}):e}return c}return null}l=rh.prototype;l.Ba=fa;l.Zc=function(){return this.o};l.Hc=function(){return this.H};l.$c=function(){return this.b};
|
|
190
|
-
l.V=function(){return this.R};l.ac=function(){this.s()};l.fd=function(a){this.o=sh(a);this.s()};function th(){this.b=0;this.i={};this.c=this.a=null}l=th.prototype;l.clear=function(){this.b=0;this.i={};this.c=this.a=null};l.forEach=function(a,b){for(var c=this.a;c;)a.call(b,c.ab,c.Ma,this),c=c.va};l.get=function(a){a=this.i[a];v(void 0!==a,15);if(a===this.c)return a.ab;a===this.a?(this.a=this.a.va,this.a.Za=null):(a.va.Za=a.Za,a.Za.va=a.va);a.va=null;a.Za=this.c;this.c=this.c.va=a;return a.ab};
|
|
191
|
-
l.pop=function(){console.assert(this.a,"oldest must not be null");console.assert(this.c,"newest must not be null");var a=this.a;console.assert(a.Ma in this.i,"oldest is indexed in entries");delete this.i[a.Ma];a.va&&(a.va.Za=null);this.a=a.va;this.a||(this.c=null);--this.b;return a.ab};l.replace=function(a,b){this.get(a);this.i[a].ab=b};
|
|
192
|
-
l.set=function(a,b){console.assert(!(a in{}),'key is not a standard property of objects (e.g. "__proto__")');v(!(a in this.i),16);var c={Ma:a,va:null,Za:this.c,ab:b};this.c?this.c.va=c:this.a=c;this.c=c;this.i[a]=c;++this.b};var uh=["canvas","webgl"];
|
|
193
|
-
function G(a){Na.call(this);var b=vh(a);this.ob=void 0!==a.loadTilesWhileAnimating?a.loadTilesWhileAnimating:!1;this.sd=void 0!==a.loadTilesWhileInteracting?a.loadTilesWhileInteracting:!1;this.ud=void 0!==a.pixelRatio?a.pixelRatio:de;this.td=b.logos;this.bb=function(){this.j=void 0;this.Xf.call(this,Date.now())}.bind(this);this.mb=sg();this.rd=sg();this.nb=0;this.b=null;this.ib=kb();this.F=this.W=this.S=null;this.a=document.createElement("DIV");this.a.className="ol-viewport"+(ge?" ol-touch":"");this.a.style.position=
|
|
194
|
-
"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.R=document.createElement("DIV");this.R.className="ol-overlaycontainer";this.a.appendChild(this.R);this.N=document.createElement("DIV");this.N.className="ol-overlaycontainer-stopevent";a="click dblclick mousedown touchstart mspointerdown pointerdown mousewheel wheel".split(" ");for(var c=0,d=a.length;c<d;++c)x(this.N,a[c],Ja);this.a.appendChild(this.N);
|
|
195
|
-
this.fb=new Je(this);for(var e in Xd)x(this.fb,Xd[e],this.Oc,this);this.eb=b.keyboardEventTarget;this.A=null;x(this.a,"wheel",this.Wa,this);x(this.a,"mousewheel",this.Wa,this);this.o=b.controls;this.l=b.interactions;this.v=b.overlays;this.cc={};this.H=new b.Zf(this.a,this);this.qa=null;this.ya=[];this.hb=[];this.gb=new Qe(this.pe.bind(this),this.Fe.bind(this));this.Hd={};x(this,Pa(wh),this.ve,this);x(this,Pa(xh),this.Ge,this);x(this,Pa(yh),this.Ce,this);x(this,Pa(zh),this.Ee,this);this.O(b.values);
|
|
196
|
-
this.o.forEach(function(a){a.setMap(this)},this);x(this.o,Fd,function(a){a.element.setMap(this)},this);x(this.o,Gd,function(a){a.element.setMap(null)},this);this.l.forEach(function(a){a.setMap(this)},this);x(this.l,Fd,function(a){a.element.setMap(this)},this);x(this.l,Gd,function(a){a.element.setMap(null)},this);this.v.forEach(this.xc,this);x(this.v,Fd,function(a){this.xc(a.element)},this);x(this.v,Gd,function(a){var b=a.element.hf();void 0!==b&&delete this.cc[b.toString()];a.element.setMap(null)},
|
|
197
|
-
this)}u(G,Na);l=G.prototype;l.Id=function(a){this.o.push(a)};l.Jd=function(a){this.l.push(a)};l.Kd=function(a){this.Ta().get(dg).push(a)};l.Ld=function(a){this.v.push(a)};l.xc=function(a){var b=a.hf();void 0!==b&&(this.cc[b.toString()]=a);a.setMap(this)};l.Rd=function(a){console.warn("map.beforeRender() is deprecated. Use view.animate() instead.");this.render();Array.prototype.push.apply(this.ya,arguments)};
|
|
198
|
-
l.$=function(){Ha(this.fb);Ha(this.H);Fa(this.a,"wheel",this.Wa,this);Fa(this.a,"mousewheel",this.Wa,this);void 0!==this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0);this.j&&(cancelAnimationFrame(this.j),this.j=void 0);this.Sc(null);Na.prototype.$.call(this)};l.ae=function(a,b,c){if(this.b)return a=this.Ca(a),c=void 0!==c?c:{},this.H.Ba(a,this.b,void 0!==c.hitTolerance?c.hitTolerance*this.b.pixelRatio:0,b,null,void 0!==c.layerFilter?c.layerFilter:Kb,null)};
|
|
199
|
-
l.ff=function(a,b,c,d,e){if(this.b){a:{var f=this.H,g=this.b;c=void 0!==c?c:null;d=void 0!==d?d:Kb;e=void 0!==e?e:null;var h,k=g.viewState.resolution,n=g.layerStatesArray,m=n.length;a=tg(g.pixelToCoordinateTransform,a.slice());for(--m;0<=m;--m){h=n[m];var p=h.layer;if(h.visible&&k>=h.minResolution&&k<h.maxResolution&&d.call(e,p)&&(h=xg(f,p).o(a,g,b,c))){b=h;break a}}b=void 0}return b}};
|
|
200
|
-
l.He=function(a,b){if(!this.b)return!1;var c=this.Ca(a);b=void 0!==b?b:{};var d=this.H;return void 0!==d.Ba(c,this.b,void 0!==b.hitTolerance?b.hitTolerance*this.b.pixelRatio:0,Kb,d,void 0!==b.layerFilter?b.layerFilter:Kb,null)};l.ee=function(a){return this.Ca(this.Pb(a))};l.Pb=function(a){var b=this.a.getBoundingClientRect();a=a.changedTouches?a.changedTouches[0]:a;return[a.clientX-b.left,a.clientY-b.top]};l.Ub=function(){return this.get(zh)};
|
|
201
|
-
l.Vb=function(){var a=this.Ub();return void 0!==a?"string"===typeof a?document.getElementById(a):a:null};l.Ca=function(a){var b=this.b;return b?tg(b.pixelToCoordinateTransform,a.slice()):null};l.de=function(){return this.o};l.me=function(){return this.v};l.le=function(a){a=this.cc[a.toString()];return void 0!==a?a:null};l.fe=function(){return this.l};l.Ta=function(){return this.get(wh)};l.gf=function(){return this.Ta().get(dg)};
|
|
202
|
-
l.yb=function(a){var b=this.b;return b?tg(b.coordinateToPixelTransform,a.slice(0,2)):null};l.Bb=function(){return this.get(yh)};l.U=function(){return this.get(xh)};l.re=function(){return this.a};l.pe=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};l.Wa=function(a,b){var c=new Wd(b||a.type,this,a);this.Oc(c)};
|
|
203
|
-
l.Oc=function(a){if(this.b){this.qa=a.coordinate;a.frameState=this.b;var b=this.l.a,c;if(!1!==this.c(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.get(Te)&&!d.handleEvent(a))break}}};
|
|
204
|
-
l.Be=function(){var a=this.b,b=this.gb;if(0!==b.a.length){var c=16,d=c;if(a){var e=a.viewHints;e[Zc]&&(c=this.ob?8:0,d=2);e[1]&&(c=this.sd?8:0,d=2)}if(b.f<c){var e=b.P,f=b.a,g=b.i,h=0,k=f.length,n,m,p;for(m=0;m<k;++m)n=f[m],p=e(n),Infinity==p?delete b.c[b.u(n)]:(g[h]=p,f[h++]=n);f.length=h;g.length=h;for(e=(b.a.length>>1)-1;0<=e;e--)Pe(b,e);for(e=0;b.f<c&&e<d&&0<b.a.length;)f=b,h=f.a,console.assert(0<h.length,"must have elements in order to be able to dequeue"),k=f.i,g=h[0],1==h.length?(h.length=
|
|
205
|
-
0,k.length=0):(h[0]=h.pop(),k[0]=k.pop(),Pe(f,0)),h=f.u(g),console.assert(h in f.c,"key %s is not listed as queued",h),delete f.c[h],f=g[0],g=f.getKey(),0!==f.V()||g in b.b||(b.b[g]=!0,++b.f,++e,f.load()),console.assert(Object.keys(b.b).length===b.f)}}b=this.hb;d=0;for(c=b.length;d<c;++d)b[d](this,a);b.length=0};l.Ce=function(){this.render()};
|
|
206
|
-
l.Ee=function(){var a;this.Ub()&&(a=this.Vb(),console.assert(null!==a,"expects a non-null value for targetElement"));if(this.A){for(var b=0,c=this.A.length;b<c;++b)za(this.A[b]);this.A=null}a?(a.appendChild(this.a),a=this.eb?this.eb:a,this.A=[x(a,"keydown",this.Wa,this),x(a,"keypress",this.Wa,this)],this.f||(this.f=this.lc.bind(this),window.addEventListener("resize",this.f,!1))):(Od(this.a),void 0!==this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0));this.lc()};l.Fe=function(){this.render()};
|
|
207
|
-
l.Qc=function(){this.render()};l.Ge=function(){this.S&&(za(this.S),this.S=null);this.W&&(za(this.W),this.W=null);var a=this.U();a&&(this.S=x(a,Sa,this.Qc,this),this.W=x(a,"change",this.Qc,this));this.render()};l.ve=function(){this.F&&(this.F.forEach(za),this.F=null);var a=this.Ta();a&&(this.F=[x(a,Sa,this.render,this),x(a,"change",this.render,this)]);this.render()};l.Yf=function(){this.j&&cancelAnimationFrame(this.j);this.bb()};l.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.bb))};
|
|
208
|
-
l.Sf=function(a){return this.o.remove(a)};l.Tf=function(a){return this.l.remove(a)};l.Uf=function(a){return this.Ta().get(dg).remove(a)};l.Vf=function(a){return this.v.remove(a)};
|
|
209
|
-
l.Xf=function(a){var b,c,d,e=this.Bb(),f=this.U(),g=kb(),h=null;if(void 0!==e&&0<e[0]&&0<e[1]&&f&&ed(f)){var h=ad(f,this.b?this.b.viewHints:void 0),k=this.Ta().Qb(),n={};b=0;for(c=k.length;b<c;++b)n[ga(k[b].layer)]=k[b];d=f.V();h={animate:!1,attributions:{},coordinateToPixelTransform:this.mb,extent:g,focus:this.qa?this.qa:d.center,index:this.nb++,layerStates:n,layerStatesArray:k,logos:va({},this.td),pixelRatio:this.ud,pixelToCoordinateTransform:this.rd,postRenderFunctions:[],size:e,skippedFeatureUids:this.Hd,
|
|
210
|
-
tileQueue:this.gb,time:a,usedTiles:{},viewState:d,viewHints:h,wantedTiles:{}}}if(h){a=this.ya;b=e=0;for(c=a.length;b<c;++b)f=a[b],f(this,h)&&(a[e++]=f);a.length=e;h.extent=Gb(d.center,d.resolution,d.rotation,h.size,g)}this.b=h;this.H.cd(h);h&&(h.animate&&this.render(),Array.prototype.push.apply(this.hb,h.postRenderFunctions),0===this.ya.length&&!h.viewHints[Zc]&&!h.viewHints[1]&&!tb(h.extent,this.ib)&&(this.c(new Pd("moveend",this,h)),b=h.extent,c=this.ib))&&(c[0]=b[0],c[1]=b[1],c[2]=b[2],c[3]=b[3]);
|
|
211
|
-
this.c(new Pd("postrender",this,h));setTimeout(this.Be.bind(this),0)};l.dg=function(a){this.set(wh,a)};l.gc=function(a){this.set(yh,a)};l.Sc=function(a){this.set(zh,a)};l.gg=function(a){this.set(xh,a)};l.lc=function(){var a=this.Vb();if(a){var b=getComputedStyle(a);this.gc([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.gc(void 0)};
|
|
212
|
-
function vh(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"]=
|
|
213
|
-
"https://openlayers.org/";else{var e=a.logo;"string"===typeof e?d[e]="":e instanceof HTMLElement?d[ga(e).toString()]=e:e&&(v("string"==typeof e.href,44),v("string"==typeof e.src,45),d[e.src]=e.href)}e=a.layers instanceof cg?a.layers:new cg({layers:a.layers});c[wh]=e;c[zh]=a.target;c[xh]=void 0!==a.view?a.view:new E;var e=vg,f;void 0!==a.renderer?(Array.isArray(a.renderer)?f=a.renderer:"string"===typeof a.renderer?f=[a.renderer]:v(!1,46),0<=f.indexOf("dom")&&(console.assert(!1,"The DOM render has been removed"),
|
|
214
|
-
f=f.concat(uh))):f=uh;var g,h;g=0;for(h=f.length;g<h;++g)if("canvas"==f[g]&&fe){e=hh;break}void 0!==a.controls?Array.isArray(a.controls)?f=new Ad(a.controls.slice()):(v(a.controls instanceof Ad,47),f=a.controls):(f={},g=new Ad,(void 0!==f.zoom?f.zoom:1)&&g.push(new Vd(f.zoomOptions)),(void 0!==f.rotate?f.rotate:1)&&g.push(new Td(f.rotateOptions)),(void 0!==f.attribution?f.attribution:1)&&g.push(new Rd(f.attributionOptions)),f=g);if(void 0!==a.interactions)Array.isArray(a.interactions)?g=new Ad(a.interactions.slice()):
|
|
215
|
-
(v(a.interactions instanceof Ad,48),g=a.interactions);else{g={};h=new Ad;var k=new Re;(void 0!==g.altShiftDragRotate?g.altShiftDragRotate:1)&&h.push(new of);(void 0!==g.doubleClickZoom?g.doubleClickZoom:1)&&h.push(new Xe({delta:g.zoomDelta,duration:g.zoomDuration}));(void 0!==g.dragPan?g.dragPan:1)&&h.push(new kf({kinetic:k}));(void 0!==g.pinchRotate?g.pinchRotate:1)&&h.push(new Nf);(void 0!==g.pinchZoom?g.pinchZoom:1)&&h.push(new Rf({duration:g.zoomDuration}));if(void 0!==g.keyboard?g.keyboard:1)h.push(new Ff),
|
|
216
|
-
h.push(new Hf({delta:g.zoomDelta,duration:g.zoomDuration}));(void 0!==g.mouseWheelZoom?g.mouseWheelZoom:1)&&h.push(new Jf({duration:g.zoomDuration}));(void 0!==g.shiftDragZoom?g.shiftDragZoom:1)&&h.push(new Ef({duration:g.zoomDuration}));g=h}void 0!==a.overlays?Array.isArray(a.overlays)?a=new Ad(a.overlays.slice()):(v(a.overlays instanceof Ad,49),a=a.overlays):a=new Ad;return{controls:f,interactions:g,keyboardEventTarget:b,logos:d,overlays:a,Zf:e,values:c}}
|
|
217
|
-
var wh="layergroup",yh="size",zh="target",xh="view";mg();function Ah(a){Na.call(this);this.b=void 0;this.a="geometry";this.l=null;this.j=void 0;this.f=null;x(this,Pa(this.a),this.zb,this);void 0!==a&&(a instanceof y||!a?this.Eb(a):this.O(a))}u(Ah,Na);l=Ah.prototype;l.clone=function(){var a=new Ah(this.X());Bh(a,this.a);var b=this.oa();b&&a.Eb(b.clone());if(b=this.l)a.l=b,a.j=b?Ch(b):void 0,a.s();return a};l.oa=function(){return this.get(this.a)};l.bf=function(){this.s()};
|
|
218
|
-
l.zb=function(){this.f&&(za(this.f),this.f=null);var a=this.oa();a&&(this.f=x(a,"change",this.bf,this));this.s()};l.Eb=function(a){this.set(this.a,a)};function Bh(a,b){Fa(a,Pa(a.a),a.zb,a);a.a=b;x(a,Pa(a.a),a.zb,a);a.zb()}function Ch(a){if("function"!==typeof a){var b;Array.isArray(a)?b=a:(v(a instanceof Ig,41),b=[a]);a=function(){return b}}return a};var Dh=document.implementation.createDocument("","",null);function Eh(a){return Fh(a,!1,[]).join("")}function Fh(a,b,c){if(a.nodeType==Node.CDATA_SECTION_NODE||a.nodeType==Node.TEXT_NODE)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;a;a=a.nextSibling)Fh(a,b,c);return c}function Gh(a){return a instanceof Node}
|
|
219
|
-
function Hh(a,b){return function(c,d){var e=a.call(void 0!==b?b:this,c,d);if(void 0!==e){var f=d[d.length-1];console.assert(Array.isArray(f),"objectStack is supposed to be an array of arrays");f.push(e)}}}function Ih(a,b){return function(c,d){var e=a.call(void 0!==b?b:this,c,d);void 0!==e&&(d[d.length-1]=e)}}
|
|
220
|
-
function Jh(a){console.assert(void 0!==a,"undefined valueReader, expected function(this: T, Node, Array.<*>)");return function(b,c){var d=a.call(this,b,c);if(void 0!==d){var e=c[c.length-1],f=b.localName,g;f in e?g=e[f]:g=e[f]=[];g.push(d)}}}function H(a,b){console.assert(void 0!==a,"undefined valueReader, expected function(this: T, Node, Array.<*>)");return function(c,d){var e=a.call(this,c,d);void 0!==e&&(d[d.length-1][void 0!==b?b:c.localName]=e)}}
|
|
221
|
-
function I(a){return function(b,c,d){a.call(this,b,c,d);c=d[d.length-1].node;console.assert(Gh(c)||c instanceof Document,"expected parentNode %s to be a Node or a Document",c);c.appendChild(b)}}function Kh(a){var b,c;return function(d,e,f){if(void 0===b){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Lh(d.localName)}Mh(b,c,e,f)}}
|
|
222
|
-
function Lh(a){return function(b,c,d){c=c[c.length-1].node;console.assert(Gh(c)||c instanceof Document,"expected node %s to be a Node or a Document",c);b=a;void 0===b&&(b=d);d=c.namespaceURI;console.assert(void 0!==b,"nodeName was undefined");return Dh.createElementNS(d,b)}}var Nh=Lh();function Oh(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function K(a,b,c){c=void 0!==c?c:{};var d,e;d=0;for(e=a.length;d<e;++d)c[a[d]]=b;return c}
|
|
223
|
-
function Ph(a,b,c,d){for(b=b.firstElementChild;b;b=b.nextElementSibling){var e=a[b.namespaceURI];void 0!==e&&(e=e[b.localName])&&e.call(d,b,c)}}function L(a,b,c,d,e){d.push(a);Ph(b,c,d,e);return d.pop()}function Mh(a,b,c,d,e,f){for(var g=(void 0!==e?e:c).length,h,k,n=0;n<g;++n)h=c[n],void 0!==h&&(k=b.call(f,h,d,void 0!==e?e[n]:void 0),void 0!==k&&a[k.namespaceURI][k.localName].call(f,k,h,d))}function Qh(a,b,c,d,e,f,g){e.push(a);Mh(b,c,d,e,f,g);e.pop()};function Rh(){this.defaultDataProjection=null}function Sh(a,b,c){var d=c?Wb(c.featureProjection):null,e=c?Wb(c.dataProjection):null,f;d&&e&&!hc(d,e)?a instanceof y?f=(b?a.clone():a).sa(b?d:e,b?e:d):f=nc(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.Ra(a)}return f};function Sg(a,b,c,d,e,f){console.assert(0<=e&&1>=e,"fraction should be in between 0 and 1");var g=NaN,h=NaN,k=(c-b)/d;if(0===k)console.assert(!1,"n cannot be 0");else if(1==k)g=a[b],h=a[b+1];else if(2==k)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],k=a[b+1],n=0,g=[0],m;for(m=b+d;m<c;m+=d){var p=a[m],r=a[m+1],n=n+Math.sqrt((p-h)*(p-h)+(r-k)*(r-k));g.push(n);h=p;k=r}c=e*n;k=0;n=g.length;for(m=!1;k<n;)e=k+(n-k>>1),h=+Ta(g[e],c),0>h?k=e+1:(n=e,m=!h);e=m?k:~k;0>e?(c=(c-g[-e-2])/(g[-e-
|
|
224
|
-
1]-g[-e-2]),b+=(-e-2)*d,g=qa(a[b],a[b+d],c),h=qa(a[b+1],a[b+d+1],c)):(g=a[b+e*d],h=a[b+e*d+1])}return f?(f[0]=g,f[1]=h,f):[g,h]}
|
|
225
|
-
function Th(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=a[(b+1)*d-1];console.assert(c<e,"m0 should be less than m");console.assert(e<=f,"m should be less than or equal to m1");f=(e-c)/(f-c);c=[];var g;for(g=0;g<d-1;++g)c.push(qa(a[(b-1)*d+g],a[b*d+g],f));
|
|
226
|
-
c.push(e);console.assert(c.length==d,"length of coordinate array should match stride");return c}
|
|
227
|
-
function Uh(a,b,c,d,e,f){var g=0;if(f)return Th(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])return null;if(d<=a[h-1])return Th(a,g,h,c,d,!1);g=h}}console.assert(!1,"ol.geom.flat.interpolate.lineStringsCoordinateAtM should have returned");return null};function M(a,b){A.call(this);this.o=null;this.b=this.N=this.F=-1;this.Y(a,b)}u(M,A);l=M.prototype;l.Md=function(a){console.assert(a.length==this.a,"length of coordinate array should match stride");this.g?Va(this.g,a):this.g=a.slice();this.s()};l.clone=function(){var a=new M(null);a.G(this.C,this.g.slice());return a};
|
|
228
|
-
l.za=function(a,b,c,d){if(d<mb(this.B(),a,b))return d;this.b!=this.i&&(this.N=Math.sqrt(vc(this.g,0,this.g.length,this.a,0)),this.b=this.i);return xc(this.g,0,this.g.length,this.a,this.N,!1,a,b,c,d)};l.be=function(a,b){return Kc(this.g,0,this.g.length,this.a,a,b)};l.qf=function(a,b){return"XYM"!=this.C&&"XYZM"!=this.C?null:Th(this.g,0,this.g.length,this.a,a,void 0!==b?b:!1)};l.ga=function(){return Cc(this.g,0,this.g.length,this.a)};l.Dc=function(a,b){return Sg(this.g,0,this.g.length,this.a,a,b)};
|
|
229
|
-
l.rf=function(){var a=this.g,b=this.a,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.g.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};l.Va=function(a){var b=[];b.length=Ec(this.g,0,this.g.length,this.a,a,b,0);a=new M(null);a.G("XY",b);return a};l.T=function(){return"LineString"};l.ha=function(a){return Lc(this.g,0,this.g.length,this.a,a)};l.Y=function(a,b){a?(rc(this,b,a,1),this.g||(this.g=[]),this.g.length=Ac(this.g,0,a,this.a),this.s()):this.G("XY",null)};
|
|
230
|
-
l.G=function(a,b){qc(this,a,b);this.s()};function O(a,b){A.call(this);this.b=[];this.o=this.F=-1;this.Y(a,b)}u(O,A);l=O.prototype;l.Nd=function(a){console.assert(a.C==this.C,"layout of lineString should match the layout");this.g?Va(this.g,a.g.slice()):this.g=a.g.slice();this.b.push(this.g.length);this.s()};l.clone=function(){var a=new O(null);a.G(this.C,this.g.slice(),this.b.slice());return a};
|
|
231
|
-
l.za=function(a,b,c,d){if(d<mb(this.B(),a,b))return d;this.o!=this.i&&(this.F=Math.sqrt(wc(this.g,0,this.b,this.a,0)),this.o=this.i);return yc(this.g,0,this.b,this.a,this.F,!1,a,b,c,d)};l.tf=function(a,b,c){return"XYM"!=this.C&&"XYZM"!=this.C||0===this.g.length?null:Uh(this.g,this.b,this.a,a,void 0!==b?b:!1,void 0!==c?c:!1)};l.ga=function(){return Dc(this.g,0,this.b,this.a)};l.Ka=function(){return this.b};
|
|
232
|
-
l.ie=function(a){console.assert(0<=a&&a<this.b.length,"index should be in between 0 and length of the this.ends_ array");if(0>a||this.b.length<=a)return null;var b=new M(null);b.G(this.C,this.g.slice(0===a?0:this.b[a-1],this.b[a]));return b};l.Rb=function(){var a=this.g,b=this.b,c=this.C,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],k=new M(null);k.G(c,a.slice(e,h));d.push(k);e=h}return d};
|
|
233
|
-
l.Va=function(a){var b=[],c=[],d=this.g,e=this.b,f=this.a,g=0,h=0,k,n;k=0;for(n=e.length;k<n;++k){var m=e[k],h=Ec(d,g,m,f,a,b,h);c.push(h);g=m}b.length=h;a=new O(null);a.G("XY",b,c);return a};l.T=function(){return"MultiLineString"};l.ha=function(a){a:{var b=this.g,c=this.b,d=this.a,e=0,f,g;f=0;for(g=c.length;f<g;++f){if(Lc(b,e,c[f],d,a)){a=!0;break a}e=c[f]}a=!1}return a};
|
|
234
|
-
l.Y=function(a,b){if(a){rc(this,b,a,2);this.g||(this.g=[]);var c=Bc(this.g,0,a,this.a,this.b);this.g.length=0===c.length?0:c[c.length-1];this.s()}else this.G("XY",null,this.b)};l.G=function(a,b,c){b?0===c.length?console.assert(0===b.length,"flatCoordinates should be an empty array"):console.assert(b.length==c[c.length-1],"length of flatCoordinates array should match the last value of ends"):console.assert(c&&0===c.length,"ends must be truthy and ends.length should be 0");qc(this,a,b);this.b=c;this.s()};
|
|
235
|
-
function Vh(a,b){var c=a.C,d=[],e=[],f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];0===f?c=h.C:console.assert(h.C==c,"layout of lineString should match layout");Va(d,h.g);e.push(d.length)}a.G(c,d,e)};function P(a,b){A.call(this);this.Y(a,b)}u(P,A);l=P.prototype;l.Pd=function(a){console.assert(a.C==this.C,"the layout of point should match layout");this.g?Va(this.g,a.g):this.g=a.g.slice();this.s()};l.clone=function(){var a=new P(null);a.G(this.C,this.g.slice());return a};l.za=function(a,b,c,d){if(d<mb(this.B(),a,b))return d;var e=this.g,f=this.a,g,h,k;g=0;for(h=e.length;g<h;g+=f)if(k=oa(a,b,e[g],e[g+1]),k<d){d=k;for(k=0;k<f;++k)c[k]=e[g+k];c.length=f}return d};
|
|
236
|
-
l.ga=function(){return Cc(this.g,0,this.g.length,this.a)};l.ne=function(a){var b=this.g?this.g.length/this.a:0;console.assert(0<=a&&a<b,"index should be in between 0 and n");if(0>a||b<=a)return null;b=new C(null);b.G(this.C,this.g.slice(a*this.a,(a+1)*this.a));return b};l.Tc=function(){var a=this.g,b=this.C,c=this.a,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new C(null);g.G(b,a.slice(e,e+c));d.push(g)}return d};l.T=function(){return"MultiPoint"};
|
|
237
|
-
l.ha=function(a){var b=this.g,c=this.a,d,e,f,g;d=0;for(e=b.length;d<e;d+=c)if(f=b[d],g=b[d+1],ob(a,f,g))return!0;return!1};l.Y=function(a,b){a?(rc(this,b,a,1),this.g||(this.g=[]),this.g.length=Ac(this.g,0,a,this.a),this.s()):this.G("XY",null)};l.G=function(a,b){qc(this,a,b);this.s()};function Q(a,b){A.call(this);this.b=[];this.F=-1;this.N=null;this.S=this.R=this.W=-1;this.o=null;this.Y(a,b)}u(Q,A);l=Q.prototype;l.Qd=function(a){console.assert(a.C==this.C,"layout of polygon should match layout");if(this.g){var b=this.g.length;Va(this.g,a.g);a=a.Ka().slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}else this.g=a.g.slice(),a=a.Ka().slice(),this.b.push();this.b.push(a);this.s()};
|
|
238
|
-
l.clone=function(){for(var a=new Q(null),b=this.b.length,c=Array(b),d=0;d<b;++d)c[d]=this.b[d].slice();Wh(a,this.C,this.g.slice(),c);return a};l.za=function(a,b,c,d){if(d<mb(this.B(),a,b))return d;if(this.R!=this.i){var e=this.b,f=0,g=0,h,k;h=0;for(k=e.length;h<k;++h)var n=e[h],g=wc(this.g,f,n,this.a,g),f=n[n.length-1];this.W=Math.sqrt(g);this.R=this.i}e=Tg(this);f=this.b;g=this.a;h=this.W;k=0;var n=[NaN,NaN],m,p;m=0;for(p=f.length;m<p;++m){var r=f[m];d=yc(e,k,r,g,h,!0,a,b,c,d,n);k=r[r.length-1]}return d};
|
|
239
|
-
l.Na=function(a,b){var c;a:{c=Tg(this);var d=this.b,e=this.a,f=0;console.assert(0<d.length,"endss should not be an empty array");if(0!==d.length){var g,h;g=0;for(h=d.length;g<h;++g){var k=d[g];if(Ic(c,f,k,e,a,b)){c=!0;break a}f=k[k.length-1]}}c=!1}return c};l.uf=function(){var a=Tg(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+tc(a,c,g,this.a),c=g[g.length-1];return d};
|
|
240
|
-
l.ga=function(a){var b;void 0!==a?(b=Tg(this).slice(),Qc(b,this.b,this.a,a)):b=this.g;a=b;b=this.b;var c=this.a,d=0,e=[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var k=b[g];e[f++]=Dc(a,d,k,c,e[f]);d=k[k.length-1]}e.length=f;return e};
|
|
241
|
-
function Ug(a){if(a.F!=a.i){var b=a.g,c=a.b,d=a.a,e=0,f=[],g,h,k;g=0;for(h=c.length;g<h;++g){var n=c[g];k=b;var m=n[0],p=d,r=sb(void 0);k=vb(r,k,e,m,p);f.push((k[0]+k[2])/2,(k[1]+k[3])/2);e=n[n.length-1]}b=Tg(a);c=a.b;d=a.a;g=0;console.assert(2*c.length==f.length,"endss.length times 2 should be flatCenters.length");h=[];n=0;for(k=c.length;n<k;++n)e=c[n],h=Jc(b,g,e,d,f,2*n,h),g=e[e.length-1];a.N=h;a.F=a.i}return a.N}l.he=function(){var a=new P(null);a.G("XY",Ug(this).slice());return a};
|
|
242
|
-
function Tg(a){if(a.S!=a.i){var b=a.g,c;a:{c=a.b;var d,e;d=0;for(e=c.length;d<e;++d)if(!Oc(b,c[d],a.a,void 0)){c=!1;break a}c=!0}c?a.o=b:(a.o=b.slice(),a.o.length=Qc(a.o,a.b,a.a));a.S=a.i}return a.o}l.Va=function(a){var b=[],c=[],d=this.g,e=this.b,f=this.a;a=Math.sqrt(a);var g=0,h=0,k,n;k=0;for(n=e.length;k<n;++k){var m=e[k],p=[],h=Fc(d,g,m,f,a,b,h,p);c.push(p);g=m[m.length-1]}b.length=h;d=new Q(null);Wh(d,"XY",b,c);return d};
|
|
243
|
-
l.oe=function(a){console.assert(0<=a&&a<this.b.length,"index should be in between 0 and the length of this.endss_");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 D(null);d.G(this.C,this.g.slice(b,c),a);return d};
|
|
244
|
-
l.Ic=function(){var a=this.C,b=this.g,c=this.b,d=[],e=0,f,g,h,k;f=0;for(g=c.length;f<g;++f){var n=c[f].slice(),m=n[n.length-1];if(0!==e)for(h=0,k=n.length;h<k;++h)n[h]-=e;h=new D(null);h.G(a,b.slice(e,m),n);d.push(h);e=m}return d};l.T=function(){return"MultiPolygon"};l.ha=function(a){a:{var b=Tg(this),c=this.b,d=this.a,e=0;console.assert(0<c.length,"endss should not be an empty array");var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];if(Mc(b,e,h,d,a)){a=!0;break a}e=h[h.length-1]}a=!1}return a};
|
|
245
|
-
l.Y=function(a,b){if(a){rc(this,b,a,3);this.g||(this.g=[]);var c=this.g,d=this.a,e=this.b,f=0,e=e?e:[],g=0,h,k;h=0;for(k=a.length;h<k;++h)f=Bc(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;0===e.length?this.g.length=0:(c=e[e.length-1],this.g.length=0===c.length?0:c[c.length-1]);this.s()}else Wh(this,"XY",null,this.b)};
|
|
246
|
-
function Wh(a,b,c,d){console.assert(d,"endss must be truthy");if(c&&0!==c.length){console.assert(0<d.length,"endss cannot be an empty array");var e=d[d.length-1];console.assert(c.length==e[e.length-1],"the length of flatCoordinates should be the last value of ends")}else console.assert(0===d.length,"the length of endss should be 0");qc(a,b,c);a.b=d;a.s()};function R(a){y.call(this);this.f=a?a:null;Xh(this)}u(R,y);function Yh(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].clone());return b}function Zh(a){var b,c;if(a.f)for(b=0,c=a.f.length;b<c;++b)Fa(a.f[b],"change",a.s,a)}function Xh(a){var b,c;if(a.f)for(b=0,c=a.f.length;b<c;++b)x(a.f[b],"change",a.s,a)}l=R.prototype;l.clone=function(){var a=new R(null);a.hd(this.f);return a};
|
|
247
|
-
l.za=function(a,b,c,d){if(d<mb(this.B(),a,b))return d;var e=this.f,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].za(a,b,c,d);return d};l.Na=function(a,b){var c=this.f,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].Na(a,b))return!0;return!1};l.vb=function(a){sb(a);for(var b=this.f,c=0,d=b.length;c<d;++c)ub(a,b[c].B());return a};l.Ec=function(){return Yh(this.f)};
|
|
248
|
-
l.Tb=function(a){this.v!=this.i&&(wa(this.j),this.l=0,this.v=this.i);if(0>a||0!==this.l&&a<this.l)return this;var b=a.toString();if(this.j.hasOwnProperty(b))return this.j[b];var c=[],d=this.f,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],k=h.Tb(a);c.push(k);k!==h&&(e=!0)}if(e)return a=new R(null),Zh(a),a.f=c,Xh(a),a.s(),this.j[b]=a;this.l=a;return this};l.T=function(){return"GeometryCollection"};l.ha=function(a){var b=this.f,c,d;c=0;for(d=b.length;c<d;++c)if(b[c].ha(a))return!0;return!1};
|
|
249
|
-
l.rotate=function(a,b){for(var c=this.f,d=0,e=c.length;d<e;++d)c[d].rotate(a,b);this.s()};l.scale=function(a,b,c){c||(c=Fb(this.B()));for(var d=this.f,e=0,f=d.length;e<f;++e)d[e].scale(a,b,c);this.s()};l.hd=function(a){a=Yh(a);Zh(this);this.f=a;Xh(this);this.s()};l.Ra=function(a){var b=this.f,c,d;c=0;for(d=b.length;c<d;++c)b[c].Ra(a);this.s()};l.translate=function(a,b){var c=this.f,d,e;d=0;for(e=c.length;d<e;++d)c[d].translate(a,b);this.s()};l.$=function(){Zh(this);y.prototype.$.call(this)};function $h(){new XMLSerializer;this.defaultDataProjection=null}u($h,Rh);$h.prototype.T=function(){return"xml"};function ai(a){a=a?a:{};this.featureType=a.featureType;this.featureNS=a.featureNS;this.srsName=a.srsName;this.schemaLocation="";this.a={};this.a["http://www.opengis.net/gml"]={featureMember:Ih(ai.prototype.i),featureMembers:Ih(ai.prototype.i)};$h.call(this)}u(ai,$h);var bi=/^[\s\xa0]*$/;
|
|
250
|
-
ai.prototype.i=function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");var c=a.localName,d=null;if("FeatureCollection"==c)"http://www.opengis.net/wfs"===a.namespaceURI?d=L([],this.a,a,b,this):d=L(null,this.a,a,b,this);else if("featureMembers"==c||"featureMember"==c){var e=b[0],f=e.featureType,g=e.featureNS,h,k;if(!f&&a.childNodes){f=[];g={};h=0;for(k=a.childNodes.length;h<k;++h){var n=a.childNodes[h];if(1===n.nodeType){var m=n.nodeName.split(":").pop();if(-1===
|
|
251
|
-
f.indexOf(m)){var p="",r=0,n=n.namespaceURI,w;for(w in g){if(g[w]===n){p=w;break}++r}p||(p="p"+r,g[p]=n);f.push(p+":"+m)}}}"featureMember"!=c&&(e.featureType=f,e.featureNS=g)}"string"===typeof g&&(h=g,g={},g.p0=h);var e={},f=Array.isArray(f)?f:[f],t;for(t in g){m={};h=0;for(k=f.length;h<k;++h)(-1===f[h].indexOf(":")?"p0":f[h].split(":")[0])===t&&(m[f[h].split(":").pop()]="featureMembers"==c?Hh(this.c,this):Ih(this.c,this));e[g[t]]=m}"featureMember"==c?d=L(void 0,e,a,b):d=L([],e,a,b)}null===d&&(d=
|
|
252
|
-
[]);return d};ai.prototype.b=function(a,b){var c=b[0];c.srsName=a.firstElementChild.getAttribute("srsName");var d=L(null,this.f,a,b,this);if(d)return Sh(d,!1,c)};
|
|
253
|
-
ai.prototype.c=function(a,b){var c,d;(d=a.getAttribute("fid"))||(d=a.getAttributeNS("http://www.opengis.net/gml","id")||"");var e={},f;for(c=a.firstElementChild;c;c=c.nextElementSibling){var g=c.localName;if(0===c.childNodes.length||1===c.childNodes.length&&(3===c.firstChild.nodeType||4===c.firstChild.nodeType)){var h=Eh(c);bi.test(h)&&(h=void 0);e[g]=h}else"boundedBy"!==g&&(f=g),e[g]=this.b(c,b)}c=new Ah(e);f&&Bh(c,f);d&&(c.b=d,c.s());return c};function ci(a){a=Eh(a);return di(a)}function di(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return void 0!==a[1]||!1}function ei(a){a=Eh(a);a=Date.parse(a);return isNaN(a)?void 0:a/1E3}function fi(a){a=Eh(a);return gi(a)}function gi(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function hi(a){a=Eh(a);return ii(a)}function ii(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function S(a){return Eh(a).trim()}function ji(a,b){ki(a,b?"1":"0")}
|
|
254
|
-
function li(a,b){a.appendChild(Dh.createTextNode(b.toPrecision()))}function mi(a,b){console.assert(0<=b,"value should be more than 0");console.assert(b==(b|0),"value should be an integer value");a.appendChild(Dh.createTextNode(b.toString()))}function ki(a,b){a.appendChild(Dh.createTextNode(b))};var ni=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function oi(a,b,c,d){console.assert(c.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");a.push(parseFloat(c.getAttribute("lon")),parseFloat(c.getAttribute("lat")));"ele"in d?(a.push(d.ele),delete d.ele,b.Yb=!0):a.push(0);"time"in d?(a.push(d.time),delete d.time,b.Xb=!0):a.push(0);return a}
|
|
255
|
-
function pi(a,b,c){var d="XY",e=2;a.Yb&&a.Xb?(d="XYZM",e=4):a.Yb?(d="XYZ",e=3):a.Xb&&(d="XYM",e=3);if(4!==e){var f,g;f=0;for(g=b.length/4;f<g;f++)b[f*e]=b[4*f],b[f*e+1]=b[4*f+1],a.Yb&&(b[f*e+2]=b[4*f+2]),a.Xb&&(b[f*e+2]=b[4*f+3]);b.length=b.length/4*e;if(c)for(f=0,g=c.length;f<g;f++)c[f]=c[f]/4*e}return d}
|
|
256
|
-
function qi(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("link"==a.localName,"localName should be link");var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);Ph(ri,a,b)}function si(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("extensions"==a.localName,"localName should be extensions");b[b.length-1].extensionsNode_=a}
|
|
257
|
-
K(ni,{rte:Hh(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("rte"==a.localName,"localName should be rte");var c=b[0],d=L({flatCoordinates:[],layoutOptions:{}},ti,a,b);if(d){var e=d.flatCoordinates;delete d.flatCoordinates;var f=d.layoutOptions;delete d.layoutOptions;var f=pi(f,e),g=new M(null);g.G(f,e);Sh(g,!1,c);c=new Ah(g);c.O(d);return c}}),trk:Hh(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");
|
|
258
|
-
console.assert("trk"==a.localName,"localName should be trk");var c=b[0],d=L({flatCoordinates:[],ends:[],layoutOptions:{}},ui,a,b);if(d){var e=d.flatCoordinates;delete d.flatCoordinates;var f=d.ends;delete d.ends;var g=d.layoutOptions;delete d.layoutOptions;var g=pi(g,e,f),h=new O(null);h.G(g,e,f);Sh(h,!1,c);c=new Ah(h);c.O(d);return c}}),wpt:Hh(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("wpt"==a.localName,"localName should be wpt");
|
|
259
|
-
var c=b[0],d=L({},vi,a,b);if(d){var e={},f=oi([],e,a,d),e=pi(e,f),f=new C(f,e);Sh(f,!1,c);c=new Ah(f);c.O(d);return c}})});
|
|
260
|
-
var ri=K(ni,{text:H(S,"linkText"),type:H(S,"linkType")}),ti=K(ni,{name:H(S),cmt:H(S),desc:H(S),src:H(S),link:qi,number:H(hi),extensions:si,type:H(S),rtept:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("rtept"==a.localName,"localName should be rtept");var c=L({},wi,a,b);if(c){var d=b[b.length-1];oi(d.flatCoordinates,d.layoutOptions,a,c)}}}),wi=K(ni,{ele:H(fi),time:H(ei)}),ui=K(ni,{name:H(S),cmt:H(S),desc:H(S),src:H(S),link:qi,number:H(hi),
|
|
261
|
-
type:H(S),extensions:si,trkseg:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("trkseg"==a.localName,"localName should be trkseg");var c=b[b.length-1];Ph(xi,a,b);c.ends.push(c.flatCoordinates.length)}}),xi=K(ni,{trkpt:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("trkpt"==a.localName,"localName should be trkpt");var c=L({},yi,a,b);if(c){var d=b[b.length-1];oi(d.flatCoordinates,
|
|
262
|
-
d.layoutOptions,a,c)}}}),yi=K(ni,{ele:H(fi),time:H(ei)}),vi=K(ni,{ele:H(fi),time:H(ei),magvar:H(fi),geoidheight:H(fi),name:H(S),cmt:H(S),desc:H(S),src:H(S),link:qi,sym:H(S),type:H(S),fix:H(S),sat:H(hi),hdop:H(fi),vdop:H(fi),pdop:H(fi),ageofdgpsdata:H(fi),dgpsid:H(hi),extensions:si});function zi(a,b,c){a.setAttribute("href",b);b=c[c.length-1].properties;Qh({node:a},Ai,Nh,[b.linkText,b.linkType],c,Bi)}
|
|
263
|
-
function Ci(a,b,c){var d=c[c.length-1],e=d.node;console.assert(Gh(e),"parentNode should be an XML node");var f=e.namespaceURI,e=d.properties;a.setAttributeNS(null,"lat",b[1]);a.setAttributeNS(null,"lon",b[0]);switch(d.geometryLayout){case "XYZM":0!==b[3]&&(e.time=b[3]);case "XYZ":0!==b[2]&&(e.ele=b[2]);break;case "XYM":0!==b[2]&&(e.time=b[2])}b="rtept"==a.nodeName?Di[f]:Ei[f];d=Oh(e,b);Qh({node:a,properties:e},Fi,Nh,d,c,b)}
|
|
264
|
-
var Bi=["text","type"],Ai=K(ni,{text:I(ki),type:I(ki)}),Gi=K(ni,"name cmt desc src link number type rtept".split(" ")),Hi=K(ni,{name:I(ki),cmt:I(ki),desc:I(ki),src:I(ki),link:I(zi),number:I(mi),type:I(ki),rtept:Kh(I(Ci))}),Di=K(ni,["ele","time"]),Ii=K(ni,"name cmt desc src link number type trkseg".split(" ")),Li=K(ni,{name:I(ki),cmt:I(ki),desc:I(ki),src:I(ki),link:I(zi),number:I(mi),type:I(ki),trkseg:Kh(I(function(a,b,c){Qh({node:a,geometryLayout:b.C,properties:{}},Ji,Ki,b.ga(),c)}))}),Ki=Lh("trkpt"),
|
|
265
|
-
Ji=K(ni,{trkpt:I(Ci)}),Ei=K(ni,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Fi=K(ni,{ele:I(li),time:I(function(a,b){var c=new Date(1E3*b);a.appendChild(Dh.createTextNode(c.getUTCFullYear()+"-"+eb(c.getUTCMonth()+1)+"-"+eb(c.getUTCDate())+"T"+eb(c.getUTCHours())+":"+eb(c.getUTCMinutes())+":"+eb(c.getUTCSeconds())+"Z"))}),magvar:I(li),geoidheight:I(li),name:I(ki),cmt:I(ki),desc:I(ki),src:I(ki),link:I(zi),sym:I(ki),type:I(ki),fix:I(ki),
|
|
266
|
-
sat:I(mi),hdop:I(li),vdop:I(li),pdop:I(li),ageofdgpsdata:I(li),dgpsid:I(mi)});
|
|
267
|
-
K(ni,{rte:I(function(a,b,c){var d=c[0],e=b.X();a={node:a,properties:e};if(b=b.oa())b=Sh(b,!0,d),a.geometryLayout=b.C,e.rtept=b.ga();d=Gi[c[c.length-1].node.namespaceURI];e=Oh(e,d);Qh(a,Hi,Nh,e,c,d)}),trk:I(function(a,b,c){var d=c[0],e=b.X();a={node:a,properties:e};if(b=b.oa())b=Sh(b,!0,d),e.trkseg=b.Rb();d=Ii[c[c.length-1].node.namespaceURI];e=Oh(e,d);Qh(a,Li,Nh,e,c,d)}),wpt:I(function(a,b,c){var d=c[0],e=c[c.length-1];e.properties=b.X();if(b=b.oa())b=Sh(b,!0,d),e.geometryLayout=b.C,Ci(a,b.ga(),c)})});function Mi(a,b,c,d,e,f){Ka.call(this);this.a=a?a:new Image;null!==d&&(this.a.crossOrigin=d);this.u=f?document.createElement("CANVAS"):null;this.j=f;this.f=null;this.b=e;this.i=c;this.l=b;this.v=!1;2==this.b&&Ni(this)}u(Mi,Ka);function Ni(a){var b=Nd(1,1);try{b.drawImage(a.a,0,0),b.getImageData(0,0,1,1)}catch(c){a.v=!0}}Mi.prototype.o=function(){this.b=3;this.f.forEach(za);this.f=null;this.c("change")};
|
|
268
|
-
Mi.prototype.A=function(){this.b=2;this.i&&(this.a.width=this.i[0],this.a.height=this.i[1]);this.i=[this.a.width,this.a.height];this.f.forEach(za);this.f=null;Ni(this);if(!this.v&&null!==this.j){this.u.width=this.a.width;this.u.height=this.a.height;var a=this.u.getContext("2d");a.drawImage(this.a,0,0);for(var b=a.getImageData(0,0,this.a.width,this.a.height),c=b.data,d=this.j[0]/255,e=this.j[1]/255,f=this.j[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")};
|
|
269
|
-
Mi.prototype.load=function(){if(0==this.b){console.assert(void 0!==this.l,"this.src_ must not be undefined");console.assert(!this.f,"no listener keys existing");this.b=1;this.f=[x(this.a,"error",this.o,this,!0),x(this.a,"load",this.A,this,!0)];try{this.a.src=this.l}catch(a){this.o()}}};function Oi(a){a=a||{};this.b=void 0!==a.anchor?a.anchor:[.5,.5];this.u=null;this.c=void 0!==a.anchorOrigin?a.anchorOrigin:Pi;this.P=void 0!==a.anchorXUnits?a.anchorXUnits:Qi;this.o=void 0!==a.anchorYUnits?a.anchorYUnits:Qi;this.na=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;v(!(void 0!==d&&b),4);v(!b||b&&c,5);void 0!==d&&0!==d.length||!b||(d=b.src||ga(b).toString());v(void 0!==d&&0<d.length,6);var e=void 0!==a.src?0:2,f;void 0!==
|
|
270
|
-
a.color?(f=a.color,f=Array.isArray(f)?f:Ld(f)):f=null;this.f=f;f=this.na;var g=this.f,h=rg.get(d,f,g);h||(h=new Mi(b,d,c,f,e,g),rg.set(d,f,g,h));this.a=h;this.A=void 0!==a.offset?a.offset:[0,0];this.i=void 0!==a.offsetOrigin?a.offsetOrigin:Pi;this.j=null;this.l=void 0!==a.size?a.size:null;Fg.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!==a.rotateWithView?
|
|
271
|
-
a.rotateWithView:!1})}u(Oi,Fg);
|
|
272
|
-
Oi.prototype.clone=function(){var a=Wg(this),b;if(2===this.a.b)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 Oi({anchor:this.b.slice(),anchorOrigin:this.c,anchorXUnits:this.P,anchorYUnits:this.o,crossOrigin:this.na,color:this.f&&this.f.slice?this.f.slice():this.f||void 0,img:b?b:void 0,imgSize:b?this.a.i.slice():void 0,src:b?void 0:this.a.l,offset:this.A.slice(),
|
|
273
|
-
offsetOrigin:this.i,size:null!==this.l?this.l.slice():void 0,opacity:this.H,scale:this.v,snapToPixel:this.ta,rotation:this.da,rotateWithView:this.F})};function Vg(a){if(a.u)return a.u;var b=a.b,c=Yg(a);if(a.P==Qi||a.o==Qi){if(!c)return null;b=a.b.slice();a.P==Qi&&(b[0]*=c[0]);a.o==Qi&&(b[1]*=c[1])}if(a.c!=Pi){if(!c)return null;b===a.b&&(b=a.b.slice());if(a.c==Ri||a.c==Si)b[0]=-b[0]+c[0];if(a.c==Ti||a.c==Si)b[1]=-b[1]+c[1]}a.u=b;return a.u}function Wg(a){a=a.a;return a.u?a.u:a.a}
|
|
274
|
-
function Xg(a){if(a.j)return a.j;var b=a.A;if(a.i!=Pi){var c=Yg(a),d=a.a.i;if(!c||!d)return null;b=b.slice();if(a.i==Ri||a.i==Si)b[0]=d[0]-c[0]-b[0];if(a.i==Ti||a.i==Si)b[1]=d[1]-c[1]-b[1]}a.j=b;return a.j}function Yg(a){return a.l?a.l:a.a.i}Oi.prototype.load=function(){this.a.load()};var Qi="fraction",Ti="bottom-left",Si="bottom-right",Pi="top-left",Ri="top-right";function Ui(a){a=a||{};this.b=a.font;this.l=a.rotation;this.j=a.rotateWithView;this.c=a.scale;this.da=a.text;this.P=a.textAlign;this.o=a.textBaseline;this.a=void 0!==a.fill?a.fill:new Gg({color:"#333"});this.i=void 0!==a.stroke?a.stroke:null;this.f=void 0!==a.offsetX?a.offsetX:0;this.u=void 0!==a.offsetY?a.offsetY:0}
|
|
275
|
-
Ui.prototype.clone=function(){return new Ui({font:this.b,rotation:this.l,rotateWithView:this.j,scale:this.c,text:this.Ga(),textAlign:this.P,textBaseline:this.o,fill:this.a?this.a.clone():void 0,stroke:this.i?this.i.clone():void 0,offsetX:this.f,offsetY:this.u})};Ui.prototype.Ga=function(){return this.da};var Vi=["http://www.google.com/kml/ext/2.2"],T=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Wi={fraction:Qi,pixels:"pixels"};function Xi(a){a=Eh(a);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}
|
|
276
|
-
function Yi(a){a=Eh(a);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);return""!==a?void 0:b}function Zi(a){var b=Eh(a).trim();return a.baseURI?(new URL(b,a.baseURI)).href:b}function $i(a){return fi(a)}
|
|
277
|
-
function aj(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("LinearRing"==a.localName,"localName should be LinearRing");return L(null,bj,a,b)}
|
|
278
|
-
function cj(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert(0<=Vi.indexOf(a.namespaceURI),"namespaceURI of the node should be known to the KML parser");console.assert("Track"==a.localName,"localName should be Track");var c=L({g:[],qd:[]},dj,a,b);if(c){var d=c.g,c=c.qd;console.assert(d.length/4==c.length,"the length of the flatCoordinates array divided by 4 should be the length of the whens array");var e,f;e=0;for(f=Math.min(d.length,c.length);e<
|
|
279
|
-
f;++e)d[4*e+3]=c[e];c=new M(null);c.G("XYZM",d);return c}}function ej(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");return L(null,fj,a,b)}function gj(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("LineString"==a.localName,"localName should be LineString");var c=L({},hj,a,b),d=ej(a,b);if(d){var e=new M(null);e.G("XYZ",d);e.O(c);return e}}
|
|
280
|
-
function ij(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("LinearRing"==a.localName,"localName should be LinearRing");var c=L({},hj,a,b),d=ej(a,b);if(d){var e=new D(null);e.G("XYZ",d,[d.length]);e.O(c);return e}}
|
|
281
|
-
function jj(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("MultiGeometry"==a.localName,"localName should be MultiGeometry");var c=L([],kj,a,b);if(!c)return null;if(0===c.length)return new R(c);var d,e=!0,f=c[0].T(),g,h,k;h=1;for(k=c.length;h<k;++h)if(g=c[h],g.T()!=f){e=!1;break}if(e)if("Point"==f){d=c[0];e=d.C;f=d.g;h=1;for(k=c.length;h<k;++h)g=c[h],console.assert(g.C==e,"geometry layout should be consistent"),Va(f,g.g);d=new P(null);d.G(e,f);
|
|
282
|
-
lj(d,c)}else if("LineString"==f)d=new O(null),Vh(d,c),lj(d,c);else if("Polygon"==f){g=d=new Q(null);h=g.C;k=[];var e=[],n,m,f=0;for(n=c.length;f<n;++f){var p=c[f];0===f?h=p.C:console.assert(p.C==h,"layout of polygon should be layout");var r=k.length;m=p.Ka();var w,t;w=0;for(t=m.length;w<t;++w)m[w]+=r;Va(k,p.g);e.push(m)}Wh(g,h,k,e);lj(d,c)}else"GeometryCollection"==f?d=new R(c):v(!1,37);else d=new R(c);return d}
|
|
283
|
-
function mj(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Point"==a.localName,"localName should be Point");var c=L({},hj,a,b),d=ej(a,b);if(d){var e=new C(null);console.assert(3==d.length,"flatCoordinates should have a length of 3");e.G("XYZ",d);e.O(c);return e}}
|
|
284
|
-
function nj(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Polygon"==a.localName,"localName should be Polygon");var c=L({},hj,a,b),d=L([null],oj,a,b);if(d&&d[0]){var e=new D(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)Va(f,d[h]),g.push(f.length);e.G("XYZ",f,g);e.O(c);return e}}
|
|
285
|
-
function pj(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Style"==a.localName,"localName should be Style");var c=L({},qj,a,b);if(!c)return null;var d="fillStyle"in c?c.fillStyle:void 0,e=c.fill;void 0===e||e||(d=null);e="imageStyle"in c?c.imageStyle:void 0;void 0==e&&(e=void 0);var f="textStyle"in c?c.textStyle:void 0,g="strokeStyle"in c?c.strokeStyle:void 0,c=c.outline;void 0===c||c||(g=null);return[new Ig({fill:d,image:e,stroke:g,text:f,zIndex:void 0})]}
|
|
286
|
-
function lj(a,b){var c=b.length,d=Array(b.length),e=Array(b.length),f,g,h,k;h=k=!1;for(g=0;g<c;++g)f=b[g],d[g]=f.get("extrude"),e[g]=f.get("altitudeMode"),h=h||void 0!==d[g],k=k||e[g];h&&a.set("extrude",d);k&&a.set("altitudeMode",e)}function rj(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("ExtendedData"==a.localName,"localName should be ExtendedData");Ph(sj,a,b)}
|
|
287
|
-
function tj(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Region"==a.localName,"localName should be Region");Ph(uj,a,b)}
|
|
288
|
-
var vj=K(T,{displayName:H(S),value:H(S)}),sj=K(T,{Data:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Data"==a.localName,"localName should be Data");var c=a.getAttribute("name");Ph(vj,a,b);var d=b[b.length-1];null!==c?d[c]=d.value:null!==d.displayName&&(d[d.displayName]=d.value)},SchemaData:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("SchemaData"==a.localName,"localName should be SchemaData");
|
|
289
|
-
Ph(wj,a,b)}}),uj=K(T,{LatLonAltBox:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("LatLonAltBox"==a.localName,"localName should be LatLonAltBox");var c=L({},xj,a,b);if(c){var d=b[b.length-1];d.extent=[parseFloat(c.west),parseFloat(c.south),parseFloat(c.east),parseFloat(c.north)];d.altitudeMode=c.altitudeMode;d.minAltitude=parseFloat(c.minAltitude);d.maxAltitude=parseFloat(c.maxAltitude)}},Lod:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,
|
|
290
|
-
"node.nodeType should be ELEMENT");console.assert("Lod"==a.localName,"localName should be Lod");var c=L({},yj,a,b);if(c){var d=b[b.length-1];d.minLodPixels=parseFloat(c.minLodPixels);d.maxLodPixels=parseFloat(c.maxLodPixels);d.minFadeExtent=parseFloat(c.minFadeExtent);d.maxFadeExtent=parseFloat(c.maxFadeExtent)}}}),xj=K(T,{altitudeMode:H(S),minAltitude:H(fi),maxAltitude:H(fi),north:H(fi),south:H(fi),east:H(fi),west:H(fi)}),yj=K(T,{minLodPixels:H(fi),maxLodPixels:H(fi),minFadeExtent:H(fi),maxFadeExtent:H(fi)}),
|
|
291
|
-
hj=K(T,{extrude:H(ci),altitudeMode:H(S)}),bj=K(T,{coordinates:Ih(Yi)}),oj=K(T,{innerBoundaryIs:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("innerBoundaryIs"==a.localName,"localName should be innerBoundaryIs");var c=L(void 0,zj,a,b);if(c){var d=b[b.length-1];console.assert(Array.isArray(d),"flatLinearRings should be an array");console.assert(0<d.length,"flatLinearRings array should not be empty");d.push(c)}},outerBoundaryIs:function(a,
|
|
292
|
-
b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("outerBoundaryIs"==a.localName,"localName should be outerBoundaryIs");var c=L(void 0,Aj,a,b);if(c){var d=b[b.length-1];console.assert(Array.isArray(d),"flatLinearRings should be an array");console.assert(0<d.length,"flatLinearRings array should not be empty");d[0]=c}}}),dj=K(T,{when:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("when"==a.localName,
|
|
293
|
-
"localName should be when");var c=b[b.length-1].qd,d=Eh(a),d=Date.parse(d);c.push(isNaN(d)?0:d)}},K(Vi,{coord:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert(0<=Vi.indexOf(a.namespaceURI),"namespaceURI of the node should be known to the KML parser");console.assert("coord"==a.localName,"localName should be coord");var c=b[b.length-1].g,d=Eh(a);(d=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(d))?
|
|
294
|
-
c.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3]),0):c.push(0,0,0,0)}})),fj=K(T,{coordinates:Ih(Yi)}),Bj=K(T,{href:H(Zi)},K(Vi,{x:H(fi),y:H(fi),w:H(fi),h:H(fi)})),Cj=K(T,{Icon:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Icon"==a.localName,"localName should be Icon");var c=L({},Bj,a,b);return c?c:null}),heading:H(fi),hotSpot:H(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),
|
|
295
|
-
mc:Wi[b],y:parseFloat(a.getAttribute("y")),nc:Wi[c]}}),scale:H($i)}),zj=K(T,{LinearRing:Ih(aj)}),Dj=K(T,{color:H(Xi),scale:H($i)}),Ej=K(T,{color:H(Xi),width:H(fi)}),kj=K(T,{LineString:Hh(gj),LinearRing:Hh(ij),MultiGeometry:Hh(jj),Point:Hh(mj),Polygon:Hh(nj)}),Fj=K(Vi,{Track:Hh(cj)});
|
|
296
|
-
K(T,{ExtendedData:rj,Region:tj,Link:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Link"==a.localName,"localName should be Link");Ph(Gj,a,b)},address:H(S),description:H(S),name:H(S),open:H(ci),phoneNumber:H(S),visibility:H(ci)});var Gj=K(T,{href:H(Zi)}),Aj=K(T,{LinearRing:Ih(aj)}),Hj=K(T,{Style:H(pj),key:H(S),styleUrl:H(Zi)});
|
|
297
|
-
K(T,{ExtendedData:rj,Region:tj,MultiGeometry:H(jj,"geometry"),LineString:H(gj,"geometry"),LinearRing:H(ij,"geometry"),Point:H(mj,"geometry"),Polygon:H(nj,"geometry"),Style:H(pj),StyleMap:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("StyleMap"==a.localName,"localName should be StyleMap");var c=L(void 0,Ij,a,b);if(c){var d=b[b.length-1];Array.isArray(c)?d.Style=c:"string"===typeof c?d.styleUrl=c:v(!1,38)}},address:H(S),description:H(S),
|
|
298
|
-
name:H(S),open:H(ci),phoneNumber:H(S),styleUrl:H(Zi),visibility:H(ci)},K(Vi,{MultiTrack:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert(0<=Vi.indexOf(a.namespaceURI),"namespaceURI of the node should be known to the KML parser");console.assert("MultiTrack"==a.localName,"localName should be MultiTrack");var c=L([],Fj,a,b);if(c){var d=new O(null);Vh(d,c);return d}},"geometry"),Track:H(cj,"geometry")}));
|
|
299
|
-
var Jj=K(T,{color:H(Xi),fill:H(ci),outline:H(ci)}),wj=K(T,{SimpleData:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("SimpleData"==a.localName,"localName should be SimpleData");var c=a.getAttribute("name");if(null!==c){var d=S(a);b[b.length-1][c]=d}}}),qj=K(T,{IconStyle:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be an ELEMENT");console.assert("IconStyle"==a.localName,"localName should be IconStyle");
|
|
300
|
-
var c=L({},Cj,a,b);if(c){var d=b[b.length-1],e="Icon"in c?c.Icon:{},f=!("Icon"in c)||0<Object.keys(e).length,g,h=e.href;h?g=h:f&&(g=void 0);var k,n,m;(h=c.hotSpot)?(k=[h.x,h.y],n=h.mc,m=h.nc):void 0===g?m=n=k=void 0:/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(g)&&(k=[.5,0],m=n=Qi);var p,h=e.x,r=e.y;void 0!==h&&void 0!==r&&(p=[h,r]);var w,h=e.w,e=e.h;void 0!==h&&void 0!==e&&(w=[h,e]);var t,e=c.heading;void 0!==e&&(t=e*Math.PI/180);c=c.scale;f?(void 0==g&&(w=void 0,void 0===c&&(c=void 0)),f=new Oi({anchor:k,
|
|
301
|
-
anchorOrigin:Ti,anchorXUnits:n,anchorYUnits:m,crossOrigin:"anonymous",offset:p,offsetOrigin:Ti,rotation:t,scale:c,size:w,src:g}),d.imageStyle=f):d.imageStyle=void 0}},LabelStyle:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("LabelStyle"==a.localName,"localName should be LabelStyle");var c=L({},Dj,a,b);c&&(b[b.length-1].textStyle=new Ui({fill:new Gg({color:"color"in c?c.color:void 0}),scale:c.scale}))},LineStyle:function(a,b){console.assert(a.nodeType==
|
|
302
|
-
Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("LineStyle"==a.localName,"localName should be LineStyle");var c=L({},Ej,a,b);c&&(b[b.length-1].strokeStyle=new Hg({color:"color"in c?c.color:void 0,width:"width"in c?c.width:1}))},PolyStyle:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("PolyStyle"==a.localName,"localName should be PolyStyle");var c=L({},Jj,a,b);if(c){var d=b[b.length-1];d.fillStyle=new Gg({color:"color"in
|
|
303
|
-
c?c.color:void 0});var e=c.fill;void 0!==e&&(d.fill=e);c=c.outline;void 0!==c&&(d.outline=c)}}}),Ij=K(T,{Pair:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Pair"==a.localName,"localName should be Pair");var c=L({},Hj,a,b);if(c){var d=c.key;d&&"normal"==d&&((d=c.styleUrl)&&(b[b.length-1]=d),(c=c.Style)&&(b[b.length-1]=c))}}});
|
|
304
|
-
function Kj(a,b){var c=Array.isArray(b)?b:Ld(b),c=[255*(4==c.length?c[3]:1),c[2],c[1],c[0]],d;for(d=0;4>d;++d){var e=parseInt(c[d],10).toString(16);c[d]=1==e.length?"0"+e:e}ki(a,c.join(""))}function Lj(a,b,c){a={node:a};var d=b.T(),e,f;"GeometryCollection"==d?(e=b.Ec(),f=Mj):"MultiPoint"==d?(e=b.Tc(),f=Nj):"MultiLineString"==d?(e=b.Rb(),f=Oj):"MultiPolygon"==d?(e=b.Ic(),f=Pj):v(!1,39);Qh(a,Qj,f,e,c)}function Rj(a,b,c){Qh({node:a},Sj,Tj,[b],c)}
|
|
305
|
-
function Uj(a,b,c){var d={node:a};b.b&&a.setAttribute("id",b.b);a=b.X();var e={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};e[b.a]=1;var f=Object.keys(a||{}).sort().filter(function(a){return!e[a]});if(0<f.length){var g=Oh(a,f);Qh(d,Vj,Wj,[{names:f,values:g}],c)}if(f=b.j)if(f=f.call(b,0))f=Array.isArray(f)?f[0]:f,this.a&&(a.Style=f),(f=f.Ga())&&(a.name=f.Ga());f=Xj[c[c.length-1].node.namespaceURI];a=Oh(a,f);Qh(d,Vj,Nh,a,c,f);a=c[0];(b=b.oa())&&(b=Sh(b,!0,a));Qh(d,Vj,
|
|
306
|
-
Mj,[b],c)}function Yj(a,b,c){console.assert(b instanceof C||b instanceof M||b instanceof B,"geometry should be one of ol.geom.Point, ol.geom.LineString or ol.geom.LinearRing");var d=b.g;a={node:a};a.layout=b.C;a.stride=b.a;Qh(a,Zj,ak,[d],c)}function bk(a,b,c){b=b.Gc();console.assert(0<b.length,"linearRings should not be empty");var d=b.shift();a={node:a};Qh(a,ck,dk,b,c);Qh(a,ck,ek,[d],c)}function fk(a,b){li(a,Math.round(1E6*b)/1E6)}K(T,["Document","Placemark"]);
|
|
307
|
-
K(T,{Document:I(function(a,b,c){Qh({node:a},gk,hk,b,c,void 0,this)}),Placemark:I(Uj)});
|
|
308
|
-
var gk=K(T,{Placemark:I(Uj)}),ik=K(T,{Data:I(function(a,b,c){a.setAttribute("name",b.name);a={node:a};b=b.value;"object"==typeof b?(null!==b&&b.displayName&&Qh(a,ik,Nh,[b.displayName],c,["displayName"]),null!==b&&b.value&&Qh(a,ik,Nh,[b.value],c,["value"])):Qh(a,ik,Nh,[b],c,["value"])}),value:I(function(a,b){ki(a,b)}),displayName:I(function(a,b){a.appendChild(Dh.createCDATASection(b))})}),jk={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",
|
|
309
|
-
MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},kk=K(T,["href"],K(Vi,["x","y","w","h"])),lk=K(T,{href:I(ki)},K(Vi,{x:I(li),y:I(li),w:I(li),h:I(li)})),mk=K(T,["scale","heading","Icon","hotSpot"]),ok=K(T,{Icon:I(function(a,b,c){a={node:a};var d=kk[c[c.length-1].node.namespaceURI],e=Oh(b,d);Qh(a,lk,Nh,e,c,d);d=kk[Vi[0]];e=Oh(b,d);Qh(a,lk,nk,e,c,d)}),heading:I(li),hotSpot:I(function(a,b){a.setAttribute("x",b.x);a.setAttribute("y",b.y);a.setAttribute("xunits",
|
|
310
|
-
b.mc);a.setAttribute("yunits",b.nc)}),scale:I(fk)}),pk=K(T,["color","scale"]),qk=K(T,{color:I(Kj),scale:I(fk)}),rk=K(T,["color","width"]),sk=K(T,{color:I(Kj),width:I(li)}),Sj=K(T,{LinearRing:I(Yj)}),Qj=K(T,{LineString:I(Yj),Point:I(Yj),Polygon:I(bk),GeometryCollection:I(Lj)}),Xj=K(T,"name open visibility address phoneNumber description styleUrl Style".split(" ")),Vj=K(T,{ExtendedData:I(function(a,b,c){a={node:a};var d=b.names;b=b.values;for(var e=d.length,f=0;f<e;f++)Qh(a,ik,tk,[{name:d[f],value:b[f]}],
|
|
311
|
-
c)}),MultiGeometry:I(Lj),LineString:I(Yj),LinearRing:I(Yj),Point:I(Yj),Polygon:I(bk),Style:I(function(a,b,c){a={node:a};var d={},e=b.c,f=b.b,g=b.i;b=b.Ga();g instanceof Oi&&(d.IconStyle=g);b&&(d.LabelStyle=b);f&&(d.LineStyle=f);e&&(d.PolyStyle=e);b=uk[c[c.length-1].node.namespaceURI];d=Oh(d,b);Qh(a,vk,Nh,d,c,b)}),address:I(ki),description:I(ki),name:I(ki),open:I(ji),phoneNumber:I(ki),styleUrl:I(ki),visibility:I(ji)}),Zj=K(T,{coordinates:I(function(a,b,c){c=c[c.length-1];var d=c.layout;c=c.stride;
|
|
312
|
-
var e;"XY"==d||"XYM"==d?e=2:"XYZ"==d||"XYZM"==d?e=3:v(!1,34);var f,g=b.length,h="";if(0<g){h+=b[0];for(d=1;d<e;++d)h+=","+b[d];for(f=c;f<g;f+=c)for(h+=" "+b[f],d=1;d<e;++d)h+=","+b[f+d]}ki(a,h)})}),ck=K(T,{outerBoundaryIs:I(Rj),innerBoundaryIs:I(Rj)}),wk=K(T,{color:I(Kj)}),uk=K(T,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),vk=K(T,{IconStyle:I(function(a,b,c){a={node:a};var d={},e=Yg(b),f=b.a.i,g={href:b.a.l};if(e){g.w=e[0];g.h=e[1];var h=Vg(b),k=Xg(b);k&&f&&0!==k[0]&&k[1]!==e[1]&&(g.x=k[0],
|
|
313
|
-
g.y=f[1]-(k[1]+e[1]));h&&0!==h[0]&&h[1]!==e[1]&&(d.hotSpot={x:h[0],mc:"pixels",y:e[1]-h[1],nc:"pixels"})}d.Icon=g;e=b.v;1!==e&&(d.scale=e);b=b.da;0!==b&&(d.heading=b);b=mk[c[c.length-1].node.namespaceURI];d=Oh(d,b);Qh(a,ok,Nh,d,c,b)}),LabelStyle:I(function(a,b,c){a={node:a};var d={},e=b.a;e&&(d.color=e.a);(b=b.c)&&1!==b&&(d.scale=b);b=pk[c[c.length-1].node.namespaceURI];d=Oh(d,b);Qh(a,qk,Nh,d,c,b)}),LineStyle:I(function(a,b,c){a={node:a};var d=rk[c[c.length-1].node.namespaceURI];b=Oh({color:b.c,width:b.i},
|
|
314
|
-
d);Qh(a,sk,Nh,b,c,d)}),PolyStyle:I(function(a,b,c){Qh({node:a},wk,xk,[b.a],c)})});function nk(a,b,c){return Dh.createElementNS(Vi[0],"gx:"+c)}function hk(a,b){var c=b[b.length-1].node;console.assert(Gh(c),"parentNode should be an XML node");return Dh.createElementNS(c.namespaceURI,"Placemark")}function Mj(a,b){if(a){var c=b[b.length-1].node;console.assert(Gh(c),"parentNode should be an XML node");return Dh.createElementNS(c.namespaceURI,jk[a.T()])}}
|
|
315
|
-
var xk=Lh("color"),ak=Lh("coordinates"),tk=Lh("Data"),Wj=Lh("ExtendedData"),dk=Lh("innerBoundaryIs"),Nj=Lh("Point"),Oj=Lh("LineString"),Tj=Lh("LinearRing"),Pj=Lh("Polygon"),ek=Lh("outerBoundaryIs");(function(){var a={},b={K:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.K=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Ig=c()}})(function(){return function d(a,b,g){function h(m,n){if(!b[m]){if(!a[m]){var r="function"==typeof require&&require;if(!n&&r)return r(m,!0);if(k)return k(m,!0);r=Error("Cannot find module '"+m+"'");throw r.code="MODULE_NOT_FOUND",r;}r=b[m]={K:{}};a[m][0].call(r.K,function(b){var d=
|
|
316
|
-
a[m][1][b];return h(d?d:b)},r,r.K,d,a,b,g)}return b[m].K}for(var k="function"==typeof require&&require,n=0;n<g.length;n++)h(g[n]);return h}({1:[function(a,b,f){f.read=function(a,b,d,e,f){var p;p=8*f-e-1;var r=(1<<p)-1,w=r>>1,t=-7;f=d?f-1:0;var z=d?-1:1,J=a[b+f];f+=z;d=J&(1<<-t)-1;J>>=-t;for(t+=p;0<t;d=256*d+a[b+f],f+=z,t-=8);p=d&(1<<-t)-1;d>>=-t;for(t+=e;0<t;p=256*p+a[b+f],f+=z,t-=8);if(0===d)d=1-w;else{if(d===r)return p?NaN:Infinity*(J?-1:1);p+=Math.pow(2,e);d-=w}return(J?-1:1)*p*Math.pow(2,d-e)};
|
|
317
|
-
f.write=function(a,b,d,e,f,p){var r,w=8*p-f-1,t=(1<<w)-1,z=t>>1,J=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;p=e?0:p-1;var W=e?1:-1,ea=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,e=t):(e=Math.floor(Math.log(b)/Math.LN2),1>b*(r=Math.pow(2,-e))&&(e--,r*=2),b=1<=e+z?b+J/r:b+J*Math.pow(2,1-z),2<=b*r&&(e++,r/=2),e+z>=t?(b=0,e=t):1<=e+z?(b=(b*r-1)*Math.pow(2,f),e+=z):(b=b*Math.pow(2,z-1)*Math.pow(2,f),e=0));for(;8<=f;a[d+p]=b&255,p+=W,b/=256,f-=8);e=e<<f|b;for(w+=f;0<w;a[d+
|
|
318
|
-
p]=e&255,p+=W,e/=256,w-=8);a[d+p-W]|=128*ea}},{}],2:[function(a,b){function f(a){this.Ja=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0);this.type=this.D=0;this.length=this.Ja.length}function g(a,b,d){var e=d.Ja,f,g;g=e[d.D++];f=(g&112)>>4;if(128>g)return h(a,f,b);g=e[d.D++];f|=(g&127)<<3;if(128>g)return h(a,f,b);g=e[d.D++];f|=(g&127)<<10;if(128>g)return h(a,f,b);g=e[d.D++];f|=(g&127)<<17;if(128>g)return h(a,f,b);g=e[d.D++];f|=(g&127)<<24;if(128>g)return h(a,f,b);g=e[d.D++];if(128>
|
|
319
|
-
g)return h(a,f|(g&1)<<31,b);throw Error("Expected varint not more than 10 bytes");}function h(a,b,d){return d?4294967296*b+(a>>>0):4294967296*(b>>>0)+(a>>>0)}b.K=f;var k=a("ieee754");f.b=0;f.i=1;f.a=2;f.c=5;f.prototype={dc:function(a,b,d){for(d=d||this.length;this.D<d;){var e=this.Z(),f=e>>3,g=this.D;this.type=e&7;a(f,b,this);this.D===g&&this.jg(e)}return b},Pf:function(){var a=k.read(this.Ja,this.D,!0,23,4);this.D+=4;return a},Of:function(){var a=k.read(this.Ja,this.D,!0,52,8);this.D+=8;return a},
|
|
320
|
-
Z:function(a){var b=this.Ja,d,e;e=b[this.D++];d=e&127;if(128>e)return d;e=b[this.D++];d|=(e&127)<<7;if(128>e)return d;e=b[this.D++];d|=(e&127)<<14;if(128>e)return d;e=b[this.D++];d|=(e&127)<<21;if(128>e)return d;e=b[this.D];return g(d|(e&15)<<28,a,this)},Qf:function(){return this.Z(!0)},ec:function(){var a=this.Z();return 1===a%2?(a+1)/-2:a/2},Nf:function(){return!!this.Z()},fc:function(){for(var a=this.Z()+this.D,b=this.Ja,d="",e=this.D;e<a;){var f=b[e],g=null,h=239<f?4:223<f?3:191<f?2:1;if(e+h>
|
|
321
|
-
a)break;var k,W,ea;if(1===h)128>f&&(g=f);else if(2===h)k=b[e+1],128===(k&192)&&(g=(f&31)<<6|k&63,127>=g&&(g=null));else if(3===h){if(k=b[e+1],W=b[e+2],128===(k&192)&&128===(W&192)&&(g=(f&15)<<12|(k&63)<<6|W&63,2047>=g||55296<=g&&57343>=g))g=null}else 4===h&&(k=b[e+1],W=b[e+2],ea=b[e+3],128===(k&192)&&128===(W&192)&&128===(ea&192)&&(g=(f&15)<<18|(k&63)<<12|(W&63)<<6|ea&63,65535>=g||1114112<=g))&&(g=null);null===g?(g=65533,h=1):65535<g&&(g-=65536,d+=String.fromCharCode(g>>>10&1023|55296),g=56320|g&
|
|
322
|
-
1023);d+=String.fromCharCode(g);e+=h}this.D=a;return d},jg:function(a){a&=7;if(a===f.b)for(;127<this.Ja[this.D++];);else if(a===f.a)this.D=this.Z()+this.D;else if(a===f.c)this.D+=4;else if(a===f.i)this.D+=8;else throw Error("Unimplemented type: "+a);}}},{ieee754:1}]},{},[2])(2)})})();(function(){var a={},b={K:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.K=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Lg=c()}})(function(){return function d(a,b,g){function h(m,n){if(!b[m]){if(!a[m]){var r="function"==typeof require&&require;if(!n&&r)return r(m,!0);if(k)return k(m,!0);r=Error("Cannot find module '"+m+"'");throw r.code="MODULE_NOT_FOUND",r;}r=b[m]={K:{}};a[m][0].call(r.K,function(b){var d=
|
|
323
|
-
a[m][1][b];return h(d?d:b)},r,r.K,d,a,b,g)}return b[m].K}for(var k="function"==typeof require&&require,n=0;n<g.length;n++)h(g[n]);return h}({1:[function(a,b){function f(a,b){this.x=a;this.y=b}b.K=f;f.prototype={clone:function(){return new f(this.x,this.y)},add:function(a){return this.clone().vd(a)},rotate:function(a){return this.clone().Ed(a)},round:function(){return this.clone().Fd()},angle:function(){return Math.atan2(this.y,this.x)},vd:function(a){this.x+=a.x;this.y+=a.y;return this},Ed:function(a){var b=
|
|
324
|
-
Math.cos(a);a=Math.sin(a);var d=a*this.x+b*this.y;this.x=b*this.x-a*this.y;this.y=d;return this},Fd:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}};f.a=function(a){return a instanceof f?a:Array.isArray(a)?new f(a[0],a[1]):a}},{}],2:[function(a,b){b.K.Dg=a("./lib/vectortile.js");b.K.Eg=a("./lib/vectortilefeature.js");b.K.Fg=a("./lib/vectortilelayer.js")},{"./lib/vectortile.js":3,"./lib/vectortilefeature.js":4,"./lib/vectortilelayer.js":5}],3:[function(a,b){function f(a,
|
|
325
|
-
b,d){3===a&&(a=new g(d,d.Z()+d.D),a.length&&(b[a.name]=a))}var g=a("./vectortilelayer");b.K=function(a,b){this.layers=a.dc(f,{},b)}},{"./vectortilelayer":5}],4:[function(a,b){function f(a,b,d,e,f){this.properties={};this.extent=d;this.type=0;this.Qa=a;this.rc=-1;this.qb=e;this.sb=f;a.dc(g,this,b)}function g(a,b,d){if(1==a)b.id=d.Z();else if(2==a)for(a=d.Z()+d.D;d.D<a;){var e=b.qb[d.Z()],f=b.sb[d.Z()];b.properties[e]=f}else 3==a?b.type=d.Z():4==a&&(b.rc=d.D)}a("point-geometry");b.K=f;f.a=["Unknown",
|
|
326
|
-
"Point","LineString","Polygon"];f.prototype.bbox=function(){var a=this.Qa;a.D=this.rc;for(var b=a.Z()+a.D,d=1,e=0,f=0,g=0,w=Infinity,t=-Infinity,z=Infinity,J=-Infinity;a.D<b;)if(e||(e=a.Z(),d=e&7,e>>=3),e--,1===d||2===d)f+=a.ec(),g+=a.ec(),f<w&&(w=f),f>t&&(t=f),g<z&&(z=g),g>J&&(J=g);else if(7!==d)throw Error("unknown command "+d);return[w,z,t,J]}},{"point-geometry":1}],5:[function(a,b){function f(a,b){this.version=1;this.name=null;this.extent=4096;this.length=0;this.Qa=a;this.qb=[];this.sb=[];this.pb=
|
|
327
|
-
[];a.dc(g,this,b);this.length=this.pb.length}function g(a,b,d){15===a?b.version=d.Z():1===a?b.name=d.fc():5===a?b.extent=d.Z():2===a?b.pb.push(d.D):3===a?b.qb.push(d.fc()):4===a&&b.sb.push(h(d))}function h(a){for(var b=null,d=a.Z()+a.D;a.D<d;)b=a.Z()>>3,b=1===b?a.fc():2===b?a.Pf():3===b?a.Of():4===b?a.Qf():5===b?a.Z():6===b?a.ec():7===b?a.Nf():null;return b}var k=a("./vectortilefeature.js");b.K=f;f.prototype.feature=function(a){if(0>a||a>=this.pb.length)throw Error("feature index out of bounds");
|
|
328
|
-
this.Qa.D=this.pb[a];a=this.Qa.Z()+this.Qa.D;return new k(this.Qa,a,this.extent,this.qb,this.sb)}},{"./vectortilefeature.js":4}]},{},[2])(2)})})();function yk(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("tag"==a.localName,"localName should be tag");b[b.length-1].lb[a.getAttribute("k")]=a.getAttribute("v")}var zk=[null],Ak=K(zk,{nd:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("nd"==a.localName,"localName should be nd");b[b.length-1].Ya.push(a.getAttribute("ref"))},tag:yk});
|
|
329
|
-
K(zk,{node:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("node"==a.localName,"localName should be node");var c=b[0],d=b[b.length-1],e=a.getAttribute("id"),f=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];d.af[e]=f;var g=L({lb:{}},Bk,a,b);xa(g.lb)||(f=new C(f),Sh(f,!1,c),c=new Ah(f),c.b=e,c.s(),c.O(g.lb),d.features.push(c))},way:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");
|
|
330
|
-
console.assert("way"==a.localName,"localName should be way");for(var c=b[0],d=a.getAttribute("id"),e=L({Ya:[],lb:{}},Ak,a,b),f=b[b.length-1],g=[],h=0,k=e.Ya.length;h<k;h++)Va(g,f.af[e.Ya[h]]);e.Ya[0]==e.Ya[e.Ya.length-1]?(h=new D(null),h.G("XY",g,[g.length])):(h=new M(null),h.G("XY",g));Sh(h,!1,c);c=new Ah(h);c.b=d;c.s();c.O(e.lb);f.features.push(c)}});var Bk=K(zk,{tag:yk});function Ck(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};var Dk=[null,"http://www.opengis.net/ows/1.1"];
|
|
331
|
-
K(Dk,{ServiceIdentification:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("ServiceIdentification"==a.localName,"localName should be ServiceIdentification");return L({},Ek,a,b)}),ServiceProvider:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("ServiceProvider"==a.localName,"localName should be ServiceProvider");return L({},Fk,a,b)}),OperationsMetadata:H(function(a,b){console.assert(a.nodeType==
|
|
332
|
-
Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("OperationsMetadata"==a.localName,"localName should be OperationsMetadata");return L({},Gk,a,b)})});
|
|
333
|
-
var Hk=K(Dk,{DeliveryPoint:H(S),City:H(S),AdministrativeArea:H(S),PostalCode:H(S),Country:H(S),ElectronicMailAddress:H(S)}),Ik=K(Dk,{Value:Jh(function(a){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Value"==a.localName,"localName should be Value");return S(a)})}),Jk=K(Dk,{AllowedValues:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("AllowedValues"==a.localName,"localName should be AllowedValues");
|
|
334
|
-
return L({},Ik,a,b)})}),Lk=K(Dk,{Phone:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Phone"==a.localName,"localName should be Phone");return L({},Kk,a,b)}),Address:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Address"==a.localName,"localName should be Address");return L({},Hk,a,b)})}),Nk=K(Dk,{HTTP:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");
|
|
335
|
-
console.assert("HTTP"==a.localName,"localName should be HTTP");return L({},Mk,a,b)})}),Mk=K(Dk,{Get:Jh(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Get"==a.localName,"localName should be Get");var c=Ck(a);return c?L({href:c},Ok,a,b):void 0}),Post:void 0}),Pk=K(Dk,{DCP:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("DCP"==a.localName,"localName should be DCP");return L({},
|
|
336
|
-
Nk,a,b)})}),Gk=K(Dk,{Operation:function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Operation"==a.localName,"localName should be Operation");var c=a.getAttribute("name"),d=L({},Pk,a,b);d&&(b[b.length-1][c]=d)}}),Kk=K(Dk,{Voice:H(S),Facsimile:H(S)}),Ok=K(Dk,{Constraint:Jh(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Constraint"==a.localName,"localName should be Constraint");var c=
|
|
337
|
-
a.getAttribute("name");return c?L({name:c},Jk,a,b):void 0})}),Qk=K(Dk,{IndividualName:H(S),PositionName:H(S),ContactInfo:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("ContactInfo"==a.localName,"localName should be ContactInfo");return L({},Lk,a,b)})}),Ek=K(Dk,{Title:H(S),ServiceTypeVersion:H(S),ServiceType:H(S)}),Fk=K(Dk,{ProviderName:H(S),ProviderSite:H(Ck),ServiceContact:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,
|
|
338
|
-
"node.nodeType should be ELEMENT");console.assert("ServiceContact"==a.localName,"localName should be ServiceContact");return L({},Qk,a,b)})});H(ai.prototype.b,"bounds");var Rk={"http://www.opengis.net/wfs":{totalInserted:H(hi),totalUpdated:H(hi),totalDeleted:H(hi)}},Sk={"http://www.opengis.net/ogc":{FeatureId:Hh(function(a){return a.getAttribute("fid")})}},Tk={"http://www.opengis.net/wfs":{Feature:function(a,b){Ph(Sk,a,b)}}};H(function(a,b){return L({},Rk,a,b)},"transactionSummary");H(function(a,b){return L([],Tk,a,b)},"insertIds");function Uk(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");return L({},Vk,a,b)}function Wk(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");return L({},Xk,a,b)}function Yk(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");var c=Uk(a,b);if(c){var d=[ii(a.getAttribute("width")),ii(a.getAttribute("height"))];c.size=d;return c}}
|
|
339
|
-
function Zk(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("KeywordList"==a.localName,"localName should be KeywordList");return L([],$k,a,b)}var al=[null,"http://www.opengis.net/wms"];
|
|
340
|
-
K(al,{Service:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Service"==a.localName,"localName should be Service");return L({},bl,a,b)}),Capability:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Capability"==a.localName,"localName should be Capability");return L({},cl,a,b)})});
|
|
341
|
-
var cl=K(al,{Request:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Request"==a.localName,"localName should be Request");return L({},dl,a,b)}),Exception:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Exception"==a.localName,"localName should be Exception");return L([],el,a,b)}),Layer:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");
|
|
342
|
-
console.assert("Layer"==a.localName,"localName should be Layer");return L({},fl,a,b)})}),bl=K(al,{Name:H(S),Title:H(S),Abstract:H(S),KeywordList:H(Zk),OnlineResource:H(Ck),ContactInformation:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType shpuld be ELEMENT");console.assert("ContactInformation"==a.localName,"localName should be ContactInformation");return L({},gl,a,b)}),Fees:H(S),AccessConstraints:H(S),LayerLimit:H(hi),MaxWidth:H(hi),MaxHeight:H(hi)}),gl=K(al,{ContactPersonPrimary:H(function(a,
|
|
343
|
-
b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("ContactPersonPrimary"==a.localName,"localName should be ContactPersonPrimary");return L({},hl,a,b)}),ContactPosition:H(S),ContactAddress:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("ContactAddress"==a.localName,"localName should be ContactAddress");return L({},il,a,b)}),ContactVoiceTelephone:H(S),ContactFacsimileTelephone:H(S),ContactElectronicMailAddress:H(S)}),
|
|
344
|
-
hl=K(al,{ContactPerson:H(S),ContactOrganization:H(S)}),il=K(al,{AddressType:H(S),Address:H(S),City:H(S),StateOrProvince:H(S),PostCode:H(S),Country:H(S)}),el=K(al,{Format:Hh(S)}),fl=K(al,{Name:H(S),Title:H(S),Abstract:H(S),KeywordList:H(Zk),CRS:Jh(S),EX_GeographicBoundingBox:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("EX_GeographicBoundingBox"==a.localName,"localName should be EX_GeographicBoundingBox");var c=L({},jl,a,b);if(c){var d=
|
|
345
|
-
c.westBoundLongitude,e=c.southBoundLatitude,f=c.eastBoundLongitude,c=c.northBoundLatitude;return void 0===d||void 0===e||void 0===f||void 0===c?void 0:[d,e,f,c]}}),BoundingBox:Jh(function(a){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("BoundingBox"==a.localName,"localName should be BoundingBox");var b=[gi(a.getAttribute("minx")),gi(a.getAttribute("miny")),gi(a.getAttribute("maxx")),gi(a.getAttribute("maxy"))],c=[gi(a.getAttribute("resx")),gi(a.getAttribute("resy"))];
|
|
346
|
-
return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:Jh(function(a){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Dimension"==a.localName,"localName should be Dimension");return{name:a.getAttribute("name"),units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:di(a.getAttribute("multipleValues")),nearestValue:di(a.getAttribute("nearestValue")),current:di(a.getAttribute("current")),
|
|
347
|
-
values:S(a)}}),Attribution:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Attribution"==a.localName,"localName should be Attribution");return L({},kl,a,b)}),AuthorityURL:Jh(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("AuthorityURL"==a.localName,"localName should be AuthorityURL");var c=Uk(a,b);if(c)return c.name=a.getAttribute("name"),c}),Identifier:Jh(S),MetadataURL:Jh(function(a,
|
|
348
|
-
b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("MetadataURL"==a.localName,"localName should be MetadataURL");var c=Uk(a,b);if(c)return c.type=a.getAttribute("type"),c}),DataURL:Jh(Uk),FeatureListURL:Jh(Uk),Style:Jh(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Style"==a.localName,"localName should be Style");return L({},ll,a,b)}),MinScaleDenominator:H(fi),MaxScaleDenominator:H(fi),Layer:Jh(function(a,
|
|
349
|
-
b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Layer"==a.localName,"localName should be Layer");var c=b[b.length-1],d=L({},fl,a,b);if(d){var e=di(a.getAttribute("queryable"));void 0===e&&(e=c.queryable);d.queryable=void 0!==e?e:!1;e=ii(a.getAttribute("cascaded"));void 0===e&&(e=c.cascaded);d.cascaded=e;e=di(a.getAttribute("opaque"));void 0===e&&(e=c.opaque);d.opaque=void 0!==e?e:!1;e=di(a.getAttribute("noSubsets"));void 0===e&&(e=c.noSubsets);d.noSubsets=
|
|
350
|
-
void 0!==e?e:!1;(e=gi(a.getAttribute("fixedWidth")))||(e=c.fixedWidth);d.fixedWidth=e;(e=gi(a.getAttribute("fixedHeight")))||(e=c.fixedHeight);d.fixedHeight=e;["Style","CRS","AuthorityURL"].forEach(function(a){a in c&&(d[a]=(d[a]||[]).concat(c[a]))});"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(a){a in d||(d[a]=c[a])});return d}})}),kl=K(al,{Title:H(S),OnlineResource:H(Ck),LogoURL:H(Yk)}),jl=K(al,{westBoundLongitude:H(fi),
|
|
351
|
-
eastBoundLongitude:H(fi),southBoundLatitude:H(fi),northBoundLatitude:H(fi)}),dl=K(al,{GetCapabilities:H(Wk),GetMap:H(Wk),GetFeatureInfo:H(Wk)}),Xk=K(al,{Format:Jh(S),DCPType:Jh(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("DCPType"==a.localName,"localName should be DCPType");return L({},ml,a,b)})}),ml=K(al,{HTTP:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("HTTP"==a.localName,
|
|
352
|
-
"localName should be HTTP");return L({},nl,a,b)})}),nl=K(al,{Get:H(Uk),Post:H(Uk)}),ll=K(al,{Name:H(S),Title:H(S),Abstract:H(S),LegendURL:Jh(Yk),StyleSheetURL:H(Uk),StyleURL:H(Uk)}),Vk=K(al,{Format:H(S),OnlineResource:H(Ck)}),$k=K(al,{Keyword:Hh(S)});function pl(a){var b=S(a).split(" ");if(b&&2==b.length)return a=+b[0],b=+b[1],isNaN(a)||isNaN(b)?void 0:[a,b]}var ql=[null,"http://www.opengis.net/wmts/1.0"],rl=[null,"http://www.opengis.net/ows/1.1"];K(ql,{Contents:H(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Contents"==a.localName,"localName should be Contents");return L({},sl,a,b)})});
|
|
353
|
-
var sl=K(ql,{Layer:Jh(function(a,b){console.assert(a.nodeType==Node.ELEMENT_NODE,"node.nodeType should be ELEMENT");console.assert("Layer"==a.localName,"localName should be Layer");return L({},tl,a,b)}),TileMatrixSet:Jh(function(a,b){return L({},ul,a,b)})}),tl=K(ql,{Style:Jh(function(a,b){var c=L({},vl,a,b);if(c){var d="true"===a.getAttribute("isDefault");c.isDefault=d;return c}}),Format:Jh(S),TileMatrixSetLink:Jh(function(a,b){return L({},wl,a,b)}),Dimension:Jh(function(a,b){return L({},xl,a,b)}),
|
|
354
|
-
ResourceURL:Jh(function(a){var b=a.getAttribute("format"),c=a.getAttribute("template");a=a.getAttribute("resourceType");var d={};b&&(d.format=b);c&&(d.template=c);a&&(d.resourceType=a);return d})},K(rl,{Title:H(S),Abstract:H(S),WGS84BoundingBox:H(function(a,b){var c=L([],yl,a,b);return 2!=c.length?void 0:jb(c)}),Identifier:H(S)})),vl=K(ql,{LegendURL:Jh(function(a){var b={};b.format=a.getAttribute("format");b.href=Ck(a);return b})},K(rl,{Title:H(S),Identifier:H(S)})),wl=K(ql,{TileMatrixSet:H(S),TileMatrixSetLimits:H(function(a,
|
|
355
|
-
b){return L([],zl,a,b)})}),zl=K(ql,{TileMatrixLimits:Hh(function(a,b){return L({},Al,a,b)})}),Al=K(ql,{TileMatrix:H(S),MinTileRow:H(hi),MaxTileRow:H(hi),MinTileCol:H(hi),MaxTileCol:H(hi)}),xl=K(ql,{Default:H(S),Value:Jh(S)},K(rl,{Identifier:H(S)})),yl=K(rl,{LowerCorner:Hh(pl),UpperCorner:Hh(pl)}),ul=K(ql,{WellKnownScaleSet:H(S),TileMatrix:Jh(function(a,b){return L({},Bl,a,b)})},K(rl,{SupportedCRS:H(S),Identifier:H(S)})),Bl=K(ql,{TopLeftCorner:H(pl),ScaleDenominator:H(fi),TileWidth:H(hi),TileHeight:H(hi),
|
|
356
|
-
MatrixWidth:H(hi),MatrixHeight:H(hi)},K(rl,{Identifier:H(S)}));function V(a,b,c){A.call(this);this.gd(a,b?b:0,c)}u(V,A);l=V.prototype;l.clone=function(){var a=new V(null);qc(a,this.C,this.g.slice());a.s();return a};l.za=function(a,b,c,d){var e=this.g;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(0===b)for(d=0;d<this.a;++d)c[d]=e[d];else for(d=this.$b()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2;d<this.a;++d)c[d]=e[d];c.length=this.a;return b}return d};l.Na=function(a,b){var c=this.g,d=a-c[0],c=b-c[1];return d*d+c*c<=Cl(this)};
|
|
357
|
-
l.Db=function(){return this.g.slice(0,this.a)};l.vb=function(a){var b=this.g,c=b[this.a]-b[0];return rb(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};l.$b=function(){return Math.sqrt(Cl(this))};function Cl(a){var b=a.g[a.a]-a.g[0];a=a.g[a.a+1]-a.g[1];return b*b+a*a}l.T=function(){return"Circle"};l.ha=function(a){var b=this.B();return Ib(a,b)?(b=this.Db(),a[0]<=b[0]&&a[2]>=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:wb(a,this.ra,this)):!1};
|
|
358
|
-
l.nf=function(a){var b=this.a;console.assert(a.length==b,"center array length should match stride");var c=a.slice();c[b]=c[0]+(this.g[b]-this.g[0]);var d;for(d=1;d<b;++d)c[b+d]=a[d];qc(this,this.C,c);this.s()};l.gd=function(a,b,c){if(a){rc(this,c,a,0);this.g||(this.g=[]);c=this.g;a=zc(c,a,this.a);c[a++]=c[0]+b;var d;b=1;for(d=this.a;b<d;++b)c[a++]=c[b];c.length=a}else qc(this,"XY",null);this.s()};l.pf=function(a){this.g[this.a]=this.g[0]+a;this.s()};function Dl(a,b,c,d,e){Me.call(this,a,b);this.f=c;this.i=new Image;null!==d&&(this.i.crossOrigin=d);this.b=null;this.u=e}u(Dl,Me);l=Dl.prototype;l.$=function(){1==this.state&&El(this);this.a&&Ha(this.a);this.state=5;this.s();Me.prototype.$.call(this)};l.Cb=function(){return this.i};l.getKey=function(){return this.f};l.cf=function(){this.state=3;El(this);this.s()};l.df=function(){this.state=this.i.naturalWidth&&this.i.naturalHeight?2:4;El(this);this.s()};
|
|
359
|
-
l.load=function(){if(0==this.state||3==this.state)this.state=1,this.s(),console.assert(!this.b,"this.imageListenerKeys_ should be null"),this.b=[x(this.i,"error",this.cf,this,!0),x(this.i,"load",this.df,this,!0)],this.u(this,this.f)};function El(a){a.b.forEach(za);a.b=null};function Fl(a,b,c,d,e,f,g,h,k,n,m){Me.call(this,e,0);this.H=void 0!==m?m:!1;this.A=g;this.v=h;this.o=null;this.b=b;this.u=d;this.j=f?f:e;this.i=[];this.Oa=null;this.f=0;f=td(d,this.j);h=this.u.B();e=this.b.B();f=h?Hb(f,h):f;if(0===Bb(f))this.state=4;else if((h=a.B())&&(e?e=Hb(e,h):e=h),h=nd(d,this.j[0]),m=Fb(f),d=kc(m,c,a),h=Ub(c,h,m),m=c.Ua(),void 0!==m&&(h*=m),m=a.Ua(),void 0!==m&&(h/=m),d=Ub(a,h,d)/h,isFinite(d)&&0<d&&(h/=d),d=h,!isFinite(d)||0>=d)this.state=4;else if(this.l=new oh(a,c,f,e,d*(void 0!==
|
|
360
|
-
n?n:.5)),0===this.l.b.length)this.state=4;else if(this.f=ud(b,d),c=qh(this.l),e&&(a.b?(c[1]=la(c[1],e[1],e[3]),c[3]=la(c[3],e[1],e[3])):c=Hb(c,e)),Bb(c))if(a=qd(b,c,this.f),100>(a.J-a.I+1)*(a.M-a.L+1)){for(b=a.I;b<=a.J;b++)for(c=a.L;c<=a.M;c++)(n=k(this.f,b,c,g))&&this.i.push(n);0===this.i.length&&(this.state=4)}else console.assert(!1,"reasonable number of tiles is required"),this.state=3;else this.state=4}u(Fl,Me);Fl.prototype.$=function(){1==this.state&&(this.Oa.forEach(za),this.Oa=null);Me.prototype.$.call(this)};
|
|
361
|
-
Fl.prototype.Cb=function(){return this.o};Fl.prototype.dd=function(){var a=[];this.i.forEach(function(b){b&&2==b.V()&&a.push({extent:td(this.b,b.Aa),image:b.Cb()})},this);this.i.length=0;if(0===a.length)this.state=3;else{var b=this.j[0],c=sd(this.u,b),d="number"===typeof c?c:c[0],c="number"===typeof c?c:c[1],b=nd(this.u,b),e=nd(this.b,this.f),f=td(this.u,this.j);this.o=nh(d,c,this.A,e,this.b.B(),b,f,this.l,a,this.v,this.H);this.state=2}this.s()};
|
|
362
|
-
Fl.prototype.load=function(){if(0==this.state){this.state=1;this.s();var a=0;console.assert(!this.Oa,"this.sourcesListenerKeys_ should be null");this.Oa=[];this.i.forEach(function(b){var c=b.V();if(0==c||1==c){a++;var d;d=x(b,"change",function(){var c=b.V();if(2==c||3==c||4==c)za(d),a--,console.assert(0<=a,"leftToLoad should not be negative"),0===a&&(this.Oa.forEach(za),this.Oa=null,this.dd())},this);this.Oa.push(d)}},this);this.i.forEach(function(a){0==a.V()&&a.load()});0===a&&setTimeout(this.dd.bind(this),
|
|
363
|
-
0)}};function Gl(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=vd(b,g[0]);v(a,55);return(a.M-a.L+1+g[2]).toString()})}}function Hl(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=Gl(a[e],b);return Il(d)}
|
|
364
|
-
function Il(a){console.assert(0<a.length,"Length of tile url functions should be greater than 0");return 1===a.length?a[0]:function(b,c,d){if(b)return a[pa((b[1]<<b[0])+b[2],a.length)](b,c,d)}}function Jl(){};function Kl(a){th.call(this);this.f=void 0!==a?a:2048}u(Kl,th);function Ll(a){return a.b>a.f}Kl.prototype.Sa=function(a){for(var b,c;Ll(this);){console.assert(this.a,"oldest must not be null");b=this.a.ab;c=b.Aa[0].toString();var d;if(d=c in a)b=b.Aa,d=gd(a[c],b[1],b[2]);if(d)break;else Ha(this.pop())}};function Ml(a){rh.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.W=void 0!==a.opaque?a.opaque:!1;this.A=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new Kl(a.cacheSize);this.F=[0,0];this.Ma=""}u(Ml,rh);l=Ml.prototype;l.ad=function(){return Ll(this.a)};l.Sa=function(a,b){var c=this.jb(a);c&&c.Sa(b)};
|
|
365
|
-
function ah(a,b,c,d,e){b=a.jb(b);if(!b)return!1;for(var f=!0,g,h,k=d.I;k<=d.J;++k)for(var n=d.L;n<=d.M;++n)g=a.xb(c,k,n),h=!1,b.i.hasOwnProperty(g)&&(g=b.get(g),(h=2===g.V())&&(h=!1!==e(g))),h||(f=!1);return f}l.Fc=function(){return 0};l.getKey=function(){return this.Ma};l.xb=function(a,b,c){return a+"/"+b+"/"+c};l.Sb=function(){return this.W};l.Kc=function(){return this.tileGrid};l.La=function(a){return this.tileGrid?this.tileGrid:wd(a)};l.jb=function(a){var b=this.b;return b&&!hc(b,a)?null:this.a};
|
|
366
|
-
function gh(a,b,c){var d=a.La(c);c=a.A;b=id(sd(d,b),a.F);1==c?a=b:(a=a.F,void 0===a&&(a=[0,0]),a[0]=b[0]*c+.5|0,a[1]=b[1]*c+.5|0);return a}function Nl(a,b,c){var d=void 0!==c?c:a.b;c=a.La(d);if(a.N&&d.c){var e=b;a=e[0];b=rd(c,e);d=xd(d);nb(d,b)?b=e:(e=Db(d),b[0]+=e*Math.ceil((d[0]-b[0])/e),d=nd(c,a),b=pd(c,b[0],b[1],d,!1,void 0))}e=b[0];d=b[1];a=b[2];if(c.minZoom>e||e>c.maxZoom)c=!1;else{var f=c.B();c=(c=f?qd(c,f,e):vd(c,e))?gd(c,d,a):!0}return c?b:null}l.ac=function(){this.a.clear();this.s()};
|
|
367
|
-
l.pd=fa;function Ol(a,b){Ia.call(this,a);this.tile=b}u(Ol,Ia);function Pl(a){Ml.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.j?this.j.bind(this):Jl;this.urls=null;a.urls?this.hc(a.urls):a.url&&this.bc(a.url);a.tileUrlFunction&&this.kb(a.tileUrlFunction)}u(Pl,Ml);l=Pl.prototype;l.Lc=function(){return this.tileLoadFunction};l.Mc=function(){return this.tileUrlFunction};
|
|
368
|
-
l.Nc=function(){return this.urls};l.Df=function(a){a=a.target;switch(a.V()){case 1:this.c(new Ol("tileloadstart",a));break;case 2:this.c(new Ol("tileloadend",a));break;case 3:this.c(new Ol("tileloaderror",a))}};l.md=function(a){this.a.clear();this.tileLoadFunction=a;this.s()};l.kb=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?this.Ma!==b&&(this.Ma=b,this.s()):this.s()};
|
|
369
|
-
l.bc=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.kb(this.j?this.j.bind(this):Hl(b,this.tileGrid),a)};l.hc=function(a){this.urls=a;var b=a.join("\n");this.kb(this.j?this.j.bind(this):Hl(a,this.tileGrid),b)};
|
|
370
|
-
l.pd=function(a,b,c){a=this.xb(a,b,c);this.a.i.hasOwnProperty(a)&&this.a.get(a)};function Ql(a){Pl.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:Rl,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:Dl;this.f={};this.l={};this.S=a.reprojectionErrorThreshold;
|
|
371
|
-
this.v=!1}u(Ql,Pl);l=Ql.prototype;l.ad=function(){if(Ll(this.a))return!0;for(var a in this.f)if(Ll(this.f[a]))return!0;return!1};l.Sa=function(a,b){var c=this.jb(a);this.a.Sa(this.a==c?b:{});for(var d in this.f){var e=this.f[d];e.Sa(e==c?b:{})}};l.Fc=function(a){return this.b&&a&&hc(this.b,a),0};l.Sb=function(a){return this.b&&a&&!hc(this.b,a)?!1:Pl.prototype.Sb.call(this,a)};
|
|
372
|
-
l.La=function(a){var b=this.b;return!this.tileGrid||b&&!hc(b,a)?(b=ga(a).toString(),b in this.l||(this.l[b]=wd(a)),this.l[b]):this.tileGrid};l.jb=function(a){var b=this.b;if(!b||hc(b,a))return this.a;a=ga(a).toString();a in this.f||(this.f[a]=new Kl);return this.f[a]};function Sl(a,b,c,d,e,f,g){b=[b,c,d];e=(c=Nl(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.Df,a);return e}
|
|
373
|
-
function fh(a,b,c,d,e,f){if(a.b&&f&&!hc(a.b,f)){e=a.jb(f);d=[b,c,d];var g;b=a.xb.apply(a,d);e.i.hasOwnProperty(b)&&(g=e.get(b));c=a.getKey();if(g&&g.key==c)return g;var h=a.b,k=a.La(h),n=a.La(f),m=Nl(a,d,f);a=new Fl(h,k,f,n,d,m,a.A,0,function(a,b,c,d){return Tl(this,a,b,c,d,h)}.bind(a),a.S,a.v);a.key=c;g?(a.a=g,e.replace(b,a)):e.set(b,a);return a}return Tl(a,b,c,d,e,f)}
|
|
374
|
-
function Tl(a,b,c,d,e,f){var g,h=a.xb(b,c,d),k=a.getKey();if(a.a.i.hasOwnProperty(h)){if(g=a.a.get(h),g.key!=k){var n=g;g=Sl(a,b,c,d,e,f,k);0==n.V()?g.a=n.a:g.a=n;if(g.a){b=g.a;c=g;do{if(2==b.V()){b.a=null;break}else 1==b.V()?c=b:0==b.V()?c.a=b.a:c=b;b=c.a}while(b)}a.a.replace(h,g)}}else g=Sl(a,b,c,d,e,f,k),a.a.set(h,g);return g}l.jd=function(a){if(this.v!=a){this.v=a;for(var b in this.f)this.f[b].clear();this.s()}};l.ld=function(a,b){var c=Wb(a);c&&(c=ga(c).toString(),c in this.l||(this.l[c]=b))};
|
|
375
|
-
function Rl(a,b){a.Cb().src=b};function X(a){a=a||{};var b=void 0!==a.projection?a.projection:"EPSG:3857",c;if(void 0!==a.tileGrid)c=a.tileGrid;else{c={extent:xd(b),maxZoom:a.maxZoom,minZoom:a.minZoom,tileSize:a.tileSize};var d={};va(d,void 0!==c?c:{});void 0===d.extent&&(d.extent=Wb("EPSG:3857").B());d.resolutions=yd(d.extent,d.maxZoom,d.tileSize);delete d.maxZoom;c=new jd(d)}Ql.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,
|
|
376
|
-
tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0})}u(X,Ql);(function(){var a={},b={K:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.K=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Jg=c()}})(function(){return function d(a,b,g){function h(m,n){if(!b[m]){if(!a[m]){var r="function"==typeof require&&require;if(!n&&r)return r(m,!0);if(k)return k(m,!0);r=Error("Cannot find module '"+m+"'");throw r.code="MODULE_NOT_FOUND",r;}r=b[m]={K:{}};a[m][0].call(r.K,function(b){var d=
|
|
377
|
-
a[m][1][b];return h(d?d:b)},r,r.K,d,a,b,g)}return b[m].K}for(var k="function"==typeof require&&require,n=0;n<g.length;n++)h(g[n]);return h}({1:[function(a,b,f){a=a("./processor");f.Bg=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,k=e.length,n=e[0].byteLength;if(d.imageOps){n=Array(k);for(d=0;d<k;++d){var Y=n,ia=d,aa;aa=new Uint8ClampedArray(e[d]);var da=g,U=h;aa=b?new ImageData(aa,
|
|
378
|
-
da,U):{data:aa,width:da,height:U};Y[ia]=aa}g=a(n,f).data}else{g=new Uint8ClampedArray(n);h=Array(k);Y=Array(k);for(d=0;d<k;++d)h[d]=new Uint8ClampedArray(e[d]),Y[d]=[0,0,0,0];for(e=0;e<n;e+=4){for(d=0;d<k;++d)ia=h[d],Y[d][0]=ia[e],Y[d][1]=ia[e+1],Y[d][2]=ia[e+2],Y[d][3]=ia[e+3];d=a(Y,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()+
|
|
379
|
-
")(",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 k(a){this.Ib=!!a.Hg;var b;0===a.threads?
|
|
380
|
-
b=0:this.Ib?b=1:b=a.threads||1;var d=[];if(b)for(var e=0;e<b;++e)d[e]=g(a,this.uc.bind(this,e));else d[0]=h(a,this.uc.bind(this,0));this.tb=d;this.vc=[];this.rb=0;this.Pa={};this.Jb=null}var n=a("./util").$e;k.prototype.Bd=function(){if(0===this.rb&&0<this.vc.length){var a=this.Jb=this.vc.shift(),b=a.Xa[0].width,d=a.Xa[0].height,e=a.Xa.map(function(a){return a.data.buffer}),f=this.tb.length;this.rb=f;if(1===f)this.tb[0].postMessage({buffers:e,meta:a.Le,imageOps:this.Ib,width:b,height:d},e);else for(var g=
|
|
381
|
-
4*Math.ceil(a.Xa[0].data.length/4/f),h=0;h<f;++h){for(var k=h*g,n=[],Y=0,ia=e.length;Y<ia;++Y)n.push(e[h].slice(k,k+g));this.tb[h].postMessage({buffers:n,meta:a.Le,imageOps:this.Ib,width:b,height:d},n)}}};k.prototype.uc=function(a,b){this.Gg||(this.Pa[a]=b.data,--this.rb,0===this.rb&&this.Dd())};k.prototype.Dd=function(){var a=this.Jb,b=this.tb.length,d,e;if(1===b)d=new Uint8ClampedArray(this.Pa[0].buffer),e=this.Pa[0].meta;else{var f=a.Xa[0].data.length;d=new Uint8ClampedArray(f);e=Array(f);for(var f=
|
|
382
|
-
4*Math.ceil(f/4/b),g=0;g<b;++g){var h=g*f;d.set(new Uint8ClampedArray(this.Pa[g].buffer),h);e[g]=this.Pa[g].meta}}this.Jb=null;this.Pa={};a.ub(null,n(d,a.Xa[0].width,a.Xa[0].height),e);this.Bd()};b.K=k},{"./util":3}],3:[function(a,b,f){var g=!0;try{new ImageData(10,10)}catch(k){g=!1}var h=document.createElement("canvas").getContext("2d");f.$e=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)})})();q("ol.Map",G);G.prototype.addControl=G.prototype.Id;G.prototype.addInteraction=G.prototype.Jd;G.prototype.addLayer=G.prototype.Kd;G.prototype.addOverlay=G.prototype.Ld;G.prototype.beforeRender=G.prototype.Rd;G.prototype.forEachFeatureAtPixel=G.prototype.ae;G.prototype.forEachLayerAtPixel=G.prototype.ff;G.prototype.hasFeatureAtPixel=G.prototype.He;G.prototype.getEventCoordinate=G.prototype.ee;G.prototype.getEventPixel=G.prototype.Pb;G.prototype.getTarget=G.prototype.Ub;
|
|
383
|
-
G.prototype.getTargetElement=G.prototype.Vb;G.prototype.getCoordinateFromPixel=G.prototype.Ca;G.prototype.getControls=G.prototype.de;G.prototype.getOverlays=G.prototype.me;G.prototype.getOverlayById=G.prototype.le;G.prototype.getInteractions=G.prototype.fe;G.prototype.getLayerGroup=G.prototype.Ta;G.prototype.getLayers=G.prototype.gf;G.prototype.getPixelFromCoordinate=G.prototype.yb;G.prototype.getSize=G.prototype.Bb;G.prototype.getView=G.prototype.U;G.prototype.getViewport=G.prototype.re;
|
|
384
|
-
G.prototype.renderSync=G.prototype.Yf;G.prototype.render=G.prototype.render;G.prototype.removeControl=G.prototype.Sf;G.prototype.removeInteraction=G.prototype.Tf;G.prototype.removeLayer=G.prototype.Uf;G.prototype.removeOverlay=G.prototype.Vf;G.prototype.setLayerGroup=G.prototype.dg;G.prototype.setSize=G.prototype.gc;G.prototype.setTarget=G.prototype.Sc;G.prototype.setView=G.prototype.gg;G.prototype.updateSize=G.prototype.lc;G.prototype.get=G.prototype.get;G.prototype.getKeys=G.prototype.ia;
|
|
385
|
-
G.prototype.getProperties=G.prototype.X;G.prototype.set=G.prototype.set;G.prototype.setProperties=G.prototype.O;G.prototype.unset=G.prototype.ja;G.prototype.changed=G.prototype.s;G.prototype.dispatchEvent=G.prototype.c;G.prototype.getRevision=G.prototype.aa;G.prototype.on=G.prototype.ba;G.prototype.once=G.prototype.ca;G.prototype.un=G.prototype.ea;G.prototype.unByKey=G.prototype.fa;Ma.prototype.changed=Ma.prototype.s;Ma.prototype.dispatchEvent=Ma.prototype.c;Ma.prototype.getRevision=Ma.prototype.aa;
|
|
386
|
-
Ma.prototype.on=Ma.prototype.ba;Ma.prototype.once=Ma.prototype.ca;Ma.prototype.un=Ma.prototype.ea;Ma.prototype.unByKey=Ma.prototype.fa;q("ol.View",E);E.prototype.animate=E.prototype.animate;E.prototype.constrainCenter=E.prototype.wb;E.prototype.constrainResolution=E.prototype.constrainResolution;E.prototype.constrainRotation=E.prototype.constrainRotation;E.prototype.getCenter=E.prototype.wa;E.prototype.calculateExtent=E.prototype.Ac;E.prototype.getMaxResolution=E.prototype.jf;
|
|
387
|
-
E.prototype.getMinResolution=E.prototype.kf;E.prototype.getProjection=E.prototype.lf;E.prototype.getResolution=E.prototype.la;E.prototype.getResolutions=E.prototype.mf;E.prototype.getRotation=E.prototype.ma;E.prototype.getZoom=E.prototype.te;E.prototype.fit=E.prototype.$d;E.prototype.centerOn=E.prototype.Sd;E.prototype.rotate=E.prototype.rotate;E.prototype.setCenter=E.prototype.Ha;E.prototype.setResolution=E.prototype.$a;E.prototype.setRotation=E.prototype.Zb;E.prototype.setZoom=E.prototype.ig;
|
|
388
|
-
E.prototype.get=E.prototype.get;E.prototype.getKeys=E.prototype.ia;E.prototype.getProperties=E.prototype.X;E.prototype.set=E.prototype.set;E.prototype.setProperties=E.prototype.O;E.prototype.unset=E.prototype.ja;E.prototype.changed=E.prototype.s;E.prototype.dispatchEvent=E.prototype.c;E.prototype.getRevision=E.prototype.aa;E.prototype.on=E.prototype.ba;E.prototype.once=E.prototype.ca;E.prototype.un=E.prototype.ea;E.prototype.unByKey=E.prototype.fa;
|
|
389
|
-
q("ol.animation.pan",function(a){console.warn("ol.animation.pan() is deprecated. Use view.animate() instead.");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:hb;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[Zc]+=1,!0;if(b.time<c+f){var n=1-g((b.time-c)/f),m=d-b.viewState.center[0],p=e-b.viewState.center[1];b.animate=!0;b.viewState.center[0]+=n*m;b.viewState.center[1]+=n*p;b.viewHints[Zc]+=1;return!0}return!1}});
|
|
390
|
-
q("ol.animation.zoom",function(a){console.warn("ol.animation.zoom() is deprecated. Use view.animate() instead.");var b=a.resolution,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:hb;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[Zc]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),k=b-g.viewState.resolution;g.animate=!0;g.viewState.resolution+=h*k;g.viewHints[Zc]+=1;return!0}return!1}});q("ol.geom.Circle",V);V.prototype.clone=V.prototype.clone;
|
|
391
|
-
V.prototype.getCenter=V.prototype.Db;V.prototype.getRadius=V.prototype.$b;V.prototype.getType=V.prototype.T;V.prototype.intersectsExtent=V.prototype.ha;V.prototype.setCenter=V.prototype.nf;V.prototype.setCenterAndRadius=V.prototype.gd;V.prototype.setRadius=V.prototype.pf;V.prototype.transform=V.prototype.sa;q("ol.geom.Geometry",y);y.prototype.getClosestPoint=y.prototype.ua;y.prototype.intersectsCoordinate=y.prototype.ra;y.prototype.getExtent=y.prototype.B;y.prototype.rotate=y.prototype.rotate;
|
|
392
|
-
y.prototype.scale=y.prototype.scale;y.prototype.simplify=y.prototype.xa;y.prototype.transform=y.prototype.sa;q("ol.geom.GeometryCollection",R);R.prototype.clone=R.prototype.clone;R.prototype.getGeometries=R.prototype.Ec;R.prototype.getType=R.prototype.T;R.prototype.intersectsExtent=R.prototype.ha;R.prototype.setGeometries=R.prototype.hd;R.prototype.applyTransform=R.prototype.Ra;R.prototype.translate=R.prototype.translate;q("ol.geom.LinearRing",B);B.prototype.clone=B.prototype.clone;
|
|
393
|
-
B.prototype.getArea=B.prototype.sf;B.prototype.getCoordinates=B.prototype.ga;B.prototype.getType=B.prototype.T;B.prototype.setCoordinates=B.prototype.Y;q("ol.geom.LineString",M);M.prototype.appendCoordinate=M.prototype.Md;M.prototype.clone=M.prototype.clone;M.prototype.forEachSegment=M.prototype.be;M.prototype.getCoordinateAtM=M.prototype.qf;M.prototype.getCoordinates=M.prototype.ga;M.prototype.getCoordinateAt=M.prototype.Dc;M.prototype.getLength=M.prototype.rf;M.prototype.getType=M.prototype.T;
|
|
394
|
-
M.prototype.intersectsExtent=M.prototype.ha;M.prototype.setCoordinates=M.prototype.Y;q("ol.geom.MultiLineString",O);O.prototype.appendLineString=O.prototype.Nd;O.prototype.clone=O.prototype.clone;O.prototype.getCoordinateAtM=O.prototype.tf;O.prototype.getCoordinates=O.prototype.ga;O.prototype.getLineString=O.prototype.ie;O.prototype.getLineStrings=O.prototype.Rb;O.prototype.getType=O.prototype.T;O.prototype.intersectsExtent=O.prototype.ha;O.prototype.setCoordinates=O.prototype.Y;
|
|
395
|
-
q("ol.geom.MultiPoint",P);P.prototype.appendPoint=P.prototype.Pd;P.prototype.clone=P.prototype.clone;P.prototype.getCoordinates=P.prototype.ga;P.prototype.getPoint=P.prototype.ne;P.prototype.getPoints=P.prototype.Tc;P.prototype.getType=P.prototype.T;P.prototype.intersectsExtent=P.prototype.ha;P.prototype.setCoordinates=P.prototype.Y;q("ol.geom.MultiPolygon",Q);Q.prototype.appendPolygon=Q.prototype.Qd;Q.prototype.clone=Q.prototype.clone;Q.prototype.getArea=Q.prototype.uf;
|
|
396
|
-
Q.prototype.getCoordinates=Q.prototype.ga;Q.prototype.getInteriorPoints=Q.prototype.he;Q.prototype.getPolygon=Q.prototype.oe;Q.prototype.getPolygons=Q.prototype.Ic;Q.prototype.getType=Q.prototype.T;Q.prototype.intersectsExtent=Q.prototype.ha;Q.prototype.setCoordinates=Q.prototype.Y;q("ol.geom.Point",C);C.prototype.clone=C.prototype.clone;C.prototype.getCoordinates=C.prototype.ga;C.prototype.getType=C.prototype.T;C.prototype.intersectsExtent=C.prototype.ha;C.prototype.setCoordinates=C.prototype.Y;
|
|
397
|
-
q("ol.geom.Polygon",D);D.prototype.appendLinearRing=D.prototype.Od;D.prototype.clone=D.prototype.clone;D.prototype.getArea=D.prototype.vf;D.prototype.getCoordinates=D.prototype.ga;D.prototype.getInteriorPoint=D.prototype.ge;D.prototype.getLinearRingCount=D.prototype.ke;D.prototype.getLinearRing=D.prototype.je;D.prototype.getLinearRings=D.prototype.Gc;D.prototype.getType=D.prototype.T;D.prototype.intersectsExtent=D.prototype.ha;D.prototype.setCoordinates=D.prototype.Y;
|
|
398
|
-
q("ol.geom.Polygon.circular",function(a,b,c,d){var e=d?d:32;d=[];var f;for(f=0;f<e;++f)Va(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new D(null);a.G("XY",d,[d.length]);return a});q("ol.geom.Polygon.fromExtent",Tc);
|
|
399
|
-
q("ol.geom.Polygon.fromCircle",function(a,b,c){var d=b?b:32,e=a.a,f=a.C;b=new D(null,f);for(var d=e*(d+1),e=Array(d),g=0;g<d;g++)e[g]=0;b.G(f,e,[e.length]);f=a.Db();a=a.$b();var d=b.g,e=b.C,g=b.a,h=b.Ka();console.assert(1===h.length,"only 1 ring is supported");var k=d.length/g-1;c=c?c:0;for(var n,m,p=0;p<=k;++p)m=p*g,n=c+2*pa(p,k)*Math.PI/k,d[m]=f[0]+a*Math.cos(n),d[m+1]=f[1]+a*Math.sin(n);b.G(e,d,h);return b});q("ol.geom.SimpleGeometry",A);A.prototype.getFirstCoordinate=A.prototype.Da;
|
|
400
|
-
A.prototype.getLastCoordinate=A.prototype.Ea;A.prototype.getLayout=A.prototype.Fa;A.prototype.applyTransform=A.prototype.Ra;A.prototype.translate=A.prototype.translate;y.prototype.get=y.prototype.get;y.prototype.getKeys=y.prototype.ia;y.prototype.getProperties=y.prototype.X;y.prototype.set=y.prototype.set;y.prototype.setProperties=y.prototype.O;y.prototype.unset=y.prototype.ja;y.prototype.changed=y.prototype.s;y.prototype.dispatchEvent=y.prototype.c;y.prototype.getRevision=y.prototype.aa;
|
|
401
|
-
y.prototype.on=y.prototype.ba;y.prototype.once=y.prototype.ca;y.prototype.un=y.prototype.ea;y.prototype.unByKey=y.prototype.fa;A.prototype.getClosestPoint=A.prototype.ua;A.prototype.intersectsCoordinate=A.prototype.ra;A.prototype.getExtent=A.prototype.B;A.prototype.rotate=A.prototype.rotate;A.prototype.scale=A.prototype.scale;A.prototype.simplify=A.prototype.xa;A.prototype.transform=A.prototype.sa;A.prototype.get=A.prototype.get;A.prototype.getKeys=A.prototype.ia;A.prototype.getProperties=A.prototype.X;
|
|
402
|
-
A.prototype.set=A.prototype.set;A.prototype.setProperties=A.prototype.O;A.prototype.unset=A.prototype.ja;A.prototype.changed=A.prototype.s;A.prototype.dispatchEvent=A.prototype.c;A.prototype.getRevision=A.prototype.aa;A.prototype.on=A.prototype.ba;A.prototype.once=A.prototype.ca;A.prototype.un=A.prototype.ea;A.prototype.unByKey=A.prototype.fa;V.prototype.getFirstCoordinate=V.prototype.Da;V.prototype.getLastCoordinate=V.prototype.Ea;V.prototype.getLayout=V.prototype.Fa;V.prototype.rotate=V.prototype.rotate;
|
|
403
|
-
V.prototype.scale=V.prototype.scale;V.prototype.getClosestPoint=V.prototype.ua;V.prototype.intersectsCoordinate=V.prototype.ra;V.prototype.getExtent=V.prototype.B;V.prototype.simplify=V.prototype.xa;V.prototype.get=V.prototype.get;V.prototype.getKeys=V.prototype.ia;V.prototype.getProperties=V.prototype.X;V.prototype.set=V.prototype.set;V.prototype.setProperties=V.prototype.O;V.prototype.unset=V.prototype.ja;V.prototype.changed=V.prototype.s;V.prototype.dispatchEvent=V.prototype.c;
|
|
404
|
-
V.prototype.getRevision=V.prototype.aa;V.prototype.on=V.prototype.ba;V.prototype.once=V.prototype.ca;V.prototype.un=V.prototype.ea;V.prototype.unByKey=V.prototype.fa;R.prototype.getClosestPoint=R.prototype.ua;R.prototype.intersectsCoordinate=R.prototype.ra;R.prototype.getExtent=R.prototype.B;R.prototype.rotate=R.prototype.rotate;R.prototype.scale=R.prototype.scale;R.prototype.simplify=R.prototype.xa;R.prototype.transform=R.prototype.sa;R.prototype.get=R.prototype.get;R.prototype.getKeys=R.prototype.ia;
|
|
405
|
-
R.prototype.getProperties=R.prototype.X;R.prototype.set=R.prototype.set;R.prototype.setProperties=R.prototype.O;R.prototype.unset=R.prototype.ja;R.prototype.changed=R.prototype.s;R.prototype.dispatchEvent=R.prototype.c;R.prototype.getRevision=R.prototype.aa;R.prototype.on=R.prototype.ba;R.prototype.once=R.prototype.ca;R.prototype.un=R.prototype.ea;R.prototype.unByKey=R.prototype.fa;B.prototype.getFirstCoordinate=B.prototype.Da;B.prototype.getLastCoordinate=B.prototype.Ea;B.prototype.getLayout=B.prototype.Fa;
|
|
406
|
-
B.prototype.rotate=B.prototype.rotate;B.prototype.scale=B.prototype.scale;B.prototype.getClosestPoint=B.prototype.ua;B.prototype.intersectsCoordinate=B.prototype.ra;B.prototype.getExtent=B.prototype.B;B.prototype.simplify=B.prototype.xa;B.prototype.transform=B.prototype.sa;B.prototype.get=B.prototype.get;B.prototype.getKeys=B.prototype.ia;B.prototype.getProperties=B.prototype.X;B.prototype.set=B.prototype.set;B.prototype.setProperties=B.prototype.O;B.prototype.unset=B.prototype.ja;
|
|
407
|
-
B.prototype.changed=B.prototype.s;B.prototype.dispatchEvent=B.prototype.c;B.prototype.getRevision=B.prototype.aa;B.prototype.on=B.prototype.ba;B.prototype.once=B.prototype.ca;B.prototype.un=B.prototype.ea;B.prototype.unByKey=B.prototype.fa;M.prototype.getFirstCoordinate=M.prototype.Da;M.prototype.getLastCoordinate=M.prototype.Ea;M.prototype.getLayout=M.prototype.Fa;M.prototype.rotate=M.prototype.rotate;M.prototype.scale=M.prototype.scale;M.prototype.getClosestPoint=M.prototype.ua;
|
|
408
|
-
M.prototype.intersectsCoordinate=M.prototype.ra;M.prototype.getExtent=M.prototype.B;M.prototype.simplify=M.prototype.xa;M.prototype.transform=M.prototype.sa;M.prototype.get=M.prototype.get;M.prototype.getKeys=M.prototype.ia;M.prototype.getProperties=M.prototype.X;M.prototype.set=M.prototype.set;M.prototype.setProperties=M.prototype.O;M.prototype.unset=M.prototype.ja;M.prototype.changed=M.prototype.s;M.prototype.dispatchEvent=M.prototype.c;M.prototype.getRevision=M.prototype.aa;M.prototype.on=M.prototype.ba;
|
|
409
|
-
M.prototype.once=M.prototype.ca;M.prototype.un=M.prototype.ea;M.prototype.unByKey=M.prototype.fa;O.prototype.getFirstCoordinate=O.prototype.Da;O.prototype.getLastCoordinate=O.prototype.Ea;O.prototype.getLayout=O.prototype.Fa;O.prototype.rotate=O.prototype.rotate;O.prototype.scale=O.prototype.scale;O.prototype.getClosestPoint=O.prototype.ua;O.prototype.intersectsCoordinate=O.prototype.ra;O.prototype.getExtent=O.prototype.B;O.prototype.simplify=O.prototype.xa;O.prototype.transform=O.prototype.sa;
|
|
410
|
-
O.prototype.get=O.prototype.get;O.prototype.getKeys=O.prototype.ia;O.prototype.getProperties=O.prototype.X;O.prototype.set=O.prototype.set;O.prototype.setProperties=O.prototype.O;O.prototype.unset=O.prototype.ja;O.prototype.changed=O.prototype.s;O.prototype.dispatchEvent=O.prototype.c;O.prototype.getRevision=O.prototype.aa;O.prototype.on=O.prototype.ba;O.prototype.once=O.prototype.ca;O.prototype.un=O.prototype.ea;O.prototype.unByKey=O.prototype.fa;P.prototype.getFirstCoordinate=P.prototype.Da;
|
|
411
|
-
P.prototype.getLastCoordinate=P.prototype.Ea;P.prototype.getLayout=P.prototype.Fa;P.prototype.rotate=P.prototype.rotate;P.prototype.scale=P.prototype.scale;P.prototype.getClosestPoint=P.prototype.ua;P.prototype.intersectsCoordinate=P.prototype.ra;P.prototype.getExtent=P.prototype.B;P.prototype.simplify=P.prototype.xa;P.prototype.transform=P.prototype.sa;P.prototype.get=P.prototype.get;P.prototype.getKeys=P.prototype.ia;P.prototype.getProperties=P.prototype.X;P.prototype.set=P.prototype.set;
|
|
412
|
-
P.prototype.setProperties=P.prototype.O;P.prototype.unset=P.prototype.ja;P.prototype.changed=P.prototype.s;P.prototype.dispatchEvent=P.prototype.c;P.prototype.getRevision=P.prototype.aa;P.prototype.on=P.prototype.ba;P.prototype.once=P.prototype.ca;P.prototype.un=P.prototype.ea;P.prototype.unByKey=P.prototype.fa;Q.prototype.getFirstCoordinate=Q.prototype.Da;Q.prototype.getLastCoordinate=Q.prototype.Ea;Q.prototype.getLayout=Q.prototype.Fa;Q.prototype.rotate=Q.prototype.rotate;Q.prototype.scale=Q.prototype.scale;
|
|
413
|
-
Q.prototype.getClosestPoint=Q.prototype.ua;Q.prototype.intersectsCoordinate=Q.prototype.ra;Q.prototype.getExtent=Q.prototype.B;Q.prototype.simplify=Q.prototype.xa;Q.prototype.transform=Q.prototype.sa;Q.prototype.get=Q.prototype.get;Q.prototype.getKeys=Q.prototype.ia;Q.prototype.getProperties=Q.prototype.X;Q.prototype.set=Q.prototype.set;Q.prototype.setProperties=Q.prototype.O;Q.prototype.unset=Q.prototype.ja;Q.prototype.changed=Q.prototype.s;Q.prototype.dispatchEvent=Q.prototype.c;
|
|
414
|
-
Q.prototype.getRevision=Q.prototype.aa;Q.prototype.on=Q.prototype.ba;Q.prototype.once=Q.prototype.ca;Q.prototype.un=Q.prototype.ea;Q.prototype.unByKey=Q.prototype.fa;C.prototype.getFirstCoordinate=C.prototype.Da;C.prototype.getLastCoordinate=C.prototype.Ea;C.prototype.getLayout=C.prototype.Fa;C.prototype.rotate=C.prototype.rotate;C.prototype.scale=C.prototype.scale;C.prototype.getClosestPoint=C.prototype.ua;C.prototype.intersectsCoordinate=C.prototype.ra;C.prototype.getExtent=C.prototype.B;
|
|
415
|
-
C.prototype.simplify=C.prototype.xa;C.prototype.transform=C.prototype.sa;C.prototype.get=C.prototype.get;C.prototype.getKeys=C.prototype.ia;C.prototype.getProperties=C.prototype.X;C.prototype.set=C.prototype.set;C.prototype.setProperties=C.prototype.O;C.prototype.unset=C.prototype.ja;C.prototype.changed=C.prototype.s;C.prototype.dispatchEvent=C.prototype.c;C.prototype.getRevision=C.prototype.aa;C.prototype.on=C.prototype.ba;C.prototype.once=C.prototype.ca;C.prototype.un=C.prototype.ea;
|
|
416
|
-
C.prototype.unByKey=C.prototype.fa;D.prototype.getFirstCoordinate=D.prototype.Da;D.prototype.getLastCoordinate=D.prototype.Ea;D.prototype.getLayout=D.prototype.Fa;D.prototype.rotate=D.prototype.rotate;D.prototype.scale=D.prototype.scale;D.prototype.getClosestPoint=D.prototype.ua;D.prototype.intersectsCoordinate=D.prototype.ra;D.prototype.getExtent=D.prototype.B;D.prototype.simplify=D.prototype.xa;D.prototype.transform=D.prototype.sa;D.prototype.get=D.prototype.get;D.prototype.getKeys=D.prototype.ia;
|
|
417
|
-
D.prototype.getProperties=D.prototype.X;D.prototype.set=D.prototype.set;D.prototype.setProperties=D.prototype.O;D.prototype.unset=D.prototype.ja;D.prototype.changed=D.prototype.s;D.prototype.dispatchEvent=D.prototype.c;D.prototype.getRevision=D.prototype.aa;D.prototype.on=D.prototype.ba;D.prototype.once=D.prototype.ca;D.prototype.un=D.prototype.ea;D.prototype.unByKey=D.prototype.fa;q("ol.source.XYZ",X);X.prototype.setRenderReprojectionEdges=X.prototype.jd;X.prototype.setTileGridForProjection=X.prototype.ld;
|
|
418
|
-
X.prototype.getTileLoadFunction=X.prototype.Lc;X.prototype.getTileUrlFunction=X.prototype.Mc;X.prototype.getUrls=X.prototype.Nc;X.prototype.setTileLoadFunction=X.prototype.md;X.prototype.setTileUrlFunction=X.prototype.kb;X.prototype.setUrl=X.prototype.bc;X.prototype.setUrls=X.prototype.hc;X.prototype.getTileGrid=X.prototype.Kc;X.prototype.refresh=X.prototype.ac;X.prototype.getAttributions=X.prototype.Zc;X.prototype.getLogo=X.prototype.Hc;X.prototype.getProjection=X.prototype.$c;
|
|
419
|
-
X.prototype.getState=X.prototype.V;X.prototype.setAttributions=X.prototype.fd;X.prototype.get=X.prototype.get;X.prototype.getKeys=X.prototype.ia;X.prototype.getProperties=X.prototype.X;X.prototype.set=X.prototype.set;X.prototype.setProperties=X.prototype.O;X.prototype.unset=X.prototype.ja;X.prototype.changed=X.prototype.s;X.prototype.dispatchEvent=X.prototype.c;X.prototype.getRevision=X.prototype.aa;X.prototype.on=X.prototype.ba;X.prototype.once=X.prototype.ca;X.prototype.un=X.prototype.ea;
|
|
420
|
-
X.prototype.unByKey=X.prototype.fa;q("ol.extent.boundingExtent",jb);q("ol.extent.buffer",function(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]});q("ol.extent.containsCoordinate",nb);q("ol.extent.containsExtent",pb);q("ol.extent.containsXY",ob);q("ol.extent.createEmpty",kb);q("ol.extent.equals",tb);q("ol.extent.extend",ub);q("ol.extent.getBottomLeft",xb);q("ol.extent.getBottomRight",yb);q("ol.extent.getCenter",Fb);q("ol.extent.getHeight",Eb);
|
|
421
|
-
q("ol.extent.getIntersection",Hb);q("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});q("ol.extent.getTopLeft",Ab);q("ol.extent.getTopRight",zb);q("ol.extent.getWidth",Db);q("ol.extent.intersects",Ib);q("ol.extent.isEmpty",Cb);q("ol.extent.applyTransform",Jb);q("ol.layer.Tile",F);F.prototype.getPreload=F.prototype.l;F.prototype.getSource=F.prototype.Ia;F.prototype.setPreload=F.prototype.v;F.prototype.getUseInterimTilesOnError=F.prototype.o;F.prototype.setUseInterimTilesOnError=F.prototype.A;
|
|
422
|
-
F.prototype.setMap=F.prototype.setMap;F.prototype.setSource=F.prototype.kd;F.prototype.getExtent=F.prototype.B;F.prototype.getMaxResolution=F.prototype.Uc;F.prototype.getMinResolution=F.prototype.Vc;F.prototype.getOpacity=F.prototype.Wc;F.prototype.getVisible=F.prototype.Wb;F.prototype.getZIndex=F.prototype.Xc;F.prototype.setExtent=F.prototype.wf;F.prototype.setMaxResolution=F.prototype.eg;F.prototype.setMinResolution=F.prototype.fg;F.prototype.setOpacity=F.prototype.xf;F.prototype.setVisible=F.prototype.yf;
|
|
423
|
-
F.prototype.setZIndex=F.prototype.zf;F.prototype.get=F.prototype.get;F.prototype.getKeys=F.prototype.ia;F.prototype.getProperties=F.prototype.X;F.prototype.set=F.prototype.set;F.prototype.setProperties=F.prototype.O;F.prototype.unset=F.prototype.ja;F.prototype.changed=F.prototype.s;F.prototype.dispatchEvent=F.prototype.c;F.prototype.getRevision=F.prototype.aa;F.prototype.on=F.prototype.ba;F.prototype.once=F.prototype.ca;F.prototype.un=F.prototype.ea;F.prototype.unByKey=F.prototype.fa;
|
|
424
|
-
q("ol.proj.common.add",mg);q("ol.proj.METERS_PER_UNIT",Pb);q("ol.proj.setProj4",void 0);q("ol.proj.getPointResolution",Ub);q("ol.proj.addEquivalentProjections",Xb);q("ol.proj.addProjection",ec);q("ol.proj.addCoordinateTransforms",function(a,b,c,d){a=Wb(a);b=Wb(b);Tb(a,b,gc(c));Tb(b,a,gc(d))});q("ol.proj.fromLonLat",function(a,b){return kc(a,"EPSG:4326",void 0!==b?b:"EPSG:3857")});q("ol.proj.toLonLat",function(a,b){return kc(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});q("ol.proj.get",Wb);
|
|
425
|
-
q("ol.proj.equivalent",hc);q("ol.proj.getTransform",ic);q("ol.proj.transform",kc);q("ol.proj.transformExtent",nc);q("ol.proj.Projection",Qb);Qb.prototype.getCode=Qb.prototype.ce;Qb.prototype.getExtent=Qb.prototype.B;Qb.prototype.getUnits=Qb.prototype.qe;Qb.prototype.getMetersPerUnit=Qb.prototype.Ua;Qb.prototype.getWorldExtent=Qb.prototype.se;Qb.prototype.isGlobal=Qb.prototype.Je;Qb.prototype.setGlobal=Qb.prototype.bg;Qb.prototype.setExtent=Qb.prototype.Bf;Qb.prototype.setWorldExtent=Qb.prototype.hg;
|
|
426
|
-
Qb.prototype.setGetPointResolution=Qb.prototype.ag;q("ol.proj.Units.METERS_PER_UNIT",Pb);Lg.prototype.drawCircle=Lg.prototype.Cc;Lg.prototype.setStyle=Lg.prototype.Yc;Lg.prototype.drawGeometry=Lg.prototype.Ob;Lg.prototype.drawFeature=Lg.prototype.Td;q("ol.source.XYZ",X);X.prototype.setRenderReprojectionEdges=X.prototype.jd;X.prototype.setTileGridForProjection=X.prototype.ld;X.prototype.getTileLoadFunction=X.prototype.Lc;X.prototype.getTileUrlFunction=X.prototype.Mc;X.prototype.getUrls=X.prototype.Nc;
|
|
427
|
-
X.prototype.setTileLoadFunction=X.prototype.md;X.prototype.setTileUrlFunction=X.prototype.kb;X.prototype.setUrl=X.prototype.bc;X.prototype.setUrls=X.prototype.hc;X.prototype.getTileGrid=X.prototype.Kc;X.prototype.refresh=X.prototype.ac;X.prototype.getAttributions=X.prototype.Zc;X.prototype.getLogo=X.prototype.Hc;X.prototype.getProjection=X.prototype.$c;X.prototype.getState=X.prototype.V;X.prototype.setAttributions=X.prototype.fd;X.prototype.get=X.prototype.get;X.prototype.getKeys=X.prototype.ia;
|
|
428
|
-
X.prototype.getProperties=X.prototype.X;X.prototype.set=X.prototype.set;X.prototype.setProperties=X.prototype.O;X.prototype.unset=X.prototype.ja;X.prototype.changed=X.prototype.s;X.prototype.dispatchEvent=X.prototype.c;X.prototype.getRevision=X.prototype.aa;X.prototype.on=X.prototype.ba;X.prototype.once=X.prototype.ca;X.prototype.un=X.prototype.ea;X.prototype.unByKey=X.prototype.fa;
|
|
429
|
-
return OPENLAYERS.ol;
|
|
430
|
-
}));
|
|
431
|
-
|