Updated
This commit is contained in:
+69
-62
@@ -469,11 +469,11 @@ goog.vec.Mat4.rotateZ=function(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5
|
||||
goog.vec.Mat4.tmpMat4_=[goog.vec.Mat4.createFloat64()];ol.QuadKeyCharCode={ZERO:48,ONE:49,TWO:50,THREE:51};ol.TileCoord=function(a,b,c){ol.Coordinate.call(this,b,c);this.z=a};goog.inherits(ol.TileCoord,ol.Coordinate);ol.TileCoord.createFromQuadKey=function(a){var b=a.length,c=0,d=0,e=1<<b-1,f;for(f=0;f<b;++f){switch(a.charCodeAt(f)){case ol.QuadKeyCharCode.ONE:c+=e;break;case ol.QuadKeyCharCode.TWO:d+=e;break;case ol.QuadKeyCharCode.THREE:c+=e,d+=e}e>>=1}return new ol.TileCoord(b,c,d)};
|
||||
ol.TileCoord.createFromString=function(a){a=a.split("/");a=goog.array.map(a,function(a){return parseInt(a,10)});return new ol.TileCoord(a[0],a[1],a[2])};ol.TileCoord.prototype.hash=function(){return(this.x<<this.z)+this.y};ol.TileCoord.prototype.quadKey=function(){var a=Array(this.z),b=1<<this.z-1,c,d;for(c=0;c<this.z;++c)d=ol.QuadKeyCharCode.ZERO,this.x&b&&(d+=1),this.y&b&&(d+=2),a[c]=String.fromCharCode(d),b>>=1;return a.join("")};
|
||||
ol.TileCoord.prototype.toString=function(){return[this.z,this.x,this.y].join("/")};ol.TileRange=function(a,b,c,d){this.minX=a;this.minY=b;this.maxX=c;this.maxY=d};goog.inherits(ol.TileRange,ol.Rectangle);ol.TileRange.boundingTileRange=function(a){var b=arguments[0],c=new ol.TileRange(b.x,b.y,b.x,b.y),d,e;for(d=1;d<arguments.length;++d)e=arguments[d],goog.asserts.assert(e.z==b.z),c.minX=Math.min(c.minX,e.x),c.minY=Math.min(c.minY,e.y),c.maxX=Math.max(c.maxX,e.x),c.maxY=Math.max(c.maxY,e.y);return c};
|
||||
ol.TileRange.prototype.contains=function(a){return this.minX<=a.x&&a.x<=this.maxX&&this.minY<=a.y&&a.y<=this.maxY};ol.TileRange.prototype.containsTileRange=function(a){return this.minX<=a.minX&&a.maxX<=this.maxX&&this.minY<=a.minY&&a.minY<=this.maxY};ol.TileRange.prototype.getHeight=function(){return this.maxY-this.minY+1};ol.TileRange.prototype.getWidth=function(){return this.maxX-this.minX+1};ol.Attribution=function(a,b){this.html_=a;this.tileRanges_=b||null};ol.Attribution.prototype.getHTML=function(){return this.html_};ol.Attribution.prototype.intersectsAnyTileRange=function(a){if(goog.isNull(this.tileRanges_))return!0;var b,c,d;for(d in a)if(d in this.tileRanges_){c=a[d];for(b=0;b<this.tileRanges_[d].length;++b)if(this.tileRanges_[d][b].intersects(c))return!0}return!1};ol.TileState={IDLE:0,LOADING:1,LOADED:2,ERROR:3};ol.Tile=function(a){goog.events.EventTarget.call(this);this.tileCoord=a;this.state=ol.TileState.IDLE};goog.inherits(ol.Tile,goog.events.EventTarget);ol.Tile.prototype.dispatchChangeEvent=function(){this.dispatchEvent(goog.events.EventType.CHANGE)};ol.Tile.prototype.getKey=function(){return goog.getUid(this).toString()};ol.Tile.prototype.getState=function(){return this.state};ol.TileQueue=function(a){this.tilePriorityFunction_=a;this.maxTilesLoading_=8;this.tilesLoading_=0;this.heap_=[];this.queuedTileKeys_={}};ol.TileQueue.DROP=Infinity;ol.TileQueue.prototype.dequeue_=function(){var a=this.heap_;goog.asserts.assert(0<a.length);var b=a[0][1];1==a.length?a.length=0:(a[0]=a.pop(),this.siftUp_(0));a=b.getKey();delete this.queuedTileKeys_[a];return b};
|
||||
ol.TileQueue.prototype.enqueue=function(a,b,c){if(a.getState()==ol.TileState.IDLE){var d=a.getKey();if(!(d in this.queuedTileKeys_)){var e=this.tilePriorityFunction_(a,b,c);e!=ol.TileQueue.DROP&&(this.heap_.push([e,a,b,c]),this.queuedTileKeys_[d]=!0,this.siftDown_(0,this.heap_.length-1))}}};ol.TileQueue.prototype.handleTileChange=function(){--this.tilesLoading_};ol.TileQueue.prototype.getLeftChildIndex_=function(a){return 2*a+1};ol.TileQueue.prototype.getRightChildIndex_=function(a){return 2*a+2};
|
||||
ol.TileQueue.prototype.getParentIndex_=function(a){return a-1>>1};ol.TileQueue.prototype.heapify_=function(){for(var a=(this.heap_.length>>1)-1;0<=a;a--)this.siftUp_(a)};ol.TileQueue.prototype.loadMoreTiles=function(){for(var a;0<this.heap_.length&&this.tilesLoading_<this.maxTilesLoading_;)a=this.dequeue_(),goog.events.listenOnce(a,goog.events.EventType.CHANGE,this.handleTileChange,!1,this),a.load(),++this.tilesLoading_};
|
||||
ol.TileRange.prototype.contains=function(a){return this.minX<=a.x&&a.x<=this.maxX&&this.minY<=a.y&&a.y<=this.maxY};ol.TileRange.prototype.containsTileRange=function(a){return this.minX<=a.minX&&a.maxX<=this.maxX&&this.minY<=a.minY&&a.minY<=this.maxY};ol.TileRange.prototype.getHeight=function(){return this.maxY-this.minY+1};ol.TileRange.prototype.getWidth=function(){return this.maxX-this.minX+1};ol.Attribution=function(a,b){this.html_=a;this.tileRanges_=b||null};ol.Attribution.prototype.getHTML=function(){return this.html_};ol.Attribution.prototype.intersectsAnyTileRange=function(a){if(goog.isNull(this.tileRanges_))return!0;var b,c,d;for(d in a)if(d in this.tileRanges_){c=a[d];for(b=0;b<this.tileRanges_[d].length;++b)if(this.tileRanges_[d][b].intersects(c))return!0}return!1};ol.TileState={IDLE:0,LOADING:1,LOADED:2,ERROR:3};ol.Tile=function(a){goog.events.EventTarget.call(this);this.inQueue=0;this.tileCoord=a;this.state=ol.TileState.IDLE};goog.inherits(ol.Tile,goog.events.EventTarget);ol.Tile.prototype.dispatchChangeEvent=function(){this.dispatchEvent(goog.events.EventType.CHANGE)};ol.Tile.prototype.getKey=function(){return goog.getUid(this).toString()};ol.Tile.prototype.getState=function(){return this.state};ol.TileQueue=function(a){this.tilePriorityFunction_=a;this.maxTilesLoading_=8;this.tilesLoading_=0;this.heap_=[];this.queuedTileKeys_={}};ol.TileQueue.DROP=Infinity;ol.TileQueue.prototype.dequeue_=function(){var a=this.heap_;goog.asserts.assert(0<a.length);var b=a[0][1];1==a.length?a.length=0:(a[0]=a.pop(),this.siftUp_(0));a=b.getKey();delete this.queuedTileKeys_[a];b.inQueue--;goog.asserts.assert(0<=b.inQueue);return b};
|
||||
ol.TileQueue.prototype.enqueue=function(a,b,c){if(a.getState()==ol.TileState.IDLE){var d=a.getKey();if(!(d in this.queuedTileKeys_)){var e=this.tilePriorityFunction_(a,b,c);e!=ol.TileQueue.DROP&&(this.heap_.push([e,a,b,c]),this.queuedTileKeys_[d]=!0,this.siftDown_(0,this.heap_.length-1),a.inQueue++,goog.asserts.assert(0<a.inQueue))}}};ol.TileQueue.prototype.handleTileChange=function(){--this.tilesLoading_};ol.TileQueue.prototype.getLeftChildIndex_=function(a){return 2*a+1};
|
||||
ol.TileQueue.prototype.getRightChildIndex_=function(a){return 2*a+2};ol.TileQueue.prototype.getParentIndex_=function(a){return a-1>>1};ol.TileQueue.prototype.heapify_=function(){for(var a=(this.heap_.length>>1)-1;0<=a;a--)this.siftUp_(a)};ol.TileQueue.prototype.loadMoreTiles=function(){for(var a;0<this.heap_.length&&this.tilesLoading_<this.maxTilesLoading_;)a=this.dequeue_(),goog.events.listenOnce(a,goog.events.EventType.CHANGE,this.handleTileChange,!1,this),a.load(),++this.tilesLoading_};
|
||||
ol.TileQueue.prototype.siftUp_=function(a){for(var b=this.heap_,c=b.length,d=b[a],e=a;a<c>>1;){var f=this.getLeftChildIndex_(a),g=this.getRightChildIndex_(a),f=g<c&&b[g][0]<b[f][0]?g:f;b[a]=b[f];a=f}b[a]=d;this.siftDown_(e,a)};ol.TileQueue.prototype.siftDown_=function(a,b){for(var c=this.heap_,d=c[b];b>a;){var e=this.getParentIndex_(b);if(c[e][0]>d[0])c[b]=c[e],b=e;else break}c[b]=d};
|
||||
ol.TileQueue.prototype.reprioritize=function(){var a=this.heap_,b,c=0,d,e,f,g;for(b=0;b<a.length;++b)d=a[b],f=d[1],g=d[2],e=d[3],e=this.tilePriorityFunction_(f,g,e),e==ol.TileQueue.DROP?(d=f.getKey(),delete this.queuedTileKeys_[d]):(d[0]=e,a[c++]=d);a.length=c;this.heapify_()};/*
|
||||
ol.TileQueue.prototype.reprioritize=function(){var a=this.heap_,b,c=0,d,e,f,g;for(b=0;b<a.length;++b)d=a[b],f=d[1],g=d[2],e=d[3],e=this.tilePriorityFunction_(f,g,e),e==ol.TileQueue.DROP?(d=f.getKey(),delete this.queuedTileKeys_[d],f.inQueue--,goog.asserts.assert(0<=f.inQueue),0===f.inQueue&&goog.events.removeAll(f)):(d[0]=e,a[c++]=d);a.length=c;this.heapify_()};/*
|
||||
|
||||
Latitude/longitude spherical geodesy formulae taken from
|
||||
http://www.movable-type.co.uk/scripts/latlong.html
|
||||
@@ -484,10 +484,10 @@ ol.Sphere.prototype.crossTrackDistance=function(a,b,c){this.cosineDistance(a,b);
|
||||
ol.Sphere.prototype.finalBearing=function(a,b){return(this.initialBearing(b,a)+180)%360};ol.Sphere.prototype.haversineDistance=function(a,b){var c=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),e=(d-c)/2,f=goog.math.toRadians(b.x-a.x)/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*this.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};
|
||||
ol.Sphere.prototype.initialBearing=function(a,b){var c=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),e=goog.math.toRadians(b.x-a.x),f=Math.sin(e)*Math.cos(d),c=Math.cos(c)*Math.sin(d)-Math.sin(c)*Math.cos(d)*Math.cos(e);return goog.math.toDegrees(Math.atan2(f,c))};ol.Sphere.prototype.maximumLatitude=function(a,b){return Math.cos(Math.abs(Math.sin(goog.math.toRadians(a))*Math.cos(goog.math.toRadians(b))))};
|
||||
ol.Sphere.prototype.midpoint=function(a,b){var c=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),e=goog.math.toRadians(a.x),f=goog.math.toRadians(b.x-a.x),g=Math.cos(d)*Math.cos(f),f=Math.cos(d)*Math.sin(f),g=Math.cos(c)+g,c=Math.atan2(Math.sin(c)+Math.sin(d),Math.sqrt(g*g+f*f)),e=e+Math.atan2(f,g);return new ol.Coordinate(goog.math.toDegrees(e),goog.math.toDegrees(c))};
|
||||
ol.Sphere.prototype.offset=function(a,b,c){var d=goog.math.toRadians(a.y),a=goog.math.toRadians(a.x),e=b/this.radius,b=Math.asin(Math.sin(d)*Math.cos(e)+Math.cos(d)*Math.sin(e)*Math.cos(c)),c=a+Math.atan2(Math.sin(c)*Math.sin(e)*Math.cos(d),Math.cos(e)-Math.sin(d)*Math.sin(b));return new ol.Coordinate(goog.math.toDegrees(c),goog.math.toDegrees(b))};ol.sphere={};ol.sphere.NORMAL=new ol.Sphere(6370997);ol.projection={};ol.ENABLE_PROJ4JS=!0;ol.HAVE_PROJ4JS=ol.ENABLE_PROJ4JS&&"object"==typeof Proj4js;ol.ProjectionUnits={DEGREES:"degrees",METERS:"m"};ol.Projection=function(a,b,c,d){this.code_=a;this.units_=b;this.extent_=c;this.axisOrientation_=goog.isDef(d)?d:"enu";this.defaultTileGrid_=null};ol.Projection.prototype.getCode=function(){return this.code_};ol.Projection.prototype.getExtent=function(){return this.extent_};ol.Projection.prototype.getUnits=function(){return this.units_};
|
||||
ol.Sphere.prototype.offset=function(a,b,c){var d=goog.math.toRadians(a.y),a=goog.math.toRadians(a.x),e=b/this.radius,b=Math.asin(Math.sin(d)*Math.cos(e)+Math.cos(d)*Math.sin(e)*Math.cos(c)),c=a+Math.atan2(Math.sin(c)*Math.sin(e)*Math.cos(d),Math.cos(e)-Math.sin(d)*Math.sin(b));return new ol.Coordinate(goog.math.toDegrees(c),goog.math.toDegrees(b))};ol.sphere={};ol.sphere.NORMAL=new ol.Sphere(6370997);ol.projection={};ol.ENABLE_PROJ4JS=!0;ol.HAVE_PROJ4JS=ol.ENABLE_PROJ4JS&&"object"==typeof Proj4js;ol.ProjectionUnits={DEGREES:"degrees",FEET:"ft",METERS:"m"};ol.Projection=function(a,b,c,d){this.code_=a;this.units_=b;this.extent_=c;this.axisOrientation_=goog.isDef(d)?d:"enu";this.defaultTileGrid_=null};ol.Projection.prototype.getCode=function(){return this.code_};ol.Projection.prototype.getExtent=function(){return this.extent_};ol.Projection.prototype.getUnits=function(){return this.units_};
|
||||
ol.Projection.prototype.getAxisOrientation=function(){return this.axisOrientation_};ol.Projection.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_};ol.Projection.prototype.setDefaultTileGrid=function(a){this.defaultTileGrid_=a};ol.Proj4jsProjection_=function(a,b){ol.Projection.call(this,a,b.units,null,b.axis);this.proj4jsProj_=b;this.toEPSG4326_=null};goog.inherits(ol.Proj4jsProjection_,ol.Projection);
|
||||
ol.Proj4jsProjection_.prototype.getPointResolution=function(a,b){if(this.getUnits()==ol.ProjectionUnits.DEGREES)return a;goog.isNull(this.toEPSG4326_)&&(this.toEPSG4326_=ol.projection.getTransform(this,ol.projection.getProj4jsProjectionFromCode_("EPSG:4326")));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.toEPSG4326_(c,c,2),d=ol.sphere.NORMAL.haversineDistance(new ol.Coordinate(c[0],c[1]),new ol.Coordinate(c[2],c[3])),c=ol.sphere.NORMAL.haversineDistance(new ol.Coordinate(c[4],c[5]),
|
||||
new ol.Coordinate(c[6],c[7]));return(d+c)/2};ol.Proj4jsProjection_.prototype.getProj4jsProj=function(){return this.proj4jsProj_};ol.projection.proj4jsProjections_={};ol.projection.projections_={};ol.projection.transforms_={};ol.projection.addEquivalentProjections=function(a){ol.projection.addProjections(a);goog.array.forEach(a,function(b){goog.array.forEach(a,function(a){b!==a&&ol.projection.addTransform(b,a,ol.projection.cloneTransform)})})};
|
||||
new ol.Coordinate(c[6],c[7])),d=(d+c)/2;this.getUnits()==ol.ProjectionUnits.FEET&&(d/=0.3048);return d};ol.Proj4jsProjection_.prototype.getProj4jsProj=function(){return this.proj4jsProj_};ol.projection.proj4jsProjections_={};ol.projection.projections_={};ol.projection.transforms_={};ol.projection.addEquivalentProjections=function(a){ol.projection.addProjections(a);goog.array.forEach(a,function(b){goog.array.forEach(a,function(a){b!==a&&ol.projection.addTransform(b,a,ol.projection.cloneTransform)})})};
|
||||
ol.projection.addEquivalentTransforms=function(a,b,c,d){goog.array.forEach(a,function(a){goog.array.forEach(b,function(b){ol.projection.addTransform(a,b,c);ol.projection.addTransform(b,a,d)})})};ol.projection.addProj4jsProjection_=function(a){var b=ol.projection.proj4jsProjections_,c=a.getCode();goog.asserts.assert(!goog.object.containsKey(b,c));b[c]=a};
|
||||
ol.projection.addProjection=function(a){var b=ol.projection.projections_,c=a.getCode();goog.asserts.assert(!goog.object.containsKey(b,c));b[c]=a;ol.projection.addTransform(a,a,ol.projection.cloneTransform)};ol.projection.addProjections=function(a){goog.array.forEach(a,function(a){ol.projection.addProjection(a)})};ol.projection.clearAllProjections=function(){ol.ENABLE_PROJ4JS&&(ol.projection.proj4jsProjections_={});ol.projection.projections_={};ol.projection.transforms_={}};
|
||||
ol.projection.createProjection=function(a,b){if(goog.isDefAndNotNull(a)){if(goog.isString(a))return ol.projection.getFromCode(a);goog.asserts.assert(a instanceof ol.Projection);return a}return ol.projection.getFromCode(b)};ol.projection.addTransform=function(a,b,c){var a=a.getCode(),b=b.getCode(),d=ol.projection.transforms_;goog.object.containsKey(d,a)||(d[a]={});goog.asserts.assert(!goog.object.containsKey(d[a],b));d[a][b]=c};
|
||||
@@ -523,18 +523,20 @@ ol.MapBrowserEventHandler.prototype.handleTouchStart_=function(a){a.preventDefau
|
||||
ol.MapBrowserEventHandler.prototype.handleTouchEnd_=function(a){a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHEND,this.map_,a);this.dispatchEvent(a);this.dragged_||(a=goog.now(),this.timestamp_=!this.timestamp_||250<a-this.timestamp_?a:0,this.click_(this.down_));this.down_=null};
|
||||
ol.MapBrowserEventHandler.prototype.disposeInternal=function(){goog.events.unlistenByKey(this.clickListenerKey_);goog.events.unlistenByKey(this.downListenerKey_);goog.isNull(this.dragListenerKeys_)||(goog.array.forEach(this.dragListenerKeys_,goog.events.unlistenByKey),this.dragListenerKeys_=null);goog.isNull(this.touchListenerKeys_)||(goog.array.forEach(this.touchListenerKeys_,goog.events.unlistenByKey),this.touchListenerKeys_=null);ol.MapBrowserEventHandler.superClass_.disposeInternal.call(this)};
|
||||
ol.MapBrowserEvent.EventType={CLICK:goog.events.EventType.CLICK,DBLCLICK:goog.events.EventType.DBLCLICK,DOWN:"down",DRAGSTART:"dragstart",DRAG:"drag",DRAGEND:"dragend",TOUCHSTART:goog.events.EventType.TOUCHSTART,TOUCHMOVE:goog.events.EventType.TOUCHMOVE,TOUCHEND:goog.events.EventType.TOUCHEND};ol.array={};ol.array.binaryFindNearest=function(a,b){var c=goog.array.binarySearch(a,b,function(a,b){return b-a});if(0<=c)return c;if(-1==c)return 0;if(c==-a.length-1)return a.length-1;var d=-c-2,c=-c-1;return a[d]-b<b-a[c]?d:c};ol.array.linearFindNearest=function(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};ol.ResolutionConstraint={};ol.ResolutionConstraint.createContinuous=function(a,b,c){var d=c||0;return function(c,f){if(goog.isDef(c))return c/=Math.pow(a,f),goog.math.clamp(c,d,b)}};ol.ResolutionConstraint.createSnapToResolutions=function(a){return function(b,c){if(goog.isDef(b)){var d=ol.array.linearFindNearest(a,b),d=goog.math.clamp(d+c,0,a.length-1);return a[d]}}};
|
||||
ol.ResolutionConstraint.createSnapToPower=function(a,b,c){return function(d,e){if(goog.isDef(d)){var f=Math.floor(Math.log(b/d)/Math.log(a)+0.5),f=Math.max(f+e,0);goog.isDef(c)&&(f=Math.min(f,c));return b/Math.pow(a,f)}}};ol.RotationConstraint={};ol.RotationConstraint.none=function(a,b){if(goog.isDef(a))return a+b};ol.RotationConstraint.createSnapToN=function(a){var b=2*Math.PI/a;return function(a,d){if(goog.isDef(a))return a=Math.floor((a+d)/b+0.5)*b}};ol.Constraints=function(a,b){this.resolution=a;this.rotation=b};ol.View2DProperty={CENTER:"center",PROJECTION:"projection",RESOLUTION:"resolution",ROTATION:"rotation"};
|
||||
ol.ResolutionConstraint.createSnapToPower=function(a,b,c){return function(d,e){if(goog.isDef(d)){var f=Math.floor(Math.log(b/d)/Math.log(a)+0.5),f=Math.max(f+e,0);goog.isDef(c)&&(f=Math.min(f,c));return b/Math.pow(a,f)}}};ol.RotationConstraint={};ol.RotationConstraint.none=function(a,b){if(goog.isDef(a))return a+b};ol.RotationConstraint.createSnapToN=function(a){var b=2*Math.PI/a;return function(a,d){if(goog.isDef(a))return a=Math.floor((a+d)/b+0.5)*b}};ol.RotationConstraint.createSnapToZero=function(a){var b=a||0.1;return function(a,d){if(goog.isDef(a))return Math.abs(a+d)<=b?0:a+d}};ol.Constraints=function(a,b){this.resolution=a;this.rotation=b};ol.View2DProperty={CENTER:"center",PROJECTION:"projection",RESOLUTION:"resolution",ROTATION:"rotation"};
|
||||
ol.View2D=function(a){ol.View.call(this);var a=a||{},b={};b[ol.View2DProperty.CENTER]=goog.isDef(a.center)?a.center:null;b[ol.View2DProperty.PROJECTION]=ol.projection.createProjection(a.projection,"EPSG:3857");if(goog.isDef(a.resolution))b[ol.View2DProperty.RESOLUTION]=a.resolution;else if(goog.isDef(a.zoom)){var c=b[ol.View2DProperty.PROJECTION].getExtent(),c=Math.max(c.maxX-c.minX,c.maxY-c.minY);b[ol.View2DProperty.RESOLUTION]=c/(ol.DEFAULT_TILE_SIZE*Math.pow(2,a.zoom))}b[ol.View2DProperty.ROTATION]=
|
||||
a.rotation;this.setValues(b);this.constraints_=ol.View2D.createConstraints_(a)};goog.inherits(ol.View2D,ol.View);ol.View2D.prototype.getCenter=function(){return this.get(ol.View2DProperty.CENTER)};goog.exportProperty(ol.View2D.prototype,"getCenter",ol.View2D.prototype.getCenter);ol.View2D.prototype.getExtent=function(a){goog.asserts.assert(this.isDef());var b=this.getCenter(),c=this.getResolution();return new ol.Extent(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};
|
||||
ol.View2D.prototype.getProjection=function(){return this.get(ol.View2DProperty.PROJECTION)};goog.exportProperty(ol.View2D.prototype,"getProjection",ol.View2D.prototype.getProjection);ol.View2D.prototype.getResolution=function(){return this.get(ol.View2DProperty.RESOLUTION)};goog.exportProperty(ol.View2D.prototype,"getResolution",ol.View2D.prototype.getResolution);ol.View2D.prototype.getResolutionForExtent=function(a,b){return Math.max((a.maxX-a.minX)/b.width,(a.maxY-a.minY)/b.height)};
|
||||
ol.View2D.prototype.getRotation=function(){return this.get(ol.View2DProperty.ROTATION)||0};goog.exportProperty(ol.View2D.prototype,"getRotation",ol.View2D.prototype.getRotation);ol.View2D.prototype.getView2D=function(){return this};ol.View2D.prototype.getView2DState=function(){goog.asserts.assert(this.isDef());var a=this.getCenter(),b=this.getProjection(),c=this.getResolution(),d=this.getRotation();return{center:new ol.Coordinate(a.x,a.y),projection:b,resolution:c,rotation:d}};
|
||||
ol.View2D.prototype.getView3D=function(){};ol.View2D.prototype.fitExtent=function(a,b){this.setCenter(a.getCenter());var c=this.getResolutionForExtent(a,b),c=this.constraints_.resolution(c,0);this.setResolution(c)};ol.View2D.prototype.isDef=function(){return goog.isDefAndNotNull(this.getCenter())&&goog.isDef(this.getResolution())};ol.View2D.prototype.setCenter=function(a){this.set(ol.View2DProperty.CENTER,a)};goog.exportProperty(ol.View2D.prototype,"setCenter",ol.View2D.prototype.setCenter);
|
||||
ol.View2D.prototype.setProjection=function(a){this.set(ol.View2DProperty.PROJECTION,a)};goog.exportProperty(ol.View2D.prototype,"setProjection",ol.View2D.prototype.setProjection);ol.View2D.prototype.setResolution=function(a){this.set(ol.View2DProperty.RESOLUTION,a)};goog.exportProperty(ol.View2D.prototype,"setResolution",ol.View2D.prototype.setResolution);ol.View2D.prototype.setRotation=function(a){this.set(ol.View2DProperty.ROTATION,a)};goog.exportProperty(ol.View2D.prototype,"setRotation",ol.View2D.prototype.setRotation);
|
||||
ol.View2D.prototype.rotate=function(a,b,c){b=this.constraints_.rotation(b,0);if(goog.isDefAndNotNull(c)){var d=this.getCenter(),e=new ol.Coordinate(d.x-c.x,d.y-c.y);e.rotate(b-this.getRotation());e.x+=c.x;e.y+=c.y;a.withFrozenRendering(function(){this.setCenter(e);this.setRotation(b)},this)}else this.setRotation(b)};
|
||||
ol.View2D.prototype.zoom_=function(a,b,c){if(goog.isDefAndNotNull(b)&&goog.isDefAndNotNull(c)){var d=this.getCenter(),e=this.getResolution(),f=new ol.Coordinate(c.x-b*(c.x-d.x)/e,c.y-b*(c.y-d.y)/e);a.withFrozenRendering(function(){this.setCenter(f);this.setResolution(b)},this)}else this.setResolution(b)};
|
||||
ol.View2D.prototype.zoom=function(a,b,c,d){var e=this.getResolution();goog.isDef(e)&&goog.isDef(d)&&(a.requestRenderFrame(),a.addPreRenderFunction(ol.animation.zoom({resolution:e,duration:d})));b=this.constraints_.resolution(e,b);this.zoom_(a,b,c)};ol.View2D.prototype.zoomToResolution=function(a,b,c){b=this.constraints_.resolution(b,0);this.zoom_(a,b,c)};
|
||||
ol.View2D.createConstraints_=function(a){var b;if(goog.isDef(a.resolutions))b=ol.ResolutionConstraint.createSnapToResolutions(a.resolutions);else{var c;goog.isDef(a.maxResolution)&&goog.isDef(a.numZoomLevels)&&goog.isDef(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,a=a.zoomFactor):(b=ol.projection.createProjection(a.projection,"EPSG:3857").getExtent(),b=Math.max(b.maxX-b.minX,b.maxY-b.minY)/ol.DEFAULT_TILE_SIZE,c=116,a=Math.exp(Math.log(2)/4));b=ol.ResolutionConstraint.createSnapToPower(a,b,
|
||||
c-1)}return new ol.Constraints(b,ol.RotationConstraint.none)};ol.control={};ol.control.Control=function(a){goog.Disposable.call(this);this.element=goog.isDef(a.element)?a.element:null;this.target_=a.target;this.map_=null;goog.isDef(a.map)&&this.setMap(a.map)};goog.inherits(ol.control.Control,goog.Disposable);ol.control.Control.prototype.disposeInternal=function(){goog.dom.removeNode(this.element);ol.control.Control.superClass_.disposeInternal.call(this)};ol.control.Control.prototype.getMap=function(){return this.map_};
|
||||
ol.View2D.prototype.rotate=function(a,b,c,d){b=this.constraints_.rotation(b,0);this.rotateWithoutConstraints(a,b,c,d)};
|
||||
ol.View2D.prototype.rotateWithoutConstraints=function(a,b,c,d){if(goog.isDefAndNotNull(b)){var e=this.getRotation(),f=this.getCenter();goog.isDef(e)&&(goog.isDef(f)&&goog.isDef(d))&&(a.requestRenderFrame(),a.addPreRenderFunction(ol.animation.rotate({rotation:e,duration:d,easing:goog.fx.easing.easeOut})),goog.isDef(c)&&a.addPreRenderFunction(ol.animation.pan({source:f,duration:d,easing:goog.fx.easing.easeOut})));if(goog.isDefAndNotNull(c)){var d=this.getCenter(),g=new ol.Coordinate(d.x-c.x,d.y-c.y);
|
||||
g.rotate(b-this.getRotation());g.x+=c.x;g.y+=c.y;a.withFrozenRendering(function(){this.setCenter(g);this.setRotation(b)},this)}else this.setRotation(b)}};ol.View2D.prototype.zoom=function(a,b,c,d){b=this.constraints_.resolution(b,0);this.zoomWithoutConstraints(a,b,c,d)};ol.View2D.prototype.zoomByDelta=function(a,b,c,d){var e=this.getResolution(),b=this.constraints_.resolution(e,b);this.zoomWithoutConstraints(a,b,c,d)};
|
||||
ol.View2D.prototype.zoomWithoutConstraints=function(a,b,c,d){if(goog.isDefAndNotNull(b)){var e=this.getResolution(),f=this.getCenter();goog.isDef(e)&&(goog.isDef(f)&&goog.isDef(d))&&(a.requestRenderFrame(),a.addPreRenderFunction(ol.animation.zoom({resolution:e,duration:d,easing:goog.fx.easing.easeOut})),goog.isDef(c)&&a.addPreRenderFunction(ol.animation.pan({source:f,duration:d,easing:goog.fx.easing.easeOut})));if(goog.isDefAndNotNull(c)){var d=this.getCenter(),e=this.getResolution(),g=new ol.Coordinate(c.x-
|
||||
b*(c.x-d.x)/e,c.y-b*(c.y-d.y)/e);a.withFrozenRendering(function(){this.setCenter(g);this.setResolution(b)},this)}else this.setResolution(b)}};
|
||||
ol.View2D.createConstraints_=function(a){var b;if(goog.isDef(a.resolutions))b=ol.ResolutionConstraint.createSnapToResolutions(a.resolutions);else{var c;goog.isDef(a.maxResolution)&&goog.isDef(a.numZoomLevels)&&goog.isDef(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,a=a.zoomFactor):(b=ol.projection.createProjection(a.projection,"EPSG:3857").getExtent(),b=Math.max(b.maxX-b.minX,b.maxY-b.minY)/ol.DEFAULT_TILE_SIZE,c=29,a=2);b=ol.ResolutionConstraint.createSnapToPower(a,b,c-1)}c=ol.RotationConstraint.createSnapToZero();
|
||||
return new ol.Constraints(b,c)};ol.control={};ol.control.Control=function(a){goog.Disposable.call(this);this.element=goog.isDef(a.element)?a.element:null;this.target_=a.target;this.map_=null;goog.isDef(a.map)&&this.setMap(a.map)};goog.inherits(ol.control.Control,goog.Disposable);ol.control.Control.prototype.disposeInternal=function(){goog.dom.removeNode(this.element);ol.control.Control.superClass_.disposeInternal.call(this)};ol.control.Control.prototype.getMap=function(){return this.map_};
|
||||
ol.control.Control.prototype.setMap=function(a){goog.isNull(this.map_)||goog.dom.removeNode(this.element);this.map_=a;goog.isNull(this.map_)||(a=goog.isDef(this.target_)?this.target_:a.getOverlayContainer(),goog.dom.appendChild(a,this.element))};ol.control.Attribution=function(a){this.ulElement_=goog.dom.createElement(goog.dom.TagName.UL);var b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-attribution ol-unselectable"},this.ulElement_);ol.control.Control.call(this,{element:b,map:a.map,target:a.target});this.renderedVisible_=!0;this.attributionElements_={};this.attributionElementRenderedVisible_={};this.listenerKeys_=null};goog.inherits(ol.control.Attribution,ol.control.Control);
|
||||
ol.control.Attribution.prototype.getTileSourceAttributions=function(a,b){var c={},d,e,f,g,h,i;for(i in a)if(goog.asserts.assert(i in b),d=b[i],h=d.getAttributions(),!goog.isNull(h)){e=a[i];for(d=0;d<h.length;++d)f=h[d],g=goog.getUid(f).toString(),g in c||f.intersectsAnyTileRange(e)&&(c[g]=f)}return c};ol.control.Attribution.prototype.handleMapPostrender=function(a){this.updateElement_(a.frameState)};
|
||||
ol.control.Attribution.prototype.setMap=function(a){goog.isNull(this.listenerKeys_)||(goog.array.forEach(this.listenerKeys_,goog.events.unlistenByKey),this.listenerKeys_=null);ol.control.Attribution.superClass_.setMap.call(this,a);goog.isNull(a)||(this.listenerKeys_=[goog.events.listen(a,ol.MapEventType.POSTRENDER,this.handleMapPostrender,!1,this)])};
|
||||
@@ -544,39 +546,43 @@ goog.object.extend(d,a);a=goog.array.map(goog.object.getKeys(d),Number);goog.arr
|
||||
ol.control.ScaleLine=function(a){a=a||{};this.innerElement_=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-scale-line-inner"});this.element_=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-scale-line ol-unselectable"},this.innerElement_);this.minWidth_=goog.isDef(a.minWidth)?a.minWidth:64;this.units_=goog.isDef(a.units)?a.units:ol.control.ScaleLineUnits.METRIC;this.listenerKeys_=null;this.renderedVisible_=!1;this.renderedHTML_="";this.toEPSG4326_=null;ol.control.Control.call(this,{element:this.element_,
|
||||
map:a.map,target:a.target})};goog.inherits(ol.control.ScaleLine,ol.control.Control);ol.control.ScaleLine.LEADING_DIGITS=[1,2,5];ol.control.ScaleLine.prototype.handleMapPostrender=function(a){this.updateElement_(a.frameState)};
|
||||
ol.control.ScaleLine.prototype.setMap=function(a){goog.isNull(this.listenerKeys_)||(goog.array.forEach(this.listenerKeys_,goog.events.unlistenByKey),this.listenerKeys_=null);ol.control.ScaleLine.superClass_.setMap.call(this,a);goog.isNull(a)||(this.listenerKeys_=[goog.events.listen(a,ol.MapEventType.POSTRENDER,this.handleMapPostrender,!1,this)])};
|
||||
ol.control.ScaleLine.prototype.updateElement_=function(a){if(goog.isNull(a))this.renderedVisible_&&(goog.style.showElement(this.element_,!1),this.renderedVisible_=!1);else{var a=a.view2DState,b=a.center,c=a.projection,a=c.getPointResolution(a.resolution,b),d=c.getUnits();d==ol.ProjectionUnits.DEGREES&&(this.units_==ol.control.ScaleLineUnits.METRIC||this.units_==ol.control.ScaleLineUnits.IMPERIAL)?(this.toEPSG4326_=null,b=Math.cos(goog.math.toRadians(b.y)),a*=Math.PI*b*ol.sphere.NORMAL.radius/180):
|
||||
d==ol.ProjectionUnits.METERS&&this.units_==ol.control.ScaleLineUnits.DEGREES?(goog.isNull(this.toEPSG4326_)&&(this.toEPSG4326_=ol.projection.getTransform(c,ol.projection.getFromCode("EPSG:4326"))),b=[b.x,b.y],b=this.toEPSG4326_(b,b,2),b=Math.cos(goog.math.toRadians(b[1])),a*=180/(Math.PI*b*ol.sphere.NORMAL.radius)):(this.toEPSG4326_=null,goog.asserts.assert((this.units_==ol.control.ScaleLineUnits.METRIC||this.units_==ol.control.ScaleLineUnits.IMPERIAL)&&d==ol.ProjectionUnits.METERS||this.units_==
|
||||
ol.control.ScaleLineUnits.DEGREES&&d==ol.ProjectionUnits.DEGREES));c=this.minWidth_*a;b="";this.units_==ol.control.ScaleLineUnits.DEGREES?c<1/60?(b="\u2033",a*=3600):1>c?(b="\u2032",a*=60):b="\u00b0":this.units_==ol.control.ScaleLineUnits.IMPERIAL?0.9144>c?(b="in",a/=0.0254):1609.344>c?(b="ft",a/=0.3048):(b="mi",a/=1609.344):this.units_==ol.control.ScaleLineUnits.NAUTICAL?(a/=1852,b="nm"):this.units_==ol.control.ScaleLineUnits.METRIC?1>c?(b="mm",a*=1E3):1E3>c?b="m":(b="km",a/=1E3):this.units_==ol.control.ScaleLineUnits.US?
|
||||
0.9144>c?(b="in",a*=39.37):1609.344>c?(b="ft",a/=0.30480061):(b="mi",a/=1609.3472):goog.asserts.assert(!1);for(var c=3*Math.floor(Math.log(this.minWidth_*a)/Math.log(10)),e,f;;){e=ol.control.ScaleLine.LEADING_DIGITS[c%3]*Math.pow(10,Math.floor(c/3));f=Math.round(e/a);if(f>=this.minWidth_)break;++c}e+=b;this.renderedHTML_!=e&&(this.renderedHTML_=this.innerElement_.innerHTML=e);this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f);this.renderedVisible_||(goog.style.showElement(this.element_,
|
||||
!0),this.renderedVisible_=!0)}};ol.control.ZOOM_DURATION=250;
|
||||
ol.control.ScaleLine.prototype.updateElement_=function(a){if(goog.isNull(a))this.renderedVisible_&&(goog.style.showElement(this.element_,!1),this.renderedVisible_=!1);else{var a=a.view2DState,b=a.center,c=a.projection,a=c.getPointResolution(a.resolution,b),d=c.getUnits();d==ol.ProjectionUnits.DEGREES&&(this.units_==ol.control.ScaleLineUnits.METRIC||this.units_==ol.control.ScaleLineUnits.IMPERIAL)?(this.toEPSG4326_=null,b=Math.cos(goog.math.toRadians(b.y)),a*=Math.PI*b*ol.sphere.NORMAL.radius/180,
|
||||
d=ol.ProjectionUnits.METERS):(d==ol.ProjectionUnits.FEET||d==ol.ProjectionUnits.METERS)&&this.units_==ol.control.ScaleLineUnits.DEGREES?(goog.isNull(this.toEPSG4326_)&&(this.toEPSG4326_=ol.projection.getTransform(c,ol.projection.getFromCode("EPSG:4326"))),b=[b.x,b.y],b=this.toEPSG4326_(b,b,2),b=Math.cos(goog.math.toRadians(b[1])),c=ol.sphere.NORMAL.radius,d==ol.ProjectionUnits.FEET&&(c/=0.3048),a*=180/(Math.PI*b*c),d=ol.ProjectionUnits.DEGREES):this.toEPSG4326_=null;goog.asserts.assert((this.units_==
|
||||
ol.control.ScaleLineUnits.METRIC||this.units_==ol.control.ScaleLineUnits.IMPERIAL)&&d==ol.ProjectionUnits.METERS||this.units_==ol.control.ScaleLineUnits.DEGREES&&d==ol.ProjectionUnits.DEGREES);b=this.minWidth_*a;d="";this.units_==ol.control.ScaleLineUnits.DEGREES?b<1/60?(d="\u2033",a*=3600):1>b?(d="\u2032",a*=60):d="\u00b0":this.units_==ol.control.ScaleLineUnits.IMPERIAL?0.9144>b?(d="in",a/=0.0254):1609.344>b?(d="ft",a/=0.3048):(d="mi",a/=1609.344):this.units_==ol.control.ScaleLineUnits.NAUTICAL?
|
||||
(a/=1852,d="nm"):this.units_==ol.control.ScaleLineUnits.METRIC?1>b?(d="mm",a*=1E3):1E3>b?d="m":(d="km",a/=1E3):this.units_==ol.control.ScaleLineUnits.US?0.9144>b?(d="in",a*=39.37):1609.344>b?(d="ft",a/=0.30480061):(d="mi",a/=1609.3472):goog.asserts.assert(!1);for(var b=3*Math.floor(Math.log(this.minWidth_*a)/Math.log(10)),e,f;;){e=ol.control.ScaleLine.LEADING_DIGITS[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.minWidth_)break;++b}e+=d;this.renderedHTML_!=e&&(this.renderedHTML_=this.innerElement_.innerHTML=
|
||||
e);this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f);this.renderedVisible_||(goog.style.showElement(this.element_,!0),this.renderedVisible_=!0)}};ol.control.ZOOM_DURATION=250;
|
||||
ol.control.Zoom=function(a){var b=goog.dom.createDom(goog.dom.TagName.A,{href:"#zoomIn","class":"ol-zoom-in"});goog.events.listen(b,[goog.events.EventType.TOUCHEND,goog.events.EventType.CLICK],this.handleIn_,!1,this);var c=goog.dom.createDom(goog.dom.TagName.A,{href:"#zoomOut","class":"ol-zoom-out"});goog.events.listen(c,[goog.events.EventType.TOUCHEND,goog.events.EventType.CLICK],this.handleOut_,!1,this);b=goog.dom.createDom(goog.dom.TagName.DIV,"ol-zoom ol-unselectable",b,c);ol.control.Control.call(this,
|
||||
{element:b,map:a.map,target:a.target});this.delta_=goog.isDef(a.delta)?a.delta:1};goog.inherits(ol.control.Zoom,ol.control.Control);ol.control.Zoom.prototype.handleIn_=function(a){a.preventDefault();a=this.getMap();a.requestRenderFrame();a.getView().zoom(a,this.delta_,void 0,ol.control.ZOOM_DURATION)};ol.control.Zoom.prototype.handleOut_=function(a){a.preventDefault();a=this.getMap();a.requestRenderFrame();a.getView().zoom(a,-this.delta_,void 0,ol.control.ZOOM_DURATION)};ol.interaction={};ol.interaction.Interaction=function(){};ol.interaction.DblClickZoom=function(a){this.delta_=a;ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.DblClickZoom,ol.interaction.Interaction);
|
||||
ol.interaction.DblClickZoom.prototype.handleMapBrowserEvent=function(a){var b=a.browserEvent;if(a.type==ol.MapBrowserEvent.EventType.DBLCLICK&&a.isMouseActionButton()){var c=a.map,d=a.getCoordinate(),e=a.browserEvent.shiftKey?-this.delta_:this.delta_,f=c.getView();goog.asserts.assert(f instanceof ol.View2D);f.zoom(c,e,d);a.preventDefault();b.preventDefault()}};ol.interaction.condition={};ol.interaction.condition.altKeyOnly=function(a){return a.altKey&&!a.platformModifierKey&&!a.shiftKey};ol.interaction.condition.altShiftKeysOnly=function(a){return a.altKey&&!a.platformModifierKey&&a.shiftKey};ol.interaction.condition.noModifierKeys=function(a){return!a.altKey&&!a.platformModifierKey&&!a.shiftKey};ol.interaction.condition.platformModifierKeyOnly=function(a){return!a.altKey&&a.platformModifierKey&&!a.shiftKey};
|
||||
{element:b,map:a.map,target:a.target});this.delta_=goog.isDef(a.delta)?a.delta:1};goog.inherits(ol.control.Zoom,ol.control.Control);ol.control.Zoom.prototype.handleIn_=function(a){a.preventDefault();a=this.getMap();a.requestRenderFrame();a.getView().zoomByDelta(a,this.delta_,void 0,ol.control.ZOOM_DURATION)};ol.control.Zoom.prototype.handleOut_=function(a){a.preventDefault();a=this.getMap();a.requestRenderFrame();a.getView().zoomByDelta(a,-this.delta_,void 0,ol.control.ZOOM_DURATION)};ol.interaction={};ol.interaction.Interaction=function(){};ol.interaction.DBLCLICKZOOM_ANIMATION_DURATION=250;ol.interaction.DblClickZoom=function(a){this.delta_=a;ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.DblClickZoom,ol.interaction.Interaction);
|
||||
ol.interaction.DblClickZoom.prototype.handleMapBrowserEvent=function(a){var b=a.browserEvent;if(a.type==ol.MapBrowserEvent.EventType.DBLCLICK&&a.isMouseActionButton()){var c=a.map,d=a.getCoordinate(),e=a.browserEvent.shiftKey?-this.delta_:this.delta_,f=c.getView();goog.asserts.assert(f instanceof ol.View2D);f.zoomByDelta(c,e,d,ol.interaction.DBLCLICKZOOM_ANIMATION_DURATION);a.preventDefault();b.preventDefault()}};ol.interaction.condition={};ol.interaction.condition.altKeyOnly=function(a){return a.altKey&&!a.platformModifierKey&&!a.shiftKey};ol.interaction.condition.altShiftKeysOnly=function(a){return a.altKey&&!a.platformModifierKey&&a.shiftKey};ol.interaction.condition.noModifierKeys=function(a){return!a.altKey&&!a.platformModifierKey&&!a.shiftKey};ol.interaction.condition.platformModifierKeyOnly=function(a){return!a.altKey&&a.platformModifierKey&&!a.shiftKey};
|
||||
ol.interaction.condition.shiftKeyOnly=function(a){return!a.altKey&&!a.platformModifierKey&&a.shiftKey};ol.interaction.Drag=function(){ol.interaction.Interaction.call(this);this.dragging_=!1;this.offsetY=this.offsetX=this.startY=this.startX=0;this.startCoordinate=this.startCenter=null};goog.inherits(ol.interaction.Drag,ol.interaction.Interaction);ol.interaction.Drag.prototype.handleDrag=goog.nullFunction;ol.interaction.Drag.prototype.handleDragEnd=goog.nullFunction;ol.interaction.Drag.prototype.handleDragStart=goog.functions.FALSE;ol.interaction.Drag.prototype.handleDown=goog.nullFunction;
|
||||
ol.interaction.Drag.prototype.handleMapBrowserEvent=function(a){var b=a.map;if(b.isDef()){var b=b.getView(),c=a.browserEvent;a.type==ol.MapBrowserEvent.EventType.DOWN&&(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.handleDown(a));this.dragging_?a.type==ol.MapBrowserEvent.EventType.DRAG?(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.deltaX=c.clientX-this.startX,this.deltaY=c.clientY-this.startY,this.handleDrag(a)):a.type==ol.MapBrowserEvent.EventType.DRAGEND&&(goog.asserts.assert(c instanceof
|
||||
goog.events.BrowserEvent),this.deltaX=c.clientX-this.startX,this.deltaY=c.clientY-this.startY,this.handleDragEnd(a),this.dragging_=!1):a.type==ol.MapBrowserEvent.EventType.DRAGSTART&&(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.startX=c.clientX,this.startY=c.clientY,this.deltaY=this.deltaX=0,this.startCenter=b.getCenter(),this.startCoordinate=a.getCoordinate(),this.handleDragStart(a)&&(this.dragging_=!0,a.preventDefault()))}};ol.interaction.DragPan=function(a,b){ol.interaction.Drag.call(this);this.condition_=a;this.kinetic_=b;this.kineticPreRenderFn_=null};goog.inherits(ol.interaction.DragPan,ol.interaction.Drag);
|
||||
ol.interaction.DragPan.prototype.handleDrag=function(a){this.kinetic_&&this.kinetic_.update(a.browserEvent.clientX,a.browserEvent.clientY);var a=a.map,b=a.getView();goog.asserts.assert(b instanceof ol.View2D);var c=b.getResolution(),d=b.getRotation(),c=new ol.Coordinate(-c*this.deltaX,c*this.deltaY);c.rotate(d);d=new ol.Coordinate(this.startCenter.x+c.x,this.startCenter.y+c.y);a.requestRenderFrame();b.setCenter(d)};
|
||||
ol.interaction.DragPan.prototype.handleDragEnd=function(a){var b=a.map,a=b.getView();a.setHint(ol.ViewHint.INTERACTING,-1);if(this.kinetic_&&this.kinetic_.end()){var c=this.kinetic_.getDistance(),d=this.kinetic_.getAngle(),e=a.getCenter();this.kineticPreRenderFn_=this.kinetic_.pan(e);b.addPreRenderFunction(this.kineticPreRenderFn_);e=b.getPixelFromCoordinate(e);c=new ol.Pixel(e.x-c*Math.cos(d),e.y-c*Math.sin(d));b=b.getCoordinateFromPixel(c);a.setCenter(b)}};
|
||||
ol.interaction.DragPan.prototype.handleDragStart=function(a){var b=a.browserEvent;return this.condition_(b)?(this.kinetic_&&(this.kinetic_.begin(),this.kinetic_.update(b.clientX,b.clientY)),a=a.map,a.requestRenderFrame(),a.getView().setHint(ol.ViewHint.INTERACTING,1),!0):!1};
|
||||
ol.interaction.DragPan.prototype.handleDown=function(a){var b=a.map,c=b.getView();goog.asserts.assert(c instanceof ol.View2D);goog.asserts.assert(!goog.isNull(a.frameState));!goog.isNull(this.kineticPreRenderFn_)&&b.removePreRenderFunction(this.kineticPreRenderFn_)&&(b.requestRenderFrame(),c.setCenter(a.frameState.view2DState.center),this.kineticPreRenderFn_=null)};ol.interaction.DragRotate=function(a){ol.interaction.Drag.call(this);this.condition_=a};goog.inherits(ol.interaction.DragRotate,ol.interaction.Drag);ol.interaction.DragRotate.prototype.handleDrag=function(a){var b=a.map,c=b.getSize(),a=a.getPixel(),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(goog.isDef(this.lastAngle_)){var a=c-this.lastAngle_,d=b.getView();goog.asserts.assert(d instanceof ol.View2D);b.requestRenderFrame();d.rotate(b,d.getRotation()-a)}this.lastAngle_=c};
|
||||
ol.interaction.DragRotate.prototype.handleDragStart=function(a){var b=a.browserEvent;return b.isMouseActionButton()&&this.condition_(b)?(a=a.map,b=a.getView(),goog.asserts.assert(b instanceof ol.View2D),a.requestRenderFrame(),this.lastAngle_=void 0,!0):!1};ol.control.DragBox=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,"ol-dragbox");this.startPixel_=null;this.startCoordinate_=a.startCoordinate;this.dragListenKey_=null;ol.control.Control.call(this,{element:b,map:a.map})};goog.inherits(ol.control.DragBox,ol.control.Control);
|
||||
ol.interaction.DragPan.prototype.handleDown=function(a){var b=a.map,c=b.getView();goog.asserts.assert(c instanceof ol.View2D);goog.asserts.assert(!goog.isNull(a.frameState));!goog.isNull(this.kineticPreRenderFn_)&&b.removePreRenderFunction(this.kineticPreRenderFn_)&&(b.requestRenderFrame(),c.setCenter(a.frameState.view2DState.center),this.kineticPreRenderFn_=null)};ol.interaction.DRAGROTATE_ANIMATION_DURATION=250;ol.interaction.DragRotate=function(a){ol.interaction.Drag.call(this);this.condition_=a};goog.inherits(ol.interaction.DragRotate,ol.interaction.Drag);
|
||||
ol.interaction.DragRotate.prototype.handleDrag=function(a){var b=a.map,c=b.getSize(),a=a.getPixel(),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(goog.isDef(this.lastAngle_)){var a=c-this.lastAngle_,d=b.getView();goog.asserts.assert(d instanceof ol.View2D);b.requestRenderFrame();d.rotateWithoutConstraints(b,d.getRotation()-a)}this.lastAngle_=c};
|
||||
ol.interaction.DragRotate.prototype.handleDragEnd=function(a){var a=a.map,b=a.getView();goog.asserts.assert(b instanceof ol.View2D);b.rotate(a,b.getRotation(),void 0,ol.interaction.DRAGROTATE_ANIMATION_DURATION);b.setHint(ol.ViewHint.INTERACTING,-1)};
|
||||
ol.interaction.DragRotate.prototype.handleDragStart=function(a){var b=a.browserEvent;return b.isMouseActionButton()&&this.condition_(b)?(a=a.map,b=a.getView(),goog.asserts.assert(b instanceof ol.View2D),a.requestRenderFrame(),this.lastAngle_=void 0,b.setHint(ol.ViewHint.INTERACTING,1),!0):!1};ol.control.DragBox=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,"ol-dragbox");this.startPixel_=null;this.startCoordinate_=a.startCoordinate;this.dragListenKey_=null;ol.control.Control.call(this,{element:b,map:a.map})};goog.inherits(ol.control.DragBox,ol.control.Control);
|
||||
ol.control.DragBox.prototype.setMap=function(a){goog.isNull(this.dragListenKey_)||(goog.events.unlistenByKey(this.dragListenKey_),this.dragListenKey_=null);goog.isNull(a)||(this.startPixel_=a.getPixelFromCoordinate(this.startCoordinate_),goog.asserts.assert(goog.isDef(this.startPixel_)),goog.style.setPosition(this.element,this.startPixel_),goog.style.setBorderBoxSize(this.element,new ol.Size(0,0)),this.dragListenKey_=goog.events.listen(a,ol.MapBrowserEvent.EventType.DRAG,this.updateBox_,!1,this));
|
||||
ol.control.DragBox.superClass_.setMap.call(this,a)};ol.control.DragBox.prototype.updateBox_=function(a){var b=this.getMap(),a=a.getCoordinate();goog.asserts.assert(goog.isDef(a));b=b.getPixelFromCoordinate(a);goog.style.setPosition(this.element,new ol.Pixel(Math.min(b.x,this.startPixel_.x),Math.min(b.y,this.startPixel_.y)));goog.style.setBorderBoxSize(this.element,new ol.Size(Math.abs(b.x-this.startPixel_.x),Math.abs(b.y-this.startPixel_.y)))};ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS=8;ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS_SQUARED=ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS*ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS;ol.interaction.DragZoom=function(a){ol.interaction.Drag.call(this);this.condition_=a;this.dragBox_=null};goog.inherits(ol.interaction.DragZoom,ol.interaction.Drag);
|
||||
ol.interaction.DragZoom.prototype.handleDragEnd=function(a){this.dragBox_.setMap(null);this.dragBox_=null;if(this.deltaX*this.deltaX+this.deltaY*this.deltaY>=ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS_SQUARED){var b=a.map,c=ol.Extent.boundingExtent(this.startCoordinate,a.getCoordinate());b.withFrozenRendering(function(){var a=b.getView();goog.asserts.assert(a instanceof ol.View2D);var e=b.getSize();a.fitExtent(c,e);a.setRotation(0)})}};
|
||||
ol.interaction.DragZoom.prototype.handleDragStart=function(a){var b=a.browserEvent;return b.isMouseActionButton()&&this.condition_(b)?(this.dragBox_=new ol.control.DragBox({map:a.map,startCoordinate:this.startCoordinate}),!0):!1};ol.interaction.KeyboardPan=function(a){ol.interaction.Interaction.call(this);this.pixelDelta_=a};goog.inherits(ol.interaction.KeyboardPan,ol.interaction.Interaction);
|
||||
ol.interaction.KeyboardPan.prototype.handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=a.browserEvent,c=b.keyCode;if(c==goog.events.KeyCodes.DOWN||c==goog.events.KeyCodes.LEFT||c==goog.events.KeyCodes.RIGHT||c==goog.events.KeyCodes.UP){var d=a.map.getView();goog.asserts.assert(d instanceof ol.View2D);var e=d.getResolution()*this.pixelDelta_;c==goog.events.KeyCodes.DOWN?c=new ol.Coordinate(0,-e):c==goog.events.KeyCodes.LEFT?c=new ol.Coordinate(-e,0):c==goog.events.KeyCodes.RIGHT?
|
||||
c=new ol.Coordinate(e,0):(goog.asserts.assert(c==goog.events.KeyCodes.UP),c=new ol.Coordinate(0,e));e=d.getCenter();c=new ol.Coordinate(e.x+c.x,e.y+c.y);d.setCenter(c);b.preventDefault();a.preventDefault()}}};ol.interaction.KEYBOARD_ZOOM_DURATION=100;ol.interaction.KeyboardZoom=function(){ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.KeyboardZoom,ol.interaction.Interaction);
|
||||
ol.interaction.KeyboardZoom.prototype.handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=a.browserEvent,c=b.charCode;if(43==c||45==c){var d=a.map,c=43==c?4:-4;d.requestRenderFrame();var e=d.getView();goog.asserts.assert(e instanceof ol.View2D);e.zoom(d,c,void 0,ol.interaction.KEYBOARD_ZOOM_DURATION);b.preventDefault();a.preventDefault()}}};ol.interaction.MouseWheelZoom=function(a){this.delta_=a;ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.MouseWheelZoom,ol.interaction.Interaction);
|
||||
ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent=function(a){if(a.type==goog.events.MouseWheelHandler.EventType.MOUSEWHEEL){var b=a.map,c=a.browserEvent;goog.asserts.assert(c instanceof goog.events.MouseWheelEvent);var d=a.getCoordinate(),e=0>c.deltaY?this.delta_:-this.delta_,f=b.getView();goog.asserts.assert(f instanceof ol.View2D);b.requestRenderFrame();f.zoom(b,e,d);a.preventDefault();c.preventDefault()}};ol.interaction.Touch=function(){ol.interaction.Interaction.call(this);this.handled_=!1;this.trackedTouches_={};this.targetTouches=[]};goog.inherits(ol.interaction.Touch,ol.interaction.Interaction);ol.interaction.Touch.centroid=function(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new ol.Pixel(c/b,d/b)};
|
||||
ol.interaction.KeyboardZoom.prototype.handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=a.browserEvent,c=b.charCode;if(43==c||45==c){var d=a.map,c=43==c?4:-4;d.requestRenderFrame();var e=d.getView();goog.asserts.assert(e instanceof ol.View2D);e.zoomByDelta(d,c,void 0,ol.interaction.KEYBOARD_ZOOM_DURATION);b.preventDefault();a.preventDefault()}}};ol.interaction.MOUSEWHEELZOOM_ANIMATION_DURATION=250;ol.interaction.MOUSEWHEELZOOM_MAXDELTA=1;ol.interaction.MOUSEWHEELZOOM_TIMEOUT_DURATION=80;ol.interaction.MouseWheelZoom=function(){ol.interaction.Interaction.call(this);this.delta_=0;this.lastAnchor_=null;this.timeoutId_=this.startTime_=void 0};goog.inherits(ol.interaction.MouseWheelZoom,ol.interaction.Interaction);
|
||||
ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent=function(a){if(a.type==goog.events.MouseWheelHandler.EventType.MOUSEWHEEL){var b=a.map,c=a.browserEvent;goog.asserts.assert(c instanceof goog.events.MouseWheelEvent);this.lastAnchor_=a.getCoordinate();this.delta_+=c.deltaY/3;goog.isDef(this.startTime_)||(this.startTime_=goog.now());var d=Math.max(ol.interaction.MOUSEWHEELZOOM_TIMEOUT_DURATION-(goog.now()-this.startTime_),0);goog.global.clearTimeout(this.timeoutId_);this.timeoutId_=goog.global.setTimeout(goog.bind(this.doZoom_,
|
||||
this,b),d);a.preventDefault();c.preventDefault()}};ol.interaction.MouseWheelZoom.prototype.doZoom_=function(a){var b=ol.interaction.MOUSEWHEELZOOM_MAXDELTA,b=goog.math.clamp(this.delta_,-b,b),c=a.getView();goog.asserts.assert(c instanceof ol.View2D);a.requestRenderFrame();c.zoomByDelta(a,-b,this.lastAnchor_,ol.interaction.MOUSEWHEELZOOM_ANIMATION_DURATION);this.delta_=0;this.lastAnchor_=null;this.timeoutId_=this.startTime_=void 0};ol.interaction.Touch=function(){ol.interaction.Interaction.call(this);this.handled_=!1;this.trackedTouches_={};this.targetTouches=[]};goog.inherits(ol.interaction.Touch,ol.interaction.Interaction);ol.interaction.Touch.centroid=function(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new ol.Pixel(c/b,d/b)};
|
||||
ol.interaction.Touch.prototype.updateTrackedTouches_=function(a){var b=a.browserEvent.getBrowserEvent();goog.isDef(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==ol.MapBrowserEvent.EventType.TOUCHEND?delete this.trackedTouches_[b.pointerId]:this.trackedTouches_[b.pointerId]=b,this.targetTouches=goog.object.getValues(this.trackedTouches_))};ol.interaction.Touch.prototype.handleTouchMove=goog.nullFunction;ol.interaction.Touch.prototype.handleTouchEnd=goog.functions.FALSE;
|
||||
ol.interaction.Touch.prototype.handleTouchStart=goog.functions.FALSE;ol.interaction.Touch.prototype.handleMapBrowserEvent=function(a){a.browserEvent.getBrowserEvent();this.updateTrackedTouches_(a);this.handled_&&(a.type==ol.MapBrowserEvent.EventType.TOUCHMOVE?this.handleTouchMove(a):a.type==ol.MapBrowserEvent.EventType.TOUCHEND&&(this.handled_=this.handleTouchEnd(a)));a.type==ol.MapBrowserEvent.EventType.TOUCHSTART&&(this.handled_=this.handleTouchStart(a))};ol.interaction.TouchPan=function(a){ol.interaction.Touch.call(this);this.kinetic_=a;this.lastCentroid=this.kineticPreRenderFn_=null};goog.inherits(ol.interaction.TouchPan,ol.interaction.Touch);
|
||||
ol.interaction.TouchPan.prototype.handleTouchMove=function(a){goog.asserts.assert(1<=this.targetTouches.length);var b=ol.interaction.Touch.centroid(this.targetTouches);if(!goog.isNull(this.lastCentroid)){this.kinetic_&&this.kinetic_.update(b.x,b.y);var c=this.lastCentroid.x-b.x,d=b.y-this.lastCentroid.y,a=a.map.getView(),c=(new ol.Coordinate(c,d)).scale(a.getResolution()).rotate(a.getRotation()).add(a.getCenter());a.setCenter(c)}this.lastCentroid=b};
|
||||
ol.interaction.TouchPan.prototype.handleTouchEnd=function(a){var b=a.map,a=b.getView();if(0==this.targetTouches.length){a.setHint(ol.ViewHint.INTERACTING,-1);if(this.kinetic_&&this.kinetic_.end()){var c=this.kinetic_.getDistance(),d=this.kinetic_.getAngle(),e=a.getCenter();this.kineticPreRenderFn_=this.kinetic_.pan(e);b.addPreRenderFunction(this.kineticPreRenderFn_);e=b.getPixelFromCoordinate(e);c=new ol.Pixel(e.x-c*Math.cos(d),e.y-c*Math.sin(d));b=b.getCoordinateFromPixel(c);a.setCenter(b)}return!1}this.lastCentroid=
|
||||
null;return!0};ol.interaction.TouchPan.prototype.handleTouchStart=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.getView();this.lastCentroid=null;!goog.isNull(this.kineticPreRenderFn_)&&b.removePreRenderFunction(this.kineticPreRenderFn_)&&(b.requestRenderFrame(),c.setCenter(a.frameState.view2DState.center),this.kineticPreRenderFn_=null);this.kinetic_&&this.kinetic_.begin();c.setHint(ol.ViewHint.INTERACTING,1);return!0}return!1};ol.interaction.TouchRotate=function(a){ol.interaction.Touch.call(this);this.rotating_=!1;this.rotationDelta_=0;this.threshold_=goog.isDef(a)?a:0.3};goog.inherits(ol.interaction.TouchRotate,ol.interaction.Touch);
|
||||
null;return!0};ol.interaction.TouchPan.prototype.handleTouchStart=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.getView();this.lastCentroid=null;!goog.isNull(this.kineticPreRenderFn_)&&b.removePreRenderFunction(this.kineticPreRenderFn_)&&(b.requestRenderFrame(),c.setCenter(a.frameState.view2DState.center),this.kineticPreRenderFn_=null);this.kinetic_&&this.kinetic_.begin();c.setHint(ol.ViewHint.INTERACTING,1);return!0}return!1};ol.interaction.TOUCHROTATE_ANIMATION_DURATION=250;ol.interaction.TouchRotate=function(a){ol.interaction.Touch.call(this);this.rotating_=!1;this.rotationDelta_=0;this.threshold_=goog.isDef(a)?a:0.3};goog.inherits(ol.interaction.TouchRotate,ol.interaction.Touch);
|
||||
ol.interaction.TouchRotate.prototype.handleTouchMove=function(a){goog.asserts.assert(2<=this.targetTouches.length);var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);goog.isDef(this.lastAngle_)&&(b=c-this.lastAngle_,this.rotationDelta_+=b,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0));this.lastAngle_=c;var a=a.map,c=a.getView(),d=goog.style.getClientPosition(a.getViewport()),e=ol.interaction.Touch.centroid(this.targetTouches);
|
||||
e.x-=d.x;e.y-=d.y;d=a.getCoordinateFromPixel(e);this.rotating_&&c.rotate(a,c.getRotation()+b,d)};ol.interaction.TouchRotate.prototype.handleTouchEnd=function(a){return 2>this.targetTouches.length?(a.map.getView().setHint(ol.ViewHint.INTERACTING,-1),!1):!0};ol.interaction.TouchRotate.prototype.handleTouchStart=function(a){return 2<=this.targetTouches.length?(a=a.map.getView(),this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,a.setHint(ol.ViewHint.INTERACTING,1),!0):!1};ol.interaction.TouchZoom=function(){ol.interaction.Touch.call(this)};goog.inherits(ol.interaction.TouchZoom,ol.interaction.Touch);
|
||||
ol.interaction.TouchZoom.prototype.handleTouchMove=function(a){goog.asserts.assert(2<=this.targetTouches.length);var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);goog.isDef(this.lastDistance_)&&(b=this.lastDistance_/e);this.lastDistance_=e;a=a.map;e=a.getView();c=goog.style.getClientPosition(a.getViewport());d=ol.interaction.Touch.centroid(this.targetTouches);d.x-=c.x;d.y-=c.y;c=a.getCoordinateFromPixel(d);e.zoom_(a,e.getResolution()*
|
||||
b,c)};ol.interaction.TouchZoom.prototype.handleTouchEnd=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.getView();b.zoomToResolution(a,b.getResolution());b.setHint(ol.ViewHint.INTERACTING,-1);return!1}return!0};ol.interaction.TouchZoom.prototype.handleTouchStart=function(a){return 2<=this.targetTouches.length?(a=a.map.getView(),this.lastDistance_=void 0,a.setHint(ol.ViewHint.INTERACTING,1),!0):!1};ol.math={};ol.math.cosh=function(a){return(Math.exp(a)+Math.exp(-a))/2};ol.math.coth=function(a){a=Math.exp(-2*a);return(1+a)/(1-a)};ol.math.csch=function(a){return 2/(Math.exp(a)-Math.exp(-a))};ol.math.sech=function(a){return 2/(Math.exp(a)+Math.exp(-a))};ol.math.sinh=function(a){return(Math.exp(a)-Math.exp(-a))/2};ol.math.tanh=function(a){a=Math.exp(-2*a);return(1-a)/(1+a)};ol.projection.EPSG3857=function(a){ol.Projection.call(this,a,ol.ProjectionUnits.METERS,ol.projection.EPSG3857.EXTENT)};goog.inherits(ol.projection.EPSG3857,ol.Projection);ol.projection.EPSG3857.RADIUS=6378137;ol.projection.EPSG3857.HALF_SIZE=Math.PI*ol.projection.EPSG3857.RADIUS;ol.projection.EPSG3857.EXTENT=new ol.Extent(-ol.projection.EPSG3857.HALF_SIZE,-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE);
|
||||
e.x-=d.x;e.y-=d.y;d=a.getCoordinateFromPixel(e);this.rotating_&&c.rotateWithoutConstraints(a,c.getRotation()+b,d)};ol.interaction.TouchRotate.prototype.handleTouchEnd=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.getView();this.rotating_&&b.rotate(a,b.getRotation(),void 0,ol.interaction.TOUCHROTATE_ANIMATION_DURATION);b.setHint(ol.ViewHint.INTERACTING,-1);return!1}return!0};
|
||||
ol.interaction.TouchRotate.prototype.handleTouchStart=function(a){return 2<=this.targetTouches.length?(a=a.map.getView(),this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,a.setHint(ol.ViewHint.INTERACTING,1),!0):!1};ol.interaction.TOUCHZOOM_ANIMATION_DURATION=250;ol.interaction.TouchZoom=function(){ol.interaction.Touch.call(this)};goog.inherits(ol.interaction.TouchZoom,ol.interaction.Touch);
|
||||
ol.interaction.TouchZoom.prototype.handleTouchMove=function(a){goog.asserts.assert(2<=this.targetTouches.length);var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);goog.isDef(this.lastDistance_)&&(b=this.lastDistance_/e);this.lastDistance_=e;a=a.map;e=a.getView();c=goog.style.getClientPosition(a.getViewport());d=ol.interaction.Touch.centroid(this.targetTouches);d.x-=c.x;d.y-=c.y;c=a.getCoordinateFromPixel(d);e.zoomWithoutConstraints(a,
|
||||
e.getResolution()*b,c)};ol.interaction.TouchZoom.prototype.handleTouchEnd=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.getView();b.zoom(a,b.getResolution(),void 0,ol.interaction.TOUCHZOOM_ANIMATION_DURATION);b.setHint(ol.ViewHint.INTERACTING,-1);return!1}return!0};ol.interaction.TouchZoom.prototype.handleTouchStart=function(a){return 2<=this.targetTouches.length?(a=a.map.getView(),this.lastDistance_=void 0,a.setHint(ol.ViewHint.INTERACTING,1),!0):!1};ol.math={};ol.math.cosh=function(a){return(Math.exp(a)+Math.exp(-a))/2};ol.math.coth=function(a){a=Math.exp(-2*a);return(1+a)/(1-a)};ol.math.csch=function(a){return 2/(Math.exp(a)-Math.exp(-a))};ol.math.sech=function(a){return 2/(Math.exp(a)+Math.exp(-a))};ol.math.sinh=function(a){return(Math.exp(a)-Math.exp(-a))/2};ol.math.tanh=function(a){a=Math.exp(-2*a);return(1-a)/(1+a)};ol.projection.EPSG3857=function(a){ol.Projection.call(this,a,ol.ProjectionUnits.METERS,ol.projection.EPSG3857.EXTENT)};goog.inherits(ol.projection.EPSG3857,ol.Projection);ol.projection.EPSG3857.RADIUS=6378137;ol.projection.EPSG3857.HALF_SIZE=Math.PI*ol.projection.EPSG3857.RADIUS;ol.projection.EPSG3857.EXTENT=new ol.Extent(-ol.projection.EPSG3857.HALF_SIZE,-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE);
|
||||
ol.projection.EPSG3857.CODES=["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"];ol.projection.EPSG3857.PROJECTIONS=goog.array.map(ol.projection.EPSG3857.CODES,function(a){return new ol.projection.EPSG3857(a)});
|
||||
ol.projection.EPSG3857.fromEPSG4326=function(a,b,c){var d=a.length,c=1<c?c:2;goog.isDef(b)||(b=2<c?a.slice():Array(d));goog.asserts.assert(0===b.length%c);for(var e=0;e<d;e+=c)b[e]=ol.projection.EPSG3857.RADIUS*Math.PI*a[e]/180,b[e+1]=ol.projection.EPSG3857.RADIUS*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b};
|
||||
ol.projection.EPSG3857.toEPSG4326=function(a,b,c){var d=a.length,c=1<c?c:2;goog.isDef(b)||(b=2<c?a.slice():Array(d));goog.asserts.assert(0===b.length%c);for(var e=0;e<d;e+=c)b[e]=180*a[e]/(ol.projection.EPSG3857.RADIUS*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/ol.projection.EPSG3857.RADIUS))/Math.PI-90;return b};ol.projection.EPSG3857.prototype.getPointResolution=function(a,b){return a/ol.math.cosh(b.y/ol.projection.EPSG3857.RADIUS)};ol.projection.EPSG4326=function(a,b){ol.Projection.call(this,a,ol.ProjectionUnits.DEGREES,ol.projection.EPSG4326.EXTENT,b)};goog.inherits(ol.projection.EPSG4326,ol.Projection);ol.projection.EPSG4326.EXTENT=new ol.Extent(-180,-90,180,90);ol.projection.EPSG4326.PROJECTIONS=[new ol.projection.EPSG4326("CRS:84"),new ol.projection.EPSG4326("EPSG:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:OGC:1.3:CRS84")];
|
||||
@@ -598,11 +604,12 @@ ol.tilegrid.TileGrid.prototype.getTileSize=function(a){return goog.isNull(this.t
|
||||
ol.tilegrid.createForProjection=function(a,b,c){var a=a.getExtent(),d=Math.max(a.maxX-a.minX,a.maxY-a.minY),b=goog.isDef(b)?b:ol.DEFAULT_MAX_ZOOM,c=goog.isDef(c)?c:new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE),b=Array(b+1);goog.asserts.assert(c.width==c.height);for(var d=d/c.width,e=0,f=b.length;e<f;++e)b[e]=d/Math.pow(2,e);return new ol.tilegrid.TileGrid({origin:a.getTopLeft(),resolutions:b,tileSize:c})};ol.source.TileSource=function(a){ol.source.Source.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.opaque_=goog.isDef(a.opaque)?a.opaque:!1;this.tileGrid=goog.isDef(a.tileGrid)?a.tileGrid:null};goog.inherits(ol.source.TileSource,ol.source.Source);ol.source.TileSource.prototype.canExpireCache=goog.functions.FALSE;
|
||||
ol.source.TileSource.prototype.findLoadedTiles=function(a,b,c,d){var e=!0,f,g,h,i;for(h=d.minX;h<=d.maxX;++h)for(i=d.minY;i<=d.maxY;++i)if(f=new ol.TileCoord(c,h,i),g=f.toString(),!a[c]||!a[c][g])f=b(f),goog.isNull(f)?e=!1:(a[c]||(a[c]={}),a[c][g]=f);return e};ol.source.TileSource.prototype.getOpaque=function(){return this.opaque_};ol.source.TileSource.prototype.getResolutions=function(){return this.tileGrid.getResolutions()};ol.source.TileSource.prototype.getTileGrid=function(){return this.tileGrid};
|
||||
ol.source.TileSource.prototype.useLowResolutionTiles=function(a,b,c){for(var d,e,f;0<=a;--a){d=c.getTileRangeForExtentAndZ(b,a);for(e=d.minX;e<=d.maxX;++e)for(f=d.minY;f<=d.maxY;++f)this.useTile(a+"/"+e+"/"+f)}};ol.source.TileSource.prototype.useTile=goog.nullFunction;ol.renderer={};
|
||||
ol.renderer.Layer=function(a,b){ol.Object.call(this);this.mapRenderer_=a;this.layer_=b;goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.BRIGHTNESS),this.handleLayerBrightnessChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.CONTRAST),this.handleLayerContrastChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.HUE),this.handleLayerHueChange,!1,this);goog.events.listen(this.layer_,goog.events.EventType.LOAD,
|
||||
this.handleLayerLoad,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.OPACITY),this.handleLayerOpacityChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.SATURATION),this.handleLayerSaturationChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.VISIBLE),this.handleLayerVisibleChange,!1,this)};goog.inherits(ol.renderer.Layer,ol.Object);
|
||||
ol.renderer.Layer.prototype.dispatchChangeEvent=function(){this.dispatchEvent(goog.events.EventType.CHANGE)};ol.renderer.Layer.prototype.getLayer=function(){return this.layer_};ol.renderer.Layer.prototype.getMap=function(){return this.mapRenderer_.getMap()};ol.renderer.Layer.prototype.getMapRenderer=function(){return this.mapRenderer_};ol.renderer.Layer.prototype.handleLayerBrightnessChange=goog.nullFunction;ol.renderer.Layer.prototype.handleLayerContrastChange=goog.nullFunction;
|
||||
ol.renderer.Layer.prototype.handleLayerHueChange=goog.nullFunction;ol.renderer.Layer.prototype.handleImageChange=function(a){a.target.getState()===ol.ImageState.LOADED&&this.getMap().requestRenderFrame()};ol.renderer.Layer.prototype.handleLayerLoad=function(){this.dispatchChangeEvent()};ol.renderer.Layer.prototype.handleLayerOpacityChange=function(){this.dispatchChangeEvent()};ol.renderer.Layer.prototype.handleLayerSaturationChange=goog.nullFunction;
|
||||
ol.renderer.Layer.prototype.handleLayerVisibleChange=function(){this.dispatchChangeEvent()};ol.renderer.Layer.prototype.handleTileChange=function(a){a.target.getState()===ol.TileState.LOADED&&this.getMap().requestRenderFrame()};ol.renderer.Layer.prototype.scheduleExpireCache=function(a,b){b.canExpireCache()&&a.postRenderFunctions.push(goog.partial(function(a,b,e){b=goog.getUid(a).toString();a.expireCache(e.usedTiles[b])},b))};
|
||||
ol.renderer.Layer=function(a,b){ol.Object.call(this);this.mapRenderer_=a;this.layer_=b;this.observedTileKeys={};goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.BRIGHTNESS),this.handleLayerBrightnessChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.CONTRAST),this.handleLayerContrastChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.HUE),this.handleLayerHueChange,!1,
|
||||
this);goog.events.listen(this.layer_,goog.events.EventType.LOAD,this.handleLayerLoad,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.OPACITY),this.handleLayerOpacityChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.SATURATION),this.handleLayerSaturationChange,!1,this);goog.events.listen(this.layer_,ol.Object.getChangedEventType(ol.layer.LayerProperty.VISIBLE),this.handleLayerVisibleChange,!1,this)};
|
||||
goog.inherits(ol.renderer.Layer,ol.Object);ol.renderer.Layer.prototype.dispatchChangeEvent=function(){this.dispatchEvent(goog.events.EventType.CHANGE)};ol.renderer.Layer.prototype.getLayer=function(){return this.layer_};ol.renderer.Layer.prototype.getMap=function(){return this.mapRenderer_.getMap()};ol.renderer.Layer.prototype.getMapRenderer=function(){return this.mapRenderer_};ol.renderer.Layer.prototype.handleLayerBrightnessChange=goog.nullFunction;
|
||||
ol.renderer.Layer.prototype.handleLayerContrastChange=goog.nullFunction;ol.renderer.Layer.prototype.handleLayerHueChange=goog.nullFunction;ol.renderer.Layer.prototype.handleImageChange=function(a){a.target.getState()===ol.ImageState.LOADED&&this.getMap().requestRenderFrame()};ol.renderer.Layer.prototype.handleLayerLoad=function(){this.dispatchChangeEvent()};ol.renderer.Layer.prototype.handleLayerOpacityChange=function(){this.dispatchChangeEvent()};
|
||||
ol.renderer.Layer.prototype.handleLayerSaturationChange=goog.nullFunction;ol.renderer.Layer.prototype.handleLayerVisibleChange=function(){this.dispatchChangeEvent()};ol.renderer.Layer.prototype.handleTileChange_=function(a){a=a.target;a.getState()===ol.TileState.LOADED&&this.getMap().requestRenderFrame();delete this.observedTileKeys[a.getKey()]};
|
||||
ol.renderer.Layer.prototype.listenToTileChange=function(a){var b=a.getKey();b in this.observedTileKeys||(this.observedTileKeys[b]=!0,goog.events.listenOnce(a,goog.events.EventType.CHANGE,this.handleTileChange_,!1,this))};ol.renderer.Layer.prototype.scheduleExpireCache=function(a,b){b.canExpireCache()&&a.postRenderFunctions.push(goog.partial(function(a,b,e){b=goog.getUid(a).toString();a.expireCache(e.usedTiles[b])},b))};
|
||||
ol.renderer.Layer.prototype.updateAttributions=function(a,b){var c,d;for(c=0;c<b.length;++c)d=b[c],a[goog.getUid(d).toString()]=d};ol.renderer.Layer.prototype.updateUsedTiles=function(a,b,c,d){b=goog.getUid(b).toString();c=c.toString();b in a?c in a[b]?a[b][c].extend(d):a[b][c]=d:(a[b]={},a[b][c]=d)};ol.renderer.Layer.prototype.updateWantedTiles=function(a,b,c){b=goog.getUid(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=!0};
|
||||
ol.renderer.Layer.prototype.createGetTileIfLoadedFunction=function(a,b,c,d){return function(e){e=b.getTile(e,c,d);return a(e)?e:null}};ol.renderer.Map=function(a,b){goog.Disposable.call(this);this.container_=a;this.map=b;this.layerRenderers={};this.mapLayersChangedListenerKey_=goog.events.listen(b,ol.Object.getChangedEventType(ol.MapProperty.LAYERS),this.handleLayersChanged,!1,this);this.layersListenerKeys_=null;this.layerRendererChangeListenKeys_={}};goog.inherits(ol.renderer.Map,goog.Disposable);ol.renderer.Map.prototype.addLayer=function(a){var b=this.createLayerRenderer(a);this.setLayerRenderer(a,b)};
|
||||
ol.renderer.Map.prototype.calculateMatrices2D=function(a){var b=a.view2DState,c=a.coordinateToPixelMatrix;goog.vec.Mat4.makeIdentity(c);goog.vec.Mat4.translate(c,a.size.width/2,a.size.height/2,0);goog.vec.Mat4.scale(c,1/b.resolution,-1/b.resolution,1);goog.vec.Mat4.rotateZ(c,-b.rotation);goog.vec.Mat4.translate(c,-b.center.x,-b.center.y,0);a=goog.vec.Mat4.invert(c,a.pixelToCoordinateMatrix);goog.asserts.assert(a)};
|
||||
@@ -610,16 +617,16 @@ ol.renderer.Map.prototype.createLayerRenderer=function(a){return new ol.renderer
|
||||
ol.renderer.Map.prototype.getLayerRenderer=function(a){a=goog.getUid(a);a=this.layerRenderers[a];goog.asserts.assert(goog.isDef(a));return a};ol.renderer.Map.prototype.getMap=function(){return this.map};ol.renderer.Map.prototype.handleLayerRendererChange=function(){this.getMap().render()};ol.renderer.Map.prototype.handleLayersAdd=function(a){this.addLayer(a.elem)};
|
||||
ol.renderer.Map.prototype.handleLayersChanged=function(){goog.disposeAll(goog.object.getValues(this.layerRenderers));this.layerRenderers={};goog.isNull(this.layersListenerKeys_)||(goog.array.forEach(this.layersListenerKeys_,goog.events.unlistenByKey),this.layersListenerKeys_=null);var a=this.map.getLayers();goog.isDefAndNotNull(a)&&(a.forEach(this.addLayer,this),this.layersListenerKeys_=[goog.events.listen(a,ol.CollectionEventType.ADD,this.handleLayersAdd,!1,this),goog.events.listen(a,ol.CollectionEventType.REMOVE,
|
||||
this.handleLayersRemove,!1,this)])};ol.renderer.Map.prototype.handleLayersRemove=function(a){this.removeLayer(a.elem)};ol.renderer.Map.prototype.removeLayer=function(a){goog.dispose(this.removeLayerRenderer(a))};ol.renderer.Map.prototype.removeLayerRenderer=function(a){a=goog.getUid(a);if(a in this.layerRenderers){var b=this.layerRenderers[a];delete this.layerRenderers[a];goog.events.unlistenByKey(this.layerRendererChangeListenKeys_[a]);delete this.layerRendererChangeListenKeys_[a];return b}return null};
|
||||
ol.renderer.Map.prototype.renderFrame=goog.nullFunction;ol.renderer.Map.prototype.setLayerRenderer=function(a,b){var c=goog.getUid(a);goog.asserts.assert(!(c in this.layerRenderers));this.layerRenderers[c]=b;goog.asserts.assert(!(c in this.layerRendererChangeListenKeys_));this.layerRendererChangeListenKeys_[c]=goog.events.listen(b,goog.events.EventType.CHANGE,this.handleLayerRendererChange,!1,this)};ol.source.wms={};ol.source.wms.getUrl=function(a,b,c,d,e,f){var g=goog.isDef(f)?f:"1.3.0",f="1.3"<=g,h=e.getAxisOrientation(),c=f&&"ne"==h.substr(0,2)?[c.minY,c.minX,c.maxY,c.maxX]:[c.minX,c.minY,c.maxX,c.maxY],d={SERVICE:"WMS",VERSION:g,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0,WIDTH:d.width,HEIGHT:d.height,BBOX:c.join(",")};goog.object.extend(d,b);d[f?"CRS":"SRS"]=e.getCode();d.STYLES=b.STYLES||new String("");return goog.uri.utils.appendParamsFromMap(a,d)};ol.ImageUrlFunction={};ol.ImageUrlFunction.createWMSParams=function(a,b,c){return function(d,e,f){return ol.source.wms.getUrl(a,b,d,e,f,c)}};ol.ImageUrlFunction.nullImageUrlFunction=function(){};ol.source.ImageSource=function(a){ol.source.Source.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.imageUrlFunction=goog.isDef(a.imageUrlFunction)?a.imageUrlFunction:ol.ImageUrlFunction.nullImageUrlFunction;this.crossOrigin_=goog.isDef(a.crossOrigin)?a.crossOrigin:"anonymous";this.resolutions_=goog.isDef(a.resolutions)?a.resolutions:null;goog.asserts.assert(goog.isNull(this.resolutions_)||goog.array.isSorted(this.resolutions_,function(a,c){return c-a},!0))};
|
||||
ol.renderer.Map.prototype.renderFrame=goog.nullFunction;ol.renderer.Map.prototype.setLayerRenderer=function(a,b){var c=goog.getUid(a);goog.asserts.assert(!(c in this.layerRenderers));this.layerRenderers[c]=b;goog.asserts.assert(!(c in this.layerRendererChangeListenKeys_));this.layerRendererChangeListenKeys_[c]=goog.events.listen(b,goog.events.EventType.CHANGE,this.handleLayerRendererChange,!1,this)};ol.source.wms={};ol.source.wms.getUrl=function(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0,WIDTH:d.width,HEIGHT:d.height};goog.object.extend(d,b);d.STYLES=b.STYLES||new String("");b="1.3"<d.VERSION;d[b?"CRS":"SRS"]=e.getCode();e=e.getAxisOrientation();c=b&&"ne"==e.substr(0,2)?[c.minY,c.minX,c.maxY,c.maxX]:[c.minX,c.minY,c.maxX,c.maxY];d.BBOX=c.join(",");return goog.uri.utils.appendParamsFromMap(a,d)};ol.ImageUrlFunction={};ol.ImageUrlFunction.createWMSParams=function(a,b){return function(c,d,e){return ol.source.wms.getUrl(a,b,c,d,e)}};ol.ImageUrlFunction.nullImageUrlFunction=function(){};ol.source.ImageSource=function(a){ol.source.Source.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.imageUrlFunction=goog.isDef(a.imageUrlFunction)?a.imageUrlFunction:ol.ImageUrlFunction.nullImageUrlFunction;this.crossOrigin_=goog.isDef(a.crossOrigin)?a.crossOrigin:"anonymous";this.resolutions_=goog.isDef(a.resolutions)?a.resolutions:null;goog.asserts.assert(goog.isNull(this.resolutions_)||goog.array.isSorted(this.resolutions_,function(a,c){return c-a},!0))};
|
||||
goog.inherits(ol.source.ImageSource,ol.source.Source);ol.source.ImageSource.prototype.createImage=function(a,b,c,d){var e=null,c=this.imageUrlFunction(a,c,d);goog.isDef(c)&&(e=new ol.Image(a,b,c,this.crossOrigin_,this.getAttributions()));return e};ol.source.ImageSource.prototype.findNearestResolution=function(a){goog.isNull(this.resolutions_)||(a=ol.array.linearFindNearest(this.resolutions_,a),a=this.resolutions_[a]);return a};ol.layer.ImageLayer=function(a){ol.layer.Layer.call(this,a)};goog.inherits(ol.layer.ImageLayer,ol.layer.Layer);ol.layer.ImageLayer.prototype.getImageSource=function(){return this.getSource()};ol.layer.TileLayer=function(a){ol.layer.Layer.call(this,a)};goog.inherits(ol.layer.TileLayer,ol.layer.Layer);ol.layer.TileLayer.prototype.getTileSource=function(){return this.getSource()};ol.renderer.canvas={};ol.renderer.canvas.Layer=function(a,b){ol.renderer.Layer.call(this,a,b)};goog.inherits(ol.renderer.canvas.Layer,ol.renderer.Layer);ol.renderer.canvas.ImageLayer=function(a,b){ol.renderer.canvas.Layer.call(this,a,b);this.image_=null;this.transform_=goog.vec.Mat4.createNumber()};goog.inherits(ol.renderer.canvas.ImageLayer,ol.renderer.canvas.Layer);ol.renderer.canvas.ImageLayer.prototype.getImage=function(){return goog.isNull(this.image_)?null:this.image_.getImageElement(this)};ol.renderer.canvas.ImageLayer.prototype.getImageLayer=function(){return this.getLayer()};ol.renderer.canvas.ImageLayer.prototype.getTransform=function(){return this.transform_};
|
||||
ol.renderer.canvas.ImageLayer.prototype.renderFrame=function(a){var b=a.view2DState,c=b.center,d=b.resolution,e=b.rotation,f=this.getImageLayer().getImageSource(),g=a.viewHints;!g[ol.ViewHint.ANIMATING]&&!g[ol.ViewHint.INTERACTING]&&(b=f.getImage(a.extent,d,b.projection),goog.isNull(b)||(f=b.getState(),f==ol.ImageState.IDLE?(goog.events.listenOnce(b,goog.events.EventType.CHANGE,this.handleImageChange,!1,this),b.load()):f==ol.ImageState.LOADED&&(this.image_=b)));if(!goog.isNull(this.image_)){var b=
|
||||
this.image_,f=b.getExtent(),g=b.getResolution(),h=this.transform_;goog.vec.Mat4.makeIdentity(h);goog.vec.Mat4.translate(h,a.size.width/2,a.size.height/2,0);goog.vec.Mat4.rotateZ(h,e);goog.vec.Mat4.scale(h,g/d,g/d,1);goog.vec.Mat4.translate(h,(f.minX-c.x)/g,(c.y-f.maxY)/g,0);this.updateAttributions(a.attributions,b.getAttributions())}};ol.renderer.canvas.TileLayer=function(a,b){ol.renderer.canvas.Layer.call(this,a,b);this.context_=this.canvasSize_=this.canvas_=null;this.transform_=goog.vec.Mat4.createNumber();this.renderedTiles_=null};goog.inherits(ol.renderer.canvas.TileLayer,ol.renderer.canvas.Layer);ol.renderer.canvas.TileLayer.prototype.getImage=function(){return this.canvas_};ol.renderer.canvas.TileLayer.prototype.getTileLayer=function(){return this.getLayer()};ol.renderer.canvas.TileLayer.prototype.getTransform=function(){return this.transform_};
|
||||
ol.renderer.canvas.TileLayer.prototype.renderFrame=function(a){var b=a.view2DState,c=b.projection,d=this.getTileLayer().getTileSource(),e=goog.getUid(d).toString(),f=d.getTileGrid();goog.isNull(f)&&(f=ol.tilegrid.getForProjection(c));var g=f.getZForResolution(b.resolution),h=f.getTileSize(g),i=f.getResolution(g),l=f.getTileRangeForExtentAndResolution(a.extent,i),j=l.getWidth(),k=l.getHeight(),h=new ol.Size(h.width*j,h.height*k),m,n;goog.isNull(this.canvas_)?(m=goog.dom.createElement(goog.dom.TagName.CANVAS),
|
||||
m.width=h.width,m.height=h.height,n=m.getContext("2d"),this.canvas_=m,this.canvasSize_=h,this.context_=n,this.renderedTiles_=Array(j*k)):(m=this.canvas_,n=this.context_,this.canvasSize_.equals(h)||(m.width=h.width,m.height=h.height,this.canvasSize_=h,this.renderedTiles_=Array(j*k)));k={};k[g]={};var h=this.createGetTileIfLoadedFunction(function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED},d,f,c),h=goog.bind(d.findLoadedTiles,d,k,h),p,q,r,s;for(r=l.minX;r<=l.maxX;++r)for(s=l.minY;s<=
|
||||
l.maxY;++s)if(q=new ol.TileCoord(g,r,s),p=d.getTile(q,f,c),!goog.isNull(p)){m=p.getState();if(m==ol.TileState.IDLE)goog.events.listenOnce(p,goog.events.EventType.CHANGE,this.handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,d,q),m=f.getTileCoordCenter(q),a.tileQueue.enqueue(p,e,m);else if(m==ol.TileState.LOADED){k[g][q.toString()]=p;continue}else if(m==ol.TileState.ERROR)continue;f.forEachTileCoordParentTileRange(q,h)}e=goog.array.map(goog.object.getKeys(k),Number);goog.array.sort(e);
|
||||
m=d.getOpaque();var c=f.getTileCoordExtent(new ol.TileCoord(g,l.minX,l.maxY)).getTopLeft(),z,w,t,v,u,x;for(z=0;z<e.length;++z)if(p=e[z],h=f.getTileSize(p),v=k[p],p==g)for(w in v)p=v[w],q=p.tileCoord,q=(q.y-l.minY)*j+(q.x-l.minX),this.renderedTiles_[q]!=p&&(r=h.width*(p.tileCoord.x-l.minX),s=h.height*(l.maxY-p.tileCoord.y),m||n.clearRect(r,s,h.width,h.height),n.drawImage(p.getImage(),r,s),this.renderedTiles_[q]=p);else for(w in q=f.getResolution(p)/i,v){p=v[w];t=f.getTileCoordExtent(p.tileCoord);r=
|
||||
(t.minX-c.x)/i;s=(c.y-t.maxY)/i;x=q*h.width;u=q*h.height;m||n.clearRect(r,s,x,u);n.drawImage(p.getImage(),r,s,x,u);s=f.getTileRangeForExtentAndZ(t,g);t=Math.max(s.minX,l.minX);p=Math.min(s.maxX,l.maxX);r=Math.max(s.minY,l.minY);for(s=Math.min(s.maxY,l.maxY);t<=p;++t)for(u=r;u<=s;++u)this.renderedTiles_[(u-l.minY)*j+(t-l.minX)]=void 0}this.updateUsedTiles(a.usedTiles,d,g,l);d.useLowResolutionTiles(g,a.extent,f);this.scheduleExpireCache(a,d);d=this.transform_;goog.vec.Mat4.makeIdentity(d);goog.vec.Mat4.translate(d,
|
||||
a.size.width/2,a.size.height/2,0);goog.vec.Mat4.rotateZ(d,b.rotation);goog.vec.Mat4.scale(d,i/b.resolution,i/b.resolution,1);goog.vec.Mat4.translate(d,(c.x-b.center.x)/i,(b.center.y-c.y)/i,0)};ol.renderer.canvas.Map=function(a,b){ol.renderer.Map.call(this,a,b);this.canvasSize_=new ol.Size(a.clientHeight,a.clientWidth);this.canvas_=goog.dom.createElement(goog.dom.TagName.CANVAS);this.canvas_.height=this.canvasSize_.height;this.canvas_.width=this.canvasSize_.width;this.canvas_.className="ol-unselectable";goog.dom.insertChildAt(a,this.canvas_,0);this.renderedVisible_=!0;this.context_=this.canvas_.getContext("2d")};goog.inherits(ol.renderer.canvas.Map,ol.renderer.Map);
|
||||
l.maxY;++s)if(q=new ol.TileCoord(g,r,s),p=d.getTile(q,f,c),!goog.isNull(p)){m=p.getState();if(m==ol.TileState.IDLE)this.listenToTileChange(p),this.updateWantedTiles(a.wantedTiles,d,q),m=f.getTileCoordCenter(q),a.tileQueue.enqueue(p,e,m);else if(m==ol.TileState.LOADED){k[g][q.toString()]=p;continue}else if(m==ol.TileState.ERROR)continue;f.forEachTileCoordParentTileRange(q,h)}e=goog.array.map(goog.object.getKeys(k),Number);goog.array.sort(e);m=d.getOpaque();var c=f.getTileCoordExtent(new ol.TileCoord(g,
|
||||
l.minX,l.maxY)).getTopLeft(),z,w,t,v,u,x;for(z=0;z<e.length;++z)if(p=e[z],h=f.getTileSize(p),v=k[p],p==g)for(w in v)p=v[w],q=p.tileCoord,q=(q.y-l.minY)*j+(q.x-l.minX),this.renderedTiles_[q]!=p&&(r=h.width*(p.tileCoord.x-l.minX),s=h.height*(l.maxY-p.tileCoord.y),m||n.clearRect(r,s,h.width,h.height),n.drawImage(p.getImage(),r,s),this.renderedTiles_[q]=p);else for(w in q=f.getResolution(p)/i,v){p=v[w];t=f.getTileCoordExtent(p.tileCoord);r=(t.minX-c.x)/i;s=(c.y-t.maxY)/i;x=q*h.width;u=q*h.height;m||n.clearRect(r,
|
||||
s,x,u);n.drawImage(p.getImage(),r,s,x,u);s=f.getTileRangeForExtentAndZ(t,g);t=Math.max(s.minX,l.minX);p=Math.min(s.maxX,l.maxX);r=Math.max(s.minY,l.minY);for(s=Math.min(s.maxY,l.maxY);t<=p;++t)for(u=r;u<=s;++u)this.renderedTiles_[(u-l.minY)*j+(t-l.minX)]=void 0}this.updateUsedTiles(a.usedTiles,d,g,l);d.useLowResolutionTiles(g,a.extent,f);this.scheduleExpireCache(a,d);d=this.transform_;goog.vec.Mat4.makeIdentity(d);goog.vec.Mat4.translate(d,a.size.width/2,a.size.height/2,0);goog.vec.Mat4.rotateZ(d,
|
||||
b.rotation);goog.vec.Mat4.scale(d,i/b.resolution,i/b.resolution,1);goog.vec.Mat4.translate(d,(c.x-b.center.x)/i,(b.center.y-c.y)/i,0)};ol.renderer.canvas.Map=function(a,b){ol.renderer.Map.call(this,a,b);this.canvasSize_=new ol.Size(a.clientHeight,a.clientWidth);this.canvas_=goog.dom.createElement(goog.dom.TagName.CANVAS);this.canvas_.height=this.canvasSize_.height;this.canvas_.width=this.canvasSize_.width;this.canvas_.className="ol-unselectable";goog.dom.insertChildAt(a,this.canvas_,0);this.renderedVisible_=!0;this.context_=this.canvas_.getContext("2d")};goog.inherits(ol.renderer.canvas.Map,ol.renderer.Map);
|
||||
ol.renderer.canvas.Map.prototype.createLayerRenderer=function(a){if(a instanceof ol.layer.ImageLayer)return new ol.renderer.canvas.ImageLayer(this,a);if(a instanceof ol.layer.TileLayer)return new ol.renderer.canvas.TileLayer(this,a);goog.asserts.assert(!1);return null};ol.renderer.canvas.Map.prototype.getCanvas=function(){return this.canvas_};
|
||||
ol.renderer.canvas.Map.prototype.renderFrame=function(a){if(goog.isNull(a))this.renderedVisible_&&(goog.style.showElement(this.canvas_,!1),this.renderedVisible_=!1);else{var b=a.size;this.canvasSize_.equals(b)||(this.canvas_.width=b.width,this.canvas_.height=b.height,this.canvasSize_=b);var c=this.context_;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.r.toFixed(0)+","+d.g.toFixed(0)+","+d.b.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);goog.array.forEach(a.layersArray,
|
||||
function(b){var d=a.layerStates[goog.getUid(b)];if(d.visible)if(d.ready){var g=this.getLayerRenderer(b);g.renderFrame(a,d);b=g.getImage();goog.isNull(b)||(g=g.getTransform(),c.setTransform(goog.vec.Mat4.getElement(g,0,0),goog.vec.Mat4.getElement(g,1,0),goog.vec.Mat4.getElement(g,0,1),goog.vec.Mat4.getElement(g,1,1),goog.vec.Mat4.getElement(g,0,3),goog.vec.Mat4.getElement(g,1,3)),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.animate=!0},this);this.renderedVisible_||(goog.style.showElement(this.canvas_,
|
||||
@@ -630,8 +637,8 @@ ol.renderer.dom.ImageLayer.prototype.renderFrame=function(a){var b=a.view2DState
|
||||
f.getResolution(),b=goog.vec.Mat4.createNumber(),goog.vec.Mat4.makeIdentity(b),goog.vec.Mat4.translate(b,a.size.width/2,a.size.height/2,0),goog.vec.Mat4.rotateZ(b,e),goog.vec.Mat4.scale(b,h/d,h/d,1),goog.vec.Mat4.translate(b,(g.minX-c.x)/h,(c.y-g.maxY)/h,0),f!=this.image_&&(c=f.getImageElement(this),c.style.position="absolute",goog.dom.removeChildren(this.target),goog.dom.appendChild(this.target,c),this.image_=f),this.setTransform(b),this.updateAttributions(a.attributions,f.getAttributions()))};
|
||||
ol.renderer.dom.ImageLayer.prototype.setTransform=function(a){goog.vec.Mat4.equals(a,this.transform_)||(ol.dom.transformElement2D(this.target,a,6),goog.vec.Mat4.setFromArray(this.transform_,a))};ol.renderer.dom.TileLayer=function(a,b){var c=goog.dom.createElement(goog.dom.TagName.DIV);c.className="ol-layer-tile";c.style.position="absolute";ol.renderer.dom.Layer.call(this,a,b,c);this.renderedVisible_=!0;this.renderedOpacity_=1;this.tileLayerZs_={}};goog.inherits(ol.renderer.dom.TileLayer,ol.renderer.dom.Layer);ol.renderer.dom.TileLayer.prototype.getTileLayer=function(){return this.getLayer()};
|
||||
ol.renderer.dom.TileLayer.prototype.renderFrame=function(a,b){if(b.visible){var c=a.view2DState,d=c.projection,e=this.getTileLayer().getTileSource(),f=goog.getUid(e).toString(),g=e.getTileGrid();goog.isNull(g)&&(g=ol.tilegrid.getForProjection(d));var h=g.getZForResolution(c.resolution),i=g.getResolution(h),i=g.getTileRangeForExtentAndResolution(a.extent,i),l={};l[h]={};var j=this.createGetTileIfLoadedFunction(function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED},e,g,d),j=goog.bind(e.findLoadedTiles,
|
||||
e,l,j),k,m,n,p,q;for(p=i.minX;p<=i.maxX;++p)for(q=i.minY;q<=i.maxY;++q)if(n=new ol.TileCoord(h,p,q),k=e.getTile(n,g,d),!goog.isNull(k)){m=k.getState();if(m==ol.TileState.IDLE)goog.events.listenOnce(k,goog.events.EventType.CHANGE,this.handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,e,n),m=g.getTileCoordCenter(n),a.tileQueue.enqueue(k,f,m);else if(m==ol.TileState.LOADED){l[h][n.toString()]=k;continue}else if(m==ol.TileState.ERROR)continue;g.forEachTileCoordParentTileRange(n,j)}k=goog.array.map(goog.object.getKeys(l),
|
||||
Number);goog.array.sort(k);var d={},r;for(n=0;n<k.length;++n){j=k[n];j in this.tileLayerZs_?f=this.tileLayerZs_[j]:(f=g.getTileCoordForCoordAndZ(c.center,j),f=new ol.renderer.dom.TileLayerZ_(g,f),d[j]=!0,this.tileLayerZs_[j]=f);j=l[j];for(r in j)f.addTile(j[r]);f.finalizeAddTiles()}r=goog.array.map(goog.object.getKeys(this.tileLayerZs_),Number);goog.array.sort(r);n=goog.vec.Mat4.createNumber();for(k=0;k<r.length;++k)if(j=r[k],f=this.tileLayerZs_[j],j in l)if(q=f.getResolution(),p=f.getOrigin(),goog.vec.Mat4.makeIdentity(n),
|
||||
e,l,j),k,m,n,p,q;for(p=i.minX;p<=i.maxX;++p)for(q=i.minY;q<=i.maxY;++q)if(n=new ol.TileCoord(h,p,q),k=e.getTile(n,g,d),!goog.isNull(k)){m=k.getState();if(m==ol.TileState.IDLE)this.listenToTileChange(k),this.updateWantedTiles(a.wantedTiles,e,n),m=g.getTileCoordCenter(n),a.tileQueue.enqueue(k,f,m);else if(m==ol.TileState.LOADED){l[h][n.toString()]=k;continue}else if(m==ol.TileState.ERROR)continue;g.forEachTileCoordParentTileRange(n,j)}k=goog.array.map(goog.object.getKeys(l),Number);goog.array.sort(k);
|
||||
var d={},r;for(n=0;n<k.length;++n){j=k[n];j in this.tileLayerZs_?f=this.tileLayerZs_[j]:(f=g.getTileCoordForCoordAndZ(c.center,j),f=new ol.renderer.dom.TileLayerZ_(g,f),d[j]=!0,this.tileLayerZs_[j]=f);j=l[j];for(r in j)f.addTile(j[r]);f.finalizeAddTiles()}r=goog.array.map(goog.object.getKeys(this.tileLayerZs_),Number);goog.array.sort(r);n=goog.vec.Mat4.createNumber();for(k=0;k<r.length;++k)if(j=r[k],f=this.tileLayerZs_[j],j in l)if(q=f.getResolution(),p=f.getOrigin(),goog.vec.Mat4.makeIdentity(n),
|
||||
goog.vec.Mat4.translate(n,a.size.width/2,a.size.height/2,0),goog.vec.Mat4.rotateZ(n,c.rotation),goog.vec.Mat4.scale(n,q/c.resolution,q/c.resolution,1),goog.vec.Mat4.translate(n,(p.x-c.center.x)/q,(c.center.y-p.y)/q,0),f.setTransform(n),j in d){for(j-=1;0<=j;--j)if(j in this.tileLayerZs_){goog.dom.insertSiblingAfter(f.target,this.tileLayerZs_[j].target);break}0>j&&goog.dom.insertChildAt(this.target,f.target,0)}else!a.viewHints[ol.ViewHint.ANIMATING]&&!a.viewHints[ol.ViewHint.INTERACTING]&&f.removeTilesOutsideExtent(a.extent);
|
||||
else goog.dom.removeNode(f.target),delete this.tileLayerZs_[j];b.opacity!=this.renderedOpacity_&&(goog.style.setOpacity(this.target,b.opacity),this.renderedOpacity_=b.opacity);b.visible&&!this.renderedVisible_&&(goog.style.showElement(this.target,!0),this.renderedVisible_=!0);this.updateUsedTiles(a.usedTiles,e,h,i);e.useLowResolutionTiles(h,a.extent,g);this.scheduleExpireCache(a,e)}else this.renderedVisible_&&(goog.style.showElement(this.target,!1),this.renderedVisible_=!1)};
|
||||
ol.renderer.dom.TileLayerZ_=function(a,b){this.target=goog.dom.createElement(goog.dom.TagName.DIV);this.target.style.position="absolute";this.tileGrid_=a;this.tileCoordOrigin_=b;this.origin_=a.getTileCoordExtent(b).getTopLeft();this.resolution_=a.getResolution(b.z);this.tiles_={};this.documentFragment_=null;this.transform_=goog.vec.Mat4.createNumberIdentity()};
|
||||
@@ -690,10 +697,10 @@ ol.renderer.webgl.TileLayer.prototype.renderFrame=function(a){var b=this.getMapR
|
||||
else{var n=k.getSize(),p=i.getTileSize(l),n=Math.max(n.width*p.width,n.height*p.height),n=Math.pow(2,Math.ceil(Math.log(n)/Math.log(2))),q=new ol.Size(j*n,j*n),r=i.getOrigin(l),s=r.x+k.minX*p.width*j,j=r.y+k.minY*p.height*j;m=new ol.Extent(s,j,s+q.width,j+q.height);this.bindFramebuffer_(a,n);c.viewport(0,0,n,n);c.clearColor(0,0,0,0);c.clear(goog.webgl.COLOR_BUFFER_BIT);c.disable(goog.webgl.BLEND);j=b.getProgram(this.fragmentShader_,this.vertexShader_);c.useProgram(j);goog.isNull(this.locations_)&&
|
||||
(this.locations_={aPosition:c.getAttribLocation(j,"aPosition"),aTexCoord:c.getAttribLocation(j,"aTexCoord"),uTileOffset:c.getUniformLocation(j,"uTileOffset"),uTexture:c.getUniformLocation(j,"uTexture")});goog.isNull(this.arrayBuffer_)?(j=c.createBuffer(),c.bindBuffer(goog.webgl.ARRAY_BUFFER,j),c.bufferData(goog.webgl.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),goog.webgl.STATIC_DRAW),this.arrayBuffer_=j):c.bindBuffer(goog.webgl.ARRAY_BUFFER,this.arrayBuffer_);c.enableVertexAttribArray(this.locations_.aPosition);
|
||||
c.vertexAttribPointer(this.locations_.aPosition,2,goog.webgl.FLOAT,!1,16,0);c.enableVertexAttribArray(this.locations_.aTexCoord);c.vertexAttribPointer(this.locations_.aTexCoord,2,goog.webgl.FLOAT,!1,16,8);c.uniform1i(this.locations_.uTexture,0);var z={};z[l]={};for(var j=this.createGetTileIfLoadedFunction(function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED&&b.isTileTextureLoaded(a)},g,i,e),p=goog.bind(g.findLoadedTiles,g,z,j),j=new goog.structs.PriorityQueue,w=!0,t,v,r=k.minX;r<=
|
||||
k.maxX;++r)for(v=k.minY;v<=k.maxY;++v)if(s=new ol.TileCoord(l,r,v),n=g.getTile(s,i,e),!goog.isNull(n)){t=n.getState();if(t==ol.TileState.IDLE)goog.events.listenOnce(n,goog.events.EventType.CHANGE,this.handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,g,s),t=i.getTileCoordCenter(s),a.tileQueue.enqueue(n,h,t);else if(t==ol.TileState.LOADED)if(b.isTileTextureLoaded(n)){z[l][s.toString()]=n;continue}else t=i.getTileCoordCenter(s),w=t.x-f.x,t=t.y-f.y,w=Math.sqrt(w*w+t*t),j.enqueue(w,n);else if(t==
|
||||
ol.TileState.ERROR)continue;w=!1;i.forEachTileCoordParentTileRange(s,p)}e=goog.array.map(goog.object.getKeys(z),Number);goog.array.sort(e);var u=goog.vec.Vec4.createFloat32();goog.array.forEach(e,function(a){goog.object.forEach(z[a],function(a){var d=i.getTileCoordExtent(a.tileCoord),e=2*d.getWidth()/q.width,f=2*d.getHeight()/q.height;goog.vec.Vec4.setFromValues(u,e,f,2*(d.minX-m.minX)/q.width-1,2*(d.minY-m.minY)/q.height-1);c.uniform4fv(this.locations_.uTileOffset,u);b.bindTileTexture(a,goog.webgl.LINEAR,
|
||||
goog.webgl.LINEAR);c.drawArrays(goog.webgl.TRIANGLE_STRIP,0,4)},this)},this);j.isEmpty()||a.postRenderFunctions.push(goog.partial(function(a,b){var c,d;for(c=0;!b.isEmpty()&&4>c;++c)d=b.remove(),a.bindTileTexture(d,goog.webgl.LINEAR,goog.webgl.LINEAR)},b,j));w?(this.renderedTileRange_=k,this.renderedFramebufferExtent_=m):(this.renderedFramebufferExtent_=this.renderedTileRange_=null,a.animate=!0)}this.updateUsedTiles(a.usedTiles,g,l,k);g.useLowResolutionTiles(l,a.extent,i);this.scheduleExpireCache(a,
|
||||
g);goog.vec.Mat4.makeIdentity(this.texCoordMatrix_);goog.vec.Mat4.translate(this.texCoordMatrix_,(d.center.x-m.minX)/(m.maxX-m.minX),(d.center.y-m.minY)/(m.maxY-m.minY),0);goog.vec.Mat4.rotateZ(this.texCoordMatrix_,d.rotation);goog.vec.Mat4.scale(this.texCoordMatrix_,a.size.width*d.resolution/(m.maxX-m.minX),a.size.height*d.resolution/(m.maxY-m.minY),1);goog.vec.Mat4.translate(this.texCoordMatrix_,-0.5,-0.5,0)};ol.structs={};ol.structs.LRUCache=function(){this.count_=0;this.entries_={};this.newest_=this.oldest_=null};
|
||||
k.maxX;++r)for(v=k.minY;v<=k.maxY;++v)if(s=new ol.TileCoord(l,r,v),n=g.getTile(s,i,e),!goog.isNull(n)){t=n.getState();if(t==ol.TileState.IDLE)this.listenToTileChange(n),this.updateWantedTiles(a.wantedTiles,g,s),t=i.getTileCoordCenter(s),a.tileQueue.enqueue(n,h,t);else if(t==ol.TileState.LOADED)if(b.isTileTextureLoaded(n)){z[l][s.toString()]=n;continue}else t=i.getTileCoordCenter(s),w=t.x-f.x,t=t.y-f.y,w=Math.sqrt(w*w+t*t),j.enqueue(w,n);else if(t==ol.TileState.ERROR)continue;w=!1;i.forEachTileCoordParentTileRange(s,
|
||||
p)}e=goog.array.map(goog.object.getKeys(z),Number);goog.array.sort(e);var u=goog.vec.Vec4.createFloat32();goog.array.forEach(e,function(a){goog.object.forEach(z[a],function(a){var d=i.getTileCoordExtent(a.tileCoord),e=2*d.getWidth()/q.width,f=2*d.getHeight()/q.height;goog.vec.Vec4.setFromValues(u,e,f,2*(d.minX-m.minX)/q.width-1,2*(d.minY-m.minY)/q.height-1);c.uniform4fv(this.locations_.uTileOffset,u);b.bindTileTexture(a,goog.webgl.LINEAR,goog.webgl.LINEAR);c.drawArrays(goog.webgl.TRIANGLE_STRIP,0,
|
||||
4)},this)},this);j.isEmpty()||a.postRenderFunctions.push(goog.partial(function(a,b){var c,d;for(c=0;!b.isEmpty()&&4>c;++c)d=b.remove(),a.bindTileTexture(d,goog.webgl.LINEAR,goog.webgl.LINEAR)},b,j));w?(this.renderedTileRange_=k,this.renderedFramebufferExtent_=m):(this.renderedFramebufferExtent_=this.renderedTileRange_=null,a.animate=!0)}this.updateUsedTiles(a.usedTiles,g,l,k);g.useLowResolutionTiles(l,a.extent,i);this.scheduleExpireCache(a,g);goog.vec.Mat4.makeIdentity(this.texCoordMatrix_);goog.vec.Mat4.translate(this.texCoordMatrix_,
|
||||
(d.center.x-m.minX)/(m.maxX-m.minX),(d.center.y-m.minY)/(m.maxY-m.minY),0);goog.vec.Mat4.rotateZ(this.texCoordMatrix_,d.rotation);goog.vec.Mat4.scale(this.texCoordMatrix_,a.size.width*d.resolution/(m.maxX-m.minX),a.size.height*d.resolution/(m.maxY-m.minY),1);goog.vec.Mat4.translate(this.texCoordMatrix_,-0.5,-0.5,0)};ol.structs={};ol.structs.LRUCache=function(){this.count_=0;this.entries_={};this.newest_=this.oldest_=null};
|
||||
ol.structs.LRUCache.prototype.assertValid=function(){if(0===this.count_)goog.asserts.assert(goog.object.isEmpty(this.entries_)),goog.asserts.assert(goog.isNull(this.oldest_)),goog.asserts.assert(goog.isNull(this.newest_));else{goog.asserts.assert(goog.object.getCount(this.entries_)==this.count_);goog.asserts.assert(!goog.isNull(this.oldest_));goog.asserts.assert(goog.isNull(this.oldest_.older));goog.asserts.assert(!goog.isNull(this.newest_));goog.asserts.assert(goog.isNull(this.newest_.newer));var a,
|
||||
b,c=null;a=0;for(b=this.oldest_;!goog.isNull(b);b=b.newer)goog.asserts.assert(b.older===c),c=b,++a;goog.asserts.assert(a==this.count_);c=null;a=0;for(b=this.newest_;!goog.isNull(b);b=b.older)goog.asserts.assert(b.newer===c),c=b,++a;goog.asserts.assert(a==this.count_)}};ol.structs.LRUCache.prototype.clear=function(){this.count_=0;this.entries_={};this.newest_=this.oldest_=null};ol.structs.LRUCache.prototype.containsKey=function(a){return this.entries_.hasOwnProperty(a)};
|
||||
ol.structs.LRUCache.prototype.forEach=function(a,b){for(var c=this.oldest_;!goog.isNull(c);)a.call(b,c.value_,c.key_,this),c=c.newer};ol.structs.LRUCache.prototype.get=function(a){a=this.entries_[a];goog.asserts.assert(goog.isDef(a));if(a===this.newest_)return a.value_;a===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(a.newer.older=a.older,a.older.newer=a.newer);a.newer=null;a.older=this.newest_;this.newest_=this.newest_.newer=a;return a.value_};
|
||||
@@ -745,10 +752,10 @@ backgroundColor:goog.isDef(f)?f:new ol.Color(255,255,255,1),coordinateToPixelMat
|
||||
ol.Map.prototype.setView=function(a){this.set(ol.MapProperty.VIEW,a)};goog.exportProperty(ol.Map.prototype,"setView",ol.Map.prototype.setView);ol.Map.prototype.unfreezeRendering=function(){goog.asserts.assert(0<this.freezeRenderingCount_);0===--this.freezeRenderingCount_&&this.dirty_&&this.animationDelay_.fire()};ol.Map.prototype.withFrozenRendering=function(a,b){this.freezeRendering();try{a.call(b)}finally{this.unfreezeRendering()}};
|
||||
ol.Map.createOptionsInternal=function(a){var b={};b[ol.MapProperty.LAYERS]=goog.isDef(a.layers)?a.layers:new ol.Collection;b[ol.MapProperty.VIEW]=goog.isDef(a.view)?a.view:new ol.View2D;var c=ol.renderer.Map,d;d=goog.isDef(a.renderers)?a.renderers:goog.isDef(a.renderer)?[a.renderer]:ol.DEFAULT_RENDERER_HINTS;var e,f;for(e=0;e<d.length;++e)if(f=d[e],f==ol.RendererHint.CANVAS){if(ol.ENABLE_CANVAS&&ol.renderer.canvas.SUPPORTED){c=ol.renderer.canvas.Map;break}}else if(f==ol.RendererHint.DOM){if(ol.ENABLE_DOM&&
|
||||
ol.renderer.dom.SUPPORTED){c=ol.renderer.dom.Map;break}}else if(f==ol.RendererHint.WEBGL&&ol.ENABLE_WEBGL&&ol.renderer.webgl.SUPPORTED){c=ol.renderer.webgl.Map;break}d=ol.Map.createControls_(a);e=goog.isDef(a.interactions)?a.interactions:ol.Map.createInteractions_(a);a=goog.dom.getElement(a.target);return{controls:d,interactions:e,rendererConstructor:c,target:a,values:b}};
|
||||
ol.Map.createControls_=function(a){var b=[];(goog.isDef(a.attributionControl)?a.attributionControl:1)&&b.push(new ol.control.Attribution({}));if(goog.isDef(a.scaleLineControl)&&a.scaleLineControl){var c=goog.isDef(a.scaleLineUnits)?a.scaleLineUnits:void 0;b.push(new ol.control.ScaleLine({units:c}))}if(goog.isDef(a.zoomControl)?a.zoomControl:1)a=goog.isDef(a.zoomDelta)?a.zoomDelta:4,b.push(new ol.control.Zoom({delta:a}));return b};
|
||||
ol.Map.createInteractions_=function(a){var b=new ol.Collection;(goog.isDef(a.rotate)?a.rotate:1)&&b.push(new ol.interaction.DragRotate(ol.interaction.condition.altShiftKeysOnly));if(goog.isDef(a.doubleClickZoom)?a.doubleClickZoom:1){var c=goog.isDef(a.zoomDelta)?a.zoomDelta:4;b.push(new ol.interaction.DblClickZoom(c))}(goog.isDef(a.touchPan)?a.touchPan:1)&&b.push(new ol.interaction.TouchPan(new ol.Kinetic(-0.005,0.05,100)));(goog.isDef(a.touchRotate)?a.touchRotate:1)&&b.push(new ol.interaction.TouchRotate);
|
||||
(goog.isDef(a.touchZoom)?a.touchZoom:1)&&b.push(new ol.interaction.TouchZoom);(goog.isDef(a.dragPan)?a.dragPan:1)&&b.push(new ol.interaction.DragPan(ol.interaction.condition.noModifierKeys,new ol.Kinetic(-0.005,0.05,100)));var c=goog.isDef(a.keyboard)?a.keyboard:!0,d=goog.isDef(a.keyboardPanOffset)?a.keyboardPanOffset:80;c&&(b.push(new ol.interaction.KeyboardPan(d)),b.push(new ol.interaction.KeyboardZoom));if(goog.isDef(a.mouseWheelZoom)?a.mouseWheelZoom:1)c=goog.isDef(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:
|
||||
1,b.push(new ol.interaction.MouseWheelZoom(c));(goog.isDef(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new ol.interaction.DragZoom(ol.interaction.condition.shiftKeyOnly));return b};ol.RendererHints.createFromQueryData=function(a){var b=goog.global.location.search.substring(1),a=goog.isDef(a)?a:new goog.Uri.QueryData(b);return a.containsKey("renderers")?a.get("renderers").split(","):a.containsKey("renderer")?[a.get("renderer")]:ol.DEFAULT_RENDERER_HINTS};ol.projection.addCommonProjections();ol.AnchoredElementProperty={ELEMENT:"element",MAP:"map",POSITION:"position",POSITIONING:"positioning"};ol.AnchoredElementPositioning={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};
|
||||
ol.Map.createControls_=function(a){var b=[];(goog.isDef(a.attributionControl)?a.attributionControl:1)&&b.push(new ol.control.Attribution({}));if(goog.isDef(a.scaleLineControl)&&a.scaleLineControl){var c=goog.isDef(a.scaleLineUnits)?a.scaleLineUnits:void 0;b.push(new ol.control.ScaleLine({units:c}))}if(goog.isDef(a.zoomControl)?a.zoomControl:1)a=goog.isDef(a.zoomDelta)?a.zoomDelta:1,b.push(new ol.control.Zoom({delta:a}));return b};
|
||||
ol.Map.createInteractions_=function(a){var b=new ol.Collection;(goog.isDef(a.rotate)?a.rotate:1)&&b.push(new ol.interaction.DragRotate(ol.interaction.condition.altShiftKeysOnly));if(goog.isDef(a.doubleClickZoom)?a.doubleClickZoom:1){var c=goog.isDef(a.zoomDelta)?a.zoomDelta:1;b.push(new ol.interaction.DblClickZoom(c))}(goog.isDef(a.touchPan)?a.touchPan:1)&&b.push(new ol.interaction.TouchPan(new ol.Kinetic(-0.005,0.05,100)));(goog.isDef(a.touchRotate)?a.touchRotate:1)&&b.push(new ol.interaction.TouchRotate);
|
||||
(goog.isDef(a.touchZoom)?a.touchZoom:1)&&b.push(new ol.interaction.TouchZoom);(goog.isDef(a.dragPan)?a.dragPan:1)&&b.push(new ol.interaction.DragPan(ol.interaction.condition.noModifierKeys,new ol.Kinetic(-0.005,0.05,100)));var c=goog.isDef(a.keyboard)?a.keyboard:!0,d=goog.isDef(a.keyboardPanOffset)?a.keyboardPanOffset:80;c&&(b.push(new ol.interaction.KeyboardPan(d)),b.push(new ol.interaction.KeyboardZoom));(goog.isDef(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new ol.interaction.MouseWheelZoom);
|
||||
(goog.isDef(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new ol.interaction.DragZoom(ol.interaction.condition.shiftKeyOnly));return b};ol.RendererHints.createFromQueryData=function(a){var b=goog.global.location.search.substring(1),a=goog.isDef(a)?a:new goog.Uri.QueryData(b);return a.containsKey("renderers")?a.get("renderers").split(","):a.containsKey("renderer")?[a.get("renderer")]:ol.DEFAULT_RENDERER_HINTS};ol.projection.addCommonProjections();ol.AnchoredElementProperty={ELEMENT:"element",MAP:"map",POSITION:"position",POSITIONING:"positioning"};ol.AnchoredElementPositioning={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};
|
||||
ol.AnchoredElement=function(a){ol.Object.call(this);this.element_=goog.dom.createElement(goog.dom.TagName.DIV);this.element_.style.position="absolute";this.rendered_={bottom_:"",left_:"",right_:"",top_:"",visible:!0};goog.events.listen(this,ol.Object.getChangedEventType(ol.AnchoredElementProperty.ELEMENT),this.handleElementChanged,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.AnchoredElementProperty.MAP),this.handleMapChanged,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.AnchoredElementProperty.POSITION),
|
||||
this.handlePositionChanged,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.AnchoredElementProperty.POSITIONING),this.handlePositioningChanged,!1,this);goog.isDef(a.element)&&this.setElement(a.element);goog.isDef(a.position)&&this.setPosition(a.position);goog.isDef(a.positioning)&&this.setPositioning(a.positioning);goog.isDef(a.map)&&this.setMap(a.map)};goog.inherits(ol.AnchoredElement,ol.Object);ol.AnchoredElement.prototype.getElement=function(){return this.get(ol.AnchoredElementProperty.ELEMENT)};
|
||||
goog.exportProperty(ol.AnchoredElement.prototype,"getElement",ol.AnchoredElement.prototype.getElement);ol.AnchoredElement.prototype.getMap=function(){return this.get(ol.AnchoredElementProperty.MAP)};goog.exportProperty(ol.AnchoredElement.prototype,"getMap",ol.AnchoredElement.prototype.getMap);ol.AnchoredElement.prototype.getPosition=function(){return this.get(ol.AnchoredElementProperty.POSITION)};goog.exportProperty(ol.AnchoredElement.prototype,"getPosition",ol.AnchoredElement.prototype.getPosition);
|
||||
@@ -773,14 +780,14 @@ ol.ImageTile.prototype.getKey=function(){return this.src_};ol.ImageTile.prototyp
|
||||
ol.ImageTile.prototype.load=function(){this.state==ol.TileState.IDLE&&(this.state=ol.TileState.LOADING,goog.asserts.assert(goog.isNull(this.imageListenerKeys_)),this.imageListenerKeys_=[goog.events.listenOnce(this.image_,goog.events.EventType.ERROR,this.handleImageError_,!1,this),goog.events.listenOnce(this.image_,goog.events.EventType.LOAD,this.handleImageLoad_,!1,this)],this.image_.src=this.src_)};
|
||||
ol.ImageTile.prototype.unlistenImage_=function(){goog.asserts.assert(!goog.isNull(this.imageListenerKeys_));goog.array.forEach(this.imageListenerKeys_,goog.events.unlistenByKey);this.imageListenerKeys_=null};ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK=512;ol.TileCache=function(a){ol.structs.LRUCache.call(this);this.highWaterMark_=goog.isDef(a)?a:ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK};goog.inherits(ol.TileCache,ol.structs.LRUCache);ol.TileCache.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark_};ol.TileCache.prototype.expireCache=function(a){for(var b,c;this.canExpireCache()&&!(b=this.peekLast(),c=b.tileCoord.z.toString(),c in a&&a[c].contains(b.tileCoord));)this.pop()};ol.TileUrlFunction={};ol.TileUrlFunction.createFromTemplate=function(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){for(var c=[],d=b[1].charCodeAt(0),e=b[2].charCodeAt(0);d<=e;++d)c.push(a.replace(b[0],String.fromCharCode(d)));return ol.TileUrlFunction.createFromTemplates(c)}return function(b){return goog.isNull(b)?void 0:a.replace("{z}",b.z).replace("{x}",b.x).replace("{y}",b.y)}};
|
||||
ol.TileUrlFunction.createFromTemplates=function(a){return ol.TileUrlFunction.createFromTileUrlFunctions(goog.array.map(a,ol.TileUrlFunction.createFromTemplate))};ol.TileUrlFunction.createFromTileUrlFunctions=function(a){return function(b,c,d){if(!goog.isNull(b)){var e=goog.math.modulo(b.hash(),a.length);return a[e](b,c,d)}}};
|
||||
ol.TileUrlFunction.createWMSParams=function(a,b,c){return function(d,e,f){if(!goog.isNull(d)){var g=e.getTileSize(d.z),d=e.getTileCoordExtent(d);return ol.source.wms.getUrl(a,b,d,g,f,c)}}};ol.TileUrlFunction.nullTileUrlFunction=function(){};ol.TileUrlFunction.withTileCoordTransform=function(a,b){return function(c,d,e){return goog.isNull(c)?void 0:b(a(c,d,e),d,e)}};ol.control.MousePosition=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-mouse-position"});ol.control.Control.call(this,{element:b,map:a.map,target:a.target});this.projection_=a.projection;this.coordinateFormat_=a.coordinateFormat;this.undefinedHTML_=goog.isDef(a.undefinedHTML)?a.undefinedHTML:"";this.renderedHTML_=b.innerHTML;this.mapProjection_=null;this.transform_=ol.projection.identityTransform;this.listenerKeys_=this.lastMouseMovePixel_=this.renderedProjection_=null};
|
||||
ol.TileUrlFunction.createWMSParams=function(a,b){return function(c,d,e){if(!goog.isNull(c)){var f=d.getTileSize(c.z),c=d.getTileCoordExtent(c);return ol.source.wms.getUrl(a,b,c,f,e)}}};ol.TileUrlFunction.nullTileUrlFunction=function(){};ol.TileUrlFunction.withTileCoordTransform=function(a,b){return function(c,d,e){return goog.isNull(c)?void 0:b(a(c,d,e),d,e)}};ol.control.MousePosition=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-mouse-position"});ol.control.Control.call(this,{element:b,map:a.map,target:a.target});this.projection_=a.projection;this.coordinateFormat_=a.coordinateFormat;this.undefinedHTML_=goog.isDef(a.undefinedHTML)?a.undefinedHTML:"";this.renderedHTML_=b.innerHTML;this.mapProjection_=null;this.transform_=ol.projection.identityTransform;this.listenerKeys_=this.lastMouseMovePixel_=this.renderedProjection_=null};
|
||||
goog.inherits(ol.control.MousePosition,ol.control.Control);ol.control.MousePosition.prototype.handleMapPostrender=function(a){a=a.frameState;this.mapProjection_=goog.isNull(a)?null:a.view2DState.projection;this.updateHTML_(this.lastMouseMovePixel_)};ol.control.MousePosition.prototype.handleMouseMove=function(a){var b=this.getMap(),a=goog.style.getRelativePosition(a,b.getViewport()),a=new ol.Pixel(a.x,a.y);this.updateHTML_(a);this.lastMouseMovePixel_=a};
|
||||
ol.control.MousePosition.prototype.handleMouseOut=function(){this.updateHTML_(null);this.lastMouseMovePixel_=null};
|
||||
ol.control.MousePosition.prototype.setMap=function(a){goog.isNull(this.listenerKeys_)||(goog.array.forEach(this.listenerKeys_,goog.events.unlistenByKey),this.listenerKeys_=null);ol.control.MousePosition.superClass_.setMap.call(this,a);if(!goog.isNull(a)){var b=a.getViewport();this.listenerKeys_=[goog.events.listen(b,goog.events.EventType.MOUSEMOVE,this.handleMouseMove,!1,this),goog.events.listen(b,goog.events.EventType.MOUSEOUT,this.handleMouseOut,!1,this),goog.events.listen(a,ol.MapEventType.POSTRENDER,
|
||||
this.handleMapPostrender,!1,this)]}};
|
||||
ol.control.MousePosition.prototype.updateHTML_=function(a){var b=this.undefinedHTML_;goog.isNull(a)||(this.renderedProjection_!=this.mapProjection_&&(this.transform_=goog.isDef(this.projection_)?ol.projection.getTransform(this.mapProjection_,this.projection_):ol.projection.identityTransform,this.renderedProjection_=this.mapProjection_),a=this.getMap().getCoordinateFromPixel(a),goog.isNull(a)||(b=[a.x,a.y],b=this.transform_(b,b),a=new ol.Coordinate(b[0],b[1]),b=goog.isDef(this.coordinateFormat_)?this.coordinateFormat_(a):
|
||||
a.toString()));if(!goog.isDef(this.renderedHTML_)||b!=this.renderedHTML_)this.renderedHTML_=this.element.innerHTML=b};ol.ellipsoid={};ol.ellipsoid.WGS84=new ol.Ellipsoid(6378137,1/298.257223563);ol.interaction.DragRotateAndZoom=function(a){ol.interaction.Drag.call(this);this.condition_=a};goog.inherits(ol.interaction.DragRotateAndZoom,ol.interaction.Drag);
|
||||
ol.interaction.DragRotateAndZoom.prototype.handleDrag=function(a){var b=a.browserEvent,a=a.map,c=a.getSize(),c=new goog.math.Vec2(b.offsetX-c.width/2,c.height/2-b.offsetY),b=Math.atan2(c.y,c.x),c=c.magnitude(),d=a.getView();goog.asserts.assert(d instanceof ol.View2D);a.requestRenderFrame();if(goog.isDef(this.lastAngle_)){var e=b-this.lastAngle_;d.rotate(a,d.getRotation()-e)}this.lastAngle_=b;goog.isDef(this.lastMagnitude_)&&(b=this.lastMagnitude_*(d.getResolution()/c),d.zoomToResolution(a,b));this.lastMagnitude_=
|
||||
ol.interaction.DragRotateAndZoom.prototype.handleDrag=function(a){var b=a.browserEvent,a=a.map,c=a.getSize(),c=new goog.math.Vec2(b.offsetX-c.width/2,c.height/2-b.offsetY),b=Math.atan2(c.y,c.x),c=c.magnitude(),d=a.getView();goog.asserts.assert(d instanceof ol.View2D);a.requestRenderFrame();if(goog.isDef(this.lastAngle_)){var e=b-this.lastAngle_;d.rotate(a,d.getRotation()-e)}this.lastAngle_=b;goog.isDef(this.lastMagnitude_)&&(b=this.lastMagnitude_*(d.getResolution()/c),d.zoom(a,b));this.lastMagnitude_=
|
||||
c};ol.interaction.DragRotateAndZoom.prototype.handleDragStart=function(a){return this.condition_(a.browserEvent)?(this.lastMagnitude_=this.lastAngle_=void 0,!0):!1};ol.interaction.Keyboard=function(){ol.interaction.Interaction.call(this);this.charCodeCallbacks_={}};goog.inherits(ol.interaction.Keyboard,ol.interaction.Interaction);ol.interaction.Keyboard.prototype.addCallback=function(a,b){var c;for(c=0;c<a.length;++c)this.charCodeCallbacks_[a.charCodeAt(c)]=b};ol.interaction.Keyboard.prototype.handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=this.charCodeCallbacks_[a.browserEvent.charCode];b&&(b(),a.preventDefault())}};ol.parser={};ol.parser.XML=function(){this.regExes={trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g}};ol.parser.XML.prototype.readNode=function(a,b){b||(b={});var c=this.readers[a.namespaceURI]||this.readers[this.defaultNamespaceURI];if(c){var d=a.localName||a.nodeName.split(":").pop();(c=c[d]||c["*"])&&c.apply(this,[a,b])}return b};
|
||||
ol.parser.XML.prototype.readChildNodes=function(a,b){b||(b={});for(var c=a.childNodes,d,e=0,f=c.length;e<f;++e)d=c[e],1==d.nodeType&&this.readNode(d,b);return b};ol.parser.XML.prototype.getChildValue=function(a,b){var c=b||"";if(a)for(var d=a.firstChild;d;d=d.nextSibling)switch(d.nodeType){case 3:case 4:c+=d.nodeValue}return c};
|
||||
ol.parser.XML.prototype.getAttributeNodeNS=function(a,b,c){var d=null;if(a.getAttributeNodeNS)d=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,e,f,g=0,h=a.length;g<h;++g)if(e=a[g],e.namespaceURI==b&&(f=e.prefix?e.prefix+":"+c:c,f==e.nodeName)){d=e;break}return d};ol.parser.XML.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else if(a=this.getAttributeNodeNS(a,b,c))d=a.nodeValue;return d};goog.dom.xml={};goog.dom.xml.MAX_XML_SIZE_KB=2048;goog.dom.xml.MAX_ELEMENT_DEPTH=256;
|
||||
@@ -825,12 +832,12 @@ c){c.maxScale=parseFloat(this.getChildValue(a)).toPrecision(16)},MaxScaleDenomin
|
||||
c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:this.getChildValue(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.readers.sld={UserDefinedSymbolization:function(a,c){this.readers["http://www.opengis.net/wms"].UserDefinedSymbolization.apply(this,arguments);var d=a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.readers["http://www.opengis.net/wms"].DescribeLayer.apply(this,
|
||||
arguments)},GetLegendGraphic:function(a,c){this.readers["http://www.opengis.net/wms"].GetLegendGraphic.apply(this,arguments)}}};goog.inherits(ol.parser.ogc.WMSCapabilities_v1_3_0,ol.parser.ogc.WMSCapabilities_v1);ol.ENABLE_WMSCAPS_1_1_0=!0;ol.ENABLE_WMSCAPS_1_1_1=!0;ol.ENABLE_WMSCAPS_1_3_0=!0;ol.ENABLE_WMSCAPS_1_1_1_WMSC=!0;
|
||||
ol.parser.ogc.WMSCapabilities=function(a){a=a||{};a.defaultVersion="1.1.1";this.parsers={};ol.ENABLE_WMSCAPS_1_1_0&&(this.parsers.v1_1_0=ol.parser.ogc.WMSCapabilities_v1_1_0);ol.ENABLE_WMSCAPS_1_1_1&&(this.parsers.v1_1_1=ol.parser.ogc.WMSCapabilities_v1_1_1);ol.ENABLE_WMSCAPS_1_1_1_WMSC&&(this.parsers.v1_1_1_WMSC=ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC);ol.ENABLE_WMSCAPS_1_3_0&&(this.parsers.v1_3_0=ol.parser.ogc.WMSCapabilities_v1_3_0);ol.parser.ogc.Versioned.call(this,a)};
|
||||
goog.inherits(ol.parser.ogc.WMSCapabilities,ol.parser.ogc.Versioned);ol.parser.ogc.WMTSCapabilities_v1_0_0=function(){this.readers={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){this.readChildNodes(a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};this.readChildNodes(a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};this.readChildNodes(a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");this.readChildNodes(a,
|
||||
d);c.styles.push(d)},Format:function(a,c){c.formats.push(this.getChildValue(a))},TileMatrixSetLink:function(a,c){var d={};this.readChildNodes(a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};this.readChildNodes(a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=this.getChildValue(a)},TileMatrix:function(a,c){var d={supportedCRS:c.supportedCRS};this.readChildNodes(a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat(this.getChildValue(a))},
|
||||
TopLeftCorner:function(a,c){var d=this.getChildValue(a).split(" "),e=ol.projection.getFromCode(c.supportedCRS).getAxisOrientation();c.topLeftCorner=ol.Coordinate.fromProjectedArray([parseFloat(d[0]),parseFloat(d[1])],e)},TileWidth:function(a,c){c.tileWidth=parseInt(this.getChildValue(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt(this.getChildValue(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt(this.getChildValue(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt(this.getChildValue(a),
|
||||
10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=[]);c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink",
|
||||
"href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};this.readChildNodes(a,d);c.dimensions.push(d)},Default:function(a,c){c["default"]=this.getChildValue(a)},Value:function(a,c){c.values.push(this.getChildValue(a))}}};var a=new ol.parser.ogc.OWSCommon_v1_1_0;this.readers["http://www.opengis.net/ows/1.1"]=a.readers["http://www.opengis.net/ows/1.1"];
|
||||
ol.parser.XML.call(this)};goog.inherits(ol.parser.ogc.WMTSCapabilities_v1_0_0,ol.parser.XML);ol.parser.ogc.WMTSCapabilities_v1_0_0.prototype.read=function(a){"string"==typeof a&&(a=goog.dom.xml.loadXml(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b};ol.parser.ogc.WMTSCapabilities=function(a){a=a||{};a.defaultVersion="1.0.0";this.parsers={};this.parsers.v1_0_0=ol.parser.ogc.WMTSCapabilities_v1_0_0;ol.parser.ogc.Versioned.call(this,a)};goog.inherits(ol.parser.ogc.WMTSCapabilities,ol.parser.ogc.Versioned);/*
|
||||
goog.inherits(ol.parser.ogc.WMSCapabilities,ol.parser.ogc.Versioned);ol.parser.ogc.WMTSCapabilities_v1_0_0=function(){this.defaultNamespaceURI="http://www.opengis.net/wtms/1.0";this.errorProperty="serviceIdentification";this.readers={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){this.readChildNodes(a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};this.readChildNodes(a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};this.readChildNodes(a,d);c.layers.push(d)},
|
||||
Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");this.readChildNodes(a,d);c.styles.push(d)},Format:function(a,c){c.formats.push(this.getChildValue(a))},TileMatrixSetLink:function(a,c){var d={};this.readChildNodes(a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};this.readChildNodes(a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=this.getChildValue(a)},TileMatrix:function(a,c){var d={supportedCRS:c.supportedCRS};
|
||||
this.readChildNodes(a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat(this.getChildValue(a))},TopLeftCorner:function(a,c){var d=this.getChildValue(a).split(" "),e=ol.projection.getFromCode(c.supportedCRS).getAxisOrientation();c.topLeftCorner=ol.Coordinate.fromProjectedArray([parseFloat(d[0]),parseFloat(d[1])],e)},TileWidth:function(a,c){c.tileWidth=parseInt(this.getChildValue(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt(this.getChildValue(a),10)},MatrixWidth:function(a,
|
||||
c){c.matrixWidth=parseInt(this.getChildValue(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt(this.getChildValue(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=[]);c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},
|
||||
ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};this.readChildNodes(a,d);c.dimensions.push(d)},Default:function(a,c){c["default"]=this.getChildValue(a)},Value:function(a,c){c.values.push(this.getChildValue(a))}}};
|
||||
var a=new ol.parser.ogc.OWSCommon_v1_1_0;this.readers["http://www.opengis.net/ows/1.1"]=a.readers["http://www.opengis.net/ows/1.1"];ol.parser.XML.call(this)};goog.inherits(ol.parser.ogc.WMTSCapabilities_v1_0_0,ol.parser.XML);ol.parser.ogc.WMTSCapabilities_v1_0_0.prototype.read=function(a){"string"==typeof a&&(a=goog.dom.xml.loadXml(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.readNode(a,b);return b};ol.parser.ogc.WMTSCapabilities=function(a){a=a||{};a.defaultVersion="1.0.0";this.parsers={};this.parsers.v1_0_0=ol.parser.ogc.WMTSCapabilities_v1_0_0;ol.parser.ogc.Versioned.call(this,a)};goog.inherits(ol.parser.ogc.WMTSCapabilities,ol.parser.ogc.Versioned);/*
|
||||
Portions of this code are from MochiKit, received by
|
||||
The Closure Authors under the MIT license. All other code is Copyright
|
||||
2005-2009 The Closure Authors. All Rights Reserved.
|
||||
@@ -867,14 +874,14 @@ ol.source.DebugTileSource.prototype.getTile=function(a){var b=a.toString();if(th
|
||||
if(0>h||c<=h)return null;c=goog.math.modulo(b.x,c);return!d.getTileCoordExtent(new ol.TileCoord(b.z,c,b.y)).intersects(e)?null:new ol.TileCoord(b.z,c,h)},c):ol.TileUrlFunction.withTileCoordTransform(function(b){if(a.maxZoom<b.z)return null;var c=1<<b.z,d=-b.y-1;if(0>d||c<=d)return null;c=goog.math.modulo(b.x,c);return new ol.TileCoord(b.z,c,d)},c);ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:b,tileGrid:d,tileUrlFunction:c})};
|
||||
goog.inherits(ol.source.XYZ,ol.source.ImageTileSource);ol.source.MapQuestOSM=function(){var a=[new ol.Attribution('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ol.Attribution('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')];ol.source.XYZ.call(this,{attributions:a,opaque:!0,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})};
|
||||
goog.inherits(ol.source.MapQuestOSM,ol.source.XYZ);ol.source.MapQuestOpenAerial=function(){var a=[new ol.Attribution('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ol.Attribution("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")];ol.source.XYZ.call(this,{attributions:a,maxZoom:18,opaque:!0,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})};
|
||||
goog.inherits(ol.source.MapQuestOpenAerial,ol.source.XYZ);ol.source.OpenStreetMap=function(){var a=new ol.Attribution('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>');ol.source.XYZ.call(this,{attributions:[a],opaque:!0,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})};goog.inherits(ol.source.OpenStreetMap,ol.source.XYZ);ol.source.SingleImageWMS=function(a){var b=goog.isDef(a.url)?ol.ImageUrlFunction.createWMSParams(a.url,a.params,a.version):ol.ImageUrlFunction.nullImageUrlFunction;ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,imageUrlFunction:b});this.image_=null;this.ratio_=1.5};goog.inherits(ol.source.SingleImageWMS,ol.source.ImageSource);
|
||||
ol.source.SingleImageWMS.prototype.getImage=function(a,b,c){var b=this.findNearestResolution(b),d=this.image_;if(!goog.isNull(d)&&d.getResolution()==b&&d.getExtent().containsExtent(a))return d;a=new ol.Extent(a.minX,a.minY,a.maxX,a.maxY);a.scaleFromCenter(this.ratio_);var d=a.getWidth()/b,e=a.getHeight()/b,d=new ol.Size(d,e);return this.image_=this.createImage(a,b,d,c)};ol.source.StamenFlavor={TERRAIN_BACKGROUND:"background",TERRAIN_LABELS:"labels",TERRAIN_LINES:"lines",TONER_2010:"2010",TONER_2011:"2011",TONER_2011_LABELS:"2011-labels",TONER_2011_LINES:"2011-lines",TONER_2011_LITE:"2011-lite",TONER_BACKGROUND:"background",TONER_HYBRID:"hybrid",TONER_LABELS:"labels",TONER_LINES:"lines",TONER_LITE:"lite"};ol.source.StamenProvider={TERRAIN:"terrain",TONER:"toner",WATERCOLOR:"watercolor"};ol.source.StamenProviderConfig={};
|
||||
ol.source.StamenProviderConfig[ol.source.StamenProvider.TERRAIN]={type:"jpg",minZoom:4,maxZoom:18};ol.source.StamenProviderConfig[ol.source.StamenProvider.TONER]={type:"png",minZoom:0,maxZoom:20};ol.source.StamenProviderConfig[ol.source.StamenProvider.WATERCOLOR]={type:"jpg",minZoom:3,maxZoom:16};
|
||||
ol.source.Stamen=function(a){var b=new ol.Attribution('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.provider;goog.isDef(a.flavor)&&(c+="-"+a.flavor);a=ol.source.StamenProviderConfig[a.provider];ol.source.XYZ.call(this,{attributions:[b],maxZoom:a.maxZoom,opaque:!1,url:"http://{a-d}.tile.stamen.com/"+
|
||||
c+"/{z}/{x}/{y}."+a.type})};goog.inherits(ol.source.Stamen,ol.source.XYZ);ol.source.StaticImage=function(a){var b=ol.source.StaticImage.createImageFunction(a.url),c=a.imageExtent,d=a.imageSize,e=c.getHeight()/d.height,f=goog.isDef(a.projection)?a.projection:null;ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,imageUrlFunction:b,resolutions:[e]});this.image_=this.createImage(c,e,d,f)};goog.inherits(ol.source.StaticImage,ol.source.ImageSource);
|
||||
goog.inherits(ol.source.MapQuestOpenAerial,ol.source.XYZ);ol.source.OpenStreetMap=function(){var a=new ol.Attribution('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>');ol.source.XYZ.call(this,{attributions:[a],opaque:!0,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})};goog.inherits(ol.source.OpenStreetMap,ol.source.XYZ);ol.source.SingleImageWMS=function(a){var b=goog.isDef(a.url)?ol.ImageUrlFunction.createWMSParams(a.url,a.params):ol.ImageUrlFunction.nullImageUrlFunction;ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,imageUrlFunction:b});this.image_=null;this.ratio_=1.5};goog.inherits(ol.source.SingleImageWMS,ol.source.ImageSource);
|
||||
ol.source.SingleImageWMS.prototype.getImage=function(a,b,c){var b=this.findNearestResolution(b),d=this.image_;if(!goog.isNull(d)&&d.getResolution()==b&&d.getExtent().containsExtent(a))return d;a=new ol.Extent(a.minX,a.minY,a.maxX,a.maxY);a.scaleFromCenter(this.ratio_);var d=a.getWidth()/b,e=a.getHeight()/b,d=new ol.Size(d,e);return this.image_=this.createImage(a,b,d,c)};ol.source.StamenLayerConfig={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}};
|
||||
ol.source.StamenProviderConfig={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
|
||||
ol.source.Stamen=function(a){var b=new ol.Attribution('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.layer.indexOf("-"),c=-1==c?a.layer:a.layer.slice(0,c);goog.asserts.assert(c in ol.source.StamenProviderConfig);c=ol.source.StamenProviderConfig[c];goog.asserts.assert(a.layer in
|
||||
ol.source.StamenLayerConfig);var d=ol.source.StamenLayerConfig[a.layer],a=goog.isDef(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+d.extension;ol.source.XYZ.call(this,{attributions:[b],maxZoom:c.maxZoom,opaque:d.opaque,url:a})};goog.inherits(ol.source.Stamen,ol.source.XYZ);ol.source.StaticImage=function(a){var b=ol.source.StaticImage.createImageFunction(a.url),c=a.imageExtent,d=a.imageSize,e=c.getHeight()/d.height,f=goog.isDef(a.projection)?a.projection:null;ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,imageUrlFunction:b,resolutions:[e]});this.image_=this.createImage(c,e,d,f)};goog.inherits(ol.source.StaticImage,ol.source.ImageSource);
|
||||
ol.source.StaticImage.prototype.getImage=function(a){return a.intersects(this.image_.getExtent())?this.image_:null};ol.source.StaticImage.createImageFunction=function(a){return function(){return a}};ol.tilejson={};ol.tilejson.grids_=[];var grid=function(a){ol.tilejson.grids_.push(a)};goog.exportSymbol("grid",grid);ol.source.TileJSON=function(a){ol.source.ImageTileSource.call(this,{projection:ol.projection.getFromCode("EPSG:3857")});this.ready_=!1;this.deferred_=goog.net.jsloader.load(a.uri,{cleanupWhenDone:!0});this.deferred_.addCallback(this.handleTileJSONResponse,this)};goog.inherits(ol.source.TileJSON,ol.source.ImageTileSource);
|
||||
ol.source.TileJSON.prototype.handleTileJSONResponse=function(){var a=ol.tilejson.grids_.pop(),b=ol.projection.getFromCode("EPSG:4326"),c,d;goog.isDef(a.bounds)?(c=a.bounds,c=new ol.Extent(c[0],c[1],c[2],c[3]),d=c.transform(ol.projection.getTransform(b,this.getProjection())),this.setExtent(d)):d=c=null;goog.isDef(a.scheme);goog.isDef(a.scheme)&&goog.asserts.assert("xyz"==a.scheme);var e=a.minzoom||0;goog.asserts.assert(0===e);var f=a.maxzoom||22,g=new ol.tilegrid.XYZ({maxZoom:f});this.tileGrid=g;this.tileUrlFunction=
|
||||
ol.TileUrlFunction.withTileCoordTransform(function(a){if(a.z<e||f<a.z)return null;var b=1<<a.z,c=-a.y-1;if(0>c||b<=c)return null;b=goog.math.modulo(a.x,b);return!goog.isNull(d)&&!g.getTileCoordExtent(new ol.TileCoord(a.z,b,a.y)).intersects(d)?null:new ol.TileCoord(a.z,b,c)},ol.TileUrlFunction.createFromTemplates(a.tiles));if(goog.isDef(a.attribution)){b=goog.isNull(d)?b.getExtent():d;c={};var h,i;for(h=e;h<=f;++h)i=h.toString(),c[i]=[g.getTileRangeForExtentAndZ(b,h)];this.setAttributions([new ol.Attribution(a.attribution,
|
||||
c)])}this.ready_=!0;this.dispatchLoadEvent()};ol.source.TileJSON.prototype.isReady=function(){return this.ready_};ol.source.TiledWMS=function(a){goog.isDef(a.tileGrid);var b=a.version,c;a.urls?(c=goog.array.map(a.urls,function(c){return ol.TileUrlFunction.createWMSParams(c,a.params,b)}),c=ol.TileUrlFunction.createFromTileUrlFunctions(c)):c=a.url?ol.TileUrlFunction.createWMSParams(a.url,a.params,b):ol.TileUrlFunction.nullTileUrlFunction;var d=goog.isDef(a.transparent)?a.transparent:!0;ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,tileGrid:a.tileGrid,
|
||||
opaque:!d,projection:a.projection,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(function(b,c,d){if(c.getResolutions().length<=b.z)return null;var h=b.x,i=c.getTileCoordExtent(b),l=d.getExtent(),d=goog.isDef(a.extent)?a.extent:l;d.minX===l.minX&&d.maxX===l.maxX&&(i=Math.ceil((d.maxX-d.minX)/(i.maxX-i.minX)),h=goog.math.modulo(h,i),i=c.getTileCoordExtent(new ol.TileCoord(b.z,h,b.y)));return!i.intersects(d)?null:new ol.TileCoord(b.z,h,b.y)},c)})};goog.inherits(ol.source.TiledWMS,ol.source.ImageTileSource);ol.sphere.WGS84=new ol.Sphere(6378137);ol.AnchoredElementOptionsType={};ol.MapOptionsType={};ol.View2DOptionsType={};ol.animation.BounceOptionsType={};ol.animation.PanOptionsType={};ol.animation.RotateOptionsType={};ol.animation.ZoomOptionsType={};ol.control.AttributionOptionsType={};ol.control.MousePositionOptionsType={};ol.control.ScaleLineOptionsType={};ol.control.ZoomOptionsType={};ol.layer.LayerOptionsType={};ol.source.BingMapsOptionsType={};ol.source.DebugTileSourceOptionsType={};ol.source.SingleImageWMSOptionsType={};
|
||||
c)])}this.ready_=!0;this.dispatchLoadEvent()};ol.source.TileJSON.prototype.isReady=function(){return this.ready_};ol.source.TiledWMS=function(a){goog.isDef(a.tileGrid);var b;a.urls?(b=goog.array.map(a.urls,function(b){return ol.TileUrlFunction.createWMSParams(b,a.params)}),b=ol.TileUrlFunction.createFromTileUrlFunctions(b)):b=a.url?ol.TileUrlFunction.createWMSParams(a.url,a.params):ol.TileUrlFunction.nullTileUrlFunction;var c=goog.isDef(a.params.TRANSPARENT)?a.params.TRANSPARENT:!0,d=a.extent;ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:a.tileGrid,
|
||||
opaque:!c,projection:a.projection,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(function(a,b,c){if(b.getResolutions().length<=a.z)return null;var h=a.x,i=b.getTileCoordExtent(a),c=c.getExtent();d=goog.isDef(d)?d:c;d.minX===c.minX&&d.maxX===c.maxX&&(i=Math.ceil((d.maxX-d.minX)/(i.maxX-i.minX)),h=goog.math.modulo(h,i),i=b.getTileCoordExtent(new ol.TileCoord(a.z,h,a.y)));return!i.intersects(d)?null:new ol.TileCoord(a.z,h,a.y)},b)})};goog.inherits(ol.source.TiledWMS,ol.source.ImageTileSource);ol.sphere.WGS84=new ol.Sphere(6378137);ol.AnchoredElementOptionsType={};ol.MapOptionsType={};ol.View2DOptionsType={};ol.animation.BounceOptionsType={};ol.animation.PanOptionsType={};ol.animation.RotateOptionsType={};ol.animation.ZoomOptionsType={};ol.control.AttributionOptionsType={};ol.control.MousePositionOptionsType={};ol.control.ScaleLineOptionsType={};ol.control.ZoomOptionsType={};ol.layer.LayerOptionsType={};ol.source.BingMapsOptionsType={};ol.source.DebugTileSourceOptionsType={};ol.source.SingleImageWMSOptionsType={};
|
||||
ol.source.StamenOptionsType={};ol.source.StaticImageOptionsType={};ol.source.TiledWMSOptionsType={};ol.tilegrid.TileGridOptionsType={};ol.tilegrid.XYZOptionsType={};
|
||||
|
||||
+218
-119
@@ -1476,8 +1476,8 @@ goog.addDependency("build/src/internal/src/requireall.js", [], ["ol", "ol.Anchor
|
||||
"ol.interaction.TouchZoom", "ol.interaction.condition", "ol.layer.ImageLayer", "ol.layer.Layer", "ol.layer.LayerProperty", "ol.layer.LayerState", "ol.layer.TileLayer", "ol.math", "ol.parser.XML", "ol.parser.ogc.ExceptionReport", "ol.parser.ogc.OWSCommon_v1", "ol.parser.ogc.OWSCommon_v1_1_0", "ol.parser.ogc.Versioned", "ol.parser.ogc.WMSCapabilities", "ol.parser.ogc.WMSCapabilities_v1", "ol.parser.ogc.WMSCapabilities_v1_1", "ol.parser.ogc.WMSCapabilities_v1_1_0", "ol.parser.ogc.WMSCapabilities_v1_1_1",
|
||||
"ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC", "ol.parser.ogc.WMSCapabilities_v1_3_0", "ol.parser.ogc.WMTSCapabilities", "ol.parser.ogc.WMTSCapabilities_v1_0_0", "ol.projection", "ol.projection.EPSG3857", "ol.projection.EPSG4326", "ol.projection.addCommonProjections", "ol.renderer.Layer", "ol.renderer.Map", "ol.renderer.canvas.ImageLayer", "ol.renderer.canvas.Layer", "ol.renderer.canvas.Map", "ol.renderer.canvas.SUPPORTED", "ol.renderer.canvas.TileLayer", "ol.renderer.dom.ImageLayer", "ol.renderer.dom.Layer",
|
||||
"ol.renderer.dom.Map", "ol.renderer.dom.SUPPORTED", "ol.renderer.dom.TileLayer", "ol.renderer.webgl.FragmentShader", "ol.renderer.webgl.ImageLayer", "ol.renderer.webgl.Layer", "ol.renderer.webgl.Map", "ol.renderer.webgl.SUPPORTED", "ol.renderer.webgl.TileLayer", "ol.renderer.webgl.VertexShader", "ol.renderer.webgl.map.shader", "ol.renderer.webgl.tilelayerrenderer", "ol.renderer.webgl.tilelayerrenderer.shader.Fragment", "ol.renderer.webgl.tilelayerrenderer.shader.Vertex", "ol.source.BingMaps", "ol.source.DebugTileSource",
|
||||
"ol.source.ImageSource", "ol.source.ImageTileSource", "ol.source.ImageTileSourceOptions", "ol.source.MapQuestOSM", "ol.source.MapQuestOpenAerial", "ol.source.OpenStreetMap", "ol.source.SingleImageWMS", "ol.source.Source", "ol.source.Stamen", "ol.source.StamenFlavor", "ol.source.StamenProvider", "ol.source.StaticImage", "ol.source.TileJSON", "ol.source.TileSource", "ol.source.TileSourceOptions", "ol.source.TiledWMS", "ol.source.XYZ", "ol.source.XYZOptions", "ol.source.wms", "ol.sphere.NORMAL", "ol.sphere.WGS84",
|
||||
"ol.structs.LRUCache", "ol.tilegrid.TileGrid", "ol.tilegrid.XYZ", "ol.tilejson", "ol.vec.Mat4", "ol.webgl", "ol.webgl.WebGLContextEventType"]);
|
||||
"ol.source.ImageSource", "ol.source.ImageTileSource", "ol.source.ImageTileSourceOptions", "ol.source.MapQuestOSM", "ol.source.MapQuestOpenAerial", "ol.source.OpenStreetMap", "ol.source.SingleImageWMS", "ol.source.Source", "ol.source.Stamen", "ol.source.StaticImage", "ol.source.TileJSON", "ol.source.TileSource", "ol.source.TileSourceOptions", "ol.source.TiledWMS", "ol.source.XYZ", "ol.source.XYZOptions", "ol.source.wms", "ol.sphere.NORMAL", "ol.sphere.WGS84", "ol.structs.LRUCache", "ol.tilegrid.TileGrid",
|
||||
"ol.tilegrid.XYZ", "ol.tilejson", "ol.vec.Mat4", "ol.webgl", "ol.webgl.WebGLContextEventType"]);
|
||||
goog.addDependency("build/src/internal/src/types.js", ["ol.AnchoredElementOptionsType", "ol.MapOptionsType", "ol.View2DOptionsType", "ol.animation.BounceOptionsType", "ol.animation.PanOptionsType", "ol.animation.RotateOptionsType", "ol.animation.ZoomOptionsType", "ol.control.AttributionOptionsType", "ol.control.MousePositionOptionsType", "ol.control.ScaleLineOptionsType", "ol.control.ZoomOptionsType", "ol.layer.LayerOptionsType", "ol.source.BingMapsOptionsType", "ol.source.DebugTileSourceOptionsType",
|
||||
"ol.source.SingleImageWMSOptionsType", "ol.source.StamenOptionsType", "ol.source.StaticImageOptionsType", "ol.source.TiledWMSOptionsType", "ol.tilegrid.TileGridOptionsType", "ol.tilegrid.XYZOptionsType"], []);
|
||||
goog.addDependency("src/ol/anchoredelement.js", ["ol.AnchoredElement", "ol.AnchoredElementPositioning", "ol.AnchoredElementProperty"], ["goog.dom", "goog.events", "goog.style", "ol.Coordinate", "ol.Map", "ol.MapEventType", "ol.Object"]);
|
||||
@@ -1511,13 +1511,13 @@ goog.addDependency("src/ol/interaction/dblclickzoominteraction.js", ["ol.interac
|
||||
goog.addDependency("src/ol/interaction/draginteraction.js", ["ol.interaction.Drag"], ["goog.asserts", "goog.functions", "ol.Coordinate", "ol.MapBrowserEvent", "ol.MapBrowserEvent.EventType", "ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/dragpaninteraction.js", ["ol.interaction.DragPan"], ["goog.asserts", "ol.Coordinate", "ol.Kinetic", "ol.Pixel", "ol.PreRenderFunction", "ol.View2D", "ol.ViewHint", "ol.interaction.ConditionType", "ol.interaction.Drag"]);
|
||||
goog.addDependency("src/ol/interaction/dragrotateandzoominteraction.js", ["ol.interaction.DragRotateAndZoom"], ["goog.math.Vec2", "ol.View2D", "ol.interaction.ConditionType", "ol.interaction.Drag"]);
|
||||
goog.addDependency("src/ol/interaction/dragrotateinteraction.js", ["ol.interaction.DragRotate"], ["ol.View2D", "ol.interaction.ConditionType", "ol.interaction.Drag"]);
|
||||
goog.addDependency("src/ol/interaction/dragrotateinteraction.js", ["ol.interaction.DragRotate"], ["ol.View2D", "ol.ViewHint", "ol.interaction.ConditionType", "ol.interaction.Drag"]);
|
||||
goog.addDependency("src/ol/interaction/dragzoominteraction.js", ["ol.interaction.DragZoom"], ["ol.Extent", "ol.Size", "ol.View2D", "ol.control.DragBox", "ol.interaction.ConditionType", "ol.interaction.Drag"]);
|
||||
goog.addDependency("src/ol/interaction/interaction.js", ["ol.interaction.Interaction"], ["ol.MapBrowserEvent"]);
|
||||
goog.addDependency("src/ol/interaction/keyboardinteraction.js", ["ol.interaction.Keyboard"], ["ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/keyboardpaninteraction.js", ["ol.interaction.KeyboardPan"], ["goog.events.KeyCodes", "goog.events.KeyHandler.EventType", "ol.Coordinate", "ol.View2D", "ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/keyboardzoominteraction.js", ["ol.interaction.KeyboardZoom"], ["goog.events.KeyHandler.EventType", "ol.View2D", "ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/mousewheelzoominteraction.js", ["ol.interaction.MouseWheelZoom"], ["goog.events.MouseWheelEvent", "goog.events.MouseWheelHandler.EventType", "ol.View2D", "ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/mousewheelzoominteraction.js", ["ol.interaction.MouseWheelZoom"], ["goog.events.MouseWheelEvent", "goog.events.MouseWheelHandler.EventType", "goog.math", "ol.Coordinate", "ol.View2D", "ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/touchinteraction.js", ["ol.interaction.Touch"], ["goog.functions", "ol.MapBrowserEvent", "ol.MapBrowserEvent.EventType", "ol.Pixel", "ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/touchpaninteraction.js", ["ol.interaction.TouchPan"], ["goog.asserts", "ol.Coordinate", "ol.Kinetic", "ol.Pixel", "ol.PreRenderFunction", "ol.View", "ol.ViewHint", "ol.interaction.Touch"]);
|
||||
goog.addDependency("src/ol/interaction/touchrotateinteraction.js", ["ol.interaction.TouchRotate"], ["goog.asserts", "ol.View", "ol.ViewHint", "ol.interaction.Touch"]);
|
||||
@@ -1589,7 +1589,7 @@ goog.addDependency("src/ol/source/mapquestsource.js", ["ol.source.MapQuestOSM",
|
||||
goog.addDependency("src/ol/source/openstreetmapsource.js", ["ol.source.OpenStreetMap"], ["ol.Attribution", "ol.source.XYZ"]);
|
||||
goog.addDependency("src/ol/source/singleimagewmssource.js", ["ol.source.SingleImageWMS"], ["ol.Extent", "ol.Image", "ol.ImageUrlFunction", "ol.Size", "ol.source.ImageSource"]);
|
||||
goog.addDependency("src/ol/source/source.js", ["ol.source.Source"], ["goog.events.EventTarget", "goog.events.EventType", "goog.functions", "ol.Attribution", "ol.Extent", "ol.Projection"]);
|
||||
goog.addDependency("src/ol/source/stamensource.js", ["ol.source.Stamen", "ol.source.StamenFlavor", "ol.source.StamenProvider"], ["ol.Attribution", "ol.source.XYZ"]);
|
||||
goog.addDependency("src/ol/source/stamensource.js", ["ol.source.Stamen"], ["ol.Attribution", "ol.source.XYZ"]);
|
||||
goog.addDependency("src/ol/source/staticimagesource.js", ["ol.source.StaticImage"], ["ol.Image", "ol.ImageUrlFunctionType", "ol.source.ImageSource"]);
|
||||
goog.addDependency("src/ol/source/tiledwmssource.js", ["ol.source.TiledWMS"], ["goog.array", "ol.Extent", "ol.TileCoord", "ol.TileUrlFunction", "ol.source.ImageTileSource"]);
|
||||
goog.addDependency("src/ol/source/tilejsonsource.js", ["ol.source.TileJSON", "ol.tilejson"], ["goog.asserts", "goog.net.jsloader", "ol.Attribution", "ol.Extent", "ol.TileCoord", "ol.TileRange", "ol.TileUrlFunction", "ol.projection", "ol.source.ImageTileSource", "ol.tilegrid.XYZ"]);
|
||||
@@ -1611,7 +1611,7 @@ goog.addDependency("src/ol/tileurlfunction.js", ["ol.TileUrlFunction", "ol.TileU
|
||||
goog.addDependency("src/ol/transformfunction.js", ["ol.TransformFunction"], []);
|
||||
goog.addDependency("src/ol/vec/mat4.js", ["ol.vec.Mat4"], ["goog.vec.Mat4"]);
|
||||
goog.addDependency("src/ol/view.js", ["ol.View", "ol.ViewHint"], ["goog.array", "ol.IView", "ol.Object"]);
|
||||
goog.addDependency("src/ol/view2d.js", ["ol.View2D", "ol.View2DProperty"], ["ol.Constraints", "ol.Coordinate", "ol.Extent", "ol.IView2D", "ol.IView3D", "ol.Projection", "ol.ResolutionConstraint", "ol.RotationConstraint", "ol.Size", "ol.View", "ol.animation", "ol.projection"]);
|
||||
goog.addDependency("src/ol/view2d.js", ["ol.View2D", "ol.View2DProperty"], ["goog.fx.easing", "ol.Constraints", "ol.Coordinate", "ol.Extent", "ol.IView2D", "ol.IView3D", "ol.Projection", "ol.ResolutionConstraint", "ol.RotationConstraint", "ol.Size", "ol.View", "ol.animation", "ol.projection"]);
|
||||
goog.addDependency("src/ol/webgl/webgl.js", ["ol.webgl", "ol.webgl.WebGLContextEventType"], []);
|
||||
goog.provide("goog.debug.Error");
|
||||
goog.debug.Error = function(opt_msg) {
|
||||
@@ -11138,6 +11138,7 @@ goog.require("ol.TileCoord");
|
||||
ol.TileState = {IDLE:0, LOADING:1, LOADED:2, ERROR:3};
|
||||
ol.Tile = function(tileCoord) {
|
||||
goog.base(this);
|
||||
this.inQueue = 0;
|
||||
this.tileCoord = tileCoord;
|
||||
this.state = ol.TileState.IDLE
|
||||
};
|
||||
@@ -11181,6 +11182,8 @@ ol.TileQueue.prototype.dequeue_ = function() {
|
||||
}
|
||||
var tileKey = tile.getKey();
|
||||
delete this.queuedTileKeys_[tileKey];
|
||||
tile.inQueue--;
|
||||
goog.asserts.assert(tile.inQueue >= 0);
|
||||
return tile
|
||||
};
|
||||
ol.TileQueue.prototype.enqueue = function(tile, tileSourceKey, tileCenter) {
|
||||
@@ -11193,7 +11196,9 @@ ol.TileQueue.prototype.enqueue = function(tile, tileSourceKey, tileCenter) {
|
||||
if(priority != ol.TileQueue.DROP) {
|
||||
this.heap_.push([priority, tile, tileSourceKey, tileCenter]);
|
||||
this.queuedTileKeys_[tileKey] = true;
|
||||
this.siftDown_(0, this.heap_.length - 1)
|
||||
this.siftDown_(0, this.heap_.length - 1);
|
||||
tile.inQueue++;
|
||||
goog.asserts.assert(tile.inQueue > 0)
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -11263,7 +11268,12 @@ ol.TileQueue.prototype.reprioritize = function() {
|
||||
priority = this.tilePriorityFunction_(tile, tileSourceKey, tileCenter);
|
||||
if(priority == ol.TileQueue.DROP) {
|
||||
tileKey = tile.getKey();
|
||||
delete this.queuedTileKeys_[tileKey]
|
||||
delete this.queuedTileKeys_[tileKey];
|
||||
tile.inQueue--;
|
||||
goog.asserts.assert(tile.inQueue >= 0);
|
||||
if(tile.inQueue === 0) {
|
||||
goog.events.removeAll(tile)
|
||||
}
|
||||
}else {
|
||||
node[0] = priority;
|
||||
heap[n++] = node
|
||||
@@ -11362,7 +11372,7 @@ goog.require("ol.TransformFunction");
|
||||
goog.require("ol.sphere.NORMAL");
|
||||
ol.ENABLE_PROJ4JS = true;
|
||||
ol.HAVE_PROJ4JS = ol.ENABLE_PROJ4JS && typeof Proj4js == "object";
|
||||
ol.ProjectionUnits = {DEGREES:"degrees", METERS:"m"};
|
||||
ol.ProjectionUnits = {DEGREES:"degrees", FEET:"ft", METERS:"m"};
|
||||
ol.Projection = function(code, units, extent, opt_axisOrientation) {
|
||||
this.code_ = code;
|
||||
this.units_ = units;
|
||||
@@ -11407,7 +11417,11 @@ ol.Proj4jsProjection_.prototype.getPointResolution = function(resolution, point)
|
||||
vertices = this.toEPSG4326_(vertices, vertices, 2);
|
||||
var width = ol.sphere.NORMAL.haversineDistance(new ol.Coordinate(vertices[0], vertices[1]), new ol.Coordinate(vertices[2], vertices[3]));
|
||||
var height = ol.sphere.NORMAL.haversineDistance(new ol.Coordinate(vertices[4], vertices[5]), new ol.Coordinate(vertices[6], vertices[7]));
|
||||
return(width + height) / 2
|
||||
var pointResolution = (width + height) / 2;
|
||||
if(this.getUnits() == ol.ProjectionUnits.FEET) {
|
||||
pointResolution /= 0.3048
|
||||
}
|
||||
return pointResolution
|
||||
}
|
||||
};
|
||||
ol.Proj4jsProjection_.prototype.getProj4jsProj = function() {
|
||||
@@ -12315,6 +12329,20 @@ ol.RotationConstraint.createSnapToN = function(n) {
|
||||
}
|
||||
}
|
||||
};
|
||||
ol.RotationConstraint.createSnapToZero = function(opt_tolerance) {
|
||||
var tolerance = opt_tolerance || 0.1;
|
||||
return function(rotation, delta) {
|
||||
if(goog.isDef(rotation)) {
|
||||
if(Math.abs(rotation + delta) <= tolerance) {
|
||||
return 0
|
||||
}else {
|
||||
return rotation + delta
|
||||
}
|
||||
}else {
|
||||
return undefined
|
||||
}
|
||||
}
|
||||
};
|
||||
goog.provide("ol.Constraints");
|
||||
goog.require("ol.ResolutionConstraintType");
|
||||
goog.require("ol.RotationConstraintType");
|
||||
@@ -12324,6 +12352,7 @@ ol.Constraints = function(resolutionConstraint, rotationConstraint) {
|
||||
};
|
||||
goog.provide("ol.View2D");
|
||||
goog.provide("ol.View2DProperty");
|
||||
goog.require("goog.fx.easing");
|
||||
goog.require("ol.Constraints");
|
||||
goog.require("ol.Coordinate");
|
||||
goog.require("ol.Extent");
|
||||
@@ -12426,51 +12455,72 @@ ol.View2D.prototype.setRotation = function(rotation) {
|
||||
this.set(ol.View2DProperty.ROTATION, rotation)
|
||||
};
|
||||
goog.exportProperty(ol.View2D.prototype, "setRotation", ol.View2D.prototype.setRotation);
|
||||
ol.View2D.prototype.rotate = function(map, rotation, opt_anchor) {
|
||||
ol.View2D.prototype.rotate = function(map, rotation, opt_anchor, opt_duration) {
|
||||
rotation = this.constraints_.rotation(rotation, 0);
|
||||
if(goog.isDefAndNotNull(opt_anchor)) {
|
||||
var anchor = opt_anchor;
|
||||
var oldCenter = this.getCenter();
|
||||
var center = new ol.Coordinate(oldCenter.x - anchor.x, oldCenter.y - anchor.y);
|
||||
center.rotate(rotation - this.getRotation());
|
||||
center.x += anchor.x;
|
||||
center.y += anchor.y;
|
||||
map.withFrozenRendering(function() {
|
||||
this.setCenter(center);
|
||||
this.rotateWithoutConstraints(map, rotation, opt_anchor, opt_duration)
|
||||
};
|
||||
ol.View2D.prototype.rotateWithoutConstraints = function(map, rotation, opt_anchor, opt_duration) {
|
||||
if(goog.isDefAndNotNull(rotation)) {
|
||||
var currentRotation = this.getRotation();
|
||||
var currentCenter = this.getCenter();
|
||||
if(goog.isDef(currentRotation) && goog.isDef(currentCenter) && goog.isDef(opt_duration)) {
|
||||
map.requestRenderFrame();
|
||||
map.addPreRenderFunction(ol.animation.rotate({rotation:currentRotation, duration:opt_duration, easing:goog.fx.easing.easeOut}));
|
||||
if(goog.isDef(opt_anchor)) {
|
||||
map.addPreRenderFunction(ol.animation.pan({source:currentCenter, duration:opt_duration, easing:goog.fx.easing.easeOut}))
|
||||
}
|
||||
}
|
||||
if(goog.isDefAndNotNull(opt_anchor)) {
|
||||
var anchor = opt_anchor;
|
||||
var oldCenter = this.getCenter();
|
||||
var center = new ol.Coordinate(oldCenter.x - anchor.x, oldCenter.y - anchor.y);
|
||||
center.rotate(rotation - this.getRotation());
|
||||
center.x += anchor.x;
|
||||
center.y += anchor.y;
|
||||
map.withFrozenRendering(function() {
|
||||
this.setCenter(center);
|
||||
this.setRotation(rotation)
|
||||
}, this)
|
||||
}else {
|
||||
this.setRotation(rotation)
|
||||
}, this)
|
||||
}else {
|
||||
this.setRotation(rotation)
|
||||
}
|
||||
}
|
||||
};
|
||||
ol.View2D.prototype.zoom_ = function(map, resolution, opt_anchor) {
|
||||
if(goog.isDefAndNotNull(resolution) && goog.isDefAndNotNull(opt_anchor)) {
|
||||
var anchor = opt_anchor;
|
||||
var oldCenter = this.getCenter();
|
||||
var oldResolution = this.getResolution();
|
||||
var x = anchor.x - resolution * (anchor.x - oldCenter.x) / oldResolution;
|
||||
var y = anchor.y - resolution * (anchor.y - oldCenter.y) / oldResolution;
|
||||
var center = new ol.Coordinate(x, y);
|
||||
map.withFrozenRendering(function() {
|
||||
this.setCenter(center);
|
||||
this.setResolution(resolution)
|
||||
}, this)
|
||||
}else {
|
||||
this.setResolution(resolution)
|
||||
}
|
||||
};
|
||||
ol.View2D.prototype.zoom = function(map, delta, opt_anchor, opt_duration) {
|
||||
var currentResolution = this.getResolution();
|
||||
if(goog.isDef(currentResolution) && goog.isDef(opt_duration)) {
|
||||
map.requestRenderFrame();
|
||||
map.addPreRenderFunction(ol.animation.zoom({resolution:currentResolution, duration:opt_duration}))
|
||||
}
|
||||
var resolution = this.constraints_.resolution(currentResolution, delta);
|
||||
this.zoom_(map, resolution, opt_anchor)
|
||||
};
|
||||
ol.View2D.prototype.zoomToResolution = function(map, resolution, opt_anchor) {
|
||||
ol.View2D.prototype.zoom = function(map, resolution, opt_anchor, opt_duration) {
|
||||
resolution = this.constraints_.resolution(resolution, 0);
|
||||
this.zoom_(map, resolution, opt_anchor)
|
||||
this.zoomWithoutConstraints(map, resolution, opt_anchor, opt_duration)
|
||||
};
|
||||
ol.View2D.prototype.zoomByDelta = function(map, delta, opt_anchor, opt_duration) {
|
||||
var currentResolution = this.getResolution();
|
||||
var resolution = this.constraints_.resolution(currentResolution, delta);
|
||||
this.zoomWithoutConstraints(map, resolution, opt_anchor, opt_duration)
|
||||
};
|
||||
ol.View2D.prototype.zoomWithoutConstraints = function(map, resolution, opt_anchor, opt_duration) {
|
||||
if(goog.isDefAndNotNull(resolution)) {
|
||||
var currentResolution = this.getResolution();
|
||||
var currentCenter = this.getCenter();
|
||||
if(goog.isDef(currentResolution) && goog.isDef(currentCenter) && goog.isDef(opt_duration)) {
|
||||
map.requestRenderFrame();
|
||||
map.addPreRenderFunction(ol.animation.zoom({resolution:currentResolution, duration:opt_duration, easing:goog.fx.easing.easeOut}));
|
||||
if(goog.isDef(opt_anchor)) {
|
||||
map.addPreRenderFunction(ol.animation.pan({source:currentCenter, duration:opt_duration, easing:goog.fx.easing.easeOut}))
|
||||
}
|
||||
}
|
||||
if(goog.isDefAndNotNull(opt_anchor)) {
|
||||
var anchor = opt_anchor;
|
||||
var oldCenter = this.getCenter();
|
||||
var oldResolution = this.getResolution();
|
||||
var x = anchor.x - resolution * (anchor.x - oldCenter.x) / oldResolution;
|
||||
var y = anchor.y - resolution * (anchor.y - oldCenter.y) / oldResolution;
|
||||
var center = new ol.Coordinate(x, y);
|
||||
map.withFrozenRendering(function() {
|
||||
this.setCenter(center);
|
||||
this.setResolution(resolution)
|
||||
}, this)
|
||||
}else {
|
||||
this.setResolution(resolution)
|
||||
}
|
||||
}
|
||||
};
|
||||
ol.View2D.createConstraints_ = function(view2DOptions) {
|
||||
var resolutionConstraint;
|
||||
@@ -12485,13 +12535,12 @@ ol.View2D.createConstraints_ = function(view2DOptions) {
|
||||
}else {
|
||||
var projectionExtent = ol.projection.createProjection(view2DOptions.projection, "EPSG:3857").getExtent();
|
||||
maxResolution = Math.max(projectionExtent.maxX - projectionExtent.minX, projectionExtent.maxY - projectionExtent.minY) / ol.DEFAULT_TILE_SIZE;
|
||||
var numSteps = 4;
|
||||
numZoomLevels = 29 * numSteps;
|
||||
zoomFactor = Math.exp(Math.log(2) / numSteps)
|
||||
numZoomLevels = 29;
|
||||
zoomFactor = 2
|
||||
}
|
||||
resolutionConstraint = ol.ResolutionConstraint.createSnapToPower(zoomFactor, maxResolution, numZoomLevels - 1)
|
||||
}
|
||||
var rotationConstraint = ol.RotationConstraint.none;
|
||||
var rotationConstraint = ol.RotationConstraint.createSnapToZero();
|
||||
return new ol.Constraints(resolutionConstraint, rotationConstraint)
|
||||
};
|
||||
goog.provide("ol.control.Control");
|
||||
@@ -12705,21 +12754,27 @@ ol.control.ScaleLine.prototype.updateElement_ = function(frameState) {
|
||||
if(projectionUnits == ol.ProjectionUnits.DEGREES && (this.units_ == ol.control.ScaleLineUnits.METRIC || this.units_ == ol.control.ScaleLineUnits.IMPERIAL)) {
|
||||
this.toEPSG4326_ = null;
|
||||
cosLatitude = Math.cos(goog.math.toRadians(center.y));
|
||||
pointResolution *= Math.PI * cosLatitude * ol.sphere.NORMAL.radius / 180
|
||||
pointResolution *= Math.PI * cosLatitude * ol.sphere.NORMAL.radius / 180;
|
||||
projectionUnits = ol.ProjectionUnits.METERS
|
||||
}else {
|
||||
if(projectionUnits == ol.ProjectionUnits.METERS && this.units_ == ol.control.ScaleLineUnits.DEGREES) {
|
||||
if((projectionUnits == ol.ProjectionUnits.FEET || projectionUnits == ol.ProjectionUnits.METERS) && this.units_ == ol.control.ScaleLineUnits.DEGREES) {
|
||||
if(goog.isNull(this.toEPSG4326_)) {
|
||||
this.toEPSG4326_ = ol.projection.getTransform(projection, ol.projection.getFromCode("EPSG:4326"))
|
||||
}
|
||||
var vertex = [center.x, center.y];
|
||||
vertex = this.toEPSG4326_(vertex, vertex, 2);
|
||||
cosLatitude = Math.cos(goog.math.toRadians(vertex[1]));
|
||||
pointResolution *= 180 / (Math.PI * cosLatitude * ol.sphere.NORMAL.radius)
|
||||
var radius = ol.sphere.NORMAL.radius;
|
||||
if(projectionUnits == ol.ProjectionUnits.FEET) {
|
||||
radius /= 0.3048
|
||||
}
|
||||
pointResolution *= 180 / (Math.PI * cosLatitude * radius);
|
||||
projectionUnits = ol.ProjectionUnits.DEGREES
|
||||
}else {
|
||||
this.toEPSG4326_ = null;
|
||||
goog.asserts.assert((this.units_ == ol.control.ScaleLineUnits.METRIC || this.units_ == ol.control.ScaleLineUnits.IMPERIAL) && projectionUnits == ol.ProjectionUnits.METERS || this.units_ == ol.control.ScaleLineUnits.DEGREES && projectionUnits == ol.ProjectionUnits.DEGREES)
|
||||
this.toEPSG4326_ = null
|
||||
}
|
||||
}
|
||||
goog.asserts.assert((this.units_ == ol.control.ScaleLineUnits.METRIC || this.units_ == ol.control.ScaleLineUnits.IMPERIAL) && projectionUnits == ol.ProjectionUnits.METERS || this.units_ == ol.control.ScaleLineUnits.DEGREES && projectionUnits == ol.ProjectionUnits.DEGREES);
|
||||
var nominalCount = this.minWidth_ * pointResolution;
|
||||
var suffix = "";
|
||||
if(this.units_ == ol.control.ScaleLineUnits.DEGREES) {
|
||||
@@ -12831,13 +12886,13 @@ ol.control.Zoom.prototype.handleIn_ = function(browserEvent) {
|
||||
browserEvent.preventDefault();
|
||||
var map = this.getMap();
|
||||
map.requestRenderFrame();
|
||||
map.getView().zoom(map, this.delta_, undefined, ol.control.ZOOM_DURATION)
|
||||
map.getView().zoomByDelta(map, this.delta_, undefined, ol.control.ZOOM_DURATION)
|
||||
};
|
||||
ol.control.Zoom.prototype.handleOut_ = function(browserEvent) {
|
||||
browserEvent.preventDefault();
|
||||
var map = this.getMap();
|
||||
map.requestRenderFrame();
|
||||
map.getView().zoom(map, -this.delta_, undefined, ol.control.ZOOM_DURATION)
|
||||
map.getView().zoomByDelta(map, -this.delta_, undefined, ol.control.ZOOM_DURATION)
|
||||
};
|
||||
goog.provide("ol.interaction.Interaction");
|
||||
goog.require("ol.MapBrowserEvent");
|
||||
@@ -12849,6 +12904,7 @@ goog.require("ol.MapBrowserEvent");
|
||||
goog.require("ol.MapBrowserEvent.EventType");
|
||||
goog.require("ol.View2D");
|
||||
goog.require("ol.interaction.Interaction");
|
||||
ol.interaction.DBLCLICKZOOM_ANIMATION_DURATION = 250;
|
||||
ol.interaction.DblClickZoom = function(delta) {
|
||||
this.delta_ = delta;
|
||||
goog.base(this)
|
||||
@@ -12862,7 +12918,7 @@ ol.interaction.DblClickZoom.prototype.handleMapBrowserEvent = function(mapBrowse
|
||||
var delta = mapBrowserEvent.browserEvent.shiftKey ? -this.delta_ : this.delta_;
|
||||
var view = map.getView();
|
||||
goog.asserts.assert(view instanceof ol.View2D);
|
||||
view.zoom(map, delta, anchor);
|
||||
view.zoomByDelta(map, delta, anchor, ol.interaction.DBLCLICKZOOM_ANIMATION_DURATION);
|
||||
mapBrowserEvent.preventDefault();
|
||||
browserEvent.preventDefault()
|
||||
}
|
||||
@@ -13026,8 +13082,10 @@ ol.interaction.DragPan.prototype.handleDown = function(mapBrowserEvent) {
|
||||
};
|
||||
goog.provide("ol.interaction.DragRotate");
|
||||
goog.require("ol.View2D");
|
||||
goog.require("ol.ViewHint");
|
||||
goog.require("ol.interaction.ConditionType");
|
||||
goog.require("ol.interaction.Drag");
|
||||
ol.interaction.DRAGROTATE_ANIMATION_DURATION = 250;
|
||||
ol.interaction.DragRotate = function(condition) {
|
||||
goog.base(this);
|
||||
this.condition_ = condition;
|
||||
@@ -13045,10 +13103,18 @@ ol.interaction.DragRotate.prototype.handleDrag = function(mapBrowserEvent) {
|
||||
var view = map.getView();
|
||||
goog.asserts.assert(view instanceof ol.View2D);
|
||||
map.requestRenderFrame();
|
||||
view.rotate(map, view.getRotation() - delta)
|
||||
view.rotateWithoutConstraints(map, view.getRotation() - delta)
|
||||
}
|
||||
this.lastAngle_ = theta
|
||||
};
|
||||
ol.interaction.DragRotate.prototype.handleDragEnd = function(mapBrowserEvent) {
|
||||
var browserEvent = mapBrowserEvent.browserEvent;
|
||||
var map = mapBrowserEvent.map;
|
||||
var view = map.getView();
|
||||
goog.asserts.assert(view instanceof ol.View2D);
|
||||
view.rotate(map, view.getRotation(), undefined, ol.interaction.DRAGROTATE_ANIMATION_DURATION);
|
||||
view.setHint(ol.ViewHint.INTERACTING, -1)
|
||||
};
|
||||
ol.interaction.DragRotate.prototype.handleDragStart = function(mapBrowserEvent) {
|
||||
var browserEvent = mapBrowserEvent.browserEvent;
|
||||
if(browserEvent.isMouseActionButton() && this.condition_(browserEvent)) {
|
||||
@@ -13057,6 +13123,7 @@ ol.interaction.DragRotate.prototype.handleDragStart = function(mapBrowserEvent)
|
||||
goog.asserts.assert(view instanceof ol.View2D);
|
||||
map.requestRenderFrame();
|
||||
this.lastAngle_ = undefined;
|
||||
view.setHint(ol.ViewHint.INTERACTING, 1);
|
||||
return true
|
||||
}else {
|
||||
return false
|
||||
@@ -13207,7 +13274,7 @@ ol.interaction.KeyboardZoom.prototype.handleMapBrowserEvent = function(mapBrowse
|
||||
map.requestRenderFrame();
|
||||
var view = map.getView();
|
||||
goog.asserts.assert(view instanceof ol.View2D);
|
||||
view.zoom(map, delta, undefined, ol.interaction.KEYBOARD_ZOOM_DURATION);
|
||||
view.zoomByDelta(map, delta, undefined, ol.interaction.KEYBOARD_ZOOM_DURATION);
|
||||
keyEvent.preventDefault();
|
||||
mapBrowserEvent.preventDefault()
|
||||
}
|
||||
@@ -13216,11 +13283,19 @@ ol.interaction.KeyboardZoom.prototype.handleMapBrowserEvent = function(mapBrowse
|
||||
goog.provide("ol.interaction.MouseWheelZoom");
|
||||
goog.require("goog.events.MouseWheelEvent");
|
||||
goog.require("goog.events.MouseWheelHandler.EventType");
|
||||
goog.require("goog.math");
|
||||
goog.require("ol.Coordinate");
|
||||
goog.require("ol.View2D");
|
||||
goog.require("ol.interaction.Interaction");
|
||||
ol.interaction.MouseWheelZoom = function(delta) {
|
||||
this.delta_ = delta;
|
||||
goog.base(this)
|
||||
ol.interaction.MOUSEWHEELZOOM_ANIMATION_DURATION = 250;
|
||||
ol.interaction.MOUSEWHEELZOOM_MAXDELTA = 1;
|
||||
ol.interaction.MOUSEWHEELZOOM_TIMEOUT_DURATION = 80;
|
||||
ol.interaction.MouseWheelZoom = function() {
|
||||
goog.base(this);
|
||||
this.delta_ = 0;
|
||||
this.lastAnchor_ = null;
|
||||
this.startTime_ = undefined;
|
||||
this.timeoutId_ = undefined
|
||||
};
|
||||
goog.inherits(ol.interaction.MouseWheelZoom, ol.interaction.Interaction);
|
||||
ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent = function(mapBrowserEvent) {
|
||||
@@ -13228,16 +13303,31 @@ ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent = function(mapBrow
|
||||
var map = mapBrowserEvent.map;
|
||||
var mouseWheelEvent = mapBrowserEvent.browserEvent;
|
||||
goog.asserts.assert(mouseWheelEvent instanceof goog.events.MouseWheelEvent);
|
||||
var anchor = mapBrowserEvent.getCoordinate();
|
||||
var delta = mouseWheelEvent.deltaY < 0 ? this.delta_ : -this.delta_;
|
||||
var view = map.getView();
|
||||
goog.asserts.assert(view instanceof ol.View2D);
|
||||
map.requestRenderFrame();
|
||||
view.zoom(map, delta, anchor);
|
||||
this.lastAnchor_ = mapBrowserEvent.getCoordinate();
|
||||
this.delta_ += mouseWheelEvent.deltaY / 3;
|
||||
if(!goog.isDef(this.startTime_)) {
|
||||
this.startTime_ = goog.now()
|
||||
}
|
||||
var duration = ol.interaction.MOUSEWHEELZOOM_TIMEOUT_DURATION;
|
||||
var timeLeft = Math.max(duration - (goog.now() - this.startTime_), 0);
|
||||
goog.global.clearTimeout(this.timeoutId_);
|
||||
this.timeoutId_ = goog.global.setTimeout(goog.bind(this.doZoom_, this, map), timeLeft);
|
||||
mapBrowserEvent.preventDefault();
|
||||
mouseWheelEvent.preventDefault()
|
||||
}
|
||||
};
|
||||
ol.interaction.MouseWheelZoom.prototype.doZoom_ = function(map) {
|
||||
var maxDelta = ol.interaction.MOUSEWHEELZOOM_MAXDELTA;
|
||||
var delta = goog.math.clamp(this.delta_, -maxDelta, maxDelta);
|
||||
var view = map.getView();
|
||||
goog.asserts.assert(view instanceof ol.View2D);
|
||||
map.requestRenderFrame();
|
||||
view.zoomByDelta(map, -delta, this.lastAnchor_, ol.interaction.MOUSEWHEELZOOM_ANIMATION_DURATION);
|
||||
this.delta_ = 0;
|
||||
this.lastAnchor_ = null;
|
||||
this.startTime_ = undefined;
|
||||
this.timeoutId_ = undefined
|
||||
};
|
||||
goog.provide("ol.interaction.Touch");
|
||||
goog.require("goog.functions");
|
||||
goog.require("ol.MapBrowserEvent");
|
||||
@@ -13370,6 +13460,7 @@ goog.require("goog.asserts");
|
||||
goog.require("ol.View");
|
||||
goog.require("ol.ViewHint");
|
||||
goog.require("ol.interaction.Touch");
|
||||
ol.interaction.TOUCHROTATE_ANIMATION_DURATION = 250;
|
||||
ol.interaction.TouchRotate = function(opt_threshold) {
|
||||
goog.base(this);
|
||||
this.lastAngle_;
|
||||
@@ -13403,13 +13494,16 @@ ol.interaction.TouchRotate.prototype.handleTouchMove = function(mapBrowserEvent)
|
||||
centroid.y -= viewportPosition.y;
|
||||
var anchor = map.getCoordinateFromPixel(centroid);
|
||||
if(this.rotating_) {
|
||||
view.rotate(map, view.getRotation() + rotationDelta, anchor)
|
||||
view.rotateWithoutConstraints(map, view.getRotation() + rotationDelta, anchor)
|
||||
}
|
||||
};
|
||||
ol.interaction.TouchRotate.prototype.handleTouchEnd = function(mapBrowserEvent) {
|
||||
if(this.targetTouches.length < 2) {
|
||||
var map = mapBrowserEvent.map;
|
||||
var view = map.getView();
|
||||
if(this.rotating_) {
|
||||
view.rotate(map, view.getRotation(), undefined, ol.interaction.TOUCHROTATE_ANIMATION_DURATION)
|
||||
}
|
||||
view.setHint(ol.ViewHint.INTERACTING, -1);
|
||||
return false
|
||||
}else {
|
||||
@@ -13433,6 +13527,7 @@ goog.require("goog.asserts");
|
||||
goog.require("ol.View");
|
||||
goog.require("ol.ViewHint");
|
||||
goog.require("ol.interaction.Touch");
|
||||
ol.interaction.TOUCHZOOM_ANIMATION_DURATION = 250;
|
||||
ol.interaction.TouchZoom = function() {
|
||||
goog.base(this);
|
||||
this.lastDistance_
|
||||
@@ -13457,13 +13552,13 @@ ol.interaction.TouchZoom.prototype.handleTouchMove = function(mapBrowserEvent) {
|
||||
centroid.x -= viewportPosition.x;
|
||||
centroid.y -= viewportPosition.y;
|
||||
var anchor = map.getCoordinateFromPixel(centroid);
|
||||
view.zoom_(map, view.getResolution() * scaleDelta, anchor)
|
||||
view.zoomWithoutConstraints(map, view.getResolution() * scaleDelta, anchor)
|
||||
};
|
||||
ol.interaction.TouchZoom.prototype.handleTouchEnd = function(mapBrowserEvent) {
|
||||
if(this.targetTouches.length < 2) {
|
||||
var map = mapBrowserEvent.map;
|
||||
var view = map.getView();
|
||||
view.zoomToResolution(map, view.getResolution());
|
||||
view.zoom(map, view.getResolution(), undefined, ol.interaction.TOUCHZOOM_ANIMATION_DURATION);
|
||||
view.setHint(ol.ViewHint.INTERACTING, -1);
|
||||
return false
|
||||
}else {
|
||||
@@ -13916,6 +14011,7 @@ ol.renderer.Layer = function(mapRenderer, layer) {
|
||||
goog.base(this);
|
||||
this.mapRenderer_ = mapRenderer;
|
||||
this.layer_ = layer;
|
||||
this.observedTileKeys = {};
|
||||
goog.events.listen(this.layer_, ol.Object.getChangedEventType(ol.layer.LayerProperty.BRIGHTNESS), this.handleLayerBrightnessChange, false, this);
|
||||
goog.events.listen(this.layer_, ol.Object.getChangedEventType(ol.layer.LayerProperty.CONTRAST), this.handleLayerContrastChange, false, this);
|
||||
goog.events.listen(this.layer_, ol.Object.getChangedEventType(ol.layer.LayerProperty.HUE), this.handleLayerHueChange, false, this);
|
||||
@@ -13956,11 +14052,19 @@ ol.renderer.Layer.prototype.handleLayerSaturationChange = goog.nullFunction;
|
||||
ol.renderer.Layer.prototype.handleLayerVisibleChange = function() {
|
||||
this.dispatchChangeEvent()
|
||||
};
|
||||
ol.renderer.Layer.prototype.handleTileChange = function(event) {
|
||||
ol.renderer.Layer.prototype.handleTileChange_ = function(event) {
|
||||
var tile = event.target;
|
||||
if(tile.getState() === ol.TileState.LOADED) {
|
||||
this.getMap().requestRenderFrame()
|
||||
}
|
||||
delete this.observedTileKeys[tile.getKey()]
|
||||
};
|
||||
ol.renderer.Layer.prototype.listenToTileChange = function(tile) {
|
||||
var tileKey = tile.getKey();
|
||||
if(!(tileKey in this.observedTileKeys)) {
|
||||
this.observedTileKeys[tileKey] = true;
|
||||
goog.events.listenOnce(tile, goog.events.EventType.CHANGE, this.handleTileChange_, false, this)
|
||||
}
|
||||
};
|
||||
ol.renderer.Layer.prototype.renderFrame = goog.abstractMethod;
|
||||
ol.renderer.Layer.prototype.scheduleExpireCache = function(frameState, tileSource) {
|
||||
@@ -14116,16 +14220,16 @@ ol.renderer.Map.prototype.setLayerRenderer = function(layer, layerRenderer) {
|
||||
this.layerRendererChangeListenKeys_[layerKey] = goog.events.listen(layerRenderer, goog.events.EventType.CHANGE, this.handleLayerRendererChange, false, this)
|
||||
};
|
||||
goog.provide("ol.source.wms");
|
||||
ol.source.wms.getUrl = function(baseUrl, params, extent, size, projection, opt_version) {
|
||||
var version = goog.isDef(opt_version) ? opt_version : "1.3.0";
|
||||
var wms13 = version >= "1.3";
|
||||
var axisOrientation = projection.getAxisOrientation();
|
||||
var bboxValues = wms13 && axisOrientation.substr(0, 2) == "ne" ? [extent.minY, extent.minX, extent.maxY, extent.maxX] : [extent.minX, extent.minY, extent.maxX, extent.maxY];
|
||||
var baseParams = {"SERVICE":"WMS", "VERSION":version, "REQUEST":"GetMap", "FORMAT":"image/png", "TRANSPARENT":true, "WIDTH":size.width, "HEIGHT":size.height, "BBOX":bboxValues.join(",")};
|
||||
ol.source.wms.getUrl = function(baseUrl, params, extent, size, projection) {
|
||||
var baseParams = {"SERVICE":"WMS", "VERSION":"1.3.0", "REQUEST":"GetMap", "FORMAT":"image/png", "TRANSPARENT":true, "WIDTH":size.width, "HEIGHT":size.height};
|
||||
goog.object.extend(baseParams, params);
|
||||
baseParams[wms13 ? "CRS" : "SRS"] = projection.getCode();
|
||||
var stylesParam = "STYLES";
|
||||
baseParams[stylesParam] = params[stylesParam] || new String("");
|
||||
var wms13 = baseParams["VERSION"] > "1.3";
|
||||
baseParams[wms13 ? "CRS" : "SRS"] = projection.getCode();
|
||||
var axisOrientation = projection.getAxisOrientation();
|
||||
var bboxValues = wms13 && axisOrientation.substr(0, 2) == "ne" ? [extent.minY, extent.minX, extent.maxY, extent.maxX] : [extent.minX, extent.minY, extent.maxX, extent.maxY];
|
||||
baseParams["BBOX"] = bboxValues.join(",");
|
||||
return goog.uri.utils.appendParamsFromMap(baseUrl, baseParams)
|
||||
};
|
||||
goog.provide("ol.ImageUrlFunction");
|
||||
@@ -14134,9 +14238,9 @@ goog.require("ol.Extent");
|
||||
goog.require("ol.Size");
|
||||
goog.require("ol.source.wms");
|
||||
ol.ImageUrlFunctionType;
|
||||
ol.ImageUrlFunction.createWMSParams = function(baseUrl, params, opt_version) {
|
||||
ol.ImageUrlFunction.createWMSParams = function(baseUrl, params) {
|
||||
return function(extent, size, projection) {
|
||||
return ol.source.wms.getUrl(baseUrl, params, extent, size, projection, opt_version)
|
||||
return ol.source.wms.getUrl(baseUrl, params, extent, size, projection)
|
||||
}
|
||||
};
|
||||
ol.ImageUrlFunction.nullImageUrlFunction = function(extent, size) {
|
||||
@@ -14351,7 +14455,7 @@ ol.renderer.canvas.TileLayer.prototype.renderFrame = function(frameState, layerS
|
||||
}
|
||||
tileState = tile.getState();
|
||||
if(tileState == ol.TileState.IDLE) {
|
||||
goog.events.listenOnce(tile, goog.events.EventType.CHANGE, this.handleTileChange, false, this);
|
||||
this.listenToTileChange(tile);
|
||||
this.updateWantedTiles(frameState.wantedTiles, tileSource, tileCoord);
|
||||
tileCenter = tileGrid.getTileCoordCenter(tileCoord);
|
||||
frameState.tileQueue.enqueue(tile, tileSourceKey, tileCenter)
|
||||
@@ -14732,7 +14836,7 @@ ol.renderer.dom.TileLayer.prototype.renderFrame = function(frameState, layerStat
|
||||
}
|
||||
tileState = tile.getState();
|
||||
if(tileState == ol.TileState.IDLE) {
|
||||
goog.events.listenOnce(tile, goog.events.EventType.CHANGE, this.handleTileChange, false, this);
|
||||
this.listenToTileChange(tile);
|
||||
this.updateWantedTiles(frameState.wantedTiles, tileSource, tileCoord);
|
||||
tileCenter = tileGrid.getTileCoordCenter(tileCoord);
|
||||
frameState.tileQueue.enqueue(tile, tileSourceKey, tileCenter)
|
||||
@@ -15848,7 +15952,7 @@ ol.renderer.webgl.TileLayer.prototype.renderFrame = function(frameState, layerSt
|
||||
}
|
||||
tileState = tile.getState();
|
||||
if(tileState == ol.TileState.IDLE) {
|
||||
goog.events.listenOnce(tile, goog.events.EventType.CHANGE, this.handleTileChange, false, this);
|
||||
this.listenToTileChange(tile);
|
||||
this.updateWantedTiles(frameState.wantedTiles, tileSource, tileCoord);
|
||||
tileCenter = tileGrid.getTileCoordCenter(tileCoord);
|
||||
frameState.tileQueue.enqueue(tile, tileSourceKey, tileCenter)
|
||||
@@ -16819,7 +16923,7 @@ ol.Map.createControls_ = function(mapOptions) {
|
||||
}
|
||||
var zoomControl = goog.isDef(mapOptions.zoomControl) ? mapOptions.zoomControl : true;
|
||||
if(zoomControl) {
|
||||
var zoomDelta = goog.isDef(mapOptions.zoomDelta) ? mapOptions.zoomDelta : 4;
|
||||
var zoomDelta = goog.isDef(mapOptions.zoomDelta) ? mapOptions.zoomDelta : 1;
|
||||
controls.push(new ol.control.Zoom({delta:zoomDelta}))
|
||||
}
|
||||
return controls
|
||||
@@ -16832,7 +16936,7 @@ ol.Map.createInteractions_ = function(mapOptions) {
|
||||
}
|
||||
var doubleClickZoom = goog.isDef(mapOptions.doubleClickZoom) ? mapOptions.doubleClickZoom : true;
|
||||
if(doubleClickZoom) {
|
||||
var zoomDelta = goog.isDef(mapOptions.zoomDelta) ? mapOptions.zoomDelta : 4;
|
||||
var zoomDelta = goog.isDef(mapOptions.zoomDelta) ? mapOptions.zoomDelta : 1;
|
||||
interactions.push(new ol.interaction.DblClickZoom(zoomDelta))
|
||||
}
|
||||
var touchPan = goog.isDef(mapOptions.touchPan) ? mapOptions.touchPan : true;
|
||||
@@ -16859,8 +16963,7 @@ ol.Map.createInteractions_ = function(mapOptions) {
|
||||
}
|
||||
var mouseWheelZoom = goog.isDef(mapOptions.mouseWheelZoom) ? mapOptions.mouseWheelZoom : true;
|
||||
if(mouseWheelZoom) {
|
||||
var mouseWheelZoomDelta = goog.isDef(mapOptions.mouseWheelZoomDelta) ? mapOptions.mouseWheelZoomDelta : 1;
|
||||
interactions.push(new ol.interaction.MouseWheelZoom(mouseWheelZoomDelta))
|
||||
interactions.push(new ol.interaction.MouseWheelZoom)
|
||||
}
|
||||
var shiftDragZoom = goog.isDef(mapOptions.shiftDragZoom) ? mapOptions.shiftDragZoom : true;
|
||||
if(shiftDragZoom) {
|
||||
@@ -17319,14 +17422,14 @@ ol.TileUrlFunction.createFromTileUrlFunctions = function(tileUrlFunctions) {
|
||||
}
|
||||
}
|
||||
};
|
||||
ol.TileUrlFunction.createWMSParams = function(baseUrl, params, opt_version) {
|
||||
ol.TileUrlFunction.createWMSParams = function(baseUrl, params) {
|
||||
return function(tileCoord, tileGrid, projection) {
|
||||
if(goog.isNull(tileCoord)) {
|
||||
return undefined
|
||||
}else {
|
||||
var size = tileGrid.getTileSize(tileCoord.z);
|
||||
var extent = tileGrid.getTileCoordExtent(tileCoord);
|
||||
return ol.source.wms.getUrl(baseUrl, params, extent, size, projection, opt_version)
|
||||
return ol.source.wms.getUrl(baseUrl, params, extent, size, projection)
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -17463,7 +17566,7 @@ ol.interaction.DragRotateAndZoom.prototype.handleDrag = function(mapBrowserEvent
|
||||
this.lastAngle_ = theta;
|
||||
if(goog.isDef(this.lastMagnitude_)) {
|
||||
var resolution = this.lastMagnitude_ * (view.getResolution() / magnitude);
|
||||
view.zoomToResolution(map, resolution)
|
||||
view.zoom(map, resolution)
|
||||
}
|
||||
this.lastMagnitude_ = magnitude
|
||||
};
|
||||
@@ -18407,6 +18510,8 @@ goog.require("ol.parser.XML");
|
||||
goog.require("ol.parser.ogc.OWSCommon_v1_1_0");
|
||||
goog.require("ol.projection");
|
||||
ol.parser.ogc.WMTSCapabilities_v1_0_0 = function() {
|
||||
this.defaultNamespaceURI = "http://www.opengis.net/wtms/1.0";
|
||||
this.errorProperty = "serviceIdentification";
|
||||
this.readers = {"http://www.opengis.net/wmts/1.0":{"Capabilities":function(node, obj) {
|
||||
this.readChildNodes(node, obj)
|
||||
}, "Contents":function(node, obj) {
|
||||
@@ -19273,7 +19378,7 @@ goog.require("ol.ImageUrlFunction");
|
||||
goog.require("ol.Size");
|
||||
goog.require("ol.source.ImageSource");
|
||||
ol.source.SingleImageWMS = function(options) {
|
||||
var imageUrlFunction = goog.isDef(options.url) ? ol.ImageUrlFunction.createWMSParams(options.url, options.params, options.version) : ol.ImageUrlFunction.nullImageUrlFunction;
|
||||
var imageUrlFunction = goog.isDef(options.url) ? ol.ImageUrlFunction.createWMSParams(options.url, options.params) : ol.ImageUrlFunction.nullImageUrlFunction;
|
||||
goog.base(this, {attributions:options.attributions, crossOrigin:options.crossOrigin, extent:options.extent, projection:options.projection, resolutions:options.resolutions, imageUrlFunction:imageUrlFunction});
|
||||
this.image_ = null;
|
||||
this.ratio_ = 1.5
|
||||
@@ -19294,24 +19399,21 @@ ol.source.SingleImageWMS.prototype.getImage = function(extent, resolution, proje
|
||||
return this.image_
|
||||
};
|
||||
goog.provide("ol.source.Stamen");
|
||||
goog.provide("ol.source.StamenFlavor");
|
||||
goog.provide("ol.source.StamenProvider");
|
||||
goog.require("ol.Attribution");
|
||||
goog.require("ol.source.XYZ");
|
||||
ol.source.StamenFlavor = {TERRAIN_BACKGROUND:"background", TERRAIN_LABELS:"labels", TERRAIN_LINES:"lines", TONER_2010:"2010", TONER_2011:"2011", TONER_2011_LABELS:"2011-labels", TONER_2011_LINES:"2011-lines", TONER_2011_LITE:"2011-lite", TONER_BACKGROUND:"background", TONER_HYBRID:"hybrid", TONER_LABELS:"labels", TONER_LINES:"lines", TONER_LITE:"lite"};
|
||||
ol.source.StamenProvider = {TERRAIN:"terrain", TONER:"toner", WATERCOLOR:"watercolor"};
|
||||
ol.source.StamenProviderConfig = {};
|
||||
ol.source.StamenProviderConfig[ol.source.StamenProvider.TERRAIN] = {type:"jpg", minZoom:4, maxZoom:18};
|
||||
ol.source.StamenProviderConfig[ol.source.StamenProvider.TONER] = {type:"png", minZoom:0, maxZoom:20};
|
||||
ol.source.StamenProviderConfig[ol.source.StamenProvider.WATERCOLOR] = {type:"jpg", minZoom:3, maxZoom:16};
|
||||
ol.source.Stamen = function(stamenOptions) {
|
||||
ol.source.StamenLayerConfig = {"terrain":{extension:"jpg", opaque:true}, "terrain-background":{extension:"jpg", opaque:true}, "terrain-labels":{extension:"png", opaque:false}, "terrain-lines":{extension:"png", opaque:false}, "toner-background":{extension:"png", opaque:true}, "toner":{extension:"png", opaque:true}, "toner-hybrid":{extension:"png", opaque:false}, "toner-labels":{extension:"png", opaque:false}, "toner-lines":{extension:"png", opaque:false}, "toner-lite":{extension:"png", opaque:true},
|
||||
"watercolor":{extension:"jpg", opaque:true}};
|
||||
ol.source.StamenProviderConfig = {"terrain":{minZoom:4, maxZoom:18}, "toner":{minZoom:0, maxZoom:20}, "watercolor":{minZoom:3, maxZoom:16}};
|
||||
ol.source.Stamen = function(options) {
|
||||
var attribution = new ol.Attribution('Map tiles by <a href="http://stamen.com">Stamen Design</a>, ' + "under " + '<a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. ' + 'Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, ' + "under " + '<a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.');
|
||||
var layer = stamenOptions.provider;
|
||||
if(goog.isDef(stamenOptions.flavor)) {
|
||||
layer += "-" + stamenOptions.flavor
|
||||
}
|
||||
var config = ol.source.StamenProviderConfig[stamenOptions.provider];
|
||||
goog.base(this, {attributions:[attribution], maxZoom:config.maxZoom, opaque:false, url:"http://{a-d}.tile.stamen.com/" + layer + "/{z}/{x}/{y}." + config.type})
|
||||
var i = options.layer.indexOf("-");
|
||||
var provider = i == -1 ? options.layer : options.layer.slice(0, i);
|
||||
goog.asserts.assert(provider in ol.source.StamenProviderConfig);
|
||||
var providerConfig = ol.source.StamenProviderConfig[provider];
|
||||
goog.asserts.assert(options.layer in ol.source.StamenLayerConfig);
|
||||
var layerConfig = ol.source.StamenLayerConfig[options.layer];
|
||||
var url = goog.isDef(options.url) ? options.url : "http://{a-d}.tile.stamen.com/" + options.layer + "/{z}/{x}/{y}." + layerConfig.extension;
|
||||
goog.base(this, {attributions:[attribution], maxZoom:providerConfig.maxZoom, opaque:layerConfig.opaque, url:url})
|
||||
};
|
||||
goog.inherits(ol.source.Stamen, ol.source.XYZ);
|
||||
goog.provide("ol.source.StaticImage");
|
||||
@@ -19431,21 +19533,20 @@ ol.source.TiledWMS = function(tiledWMSOptions) {
|
||||
if(goog.isDef(tiledWMSOptions.tileGrid)) {
|
||||
tileGrid = tiledWMSOptions.tileGrid
|
||||
}
|
||||
var version = tiledWMSOptions.version;
|
||||
var tileUrlFunction;
|
||||
if(tiledWMSOptions.urls) {
|
||||
var tileUrlFunctions = goog.array.map(tiledWMSOptions.urls, function(url) {
|
||||
return ol.TileUrlFunction.createWMSParams(url, tiledWMSOptions.params, version)
|
||||
return ol.TileUrlFunction.createWMSParams(url, tiledWMSOptions.params)
|
||||
});
|
||||
tileUrlFunction = ol.TileUrlFunction.createFromTileUrlFunctions(tileUrlFunctions)
|
||||
}else {
|
||||
if(tiledWMSOptions.url) {
|
||||
tileUrlFunction = ol.TileUrlFunction.createWMSParams(tiledWMSOptions.url, tiledWMSOptions.params, version)
|
||||
tileUrlFunction = ol.TileUrlFunction.createWMSParams(tiledWMSOptions.url, tiledWMSOptions.params)
|
||||
}else {
|
||||
tileUrlFunction = ol.TileUrlFunction.nullTileUrlFunction
|
||||
}
|
||||
}
|
||||
var transparent = goog.isDef(tiledWMSOptions.transparent) ? tiledWMSOptions.transparent : true;
|
||||
var transparent = goog.isDef(tiledWMSOptions.params["TRANSPARENT"]) ? tiledWMSOptions.params["TRANSPARENT"] : true;
|
||||
var extent = tiledWMSOptions.extent;
|
||||
var tileCoordTransform = function(tileCoord, tileGrid, projection) {
|
||||
if(tileGrid.getResolutions().length <= tileCoord.z) {
|
||||
@@ -19454,7 +19555,7 @@ ol.source.TiledWMS = function(tiledWMSOptions) {
|
||||
var x = tileCoord.x;
|
||||
var tileExtent = tileGrid.getTileCoordExtent(tileCoord);
|
||||
var projectionExtent = projection.getExtent();
|
||||
var extent = goog.isDef(tiledWMSOptions.extent) ? tiledWMSOptions.extent : projectionExtent;
|
||||
extent = goog.isDef(extent) ? extent : projectionExtent;
|
||||
if(extent.minX === projectionExtent.minX && extent.maxX === projectionExtent.maxX) {
|
||||
var numCols = Math.ceil((extent.maxX - extent.minX) / (tileExtent.maxX - tileExtent.minX));
|
||||
x = goog.math.modulo(x, numCols);
|
||||
@@ -19627,8 +19728,6 @@ goog.require("ol.source.OpenStreetMap");
|
||||
goog.require("ol.source.SingleImageWMS");
|
||||
goog.require("ol.source.Source");
|
||||
goog.require("ol.source.Stamen");
|
||||
goog.require("ol.source.StamenFlavor");
|
||||
goog.require("ol.source.StamenProvider");
|
||||
goog.require("ol.source.StaticImage");
|
||||
goog.require("ol.source.TileJSON");
|
||||
goog.require("ol.source.TileSource");
|
||||
|
||||
+204
-203
@@ -1,237 +1,238 @@
|
||||
(function(){var h=void 0,i=!0,k=null,l=!1;function aa(){return function(a){return a}}function n(a){return function(){return this[a]}}var p,w=this;function ba(){}function ca(a){a.Xa=function(){return a.oc?a.oc:a.oc=new a}}
|
||||
(function(){var h=void 0,i=!0,k=null,l=!1;function aa(){return function(a){return a}}function m(a){return function(){return this[a]}}var p,w=this;function ba(){}function ca(a){a.Ya=function(){return a.pc?a.pc:a.pc=new a}}
|
||||
function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
||||
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function x(a){return a!==h}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==da(a)}function ia(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function y(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ka=0;
|
||||
function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(k,arguments)}
|
||||
function oa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var pa=Date.now||function(){return+new Date};function A(a,b){var c=a.split("."),d=w;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&x(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function B(a,b){function c(){}c.prototype=b.prototype;a.v=b.prototype;a.prototype=new c};function qa(a){Error.captureStackTrace?Error.captureStackTrace(this,qa):this.stack=Error().stack||"";a&&(this.message=String(a))}B(qa,Error);qa.prototype.name="CustomError";function ra(a){if(!ta.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ua,"&"));-1!=a.indexOf("<")&&(a=a.replace(va,"<"));-1!=a.indexOf(">")&&(a=a.replace(wa,">"));-1!=a.indexOf('"')&&(a=a.replace(xa,"""));return a}var ua=/&/g,va=/</g,wa=/>/g,xa=/\"/g,ta=/[&<>\"]/;var ya=Array.prototype,za=ya.indexOf?function(a,b,c){return ya.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},C=ya.forEach?function(a,b,c){ya.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Aa=ya.map?function(a,b,c){return ya.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
|
||||
ga(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ba=ya.some?function(a,b,c){return ya.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return l};function Ca(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Da(a,b){var c=za(a,b),d;(d=0<=c)&&ya.splice.call(a,c,1);return d}function Ea(a){return ya.concat.apply(ya,arguments)}
|
||||
function Fa(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ga(a,b,c,d){ya.splice.apply(a,Ha(arguments,1))}function Ha(a,b,c){return 2>=arguments.length?ya.slice.call(a,b):ya.slice.call(a,b,c)}function Ia(a){ya.sort.call(a,Ja)}function Ja(a,b){return a>b?1:a<b?-1:0};function Ka(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function La(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ma(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Sa(a){for(var b in a)return l;return i}var Ta="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
||||
function Ua(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ta.length;f++)c=Ta[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Va(a){if("function"==typeof a.M)return a.M();if(ga(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return La(a)};function Wa(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Xa(this,arguments[d],arguments[d+1])}else if(a){a instanceof Wa?(c=a.V(),d=a.M()):(c=Ma(a),d=La(a));for(var e=0;e<c.length;e++)Xa(this,c[e],d[e])}}p=Wa.prototype;p.o=0;p.Xb=0;p.Z=n("o");p.M=function(){Ya(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};p.V=function(){Ya(this);return this.a.concat()};p.Ha=function(){return 0==this.o};
|
||||
p.clear=function(){this.b={};this.Xb=this.o=this.a.length=0};p.remove=function(a){return Za(this.b,a)?(delete this.b[a],this.o--,this.Xb++,this.a.length>2*this.o&&Ya(this),i):l};function Ya(a){if(a.o!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Za(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.o!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Za(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function $a(a,b){return Za(a.b,b)?a.b[b]:h}
|
||||
function Xa(a,b,c){Za(a.b,b)||(a.o++,a.a.push(b),a.Xb++);a.b[b]=c}p.Q=function(){return new Wa(this)};function Za(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ab,bb,cb,db,eb,fb,gb;function hb(){return w.navigator?w.navigator.userAgent:k}function ib(){return w.navigator}db=cb=bb=ab=l;var jb;if(jb=hb()){var kb=ib();ab=0==jb.indexOf("Opera");bb=!ab&&-1!=jb.indexOf("MSIE");cb=!ab&&-1!=jb.indexOf("WebKit");db=!ab&&!cb&&"Gecko"==kb.product}var lb=ab,F=bb,mb=db,G=cb,nb,ob=ib();nb=ob&&ob.platform||"";eb=-1!=nb.indexOf("Mac");fb=-1!=nb.indexOf("Win");gb=-1!=nb.indexOf("Linux");var pb=!!ib()&&-1!=(ib().appVersion||"").indexOf("X11"),qb;
|
||||
function Ua(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ta.length;f++)c=Ta[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Va(a){if("function"==typeof a.N)return a.N();if(ga(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return La(a)};function Wa(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Xa(this,arguments[d],arguments[d+1])}else if(a){a instanceof Wa?(c=a.W(),d=a.N()):(c=Ma(a),d=La(a));for(var e=0;e<c.length;e++)Xa(this,c[e],d[e])}}p=Wa.prototype;p.n=0;p.Xb=0;p.$=m("n");p.N=function(){Ya(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};p.W=function(){Ya(this);return this.a.concat()};p.Ia=function(){return 0==this.n};
|
||||
p.clear=function(){this.b={};this.Xb=this.n=this.a.length=0};p.remove=function(a){return Za(this.b,a)?(delete this.b[a],this.n--,this.Xb++,this.a.length>2*this.n&&Ya(this),i):l};function Ya(a){if(a.n!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Za(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.n!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Za(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function $a(a,b){return Za(a.b,b)?a.b[b]:h}
|
||||
function Xa(a,b,c){Za(a.b,b)||(a.n++,a.a.push(b),a.Xb++);a.b[b]=c}p.S=function(){return new Wa(this)};function Za(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ab,bb,cb,db,eb,fb,gb;function hb(){return w.navigator?w.navigator.userAgent:k}function ib(){return w.navigator}db=cb=bb=ab=l;var jb;if(jb=hb()){var kb=ib();ab=0==jb.indexOf("Opera");bb=!ab&&-1!=jb.indexOf("MSIE");cb=!ab&&-1!=jb.indexOf("WebKit");db=!ab&&!cb&&"Gecko"==kb.product}var lb=ab,F=bb,mb=db,G=cb,nb,ob=ib();nb=ob&&ob.platform||"";eb=-1!=nb.indexOf("Mac");fb=-1!=nb.indexOf("Win");gb=-1!=nb.indexOf("Linux");var pb=!!ib()&&-1!=(ib().appVersion||"").indexOf("X11"),qb;
|
||||
a:{var rb="",sb;if(lb&&w.opera)var tb=w.opera.version,rb="function"==typeof tb?tb():tb;else if(mb?sb=/rv\:([^\);]+)(\)|;)/:F?sb=/MSIE\s+([^\);]+)(\)|;)/:G&&(sb=/WebKit\/(\S+)/),sb)var ub=sb.exec(hb()),rb=ub?ub[1]:"";if(F){var vb,wb=w.document;vb=wb?wb.documentMode:h;if(vb>parseFloat(rb)){qb=String(vb);break a}}qb=rb}var xb={};
|
||||
function yb(a){var b;if(!(b=xb[a])){b=0;for(var c=String(qb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",j=d[f]||"",m=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var s=m.exec(g)||["","",""],q=r.exec(j)||["","",""];if(0==s[0].length&&0==q[0].length)break;b=((0==s[1].length?0:parseInt(s[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==s[1].length?0:parseInt(s[1],
|
||||
10))>(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==s[2].length)<(0==q[2].length)?-1:(0==s[2].length)>(0==q[2].length)?1:0)||(s[2]<q[2]?-1:s[2]>q[2]?1:0)}while(0==b)}b=xb[a]=0<=b}return b}var zb={};function Ab(a){return zb[a]||(zb[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Bb,Cb=!F||Ab(9);!mb&&!F||F&&Ab(9)||mb&&yb("1.9.1");F&&yb("9");function Db(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Ha(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=za(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Eb(a,b,c){return Math.min(Math.max(a,b),c)}function Fb(a,b){var c=a%b;return 0>c*b?c+b:c};function Gb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Gb.prototype.Q=function(){return new Gb(this.x,this.y)};function Hb(a,b){this.width=a;this.height=b}p=Hb.prototype;p.Q=function(){return new Hb(this.width,this.height)};p.Ha=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ib(a){return a?new Jb(Kb(a)):Bb||(Bb=new Jb)}function Lb(a,b){Ka(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Mb?a.setAttribute(Mb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Mb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
|
||||
function yb(a){var b;if(!(b=xb[a])){b=0;for(var c=String(qb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",j=d[f]||"",n=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var s=n.exec(g)||["","",""],q=r.exec(j)||["","",""];if(0==s[0].length&&0==q[0].length)break;b=((0==s[1].length?0:parseInt(s[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==s[1].length?0:parseInt(s[1],
|
||||
10))>(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==s[2].length)<(0==q[2].length)?-1:(0==s[2].length)>(0==q[2].length)?1:0)||(s[2]<q[2]?-1:s[2]>q[2]?1:0)}while(0==b)}b=xb[a]=0<=b}return b}var zb={};function Ab(a){return zb[a]||(zb[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Bb,Cb=!F||Ab(9);!mb&&!F||F&&Ab(9)||mb&&yb("1.9.1");F&&yb("9");function Db(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Ha(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=za(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Eb(a,b,c){return Math.min(Math.max(a,b),c)}function Fb(a,b){var c=a%b;return 0>c*b?c+b:c};function Gb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Gb.prototype.S=function(){return new Gb(this.x,this.y)};function Hb(a,b){this.width=a;this.height=b}p=Hb.prototype;p.S=function(){return new Hb(this.width,this.height)};p.Ia=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ib(a){return a?new Jb(Kb(a)):Bb||(Bb=new Jb)}function Lb(a,b){Ka(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Mb?a.setAttribute(Mb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Mb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
|
||||
function Nb(a){a=a.document.documentElement;return new Hb(a.clientWidth,a.clientHeight)}function Ob(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Cb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var j={};Ua(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:ea(g)?Db.apply(k,[f].concat(g)):Lb(f,g));2<d.length&&Pb(e,f,d,2);return f}
|
||||
function Pb(a,b,c,d){function e(c){c&&b.appendChild(ga(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(fa(f)&&!(ia(f)&&0<f.nodeType)){var g=C,j;a:{if((j=f)&&"number"==typeof j.length){if(ia(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ha(j)){j="function"==typeof j.item;break a}}j=l}g(j?Fa(f):f,e)}else e(f)}}function Qb(a){return document.createElement(a)}function Rb(a,b){Pb(Kb(a),a,arguments,1)}function Sb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
|
||||
function Tb(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Ub(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Kb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Jb(a){this.a=a||w.document||document}Jb.prototype.createElement=function(a){return this.a.createElement(a)};Jb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
|
||||
function Vb(a){var b=a.a,a=!G?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Gb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Jb.prototype.appendChild=function(a,b){a.appendChild(b)};Jb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Wb=!F||Ab(9),Xb=!F||Ab(9),Yb=F&&!yb("9");!G||yb("528");mb&&yb("1.9b")||F&&yb("8")||lb&&yb("9.5")||G&&yb("528");mb&&!yb("8")||F&&yb("9");function Zb(){0!=$b&&(this.oe=Error().stack,ac[y(this)]=this)}var $b=0,ac={};Zb.prototype.Ac=l;Zb.prototype.Bb=function(){if(!this.Ac&&(this.Ac=i,this.r(),0!=$b)){var a=y(this);delete ac[a]}};function bc(a,b){a.na||(a.na=[]);a.na.push(b)}Zb.prototype.r=function(){this.na&&cc.apply(k,this.na);if(this.Kc)for(;this.Kc.length;)this.Kc.shift()()};function dc(a){a&&"function"==typeof a.Bb&&a.Bb()}function cc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?cc.apply(k,d):dc(d)}};function ec(a,b){this.type=a;this.c=this.target=b}p=ec.prototype;p.Bb=function(){};p.pa=l;p.ab=l;p.rb=i;p.Fb=function(){this.pa=i};p.C=function(){this.ab=i;this.rb=l};function fc(a){a.Fb()};function gc(a){gc[" "](a);return a}gc[" "]=ba;function hc(a,b){a&&ic(this,a,b)}B(hc,ec);var jc=[1,4,2];p=hc.prototype;p.target=k;p.md=k;p.kd=0;p.ld=0;p.clientX=0;p.clientY=0;p.nd=0;p.od=0;p.hd=0;p.va=0;p.Za=0;p.$a=l;p.ba=l;p.ma=l;p.jd=l;p.ob=l;p.K=k;
|
||||
function ic(a,b,c){var d=a.type=b.type;ec.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(mb){var e;a:{try{gc(c.nodeName);e=i;break a}catch(f){}e=l}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.md=c;a.kd=G||b.offsetX!==h?b.offsetX:b.layerX;a.ld=G||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.nd=b.screenX||0;a.od=b.screenY||0;a.hd=b.button;a.va=b.keyCode||0;a.Za=b.charCode||
|
||||
("keypress"==d?b.keyCode:0);a.$a=b.ctrlKey;a.ba=b.altKey;a.ma=b.shiftKey;a.jd=b.metaKey;a.ob=eb?b.metaKey:b.ctrlKey;a.a=b.state;a.K=b;b.defaultPrevented&&a.C();delete a.pa}function kc(a){return(Wb?0==a.K.button:"click"==a.type?i:!!(a.K.button&jc[0]))&&!(G&&eb&&a.$a)}p.Fb=function(){hc.v.Fb.call(this);this.K.stopPropagation?this.K.stopPropagation():this.K.cancelBubble=i};
|
||||
p.C=function(){hc.v.C.call(this);var a=this.K;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,Yb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};p.fd=n("K");function lc(){}var mc=0;lc.prototype.key=0;lc.prototype.ya=l;lc.prototype.a=l;lc.prototype.handleEvent=function(a){return this.b?this.Ia.call(this.Nb||this.src,a):this.Ia.handleEvent.call(this.Ia,a)};var nc={},oc={},pc={},qc={};
|
||||
function H(a,b,c,d,e){if(b){if(ea(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=oc;b in g||(g[b]={o:0,O:0});g=g[b];d in g||(g[d]={o:0,O:0},g.o++);var g=g[d],j=y(a),m;g.O++;if(g[j]){m=g[j];for(f=0;f<m.length;f++)if(g=m[f],g.Ia==c&&g.Nb==e){if(g.ya)break;return m[f].key}}else m=g[j]=[],g.o++;var r=rc,s=Xb?function(a){return r.call(s.src,s.key,a)}:function(a){a=r.call(s.src,s.key,a);if(!a)return a},f=s;f.src=a;var q=g=new lc;if(ha(c))q.b=i;else if(c&&c.handleEvent&&ha(c.handleEvent))q.b=
|
||||
l;else throw Error("Invalid listener argument");q.Ia=c;q.c=f;q.src=a;q.type=b;q.capture=!!d;q.Nb=e;q.a=l;q.key=++mc;q.ya=l;c=g.key;f.key=c;m.push(g);nc[c]=g;pc[j]||(pc[j]=[]);pc[j].push(g);a.addEventListener?(a==w||!a.gc)&&a.addEventListener(b,f,d):a.attachEvent(b in qc?qc[b]:qc[b]="on"+b,f);return c}throw Error("Invalid event type");}function sc(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)sc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);nc[a].a=i;return a}
|
||||
function tc(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)tc(a,b[f],c,d,e);else{d=!!d;a:{f=oc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=y(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ia==c&&a[f].capture==d&&a[f].Nb==e){J(a[f].key);break}}}
|
||||
function J(a){if(!nc[a])return l;var b=nc[a];if(b.ya)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==w||!c.gc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in qc?qc[d]:qc[d]="on"+d,e);c=y(c);pc[c]&&(e=pc[c],Da(e,b),0==e.length&&delete pc[c]);b.ya=i;if(b=oc[d][f][c])b.tc=i,uc(d,f,c,b);delete nc[a];return i}
|
||||
function uc(a,b,c,d){if(!d.kb&&d.tc){for(var e=0,f=0;e<d.length;e++)d[e].ya?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.tc=l;0==f&&(delete oc[a][b][c],oc[a][b].o--,0==oc[a][b].o&&(delete oc[a][b],oc[a].o--),0==oc[a].o&&delete oc[a])}}function vc(a,b,c,d,e){var f=1,b=y(b);if(a[b]){a.O--;a=a[b];a.kb?a.kb++:a.kb=1;try{for(var g=a.length,j=0;j<g;j++){var m=a[j];m&&!m.ya&&(f&=wc(m,e)!==l)}}finally{a.kb--,uc(c,d,b,a)}}return Boolean(f)}function wc(a,b){a.a&&J(a.key);return a.handleEvent(b)}
|
||||
function K(a,b){var c=b.type||b,d=oc;if(!(c in d))return i;if(ga(b))b=new ec(b,a);else if(b instanceof ec)b.target=b.target||a;else{var e=b,b=new ec(c,a);Ua(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.Qb)f.push(g);g=d[i];g.O=g.o;for(var j=f.length-1;!b.pa&&0<=j&&g.O;j--)b.c=f[j],e&=vc(g,f[j],b.type,i,b)&&b.rb!=l}if(l in d)if(g=d[l],g.O=g.o,c)for(j=0;!b.pa&&j<f.length&&g.O;j++)b.c=f[j],e&=vc(g,f[j],b.type,l,b)&&b.rb!=l;else for(d=a;!b.pa&&d&&g.O;d=d.Qb)b.c=d,e&=vc(g,d,b.type,l,b)&&b.rb!=
|
||||
function Vb(a){var b=a.a,a=!G?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Gb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Jb.prototype.appendChild=function(a,b){a.appendChild(b)};Jb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Wb=!F||Ab(9),Xb=!F||Ab(9),Yb=F&&!yb("9");!G||yb("528");mb&&yb("1.9b")||F&&yb("8")||lb&&yb("9.5")||G&&yb("528");mb&&!yb("8")||F&&yb("9");function Zb(){0!=$b&&(this.oe=Error().stack,ac[y(this)]=this)}var $b=0,ac={};Zb.prototype.Ac=l;Zb.prototype.Db=function(){if(!this.Ac&&(this.Ac=i,this.r(),0!=$b)){var a=y(this);delete ac[a]}};function bc(a,b){a.na||(a.na=[]);a.na.push(b)}Zb.prototype.r=function(){this.na&&cc.apply(k,this.na);if(this.Kc)for(;this.Kc.length;)this.Kc.shift()()};function dc(a){a&&"function"==typeof a.Db&&a.Db()}function cc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?cc.apply(k,d):dc(d)}};function ec(a,b){this.type=a;this.c=this.target=b}p=ec.prototype;p.Db=function(){};p.qa=l;p.bb=l;p.tb=i;p.Hb=function(){this.qa=i};p.C=function(){this.bb=i;this.tb=l};function fc(a){a.Hb()};function gc(a){gc[" "](a);return a}gc[" "]=ba;function hc(a,b){a&&ic(this,a,b)}B(hc,ec);var jc=[1,4,2];p=hc.prototype;p.target=k;p.kd=k;p.hd=0;p.jd=0;p.clientX=0;p.clientY=0;p.ld=0;p.md=0;p.fd=0;p.wa=0;p.$a=0;p.ab=l;p.ca=l;p.ma=l;p.gd=l;p.qb=l;p.K=k;
|
||||
function ic(a,b,c){var d=a.type=b.type;ec.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(mb){var e;a:{try{gc(c.nodeName);e=i;break a}catch(f){}e=l}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.kd=c;a.hd=G||b.offsetX!==h?b.offsetX:b.layerX;a.jd=G||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.ld=b.screenX||0;a.md=b.screenY||0;a.fd=b.button;a.wa=b.keyCode||0;a.$a=b.charCode||
|
||||
("keypress"==d?b.keyCode:0);a.ab=b.ctrlKey;a.ca=b.altKey;a.ma=b.shiftKey;a.gd=b.metaKey;a.qb=eb?b.metaKey:b.ctrlKey;a.a=b.state;a.K=b;b.defaultPrevented&&a.C();delete a.qa}function kc(a){return(Wb?0==a.K.button:"click"==a.type?i:!!(a.K.button&jc[0]))&&!(G&&eb&&a.ab)}p.Hb=function(){hc.v.Hb.call(this);this.K.stopPropagation?this.K.stopPropagation():this.K.cancelBubble=i};
|
||||
p.C=function(){hc.v.C.call(this);var a=this.K;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,Yb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};p.dd=m("K");function lc(){}var mc=0;lc.prototype.key=0;lc.prototype.za=l;lc.prototype.a=l;lc.prototype.handleEvent=function(a){return this.b?this.Ja.call(this.Ob||this.src,a):this.Ja.handleEvent.call(this.Ja,a)};var nc={},oc={},pc={},qc={};
|
||||
function H(a,b,c,d,e){if(b){if(ea(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=oc;b in g||(g[b]={n:0,Q:0});g=g[b];d in g||(g[d]={n:0,Q:0},g.n++);var g=g[d],j=y(a),n;g.Q++;if(g[j]){n=g[j];for(f=0;f<n.length;f++)if(g=n[f],g.Ja==c&&g.Ob==e){if(g.za)break;return n[f].key}}else n=g[j]=[],g.n++;var r=rc,s=Xb?function(a){return r.call(s.src,s.key,a)}:function(a){a=r.call(s.src,s.key,a);if(!a)return a},f=s;f.src=a;var q=g=new lc;if(ha(c))q.b=i;else if(c&&c.handleEvent&&ha(c.handleEvent))q.b=
|
||||
l;else throw Error("Invalid listener argument");q.Ja=c;q.c=f;q.src=a;q.type=b;q.capture=!!d;q.Ob=e;q.a=l;q.key=++mc;q.za=l;c=g.key;f.key=c;n.push(g);nc[c]=g;pc[j]||(pc[j]=[]);pc[j].push(g);a.addEventListener?(a==w||!a.gc)&&a.addEventListener(b,f,d):a.attachEvent(b in qc?qc[b]:qc[b]="on"+b,f);return c}throw Error("Invalid event type");}function sc(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)sc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);nc[a].a=i;return a}
|
||||
function tc(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)tc(a,b[f],c,d,e);else{d=!!d;a:{f=oc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=y(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ja==c&&a[f].capture==d&&a[f].Ob==e){J(a[f].key);break}}}
|
||||
function J(a){if(!nc[a])return l;var b=nc[a];if(b.za)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==w||!c.gc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in qc?qc[d]:qc[d]="on"+d,e);c=y(c);pc[c]&&(e=pc[c],Da(e,b),0==e.length&&delete pc[c]);b.za=i;if(b=oc[d][f][c])b.tc=i,uc(d,f,c,b);delete nc[a];return i}
|
||||
function uc(a,b,c,d){if(!d.mb&&d.tc){for(var e=0,f=0;e<d.length;e++)d[e].za?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.tc=l;0==f&&(delete oc[a][b][c],oc[a][b].n--,0==oc[a][b].n&&(delete oc[a][b],oc[a].n--),0==oc[a].n&&delete oc[a])}}function vc(a){var b,c=0,d=b==k;b=!!b;if(a==k)Ka(pc,function(a){for(var e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)J(f.key),c++}});else if(a=y(a),pc[a])for(var a=pc[a],e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)J(f.key),c++}}
|
||||
function wc(a,b,c,d,e){var f=1,b=y(b);if(a[b]){a.Q--;a=a[b];a.mb?a.mb++:a.mb=1;try{for(var g=a.length,j=0;j<g;j++){var n=a[j];n&&!n.za&&(f&=xc(n,e)!==l)}}finally{a.mb--,uc(c,d,b,a)}}return Boolean(f)}function xc(a,b){a.a&&J(a.key);return a.handleEvent(b)}
|
||||
function K(a,b){var c=b.type||b,d=oc;if(!(c in d))return i;if(ga(b))b=new ec(b,a);else if(b instanceof ec)b.target=b.target||a;else{var e=b,b=new ec(c,a);Ua(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.Qb)f.push(g);g=d[i];g.Q=g.n;for(var j=f.length-1;!b.qa&&0<=j&&g.Q;j--)b.c=f[j],e&=wc(g,f[j],b.type,i,b)&&b.tb!=l}if(l in d)if(g=d[l],g.Q=g.n,c)for(j=0;!b.qa&&j<f.length&&g.Q;j++)b.c=f[j],e&=wc(g,f[j],b.type,l,b)&&b.tb!=l;else for(d=a;!b.qa&&d&&g.Q;d=d.Qb)b.c=d,e&=wc(g,d,b.type,l,b)&&b.tb!=
|
||||
l;return Boolean(e)}
|
||||
function rc(a,b){if(!nc[a])return i;var c=nc[a],d=c.type,e=oc;if(!(d in e))return i;var e=e[d],f,g;if(!Xb){var j;if(!(j=b))a:{j=["window","event"];for(var m=w;f=j.shift();)if(m[f]!=k)m=m[f];else{j=k;break a}j=m}f=j;j=i in e;m=l in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var r=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){r=i}if(r||f.returnValue==h)f.returnValue=i}}r=new hc;ic(r,f,this);f=i;try{if(j){for(var q=[],v=r.c;v;v=v.parentNode)q.push(v);g=e[i];g.O=g.o;for(var u=q.length-
|
||||
1;!r.pa&&0<=u&&g.O;u--)r.c=q[u],f&=vc(g,q[u],d,i,r);if(m){g=e[l];g.O=g.o;for(u=0;!r.pa&&u<q.length&&g.O;u++)r.c=q[u],f&=vc(g,q[u],d,l,r)}}else f=wc(c,r)}finally{q&&(q.length=0)}return f}d=new hc(b,this);return f=wc(c,d)};function xc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}xc.prototype.Q=function(){return new xc(this.top,this.right,this.bottom,this.left)};xc.prototype.contains=function(a){return!this||!a?l:a instanceof xc?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function yc(a,b){var c=Kb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function zc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Ac(a,b){return yc(a,b)||zc(a,b)||a.style&&a.style[b]}function Bc(a,b){var c,d,e=mb&&(eb||pb)&&yb("1.9");b instanceof Gb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Cc(c,e);a.style.top=Cc(d,e)}
|
||||
function Dc(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
||||
function Ec(a){if(F&&!Ab(8))return a.offsetParent;for(var b=Kb(a),c=Ac(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ac(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return k}function Fc(a,b){var c=Gc(a),d=Gc(b);return new Gb(c.x-d.x,c.y-d.y)}
|
||||
function Gc(a){var b=new Gb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Dc(a);b.x=c.left;b.y=c.top}else{c=Vb(Ib(a));var d,e=Kb(a),f=Ac(a,"position"),g=mb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Gb(0,0),m;d=e?Kb(e):document;if(m=F)if(m=!Ab(9))Ib(d),m=l;m=m?d.body:d.documentElement;if(a!=m)if(a.getBoundingClientRect)d=Dc(a),e=Vb(Ib(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
|
||||
e=e.getBoxObjectFor(m),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(G&&"fixed"==Ac(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(lb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Ec(g))&&g!=e.body&&g!=m;)if(j.x-=g.scrollLeft,!lb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(mb&&!yb(12)){var r;F?r="-ms-transform":G?r="-webkit-transform":
|
||||
lb?r="-o-transform":mb&&(r="-moz-transform");var s;r&&(s=Ac(a,r));s||(s=Ac(a,"transform"));s?(a=s.match(Hc),a=!a?new Gb(0,0):new Gb(parseFloat(a[1]),parseFloat(a[2]))):a=new Gb(0,0);b=new Gb(b.x+a.x,b.y+a.y)}}else r=ha(a.fd),s=a,a.targetTouches?s=a.targetTouches[0]:r&&a.K.targetTouches&&(s=a.K.targetTouches[0]),b.x=s.clientX,b.y=s.clientY;return b}function Cc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ic(a,b){a.style.display=b?"":"none"}
|
||||
function Jc(a,b){Ib(Kb(a));if(F&&!yb("8")){var c=a.style,d;if(F){d=Kc(a,zc(a,"paddingLeft"));var e=Kc(a,zc(a,"paddingRight")),f=Kc(a,zc(a,"paddingTop")),g=Kc(a,zc(a,"paddingBottom"));d=new xc(f,e,g,d)}else d=yc(a,"paddingLeft"),e=yc(a,"paddingRight"),f=yc(a,"paddingTop"),g=yc(a,"paddingBottom"),d=new xc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Lc(a,"borderLeft"),f=Lc(a,"borderRight"),g=Lc(a,"borderTop"),j=Lc(a,"borderBottom"),e=new xc(g,f,j,e);else e=yc(a,"borderLeftWidth"),
|
||||
f=yc(a,"borderRightWidth"),g=yc(a,"borderTopWidth"),j=yc(a,"borderBottomWidth"),e=new xc(parseFloat(g),parseFloat(f),parseFloat(j),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,mb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
|
||||
function Kc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Mc={thin:2,medium:4,thick:6};function Lc(a,b){if("none"==zc(a,b+"Style"))return 0;var c=zc(a,b+"Width");return c in Mc?Mc[c]:Kc(a,c)}var Hc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Nc(a,b){this.x=a;this.y=b}B(Nc,Gb);Nc.prototype.Q=function(){return new Nc(this.x,this.y)};Nc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Nc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function L(a,b){Nc.call(this,a,b)}B(L,Nc);function Oc(a,b){var c=Fb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};var Pc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Qc(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Qc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))};function Rc(a,b){var c;if(a instanceof Rc)this.la=x(b)?b:a.la,Sc(this,a.za),c=a.wb,Tc(this),this.wb=c,c=a.Aa,Tc(this),this.Aa=c,Uc(this,a.pb),c=a.nb,Tc(this),this.nb=c,Vc(this,a.a.Q()),c=a.Va,Tc(this),this.Va=c;else if(a&&(c=String(a).match(Pc))){this.la=!!b;Sc(this,c[1]||"",i);var d=c[2]||"";Tc(this);this.wb=d?decodeURIComponent(d):"";d=c[3]||"";Tc(this);this.Aa=d?decodeURIComponent(d):"";Uc(this,c[4]);d=c[5]||"";Tc(this);this.nb=d?decodeURIComponent(d):"";Vc(this,c[6]||"",i);c=c[7]||"";Tc(this);
|
||||
this.Va=c?decodeURIComponent(c):""}else this.la=!!b,this.a=new Wc(k,0,this.la)}p=Rc.prototype;p.za="";p.wb="";p.Aa="";p.pb=k;p.nb="";p.Va="";p.Nd=l;p.la=l;
|
||||
p.toString=function(){var a=[],b=this.za;b&&a.push(Xc(b,Yc),":");if(b=this.Aa){a.push("//");var c=this.wb;c&&a.push(Xc(c,Yc),"@");a.push(encodeURIComponent(String(b)));b=this.pb;b!=k&&a.push(":",String(b))}if(b=this.nb)this.Aa&&"/"!=b.charAt(0)&&a.push("/"),a.push(Xc(b,"/"==b.charAt(0)?Zc:$c));(b=this.a.toString())&&a.push("?",b);(b=this.Va)&&a.push("#",Xc(b,ad));return a.join("")};p.Q=function(){return new Rc(this)};
|
||||
function Sc(a,b,c){Tc(a);a.za=c?b?decodeURIComponent(b):"":b;a.za&&(a.za=a.za.replace(/:$/,""))}function Uc(a,b){Tc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.pb=b}else a.pb=k}
|
||||
function Vc(a,b,c){Tc(a);if(b instanceof Wc){a.a=b;b=a.a;if((a=a.la)&&!b.b){bd(b);b.a=k;var d=b.D,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),cd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.M)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Ma(d);else e=h;d=Va(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=Xc(b,dd)),a.a=
|
||||
new Wc(b,0,a.la)}function ed(a,b,c){Tc(a);ea(c)||(c=[String(c)]);cd(a.a,b,c)}function Tc(a){if(a.Nd)throw Error("Tried to modify a read-only Uri");}function Xc(a,b){return ga(a)?encodeURI(a).replace(b,fd):k}function fd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Yc=/[#\/\?@]/g,$c=/[\#\?:]/g,Zc=/[\#\?]/g,dd=/[\#\?@]/g,ad=/#/g;function Wc(a,b,c){this.a=a||k;this.b=!!c}
|
||||
function bd(a){if(!a.D&&(a.D=new Wa,a.o=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=gd(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}p=Wc.prototype;p.D=k;p.o=k;p.Z=function(){bd(this);return this.o};p.add=function(a,b){bd(this);this.a=k;var a=gd(this,a),c=$a(this.D,a);c||Xa(this.D,a,c=[]);c.push(b);this.o++;return this};
|
||||
p.remove=function(a){bd(this);a=gd(this,a);return Za(this.D.b,a)?(this.a=k,this.o-=$a(this.D,a).length,this.D.remove(a)):l};p.clear=function(){this.D=this.a=k;this.o=0};p.Ha=function(){bd(this);return 0==this.o};function hd(a,b){bd(a);b=gd(a,b);return Za(a.D.b,b)}p.V=function(){bd(this);for(var a=this.D.M(),b=this.D.V(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
||||
p.M=function(a){bd(this);var b=[];if(a)hd(this,a)&&(b=Ea(b,$a(this.D,gd(this,a))));else for(var a=this.D.M(),c=0;c<a.length;c++)b=Ea(b,a[c]);return b};function id(a,b){var c=b?a.M(b):[];return 0<c.length?String(c[0]):h}function cd(a,b,c){a.remove(b);0<c.length&&(a.a=k,Xa(a.D,gd(a,b),Fa(c)),a.o+=c.length)}
|
||||
p.toString=function(){if(this.a)return this.a;if(!this.D)return"";for(var a=[],b=this.D.V(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.M(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};p.Q=function(){var a=new Wc;a.a=this.a;this.D&&(a.D=this.D.Q());return a};function gd(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function jd(){Zb.call(this)}B(jd,Zb);p=jd.prototype;p.gc=i;p.Qb=k;p.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){tc(this,a,b,c,d)};p.r=function(){jd.v.r.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Ka(pc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}});else{var d=y(this);if(pc[d])for(var d=pc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}}this.Qb=k};function kd(a){return function(){return a}}var ld=kd(l),md=kd(i),nd=kd(k);function od(a,b,c){Zb.call(this);this.d=a;this.c=c;this.a=b||window;this.b=na(this.Eb,this)}B(od,Zb);p=od.prototype;p.N=k;p.Wb=l;p.start=function(){pd(this);this.Wb=l;var a=qd(this),b=rd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.N=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.Wb=i;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.N=a}};
|
||||
function pd(a){if(a.N!=k){var b=qd(a),c=rd(a);b&&!c&&a.a.mozRequestAnimationFrame?J(a.N):b&&c?c.call(a.a,a.N):a.a.clearTimeout(a.N)}a.N=k}p.Eb=function(){this.Wb&&this.N&&J(this.N);this.N=k;this.d.call(this.c,pa())};p.r=function(){pd(this);od.v.r.call(this)};function qd(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
|
||||
function rd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function vd(a){Zb.call(this);this.ta=a||window;this.jb=H(this.ta,"resize",this.Fd,l,this);this.sa=Nb(this.ta||window);if(G&&fb||lb&&this.ta.self!=this.ta.top)this.yb=window.setInterval(na(this.bc,this),wd)}B(vd,jd);var wd=500;p=vd.prototype;p.jb=k;p.ta=k;p.sa=k;p.yb=k;p.r=function(){vd.v.r.call(this);this.jb&&(J(this.jb),this.jb=k);this.yb&&(window.clearInterval(this.yb),this.yb=k);this.sa=this.ta=k};p.Fd=function(){this.bc()};
|
||||
p.bc=function(){var a=Nb(this.ta||window);if(!(a==this.sa||(!a||!this.sa?0:a.width==this.sa.width&&a.height==this.sa.height)))this.sa=a,K(this,"resize")};function xd(a,b,c,d,e){if(!F&&(!G||!yb("525")))return i;if(eb&&e)return yd(a);if(e&&!d||!c&&(17==b||18==b)||F&&d&&b==a)return l;switch(a){case 13:return!(F&&Ab(9));case 27:return!G}return yd(a)}function yd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return l}}
|
||||
function zd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ad(a,b){Zb.call(this);a&&(this.fb&&Bd(this),this.Ca=a,this.eb=H(this.Ca,"keypress",this,b),this.Ob=H(this.Ca,"keydown",this.a,b,this),this.fb=H(this.Ca,"keyup",this.b,b,this))}B(Ad,jd);p=Ad.prototype;p.Ca=k;p.eb=k;p.Ob=k;p.fb=k;p.fa=-1;p.ea=-1;p.zb=l;
|
||||
var Cd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Dd={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Ed=F||G&&yb("525"),Fd=eb&&mb;
|
||||
Ad.prototype.a=function(a){if(G&&(17==this.fa&&!a.$a||18==this.fa&&!a.ba))this.ea=this.fa=-1;Ed&&!xd(a.va,this.fa,a.ma,a.$a,a.ba)?this.handleEvent(a):(this.ea=mb?zd(a.va):a.va,Fd&&(this.zb=a.ba))};Ad.prototype.b=function(a){this.ea=this.fa=-1;this.zb=a.ba};
|
||||
Ad.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.ea,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.ea,d=0<=b.charCode&&63232>b.charCode&&yd(c)?b.charCode:0):lb?(c=this.ea,d=yd(c)?b.keyCode:0):(c=b.keyCode||this.ea,d=b.charCode||0,Fd&&(e=this.zb),eb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Cd?f=Cd[c]:25==c&&a.ma&&(f=9):g&&g in Dd&&(f=Dd[g]);a=f==this.fa;this.fa=f;b=new Gd(f,d,a,b);b.ba=e;K(this,b)};
|
||||
function Bd(a){a.eb&&(J(a.eb),J(a.Ob),J(a.fb),a.eb=k,a.Ob=k,a.fb=k);a.Ca=k;a.fa=-1;a.ea=-1}Ad.prototype.r=function(){Ad.v.r.call(this);Bd(this)};function Gd(a,b,c,d){d&&ic(this,d,h);this.type="key";this.va=a;this.Za=b;this.b=c}B(Gd,hc);function Hd(a){Zb.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Ac(a,"direction");this.b=H(this.a,mb?"DOMMouseScroll":"mousewheel",this)}B(Hd,jd);
|
||||
Hd.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(fb||yb("532.0")))c=40;d=Id(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Id(-a.wheelDeltaX,c),c=Id(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),x(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Eb(b,-this.c,this.c));"number"==typeof this.d&&(c=Eb(c,-this.d,this.d));this.e&&(b=-b);b=new Jd(d,a,b,c);K(this,b)};function Id(a,b){return G&&(eb||gb)&&0!=a%b?a:a/b}
|
||||
Hd.prototype.r=function(){Hd.v.r.call(this);J(this.b);delete this.b};function Jd(a,b,c,d){b&&ic(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Jd,hc);var Kd=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){Zb.call(this);this.l={};x(a)&&this.lb(a)}B(M,jd);var Ld={},Md={},Nd={};function Od(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Pd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Qd(a){return Ld.hasOwnProperty(a)?Ld[a]:Ld[a]=a.toLowerCase()+"_changed"}function Rd(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype;
|
||||
p.Vc=function(a,b,c,d){c=c||a;this.Vb(a);var e=Qd(c);Rd(this)[a]=H(b,e,function(){Sd(this,a)},h,this);Pd(this)[a]={target:b,key:c};d||Sd(this,a)};p.Yc=ba;p.s=function(a){var b,c=Pd(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Md.hasOwnProperty(b)?Md[b]:Md[b]="get"+Od(b),b=a[c]?a[c]():a.s(b)):this.l.hasOwnProperty(a)&&(b=this.l[a]);return b};
|
||||
p.V=function(){for(var a=Ma(Pd(this)).concat(Ma(this.l)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ia(e)?"o"+y(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=i,a[c++]=e)}a.length=c;return a};p.uc=function(a){var b=Pd(this);b.hasOwnProperty(a)?(a=b[a],a.target.uc(a.key)):Sd(this,a)};function Sd(a,b){var c=Qd(b);K(a,c);K(a,"changed")}
|
||||
p.q=function(a,b){var c=Pd(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Nd.hasOwnProperty(d)?Nd[d]:Nd[d]="set"+Od(d);if(c[e])c[e](b);else c.q(d,b)}else this.l[a]=b,Sd(this,a)};p.Ec=function(a){var b,c,d;for(b in a)if(c=a[b],d=Nd.hasOwnProperty(b)?Nd[b]:Nd[b]="set"+Od(b),this[d])this[d](c);else this.q(b,c)};p.lb=M.prototype.Ec;p.Vb=function(a){var b=Rd(this),c=b[a];c&&(delete b[a],J(c),b=this.s(a),delete Pd(this)[a],this.l[a]=b)};p.$d=function(){for(var a in Rd(this))this.Vb(a)};function Td(a,b,c,d,e){ec.call(this,a,e);this.a=b;this.index=c;this.b=d}B(Td,ec);function N(a){M.call(this);this.a=a||[];Ud(this)}B(N,M);p=N.prototype;p.clear=function(){for(;0<this.Ya();)this.vc()};p.forEach=function(a,b){C(this.a,a,b)};p.dd=n("a");p.ed=function(a){return this.a[a]};p.Ya=function(){return this.s("length")};p.cb=function(a,b){Ga(this.a,a,0,b);Ud(this);K(this,new Td("add",b,h,h,this));K(this,new Td("insert_at",b,a,h,this))};p.vc=function(){return this.Bc(this.Ya()-1)};
|
||||
p.push=function(a){var b=this.a.length;this.cb(b,a);return b};p.Bc=function(a){var b=this.a[a];ya.splice.call(this.a,a,1);Ud(this);K(this,new Td("remove",b,h,h,this));K(this,new Td("remove_at",h,a,b,this));return b};p.Qd=function(a,b){var c=this.Ya();if(a<c)c=this.a[a],this.a[a]=b,K(this,new Td("set_at",b,a,c,this)),K(this,new Td("remove",c,h,h,this)),K(this,new Td("add",b,h,h,this));else{for(;c<a;++c)this.cb(c,h);this.cb(a,b)}};function Ud(a){a.q("length",a.a.length)};function Vd(){this.c=Eb(255,0,255);this.b=Eb(255,0,255);this.a=Eb(255,0,255);this.d=Eb(1,0,1)};function Wd(a,b){Hb.call(this,a,b)}B(Wd,Hb);function Xd(a,b,c,d){this.h=a;this.i=b;this.m=c;this.k=d}Xd.prototype.$=function(){return this.k-this.i};Xd.prototype.da=function(){return this.m-this.h};function Yd(a,b){return a.h<=b.m&&a.m>=b.h&&a.i<=b.k&&a.k>=b.i}Xd.prototype.toString=function(){return"("+[this.h,this.i,this.m,this.k].join(", ")+")"};function Zd(a,b,c,d){Xd.call(this,a,b,c,d)}B(Zd,Xd);function $d(a){var b=arguments[0],b=new Zd(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.i=Math.min(b.i,d.y);b.m=Math.max(b.m,d.x);b.k=Math.max(b.k,d.y)}return b}function ae(a){return new L(a.h,a.k)}Zd.prototype.transform=function(a){var b=[this.h,this.i,this.m,this.k],b=a(b,b,2);return new Zd(Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3]))};function be(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}be.prototype.a=4;be.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};be.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(be.BYTES_PER_ELEMENT=4,be.prototype.BYTES_PER_ELEMENT=be.prototype.a,be.prototype.set=be.prototype.b,be.prototype.toString=be.prototype.toString,A("Float32Array",be));function ce(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ce.prototype.a=8;ce.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ce.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(ce.BYTES_PER_ELEMENT=8,ce.prototype.BYTES_PER_ELEMENT=ce.prototype.a,ce.prototype.set=ce.prototype.b,ce.prototype.toString=ce.prototype.toString,A("Float64Array",ce));function de(){var a=Array(16);ee(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function fe(){var a=Array(16);ee(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function ee(a,b,c,d,e,f,g,j,m,r,s,q,v,u,t,z,E){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=j;a[7]=m;a[8]=r;a[9]=s;a[10]=q;a[11]=v;a[12]=u;a[13]=t;a[14]=z;a[15]=E}
|
||||
function ge(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function he(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
|
||||
function ie(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],j=a[4],m=a[5],r=a[6],s=a[7],q=a[8],v=a[9],u=a[10],t=a[11],z=a[12],E=a[13],D=a[14],a=a[15],U=b[0],Q=b[1],I=b[2],Y=b[3],V=b[4],sa=b[5],Na=b[6],Oa=b[7],Pa=b[8],Qa=b[9],Ra=b[10],W=b[11],sd=b[12],td=b[13],ud=b[14],b=b[15];c[0]=d*U+j*Q+q*I+z*Y;c[1]=e*U+m*Q+v*I+E*Y;c[2]=f*U+r*Q+u*I+D*Y;c[3]=g*U+s*Q+t*I+a*Y;c[4]=d*V+j*sa+q*Na+z*Oa;c[5]=e*V+m*sa+v*Na+E*Oa;c[6]=f*V+r*sa+u*Na+D*Oa;c[7]=g*V+s*sa+t*Na+a*Oa;c[8]=d*Pa+j*Qa+q*Ra+z*W;c[9]=e*Pa+m*Qa+v*Ra+E*W;c[10]=
|
||||
f*Pa+r*Qa+u*Ra+D*W;c[11]=g*Pa+s*Qa+t*Ra+a*W;c[12]=d*sd+j*td+q*ud+z*b;c[13]=e*sd+m*td+v*ud+E*b;c[14]=f*sd+r*td+u*ud+D*b;c[15]=g*sd+s*td+t*ud+a*b}function je(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
|
||||
function ke(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function le(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function me(a,b,c){ee(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
|
||||
function ne(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],j=a[5],m=a[6],r=a[7],s=Math.cos(b),q=Math.sin(b);a[0]=c*s+g*q;a[1]=d*s+j*q;a[2]=e*s+m*q;a[3]=f*s+r*q;a[4]=c*-q+g*s;a[5]=d*-q+j*s;a[6]=e*-q+m*s;a[7]=f*-q+r*s}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function oe(a,b,c){Nc.call(this,b,c);this.n=a}B(oe,L);oe.prototype.hash=function(){return(this.x<<this.n)+this.y};function pe(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}oe.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function qe(a,b,c,d){this.h=a;this.i=b;this.m=c;this.k=d}B(qe,Xd);qe.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.m&&this.i<=a.y&&a.y<=this.k};qe.prototype.$=function(){return this.k-this.i+1};qe.prototype.da=function(){return this.m-this.h+1};function re(a,b){this.b=a;this.a=b||k};function se(a){Zb.call(this);this.U=a;this.a=0}B(se,jd);se.prototype.c=function(){return y(this).toString()};function te(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function ue(a,b,c,d){if(0==b.a){var e=b.c();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,ve(a,0,a.a.length-1))}}}te.prototype.f=function(){--this.c};function we(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,j=2*b+2,g=j<d&&c[j][0]<c[g][0]?j:g;c[b]=c[g];b=g}c[b]=e;ve(a,f,b)}function ve(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/*
|
||||
function rc(a,b){if(!nc[a])return i;var c=nc[a],d=c.type,e=oc;if(!(d in e))return i;var e=e[d],f,g;if(!Xb){var j;if(!(j=b))a:{j=["window","event"];for(var n=w;f=j.shift();)if(n[f]!=k)n=n[f];else{j=k;break a}j=n}f=j;j=i in e;n=l in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var r=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){r=i}if(r||f.returnValue==h)f.returnValue=i}}r=new hc;ic(r,f,this);f=i;try{if(j){for(var q=[],v=r.c;v;v=v.parentNode)q.push(v);g=e[i];g.Q=g.n;for(var u=q.length-
|
||||
1;!r.qa&&0<=u&&g.Q;u--)r.c=q[u],f&=wc(g,q[u],d,i,r);if(n){g=e[l];g.Q=g.n;for(u=0;!r.qa&&u<q.length&&g.Q;u++)r.c=q[u],f&=wc(g,q[u],d,l,r)}}else f=xc(c,r)}finally{q&&(q.length=0)}return f}d=new hc(b,this);return f=xc(c,d)};function yc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}yc.prototype.S=function(){return new yc(this.top,this.right,this.bottom,this.left)};yc.prototype.contains=function(a){return!this||!a?l:a instanceof yc?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function zc(a,b){var c=Kb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function Ac(a,b){return a.currentStyle?a.currentStyle[b]:k}function Bc(a,b){return zc(a,b)||Ac(a,b)||a.style&&a.style[b]}function Cc(a,b){var c,d,e=mb&&(eb||pb)&&yb("1.9");b instanceof Gb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Dc(c,e);a.style.top=Dc(d,e)}
|
||||
function Ec(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
||||
function Fc(a){if(F&&!Ab(8))return a.offsetParent;for(var b=Kb(a),c=Bc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Bc(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return k}function Gc(a,b){var c=Hc(a),d=Hc(b);return new Gb(c.x-d.x,c.y-d.y)}
|
||||
function Hc(a){var b=new Gb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Ec(a);b.x=c.left;b.y=c.top}else{c=Vb(Ib(a));var d,e=Kb(a),f=Bc(a,"position"),g=mb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Gb(0,0),n;d=e?Kb(e):document;if(n=F)if(n=!Ab(9))Ib(d),n=l;n=n?d.body:d.documentElement;if(a!=n)if(a.getBoundingClientRect)d=Ec(a),e=Vb(Ib(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
|
||||
e=e.getBoxObjectFor(n),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(G&&"fixed"==Bc(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(lb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Fc(g))&&g!=e.body&&g!=n;)if(j.x-=g.scrollLeft,!lb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(mb&&!yb(12)){var r;F?r="-ms-transform":G?r="-webkit-transform":
|
||||
lb?r="-o-transform":mb&&(r="-moz-transform");var s;r&&(s=Bc(a,r));s||(s=Bc(a,"transform"));s?(a=s.match(Ic),a=!a?new Gb(0,0):new Gb(parseFloat(a[1]),parseFloat(a[2]))):a=new Gb(0,0);b=new Gb(b.x+a.x,b.y+a.y)}}else r=ha(a.dd),s=a,a.targetTouches?s=a.targetTouches[0]:r&&a.K.targetTouches&&(s=a.K.targetTouches[0]),b.x=s.clientX,b.y=s.clientY;return b}function Dc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Jc(a,b){a.style.display=b?"":"none"}
|
||||
function Kc(a,b){Ib(Kb(a));if(F&&!yb("8")){var c=a.style,d;if(F){d=Lc(a,Ac(a,"paddingLeft"));var e=Lc(a,Ac(a,"paddingRight")),f=Lc(a,Ac(a,"paddingTop")),g=Lc(a,Ac(a,"paddingBottom"));d=new yc(f,e,g,d)}else d=zc(a,"paddingLeft"),e=zc(a,"paddingRight"),f=zc(a,"paddingTop"),g=zc(a,"paddingBottom"),d=new yc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Mc(a,"borderLeft"),f=Mc(a,"borderRight"),g=Mc(a,"borderTop"),j=Mc(a,"borderBottom"),e=new yc(g,f,j,e);else e=zc(a,"borderLeftWidth"),
|
||||
f=zc(a,"borderRightWidth"),g=zc(a,"borderTopWidth"),j=zc(a,"borderBottomWidth"),e=new yc(parseFloat(g),parseFloat(f),parseFloat(j),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,mb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
|
||||
function Lc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Nc={thin:2,medium:4,thick:6};function Mc(a,b){if("none"==Ac(a,b+"Style"))return 0;var c=Ac(a,b+"Width");return c in Nc?Nc[c]:Lc(a,c)}var Ic=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Oc(a,b){this.x=a;this.y=b}B(Oc,Gb);Oc.prototype.S=function(){return new Oc(this.x,this.y)};Oc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Oc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function L(a,b){Oc.call(this,a,b)}B(L,Oc);function Pc(a,b){var c=Fb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};var Qc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Rc(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Rc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))};function Sc(a,b){var c;if(a instanceof Sc)this.la=x(b)?b:a.la,Tc(this,a.Aa),c=a.xb,Uc(this),this.xb=c,c=a.Ba,Uc(this),this.Ba=c,Vc(this,a.rb),c=a.pb,Uc(this),this.pb=c,Wc(this,a.a.S()),c=a.Wa,Uc(this),this.Wa=c;else if(a&&(c=String(a).match(Qc))){this.la=!!b;Tc(this,c[1]||"",i);var d=c[2]||"";Uc(this);this.xb=d?decodeURIComponent(d):"";d=c[3]||"";Uc(this);this.Ba=d?decodeURIComponent(d):"";Vc(this,c[4]);d=c[5]||"";Uc(this);this.pb=d?decodeURIComponent(d):"";Wc(this,c[6]||"",i);c=c[7]||"";Uc(this);
|
||||
this.Wa=c?decodeURIComponent(c):""}else this.la=!!b,this.a=new Xc(k,0,this.la)}p=Sc.prototype;p.Aa="";p.xb="";p.Ba="";p.rb=k;p.pb="";p.Wa="";p.Md=l;p.la=l;
|
||||
p.toString=function(){var a=[],b=this.Aa;b&&a.push(Yc(b,Zc),":");if(b=this.Ba){a.push("//");var c=this.xb;c&&a.push(Yc(c,Zc),"@");a.push(encodeURIComponent(String(b)));b=this.rb;b!=k&&a.push(":",String(b))}if(b=this.pb)this.Ba&&"/"!=b.charAt(0)&&a.push("/"),a.push(Yc(b,"/"==b.charAt(0)?$c:ad));(b=this.a.toString())&&a.push("?",b);(b=this.Wa)&&a.push("#",Yc(b,bd));return a.join("")};p.S=function(){return new Sc(this)};
|
||||
function Tc(a,b,c){Uc(a);a.Aa=c?b?decodeURIComponent(b):"":b;a.Aa&&(a.Aa=a.Aa.replace(/:$/,""))}function Vc(a,b){Uc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.rb=b}else a.rb=k}
|
||||
function Wc(a,b,c){Uc(a);if(b instanceof Xc){a.a=b;b=a.a;if((a=a.la)&&!b.b){cd(b);b.a=k;var d=b.D,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),dd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.W)e=d.W();else if("function"!=typeof d.N)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Ma(d);else e=h;d=Va(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=Yc(b,ed)),a.a=
|
||||
new Xc(b,0,a.la)}function fd(a,b,c){Uc(a);ea(c)||(c=[String(c)]);dd(a.a,b,c)}function Uc(a){if(a.Md)throw Error("Tried to modify a read-only Uri");}function Yc(a,b){return ga(a)?encodeURI(a).replace(b,gd):k}function gd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Zc=/[#\/\?@]/g,ad=/[\#\?:]/g,$c=/[\#\?]/g,ed=/[\#\?@]/g,bd=/#/g;function Xc(a,b,c){this.a=a||k;this.b=!!c}
|
||||
function cd(a){if(!a.D&&(a.D=new Wa,a.n=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=hd(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}p=Xc.prototype;p.D=k;p.n=k;p.$=function(){cd(this);return this.n};p.add=function(a,b){cd(this);this.a=k;var a=hd(this,a),c=$a(this.D,a);c||Xa(this.D,a,c=[]);c.push(b);this.n++;return this};
|
||||
p.remove=function(a){cd(this);a=hd(this,a);return Za(this.D.b,a)?(this.a=k,this.n-=$a(this.D,a).length,this.D.remove(a)):l};p.clear=function(){this.D=this.a=k;this.n=0};p.Ia=function(){cd(this);return 0==this.n};function id(a,b){cd(a);b=hd(a,b);return Za(a.D.b,b)}p.W=function(){cd(this);for(var a=this.D.N(),b=this.D.W(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
||||
p.N=function(a){cd(this);var b=[];if(a)id(this,a)&&(b=Ea(b,$a(this.D,hd(this,a))));else for(var a=this.D.N(),c=0;c<a.length;c++)b=Ea(b,a[c]);return b};function jd(a,b){var c=b?a.N(b):[];return 0<c.length?String(c[0]):h}function dd(a,b,c){a.remove(b);0<c.length&&(a.a=k,Xa(a.D,hd(a,b),Fa(c)),a.n+=c.length)}
|
||||
p.toString=function(){if(this.a)return this.a;if(!this.D)return"";for(var a=[],b=this.D.W(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.N(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};p.S=function(){var a=new Xc;a.a=this.a;this.D&&(a.D=this.D.S());return a};function hd(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function kd(){Zb.call(this)}B(kd,Zb);p=kd.prototype;p.gc=i;p.Qb=k;p.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){tc(this,a,b,c,d)};p.r=function(){kd.v.r.call(this);vc(this);this.Qb=k};function ld(a){return function(){return a}}var md=ld(l),nd=ld(i),od=ld(k);function pd(a,b,c){Zb.call(this);this.d=a;this.c=c;this.a=b||window;this.b=na(this.Gb,this)}B(pd,Zb);p=pd.prototype;p.O=k;p.Wb=l;p.start=function(){qd(this);this.Wb=l;var a=rd(this),b=sd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.O=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.Wb=i;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.O=a}};
|
||||
function qd(a){if(a.O!=k){var b=rd(a),c=sd(a);b&&!c&&a.a.mozRequestAnimationFrame?J(a.O):b&&c?c.call(a.a,a.O):a.a.clearTimeout(a.O)}a.O=k}p.Gb=function(){this.Wb&&this.O&&J(this.O);this.O=k;this.d.call(this.c,pa())};p.r=function(){qd(this);pd.v.r.call(this)};function rd(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
|
||||
function sd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function wd(a){Zb.call(this);this.ua=a||window;this.lb=H(this.ua,"resize",this.Dd,l,this);this.ta=Nb(this.ua||window);if(G&&fb||lb&&this.ua.self!=this.ua.top)this.zb=window.setInterval(na(this.bc,this),xd)}B(wd,kd);var xd=500;p=wd.prototype;p.lb=k;p.ua=k;p.ta=k;p.zb=k;p.r=function(){wd.v.r.call(this);this.lb&&(J(this.lb),this.lb=k);this.zb&&(window.clearInterval(this.zb),this.zb=k);this.ta=this.ua=k};p.Dd=function(){this.bc()};
|
||||
p.bc=function(){var a=Nb(this.ua||window);if(!(a==this.ta||(!a||!this.ta?0:a.width==this.ta.width&&a.height==this.ta.height)))this.ta=a,K(this,"resize")};function yd(a,b,c,d,e){if(!F&&(!G||!yb("525")))return i;if(eb&&e)return zd(a);if(e&&!d||!c&&(17==b||18==b)||F&&d&&b==a)return l;switch(a){case 13:return!(F&&Ab(9));case 27:return!G}return zd(a)}function zd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return l}}
|
||||
function Ad(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Bd(a,b){Zb.call(this);a&&(this.hb&&Cd(this),this.Da=a,this.gb=H(this.Da,"keypress",this,b),this.Pb=H(this.Da,"keydown",this.a,b,this),this.hb=H(this.Da,"keyup",this.b,b,this))}B(Bd,kd);p=Bd.prototype;p.Da=k;p.gb=k;p.Pb=k;p.hb=k;p.ga=-1;p.fa=-1;p.Bb=l;
|
||||
var Dd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Ed={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Fd=F||G&&yb("525"),Gd=eb&&mb;
|
||||
Bd.prototype.a=function(a){if(G&&(17==this.ga&&!a.ab||18==this.ga&&!a.ca))this.fa=this.ga=-1;Fd&&!yd(a.wa,this.ga,a.ma,a.ab,a.ca)?this.handleEvent(a):(this.fa=mb?Ad(a.wa):a.wa,Gd&&(this.Bb=a.ca))};Bd.prototype.b=function(a){this.fa=this.ga=-1;this.Bb=a.ca};
|
||||
Bd.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.fa,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.fa,d=0<=b.charCode&&63232>b.charCode&&zd(c)?b.charCode:0):lb?(c=this.fa,d=zd(c)?b.keyCode:0):(c=b.keyCode||this.fa,d=b.charCode||0,Gd&&(e=this.Bb),eb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Dd?f=Dd[c]:25==c&&a.ma&&(f=9):g&&g in Ed&&(f=Ed[g]);a=f==this.ga;this.ga=f;b=new Hd(f,d,a,b);b.ca=e;K(this,b)};
|
||||
function Cd(a){a.gb&&(J(a.gb),J(a.Pb),J(a.hb),a.gb=k,a.Pb=k,a.hb=k);a.Da=k;a.ga=-1;a.fa=-1}Bd.prototype.r=function(){Bd.v.r.call(this);Cd(this)};function Hd(a,b,c,d){d&&ic(this,d,h);this.type="key";this.wa=a;this.$a=b;this.b=c}B(Hd,hc);function Id(a){Zb.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Bc(a,"direction");this.b=H(this.a,mb?"DOMMouseScroll":"mousewheel",this)}B(Id,kd);
|
||||
Id.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(fb||yb("532.0")))c=40;d=Jd(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Jd(-a.wheelDeltaX,c),c=Jd(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),x(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Eb(b,-this.c,this.c));"number"==typeof this.d&&(c=Eb(c,-this.d,this.d));this.e&&(b=-b);b=new Kd(d,a,b,c);K(this,b)};function Jd(a,b){return G&&(eb||gb)&&0!=a%b?a:a/b}
|
||||
Id.prototype.r=function(){Id.v.r.call(this);J(this.b);delete this.b};function Kd(a,b,c,d){b&&ic(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Kd,hc);var Ld=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){Zb.call(this);this.o={};x(a)&&this.nb(a)}B(M,kd);var Md={},Nd={},Od={};function Pd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Qd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Rd(a){return Md.hasOwnProperty(a)?Md[a]:Md[a]=a.toLowerCase()+"_changed"}function Sd(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype;
|
||||
p.Uc=function(a,b,c,d){c=c||a;this.Vb(a);var e=Rd(c);Sd(this)[a]=H(b,e,function(){Td(this,a)},h,this);Qd(this)[a]={target:b,key:c};d||Td(this,a)};p.Xc=ba;p.s=function(a){var b,c=Qd(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Nd.hasOwnProperty(b)?Nd[b]:Nd[b]="get"+Pd(b),b=a[c]?a[c]():a.s(b)):this.o.hasOwnProperty(a)&&(b=this.o[a]);return b};
|
||||
p.W=function(){for(var a=Ma(Qd(this)).concat(Ma(this.o)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ia(e)?"o"+y(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=i,a[c++]=e)}a.length=c;return a};p.uc=function(a){var b=Qd(this);b.hasOwnProperty(a)?(a=b[a],a.target.uc(a.key)):Td(this,a)};function Td(a,b){var c=Rd(b);K(a,c);K(a,"changed")}
|
||||
p.q=function(a,b){var c=Qd(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Od.hasOwnProperty(d)?Od[d]:Od[d]="set"+Pd(d);if(c[e])c[e](b);else c.q(d,b)}else this.o[a]=b,Td(this,a)};p.Ec=function(a){var b,c,d;for(b in a)if(c=a[b],d=Od.hasOwnProperty(b)?Od[b]:Od[b]="set"+Pd(b),this[d])this[d](c);else this.q(b,c)};p.nb=M.prototype.Ec;p.Vb=function(a){var b=Sd(this),c=b[a];c&&(delete b[a],J(c),b=this.s(a),delete Qd(this)[a],this.o[a]=b)};p.Zd=function(){for(var a in Sd(this))this.Vb(a)};function Ud(a,b,c,d,e){ec.call(this,a,e);this.a=b;this.index=c;this.b=d}B(Ud,ec);function N(a){M.call(this);this.a=a||[];Vd(this)}B(N,M);p=N.prototype;p.clear=function(){for(;0<this.Za();)this.vc()};p.forEach=function(a,b){C(this.a,a,b)};p.bd=m("a");p.cd=function(a){return this.a[a]};p.Za=function(){return this.s("length")};p.fb=function(a,b){Ga(this.a,a,0,b);Vd(this);K(this,new Ud("add",b,h,h,this));K(this,new Ud("insert_at",b,a,h,this))};p.vc=function(){return this.Bc(this.Za()-1)};
|
||||
p.push=function(a){var b=this.a.length;this.fb(b,a);return b};p.Bc=function(a){var b=this.a[a];ya.splice.call(this.a,a,1);Vd(this);K(this,new Ud("remove",b,h,h,this));K(this,new Ud("remove_at",h,a,b,this));return b};p.Pd=function(a,b){var c=this.Za();if(a<c)c=this.a[a],this.a[a]=b,K(this,new Ud("set_at",b,a,c,this)),K(this,new Ud("remove",c,h,h,this)),K(this,new Ud("add",b,h,h,this));else{for(;c<a;++c)this.fb(c,h);this.fb(a,b)}};function Vd(a){a.q("length",a.a.length)};function Wd(){this.c=Eb(255,0,255);this.b=Eb(255,0,255);this.a=Eb(255,0,255);this.d=Eb(1,0,1)};function Xd(a,b){Hb.call(this,a,b)}B(Xd,Hb);function Yd(a,b,c,d){this.i=a;this.j=b;this.l=c;this.k=d}Yd.prototype.aa=function(){return this.k-this.j};Yd.prototype.ea=function(){return this.l-this.i};function Zd(a,b){return a.i<=b.l&&a.l>=b.i&&a.j<=b.k&&a.k>=b.j}Yd.prototype.toString=function(){return"("+[this.i,this.j,this.l,this.k].join(", ")+")"};function $d(a,b,c,d){Yd.call(this,a,b,c,d)}B($d,Yd);function ae(a){var b=arguments[0],b=new $d(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.i=Math.min(b.i,d.x);b.j=Math.min(b.j,d.y);b.l=Math.max(b.l,d.x);b.k=Math.max(b.k,d.y)}return b}function be(a){return new L(a.i,a.k)}$d.prototype.transform=function(a){var b=[this.i,this.j,this.l,this.k],b=a(b,b,2);return new $d(Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3]))};function ce(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ce.prototype.a=4;ce.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ce.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(ce.BYTES_PER_ELEMENT=4,ce.prototype.BYTES_PER_ELEMENT=ce.prototype.a,ce.prototype.set=ce.prototype.b,ce.prototype.toString=ce.prototype.toString,A("Float32Array",ce));function de(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}de.prototype.a=8;de.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};de.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(de.BYTES_PER_ELEMENT=8,de.prototype.BYTES_PER_ELEMENT=de.prototype.a,de.prototype.set=de.prototype.b,de.prototype.toString=de.prototype.toString,A("Float64Array",de));function ee(){var a=Array(16);fe(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function ge(){var a=Array(16);fe(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function fe(a,b,c,d,e,f,g,j,n,r,s,q,v,u,t,z,E){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=j;a[7]=n;a[8]=r;a[9]=s;a[10]=q;a[11]=v;a[12]=u;a[13]=t;a[14]=z;a[15]=E}
|
||||
function he(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function ie(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
|
||||
function je(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],j=a[4],n=a[5],r=a[6],s=a[7],q=a[8],v=a[9],u=a[10],t=a[11],z=a[12],E=a[13],D=a[14],a=a[15],U=b[0],R=b[1],I=b[2],Y=b[3],V=b[4],sa=b[5],Na=b[6],Oa=b[7],Pa=b[8],Qa=b[9],Ra=b[10],W=b[11],td=b[12],ud=b[13],vd=b[14],b=b[15];c[0]=d*U+j*R+q*I+z*Y;c[1]=e*U+n*R+v*I+E*Y;c[2]=f*U+r*R+u*I+D*Y;c[3]=g*U+s*R+t*I+a*Y;c[4]=d*V+j*sa+q*Na+z*Oa;c[5]=e*V+n*sa+v*Na+E*Oa;c[6]=f*V+r*sa+u*Na+D*Oa;c[7]=g*V+s*sa+t*Na+a*Oa;c[8]=d*Pa+j*Qa+q*Ra+z*W;c[9]=e*Pa+n*Qa+v*Ra+E*W;c[10]=
|
||||
f*Pa+r*Qa+u*Ra+D*W;c[11]=g*Pa+s*Qa+t*Ra+a*W;c[12]=d*td+j*ud+q*vd+z*b;c[13]=e*td+n*ud+v*vd+E*b;c[14]=f*td+r*ud+u*vd+D*b;c[15]=g*td+s*ud+t*vd+a*b}function ke(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
|
||||
function le(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function me(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function ne(a,b,c){fe(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
|
||||
function oe(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],j=a[5],n=a[6],r=a[7],s=Math.cos(b),q=Math.sin(b);a[0]=c*s+g*q;a[1]=d*s+j*q;a[2]=e*s+n*q;a[3]=f*s+r*q;a[4]=c*-q+g*s;a[5]=d*-q+j*s;a[6]=e*-q+n*s;a[7]=f*-q+r*s}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function pe(a,b,c){Oc.call(this,b,c);this.m=a}B(pe,L);pe.prototype.hash=function(){return(this.x<<this.m)+this.y};function qe(a){var b=Array(a.m),c=1<<a.m-1,d,e;for(d=0;d<a.m;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}pe.prototype.toString=function(){return[this.m,this.x,this.y].join("/")};function re(a,b,c,d){this.i=a;this.j=b;this.l=c;this.k=d}B(re,Yd);re.prototype.contains=function(a){return this.i<=a.x&&a.x<=this.l&&this.j<=a.y&&a.y<=this.k};re.prototype.aa=function(){return this.k-this.j+1};re.prototype.ea=function(){return this.l-this.i+1};function se(a,b){this.b=a;this.a=b||k};function te(a){Zb.call(this);this.e=0;this.V=a;this.a=0}B(te,kd);te.prototype.b=function(){return y(this).toString()};function ue(a){this.d=a;this.f=8;this.c=0;this.a=[];this.b={}}function ve(a,b,c,d){if(0==b.a){var e=b.b();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,we(a,0,a.a.length-1),b.e++)}}}ue.prototype.e=function(){--this.c};function xe(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,j=2*b+2,g=j<d&&c[j][0]<c[g][0]?j:g;c[b]=c[g];b=g}c[b]=e;we(a,f,b)}function we(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/*
|
||||
|
||||
Latitude/longitude spherical geodesy formulae taken from
|
||||
http://www.movable-type.co.uk/scripts/latlong.html
|
||||
Licenced under CC-BY-3.0.
|
||||
*/
|
||||
function xe(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*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*ye.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var ye=new function(){this.a=6370997};var ze="object"==typeof Proj4js,Ae={Oc:"degrees",pe:"m"};function O(a,b,c,d){this.a=a;this.e=b;this.na=c;this.c=x(d)?d:"enu";this.f=k}O.prototype.l=n("a");O.prototype.H=n("na");O.prototype.j=n("e");O.prototype.g=n("c");function Be(a,b){O.call(this,a,b.units,k,b.axis);this.zc=b;this.d=k}B(Be,O);
|
||||
Be.prototype.b=function(a,b){if("degrees"==this.e)return a;this.d===k&&(this.d=Ce(this,De("EPSG:4326")));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.d(c,c,2);return(xe(new L(c[0],c[1]),new L(c[2],c[3]))+xe(new L(c[4],c[5]),new L(c[6],c[7])))/2};var Ee={},Fe={},Ge={};function He(a){C(a,function(a){Ie(a)});C(a,function(b){C(a,function(a){b!==a&&Je(b,a,Ke)})})}function Ie(a){Fe[a.a]=a;Je(a,a,Ke)}function Le(a){return a!=k?ga(a)?Me(a):a:Me("EPSG:3857")}
|
||||
function Je(a,b,c){a=a.a;b=b.a;a in Ge||(Ge[a]={});Ge[a][b]=c}function Me(a){var b=Fe[a];ze&&!x(b)&&(b=De(a));x(b)||(b=k);return b}function De(a){var b=Ee[a];x(b)||(b=new Proj4js.Proj(a),b=new Be(a,b),Ee[a]=b);return b}
|
||||
function Ce(a,b){var c=a.a,d=b.a,e;c in Ge&&d in Ge[c]&&(e=Ge[c][d]);if(ze&&!x(e)){var f;f=(a instanceof Be?a:De(a.a)).zc;var g;g=(b instanceof Be?b:De(b.a)).zc;e=function(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e,v=0;v<d;v+=c)e=new Proj4js.Point(a[v],a[v+1]),e=Proj4js.transform(f,g,e),b[v]=e.x,b[v+1]=e.y;return b};Je(a,b,e)}x(e)||(e=Ne);return e}function Oe(a,b){var c=Me(a),d=Me(b);return Ce(c,d)}
|
||||
function Ne(a,b){if(x(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Ke(a,b){var c;if(x(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function Pe(a){Zb.call(this);this.j=x(a.projection)?a.projection:k;this.l=x(a.extent)?a.extent:x(a.projection)?a.projection.H():k;this.e=x(a.attributions)?a.attributions:k}B(Pe,jd);Pe.prototype.ja=n("e");Pe.prototype.H=n("l");Pe.prototype.c=md;function P(a){M.call(this);this.g=a.source;this.j(x(a.brightness)?a.brightness:0);this.p(x(a.contrast)?a.contrast:1);this.t(x(a.hue)?a.hue:0);this.A(x(a.opacity)?a.opacity:1);this.F(x(a.saturation)?a.saturation:1);this.G(x(a.visible)?a.visible:i);this.g.c()||sc(this.g,"load",this.J,l,this)}B(P,M);P.prototype.b=function(){return this.s("brightness")};P.prototype.getBrightness=P.prototype.b;P.prototype.c=function(){return this.s("contrast")};P.prototype.getContrast=P.prototype.c;P.prototype.d=function(){return this.s("hue")};
|
||||
P.prototype.getHue=P.prototype.d;P.prototype.e=function(){return this.s("opacity")};P.prototype.getOpacity=P.prototype.e;P.prototype.f=function(){return this.s("saturation")};P.prototype.getSaturation=P.prototype.f;P.prototype.W=n("g");P.prototype.a=function(){return this.s("visible")};P.prototype.getVisible=P.prototype.a;P.prototype.J=function(){K(this,"load")};P.prototype.j=function(a){a=Eb(a,-1,1);a!=this.b()&&this.q("brightness",a)};P.prototype.setBrightness=P.prototype.j;
|
||||
P.prototype.p=function(a){a=Math.max(0,a);a!=this.c()&&this.q("contrast",a)};P.prototype.setContrast=P.prototype.p;P.prototype.t=function(a){a!=this.d()&&this.q("hue",a)};P.prototype.setHue=P.prototype.t;P.prototype.A=function(a){a=Eb(a,0,1);a!=this.e()&&this.q("opacity",a)};P.prototype.setOpacity=P.prototype.A;P.prototype.F=function(a){a=Math.max(0,a);a!=this.f()&&this.q("saturation",a)};P.prototype.setSaturation=P.prototype.F;P.prototype.G=function(a){a=!!a;a!=this.a()&&this.q("visible",a)};
|
||||
P.prototype.setVisible=P.prototype.G;function Qe(a){return 3*a*a-2*a*a*a};function Re(){M.call(this);this.e=[0,0]}B(Re,M);function Se(a,b){a.e[1]+=b};var Te={pc:aa(),Jc:function(a){return 0.5>a?Qe(2*a):1-Qe(2*(a-0.5))},ad:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Ab:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var Ue={Ab:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Te.Jc;return function(a,g){if(g.time<c)return g.P=i,g.B[0]+=1,i;if(g.time<c+d){var j=e((g.time-c)/d),m=b-g.u.resolution;g.P=i;g.u.resolution+=j*m;g.B[0]+=1;return i}return l}},Ja:function(a){var b=a.source,c=x(a.start)?a.start:pa(),d=b.x,e=b.y,f=x(a.duration)?a.duration:1E3,g=x(a.easing)?a.easing:Qe;return function(a,b){if(b.time<c)return b.P=i,b.B[0]+=1,i;if(b.time<c+f){var r=
|
||||
1-g((b.time-c)/f),s=d-b.u.center.x,q=e-b.u.center.y;b.P=i;b.u.center.x+=r*s;b.u.center.y+=r*q;b.B[0]+=1;return i}return l}},rotate:function(a){var b=a.rotation,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Qe;return function(a,g){if(g.time<c)return g.P=i,g.B[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),m=b-g.u.rotation;g.P=i;g.u.rotation+=j*m;g.B[0]+=1;return i}return l}},zoom:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,
|
||||
e=x(a.easing)?a.easing:Te.pc;return function(a,g){if(g.time<c)return g.P=i,g.B[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),m=b-g.u.resolution;g.P=i;g.u.resolution+=j*m;g.B[0]+=1;return i}return l}}};function Ve(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function We(a){for(var b=pa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Na>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Na-b.Na);return a.b>a.d}return l}Ve.prototype.Ja=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return Ue.Ja({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Xe(a,b,c){ec.call(this,a);this.map=b;this.ab=l;this.b=x(c)?c:k}B(Xe,ec);Xe.prototype.C=function(){Xe.v.C.call(this);this.ab=i};function Ye(a,b){Gb.call(this,a,b)}B(Ye,Gb);function Ze(a,b,c,d){Xe.call(this,a,b,d);this.a=c;this.f=this.e=k}B(Ze,Xe);Ze.prototype.d=function(){this.e===k&&(this.e=$e(this.map,af(this)));return this.e};function af(a){if(a.f===k){var b=Fc(a.a,a.map.b);a.f=new Ye(b.x,b.y)}return a.f}
|
||||
function bf(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.j=this.l=this.f=k;a=this.a.b;this.l=H(a,["click","dblclick"],this.dc,l,this);this.j=H(a,"mousedown",this.zd,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Jd,l,this),H(a,["touchmove","MSPointerMove"],this.Id,l,this),H(a,["touchend","MSPointerUp"],this.Hd,l,this)]}B(bf,jd);p=bf.prototype;p.dc=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new Ze(cf,this.a,a):new Ze(df,this.a,a))}};
|
||||
p.Bd=function(a){this.e&&(this.c=k,C(this.d,J),this.e=this.d=k,this.b&&K(this,new Ze(ef,this.a,a)))};p.zd=function(a){K(this,new Ze(ff,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[H(document,"mousemove",this.Ad,l,this),H(document,"mouseup",this.Bd,l,this)],a.C())};p.Ad=function(a){var b;this.b||(this.b=i,b=new Ze(gf,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new Ze(hf,this.a,a);K(this,b)};
|
||||
p.Jd=function(a){a.C();this.c=a;this.b=l;K(this,new Ze(jf,this.a,a))};p.Id=function(a){this.b=i;K(this,new Ze(kf,this.a,a))};p.Hd=function(a){K(this,new Ze(lf,this.a,a));this.b||(a=pa(),this.f=!this.f||250<a-this.f?a:0,this.dc(this.c));this.c=k};p.r=function(){J(this.l);J(this.j);this.d!==k&&(C(this.d,J),this.d=k);this.g!==k&&(C(this.g,J),this.g=k);bf.v.r.call(this)};
|
||||
var df="click",cf="dblclick",ff="down",gf="dragstart",hf="drag",ef="dragend",jf="touchstart",kf="touchmove",lf="touchend",mf={ee:df,fe:cf,he:ff,ke:gf,ie:hf,je:ef,Ne:jf,Me:kf,Le:lf};function nf(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function of(a,b){if(x(a))return a+b};function pf(a){this.resolution=a;this.rotation=of};function R(a){Re.call(this);var a=a||{},b={};b.center=x(a.center)?a.center:k;b.projection=Le(a.projection);if(x(a.resolution))b.resolution=a.resolution;else if(x(a.zoom)){var c=b.projection.H(),c=Math.max(c.m-c.h,c.k-c.i);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.lb(b);if(x(a.resolutions))var d=a.resolutions,a=function(a,b){if(x(a)){var c=nf(d,a),c=Eb(c+b,0,d.length-1);return d[c]}};else{x(a.maxResolution)&&x(a.numZoomLevels)&&x(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
|
||||
a=a.zoomFactor):(a=Le(a.projection).H(),b=Math.max(a.m-a.h,a.k-a.i)/256,c=116,a=Math.exp(Math.log(2)/4));var e=a,f=b,g=c-1,a=function(a,b){if(x(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);x(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new pf(a)}B(R,Re);R.prototype.S=function(){return this.s("center")};R.prototype.getCenter=R.prototype.S;
|
||||
R.prototype.H=function(a){var b=this.S(),c=this.T();return new Zd(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};R.prototype.wc=function(){return this.s("projection")};R.prototype.getProjection=R.prototype.wc;R.prototype.T=function(){return this.s("resolution")};R.prototype.getResolution=R.prototype.T;R.prototype.ka=function(){return this.s("rotation")||0};R.prototype.getRotation=R.prototype.ka;R.prototype.Ga=function(){return this.S()!=k&&x(this.T())};
|
||||
R.prototype.a=function(a){this.q("center",a)};R.prototype.setCenter=R.prototype.a;R.prototype.f=function(a){this.q("projection",a)};R.prototype.setProjection=R.prototype.f;R.prototype.c=function(a){this.q("resolution",a)};R.prototype.setResolution=R.prototype.c;R.prototype.d=function(a){this.q("rotation",a)};R.prototype.setRotation=R.prototype.d;
|
||||
R.prototype.rotate=function(a,b,c){b=this.b.rotation(b,0);if(c!=k){var d=this.S(),e=new L(d.x-c.x,d.y-c.y);e.rotate(b-this.ka());e.x+=c.x;e.y+=c.y;qf(a,function(){this.a(e);this.d(b)},this)}else this.d(b)};function rf(a,b,c,d){if(c!=k&&d!=k){var e=a.S(),f=a.T(),g=new L(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);qf(b,function(){this.a(g);this.c(c)},a)}else a.c(c)}
|
||||
R.prototype.zoom=function(a,b,c,d){var e=this.T();x(e)&&x(d)&&(sf(a),a.j(Ue.zoom({resolution:e,duration:d})));b=this.b.resolution(e,b);rf(this,a,b,c)};function tf(a){Zb.call(this);this.element=x(a.element)?a.element:k;this.p=a.target;this.b=k;x(a.map)&&this.a(a.map)}B(tf,Zb);tf.prototype.r=function(){Ub(this.element);tf.v.r.call(this)};tf.prototype.a=function(a){this.b===k||Ub(this.element);this.b=a;this.b!==k&&(x(this.p)?this.p:a.A).appendChild(this.element)};function uf(a){this.g=Qb("UL");var b=Ob("DIV",{"class":"ol-attribution ol-unselectable"},this.g);tf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}B(uf,tf);
|
||||
uf.prototype.l=function(a){var b=a.b;if(b===k)this.f&&(Ic(this.element,l),this.f=l);else{var c={},d={},a=this.b.t();x(a)&&a.forEach(function(a){a=a.W();d[y(a).toString()]=a;a=a.ja();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],t=y(b).toString(),c[t]=i}});var e=b.attributions,a={},f;for(f in e)a[f]=e[f];f=b.Oa;var b={},g,j,m,r,s;for(s in f)if(e=d[s],r=e.ja(),r!==k){g=f[s];for(e=0;e<r.length;++e)if(j=r[e],m=y(j).toString(),!(m in b)){var q;a:if(j.a===k)q=i;else{var v=q=h,u=h;for(u in g)if(u in j.a){v=
|
||||
g[u];for(q=0;q<j.a[u].length;++q)if(Yd(j.a[u][q],v)){q=i;break a}}q=l}q&&(b[m]=j)}}Ua(a,b);s=Aa(Ma(a),Number);Ia(s);var t;for(f=0;f<s.length;++f)t=s[f].toString(),t in this.c?this.d[t]||(Ic(this.c[t],i),this.d[t]=i):(b=Qb("LI"),b.innerHTML=a[t].b,this.g.appendChild(b),this.c[t]=b,this.d[t]=i),delete c[t];for(t in c)Ub(this.c[t]),delete this.c[t],delete this.d[t];a=0!=s.length;this.f!=a&&(Ic(this.element,a),this.f=a)}};
|
||||
uf.prototype.a=function(a){this.e!==k&&(C(this.e,J),this.e=k);uf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.l,l,this)])};var vf={Oc:"degrees",ne:"imperial",re:"nautical",qe:"metric",Oe:"us"};function wf(a){a=a||{};this.g=Ob("DIV",{"class":"ol-scale-line-inner"});this.j=Ob("DIV",{"class":"ol-scale-line ol-unselectable"},this.g);this.l=x(a.minWidth)?a.minWidth:64;this.c=x(a.units)?a.units:"metric";this.e=k;this.f=l;this.t="";this.d=k;tf.call(this,{element:this.j,map:a.map,target:a.target})}B(wf,tf);var xf=[1,2,5];
|
||||
wf.prototype.A=function(a){a=a.b;if(a===k)this.f&&(Ic(this.j,l),this.f=l);else{var a=a.u,b=a.center,c=a.projection,a=c.b(a.resolution,b),d=c.e;"degrees"==d&&("metric"==this.c||"imperial"==this.c)?(this.d=k,b=Math.cos(b.y*Math.PI/180),a*=Math.PI*b*ye.a/180):"m"==d&&"degrees"==this.c?(this.d===k&&(this.d=Ce(c,Me("EPSG:4326"))),b=[b.x,b.y],b=this.d(b,b,2),b=Math.cos(b[1]*Math.PI/180),a*=180/(Math.PI*b*ye.a)):this.d=k;c=this.l*a;b="";"degrees"==this.c?c<1/60?(b="\u2033",a*=3600):1>c?(b="\u2032",a*=60):
|
||||
b="\u00b0":"imperial"==this.c?0.9144>c?(b="in",a/=0.0254):1609.344>c?(b="ft",a/=0.3048):(b="mi",a/=1609.344):"nautical"==this.c?(a/=1852,b="nm"):"metric"==this.c?1>c?(b="mm",a*=1E3):1E3>c?b="m":(b="km",a/=1E3):"us"==this.c&&(0.9144>c?(b="in",a*=39.37):1609.344>c?(b="ft",a/=0.30480061):(b="mi",a/=1609.3472));for(var c=3*Math.floor(Math.log(this.l*a)/Math.log(10)),e,f;;){e=xf[c%3]*Math.pow(10,Math.floor(c/3));f=Math.round(e/a);if(f>=this.l)break;++c}e=e+b;this.t!=e&&(this.t=this.g.innerHTML=e);this.F!=
|
||||
f&&(this.g.style.width=f+"px",this.F=f);this.f||(Ic(this.j,i),this.f=i)}};wf.prototype.a=function(a){this.e!==k&&(C(this.e,J),this.e=k);wf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.A,l,this)])};function yf(a){var b=Ob("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Ob("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Ob("DIV","ol-zoom ol-unselectable",b,c);tf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(yf,tf);yf.prototype.d=function(a){a.C();a=this.b;sf(a);a.a().zoom(a,this.c,h,250)};yf.prototype.e=function(a){a.C();a=this.b;sf(a);a.a().zoom(a,-this.c,h,250)};function zf(){};function Af(a){this.a=a}B(Af,zf);Af.prototype.oa=function(a){var b=a.a;if(a.type==cf&&(Kd||kc(a.a))){var c=a.map,d=a.d(),e=a.a.ma?-this.a:this.a;c.a().zoom(c,e,d);a.C();b.C()}};function Bf(a){return a.ba&&!a.ob&&a.ma}function Cf(a){return!a.ba&&!a.ob&&!a.ma}function Df(a){return!a.ba&&!a.ob&&a.ma};function Ef(){this.e=l;this.p=this.na=this.l=this.g=0;this.Ma=this.f=k}B(Ef,zf);p=Ef.prototype;p.Gb=ba;p.Hb=ba;p.bb=ld;p.nc=ba;p.oa=function(a){var b=a.map;if(b.Ga()){var b=b.a(),c=a.a;a.type==ff&&this.nc(a);this.e?a.type==hf?(this.d=c.clientX-this.g,this.b=c.clientY-this.l,this.Gb(a)):a.type==ef&&(this.d=c.clientX-this.g,this.b=c.clientY-this.l,this.Hb(a),this.e=l):a.type==gf&&(this.g=c.clientX,this.l=c.clientY,this.b=this.d=0,this.f=b.S(),this.Ma=a.d(),this.bb(a)&&(this.e=i,a.C()))}};function Ff(a,b){Ef.call(this);this.j=a;this.a=b;this.c=k}B(Ff,Ef);Ff.prototype.Gb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Na:pa()});var a=a.map,b=a.a(),c=b.T(),d=b.ka(),c=new L(-c*this.d,c*this.b);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);sf(a);b.a(d)};
|
||||
Ff.prototype.Hb=function(a){var b=a.map,a=b.a();Se(a,-1);if(this.a&&We(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.S();this.c=this.a.Ja(e);b.j(this.c);e=Gf(b,e);b=$e(b,new Ye(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Ff.prototype.bb=function(a){var b=a.a;if(this.j(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,Na:pa()})}a=a.map;sf(a);Se(a.a(),1);return i}return l};
|
||||
Ff.prototype.nc=function(a){var b=a.map,c=b.a();this.c!==k&&Da(b.g,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k)};function Hf(a){Ef.call(this);this.c=a}B(Hf,Ef);Hf.prototype.Gb=function(a){var b=a.map,c=b.e(),a=af(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();sf(b);d.rotate(b,d.ka()-a)}this.a=c};Hf.prototype.bb=function(a){var b=a.a;return kc(b)&&this.c(b)?(a=a.map,a.a(),sf(a),this.a=h,i):l};function If(a){var b=Ob("DIV","ol-dragbox");this.c=k;this.e=a.Ma;this.d=k;tf.call(this,{element:b,map:a.map})}B(If,tf);If.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Gf(a,this.e),Bc(this.element,this.c),Jc(this.element,new Wd(0,0)),this.d=H(a,hf,this.f,l,this));If.v.a.call(this,a)};If.prototype.f=function(a){var b=this.b,a=a.d(),b=Gf(b,a);Bc(this.element,new Ye(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Jc(this.element,new Wd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Jf(a){Ef.call(this);this.c=a;this.a=k}B(Jf,Ef);Jf.prototype.Hb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=$d(this.Ma,a.d());qf(b,function(){var a=b.a(),e=b.e();a.a(new L((c.h+c.m)/2,(c.i+c.k)/2));e=Math.max((c.m-c.h)/e.width,(c.k-c.i)/e.height);e=a.b.resolution(e,0);a.c(e);a.d(0)})}};Jf.prototype.bb=function(a){var b=a.a;return kc(b)&&this.c(b)?(this.a=new If({map:a.map,Ma:this.Ma}),i):l};function Kf(a){this.a=a}B(Kf,zf);Kf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.va;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.T()*this.a,c=40==c?new L(0,-e):37==c?new L(-e,0):39==c?new L(e,0):new L(0,e),e=d.S();d.a(new L(e.x+c.x,e.y+c.y));b.C();a.C()}}};function Lf(){}B(Lf,zf);Lf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.Za;if(43==c||45==c){var d=a.map,c=43==c?4:-4;sf(d);d.a().zoom(d,c,h,100);b.C();a.C()}}};function Mf(a){this.a=a}B(Mf,zf);Mf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.d(),e=0>c.b?this.a:-this.a,f=b.a();sf(b);f.zoom(b,e,d);a.C();c.C()}};function Nf(){this.g=l;this.l={};this.targetTouches=[]}B(Nf,zf);function Of(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new Ye(c/b,d/b)}Nf.prototype.e=ba;Nf.prototype.d=ld;Nf.prototype.f=ld;Nf.prototype.oa=function(a){var b=a.a.K;x(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==lf?delete this.l[b.pointerId]:this.l[b.pointerId]=b,this.targetTouches=La(this.l));this.g&&(a.type==kf?this.e(a):a.type==lf&&(this.g=this.d(a)));a.type==jf&&(this.g=this.f(a))};function Pf(a){Nf.call(this);this.a=a;this.b=this.c=k}B(Pf,Nf);Pf.prototype.e=function(a){var b=Of(this.targetTouches);if(this.b!==k){this.a&&this.a.a.push({x:b.x,y:b.y,Na:pa()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new L(c,d),d=a.T();c.x*=d;c.y*=d;c=c.rotate(a.ka()).add(a.S());a.a(c)}this.b=b};
|
||||
Pf.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){Se(a,-1);if(this.a&&We(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.S();this.c=this.a.Ja(e);b.j(this.c);e=Gf(b,e);b=$e(b,new Ye(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return l}this.b=k;return i};Pf.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Da(b.g,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);Se(c,1);return i}return l};function Qf(a){Nf.call(this);this.a=l;this.b=0;this.j=x(a)?a:0.3}B(Qf,Nf);Qf.prototype.e=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);x(this.c)&&(b=c-this.c,this.b+=b,!this.a&&Math.abs(this.b)>this.j&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=Gc(a.b),e=Of(this.targetTouches);e.x-=d.x;e.y-=d.y;d=$e(a,e);this.a&&c.rotate(a,c.ka()+b,d)};Qf.prototype.d=function(a){return 2>this.targetTouches.length?(Se(a.map.a(),-1),l):i};
|
||||
Qf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,Se(a,1),i):l};function Rf(){Nf.call(this)}B(Rf,Nf);Rf.prototype.e=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);x(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Gc(a.b);d=Of(this.targetTouches);d.x-=c.x;d.y-=c.y;c=$e(a,d);rf(e,a,e.T()*b,c)};Rf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a(),c=b.T(),c=b.b.resolution(c,0);rf(b,a,c,h);Se(b,-1);return l}return i};
|
||||
Rf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,Se(a,1),i):l};function Sf(a){O.call(this,a,"m",Tf)}B(Sf,O);var Uf=6378137*Math.PI,Tf=new Zd(-Uf,-Uf,Uf,Uf),Vf=Aa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Sf(a)});Sf.prototype.b=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function Wf(a,b){O.call(this,a,"degrees",Xf,b)}B(Wf,O);var Xf=new Zd(-180,-90,180,90),Yf=[new Wf("CRS:84"),new Wf("EPSG:4326","neu"),new Wf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Wf("urn:ogc:def:crs:OGC:1.3:CRS84")];Wf.prototype.b=aa();function Zf(a,b,c,d,e){this.f=e;this.g=a;this.l=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(Zf,jd);Zf.prototype.ja=n("f");Zf.prototype.H=n("g");function $f(a,b){if(x(b)){var c,d=y(b);if(d in a.d)return a.d[d];c=Sa(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}Zf.prototype.j=function(){this.a=3;C(this.c,J);this.c=k;K(this,"change")};Zf.prototype.p=function(){this.a=2;C(this.c,J);this.c=k;K(this,"change")};
|
||||
function ag(a){0==a.a&&(a.a=1,a.c=[sc(a.b,"error",a.j,l,a),sc(a.b,"load",a.p,l,a)],a.b.src=a.l)};function bg(a){this.a=a.resolutions;this.g=this.a.length;this.d=x(a.origin)?a.origin:k;this.f=k;x(a.origins)&&(this.f=a.origins);this.c=k;x(a.tileSizes)&&(this.c=a.tileSizes);this.e=x(a.tileSize)?a.tileSize:this.c===k?new Wd(256,256):k}bg.prototype.b=function(a,b,c){for(var d=cg(this,a),a=a.n-1;0<=a&&!b.call(c,a,dg(this,d,this.a[a]));)--a};function eg(a,b){return a.d===k?a.f[b]:a.d}bg.prototype.Db=n("a");
|
||||
function dg(a,b,c){var d=fg(a,new L(b.h,b.i),c),a=fg(a,new L(b.m,b.k),c,i);return new qe(d.x,d.y,a.x,a.y)}function gg(a,b){var c=eg(a,b.n),d=a.a[b.n],e=hg(a,b.n);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function cg(a,b){var c=eg(a,b.n),d=a.a[b.n],e=hg(a,b.n),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new Zd(f,c,f+e.width*d,c+e.height*d)}
|
||||
function fg(a,b,c,d){var e=nf(a.a,c),f=c/a.a[e],g=eg(a,e),j=hg(a,e),a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new oe(e,a,b)}function hg(a,b){return a.e===k?a.c[b]:a.e}
|
||||
function ig(a){var b=a.f;if(b===k){for(var b=a.H(),c=Math.max(b.m-b.h,b.k-b.i),d=x(h)?h:new Wd(256,256),e=Array((x(h)?NaN:42)+1),c=c/d.width,f=0,g=e.length;f<g;++f)e[f]=c/Math.pow(2,f);b=new bg({origin:ae(b),resolutions:e,tileSize:d});a.f=b}return b};function jg(a){Pe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.G=x(a.X)?a.X:l;this.tileGrid=x(a.tileGrid)?a.tileGrid:k}B(jg,Pe);jg.prototype.f=ld;jg.prototype.d=function(a,b,c,d){var e=i,f,g,j,m;for(j=d.h;j<=d.m;++j)for(m=d.i;m<=d.k;++m)if(f=new oe(c,j,m),g=f.toString(),!a[c]||!a[c][g])f=b(f),f===k?e=l:(a[c]||(a[c]={}),a[c][g]=f);return e};jg.prototype.Db=function(){return this.tileGrid.Db()};
|
||||
function kg(a,b,c,d){for(var e,f,g;0<=b;--b){e=dg(d,c,d.a[b]);for(f=e.h;f<=e.m;++f)for(g=e.i;g<=e.k;++g)a.p(b+"/"+f+"/"+g)}}jg.prototype.p=ba;function lg(a,b){M.call(this);this.p=a;this.a=b;H(this.a,Qd("brightness"),this.Jb,l,this);H(this.a,Qd("contrast"),this.Kb,l,this);H(this.a,Qd("hue"),this.Lb,l,this);H(this.a,"load",this.rd,l,this);H(this.a,Qd("opacity"),this.sd,l,this);H(this.a,Qd("saturation"),this.Mb,l,this);H(this.a,Qd("visible"),this.ud,l,this)}B(lg,M);function mg(a){K(a,"change")}p=lg.prototype;p.aa=n("p");p.Jb=ba;p.Kb=ba;p.Lb=ba;p.Ib=function(a){2===a.target.a&&sf(this.p.map)};p.rd=function(){mg(this)};p.sd=function(){mg(this)};
|
||||
p.Mb=ba;p.ud=function(){mg(this)};p.Pb=function(a){2===a.target.a&&sf(this.p.map)};function ng(a,b){b.f()&&a.wa.push(oa(function(a,b,e){b=y(a).toString();a.Ba(e.Oa[b])},b))}function og(a,b){var c,d;for(c=0;c<b.length;++c)d=b[c],a[y(d).toString()]=d}function pg(a,b,c,d){b=y(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.h=Math.min(a.h,d.h),a.i=Math.min(a.i,d.i),a.m=Math.max(a.m,d.m),a.k=Math.max(a.k,d.k)):a[b][c]=d:(a[b]={},a[b][c]=d)}
|
||||
function qg(a,b,c){b=y(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=i}function rg(a,b,c,d){return function(e){e=b.b(e,c,d);return a(e)?e:k}};function sg(a,b){Zb.call(this);this.qa=a;this.map=b;this.d={};this.F=H(b,Qd(tg),this.wd,l,this);this.e=k;this.t={}}B(sg,Zb);p=sg.prototype;p.ua=function(a){var b=this.Ta(a),a=y(a);this.d[a]=b;this.t[a]=H(b,"change",this.td,l,this)};
|
||||
function ug(a){var b=a.u,c=a.fc;he(c);le(c,a.size.width/2,a.size.height/2);me(c,1/b.resolution,-1/b.resolution);ne(c,-b.rotation);le(c,-b.center.x,-b.center.y);var a=a.yc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],m=c[6],r=c[7],s=c[8],q=c[9],v=c[10],u=c[11],t=c[12],z=c[13],E=c[14],c=c[15],D=b*j-d*g,U=b*m-e*g,Q=b*r-f*g,I=d*m-e*j,Y=d*r-f*j,V=e*r-f*m,sa=s*z-q*t,Na=s*E-v*t,Oa=s*c-u*t,Pa=q*E-v*z,Qa=q*c-u*z,Ra=v*c-u*E,W=D*Ra-U*Qa+Q*Pa+I*Oa-Y*Na+V*sa;0!=W&&(W=1/W,a[0]=(j*Ra-m*Qa+r*Pa)*W,a[1]=(-d*Ra+e*Qa-
|
||||
f*Pa)*W,a[2]=(z*V-E*Y+c*I)*W,a[3]=(-q*V+v*Y-u*I)*W,a[4]=(-g*Ra+m*Oa-r*Na)*W,a[5]=(b*Ra-e*Oa+f*Na)*W,a[6]=(-t*V+E*Q-c*U)*W,a[7]=(s*V-v*Q+u*U)*W,a[8]=(g*Qa-j*Oa+r*sa)*W,a[9]=(-b*Qa+d*Oa-f*sa)*W,a[10]=(t*Y-z*Q+c*D)*W,a[11]=(-s*Y+q*Q-u*D)*W,a[12]=(-g*Pa+j*Na-m*sa)*W,a[13]=(b*Pa-d*Na+e*sa)*W,a[14]=(-t*I+z*U-E*D)*W,a[15]=(s*I-q*U+v*D)*W)}p.Ta=function(a){return new lg(this,a)};p.r=function(){Ka(this.d,function(a){dc(a)});J(this.F);this.e===k||C(this.e,J);sg.v.r.call(this)};p.Wa=nd;
|
||||
function vg(a,b){var c=y(b);return a.d[c]}p.td=function(){wg(this.map)};p.vd=function(a){this.ua(a.a)};p.wd=function(){cc(La(this.d));this.d={};this.e!==k&&(C(this.e,J),this.e=k);var a=this.map.t();a!=k&&(a.forEach(this.ua,this),this.e=[H(a,"add",this.vd,l,this),H(a,"remove",this.xd,l,this)])};p.xd=function(a){this.Rb(a.a)};p.Rb=function(a){a=y(a);if(a in this.d){var b=this.d[a];delete this.d[a];J(this.t[a]);delete this.t[a];a=b}else a=k;dc(a)};p.mb=ba;function xg(a,b,c,d,e,f){var g=x(f)?f:"1.3.0",f="1.3"<=g,j=e.c,c={SERVICE:"WMS",VERSION:g,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:i,WIDTH:d.width,HEIGHT:d.height,BBOX:(f&&"ne"==j.substr(0,2)?[c.i,c.h,c.k,c.m]:[c.h,c.i,c.m,c.k]).join(",")};Ua(c,b);c[f?"CRS":"SRS"]=e.a;c.STYLES=b.STYLES||new String("");var a=[a],m;for(m in c)Qc(m,c[m],a);a[1]&&(m=a[0],b=m.indexOf("#"),0<=b&&(a.push(m.substr(b)),a[0]=m=m.substr(0,b)),b=m.indexOf("?"),0>b?a[1]="?":b==m.length-1&&(a[1]=h));return a.join("")};function yg(a,b,c){return function(d,e,f){return xg(a,b,d,e,f,c)}}function zg(){};function Ag(a){Pe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Fa=x(a.Fa)?a.Fa:zg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(Ag,Pe);function Bg(a,b,c,d,e){var f=k,d=a.Fa(b,d,e);x(d)&&(f=new Zf(b,c,d,a.d,a.ja()));return f};function Cg(a){P.call(this,a)}B(Cg,P);function Dg(a){P.call(this,a)}B(Dg,P);function Eg(a,b){lg.call(this,a,b)}B(Eg,lg);function Fg(a,b){lg.call(this,a,b);this.b=k;this.c=de()}B(Fg,Eg);Fg.prototype.I=function(){return this.b===k?k:$f(this.b,this)};Fg.prototype.J=n("c");
|
||||
Fg.prototype.ga=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.a.W(),g=a.B;!g[0]&&!g[1]&&(b=f.I(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(sc(b,"change",this.Ib,l,this),ag(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.H(),g=b.e,j=this.c;he(j);le(j,a.size.width/2,a.size.height/2);ne(j,e);me(j,g/d,g/d);le(j,(f.h-c.x)/g,(c.y-f.k)/g);og(a.attributions,b.ja())}};function Gg(a,b){lg.call(this,a,b);this.e=this.c=this.d=k;this.f=de();this.b=k}B(Gg,Eg);Gg.prototype.I=n("d");Gg.prototype.J=n("f");
|
||||
Gg.prototype.ga=function(a){var b=a.u,c=b.projection,d=this.a.W(),e=y(d).toString(),f=d.tileGrid;f===k&&(f=ig(c));var g=nf(f.a,b.resolution),j=hg(f,g),m=f.a[g],r=dg(f,a.extent,m),s=r.da(),q=r.$(),j=new Wd(j.width*s,j.height*q),v,u;this.d===k?(v=Qb("CANVAS"),v.width=j.width,v.height=j.height,u=v.getContext("2d"),this.d=v,this.c=j,this.e=u,this.b=Array(s*q)):(v=this.d,u=this.e,this.c.width==j.width&&this.c.height==j.height||(v.width=j.width,v.height=j.height,this.c=j,this.b=Array(s*q)));q={};q[g]={};
|
||||
var j=na(d.d,d,q,rg(function(a){return a!==k&&2==a.a},d,f,c)),t,z,E,D;for(E=r.h;E<=r.m;++E)for(D=r.i;D<=r.k;++D)if(z=new oe(g,E,D),t=d.b(z,f,c),t!==k){v=t.a;if(0==v)sc(t,"change",this.Pb,l,this),qg(a.Pa,d,z),v=gg(f,z),ue(a.Ub,t,e,v);else if(2==v){q[g][z.toString()]=t;continue}else if(3==v)continue;f.b(z,j)}e=Aa(Ma(q),Number);Ia(e);v=d.G;var c=ae(cg(f,new oe(g,r.h,r.k))),U,Q,I,Y,V,sa;for(U=0;U<e.length;++U)if(t=e[U],j=hg(f,t),Y=q[t],t==g)for(Q in Y)t=Y[Q],z=t.U,z=(z.y-r.i)*s+(z.x-r.h),this.b[z]!=t&&
|
||||
(E=j.width*(t.U.x-r.h),D=j.height*(r.k-t.U.y),v||u.clearRect(E,D,j.width,j.height),u.drawImage(t.I(),E,D),this.b[z]=t);else for(Q in z=f.a[t]/m,Y){t=Y[Q];I=cg(f,t.U);E=(I.h-c.x)/m;D=(c.y-I.k)/m;sa=z*j.width;V=z*j.height;v||u.clearRect(E,D,sa,V);u.drawImage(t.I(),E,D,sa,V);D=dg(f,I,f.a[g]);I=Math.max(D.h,r.h);t=Math.min(D.m,r.m);E=Math.max(D.i,r.i);for(D=Math.min(D.k,r.k);I<=t;++I)for(V=E;V<=D;++V)this.b[(V-r.i)*s+(I-r.h)]=h}pg(a.Oa,d,g,r);kg(d,g,a.extent,f);ng(a,d);d=this.f;he(d);le(d,a.size.width/
|
||||
2,a.size.height/2);ne(d,b.rotation);me(d,m/b.resolution,m/b.resolution);le(d,(c.x-b.center.x)/m,(b.center.y-c.y)/m)};function Hg(a,b){sg.call(this,a,b);this.f=new Wd(a.clientHeight,a.clientWidth);this.c=Qb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Tb(a,this.c);this.g=i;this.l=this.c.getContext("2d")}B(Hg,sg);Hg.prototype.Ta=function(a){return a instanceof Cg?new Fg(this,a):a instanceof Dg?new Gg(this,a):k};Hg.prototype.Wa=n("c");
|
||||
Hg.prototype.mb=function(a){if(a===k)this.g&&(Ic(this.c,l),this.g=l);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.l;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);C(a.hb,function(b){var d=a.gb[y(b)];if(d.visible)if(d.qb){var g=vg(this,b);g.ga(a,d);b=g.I();b!==k&&(g=g.J(),c.setTransform(g[0],
|
||||
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.P=i},this);this.g||(Ic(this.c,i),this.g=i);ug(a)}};var Ig=function(){if(!("HTMLCanvasElement"in w))return l;try{return Qb("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Jg(a,b){var c;if(x(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Kg(a,b,c){lg.call(this,a,b);this.target=c}B(Kg,lg);Kg.prototype.r=function(){Ub(this.target);Kg.v.r.call(this)};function Lg(a,b){var c=Qb("DIV");c.className="ol-layer-image";c.style.position="absolute";Kg.call(this,a,b,c);this.b=k;this.c=fe()}B(Lg,Kg);
|
||||
Lg.prototype.ga=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.W(),j=a.B;!j[0]&&!j[1]&&(b=g.I(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(sc(b,"change",this.Ib,l,this),ag(b)):2==g&&(f=b)));f!==k&&(g=f.H(),j=f.e,b=de(),he(b),le(b,a.size.width/2,a.size.height/2),ne(b,e),me(b,j/d,j/d),le(b,(g.h-c.x)/j,(c.y-g.k)/j),f!=this.b&&(c=$f(f,this),c.style.position="absolute",Sb(this.target),this.target.appendChild(c),this.b=f),je(b,this.c)||(Jg(this.target,b),ge(this.c,b)),og(a.attributions,
|
||||
f.ja()))};function Mg(a,b){var c=Qb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Kg.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Mg,Kg);
|
||||
Mg.prototype.ga=function(a,b){if(b.visible){var c=a.u,d=c.projection,e=this.a.W(),f=y(e).toString(),g=e.tileGrid;g===k&&(g=ig(d));var j=nf(g.a,c.resolution),m=dg(g,a.extent,g.a[j]),r={};r[j]={};var s=na(e.d,e,r,rg(function(a){return a!==k&&2==a.a},e,g,d)),q,v,u,t,z;for(t=m.h;t<=m.m;++t)for(z=m.i;z<=m.k;++z)if(u=new oe(j,t,z),q=e.b(u,g,d),q!==k){v=q.a;if(0==v)sc(q,"change",this.Pb,l,this),qg(a.Pa,e,u),v=gg(g,u),ue(a.Ub,q,f,v);else if(2==v){r[j][u.toString()]=q;continue}else if(3==v)continue;g.b(u,
|
||||
s)}s=Aa(Ma(r),Number);Ia(s);var d={},E;for(q=0;q<s.length;++q){u=s[q];u in this.b?f=this.b[u]:(f=fg(g,c.center,g.a[u]),f=new Ng(g,f),d[u]=i,this.b[u]=f);u=r[u];for(E in u){t=f;z=u[E];v=z.U;var D=v.toString();if(!(D in t.b)){var U=hg(t.d,v.n),Q=z.I(t),I=Q.style;I.position="absolute";I.left=(v.x-t.c.x)*U.width+"px";I.top=(t.c.y-v.y)*U.height+"px";t.a===k&&(t.a=document.createDocumentFragment());t.a.appendChild(Q);t.b[D]=z}}f.a!==k&&(f.target.appendChild(f.a),f.a=k)}E=Aa(Ma(this.b),Number);Ia(E);q=de();
|
||||
for(s=0;s<E.length;++s)if(u=E[s],f=this.b[u],u in r)if(z=f.g,t=f.f,he(q),le(q,a.size.width/2,a.size.height/2),ne(q,c.rotation),me(q,z/c.resolution,z/c.resolution),le(q,(t.x-c.center.x)/z,(c.center.y-t.y)/z),t=f,z=q,je(z,t.e)||(Jg(t.target,z),ge(t.e,z)),u in d){for(u-=1;0<=u;--u)if(u in this.b){t=this.b[u].target;t.parentNode&&t.parentNode.insertBefore(f.target,t.nextSibling);break}0>u&&Tb(this.target,f.target)}else{if(!a.B[0]&&!a.B[1]){v=dg(f.d,a.extent,f.d.a[f.c.n]);u=[];z=t=h;for(z in f.b)t=f.b[z],
|
||||
v.contains(t.U)||u.push(t);v=h;for(v=0;v<u.length;++v)t=u[v],z=t.U.toString(),Ub(t.I(f)),delete f.b[z]}}else Ub(f.target),delete this.b[u];b.opacity!=this.d&&(c=b.opacity,r=this.target.style,"opacity"in r?r.opacity=c:"MozOpacity"in r?r.MozOpacity=c:"filter"in r&&(r.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Ic(this.target,i),this.c=i);pg(a.Oa,e,j,m);kg(e,j,a.extent,g);ng(a,e)}else this.c&&(Ic(this.target,l),this.c=l)};
|
||||
function Ng(a,b){this.target=Qb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=ae(cg(a,b));this.g=a.a[b.n];this.b={};this.a=k;this.e=fe()};function Og(a,b){sg.call(this,a,b);this.c=Qb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Tb(a,this.c);this.f=i}B(Og,sg);Og.prototype.ua=function(a){Og.v.ua.call(this,a);wg(this.map)};Og.prototype.Ta=function(a){var b;a instanceof Dg?b=new Mg(this,a):a instanceof Cg&&(b=new Lg(this,a));this.c.appendChild(b.target);return b};
|
||||
Og.prototype.mb=function(a){a===k?this.f&&(Ic(this.c,l),this.f=l):(C(a.hb,function(b){var c=a.gb[y(b)];c.qb&&vg(this,b).ga(a,c)},this),this.f||(Ic(this.c,i),this.f=i),ug(a))};function Pg(a){this.a=a}Pg.prototype.W=n("a");function Qg(a){this.a=a}B(Qg,Pg);Qg.prototype.b=function(){return 35632};function Rg(a){this.a=a}B(Rg,Pg);Rg.prototype.b=function(){return 35633};function Sg(a,b){lg.call(this,a,b);this.A=new Float32Array(16);this.G=new Float32Array(16);this.qa=new Float32Array(16);this.La=new Float32Array(16);this.F=new Float32Array(16);this.c=i;this.Jb();this.Kb();this.Lb();this.Mb()}B(Sg,lg);function Tg(a){if(a.c){var b=a.F;he(b);ie(b,a.G,b);ie(b,a.A,b);ie(b,a.La,b);ie(b,a.qa,b);a.c=l}return a.F}p=Sg.prototype;p.aa=function(){return Sg.v.aa.call(this)};p.Jb=function(){var a=this.a.b(),b=this.A;he(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;mg(this)};
|
||||
p.Kb=function(){var a=this.a.c(),b=this.G;he(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;mg(this)};p.Lb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);ee(this.qa,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;mg(this)};
|
||||
p.Mb=function(){var a=this.a.f();ee(this.La,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;mg(this)};p.Ea=ba;function Ug(a,b){Sg.call(this,a,b);this.b=this.d=k;this.f=fe();this.e=de()}B(Ug,Sg);p=Ug.prototype;p.r=function(){var a=this.aa().a;a.isContextLost()||a.deleteTexture(this.b);Ug.v.r.call(this)};p.jc=n("f");p.kc=n("b");p.ic=n("e");p.Ea=function(){this.b=k};
|
||||
p.ga=function(a){var b=this.aa().a,c=a.u,d=c.center,e=c.resolution,f=c.rotation,g=this.d,j=this.b,m=this.a.W(),r=a.B;!r[0]&&!r[1]&&(c=m.I(a.extent,e,c.projection),c!==k&&(m=c.a,0==m?(sc(c,"change",this.Ib,l,this),ag(c)):2==m&&(g=c,j=$f(c,this),c=this.aa().a,m=c.createTexture(),c.bindTexture(3553,m),c.texImage2D(3553,0,6408,6408,5121,j),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10240,9729),j=m,this.b===k||a.wa.push(oa(function(a,
|
||||
b){a.isContextLost()||a.deleteTexture(b)},b,this.b)))));g!==k&&(m=this.aa().Wa(),b=g.H(),c=m.width*e,e*=m.height,m=this.e,he(m),me(m,2/c,2/e),ne(m,-f),le(m,b.h-d.x,b.i-d.y),me(m,b.da()/2,b.$()/2),le(m,1,1),d=this.f,he(d),me(d,1,-1),le(d,0,-1),this.d=g,this.b=j,og(a.attributions,g.ja()))};function Vg(a,b){this.L=a;this.Y=b}Vg.prototype.Q=function(){return new Vg(this.L,this.Y)};function Wg(a){this.a=[];if(a)a:{var b,c;if(a instanceof Wg){if(b=a.V(),c=a.M(),0>=a.Z()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Vg(b[d],c[d]));break a}}else b=Ma(a),c=La(a);for(d=0;d<b.length;d++)Xg(this,b[d],c[d])}}function Xg(a,b,c){var d=a.a;d.push(new Vg(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].L>c.L)a[b]=a[d],b=d;else break;a[b]=c}p=Wg.prototype;
|
||||
p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ca(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].L<b[f].L?g:f;if(b[f].L>e.L)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};p.M=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Y);return b};p.V=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].L);return b};p.Q=function(){return new Wg(this)};p.Z=function(){return this.a.length};
|
||||
p.Ha=function(){return 0==this.a.length};p.clear=function(){Ca(this.a)};function Yg(){Wg.call(this)}B(Yg,Wg);function Zg(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}B(Zg,Qg);ca(Zg);function $g(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}B($g,Rg);ca($g);
|
||||
function ah(a,b){Sg.call(this,a,b);this.vb=Zg.Xa();this.Qa=$g.Xa();this.e=this.g=this.f=this.z=k;this.j=h;this.d=de();this.xb=fe();this.t=this.b=k}B(ah,Sg);p=ah.prototype;p.r=function(){var a=this.aa().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));ah.v.r.call(this)};p.jc=n("d");p.kc=n("g");p.ic=n("xb");p.Ea=function(){this.e=this.g=this.f=this.z=k;this.j=h};
|
||||
p.ga=function(a){var b=this.aa(),c=b.a,d=a.u,e=d.projection,f=d.center,g=this.a.W(),j=y(g).toString(),m=g.tileGrid;m===k&&(m=ig(e));var r=nf(m.a,d.resolution),s=m.a[r],q=dg(m,a.extent,s),v;if(this.b!==k&&this.b.h==q.h&&this.b.i==q.i&&this.b.m==q.m&&this.b.k==q.k)v=this.t;else{var u=new Wd(q.da(),q.$()),t=hg(m,r),u=Math.max(u.width*t.width,u.height*t.height),u=Math.pow(2,Math.ceil(Math.log(u)/Math.log(2))),z=new Wd(s*u,s*u),E=eg(m,r),D=E.x+q.h*t.width*s,s=E.y+q.i*t.height*s;v=new Zd(D,s,D+z.width,
|
||||
s+z.height);s=this.aa().a;!x(this.j)||this.j!=u?(a.wa.push(oa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},s,this.e,this.g)),t=s.createTexture(),s.bindTexture(3553,t),s.texImage2D(3553,0,6408,u,u,0,6408,5121,k),s.texParameteri(3553,10240,9729),s.texParameteri(3553,10241,9729),D=s.createFramebuffer(),s.bindFramebuffer(36160,D),s.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=D,this.j=u):s.bindFramebuffer(36160,this.e);c.viewport(0,0,u,u);c.clearColor(0,
|
||||
0,0,0);c.clear(16384);c.disable(3042);u=bh(b,this.vb,this.Qa);c.useProgram(u);this.z===k&&(this.z={Yb:c.getAttribLocation(u,"aPosition"),Zb:c.getAttribLocation(u,"aTexCoord"),Ud:c.getUniformLocation(u,"uTileOffset"),Td:c.getUniformLocation(u,"uTexture")});this.f===k?(u=c.createBuffer(),c.bindBuffer(34962,u),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=u):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.z.Yb);c.vertexAttribPointer(this.z.Yb,2,5126,l,
|
||||
16,0);c.enableVertexAttribArray(this.z.Zb);c.vertexAttribPointer(this.z.Zb,2,5126,l,16,8);c.uniform1i(this.z.Td,0);var U={};U[r]={};for(var s=na(g.d,g,U,rg(function(a){return a!==k&&2==a.a&&ch(b.b,a.c())},g,m,e)),u=new Yg,Q=i,I,Y,E=q.h;E<=q.m;++E)for(Y=q.i;Y<=q.k;++Y)if(D=new oe(r,E,Y),t=g.b(D,m,e),t!==k){I=t.a;if(0==I)sc(t,"change",this.Pb,l,this),qg(a.Pa,g,D),I=gg(m,D),ue(a.Ub,t,j,I);else if(2==I)if(ch(b.b,t.c())){U[r][D.toString()]=t;continue}else I=gg(m,D),Q=I.x-f.x,I=I.y-f.y,Q=Math.sqrt(Q*Q+
|
||||
I*I),Xg(u,Q,t);else if(3==I)continue;Q=l;m.b(D,s)}e=Aa(Ma(U),Number);Ia(e);var V=new Float32Array(4);C(e,function(a){Ka(U[a],function(a){var d=cg(m,a.U),e=2*d.$()/z.height,f=2*(d.h-v.h)/z.width-1,g=2*(d.i-v.i)/z.height-1;V[0]=2*d.da()/z.width;V[1]=e;V[2]=f;V[3]=g;c.uniform4fv(this.z.Ud,V);dh(b,a);c.drawArrays(5,0,4)},this)},this);u.Ha()||a.wa.push(oa(function(a,b){var c,d;for(c=0;!b.Ha()&&4>c;++c)d=b.remove(),dh(a,d)},b,u));Q?(this.b=q,this.t=v):(this.t=this.b=k,a.P=i)}pg(a.Oa,g,r,q);kg(g,r,a.extent,
|
||||
m);ng(a,g);he(this.d);le(this.d,(d.center.x-v.h)/(v.m-v.h),(d.center.y-v.i)/(v.k-v.i));ne(this.d,d.rotation);me(this.d,a.size.width*d.resolution/(v.m-v.h),a.size.height*d.resolution/(v.k-v.i));le(this.d,-0.5,-0.5)};function eh(){this.o=0;this.c={};this.b=this.a=k}p=eh.prototype;p.clear=function(){this.o=0;this.c={};this.b=this.a=k};function ch(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.L,this),c=c.R};function fh(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.R,a.a.ha=k):(c.R.ha=c.ha,c.ha.R=c.R);c.R=k;c.ha=a.b;a.b.R=c;a.b=c;return c.Y}p.Z=n("o");p.V=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.ha)a[b++]=c.L;return a};
|
||||
p.M=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.ha)a[b++]=c.Y;return a};function gh(a){var b=a.a;delete a.c[b.L];b.R!==k&&(b.R.ha=k);a.a=b.R;a.a===k&&(a.b=k);--a.o}function hh(a,b,c){c={L:b,R:k,ha:a.b,Y:c};a.b===k?a.a=c:a.b.R=c;a.b=c;a.c[b]=c;++a.o};var ih=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function jh(a,b){var c,d,e=ih.length;for(d=0;d<e;++d)try{if(c=a.getContext(ih[d],b),c!==k)return c}catch(f){}return k}var kh=function(){if(!("WebGLRenderingContext"in w))return l;try{var a=Qb("CANVAS");return jh(a)!==k}catch(b){return l}}();function lh(){this.a="precision mediump float;\n\nuniform mat4 u_colorMatrix;\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(u_texture, v_texCoord);\n vec4 color = u_colorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * u_opacity;\n\n gl_FragColor = color;\n\n}"}B(lh,Qg);ca(lh);
|
||||
function mh(){this.a="attribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}"}B(mh,Rg);ca(mh);
|
||||
function nh(a,b){sg.call(this,a,b);this.c=Qb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Tb(a,this.c);this.p=i;this.A=new Wd(a.clientHeight,a.clientWidth);this.a=jh(this.c,{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});H(this.c,"webglcontextlost",this.Ea,l,this);H(this.c,"webglcontextrestored",this.Md,l,this);this.j=this.z=k;this.g={};this.f={};this.b=new eh;this.l=0;this.G=lh.Xa();this.J=mh.Xa();oh(this)}B(nh,sg);p=nh.prototype;
|
||||
p.ua=function(a){nh.v.ua.call(this,a);a.a()&&wg(this.map)};
|
||||
function dh(a,b){var c=a.a,d=b.c();if(ch(a.b,d))d=fh(a.b,d),c.bindTexture(3553,d.Tb),9729!=d.qc&&(c.texParameteri(3553,10240,9729),d.qc=9729),9729!=d.rc&&(c.texParameteri(3553,10240,9729),d.rc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.I());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);hh(a.b,d,{Tb:e,qc:9729,rc:9729})}}
|
||||
p.Ta=function(a){var b=k;a instanceof Dg?b=new ah(this,a):a instanceof Cg&&(b=new Ug(this,a));return b};p.r=function(){var a=this.a;a.isContextLost()||(Ka(this.f,function(b){a.deleteProgram(b)}),Ka(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Tb)}));nh.v.r.call(this)};p.cd=function(a,b){for(var c=this.a,d;1024<this.b.Z()-this.l;){d=this.b.a.Y;if(d===k)if(+this.b.a.L==b.time)break;else--this.l;else c.deleteTexture(d.Tb);gh(this.b)}};p.Wa=n("c");
|
||||
function bh(a,b,c){var d=y(b)+"/"+y(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,ph(a,b));e.attachShader(f,ph(a,c));e.linkProgram(f);return a.f[d]=f}function ph(a,b){var c=y(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.W());d.compileShader(e);return a.g[c]=e}p.Ea=function(a){a.C();this.j=this.z=k;this.g={};this.f={};this.b.clear();this.l=0;Ka(this.d,function(a){a.Ea()})};p.Md=function(){oh(this);wg(this.map)};
|
||||
function oh(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}p.Rb=function(a){nh.v.Rb.call(this,a);a.a()&&wg(this.map)};
|
||||
p.mb=function(a){var b=this.a;if(a===k)return this.p&&(Ic(this.c,l),this.p=l),l;hh(this.b,a.time.toString(),k);++this.l;C(a.hb,function(b){var c=a.gb[y(b)];c.visible&&c.qb&&vg(this,b).ga(a,c)},this);var c=a.size;this.A.width==c.width&&this.A.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.A=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=bh(this,this.G,this.J);b.useProgram(c);
|
||||
this.z===k&&(this.z={$b:b.getAttribLocation(c,"a_position"),ac:b.getAttribLocation(c,"a_texCoord"),Vd:b.getUniformLocation(c,"u_colorMatrix"),Yd:b.getUniformLocation(c,"u_texCoordMatrix"),Xd:b.getUniformLocation(c,"u_projectionMatrix"),Wd:b.getUniformLocation(c,"u_opacity"),Zd:b.getUniformLocation(c,"u_texture")});this.j===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.j=c):b.bindBuffer(34962,this.j);b.enableVertexAttribArray(this.z.$b);
|
||||
b.vertexAttribPointer(this.z.$b,2,5126,l,16,0);b.enableVertexAttribArray(this.z.ac);b.vertexAttribPointer(this.z.ac,2,5126,l,16,8);b.uniform1i(this.z.Zd,0);C(a.hb,function(c){var d=a.gb[y(c)];d.visible&&d.qb&&(d=vg(this,c),b.uniformMatrix4fv(this.z.Yd,l,d.jc()),b.uniformMatrix4fv(this.z.Xd,l,d.ic()),b.uniformMatrix4fv(this.z.Vd,l,Tg(d)),b.uniform1f(this.z.Wd,c.e()),b.bindTexture(3553,d.kc()),b.drawArrays(5,0,4))},this);this.p||(Ic(this.c,i),this.p=i);ug(a);1024<this.b.Z()-this.l&&a.wa.push(na(this.cd,
|
||||
this))};var qh={},rh={de:"canvas",ge:"dom",Re:"webgl"},sh=["webgl","canvas","dom"],tg="layers";
|
||||
function S(a){var b,c;M.call(this);var d={};d[tg]=x(a.layers)?a.layers:new N;d.view=x(a.view)?a.view:new R;c=sg;var e;e=x(a.renderers)?a.renderers:x(a.renderer)?[a.renderer]:sh;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(Ig){c=Hg;break}}else if("dom"==f){c=Og;break}else if("webgl"==f&&kh){c=nh;break}e=[];(x(a.attributionControl)?a.attributionControl:1)&&e.push(new uf({}));x(a.scaleLineControl)&&a.scaleLineControl&&e.push(new wf({units:x(a.scaleLineUnits)?a.scaleLineUnits:h}));if(x(a.zoomControl)?
|
||||
a.zoomControl:1)e.push(new yf({delta:x(a.zoomDelta)?a.zoomDelta:4}));if(x(a.interactions))b=a.interactions;else{b=new N;(x(a.rotate)?a.rotate:1)&&b.push(new Hf(Bf));if(x(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Af(x(a.zoomDelta)?a.zoomDelta:4));(x(a.touchPan)?a.touchPan:1)&&b.push(new Pf(new Ve(-0.005,0.05,100)));(x(a.touchRotate)?a.touchRotate:1)&&b.push(new Qf);(x(a.touchZoom)?a.touchZoom:1)&&b.push(new Rf);(x(a.dragPan)?a.dragPan:1)&&b.push(new Ff(Cf,new Ve(-0.005,0.05,100)));f=x(a.keyboardPanOffset)?
|
||||
a.keyboardPanOffset:80;if(x(a.keyboard)?a.keyboard:1)b.push(new Kf(f)),b.push(new Lf);if(x(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new Mf(x(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(x(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Jf(Df))}a=ga(a.target)?document.getElementById(a.target):a.target;this.c=new od(this.Pd,h,this);bc(this,this.c);this.Mc=de();this.Rc=de();this.d=k;this.f=0;this.p=l;this.G=a;this.F=k;this.b=Ob("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow=
|
||||
"hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";this.G.appendChild(this.b);this.A=Ob("DIV","ol-overlaycontainer");H(this.A,["click",Kd?"touchstart":"mousedown"],fc);this.b.appendChild(this.A);a=new bf(this);H(a,La(mf),this.xc,l,this);bc(this,a);a=new Ad(document);H(a,"key",this.lc,l,this);bc(this,a);a=new Hd(this.b);H(a,"mousewheel",this.lc,l,this);bc(this,a);this.vb=b;this.J=new c(this.b,this);bc(this,this.J);this.Uc=new vd;H(this.Uc,"resize",this.mc,
|
||||
l,this);this.g=[];this.xb=[];this.Qc=na(this.Ed,this);this.qa=new te(na(this.gd,this));H(this,Qd("view"),this.Kd,l,this);H(this,Qd("size"),this.Gd,l,this);H(this,Qd("backgroundColor"),this.pd,l,this);this.lb(d);this.mc();C(e,function(a){a.a(this)},this)}B(S,M);S.prototype.j=function(a){sf(this);this.g.push(a)};S.prototype.Lc=function(a){sf(this);Array.prototype.push.apply(this.g,a)};S.prototype.r=function(){Ub(this.b);S.v.r.call(this)};S.prototype.La=function(){return this.s("backgroundColor")};
|
||||
S.prototype.getBackgroundColor=S.prototype.La;S.prototype.Pc=n("J");function $e(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];ke(c.yc,d,d);return new L(d[0],d[1])}S.prototype.Nc=n("vb");S.prototype.t=function(){return this.s(tg)};S.prototype.getLayers=S.prototype.t;function Gf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];ke(c.fc,d,d);return new Ye(d[0],d[1])}S.prototype.e=function(){return this.s("size")};S.prototype.getSize=S.prototype.e;S.prototype.a=function(){return this.s("view")};
|
||||
S.prototype.getView=S.prototype.a;p=S.prototype;p.gd=function(a,b,c){var d=this.d;if(d===k||!(b in d.Pa)||!d.Pa[b][a.U.toString()])return Infinity;b=d.u.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};p.lc=function(a,b){this.xc(new Ze(b||a.type,this,a))};p.xc=function(a){a.b=this.d;var b=this.vb.a;if(K(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].oa(a),a.ab);c--);};
|
||||
p.Ed=function(){var a=this.qa,b=a.a,c,d=0,e,f,g,j;for(c=0;c<b.length;++c)e=b[c],g=e[1],j=e[2],f=e[3],f=a.d(g,j,f),Infinity==f?(e=g.c(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)we(a,b);for(a=this.qa;0<a.a.length&&a.c<a.e;)b=a,d=b.a,c=d[0][1],1==d.length?d.length=0:(d[0]=d.pop(),we(b,0)),d=c.c(),delete b.b[d],b=c,sc(b,"change",a.f,l,a),0==b.a&&(b.a=1,b.d=[sc(b.b,"error",b.g,l,b),sc(b.b,"load",b.l,l,b)],b.b.src=b.f),++a.c;a=this.xb;for(b=0;b<a.length;++b)a[b](this,
|
||||
this.d);a.length=0};p.pd=function(){wg(this)};p.mc=function(){this.Qa(new Wd(this.G.clientWidth,this.G.clientHeight))};p.Gd=function(){wg(this)};p.Ld=function(){wg(this)};p.Kd=function(){this.F!==k&&(J(this.F),this.F=k);var a=this.a();a!=k&&(this.F=H(a,"changed",this.Ld,l,this));wg(this)};p.Ga=function(){var a=this.a(),b;if(b=x(a)){if(a=a.Ga())a=this.e()!=k;b=a}return b};function wg(a){a.c.N==k&&(0===a.f?(a=a.c,pd(a),a.Eb()):a.p=i)}function sf(a){0===a.f?a.c.N!=k||a.c.start():a.p=i}
|
||||
p.Pd=function(a){var b;if(0==this.f){var c=this.e();b=this.t();var d=x(b)?b.a:h;b=this.a();var e=x(b)?this.a():h,f=k;if(x(d)&&x(c)&&x(e)&&e.Ga()){var f=this.La(),g=Fa(b.e),j={},m;for(b=0;b<d.length;++b){m=d[b];var r=j,s=y(m),q=m;m=q.b();var v=q.c(),u=q.d(),t=q.e(),z=q.W().c(),E=q.f(),q=q.a();r[s]={brightness:x(m)?m:0,contrast:x(v)?v:1,hue:x(u)?u:0,opacity:x(t)?t:1,qb:z,saturation:x(E)?E:1,visible:x(q)?q:i}}b=e.S();r=e.wc();s=e.T();e=e.ka();r={center:new L(b.x,b.y),projection:r,resolution:s,rotation:e};
|
||||
f={P:l,attributions:{},backgroundColor:x(f)?f:new Vd,fc:this.Mc,extent:k,hb:d,gb:j,yc:this.Rc,wa:[],size:c,Ub:this.qa,time:a,Oa:{},u:r,B:g,Pa:{}}}a=this.g;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=r.center;b=r.resolution;d=r.rotation;e=b*c.width/2;c=b*c.height/2;c=[new L(-e,-c),new L(-e,c),new L(e,-c),new L(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=$d.apply(k,c)}this.d=f;this.J.mb(f);this.p=l;f!==k&&(f.P&&sf(this),Array.prototype.push.apply(this.xb,
|
||||
f.wa));K(this,new Xe("postrender",this,f));w.setTimeout(this.Qc,0)}};p.Rd=function(a){this.q("backgroundColor",a)};S.prototype.setBackgroundColor=S.prototype.Rd;S.prototype.Sc=function(a){this.q(tg,a)};S.prototype.setLayers=S.prototype.Sc;S.prototype.Qa=function(a){this.q("size",a)};S.prototype.setSize=S.prototype.Qa;S.prototype.Tc=function(a){this.q("view",a)};S.prototype.setView=S.prototype.Tc;function qf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.p&&(a=a.c,pd(a),a.Eb())}}
|
||||
qh.Zc=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Wc(b);return hd(a,"renderers")?id(a,"renderers").split(","):hd(a,"renderer")?[id(a,"renderer")]:sh};He(Vf);He(Yf);function th(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
|
||||
function uh(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}C(Yf,function(a){C(Vf,function(b){Je(a,b,th);Je(b,a,uh)})});var vh={ae:"bottom-left",be:"bottom-right",Je:"top-left",Ke:"top-right"};function T(a){M.call(this);this.b=Qb("DIV");this.b.style.position="absolute";this.a={Sa:"",ib:"",sb:"",ub:"",visible:i};H(this,Qd("element"),this.qd,l,this);H(this,Qd("map"),this.yd,l,this);H(this,Qd("position"),this.Cd,l,this);H(this,Qd("positioning"),this.Dd,l,this);x(a.element)&&this.Dc(a.element);x(a.position)&&this.p(a.position);x(a.positioning)&&this.q("positioning",a.positioning);x(a.map)&&this.j(a.map)}B(T,M);
|
||||
T.prototype.f=function(){return this.s("element")};T.prototype.getElement=T.prototype.f;T.prototype.d=function(){return this.s("map")};T.prototype.getMap=T.prototype.d;T.prototype.g=function(){return this.s("position")};T.prototype.getPosition=T.prototype.g;T.prototype.e=function(){return this.s("positioning")};T.prototype.getPositioning=T.prototype.e;p=T.prototype;p.qd=function(){Sb(this.b);var a=this.f();a!=k&&Rb(this.b,a)};
|
||||
p.yd=function(){this.c!==k&&(Ub(this.b),J(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.Od,l,this),wh(this),Rb(a.A,this.b))};p.Od=function(){wh(this)};p.Cd=function(){wh(this)};p.Dd=function(){wh(this)};p.Dc=function(a){this.q("element",a)};T.prototype.setElement=T.prototype.Dc;T.prototype.j=function(a){this.q("map",a)};T.prototype.setMap=T.prototype.j;T.prototype.p=function(a){this.q("position",a)};T.prototype.setPosition=T.prototype.p;
|
||||
function wh(a){var b=a.d(),c=a.g();if(!x(b)||!b.Ga()||!x(c))a.a.visible&&(Ic(a.b,l),a.a.visible=l);else{var c=Gf(b,c),d=b.e(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.ib&&(a.a.ib=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.sb!=f&&(a.a.sb=b.right=f)}else""!==a.a.sb&&(a.a.sb=b.right=""),f=Math.round(c.x)+"px",a.a.ib!=f&&(a.a.ib=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Sa&&(a.a.Sa=b.bottom=""),c=Math.round(c.y)+"px",a.a.ub!=c&&(a.a.ub=b.top=c)):(""!==a.a.ub&&
|
||||
(a.a.ub=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Sa!=c&&(a.a.Sa=b.bottom=c));a.a.visible||(Ic(a.b,i),a.a.visible=i)}};function X(a){M.call(this);this.a=k;xh&&(H(this,Qd("projection"),this.p,l,this),this.J=navigator.geolocation.watchPosition(na(this.F,this),na(this.G,this),a))}B(X,M);X.prototype.r=function(){navigator.geolocation.clearWatch(this.J);X.v.r.call(this)};X.prototype.p=function(){var a=this.c();a!=k&&(this.b=Ce(Me("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.b(a,a,2),this.q("position",new L(a[0],a[1]))))};var xh="geolocation"in navigator;
|
||||
function ye(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*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*ze.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var ze=new function(){this.a=6370997};var Ae="object"==typeof Proj4js,Be={Nc:"degrees",le:"ft",pe:"m"};function O(a,b,c,d){this.a=a;this.c=b;this.na=c;this.d=x(d)?d:"enu";this.f=k}O.prototype.h=m("a");O.prototype.H=m("na");O.prototype.o=m("c");O.prototype.g=m("d");function Ce(a,b){O.call(this,a,b.units,k,b.axis);this.zc=b;this.e=k}B(Ce,O);
|
||||
Ce.prototype.b=function(a,b){if("degrees"==this.c)return a;this.e===k&&(this.e=De(this,Ee("EPSG:4326")));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.e(c,c,2),c=(ye(new L(c[0],c[1]),new L(c[2],c[3]))+ye(new L(c[4],c[5]),new L(c[6],c[7])))/2;"ft"==this.c&&(c/=0.3048);return c};var Fe={},Ge={},He={};function Ie(a){C(a,function(a){Je(a)});C(a,function(b){C(a,function(a){b!==a&&Ke(b,a,Le)})})}function Je(a){Ge[a.a]=a;Ke(a,a,Le)}
|
||||
function Me(a){return a!=k?ga(a)?Ne(a):a:Ne("EPSG:3857")}function Ke(a,b,c){a=a.a;b=b.a;a in He||(He[a]={});He[a][b]=c}function Ne(a){var b=Ge[a];Ae&&!x(b)&&(b=Ee(a));x(b)||(b=k);return b}function Ee(a){var b=Fe[a];x(b)||(b=new Proj4js.Proj(a),b=new Ce(a,b),Fe[a]=b);return b}
|
||||
function De(a,b){var c=a.a,d=b.a,e;c in He&&d in He[c]&&(e=He[c][d]);if(Ae&&!x(e)){var f;f=(a instanceof Ce?a:Ee(a.a)).zc;var g;g=(b instanceof Ce?b:Ee(b.a)).zc;e=function(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e,v=0;v<d;v+=c)e=new Proj4js.Point(a[v],a[v+1]),e=Proj4js.transform(f,g,e),b[v]=e.x,b[v+1]=e.y;return b};Ke(a,b,e)}x(e)||(e=Oe);return e}function Pe(a,b){var c=Ne(a),d=Ne(b);return De(c,d)}
|
||||
function Oe(a,b){if(x(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Le(a,b){var c;if(x(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function Qe(a){Zb.call(this);this.o=x(a.projection)?a.projection:k;this.h=x(a.extent)?a.extent:x(a.projection)?a.projection.H():k;this.e=x(a.attributions)?a.attributions:k}B(Qe,kd);Qe.prototype.ka=m("e");Qe.prototype.H=m("h");Qe.prototype.c=nd;function P(a){M.call(this);this.g=a.source;this.h(x(a.brightness)?a.brightness:0);this.p(x(a.contrast)?a.contrast:1);this.t(x(a.hue)?a.hue:0);this.w(x(a.opacity)?a.opacity:1);this.F(x(a.saturation)?a.saturation:1);this.G(x(a.visible)?a.visible:i);this.g.c()||sc(this.g,"load",this.J,l,this)}B(P,M);P.prototype.b=function(){return this.s("brightness")};P.prototype.getBrightness=P.prototype.b;P.prototype.c=function(){return this.s("contrast")};P.prototype.getContrast=P.prototype.c;P.prototype.d=function(){return this.s("hue")};
|
||||
P.prototype.getHue=P.prototype.d;P.prototype.e=function(){return this.s("opacity")};P.prototype.getOpacity=P.prototype.e;P.prototype.f=function(){return this.s("saturation")};P.prototype.getSaturation=P.prototype.f;P.prototype.Y=m("g");P.prototype.a=function(){return this.s("visible")};P.prototype.getVisible=P.prototype.a;P.prototype.J=function(){K(this,"load")};P.prototype.h=function(a){a=Eb(a,-1,1);a!=this.b()&&this.q("brightness",a)};P.prototype.setBrightness=P.prototype.h;
|
||||
P.prototype.p=function(a){a=Math.max(0,a);a!=this.c()&&this.q("contrast",a)};P.prototype.setContrast=P.prototype.p;P.prototype.t=function(a){a!=this.d()&&this.q("hue",a)};P.prototype.setHue=P.prototype.t;P.prototype.w=function(a){a=Eb(a,0,1);a!=this.e()&&this.q("opacity",a)};P.prototype.setOpacity=P.prototype.w;P.prototype.F=function(a){a=Math.max(0,a);a!=this.f()&&this.q("saturation",a)};P.prototype.setSaturation=P.prototype.F;P.prototype.G=function(a){a=!!a;a!=this.a()&&this.q("visible",a)};
|
||||
P.prototype.setVisible=P.prototype.G;function Re(a){return 1-Math.pow(1-a,3)}function Se(a){return 3*a*a-2*a*a*a};function Te(){M.call(this);this.e=[0,0]}B(Te,M);function Ue(a,b){a.e[1]+=b};var Ve={qc:aa(),Jc:function(a){return 0.5>a?Se(2*a):1-Se(2*(a-0.5))},$c:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Cb:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var We={Cb:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Ve.Jc;return function(a,g){if(g.time<c)return g.R=i,g.B[0]+=1,i;if(g.time<c+d){var j=e((g.time-c)/d),n=b-g.u.resolution;g.R=i;g.u.resolution+=j*n;g.B[0]+=1;return i}return l}},pa:function(a){var b=a.source,c=x(a.start)?a.start:pa(),d=b.x,e=b.y,f=x(a.duration)?a.duration:1E3,g=x(a.easing)?a.easing:Se;return function(a,b){if(b.time<c)return b.R=i,b.B[0]+=1,i;if(b.time<c+f){var r=
|
||||
1-g((b.time-c)/f),s=d-b.u.center.x,q=e-b.u.center.y;b.R=i;b.u.center.x+=r*s;b.u.center.y+=r*q;b.B[0]+=1;return i}return l}},rotate:function(a){var b=a.rotation,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Se;return function(a,g){if(g.time<c)return g.R=i,g.B[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),n=b-g.u.rotation;g.R=i;g.u.rotation+=j*n;g.B[0]+=1;return i}return l}},zoom:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,
|
||||
e=x(a.easing)?a.easing:Ve.qc;return function(a,g){if(g.time<c)return g.R=i,g.B[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),n=b-g.u.resolution;g.R=i;g.u.resolution+=j*n;g.B[0]+=1;return i}return l}}};function Xe(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function Ye(a){for(var b=pa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Na>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Na-b.Na);return a.b>a.d}return l}Xe.prototype.pa=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return We.pa({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Ze(a,b,c){ec.call(this,a);this.map=b;this.bb=l;this.b=x(c)?c:k}B(Ze,ec);Ze.prototype.C=function(){Ze.v.C.call(this);this.bb=i};function $e(a,b){Gb.call(this,a,b)}B($e,Gb);function af(a,b,c,d){Ze.call(this,a,b,d);this.a=c;this.f=this.e=k}B(af,Ze);af.prototype.d=function(){this.e===k&&(this.e=bf(this.map,cf(this)));return this.e};function cf(a){if(a.f===k){var b=Gc(a.a,a.map.b);a.f=new $e(b.x,b.y)}return a.f}
|
||||
function df(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.o=this.h=this.f=k;a=this.a.b;this.h=H(a,["click","dblclick"],this.dc,l,this);this.o=H(a,"mousedown",this.xd,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Id,l,this),H(a,["touchmove","MSPointerMove"],this.Hd,l,this),H(a,["touchend","MSPointerUp"],this.Gd,l,this)]}B(df,kd);p=df.prototype;p.dc=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new af(ef,this.a,a):new af(ff,this.a,a))}};
|
||||
p.zd=function(a){this.e&&(this.c=k,C(this.d,J),this.e=this.d=k,this.b&&K(this,new af(gf,this.a,a)))};p.xd=function(a){K(this,new af(hf,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[H(document,"mousemove",this.yd,l,this),H(document,"mouseup",this.zd,l,this)],a.C())};p.yd=function(a){var b;this.b||(this.b=i,b=new af(jf,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new af(kf,this.a,a);K(this,b)};
|
||||
p.Id=function(a){a.C();this.c=a;this.b=l;K(this,new af(lf,this.a,a))};p.Hd=function(a){this.b=i;K(this,new af(mf,this.a,a))};p.Gd=function(a){K(this,new af(nf,this.a,a));this.b||(a=pa(),this.f=!this.f||250<a-this.f?a:0,this.dc(this.c));this.c=k};p.r=function(){J(this.h);J(this.o);this.d!==k&&(C(this.d,J),this.d=k);this.g!==k&&(C(this.g,J),this.g=k);df.v.r.call(this)};
|
||||
var ff="click",ef="dblclick",hf="down",jf="dragstart",kf="drag",gf="dragend",lf="touchstart",mf="touchmove",nf="touchend",of={de:ff,ee:ef,ge:hf,je:jf,he:kf,ie:gf,ye:lf,xe:mf,we:nf};function pf(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function qf(a){this.resolution=a;this.rotation=function(a,c){if(x(a))return 0.1>=Math.abs(a+c)?0:a+c}};function Q(a){Te.call(this);var a=a||{},b={};b.center=x(a.center)?a.center:k;b.projection=Me(a.projection);if(x(a.resolution))b.resolution=a.resolution;else if(x(a.zoom)){var c=b.projection.H(),c=Math.max(c.l-c.i,c.k-c.j);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.nb(b);if(x(a.resolutions))var d=a.resolutions,a=function(a,b){if(x(a)){var c=pf(d,a),c=Eb(c+b,0,d.length-1);return d[c]}};else{x(a.maxResolution)&&x(a.numZoomLevels)&&x(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
|
||||
a=a.zoomFactor):(a=Me(a.projection).H(),b=Math.max(a.l-a.i,a.k-a.j)/256,c=29,a=2);var e=a,f=b,g=c-1,a=function(a,b){if(x(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);x(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new qf(a)}B(Q,Te);Q.prototype.M=function(){return this.s("center")};Q.prototype.getCenter=Q.prototype.M;Q.prototype.H=function(a){var b=this.M(),c=this.P();return new $d(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};Q.prototype.wc=function(){return this.s("projection")};
|
||||
Q.prototype.getProjection=Q.prototype.wc;Q.prototype.P=function(){return this.s("resolution")};Q.prototype.getResolution=Q.prototype.P;Q.prototype.X=function(){return this.s("rotation")||0};Q.prototype.getRotation=Q.prototype.X;Q.prototype.Ha=function(){return this.M()!=k&&x(this.P())};Q.prototype.a=function(a){this.q("center",a)};Q.prototype.setCenter=Q.prototype.a;Q.prototype.f=function(a){this.q("projection",a)};Q.prototype.setProjection=Q.prototype.f;
|
||||
Q.prototype.c=function(a){this.q("resolution",a)};Q.prototype.setResolution=Q.prototype.c;Q.prototype.d=function(a){this.q("rotation",a)};Q.prototype.setRotation=Q.prototype.d;Q.prototype.rotate=function(a,b,c,d){b=this.b.rotation(b,0);rf(this,a,b,c,d)};
|
||||
function rf(a,b,c,d,e){if(c!=k){var f=a.X(),g=a.M();x(f)&&(x(g)&&x(e))&&(sf(b),b.c(We.rotate({rotation:f,duration:e,easing:Re})),x(d)&&b.c(We.pa({source:g,duration:e,easing:Re})));if(d!=k){var e=a.M(),j=new L(e.x-d.x,e.y-d.y);j.rotate(c-a.X());j.x+=d.x;j.y+=d.y;tf(b,function(){this.a(j);this.d(c)},a)}else a.d(c)}}Q.prototype.zoom=function(a,b,c,d){b=this.b.resolution(b,0);uf(this,a,b,c,d)};function vf(a,b,c,d,e){var f=a.P(),c=a.b.resolution(f,c);uf(a,b,c,d,e)}
|
||||
function uf(a,b,c,d,e){if(c!=k){var f=a.P(),g=a.M();x(f)&&(x(g)&&x(e))&&(sf(b),b.c(We.zoom({resolution:f,duration:e,easing:Re})),x(d)&&b.c(We.pa({source:g,duration:e,easing:Re})));if(d!=k){var e=a.M(),f=a.P(),j=new L(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);tf(b,function(){this.a(j);this.c(c)},a)}else a.c(c)}};function wf(a){Zb.call(this);this.element=x(a.element)?a.element:k;this.p=a.target;this.b=k;x(a.map)&&this.a(a.map)}B(wf,Zb);wf.prototype.r=function(){Ub(this.element);wf.v.r.call(this)};wf.prototype.a=function(a){this.b===k||Ub(this.element);this.b=a;this.b!==k&&(x(this.p)?this.p:a.w).appendChild(this.element)};function xf(a){this.g=Qb("UL");var b=Ob("DIV",{"class":"ol-attribution ol-unselectable"},this.g);wf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}B(xf,wf);
|
||||
xf.prototype.h=function(a){var b=a.b;if(b===k)this.f&&(Jc(this.element,l),this.f=l);else{var c={},d={},a=this.b.t();x(a)&&a.forEach(function(a){a=a.Y();d[y(a).toString()]=a;a=a.ka();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],t=y(b).toString(),c[t]=i}});var e=b.attributions,a={},f;for(f in e)a[f]=e[f];f=b.Pa;var b={},g,j,n,r,s;for(s in f)if(e=d[s],r=e.ka(),r!==k){g=f[s];for(e=0;e<r.length;++e)if(j=r[e],n=y(j).toString(),!(n in b)){var q;a:if(j.a===k)q=i;else{var v=q=h,u=h;for(u in g)if(u in j.a){v=
|
||||
g[u];for(q=0;q<j.a[u].length;++q)if(Zd(j.a[u][q],v)){q=i;break a}}q=l}q&&(b[n]=j)}}Ua(a,b);s=Aa(Ma(a),Number);Ia(s);var t;for(f=0;f<s.length;++f)t=s[f].toString(),t in this.c?this.d[t]||(Jc(this.c[t],i),this.d[t]=i):(b=Qb("LI"),b.innerHTML=a[t].b,this.g.appendChild(b),this.c[t]=b,this.d[t]=i),delete c[t];for(t in c)Ub(this.c[t]),delete this.c[t],delete this.d[t];a=0!=s.length;this.f!=a&&(Jc(this.element,a),this.f=a)}};
|
||||
xf.prototype.a=function(a){this.e!==k&&(C(this.e,J),this.e=k);xf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.h,l,this)])};var yf={Nc:"degrees",ne:"imperial",re:"nautical",qe:"metric",ze:"us"};function zf(a){a=a||{};this.g=Ob("DIV",{"class":"ol-scale-line-inner"});this.o=Ob("DIV",{"class":"ol-scale-line ol-unselectable"},this.g);this.h=x(a.minWidth)?a.minWidth:64;this.c=x(a.units)?a.units:"metric";this.e=k;this.f=l;this.t="";this.d=k;wf.call(this,{element:this.o,map:a.map,target:a.target})}B(zf,wf);var Af=[1,2,5];
|
||||
zf.prototype.w=function(a){a=a.b;if(a===k)this.f&&(Jc(this.o,l),this.f=l);else{var a=a.u,b=a.center,c=a.projection,a=c.b(a.resolution,b),d=c.c;"degrees"==d&&("metric"==this.c||"imperial"==this.c)?(this.d=k,b=Math.cos(b.y*Math.PI/180),a*=Math.PI*b*ze.a/180):("ft"==d||"m"==d)&&"degrees"==this.c?(this.d===k&&(this.d=De(c,Ne("EPSG:4326"))),b=[b.x,b.y],b=this.d(b,b,2),b=Math.cos(b[1]*Math.PI/180),c=ze.a,"ft"==d&&(c/=0.3048),a*=180/(Math.PI*b*c)):this.d=k;b=this.h*a;d="";"degrees"==this.c?b<1/60?(d="\u2033",
|
||||
a*=3600):1>b?(d="\u2032",a*=60):d="\u00b0":"imperial"==this.c?0.9144>b?(d="in",a/=0.0254):1609.344>b?(d="ft",a/=0.3048):(d="mi",a/=1609.344):"nautical"==this.c?(a/=1852,d="nm"):"metric"==this.c?1>b?(d="mm",a*=1E3):1E3>b?d="m":(d="km",a/=1E3):"us"==this.c&&(0.9144>b?(d="in",a*=39.37):1609.344>b?(d="ft",a/=0.30480061):(d="mi",a/=1609.3472));for(var b=3*Math.floor(Math.log(this.h*a)/Math.log(10)),e,f;;){e=Af[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.h)break;++b}e=e+d;this.t!=e&&
|
||||
(this.t=this.g.innerHTML=e);this.F!=f&&(this.g.style.width=f+"px",this.F=f);this.f||(Jc(this.o,i),this.f=i)}};zf.prototype.a=function(a){this.e!==k&&(C(this.e,J),this.e=k);zf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.w,l,this)])};function Bf(a){var b=Ob("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Ob("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Ob("DIV","ol-zoom ol-unselectable",b,c);wf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(Bf,wf);Bf.prototype.d=function(a){a.C();a=this.b;sf(a);vf(a.a(),a,this.c,h,250)};Bf.prototype.e=function(a){a.C();a=this.b;sf(a);vf(a.a(),a,-this.c,h,250)};function Cf(){};function Df(a){this.a=a}B(Df,Cf);Df.prototype.oa=function(a){var b=a.a;if(a.type==ef&&(Ld||kc(a.a))){var c=a.map,d=a.d(),e=a.a.ma?-this.a:this.a;vf(c.a(),c,e,d,250);a.C();b.C()}};function Ef(a){return a.ca&&!a.qb&&a.ma}function Ff(a){return!a.ca&&!a.qb&&!a.ma}function Gf(a){return!a.ca&&!a.qb&&a.ma};function Hf(){this.e=l;this.p=this.na=this.h=this.g=0;this.Ma=this.f=k}B(Hf,Cf);p=Hf.prototype;p.Ib=ba;p.cb=ba;p.eb=md;p.oc=ba;p.oa=function(a){var b=a.map;if(b.Ha()){var b=b.a(),c=a.a;a.type==hf&&this.oc(a);this.e?a.type==kf?(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.Ib(a)):a.type==gf&&(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.cb(a),this.e=l):a.type==jf&&(this.g=c.clientX,this.h=c.clientY,this.b=this.d=0,this.f=b.M(),this.Ma=a.d(),this.eb(a)&&(this.e=i,a.C()))}};function If(a,b){Hf.call(this);this.o=a;this.a=b;this.c=k}B(If,Hf);If.prototype.Ib=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Na:pa()});var a=a.map,b=a.a(),c=b.P(),d=b.X(),c=new L(-c*this.d,c*this.b);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);sf(a);b.a(d)};
|
||||
If.prototype.cb=function(a){var b=a.map,a=b.a();Ue(a,-1);if(this.a&&Ye(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.M();this.c=this.a.pa(e);b.c(this.c);e=Jf(b,e);b=bf(b,new $e(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};If.prototype.eb=function(a){var b=a.a;if(this.o(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,Na:pa()})}a=a.map;sf(a);Ue(a.a(),1);return i}return l};
|
||||
If.prototype.oc=function(a){var b=a.map,c=b.a();this.c!==k&&Da(b.h,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k)};function Kf(a){Hf.call(this);this.c=a}B(Kf,Hf);Kf.prototype.Ib=function(a){var b=a.map,c=b.f(),a=cf(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();sf(b);rf(d,b,d.X()-a)}this.a=c};Kf.prototype.cb=function(a){var a=a.map,b=a.a();b.rotate(a,b.X(),h,250);Ue(b,-1)};Kf.prototype.eb=function(a){var b=a.a;return kc(b)&&this.c(b)?(a=a.map,b=a.a(),sf(a),this.a=h,Ue(b,1),i):l};function Lf(a){var b=Ob("DIV","ol-dragbox");this.c=k;this.e=a.Ma;this.d=k;wf.call(this,{element:b,map:a.map})}B(Lf,wf);Lf.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Jf(a,this.e),Cc(this.element,this.c),Kc(this.element,new Xd(0,0)),this.d=H(a,kf,this.f,l,this));Lf.v.a.call(this,a)};Lf.prototype.f=function(a){var b=this.b,a=a.d(),b=Jf(b,a);Cc(this.element,new $e(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Kc(this.element,new Xd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Mf(a){Hf.call(this);this.c=a;this.a=k}B(Mf,Hf);Mf.prototype.cb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=ae(this.Ma,a.d());tf(b,function(){var a=b.a(),e=b.f();a.a(new L((c.i+c.l)/2,(c.j+c.k)/2));e=Math.max((c.l-c.i)/e.width,(c.k-c.j)/e.height);e=a.b.resolution(e,0);a.c(e);a.d(0)})}};Mf.prototype.eb=function(a){var b=a.a;return kc(b)&&this.c(b)?(this.a=new Lf({map:a.map,Ma:this.Ma}),i):l};function Nf(a){this.a=a}B(Nf,Cf);Nf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.wa;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.P()*this.a,c=40==c?new L(0,-e):37==c?new L(-e,0):39==c?new L(e,0):new L(0,e),e=d.M();d.a(new L(e.x+c.x,e.y+c.y));b.C();a.C()}}};function Of(){}B(Of,Cf);Of.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.$a;if(43==c||45==c){var d=a.map,c=43==c?4:-4;sf(d);vf(d.a(),d,c,h,100);b.C();a.C()}}};function Pf(){this.a=0;this.c=k;this.d=this.b=h}B(Pf,Cf);Pf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.b/3;x(this.b)||(this.b=pa());var d=Math.max(80-(pa()-this.b),0);w.clearTimeout(this.d);this.d=w.setTimeout(na(this.e,this,b),d);a.C();c.C()}};Pf.prototype.e=function(a){var b=Eb(this.a,-1,1),c=a.a();sf(a);vf(c,a,-b,this.c,250);this.a=0;this.c=k;this.d=this.b=h};function Qf(){this.g=l;this.h={};this.targetTouches=[]}B(Qf,Cf);function Rf(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new $e(c/b,d/b)}Qf.prototype.e=ba;Qf.prototype.d=md;Qf.prototype.f=md;Qf.prototype.oa=function(a){var b=a.a.K;x(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==nf?delete this.h[b.pointerId]:this.h[b.pointerId]=b,this.targetTouches=La(this.h));this.g&&(a.type==mf?this.e(a):a.type==nf&&(this.g=this.d(a)));a.type==lf&&(this.g=this.f(a))};function Sf(a){Qf.call(this);this.a=a;this.b=this.c=k}B(Sf,Qf);Sf.prototype.e=function(a){var b=Rf(this.targetTouches);if(this.b!==k){this.a&&this.a.a.push({x:b.x,y:b.y,Na:pa()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new L(c,d),d=a.P();c.x*=d;c.y*=d;c=c.rotate(a.X()).add(a.M());a.a(c)}this.b=b};
|
||||
Sf.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){Ue(a,-1);if(this.a&&Ye(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.M();this.c=this.a.pa(e);b.c(this.c);e=Jf(b,e);b=bf(b,new $e(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return l}this.b=k;return i};Sf.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Da(b.h,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);Ue(c,1);return i}return l};function Tf(a){Qf.call(this);this.a=l;this.b=0;this.o=x(a)?a:0.3}B(Tf,Qf);Tf.prototype.e=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);x(this.c)&&(b=c-this.c,this.b+=b,!this.a&&Math.abs(this.b)>this.o&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=Hc(a.b),e=Rf(this.targetTouches);e.x-=d.x;e.y-=d.y;d=bf(a,e);this.a&&rf(c,a,c.X()+b,d)};
|
||||
Tf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();this.a&&b.rotate(a,b.X(),h,250);Ue(b,-1);return l}return i};Tf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,Ue(a,1),i):l};function Uf(){Qf.call(this)}B(Uf,Qf);Uf.prototype.e=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);x(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Hc(a.b);d=Rf(this.targetTouches);d.x-=c.x;d.y-=c.y;c=bf(a,d);uf(e,a,e.P()*b,c)};Uf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();b.zoom(a,b.P(),h,250);Ue(b,-1);return l}return i};
|
||||
Uf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,Ue(a,1),i):l};function Vf(a){O.call(this,a,"m",Wf)}B(Vf,O);var Xf=6378137*Math.PI,Wf=new $d(-Xf,-Xf,Xf,Xf),Yf=Aa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Vf(a)});Vf.prototype.b=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function Zf(a,b){O.call(this,a,"degrees",$f,b)}B(Zf,O);var $f=new $d(-180,-90,180,90),ag=[new Zf("CRS:84"),new Zf("EPSG:4326","neu"),new Zf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Zf("urn:ogc:def:crs:OGC:1.3:CRS84")];Zf.prototype.b=aa();function bg(a,b,c,d,e){this.f=e;this.g=a;this.h=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(bg,kd);bg.prototype.ka=m("f");bg.prototype.H=m("g");function cg(a,b){if(x(b)){var c,d=y(b);if(d in a.d)return a.d[d];c=Sa(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}bg.prototype.o=function(){this.a=3;C(this.c,J);this.c=k;K(this,"change")};bg.prototype.p=function(){this.a=2;C(this.c,J);this.c=k;K(this,"change")};
|
||||
function dg(a){0==a.a&&(a.a=1,a.c=[sc(a.b,"error",a.o,l,a),sc(a.b,"load",a.p,l,a)],a.b.src=a.h)};function eg(a){this.a=a.resolutions;this.g=this.a.length;this.d=x(a.origin)?a.origin:k;this.f=k;x(a.origins)&&(this.f=a.origins);this.c=k;x(a.tileSizes)&&(this.c=a.tileSizes);this.e=x(a.tileSize)?a.tileSize:this.c===k?new Xd(256,256):k}eg.prototype.b=function(a,b,c){for(var d=fg(this,a),a=a.m-1;0<=a&&!b.call(c,a,gg(this,d,this.a[a]));)--a};function hg(a,b){return a.d===k?a.f[b]:a.d}eg.prototype.Fb=m("a");
|
||||
function gg(a,b,c){var d=ig(a,new L(b.i,b.j),c),a=ig(a,new L(b.l,b.k),c,i);return new re(d.x,d.y,a.x,a.y)}function jg(a,b){var c=hg(a,b.m),d=a.a[b.m],e=kg(a,b.m);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function fg(a,b){var c=hg(a,b.m),d=a.a[b.m],e=kg(a,b.m),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new $d(f,c,f+e.width*d,c+e.height*d)}
|
||||
function ig(a,b,c,d){var e=pf(a.a,c),f=c/a.a[e],g=hg(a,e),j=kg(a,e),a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new pe(e,a,b)}function kg(a,b){return a.e===k?a.c[b]:a.e}
|
||||
function lg(a){var b=a.f;if(b===k){for(var b=a.H(),c=Math.max(b.l-b.i,b.k-b.j),d=x(h)?h:new Xd(256,256),e=Array((x(h)?NaN:42)+1),c=c/d.width,f=0,g=e.length;f<g;++f)e[f]=c/Math.pow(2,f);b=new eg({origin:be(b),resolutions:e,tileSize:d});a.f=b}return b};function mg(a){Qe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.G=x(a.opaque)?a.opaque:l;this.tileGrid=x(a.tileGrid)?a.tileGrid:k}B(mg,Qe);mg.prototype.f=md;mg.prototype.d=function(a,b,c,d){var e=i,f,g,j,n;for(j=d.i;j<=d.l;++j)for(n=d.j;n<=d.k;++n)if(f=new pe(c,j,n),g=f.toString(),!a[c]||!a[c][g])f=b(f),f===k?e=l:(a[c]||(a[c]={}),a[c][g]=f);return e};mg.prototype.Fb=function(){return this.tileGrid.Fb()};
|
||||
function ng(a,b,c,d){for(var e,f,g;0<=b;--b){e=gg(d,c,d.a[b]);for(f=e.i;f<=e.l;++f)for(g=e.j;g<=e.k;++g)a.p(b+"/"+f+"/"+g)}}mg.prototype.p=ba;function og(a,b){M.call(this);this.p=a;this.a=b;this.t={};H(this.a,Rd("brightness"),this.Kb,l,this);H(this.a,Rd("contrast"),this.Lb,l,this);H(this.a,Rd("hue"),this.Mb,l,this);H(this.a,"load",this.pd,l,this);H(this.a,Rd("opacity"),this.qd,l,this);H(this.a,Rd("saturation"),this.Nb,l,this);H(this.a,Rd("visible"),this.sd,l,this)}B(og,M);function pg(a){K(a,"change")}p=og.prototype;p.ba=m("p");p.Kb=ba;p.Lb=ba;p.Mb=ba;p.Jb=function(a){2===a.target.a&&sf(this.p.map)};p.pd=function(){pg(this)};p.qd=function(){pg(this)};
|
||||
p.Nb=ba;p.sd=function(){pg(this)};p.Fd=function(a){a=a.target;2===a.a&&sf(this.p.map);delete this.t[a.b()]};function qg(a,b){var c=b.b();c in a.t||(a.t[c]=i,sc(b,"change",a.Fd,l,a))}function rg(a,b){b.f()&&a.xa.push(oa(function(a,b,e){b=y(a).toString();a.Ca(e.Pa[b])},b))}function sg(a,b){var c,d;for(c=0;c<b.length;++c)d=b[c],a[y(d).toString()]=d}
|
||||
function tg(a,b,c,d){b=y(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.i=Math.min(a.i,d.i),a.j=Math.min(a.j,d.j),a.l=Math.max(a.l,d.l),a.k=Math.max(a.k,d.k)):a[b][c]=d:(a[b]={},a[b][c]=d)}function ug(a,b,c){b=y(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=i}function vg(a,b,c,d){return function(e){e=b.b(e,c,d);return a(e)?e:k}};function wg(a,b){Zb.call(this);this.ra=a;this.map=b;this.d={};this.F=H(b,Rd(xg),this.ud,l,this);this.e=k;this.t={}}B(wg,Zb);p=wg.prototype;p.va=function(a){var b=this.Ua(a),a=y(a);this.d[a]=b;this.t[a]=H(b,"change",this.rd,l,this)};
|
||||
function yg(a){var b=a.u,c=a.fc;ie(c);me(c,a.size.width/2,a.size.height/2);ne(c,1/b.resolution,-1/b.resolution);oe(c,-b.rotation);me(c,-b.center.x,-b.center.y);var a=a.yc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],n=c[6],r=c[7],s=c[8],q=c[9],v=c[10],u=c[11],t=c[12],z=c[13],E=c[14],c=c[15],D=b*j-d*g,U=b*n-e*g,R=b*r-f*g,I=d*n-e*j,Y=d*r-f*j,V=e*r-f*n,sa=s*z-q*t,Na=s*E-v*t,Oa=s*c-u*t,Pa=q*E-v*z,Qa=q*c-u*z,Ra=v*c-u*E,W=D*Ra-U*Qa+R*Pa+I*Oa-Y*Na+V*sa;0!=W&&(W=1/W,a[0]=(j*Ra-n*Qa+r*Pa)*W,a[1]=(-d*Ra+e*Qa-
|
||||
f*Pa)*W,a[2]=(z*V-E*Y+c*I)*W,a[3]=(-q*V+v*Y-u*I)*W,a[4]=(-g*Ra+n*Oa-r*Na)*W,a[5]=(b*Ra-e*Oa+f*Na)*W,a[6]=(-t*V+E*R-c*U)*W,a[7]=(s*V-v*R+u*U)*W,a[8]=(g*Qa-j*Oa+r*sa)*W,a[9]=(-b*Qa+d*Oa-f*sa)*W,a[10]=(t*Y-z*R+c*D)*W,a[11]=(-s*Y+q*R-u*D)*W,a[12]=(-g*Pa+j*Na-n*sa)*W,a[13]=(b*Pa-d*Na+e*sa)*W,a[14]=(-t*I+z*U-E*D)*W,a[15]=(s*I-q*U+v*D)*W)}p.Ua=function(a){return new og(this,a)};p.r=function(){Ka(this.d,function(a){dc(a)});J(this.F);this.e===k||C(this.e,J);wg.v.r.call(this)};p.Xa=od;
|
||||
function zg(a,b){var c=y(b);return a.d[c]}p.rd=function(){Ag(this.map)};p.td=function(a){this.va(a.a)};p.ud=function(){cc(La(this.d));this.d={};this.e!==k&&(C(this.e,J),this.e=k);var a=this.map.t();a!=k&&(a.forEach(this.va,this),this.e=[H(a,"add",this.td,l,this),H(a,"remove",this.vd,l,this)])};p.vd=function(a){this.Rb(a.a)};p.Rb=function(a){a=y(a);if(a in this.d){var b=this.d[a];delete this.d[a];J(this.t[a]);delete this.t[a];a=b}else a=k;dc(a)};p.ob=ba;function Bg(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:i,WIDTH:d.width,HEIGHT:d.height};Ua(d,b);d.STYLES=b.STYLES||new String("");b="1.3"<d.VERSION;d[b?"CRS":"SRS"]=e.a;e=e.d;d.BBOX=(b&&"ne"==e.substr(0,2)?[c.j,c.i,c.k,c.l]:[c.i,c.j,c.l,c.k]).join(",");var a=[a],f;for(f in d)Rc(f,d[f],a);a[1]&&(f=a[0],c=f.indexOf("#"),0<=c&&(a.push(f.substr(c)),a[0]=f=f.substr(0,c)),c=f.indexOf("?"),0>c?a[1]="?":c==f.length-1&&(a[1]=h));return a.join("")};function Cg(a,b){return function(c,d,e){return Bg(a,b,c,d,e)}}function Dg(){};function Eg(a){Qe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Ga=x(a.Ga)?a.Ga:Dg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(Eg,Qe);function Fg(a,b,c,d,e){var f=k,d=a.Ga(b,d,e);x(d)&&(f=new bg(b,c,d,a.d,a.ka()));return f};function Gg(a){P.call(this,a)}B(Gg,P);function Hg(a){P.call(this,a)}B(Hg,P);function Ig(a,b){og.call(this,a,b)}B(Ig,og);function Jg(a,b){og.call(this,a,b);this.b=k;this.c=ee()}B(Jg,Ig);Jg.prototype.I=function(){return this.b===k?k:cg(this.b,this)};Jg.prototype.ra=m("c");
|
||||
Jg.prototype.ha=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.a.Y(),g=a.B;!g[0]&&!g[1]&&(b=f.I(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(sc(b,"change",this.Jb,l,this),dg(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.H(),g=b.e,j=this.c;ie(j);me(j,a.size.width/2,a.size.height/2);oe(j,e);ne(j,g/d,g/d);me(j,(f.i-c.x)/g,(c.y-f.k)/g);sg(a.attributions,b.ka())}};function Kg(a,b){og.call(this,a,b);this.e=this.c=this.d=k;this.f=ee();this.b=k}B(Kg,Ig);Kg.prototype.I=m("d");Kg.prototype.ra=m("f");
|
||||
Kg.prototype.ha=function(a){var b=a.u,c=b.projection,d=this.a.Y(),e=y(d).toString(),f=d.tileGrid;f===k&&(f=lg(c));var g=pf(f.a,b.resolution),j=kg(f,g),n=f.a[g],r=gg(f,a.extent,n),s=r.ea(),q=r.aa(),j=new Xd(j.width*s,j.height*q),v,u;this.d===k?(v=Qb("CANVAS"),v.width=j.width,v.height=j.height,u=v.getContext("2d"),this.d=v,this.c=j,this.e=u,this.b=Array(s*q)):(v=this.d,u=this.e,this.c.width==j.width&&this.c.height==j.height||(v.width=j.width,v.height=j.height,this.c=j,this.b=Array(s*q)));q={};q[g]=
|
||||
{};var j=na(d.d,d,q,vg(function(a){return a!==k&&2==a.a},d,f,c)),t,z,E,D;for(E=r.i;E<=r.l;++E)for(D=r.j;D<=r.k;++D)if(z=new pe(g,E,D),t=d.b(z,f,c),t!==k){v=t.a;if(0==v)qg(this,t),ug(a.Qa,d,z),v=jg(f,z),ve(a.Ub,t,e,v);else if(2==v){q[g][z.toString()]=t;continue}else if(3==v)continue;f.b(z,j)}e=Aa(Ma(q),Number);Ia(e);v=d.G;var c=be(fg(f,new pe(g,r.i,r.k))),U,R,I,Y,V,sa;for(U=0;U<e.length;++U)if(t=e[U],j=kg(f,t),Y=q[t],t==g)for(R in Y)t=Y[R],z=t.V,z=(z.y-r.j)*s+(z.x-r.i),this.b[z]!=t&&(E=j.width*(t.V.x-
|
||||
r.i),D=j.height*(r.k-t.V.y),v||u.clearRect(E,D,j.width,j.height),u.drawImage(t.I(),E,D),this.b[z]=t);else for(R in z=f.a[t]/n,Y){t=Y[R];I=fg(f,t.V);E=(I.i-c.x)/n;D=(c.y-I.k)/n;sa=z*j.width;V=z*j.height;v||u.clearRect(E,D,sa,V);u.drawImage(t.I(),E,D,sa,V);D=gg(f,I,f.a[g]);I=Math.max(D.i,r.i);t=Math.min(D.l,r.l);E=Math.max(D.j,r.j);for(D=Math.min(D.k,r.k);I<=t;++I)for(V=E;V<=D;++V)this.b[(V-r.j)*s+(I-r.i)]=h}tg(a.Pa,d,g,r);ng(d,g,a.extent,f);rg(a,d);d=this.f;ie(d);me(d,a.size.width/2,a.size.height/
|
||||
2);oe(d,b.rotation);ne(d,n/b.resolution,n/b.resolution);me(d,(c.x-b.center.x)/n,(b.center.y-c.y)/n)};function Lg(a,b){wg.call(this,a,b);this.f=new Xd(a.clientHeight,a.clientWidth);this.c=Qb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Tb(a,this.c);this.g=i;this.h=this.c.getContext("2d")}B(Lg,wg);Lg.prototype.Ua=function(a){return a instanceof Gg?new Jg(this,a):a instanceof Hg?new Kg(this,a):k};Lg.prototype.Xa=m("c");
|
||||
Lg.prototype.ob=function(a){if(a===k)this.g&&(Jc(this.c,l),this.g=l);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.h;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);C(a.jb,function(b){var d=a.ib[y(b)];if(d.visible)if(d.sb){var g=zg(this,b);g.ha(a,d);b=g.I();b!==k&&(g=g.ra(),c.setTransform(g[0],
|
||||
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.R=i},this);this.g||(Jc(this.c,i),this.g=i);yg(a)}};var Mg=function(){if(!("HTMLCanvasElement"in w))return l;try{return Qb("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Ng(a,b){var c;if(x(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Og(a,b,c){og.call(this,a,b);this.target=c}B(Og,og);Og.prototype.r=function(){Ub(this.target);Og.v.r.call(this)};function Pg(a,b){var c=Qb("DIV");c.className="ol-layer-image";c.style.position="absolute";Og.call(this,a,b,c);this.b=k;this.c=ge()}B(Pg,Og);
|
||||
Pg.prototype.ha=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.Y(),j=a.B;!j[0]&&!j[1]&&(b=g.I(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(sc(b,"change",this.Jb,l,this),dg(b)):2==g&&(f=b)));f!==k&&(g=f.H(),j=f.e,b=ee(),ie(b),me(b,a.size.width/2,a.size.height/2),oe(b,e),ne(b,j/d,j/d),me(b,(g.i-c.x)/j,(c.y-g.k)/j),f!=this.b&&(c=cg(f,this),c.style.position="absolute",Sb(this.target),this.target.appendChild(c),this.b=f),ke(b,this.c)||(Ng(this.target,b),he(this.c,b)),sg(a.attributions,
|
||||
f.ka()))};function Qg(a,b){var c=Qb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Og.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Qg,Og);
|
||||
Qg.prototype.ha=function(a,b){if(b.visible){var c=a.u,d=c.projection,e=this.a.Y(),f=y(e).toString(),g=e.tileGrid;g===k&&(g=lg(d));var j=pf(g.a,c.resolution),n=gg(g,a.extent,g.a[j]),r={};r[j]={};var s=na(e.d,e,r,vg(function(a){return a!==k&&2==a.a},e,g,d)),q,v,u,t,z;for(t=n.i;t<=n.l;++t)for(z=n.j;z<=n.k;++z)if(u=new pe(j,t,z),q=e.b(u,g,d),q!==k){v=q.a;if(0==v)qg(this,q),ug(a.Qa,e,u),v=jg(g,u),ve(a.Ub,q,f,v);else if(2==v){r[j][u.toString()]=q;continue}else if(3==v)continue;g.b(u,s)}s=Aa(Ma(r),Number);
|
||||
Ia(s);var d={},E;for(q=0;q<s.length;++q){u=s[q];u in this.b?f=this.b[u]:(f=ig(g,c.center,g.a[u]),f=new Rg(g,f),d[u]=i,this.b[u]=f);u=r[u];for(E in u){t=f;z=u[E];v=z.V;var D=v.toString();if(!(D in t.b)){var U=kg(t.d,v.m),R=z.I(t),I=R.style;I.position="absolute";I.left=(v.x-t.c.x)*U.width+"px";I.top=(t.c.y-v.y)*U.height+"px";t.a===k&&(t.a=document.createDocumentFragment());t.a.appendChild(R);t.b[D]=z}}f.a!==k&&(f.target.appendChild(f.a),f.a=k)}E=Aa(Ma(this.b),Number);Ia(E);q=ee();for(s=0;s<E.length;++s)if(u=
|
||||
E[s],f=this.b[u],u in r)if(z=f.g,t=f.f,ie(q),me(q,a.size.width/2,a.size.height/2),oe(q,c.rotation),ne(q,z/c.resolution,z/c.resolution),me(q,(t.x-c.center.x)/z,(c.center.y-t.y)/z),t=f,z=q,ke(z,t.e)||(Ng(t.target,z),he(t.e,z)),u in d){for(u-=1;0<=u;--u)if(u in this.b){t=this.b[u].target;t.parentNode&&t.parentNode.insertBefore(f.target,t.nextSibling);break}0>u&&Tb(this.target,f.target)}else{if(!a.B[0]&&!a.B[1]){v=gg(f.d,a.extent,f.d.a[f.c.m]);u=[];z=t=h;for(z in f.b)t=f.b[z],v.contains(t.V)||u.push(t);
|
||||
v=h;for(v=0;v<u.length;++v)t=u[v],z=t.V.toString(),Ub(t.I(f)),delete f.b[z]}}else Ub(f.target),delete this.b[u];b.opacity!=this.d&&(c=b.opacity,r=this.target.style,"opacity"in r?r.opacity=c:"MozOpacity"in r?r.MozOpacity=c:"filter"in r&&(r.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Jc(this.target,i),this.c=i);tg(a.Pa,e,j,n);ng(e,j,a.extent,g);rg(a,e)}else this.c&&(Jc(this.target,l),this.c=l)};
|
||||
function Rg(a,b){this.target=Qb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=be(fg(a,b));this.g=a.a[b.m];this.b={};this.a=k;this.e=ge()};function Sg(a,b){wg.call(this,a,b);this.c=Qb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Tb(a,this.c);this.f=i}B(Sg,wg);Sg.prototype.va=function(a){Sg.v.va.call(this,a);Ag(this.map)};Sg.prototype.Ua=function(a){var b;a instanceof Hg?b=new Qg(this,a):a instanceof Gg&&(b=new Pg(this,a));this.c.appendChild(b.target);return b};
|
||||
Sg.prototype.ob=function(a){a===k?this.f&&(Jc(this.c,l),this.f=l):(C(a.jb,function(b){var c=a.ib[y(b)];c.sb&&zg(this,b).ha(a,c)},this),this.f||(Jc(this.c,i),this.f=i),yg(a))};function Tg(a){this.a=a}Tg.prototype.Y=m("a");function Ug(a){this.a=a}B(Ug,Tg);Ug.prototype.b=function(){return 35632};function Vg(a){this.a=a}B(Vg,Tg);Vg.prototype.b=function(){return 35633};function Wg(a,b){og.call(this,a,b);this.F=new Float32Array(16);this.J=new Float32Array(16);this.La=new Float32Array(16);this.Oa=new Float32Array(16);this.G=new Float32Array(16);this.c=i;this.Kb();this.Lb();this.Mb();this.Nb()}B(Wg,og);function Xg(a){if(a.c){var b=a.G;ie(b);je(b,a.J,b);je(b,a.F,b);je(b,a.Oa,b);je(b,a.La,b);a.c=l}return a.G}p=Wg.prototype;p.ba=function(){return Wg.v.ba.call(this)};p.Kb=function(){var a=this.a.b(),b=this.F;ie(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;pg(this)};
|
||||
p.Lb=function(){var a=this.a.c(),b=this.J;ie(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;pg(this)};p.Mb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);fe(this.La,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;pg(this)};
|
||||
p.Nb=function(){var a=this.a.f();fe(this.Oa,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;pg(this)};p.Fa=ba;function Yg(a,b){Wg.call(this,a,b);this.b=this.d=k;this.f=ge();this.e=ee()}B(Yg,Wg);p=Yg.prototype;p.r=function(){var a=this.ba().a;a.isContextLost()||a.deleteTexture(this.b);Yg.v.r.call(this)};p.kc=m("f");p.lc=m("b");p.jc=m("e");p.Fa=function(){this.b=k};
|
||||
p.ha=function(a){var b=this.ba().a,c=a.u,d=c.center,e=c.resolution,f=c.rotation,g=this.d,j=this.b,n=this.a.Y(),r=a.B;!r[0]&&!r[1]&&(c=n.I(a.extent,e,c.projection),c!==k&&(n=c.a,0==n?(sc(c,"change",this.Jb,l,this),dg(c)):2==n&&(g=c,j=cg(c,this),c=this.ba().a,n=c.createTexture(),c.bindTexture(3553,n),c.texImage2D(3553,0,6408,6408,5121,j),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10240,9729),j=n,this.b===k||a.xa.push(oa(function(a,
|
||||
b){a.isContextLost()||a.deleteTexture(b)},b,this.b)))));g!==k&&(n=this.ba().Xa(),b=g.H(),c=n.width*e,e*=n.height,n=this.e,ie(n),ne(n,2/c,2/e),oe(n,-f),me(n,b.i-d.x,b.j-d.y),ne(n,b.ea()/2,b.aa()/2),me(n,1,1),d=this.f,ie(d),ne(d,1,-1),me(d,0,-1),this.d=g,this.b=j,sg(a.attributions,g.ka()))};function Zg(a,b){this.L=a;this.Z=b}Zg.prototype.S=function(){return new Zg(this.L,this.Z)};function $g(a){this.a=[];if(a)a:{var b,c;if(a instanceof $g){if(b=a.W(),c=a.N(),0>=a.$()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Zg(b[d],c[d]));break a}}else b=Ma(a),c=La(a);for(d=0;d<b.length;d++)ah(this,b[d],c[d])}}function ah(a,b,c){var d=a.a;d.push(new Zg(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].L>c.L)a[b]=a[d],b=d;else break;a[b]=c}p=$g.prototype;
|
||||
p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ca(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].L<b[f].L?g:f;if(b[f].L>e.L)break;b[a]=b[f];a=f}b[a]=e}return c.Z}};p.N=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Z);return b};p.W=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].L);return b};p.S=function(){return new $g(this)};p.$=function(){return this.a.length};
|
||||
p.Ia=function(){return 0==this.a.length};p.clear=function(){Ca(this.a)};function bh(){$g.call(this)}B(bh,$g);function ch(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}B(ch,Ug);ca(ch);function dh(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}B(dh,Vg);ca(dh);
|
||||
function eh(a,b){Wg.call(this,a,b);this.yb=ch.Ya();this.Ab=dh.Ya();this.e=this.g=this.f=this.A=k;this.h=h;this.d=ee();this.Ra=ge();this.w=this.b=k}B(eh,Wg);p=eh.prototype;p.r=function(){var a=this.ba().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));eh.v.r.call(this)};p.kc=m("d");p.lc=m("g");p.jc=m("Ra");p.Fa=function(){this.e=this.g=this.f=this.A=k;this.h=h};
|
||||
p.ha=function(a){var b=this.ba(),c=b.a,d=a.u,e=d.projection,f=d.center,g=this.a.Y(),j=y(g).toString(),n=g.tileGrid;n===k&&(n=lg(e));var r=pf(n.a,d.resolution),s=n.a[r],q=gg(n,a.extent,s),v;if(this.b!==k&&this.b.i==q.i&&this.b.j==q.j&&this.b.l==q.l&&this.b.k==q.k)v=this.w;else{var u=new Xd(q.ea(),q.aa()),t=kg(n,r),u=Math.max(u.width*t.width,u.height*t.height),u=Math.pow(2,Math.ceil(Math.log(u)/Math.log(2))),z=new Xd(s*u,s*u),E=hg(n,r),D=E.x+q.i*t.width*s,s=E.y+q.j*t.height*s;v=new $d(D,s,D+z.width,
|
||||
s+z.height);s=this.ba().a;!x(this.h)||this.h!=u?(a.xa.push(oa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},s,this.e,this.g)),t=s.createTexture(),s.bindTexture(3553,t),s.texImage2D(3553,0,6408,u,u,0,6408,5121,k),s.texParameteri(3553,10240,9729),s.texParameteri(3553,10241,9729),D=s.createFramebuffer(),s.bindFramebuffer(36160,D),s.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=D,this.h=u):s.bindFramebuffer(36160,this.e);c.viewport(0,0,u,u);c.clearColor(0,
|
||||
0,0,0);c.clear(16384);c.disable(3042);u=fh(b,this.yb,this.Ab);c.useProgram(u);this.A===k&&(this.A={Yb:c.getAttribLocation(u,"aPosition"),Zb:c.getAttribLocation(u,"aTexCoord"),Td:c.getUniformLocation(u,"uTileOffset"),Sd:c.getUniformLocation(u,"uTexture")});this.f===k?(u=c.createBuffer(),c.bindBuffer(34962,u),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=u):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.A.Yb);c.vertexAttribPointer(this.A.Yb,2,5126,l,
|
||||
16,0);c.enableVertexAttribArray(this.A.Zb);c.vertexAttribPointer(this.A.Zb,2,5126,l,16,8);c.uniform1i(this.A.Sd,0);var U={};U[r]={};for(var s=na(g.d,g,U,vg(function(a){return a!==k&&2==a.a&&gh(b.b,a.b())},g,n,e)),u=new bh,R=i,I,Y,E=q.i;E<=q.l;++E)for(Y=q.j;Y<=q.k;++Y)if(D=new pe(r,E,Y),t=g.b(D,n,e),t!==k){I=t.a;if(0==I)qg(this,t),ug(a.Qa,g,D),I=jg(n,D),ve(a.Ub,t,j,I);else if(2==I)if(gh(b.b,t.b())){U[r][D.toString()]=t;continue}else I=jg(n,D),R=I.x-f.x,I=I.y-f.y,R=Math.sqrt(R*R+I*I),ah(u,R,t);else if(3==
|
||||
I)continue;R=l;n.b(D,s)}e=Aa(Ma(U),Number);Ia(e);var V=new Float32Array(4);C(e,function(a){Ka(U[a],function(a){var d=fg(n,a.V),e=2*d.aa()/z.height,f=2*(d.i-v.i)/z.width-1,g=2*(d.j-v.j)/z.height-1;V[0]=2*d.ea()/z.width;V[1]=e;V[2]=f;V[3]=g;c.uniform4fv(this.A.Td,V);hh(b,a);c.drawArrays(5,0,4)},this)},this);u.Ia()||a.xa.push(oa(function(a,b){var c,d;for(c=0;!b.Ia()&&4>c;++c)d=b.remove(),hh(a,d)},b,u));R?(this.b=q,this.w=v):(this.w=this.b=k,a.R=i)}tg(a.Pa,g,r,q);ng(g,r,a.extent,n);rg(a,g);ie(this.d);
|
||||
me(this.d,(d.center.x-v.i)/(v.l-v.i),(d.center.y-v.j)/(v.k-v.j));oe(this.d,d.rotation);ne(this.d,a.size.width*d.resolution/(v.l-v.i),a.size.height*d.resolution/(v.k-v.j));me(this.d,-0.5,-0.5)};function ih(){this.n=0;this.c={};this.b=this.a=k}p=ih.prototype;p.clear=function(){this.n=0;this.c={};this.b=this.a=k};function gh(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Z,c.L,this),c=c.U};function jh(a,b){var c=a.c[b];if(c===a.b)return c.Z;c===a.a?(a.a=a.a.U,a.a.ia=k):(c.U.ia=c.ia,c.ia.U=c.U);c.U=k;c.ia=a.b;a.b.U=c;a.b=c;return c.Z}p.$=m("n");p.W=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.ia)a[b++]=c.L;return a};
|
||||
p.N=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.ia)a[b++]=c.Z;return a};function kh(a){var b=a.a;delete a.c[b.L];b.U!==k&&(b.U.ia=k);a.a=b.U;a.a===k&&(a.b=k);--a.n}function lh(a,b,c){c={L:b,U:k,ia:a.b,Z:c};a.b===k?a.a=c:a.b.U=c;a.b=c;a.c[b]=c;++a.n};var mh=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function nh(a,b){var c,d,e=mh.length;for(d=0;d<e;++d)try{if(c=a.getContext(mh[d],b),c!==k)return c}catch(f){}return k}var oh=function(){if(!("WebGLRenderingContext"in w))return l;try{var a=Qb("CANVAS");return nh(a)!==k}catch(b){return l}}();function ph(){this.a="precision mediump float;\n\nuniform mat4 u_colorMatrix;\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(u_texture, v_texCoord);\n vec4 color = u_colorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * u_opacity;\n\n gl_FragColor = color;\n\n}"}B(ph,Ug);ca(ph);
|
||||
function qh(){this.a="attribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}"}B(qh,Vg);ca(qh);
|
||||
function rh(a,b){wg.call(this,a,b);this.c=Qb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Tb(a,this.c);this.p=i;this.w=new Xd(a.clientHeight,a.clientWidth);this.a=nh(this.c,{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});H(this.c,"webglcontextlost",this.Fa,l,this);H(this.c,"webglcontextrestored",this.Ld,l,this);this.o=this.A=k;this.g={};this.f={};this.b=new ih;this.h=0;this.G=ph.Ya();this.J=qh.Ya();sh(this)}B(rh,wg);p=rh.prototype;
|
||||
p.va=function(a){rh.v.va.call(this,a);a.a()&&Ag(this.map)};
|
||||
function hh(a,b){var c=a.a,d=b.b();if(gh(a.b,d))d=jh(a.b,d),c.bindTexture(3553,d.Tb),9729!=d.rc&&(c.texParameteri(3553,10240,9729),d.rc=9729),9729!=d.sc&&(c.texParameteri(3553,10240,9729),d.sc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.I());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);lh(a.b,d,{Tb:e,rc:9729,sc:9729})}}
|
||||
p.Ua=function(a){var b=k;a instanceof Hg?b=new eh(this,a):a instanceof Gg&&(b=new Yg(this,a));return b};p.r=function(){var a=this.a;a.isContextLost()||(Ka(this.f,function(b){a.deleteProgram(b)}),Ka(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Tb)}));rh.v.r.call(this)};p.ad=function(a,b){for(var c=this.a,d;1024<this.b.$()-this.h;){d=this.b.a.Z;if(d===k)if(+this.b.a.L==b.time)break;else--this.h;else c.deleteTexture(d.Tb);kh(this.b)}};p.Xa=m("c");
|
||||
function fh(a,b,c){var d=y(b)+"/"+y(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,th(a,b));e.attachShader(f,th(a,c));e.linkProgram(f);return a.f[d]=f}function th(a,b){var c=y(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.Y());d.compileShader(e);return a.g[c]=e}p.Fa=function(a){a.C();this.o=this.A=k;this.g={};this.f={};this.b.clear();this.h=0;Ka(this.d,function(a){a.Fa()})};p.Ld=function(){sh(this);Ag(this.map)};
|
||||
function sh(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}p.Rb=function(a){rh.v.Rb.call(this,a);a.a()&&Ag(this.map)};
|
||||
p.ob=function(a){var b=this.a;if(a===k)return this.p&&(Jc(this.c,l),this.p=l),l;lh(this.b,a.time.toString(),k);++this.h;C(a.jb,function(b){var c=a.ib[y(b)];c.visible&&c.sb&&zg(this,b).ha(a,c)},this);var c=a.size;this.w.width==c.width&&this.w.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.w=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=fh(this,this.G,this.J);b.useProgram(c);
|
||||
this.A===k&&(this.A={$b:b.getAttribLocation(c,"a_position"),ac:b.getAttribLocation(c,"a_texCoord"),Ud:b.getUniformLocation(c,"u_colorMatrix"),Xd:b.getUniformLocation(c,"u_texCoordMatrix"),Wd:b.getUniformLocation(c,"u_projectionMatrix"),Vd:b.getUniformLocation(c,"u_opacity"),Yd:b.getUniformLocation(c,"u_texture")});this.o===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.o=c):b.bindBuffer(34962,this.o);b.enableVertexAttribArray(this.A.$b);
|
||||
b.vertexAttribPointer(this.A.$b,2,5126,l,16,0);b.enableVertexAttribArray(this.A.ac);b.vertexAttribPointer(this.A.ac,2,5126,l,16,8);b.uniform1i(this.A.Yd,0);C(a.jb,function(c){var d=a.ib[y(c)];d.visible&&d.sb&&(d=zg(this,c),b.uniformMatrix4fv(this.A.Xd,l,d.kc()),b.uniformMatrix4fv(this.A.Wd,l,d.jc()),b.uniformMatrix4fv(this.A.Ud,l,Xg(d)),b.uniform1f(this.A.Vd,c.e()),b.bindTexture(3553,d.lc()),b.drawArrays(5,0,4))},this);this.p||(Jc(this.c,i),this.p=i);yg(a);1024<this.b.$()-this.h&&a.xa.push(na(this.ad,
|
||||
this))};var uh={},vh={ce:"canvas",fe:"dom",Be:"webgl"},wh=["webgl","canvas","dom"],xg="layers";
|
||||
function S(a){var b,c;M.call(this);var d={};d[xg]=x(a.layers)?a.layers:new N;d.view=x(a.view)?a.view:new Q;c=wg;var e;e=x(a.renderers)?a.renderers:x(a.renderer)?[a.renderer]:wh;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(Mg){c=Lg;break}}else if("dom"==f){c=Sg;break}else if("webgl"==f&&oh){c=rh;break}e=[];(x(a.attributionControl)?a.attributionControl:1)&&e.push(new xf({}));x(a.scaleLineControl)&&a.scaleLineControl&&e.push(new zf({units:x(a.scaleLineUnits)?a.scaleLineUnits:h}));if(x(a.zoomControl)?
|
||||
a.zoomControl:1)e.push(new Bf({delta:x(a.zoomDelta)?a.zoomDelta:1}));if(x(a.interactions))b=a.interactions;else{b=new N;(x(a.rotate)?a.rotate:1)&&b.push(new Kf(Ef));if(x(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Df(x(a.zoomDelta)?a.zoomDelta:1));(x(a.touchPan)?a.touchPan:1)&&b.push(new Sf(new Xe(-0.005,0.05,100)));(x(a.touchRotate)?a.touchRotate:1)&&b.push(new Tf);(x(a.touchZoom)?a.touchZoom:1)&&b.push(new Uf);(x(a.dragPan)?a.dragPan:1)&&b.push(new If(Ff,new Xe(-0.005,0.05,100)));f=x(a.keyboardPanOffset)?
|
||||
a.keyboardPanOffset:80;if(x(a.keyboard)?a.keyboard:1)b.push(new Nf(f)),b.push(new Of);(x(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new Pf);(x(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Mf(Gf))}a=ga(a.target)?document.getElementById(a.target):a.target;this.d=new pd(this.Od,h,this);bc(this,this.d);this.Lc=ee();this.Qc=ee();this.e=k;this.g=0;this.p=l;this.G=a;this.F=k;this.b=Ob("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height=
|
||||
"100%";this.b.style.msTouchAction="none";this.G.appendChild(this.b);this.w=Ob("DIV","ol-overlaycontainer");H(this.w,["click",Ld?"touchstart":"mousedown"],fc);this.b.appendChild(this.w);a=new df(this);H(a,La(of),this.xc,l,this);bc(this,a);a=new Bd(document);H(a,"key",this.mc,l,this);bc(this,a);a=new Id(this.b);H(a,"mousewheel",this.mc,l,this);bc(this,a);this.Oa=b;this.J=new c(this.b,this);bc(this,this.J);this.Tc=new wd;H(this.Tc,"resize",this.nc,l,this);this.h=[];this.yb=[];this.Pc=na(this.Cd,this);
|
||||
this.ra=new ue(na(this.ed,this));H(this,Rd("view"),this.Jd,l,this);H(this,Rd("size"),this.Ed,l,this);H(this,Rd("backgroundColor"),this.nd,l,this);this.nb(d);this.nc();C(e,function(a){a.a(this)},this)}B(S,M);S.prototype.c=function(a){sf(this);this.h.push(a)};S.prototype.Ab=function(a){sf(this);Array.prototype.push.apply(this.h,a)};S.prototype.r=function(){Ub(this.b);S.v.r.call(this)};S.prototype.La=function(){return this.s("backgroundColor")};S.prototype.getBackgroundColor=S.prototype.La;
|
||||
S.prototype.Oc=m("J");function bf(a,b){var c=a.e;if(c===k)return k;var d=[b.x,b.y,0];le(c.yc,d,d);return new L(d[0],d[1])}S.prototype.Mc=m("Oa");S.prototype.t=function(){return this.s(xg)};S.prototype.getLayers=S.prototype.t;function Jf(a,b){var c=a.e;if(c===k)return k;var d=[b.x,b.y,0];le(c.fc,d,d);return new $e(d[0],d[1])}S.prototype.f=function(){return this.s("size")};S.prototype.getSize=S.prototype.f;S.prototype.a=function(){return this.s("view")};S.prototype.getView=S.prototype.a;p=S.prototype;
|
||||
p.ed=function(a,b,c){var d=this.e;if(d===k||!(b in d.Qa)||!d.Qa[b][a.V.toString()])return Infinity;b=d.u.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};p.mc=function(a,b){this.xc(new af(b||a.type,this,a))};p.xc=function(a){a.b=this.e;var b=this.Oa.a;if(K(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].oa(a),a.bb);c--);};
|
||||
p.Cd=function(){var a=this.ra,b=a.a,c,d=0,e,f,g,j;for(c=0;c<b.length;++c)e=b[c],g=e[1],j=e[2],f=e[3],f=a.d(g,j,f),Infinity==f?(e=g.b(),delete a.b[e],g.e--,0===g.e&&vc(g)):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)xe(a,b);for(a=this.ra;0<a.a.length&&a.c<a.f;)b=a,d=b.a,c=d[0][1],1==d.length?d.length=0:(d[0]=d.pop(),xe(b,0)),d=c.b(),delete b.b[d],c.e--,b=c,sc(b,"change",a.e,l,a),0==b.a&&(b.a=1,b.d=[sc(b.c,"error",b.h,l,b),sc(b.c,"load",b.o,l,b)],b.c.src=b.g),++a.c;a=this.yb;for(b=
|
||||
0;b<a.length;++b)a[b](this,this.e);a.length=0};p.nd=function(){Ag(this)};p.nc=function(){this.Ra(new Xd(this.G.clientWidth,this.G.clientHeight))};p.Ed=function(){Ag(this)};p.Kd=function(){Ag(this)};p.Jd=function(){this.F!==k&&(J(this.F),this.F=k);var a=this.a();a!=k&&(this.F=H(a,"changed",this.Kd,l,this));Ag(this)};p.Ha=function(){var a=this.a(),b;if(b=x(a)){if(a=a.Ha())a=this.f()!=k;b=a}return b};function Ag(a){a.d.O==k&&(0===a.g?(a=a.d,qd(a),a.Gb()):a.p=i)}
|
||||
function sf(a){0===a.g?a.d.O!=k||a.d.start():a.p=i}
|
||||
p.Od=function(a){var b;if(0==this.g){var c=this.f();b=this.t();var d=x(b)?b.a:h;b=this.a();var e=x(b)?this.a():h,f=k;if(x(d)&&x(c)&&x(e)&&e.Ha()){var f=this.La(),g=Fa(b.e),j={},n;for(b=0;b<d.length;++b){n=d[b];var r=j,s=y(n),q=n;n=q.b();var v=q.c(),u=q.d(),t=q.e(),z=q.Y().c(),E=q.f(),q=q.a();r[s]={brightness:x(n)?n:0,contrast:x(v)?v:1,hue:x(u)?u:0,opacity:x(t)?t:1,sb:z,saturation:x(E)?E:1,visible:x(q)?q:i}}b=e.M();r=e.wc();s=e.P();e=e.X();r={center:new L(b.x,b.y),projection:r,resolution:s,rotation:e};
|
||||
f={R:l,attributions:{},backgroundColor:x(f)?f:new Wd,fc:this.Lc,extent:k,jb:d,ib:j,yc:this.Qc,xa:[],size:c,Ub:this.ra,time:a,Pa:{},u:r,B:g,Qa:{}}}a=this.h;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=r.center;b=r.resolution;d=r.rotation;e=b*c.width/2;c=b*c.height/2;c=[new L(-e,-c),new L(-e,c),new L(e,-c),new L(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=ae.apply(k,c)}this.e=f;this.J.ob(f);this.p=l;f!==k&&(f.R&&sf(this),Array.prototype.push.apply(this.yb,
|
||||
f.xa));K(this,new Ze("postrender",this,f));w.setTimeout(this.Pc,0)}};p.Qd=function(a){this.q("backgroundColor",a)};S.prototype.setBackgroundColor=S.prototype.Qd;S.prototype.Rc=function(a){this.q(xg,a)};S.prototype.setLayers=S.prototype.Rc;S.prototype.Ra=function(a){this.q("size",a)};S.prototype.setSize=S.prototype.Ra;S.prototype.Sc=function(a){this.q("view",a)};S.prototype.setView=S.prototype.Sc;function tf(a,b,c){++a.g;try{b.call(c)}finally{0===--a.g&&a.p&&(a=a.d,qd(a),a.Gb())}}
|
||||
uh.Yc=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Xc(b);return id(a,"renderers")?jd(a,"renderers").split(","):id(a,"renderer")?[jd(a,"renderer")]:wh};Ie(Yf);Ie(ag);function xh(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
|
||||
function yh(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}C(ag,function(a){C(Yf,function(b){Ke(a,b,xh);Ke(b,a,yh)})});var zh={$d:"bottom-left",ae:"bottom-right",ue:"top-left",ve:"top-right"};function T(a){M.call(this);this.b=Qb("DIV");this.b.style.position="absolute";this.a={Ta:"",kb:"",ub:"",wb:"",visible:i};H(this,Rd("element"),this.od,l,this);H(this,Rd("map"),this.wd,l,this);H(this,Rd("position"),this.Ad,l,this);H(this,Rd("positioning"),this.Bd,l,this);x(a.element)&&this.Dc(a.element);x(a.position)&&this.p(a.position);x(a.positioning)&&this.q("positioning",a.positioning);x(a.map)&&this.h(a.map)}B(T,M);
|
||||
T.prototype.f=function(){return this.s("element")};T.prototype.getElement=T.prototype.f;T.prototype.d=function(){return this.s("map")};T.prototype.getMap=T.prototype.d;T.prototype.g=function(){return this.s("position")};T.prototype.getPosition=T.prototype.g;T.prototype.e=function(){return this.s("positioning")};T.prototype.getPositioning=T.prototype.e;p=T.prototype;p.od=function(){Sb(this.b);var a=this.f();a!=k&&Rb(this.b,a)};
|
||||
p.wd=function(){this.c!==k&&(Ub(this.b),J(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.Nd,l,this),Ah(this),Rb(a.w,this.b))};p.Nd=function(){Ah(this)};p.Ad=function(){Ah(this)};p.Bd=function(){Ah(this)};p.Dc=function(a){this.q("element",a)};T.prototype.setElement=T.prototype.Dc;T.prototype.h=function(a){this.q("map",a)};T.prototype.setMap=T.prototype.h;T.prototype.p=function(a){this.q("position",a)};T.prototype.setPosition=T.prototype.p;
|
||||
function Ah(a){var b=a.d(),c=a.g();if(!x(b)||!b.Ha()||!x(c))a.a.visible&&(Jc(a.b,l),a.a.visible=l);else{var c=Jf(b,c),d=b.f(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.kb&&(a.a.kb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.ub!=f&&(a.a.ub=b.right=f)}else""!==a.a.ub&&(a.a.ub=b.right=""),f=Math.round(c.x)+"px",a.a.kb!=f&&(a.a.kb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Ta&&(a.a.Ta=b.bottom=""),c=Math.round(c.y)+"px",a.a.wb!=c&&(a.a.wb=b.top=c)):(""!==a.a.wb&&
|
||||
(a.a.wb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Ta!=c&&(a.a.Ta=b.bottom=c));a.a.visible||(Jc(a.b,i),a.a.visible=i)}};function X(a){M.call(this);this.a=k;Bh&&(H(this,Rd("projection"),this.p,l,this),this.J=navigator.geolocation.watchPosition(na(this.F,this),na(this.G,this),a))}B(X,M);X.prototype.r=function(){navigator.geolocation.clearWatch(this.J);X.v.r.call(this)};X.prototype.p=function(){var a=this.c();a!=k&&(this.b=De(Ne("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.b(a,a,2),this.q("position",new L(a[0],a[1]))))};var Bh="geolocation"in navigator;
|
||||
X.prototype.F=function(a){a=a.coords;this.q("accuracy",a.accuracy);this.q("altitude",a.altitude===k?h:a.altitude);this.q("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.q("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new L(a.longitude,a.latitude);var b=[a.longitude,a.latitude],b=this.b(b,b,2);this.q("position",new L(b[0],b[1]));this.q("speed",a.speed===k?h:a.speed)};X.prototype.G=function(){};X.prototype.d=function(){return this.s("accuracy")};
|
||||
X.prototype.getAccuracy=X.prototype.d;X.prototype.e=function(){return this.s("altitude")};X.prototype.getAltitude=X.prototype.e;X.prototype.f=function(){return this.s("altitudeAccuracy")};X.prototype.getAltitudeAccuracy=X.prototype.f;X.prototype.g=function(){return this.s("heading")};X.prototype.getHeading=X.prototype.g;X.prototype.t=function(){return this.s("position")};X.prototype.getPosition=X.prototype.t;X.prototype.c=function(){return this.s("projection")};X.prototype.getProjection=X.prototype.c;
|
||||
X.prototype.j=function(){return this.s("speed")};X.prototype.getSpeed=X.prototype.j;X.prototype.A=function(a){this.q("projection",a)};X.prototype.setProjection=X.prototype.A;X.prototype.b=aa();function yh(a){var b=Ob("DIV",{"class":"ol-mouse-position"});tf.call(this,{element:b,map:a.map,target:a.target});this.l=a.projection;this.g=a.coordinateFormat;this.J=x(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.j=Ne;this.d=this.e=this.t=k}B(yh,tf);yh.prototype.G=function(a){a=a.b;a===k?this.c=k:this.c=a.u.projection;zh(this,this.e)};yh.prototype.A=function(a){a=Fc(a,this.b.b);a=new Ye(a.x,a.y);zh(this,a);this.e=a};yh.prototype.F=function(){zh(this,k);this.e=k};
|
||||
yh.prototype.a=function(a){this.d!==k&&(C(this.d,J),this.d=k);yh.v.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.A,l,this),H(b,"mouseout",this.F,l,this),H(a,"postrender",this.G,l,this)]}};function zh(a,b){var c=a.J;if(b!==k){a.t!=a.c&&(a.j=x(a.l)?Ce(a.c,a.l):Ne,a.t=a.c);var d=$e(a.b,b);d!==k&&(c=[d.x,d.y],c=a.j(c,c),d=new L(c[0],c[1]),c=x(a.g)?a.g(d):d.toString())}if(!x(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Ah(){this.a={}}B(Ah,zf);Ah.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Ah.prototype.oa=function(a){if("key"==a.type){var b=this.a[a.a.Za];b&&(b(),a.C())}};function Bh(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=l;b.validateOnParse=l;try{b.setProperty("ProhibitDTD",i),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};function Ch(){this.xa={Ic:/^\s*|\s*$/g,a:/\s*/g,Gc:/\s+/,Hc:/\s*,\s*/g}}function Dh(a,b,c){c||(c={});var d=a.w[b.namespaceURI]||a.w[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Z(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Dh(a,d,c)}function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}
|
||||
Ch.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,g,j=0,m=a.length;j<m;++j)if(f=a[j],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Eh(){function a(a,b){b.Sd.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),Te:a.getAttribute("locator"),Sd:[]};b.hc.push(e);Z(this,a,e)}this.w={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Z(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
|
||||
b){b.Ue=l;b.Cb={version:a.getAttribute("version"),language:a.getAttribute("language"),hc:[]};Z(this,a,b.Cb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Cb={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),hc:[]};Z(this,a,b.Cb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Ch.call(this)}B(Eh,Ch);
|
||||
Eh.prototype.ra=function(a){"string"==typeof a&&(a=Bh(a));var b={exceptionReport:k};a&&Z(this,a,b);return b};function Fh(a){this.c=a=a||{};this.Ua=a.Ua||k;this.version=a.version;this.profile=a.profile;a.Ra!==h?this.Ra=a.Ra:this.Ra=l;a.Sb!==h?this.Sb=a.Sb:this.Sb=l}
|
||||
Fh.prototype.ra=function(a,b){"string"==typeof a&&(a=Bh(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.Ua))):d=this.version||this.Ua;d=(c=d)||this.Ua;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Ra&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.b=new f(this.c)}this.b=this.b;d=this.b.ra(a,b);e=this.b.bd||k;e!==k&&
|
||||
d[e]===h&&(d.error=(new Eh).ra(a));d.version=c;return d};function Gh(){this.a="http://www.opengis.net/wms";this.bd="service";this.w={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Z(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
|
||||
X.prototype.h=function(){return this.s("speed")};X.prototype.getSpeed=X.prototype.h;X.prototype.w=function(a){this.q("projection",a)};X.prototype.setProjection=X.prototype.w;X.prototype.b=aa();function Ch(a){var b=Ob("DIV",{"class":"ol-mouse-position"});wf.call(this,{element:b,map:a.map,target:a.target});this.h=a.projection;this.g=a.coordinateFormat;this.J=x(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.o=Oe;this.d=this.e=this.t=k}B(Ch,wf);Ch.prototype.G=function(a){a=a.b;a===k?this.c=k:this.c=a.u.projection;Dh(this,this.e)};Ch.prototype.w=function(a){a=Gc(a,this.b.b);a=new $e(a.x,a.y);Dh(this,a);this.e=a};Ch.prototype.F=function(){Dh(this,k);this.e=k};
|
||||
Ch.prototype.a=function(a){this.d!==k&&(C(this.d,J),this.d=k);Ch.v.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.w,l,this),H(b,"mouseout",this.F,l,this),H(a,"postrender",this.G,l,this)]}};function Dh(a,b){var c=a.J;if(b!==k){a.t!=a.c&&(a.o=x(a.h)?De(a.c,a.h):Oe,a.t=a.c);var d=bf(a.b,b);d!==k&&(c=[d.x,d.y],c=a.o(c,c),d=new L(c[0],c[1]),c=x(a.g)?a.g(d):d.toString())}if(!x(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Eh(){this.a={}}B(Eh,Cf);Eh.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Eh.prototype.oa=function(a){if("key"==a.type){var b=this.a[a.a.$a];b&&(b(),a.C())}};function Fh(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=l;b.validateOnParse=l;try{b.setProperty("ProhibitDTD",i),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};function Gh(){this.ya={Ic:/^\s*|\s*$/g,a:/\s*/g,Gc:/\s+/,Hc:/\s*,\s*/g}}function Hh(a,b,c){c||(c={});var d=a.z[b.namespaceURI]||a.z[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Z(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Hh(a,d,c)}function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}
|
||||
Gh.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,g,j=0,n=a.length;j<n;++j)if(f=a[j],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Ih(){function a(a,b){b.Rd.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),De:a.getAttribute("locator"),Rd:[]};b.ic.push(e);Z(this,a,e)}this.z={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Z(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
|
||||
b){b.Ee=l;b.Eb={version:a.getAttribute("version"),language:a.getAttribute("language"),ic:[]};Z(this,a,b.Eb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Eb={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),ic:[]};Z(this,a,b.Eb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Gh.call(this)}B(Ih,Gh);
|
||||
Ih.prototype.sa=function(a){"string"==typeof a&&(a=Fh(a));var b={exceptionReport:k};a&&Z(this,a,b);return b};function Jh(a){this.c=a=a||{};this.Va=a.Va||k;this.version=a.version;this.profile=a.profile;a.Sa!==h?this.Sa=a.Sa:this.Sa=l;a.Sb!==h?this.Sb=a.Sb:this.Sb=l}
|
||||
Jh.prototype.sa=function(a,b){"string"==typeof a&&(a=Fh(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.Va))):d=this.version||this.Va;d=(c=d)||this.Va;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Sa&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.b=new f(this.c)}this.b=this.b;d=this.b.sa(a,b);e=this.b.hc||k;e!==k&&
|
||||
d[e]===h&&(d.error=(new Ih).sa(a));d.version=c;return d};function Kh(){this.a="http://www.opengis.net/wms";this.hc="service";this.z={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Z(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
|
||||
if(!isNaN(a.x)||!isNaN(a.y))b.res=a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};Z(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};Z(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=$(a)},ContactOrganization:function(a,b){b.organization=$(a)},ContactPosition:function(a,b){b.position=$(a)},ContactAddress:function(a,b){b.contactAddress=
|
||||
{};Z(this,a,b.contactAddress)},AddressType:function(a,b){b.type=$(a)},Address:function(a,b){b.address=$(a)},City:function(a,b){b.city=$(a)},StateOrProvince:function(a,b){b.stateOrProvince=$(a)},PostCode:function(a,b){b.postcode=$(a)},Country:function(a,b){b.country=$(a)},ContactVoiceTelephone:function(a,b){b.phone=$(a)},ContactFacsimileTelephone:function(a,b){b.fax=$(a)},ContactElectronicMailAddress:function(a,b){b.email=$(a)},Fees:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
|
||||
AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];Z(this,a,b.capability)},Request:function(a,b){b.request={};Z(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Z(this,a,b.getcapabilities)},Format:function(a,b){ea(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){Z(this,a,b)},HTTP:function(a,b){Z(this,
|
||||
a,b)},Get:function(a,b){b.get={};Z(this,a,b.get)},Post:function(a,b){b.post={};Z(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];Z(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];Z(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];Z(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
|
||||
k,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,j=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,m=a.getAttribute("noSubsets"),r=a.getAttribute("fixedWidth"),s=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||l,cascaded:g!==k?parseInt(g,10):e.cascaded||
|
||||
0,opaque:j?"1"===j||"true"===j:e.opaque||l,noSubsets:m!==k?"1"===m||"true"===m:e.noSubsets||l,fixedWidth:r!==k?parseInt(r,10):e.fixedWidth||0,fixedHeight:s!==k?parseInt(s,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(Ua(f.srs,e.srs),Ua(f.bbox,e.bbox),Ua(f.dimensions,e.dimensions),Ua(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Z(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,0<c.length&&
|
||||
k,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,j=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,n=a.getAttribute("noSubsets"),r=a.getAttribute("fixedWidth"),s=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||l,cascaded:g!==k?parseInt(g,10):e.cascaded||
|
||||
0,opaque:j?"1"===j||"true"===j:e.opaque||l,noSubsets:n!==k?"1"===n||"true"===n:e.noSubsets||l,fixedWidth:r!==k?parseInt(r,10):e.fixedWidth||0,fixedHeight:s!==k?parseInt(s,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(Ua(f.srs,e.srs),Ua(f.bbox,e.bbox),Ua(f.dimensions,e.dimensions),Ua(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Z(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,0<c.length&&
|
||||
(f.prefix=c[0]),d.layers.push(f),f.formats===h&&(f.formats=g.getmap.formats),f.infoFormats===h&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};Z(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};Z(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);Z(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Z(this,a,c)},MetadataURL:function(a,
|
||||
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Z(this,a,c)},DataURL:function(a,b){b.dataURL={};Z(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Z(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Z(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=$(a)},KeywordList:function(a,b){Z(this,a,b)},SRS:function(a,b){b.srs[$(a)]=i}}};Ch.call(this)}B(Gh,Ch);
|
||||
Gh.prototype.ra=function(a){"string"==typeof a&&(a=Bh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Dh(this,a,b);return b};function Hh(){Gh.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Ua(this.w["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Z(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Z(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Z(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Z(this,a,c.getstyles)},PutStyles:function(a,
|
||||
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Z(this,a,c)},DataURL:function(a,b){b.dataURL={};Z(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Z(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Z(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=$(a)},KeywordList:function(a,b){Z(this,a,b)},SRS:function(a,b){b.srs[$(a)]=i}}};Gh.call(this)}B(Kh,Gh);
|
||||
Kh.prototype.sa=function(a){"string"==typeof a&&(a=Fh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Hh(this,a,b);return b};function Lh(){Kh.call(this);var a=this.z["http://www.opengis.net/wms"].BoundingBox;Ua(this.z["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Z(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Z(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Z(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Z(this,a,c.getstyles)},PutStyles:function(a,
|
||||
c){c.putstyles={formats:[]};Z(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
|
||||
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));e!=Number.POSITIVE_INFINITY&&(c.minScale=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=
|
||||
d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=$(a).split(","))}})}B(Hh,Gh);function Ih(){Hh.call(this);this.version="1.1.0";Ua(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=i}})}B(Ih,Hh);function Jh(){Hh.call(this);this.version="1.1.1";Ua(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=i}})}B(Jh,Hh);function Kh(){Jh.call(this);this.profile="WMSC";Ua(this.w["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Z(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Z(this,a,c);b.We.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,
|
||||
b){b.layers=$(a)},Styles:function(a,b){b.styles=$(a)}})}B(Kh,Jh);function Lh(){Gh.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Ua(this.w["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Z(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.w["http://www.opengis.net/wms"].SRS.apply(this,
|
||||
d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=$(a).split(","))}})}B(Lh,Kh);function Mh(){Lh.call(this);this.version="1.1.0";Ua(this.z["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=i}})}B(Mh,Lh);function Nh(){Lh.call(this);this.version="1.1.1";Ua(this.z["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=i}})}B(Nh,Lh);function Oh(){Nh.call(this);this.profile="WMSC";Ua(this.z["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Z(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Z(this,a,c);b.Ge.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,
|
||||
b){b.layers=$(a)},Styles:function(a,b){b.styles=$(a)}})}B(Oh,Nh);function Ph(){Kh.call(this);var a=this.z["http://www.opengis.net/wms"].BoundingBox;Ua(this.z["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Z(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.z["http://www.opengis.net/wms"].SRS.apply(this,
|
||||
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];Z(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=$(a)},eastBoundLongitude:function(a,c){c[2]=$(a)},southBoundLatitude:function(a,c){c[1]=$(a)},northBoundLatitude:function(a,c){c[3]=$(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat($(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat($(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
|
||||
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:$(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:$(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.w.sld={UserDefinedSymbolization:function(a,c){this.w["http://www.opengis.net/wms"].Pe.apply(this,arguments);var d=
|
||||
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.w["http://www.opengis.net/wms"].le.apply(this,arguments)},GetLegendGraphic:function(a,c){this.w["http://www.opengis.net/wms"].me.apply(this,arguments)}}}B(Lh,Gh);function Mh(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Ih;this.a.v1_1_1=Jh;this.a.v1_1_1_WMSC=Kh;this.a.v1_3_0=Lh;Fh.call(this,a)}B(Mh,Fh);function Nh(){this.w={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};Z(this,a,b.serviceIdentification)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},Keywords:function(a,b){b.keywords={};Z(this,a,b.keywords)},Keyword:function(a,b){b[$(a)]=i},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:$(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=$(a)},Fees:function(a,b){b.fees=$(a)},
|
||||
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:$(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:$(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.z.sld={UserDefinedSymbolization:function(a,c){this.z["http://www.opengis.net/wms"].Ae.apply(this,arguments);var d=
|
||||
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.z["http://www.opengis.net/wms"].ke.apply(this,arguments)},GetLegendGraphic:function(a,c){this.z["http://www.opengis.net/wms"].me.apply(this,arguments)}}}B(Ph,Kh);function Qh(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Mh;this.a.v1_1_1=Nh;this.a.v1_1_1_WMSC=Oh;this.a.v1_3_0=Ph;Jh.call(this,a)}B(Qh,Jh);function Rh(){this.z={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};Z(this,a,b.serviceIdentification)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},Keywords:function(a,b){b.keywords={};Z(this,a,b.keywords)},Keyword:function(a,b){b[$(a)]=i},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:$(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=$(a)},Fees:function(a,b){b.fees=$(a)},
|
||||
AccessConstraints:function(a,b){b.accessConstraints=$(a)},ServiceProvider:function(a,b){b.serviceProvider={};Z(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=$(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};Z(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=$(a)},PositionName:function(a,b){b.positionName=$(a)},ContactInfo:function(a,b){b.contactInfo=
|
||||
{};Z(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};Z(this,a,b.phone)},Voice:function(a,b){b.voice=$(a)},Address:function(a,b){b.address={};Z(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=$(a)},City:function(a,b){b.city=$(a)},AdministrativeArea:function(a,b){b.administrativeArea=$(a)},PostalCode:function(a,b){b.postalCode=$(a)},Country:function(a,b){b.country=$(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=$(a)},Role:function(a,b){b.role=$(a)},OperationsMetadata:function(a,
|
||||
b){b.operationsMetadata={};Z(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};Z(this,a,b[c])},DCP:function(a,b){b.dcp={};Z(this,a,b.dcp)},HTTP:function(a,b){b.http={};Z(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Z(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Z(this,a,c);b.post.push(c)},
|
||||
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};Z(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};Z(this,a,b.constraints[c])},Value:function(a,b){b[$(a)]=i},OutputFormat:function(a,b){b.formats.push({value:$(a)});Z(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);Z(this,
|
||||
a,c)},BoundingBox:function(a,b){this.w["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=$(a).replace(this.xa.Ic,""),c=c.replace(this.xa.Hc,","),c=c.split(this.xa.Gc);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=$(a).replace(this.xa.Ic,""),c=c.replace(this.xa.Hc,","),c=c.split(this.xa.Gc);b.right=c[0];b.top=c[1];b.bounds=new Zd(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;
|
||||
delete b.right;delete b.top},Language:function(a,b){b.language=$(a)}}};Ch.call(this)}B(Nh,Ch);function Oh(){Nh.call(this);this.w["http://www.opengis.net/ows/1.1"]=this.w["http://www.opengis.net/ows"];Ua(this.w["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};Z(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=i},DataType:function(a,b){b.dataType=$(a)},Range:function(a,b){b.range={};Z(this,a,b.range)},MinimumValue:function(a,b){b.minValue=$(a)},MaximumValue:function(a,b){b.maxValue=$(a)},Identifier:function(a,b){b.identifier=$(a)},SupportedCRS:function(a,
|
||||
b){b.supportedCRS=$(a)}})}B(Oh,Nh);function Ph(){this.w={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){Z(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};Z(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};Z(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");Z(this,a,d);c.styles.push(d)},Format:function(a,c){c.formats.push($(a))},TileMatrixSetLink:function(a,
|
||||
c){var d={};Z(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};Z(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=$(a)},TileMatrix:function(a,c){var d={supportedCRS:c.Ve};Z(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat($(a))},TopLeftCorner:function(a,c){var d=$(a).split(" "),e=Me(c.supportedCRS).c,d=[parseFloat(d[0]),parseFloat(d[1])],e=e.charAt(0);c.topLeftCorner="n"===e||"s"===e?new L(d[1],
|
||||
d[0]):new L(d[0],d[1])},TileWidth:function(a,c){c.tileWidth=parseInt($(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt($(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt($(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt($(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=[]);
|
||||
c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};Z(this,a,d);c.dimensions.push(d)},
|
||||
Default:function(a,c){c["default"]=$(a)},Value:function(a,c){c.values.push($(a))}}};var a=new Oh;this.w["http://www.opengis.net/ows/1.1"]=a.w["http://www.opengis.net/ows/1.1"];Ch.call(this)}B(Ph,Ch);Ph.prototype.ra=function(a){"string"==typeof a&&(a=Bh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Dh(this,a,b);return b};function Qh(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=Ph;Fh.call(this,a)}B(Qh,Fh);/*
|
||||
a,c)},BoundingBox:function(a,b){this.z["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=$(a).replace(this.ya.Ic,""),c=c.replace(this.ya.Hc,","),c=c.split(this.ya.Gc);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=$(a).replace(this.ya.Ic,""),c=c.replace(this.ya.Hc,","),c=c.split(this.ya.Gc);b.right=c[0];b.top=c[1];b.bounds=new $d(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;
|
||||
delete b.right;delete b.top},Language:function(a,b){b.language=$(a)}}};Gh.call(this)}B(Rh,Gh);function Sh(){Rh.call(this);this.z["http://www.opengis.net/ows/1.1"]=this.z["http://www.opengis.net/ows"];Ua(this.z["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};Z(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=i},DataType:function(a,b){b.dataType=$(a)},Range:function(a,b){b.range={};Z(this,a,b.range)},MinimumValue:function(a,b){b.minValue=$(a)},MaximumValue:function(a,b){b.maxValue=$(a)},Identifier:function(a,b){b.identifier=$(a)},SupportedCRS:function(a,
|
||||
b){b.supportedCRS=$(a)}})}B(Sh,Rh);function Th(){this.a="http://www.opengis.net/wtms/1.0";this.hc="serviceIdentification";this.z={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){Z(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};Z(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};Z(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");Z(this,a,d);c.styles.push(d)},
|
||||
Format:function(a,c){c.formats.push($(a))},TileMatrixSetLink:function(a,c){var d={};Z(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};Z(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=$(a)},TileMatrix:function(a,c){var d={supportedCRS:c.Fe};Z(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat($(a))},TopLeftCorner:function(a,c){var d=$(a).split(" "),e=Ne(c.supportedCRS).d,d=[parseFloat(d[0]),
|
||||
parseFloat(d[1])],e=e.charAt(0);c.topLeftCorner="n"===e||"s"===e?new L(d[1],d[0]):new L(d[0],d[1])},TileWidth:function(a,c){c.tileWidth=parseInt($(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt($(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt($(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt($(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||
|
||||
(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=[]);c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},
|
||||
Dimension:function(a,c){var d={values:[]};Z(this,a,d);c.dimensions.push(d)},Default:function(a,c){c["default"]=$(a)},Value:function(a,c){c.values.push($(a))}}};var a=new Sh;this.z["http://www.opengis.net/ows/1.1"]=a.z["http://www.opengis.net/ows/1.1"];Gh.call(this)}B(Th,Gh);Th.prototype.sa=function(a){"string"==typeof a&&(a=Fh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Hh(this,a,b);return b};function Uh(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=Th;Jh.call(this,a)}B(Uh,Jh);/*
|
||||
Portions of this code are from MochiKit, received by
|
||||
The Closure Authors under the MIT license. All other code is Copyright
|
||||
2005-2009 The Closure Authors. All Rights Reserved.
|
||||
*/
|
||||
function Rh(a,b){this.a=[];this.f=a;this.e=b||k}p=Rh.prototype;p.ia=l;p.Da=l;p.Ka=0;p.Fc=l;p.Xc=l;p.Wc=0;p.ec=function(a,b){Sh(this,a,b);this.Ka--;0==this.Ka&&this.ia&&Th(this)};function Sh(a,b,c){a.ia=i;a.b=c;a.Da=!b;Th(a)}function Uh(a){if(a.ia){if(!a.Fc)throw new Vh(a);a.Fc=l}}function Wh(a){return Ba(a.a,function(a){return ha(a[1])})}
|
||||
function Th(a){a.c&&(a.ia&&Wh(a))&&(w.clearTimeout(a.c),delete a.c);a.d&&(a.d.Wc--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.Ka;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Da?g:f)try{var j=f.call(e||a.e,b);x(j)&&(a.Da=a.Da&&(j==b||j instanceof Error),a.b=b=j);b instanceof Rh&&(d=i,a.Ka++)}catch(m){b=m,a.Da=i,Wh(a)||(c=i)}}a.b=b;d&&a.Ka&&(d=b,j=na(a.ec,a,i),f=na(a.ec,a,l),d.a.push([j,f,h]),d.ia&&Th(d),b.Xc=i);c&&(a.c=w.setTimeout(function(){throw b;},0))}
|
||||
function Vh(a){qa.call(this);this.a=a}B(Vh,qa);Vh.prototype.message="Deferred has already fired";Vh.prototype.name="AlreadyCalledError";function Xh(a,b){var c=b||{},d=c.document||document,e=Qb("SCRIPT"),f={Cc:e,tb:h},g=new Rh(Yh,f),j=k,m=c.timeout!=k?c.timeout:5E3;0<m&&(j=window.setTimeout(function(){Zh(e,i);var b=new $h(ai,"Timeout reached for loading script "+a);Uh(g);Sh(g,l,b)},m),f.tb=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)Zh(e,c.cc||l,j),Uh(g),Sh(g,i,k)};e.onerror=function(){Zh(e,i,j);var b=new $h(bi,"Error while loading script "+a);Uh(g);Sh(g,l,b)};Lb(e,
|
||||
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function Yh(){if(this&&this.Cc){var a=this.Cc;a&&"SCRIPT"==a.tagName&&Zh(a,i,this.tb)}}function Zh(a,b,c){c!=k&&w.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){Ub(a)},0)}var bi=0,ai=1;function $h(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);qa.call(this,c);this.code=a}B($h,qa);function ci(a){this.b=new Rc(a);this.a="jsonp";this.tb=5E3}var di=0;function ei(a,b){w._callbacks_[a]&&(b?delete w._callbacks_[a]:w._callbacks_[a]=ba)};function fi(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return gi(Aa(c,fi))}return function(b){return b===k?h:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function gi(a){return function(b,c,d){if(b!==k){var e=Fb(b.hash(),a.length);return a[e](b,c,d)}}}function hi(a,b,c){return function(d,e,f){return d===k?h:xg(a,b,cg(e,d),hg(e,d.n),f,c)}}
|
||||
function ii(){}function ji(a,b){return function(c,d,e){return c===k?h:b(a(c,d,e),d,e)}};function ki(a,b,c){se.call(this,a);this.f=b;this.b=new Image;c!==k&&(this.b.crossOrigin=c);this.e={};this.d=k}B(ki,se);ki.prototype.I=function(a){if(x(a)){var b=y(a);if(b in this.e)return this.e[b];a=Sa(this.e)?this.b:this.b.cloneNode(l);return this.e[b]=a}return this.b};ki.prototype.c=n("f");ki.prototype.g=function(){this.a=3;C(this.d,J);this.d=k;K(this,"change")};ki.prototype.l=function(){this.a=2;C(this.d,J);this.d=k;K(this,"change")};function li(a){eh.call(this);this.d=x(a)?a:512}B(li,eh);li.prototype.Ba=function(a){for(var b,c;this.Z()>this.d&&!(b=this.a.Y,c=b.U.n.toString(),c in a&&a[c].contains(b.U));)gh(this)};function mi(a){jg.call(this,{attributions:a.attributions,extent:a.extent,X:a.X,projection:a.projection,tileGrid:a.tileGrid});this.ca=x(a.ca)?a.ca:ii;this.F=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new li}B(mi,jg);mi.prototype.f=function(){return this.a.Z()>this.a.d};mi.prototype.Ba=function(a){this.a.Ba(a)};mi.prototype.b=function(a,b,c){var d=a.toString();if(ch(this.a,d))return fh(this.a,d);b=this.ca(a,b,c);x(b)?(a=new ki(a,b,this.F),hh(this.a,d,a)):a=k;return a};
|
||||
mi.prototype.p=function(a){a=a.toString();ch(this.a,a)&&fh(this.a,a)};function ni(a){var b=Array(a.maxZoom+1),c,d=2*Uf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);bg.call(this,{origin:new L(-Uf,Uf),resolutions:b,tileSize:new Wd(256,256)})}B(ni,bg);ni.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new qe(d,e,d,e);if(b.call(c,a,f))break}};function oi(a){mi.call(this,{X:i,projection:Me("EPSG:3857")});this.$c=x(a.culture)?a.culture:"en-us";this.g=l;var b=new Rc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new ci(b),a={include:"ImageryProviders",key:a.key},c=na(this.t,this),a=a||k,d="_"+(di++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.Q();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&ed(e,f,a[f]);c&&(w._callbacks_[d]=function(a){ei(d,i);c.apply(h,arguments)},ed(e,b.a,"_callbacks_."+
|
||||
d));f=Xh(e.toString(),{timeout:b.tb,cc:i});f.a.push([k,function(){ei(d,l)},h]);f.ia&&Th(f)}B(oi,mi);
|
||||
oi.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new ni({maxZoom:d,tileSize:new Wd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ca=ji(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new oe(a.n,Fb(a.x,b),e)},gi(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.$c);return function(a){return a===k?h:c.replace("{quadkey}",pe(a))}})));var f=Ce(Me("EPSG:4326"),this.j);this.e=
|
||||
Aa(b.imageryProviders,function(a){var b=a.attribution,c={};C(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new Zd(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=dg(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new re(b,c)});this.g=i;K(this,"load")};oi.prototype.c=n("g");function pi(a,b){se.call(this,a);this.a=2;this.e=a;this.d=hg(b,a.n);this.b={}}B(pi,se);pi.prototype.I=function(a){a=x(a)?y(a):-1;if(a in this.b)return this.b[a];var b=this.d,c=Qb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.b[a]=c};
|
||||
function qi(a){jg.call(this,{extent:a.extent,X:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new li}B(qi,jg);qi.prototype.f=function(){return this.a.Z()>this.a.d};qi.prototype.Ba=function(a){this.a.Ba(a)};qi.prototype.b=function(a){var b=a.toString();if(ch(this.a,b))return fh(this.a,b);a=new pi(a,this.tileGrid);hh(this.a,b,a);return a};function ri(a){var b=a.projection||Me("EPSG:3857"),c=ii;x(a.ca)?c=a.ca:x(a.urls)?c=gi(Aa(a.urls,fi)):x(a.url)&&(c=fi(a.url));var d=new ni({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?ji(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,j=-b.y-1;if(0>j||c<=j)return k;c=Fb(b.x,c);return!Yd(cg(d,new oe(b.n,c,b.y)),e)?k:new oe(b.n,c,j)},c):ji(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new oe(b.n,Fb(b.x,c),d)},c);mi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
||||
extent:a.extent,projection:b,tileGrid:d,ca:c})}B(ri,mi);function si(){ri.call(this,{attributions:[new re('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new re('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],X:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(si,ri);
|
||||
function ti(){ri.call(this,{attributions:[new re('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new re("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,X:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(ti,ri);function ui(){ri.call(this,{attributions:[new re('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],X:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(ui,ri);function vi(a){Ag.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Fa:x(a.url)?yg(a.url,a.params,a.version):zg});this.b=k;this.f=1.5}B(vi,Ag);
|
||||
vi.prototype.I=function(a,b,c){this.a===k||(b=this.a[nf(this.a,b)]);var d=this.b,e;if(e=d!==k)if(e=d.e==b)e=d.H(),e=e.h<=a.h&&a.m<=e.m&&e.i<=a.i&&a.k<=e.k;if(e)return d;var d=a=new Zd(a.h,a.i,a.m,a.k),f=this.f;e=d.da()/2*(f-1);f=d.$()/2*(f-1);d.h-=e;d.i-=f;d.m+=e;d.k+=f;return this.b=Bg(this,a,b,new Wd(a.da()/b,a.$()/b),c)};var wi={ve:"background",we:"labels",xe:"lines",ze:"2010",Ae:"2011",Be:"2011-labels",Ce:"2011-lines",De:"2011-lite",Ee:"background",Fe:"hybrid",Ge:"labels",He:"lines",Ie:"lite"},xi={ue:"terrain",ye:"toner",Qe:"watercolor"},yi={terrain:{type:"jpg",sc:4,maxZoom:18},toner:{type:"png",sc:0,maxZoom:20},watercolor:{type:"jpg",sc:3,maxZoom:16}};
|
||||
function zi(a){var b=new re('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.provider;x(a.flavor)&&(c+="-"+a.flavor);a=yi[a.provider];ri.call(this,{attributions:[b],maxZoom:a.maxZoom,X:l,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B(zi,ri);function Ai(a){var b=a.imageExtent,c=a.imageSize,d=b.$()/c.height,e=x(a.projection)?a.projection:k,f=a.url;Ag.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Fa:function(){return f},resolutions:[d]});this.b=Bg(this,b,d,c,e)}B(Ai,Ag);Ai.prototype.I=function(a){return Yd(a,this.b.H())?this.b:k};var Bi=[];A("grid",function(a){Bi.push(a)});function Ci(a){mi.call(this,{projection:Me("EPSG:3857")});this.g=l;a=this.t=Xh(a.uri,{cc:i});a.a.push([this.A,k,this]);a.ia&&Th(a)}B(Ci,mi);
|
||||
Ci.prototype.A=function(){var a=Bi.pop(),b=Me("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new Zd(c[0],c[1],c[2],c[3]),this.l=d=c.transform(Ce(b,this.j))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new ni({maxZoom:f});this.tileGrid=g;this.ca=ji(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=Fb(a.x,b);return d!==k&&!Yd(cg(g,new oe(a.n,b,a.y)),d)?k:new oe(a.n,b,c)},gi(Aa(a.tiles,fi)));if(x(a.attribution)){b=d===k?b.H():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(),
|
||||
c[m]=[dg(g,b,g.a[j])];this.e=[new re(a.attribution,c)]}this.g=i;K(this,"load")};Ci.prototype.c=n("g");function Di(a){var b=a.version,c;a.urls?(c=Aa(a.urls,function(c){return hi(c,a.params,b)}),c=gi(c)):c=a.url?hi(a.url,a.params,b):ii;mi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,tileGrid:a.tileGrid,X:!(x(a.transparent)?a.transparent:1),projection:a.projection,ca:ji(function(b,c,f){if(c.Db().length<=b.n)return k;var g=b.x,j=cg(c,b),m=f.H(),f=x(a.extent)?a.extent:m;f.h===m.h&&f.m===m.m&&(j=Math.ceil((f.m-f.h)/(j.m-j.h)),g=Fb(g,j),j=cg(c,new oe(b.n,g,b.y)));return!Yd(j,
|
||||
f)?k:new oe(b.n,g,b.y)},c)})}B(Di,mi);A("goog.require",ba);function Ei(a){T.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Ei,T);A("ol.AnchoredElement",Ei);A("ol.AnchoredElementPositioning",vh);vh.BOTTOM_LEFT="bottom-left";vh.BOTTOM_RIGHT="bottom-right";vh.TOP_LEFT="top-left";vh.TOP_RIGHT="top-right";A("ol.Attribution",re);A("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getArray=N.prototype.dd;N.prototype.getAt=N.prototype.ed;
|
||||
N.prototype.getLength=N.prototype.Ya;N.prototype.insertAt=N.prototype.cb;N.prototype.pop=N.prototype.vc;N.prototype.push=N.prototype.push;N.prototype.removeAt=N.prototype.Bc;N.prototype.setAt=N.prototype.Qd;A("ol.Coordinate",L);L.toStringHDMS=function(a){return x(a)?Oc(a.y,"NS")+" "+Oc(a.x,"EW"):""};A("ol.Extent",Zd);Zd.prototype.getHeight=Zd.prototype.$;Zd.prototype.getWidth=Zd.prototype.da;A("ol.Geolocation",X);
|
||||
function Fi(a){S.call(this,{attributionControl:a.attributionControl,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,renderer:a.renderer,renderers:a.renderers,scaleLineControl:a.scaleLineControl,scaleLineUnits:a.scaleLineUnits,shiftDragZoom:a.shiftDragZoom,target:a.target,touchPan:a.touchPan,touchRotate:a.touchRotate,touchZoom:a.touchZoom,
|
||||
view:a.view,zoomControl:a.zoomControl,zoomDelta:a.zoomDelta})}B(Fi,S);A("ol.Map",Fi);S.prototype.addPreRenderFunction=S.prototype.j;S.prototype.addPreRenderFunctions=S.prototype.Lc;S.prototype.getInteractions=S.prototype.Nc;S.prototype.getRenderer=S.prototype.Pc;Ze.prototype.getCoordinate=Ze.prototype.d;A("ol.Object",M);M.prototype.bindTo=M.prototype.Vc;M.prototype.changed=M.prototype.Yc;M.prototype.get=M.prototype.s;M.prototype.notify=M.prototype.uc;M.prototype.set=M.prototype.q;
|
||||
M.prototype.setOptions=M.prototype.Ec;M.prototype.setValues=M.prototype.lb;M.prototype.unbind=M.prototype.Vb;M.prototype.unbindAll=M.prototype.$d;A("ol.Projection",O);O.prototype.getAxisOrientation=O.prototype.g;O.prototype.getCode=O.prototype.l;O.prototype.getExtent=O.prototype.H;O.prototype.getPointResolution=O.prototype.b;O.prototype.getUnits=O.prototype.j;A("ol.ProjectionUnits",Ae);Ae.DEGREES="degrees";Ae.METERS="m";A("ol.RendererHint",rh);rh.CANVAS="canvas";rh.DOM="dom";rh.WEBGL="webgl";
|
||||
A("ol.RendererHints",qh);qh.createFromQueryData=qh.Zc;function Gi(a){R.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(Gi,R);A("ol.View2D",Gi);A("ol.animation",Ue);Ue.bounce=Ue.Ab;Ue.pan=Ue.Ja;Ue.rotate=Ue.rotate;Ue.zoom=Ue.zoom;function Hi(a){uf.call(this,{map:a.map,target:a.target})}B(Hi,uf);A("ol.control.Attribution",Hi);
|
||||
uf.prototype.setMap=uf.prototype.a;function Ii(a){yh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Ii,yh);A("ol.control.MousePosition",Ii);yh.prototype.setMap=yh.prototype.a;function Ji(a){wf.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}B(Ji,wf);A("ol.control.ScaleLine",Ji);wf.prototype.setMap=wf.prototype.a;A("ol.control.ScaleLineUnits",vf);vf.DEGREES="degrees";vf.IMPERIAL="imperial";
|
||||
vf.METRIC="metric";vf.NAUTICAL="nautical";vf.US="us";function Ki(a){yf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ki,yf);A("ol.control.Zoom",Ki);yf.prototype.setMap=yf.prototype.a;A("ol.easing",Te);Te.bounce=Te.Ab;Te.elastic=Te.ad;Te.linear=Te.pc;Te.upAndDown=Te.Jc;A("ol.interaction.Keyboard",Ah);Ah.prototype.addCallback=Ah.prototype.b;
|
||||
function Li(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Li,Cg);A("ol.layer.ImageLayer",Li);function Mi(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Mi,Dg);A("ol.layer.TileLayer",Mi);A("ol.parser.ogc.WMSCapabilities",Mh);Mh.prototype.read=Mh.prototype.ra;A("ol.parser.ogc.WMTSCapabilities",Qh);
|
||||
Qh.prototype.read=Qh.prototype.ra;A("ol.projection.addProjection",Ie);A("ol.projection.getFromCode",Me);A("ol.projection.getTransform",Ce);A("ol.projection.getTransformFromCodes",Oe);A("ol.projection.transform",function(a,b,c){b=Ce(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});A("ol.projection.transformWithCodes",function(a,b,c){b=Oe(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Hg.prototype.getCanvas=Hg.prototype.Wa;A("ol.source.BingMaps",oi);
|
||||
function Ni(a){qi.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Ni,qi);A("ol.source.DebugTileSource",Ni);A("ol.source.MapQuestOSM",si);A("ol.source.MapQuestOpenAerial",ti);A("ol.source.OpenStreetMap",ui);A("ol.source.SingleImageWMS",vi);A("ol.source.Stamen",zi);A("ol.source.StamenFlavor",wi);wi.TERRAIN_BACKGROUND="background";wi.TERRAIN_LABELS="labels";wi.TERRAIN_LINES="lines";wi.TONER_2010="2010";wi.TONER_2011="2011";wi.TONER_2011_LABELS="2011-labels";
|
||||
wi.TONER_2011_LINES="2011-lines";wi.TONER_2011_LITE="2011-lite";wi.TONER_BACKGROUND="background";wi.TONER_HYBRID="hybrid";wi.TONER_LABELS="labels";wi.TONER_LINES="lines";wi.TONER_LITE="lite";A("ol.source.StamenProvider",xi);xi.TERRAIN="terrain";xi.TONER="toner";xi.WATERCOLOR="watercolor";A("ol.source.StaticImage",Ai);A("ol.source.TileJSON",Ci);A("ol.source.TiledWMS",Di);
|
||||
function Oi(a){bg.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(Oi,bg);A("ol.tilegrid.TileGrid",Oi);function Pi(a){ni.call(this,{maxZoom:a.maxZoom})}B(Pi,ni);A("ol.tilegrid.XYZ",Pi);Ue.ce={};Ue.se={};Ue.te={};Ue.Se={};})();
|
||||
function Vh(a,b){this.a=[];this.f=a;this.e=b||k}p=Vh.prototype;p.ja=l;p.Ea=l;p.Ka=0;p.Fc=l;p.Wc=l;p.Vc=0;p.ec=function(a,b){Wh(this,a,b);this.Ka--;0==this.Ka&&this.ja&&Xh(this)};function Wh(a,b,c){a.ja=i;a.b=c;a.Ea=!b;Xh(a)}function Yh(a){if(a.ja){if(!a.Fc)throw new Zh(a);a.Fc=l}}function $h(a){return Ba(a.a,function(a){return ha(a[1])})}
|
||||
function Xh(a){a.c&&(a.ja&&$h(a))&&(w.clearTimeout(a.c),delete a.c);a.d&&(a.d.Vc--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.Ka;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Ea?g:f)try{var j=f.call(e||a.e,b);x(j)&&(a.Ea=a.Ea&&(j==b||j instanceof Error),a.b=b=j);b instanceof Vh&&(d=i,a.Ka++)}catch(n){b=n,a.Ea=i,$h(a)||(c=i)}}a.b=b;d&&a.Ka&&(d=b,j=na(a.ec,a,i),f=na(a.ec,a,l),d.a.push([j,f,h]),d.ja&&Xh(d),b.Wc=i);c&&(a.c=w.setTimeout(function(){throw b;},0))}
|
||||
function Zh(a){qa.call(this);this.a=a}B(Zh,qa);Zh.prototype.message="Deferred has already fired";Zh.prototype.name="AlreadyCalledError";function ai(a,b){var c=b||{},d=c.document||document,e=Qb("SCRIPT"),f={Cc:e,vb:h},g=new Vh(bi,f),j=k,n=c.timeout!=k?c.timeout:5E3;0<n&&(j=window.setTimeout(function(){ci(e,i);var b=new di(ei,"Timeout reached for loading script "+a);Yh(g);Wh(g,l,b)},n),f.vb=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)ci(e,c.cc||l,j),Yh(g),Wh(g,i,k)};e.onerror=function(){ci(e,i,j);var b=new di(fi,"Error while loading script "+a);Yh(g);Wh(g,l,b)};Lb(e,
|
||||
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function bi(){if(this&&this.Cc){var a=this.Cc;a&&"SCRIPT"==a.tagName&&ci(a,i,this.vb)}}function ci(a,b,c){c!=k&&w.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){Ub(a)},0)}var fi=0,ei=1;function di(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);qa.call(this,c);this.code=a}B(di,qa);function gi(a){this.b=new Sc(a);this.a="jsonp";this.vb=5E3}var hi=0;function ii(a,b){w._callbacks_[a]&&(b?delete w._callbacks_[a]:w._callbacks_[a]=ba)};function ji(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return ki(Aa(c,ji))}return function(b){return b===k?h:a.replace("{z}",b.m).replace("{x}",b.x).replace("{y}",b.y)}}function ki(a){return function(b,c,d){if(b!==k){var e=Fb(b.hash(),a.length);return a[e](b,c,d)}}}function li(a,b){return function(c,d,e){return c===k?h:Bg(a,b,fg(d,c),kg(d,c.m),e)}}
|
||||
function mi(){}function ni(a,b){return function(c,d,e){return c===k?h:b(a(c,d,e),d,e)}};function oi(a,b,c){te.call(this,a);this.g=b;this.c=new Image;c!==k&&(this.c.crossOrigin=c);this.f={};this.d=k}B(oi,te);oi.prototype.I=function(a){if(x(a)){var b=y(a);if(b in this.f)return this.f[b];a=Sa(this.f)?this.c:this.c.cloneNode(l);return this.f[b]=a}return this.c};oi.prototype.b=m("g");oi.prototype.h=function(){this.a=3;C(this.d,J);this.d=k;K(this,"change")};oi.prototype.o=function(){this.a=2;C(this.d,J);this.d=k;K(this,"change")};function pi(a){ih.call(this);this.d=x(a)?a:512}B(pi,ih);pi.prototype.Ca=function(a){for(var b,c;this.$()>this.d&&!(b=this.a.Z,c=b.V.m.toString(),c in a&&a[c].contains(b.V));)kh(this)};function qi(a){mg.call(this,{attributions:a.attributions,extent:a.extent,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.da=x(a.da)?a.da:mi;this.F=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new pi}B(qi,mg);qi.prototype.f=function(){return this.a.$()>this.a.d};qi.prototype.Ca=function(a){this.a.Ca(a)};qi.prototype.b=function(a,b,c){var d=a.toString();if(gh(this.a,d))return jh(this.a,d);b=this.da(a,b,c);x(b)?(a=new oi(a,b,this.F),lh(this.a,d,a)):a=k;return a};
|
||||
qi.prototype.p=function(a){a=a.toString();gh(this.a,a)&&jh(this.a,a)};function ri(a){var b=Array(a.maxZoom+1),c,d=2*Xf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);eg.call(this,{origin:new L(-Xf,Xf),resolutions:b,tileSize:new Xd(256,256)})}B(ri,eg);ri.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.m,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new re(d,e,d,e);if(b.call(c,a,f))break}};function si(a){qi.call(this,{opaque:i,projection:Ne("EPSG:3857")});this.Zc=x(a.culture)?a.culture:"en-us";this.g=l;var b=new Sc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new gi(b),a={include:"ImageryProviders",key:a.key},c=na(this.t,this),a=a||k,d="_"+(hi++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.S();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&fd(e,f,a[f]);c&&(w._callbacks_[d]=function(a){ii(d,i);c.apply(h,arguments)},fd(e,
|
||||
b.a,"_callbacks_."+d));f=ai(e.toString(),{timeout:b.vb,cc:i});f.a.push([k,function(){ii(d,l)},h]);f.ja&&Xh(f)}B(si,qi);
|
||||
si.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new ri({maxZoom:d,tileSize:new Xd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.da=ni(function(a){if(a.m<c||d<a.m)return k;var b=1<<a.m,e=-a.y-1;return 0>e||b<=e?k:new pe(a.m,Fb(a.x,b),e)},ki(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Zc);return function(a){return a===k?h:c.replace("{quadkey}",qe(a))}})));var f=De(Ne("EPSG:4326"),this.o);this.e=
|
||||
Aa(b.imageryProviders,function(a){var b=a.attribution,c={};C(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new $d(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=gg(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new se(b,c)});this.g=i;K(this,"load")};si.prototype.c=m("g");function ti(a,b){te.call(this,a);this.a=2;this.f=a;this.d=kg(b,a.m);this.c={}}B(ti,te);ti.prototype.I=function(a){a=x(a)?y(a):-1;if(a in this.c)return this.c[a];var b=this.d,c=Qb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.f.toString(),b.width/2,b.height/2);return this.c[a]=c};
|
||||
function ui(a){mg.call(this,{extent:a.extent,opaque:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new pi}B(ui,mg);ui.prototype.f=function(){return this.a.$()>this.a.d};ui.prototype.Ca=function(a){this.a.Ca(a)};ui.prototype.b=function(a){var b=a.toString();if(gh(this.a,b))return jh(this.a,b);a=new ti(a,this.tileGrid);lh(this.a,b,a);return a};function vi(a){var b=a.projection||Ne("EPSG:3857"),c=mi;x(a.da)?c=a.da:x(a.urls)?c=ki(Aa(a.urls,ji)):x(a.url)&&(c=ji(a.url));var d=new ri({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?ni(function(b){if(a.maxZoom<b.m)return k;var c=1<<b.m,j=-b.y-1;if(0>j||c<=j)return k;c=Fb(b.x,c);return!Zd(fg(d,new pe(b.m,c,b.y)),e)?k:new pe(b.m,c,j)},c):ni(function(b){if(a.maxZoom<b.m)return k;var c=1<<b.m,d=-b.y-1;return 0>d||c<=d?k:new pe(b.m,Fb(b.x,c),d)},c);qi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
||||
extent:a.extent,projection:b,tileGrid:d,da:c})}B(vi,qi);function wi(){vi.call(this,{attributions:[new se('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new se('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],opaque:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(wi,vi);
|
||||
function xi(){vi.call(this,{attributions:[new se('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new se("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,opaque:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(xi,vi);function yi(){vi.call(this,{attributions:[new se('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],opaque:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(yi,vi);function zi(a){Eg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Ga:x(a.url)?Cg(a.url,a.params):Dg});this.b=k;this.f=1.5}B(zi,Eg);
|
||||
zi.prototype.I=function(a,b,c){this.a===k||(b=this.a[pf(this.a,b)]);var d=this.b,e;if(e=d!==k)if(e=d.e==b)e=d.H(),e=e.i<=a.i&&a.l<=e.l&&e.j<=a.j&&a.k<=e.k;if(e)return d;var d=a=new $d(a.i,a.j,a.l,a.k),f=this.f;e=d.ea()/2*(f-1);f=d.aa()/2*(f-1);d.i-=e;d.j-=f;d.l+=e;d.k+=f;return this.b=Fg(this,a,b,new Xd(a.ea()/b,a.aa()/b),c)};var Ai={terrain:{T:"jpg",opaque:i},"terrain-background":{T:"jpg",opaque:i},"terrain-labels":{T:"png",opaque:l},"terrain-lines":{T:"png",opaque:l},"toner-background":{T:"png",opaque:i},toner:{T:"png",opaque:i},"toner-hybrid":{T:"png",opaque:l},"toner-labels":{T:"png",opaque:l},"toner-lines":{T:"png",opaque:l},"toner-lite":{T:"png",opaque:i},watercolor:{T:"jpg",opaque:i}},Bi={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
|
||||
function Ci(a){var b=new se('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.layer.indexOf("-"),c=-1==c?a.layer:a.layer.slice(0,c),d=Ai[a.layer];vi.call(this,{attributions:[b],maxZoom:Bi[c].maxZoom,opaque:d.opaque,url:x(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+
|
||||
"/{z}/{x}/{y}."+d.T})}B(Ci,vi);function Di(a){var b=a.imageExtent,c=a.imageSize,d=b.aa()/c.height,e=x(a.projection)?a.projection:k,f=a.url;Eg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ga:function(){return f},resolutions:[d]});this.b=Fg(this,b,d,c,e)}B(Di,Eg);Di.prototype.I=function(a){return Zd(a,this.b.H())?this.b:k};var Ei=[];A("grid",function(a){Ei.push(a)});function Fi(a){qi.call(this,{projection:Ne("EPSG:3857")});this.g=l;a=this.t=ai(a.uri,{cc:i});a.a.push([this.w,k,this]);a.ja&&Xh(a)}B(Fi,qi);
|
||||
Fi.prototype.w=function(){var a=Ei.pop(),b=Ne("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new $d(c[0],c[1],c[2],c[3]),this.h=d=c.transform(De(b,this.o))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new ri({maxZoom:f});this.tileGrid=g;this.da=ni(function(a){if(a.m<e||f<a.m)return k;var b=1<<a.m,c=-a.y-1;if(0>c||b<=c)return k;b=Fb(a.x,b);return d!==k&&!Zd(fg(g,new pe(a.m,b,a.y)),d)?k:new pe(a.m,b,c)},ki(Aa(a.tiles,ji)));if(x(a.attribution)){b=d===k?b.H():d;c={};var j,n;for(j=e;j<=f;++j)n=j.toString(),
|
||||
c[n]=[gg(g,b,g.a[j])];this.e=[new se(a.attribution,c)]}this.g=i;K(this,"load")};Fi.prototype.c=m("g");function Gi(a){var b;a.urls?(b=Aa(a.urls,function(b){return li(b,a.params)}),b=ki(b)):b=a.url?li(a.url,a.params):mi;var c=a.extent;qi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,tileGrid:a.tileGrid,opaque:!(x(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,da:ni(function(a,b,f){if(b.Fb().length<=a.m)return k;var g=a.x,j=fg(b,a),f=f.H();c=x(c)?c:f;c.i===f.i&&c.l===f.l&&(j=Math.ceil((c.l-c.i)/(j.l-j.i)),g=Fb(g,j),j=fg(b,new pe(a.m,g,a.y)));return!Zd(j,
|
||||
c)?k:new pe(a.m,g,a.y)},b)})}B(Gi,qi);A("goog.require",ba);function Hi(a){T.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Hi,T);A("ol.AnchoredElement",Hi);A("ol.AnchoredElementPositioning",zh);zh.BOTTOM_LEFT="bottom-left";zh.BOTTOM_RIGHT="bottom-right";zh.TOP_LEFT="top-left";zh.TOP_RIGHT="top-right";A("ol.Attribution",se);A("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getArray=N.prototype.bd;N.prototype.getAt=N.prototype.cd;
|
||||
N.prototype.getLength=N.prototype.Za;N.prototype.insertAt=N.prototype.fb;N.prototype.pop=N.prototype.vc;N.prototype.push=N.prototype.push;N.prototype.removeAt=N.prototype.Bc;N.prototype.setAt=N.prototype.Pd;A("ol.Coordinate",L);L.toStringHDMS=function(a){return x(a)?Pc(a.y,"NS")+" "+Pc(a.x,"EW"):""};A("ol.Extent",$d);$d.prototype.getHeight=$d.prototype.aa;$d.prototype.getWidth=$d.prototype.ea;A("ol.Geolocation",X);
|
||||
function Ii(a){S.call(this,{attributionControl:a.attributionControl,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,renderer:a.renderer,renderers:a.renderers,scaleLineControl:a.scaleLineControl,scaleLineUnits:a.scaleLineUnits,shiftDragZoom:a.shiftDragZoom,target:a.target,touchPan:a.touchPan,touchRotate:a.touchRotate,touchZoom:a.touchZoom,view:a.view,zoomControl:a.zoomControl,
|
||||
zoomDelta:a.zoomDelta})}B(Ii,S);A("ol.Map",Ii);S.prototype.addPreRenderFunction=S.prototype.c;S.prototype.addPreRenderFunctions=S.prototype.Ab;S.prototype.getInteractions=S.prototype.Mc;S.prototype.getRenderer=S.prototype.Oc;af.prototype.getCoordinate=af.prototype.d;A("ol.Object",M);M.prototype.bindTo=M.prototype.Uc;M.prototype.changed=M.prototype.Xc;M.prototype.get=M.prototype.s;M.prototype.notify=M.prototype.uc;M.prototype.set=M.prototype.q;M.prototype.setOptions=M.prototype.Ec;
|
||||
M.prototype.setValues=M.prototype.nb;M.prototype.unbind=M.prototype.Vb;M.prototype.unbindAll=M.prototype.Zd;A("ol.Projection",O);O.prototype.getAxisOrientation=O.prototype.g;O.prototype.getCode=O.prototype.h;O.prototype.getExtent=O.prototype.H;O.prototype.getPointResolution=O.prototype.b;O.prototype.getUnits=O.prototype.o;A("ol.ProjectionUnits",Be);Be.DEGREES="degrees";Be.METERS="m";A("ol.RendererHint",vh);vh.CANVAS="canvas";vh.DOM="dom";vh.WEBGL="webgl";A("ol.RendererHints",uh);
|
||||
uh.createFromQueryData=uh.Yc;function Ji(a){Q.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(Ji,Q);A("ol.View2D",Ji);A("ol.animation",We);We.bounce=We.Cb;We.pan=We.pa;We.rotate=We.rotate;We.zoom=We.zoom;function Ki(a){xf.call(this,{map:a.map,target:a.target})}B(Ki,xf);A("ol.control.Attribution",Ki);xf.prototype.setMap=xf.prototype.a;
|
||||
function Li(a){Ch.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Li,Ch);A("ol.control.MousePosition",Li);Ch.prototype.setMap=Ch.prototype.a;function Mi(a){zf.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}B(Mi,zf);A("ol.control.ScaleLine",Mi);zf.prototype.setMap=zf.prototype.a;A("ol.control.ScaleLineUnits",yf);yf.DEGREES="degrees";yf.IMPERIAL="imperial";yf.METRIC="metric";yf.NAUTICAL="nautical";
|
||||
yf.US="us";function Ni(a){Bf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ni,Bf);A("ol.control.Zoom",Ni);Bf.prototype.setMap=Bf.prototype.a;A("ol.easing",Ve);Ve.bounce=Ve.Cb;Ve.elastic=Ve.$c;Ve.linear=Ve.qc;Ve.upAndDown=Ve.Jc;A("ol.interaction.Keyboard",Eh);Eh.prototype.addCallback=Eh.prototype.b;function Oi(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Oi,Gg);
|
||||
A("ol.layer.ImageLayer",Oi);function Pi(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Pi,Hg);A("ol.layer.TileLayer",Pi);A("ol.parser.ogc.WMSCapabilities",Qh);Qh.prototype.read=Qh.prototype.sa;A("ol.parser.ogc.WMTSCapabilities",Uh);Uh.prototype.read=Uh.prototype.sa;A("ol.projection.addProjection",Je);A("ol.projection.getFromCode",Ne);A("ol.projection.getTransform",De);
|
||||
A("ol.projection.getTransformFromCodes",Pe);A("ol.projection.transform",function(a,b,c){b=De(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});A("ol.projection.transformWithCodes",function(a,b,c){b=Pe(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Lg.prototype.getCanvas=Lg.prototype.Xa;A("ol.source.BingMaps",si);function Qi(a){ui.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Qi,ui);A("ol.source.DebugTileSource",Qi);A("ol.source.MapQuestOSM",wi);
|
||||
A("ol.source.MapQuestOpenAerial",xi);A("ol.source.OpenStreetMap",yi);A("ol.source.SingleImageWMS",zi);A("ol.source.Stamen",Ci);A("ol.source.StaticImage",Di);A("ol.source.TileJSON",Fi);A("ol.source.TiledWMS",Gi);function Ri(a){eg.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(Ri,eg);A("ol.tilegrid.TileGrid",Ri);function Si(a){ri.call(this,{maxZoom:a.maxZoom})}B(Si,ri);A("ol.tilegrid.XYZ",Si);We.be={};We.se={};We.te={};We.Ce={};})();
|
||||
|
||||
Reference in New Issue
Block a user