(0==p[1].length?0:parseInt(p[1],10))?1:0)||((0==r[2].length)<(0==p[2].length)?-1:(0==r[2].length)>(0==p[2].length)?1:0)||(r[2]p[2]?1:0)}while(0==b)}b=lb[a]=0<=b}return b}var mb={};function nb(a){return mb[a]||(mb[a]=E&&!!document.documentMode&&document.documentMode>=a)};var ob=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function pb(a,b){var c;if(a instanceof pb)this.T=t(b)?b:a.T,qb(this,a.da),c=a.Pa,rb(this),this.Pa=c,c=a.ga,rb(this),this.ga=c,sb(this,a.Ja),c=a.Ha,rb(this),this.Ha=c,tb(this,a.a.G()),c=a.sa,rb(this),this.sa=c;else if(a&&(c=String(a).match(ob))){this.T=!!b;qb(this,c[1]||"",i);var d=c[2]||"";rb(this);this.Pa=d?decodeURIComponent(d):"";d=c[3]||"";rb(this);this.ga=d?decodeURIComponent(d):"";sb(this,c[4]);d=c[5]||"";rb(this);this.Ha=d?decodeURIComponent(d):"";tb(this,c[6]||"",i);c=c[7]||"";rb(this);this.sa=
+c?decodeURIComponent(c):""}else this.T=!!b,this.a=new ub(j,0,this.T)}m=pb.prototype;m.da="";m.Pa="";m.ga="";m.Ja=j;m.Ha="";m.sa="";m.Ec=l;m.T=l;
+m.toString=function(){var a=[],b=this.da;b&&a.push(vb(b,wb),":");if(b=this.ga){a.push("//");var c=this.Pa;c&&a.push(vb(c,wb),"@");a.push(encodeURIComponent(String(b)));b=this.Ja;b!=j&&a.push(":",String(b))}if(b=this.Ha)this.ga&&"/"!=b.charAt(0)&&a.push("/"),a.push(vb(b,"/"==b.charAt(0)?xb:yb));(b=this.a.toString())&&a.push("?",b);(b=this.sa)&&a.push("#",vb(b,zb));return a.join("")};m.G=function(){return new pb(this)};
+function qb(a,b,c){rb(a);a.da=c?b?decodeURIComponent(b):"":b;a.da&&(a.da=a.da.replace(/:$/,""))}function sb(a,b){rb(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Ja=b}else a.Ja=j}
+function tb(a,b,c){rb(a);if(b instanceof ub){a.a=b;b=a.a;if((a=a.T)&&!b.b){Ab(b);b.a=j;var d=b.q,c=function(a,b){var c=b.toLowerCase();b!=c&&(Bb(this,b),Cb(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ga(d)||v(d))C(d,c,b);else{var e;if("function"==typeof d.$)e=d.$();else if("function"!=typeof d.L)if(ga(d)||v(d)){e=[];for(var f=d.length,g=0;g>4&15).toString(16)+(a&15).toString(16)}var wb=/[#\/\?@]/g,yb=/[\#\?:]/g,xb=/[\#\?]/g,Db=/[\#\?@]/g,zb=/#/g;function ub(a,b,c){this.a=a||j;this.b=!!c}
+function Ab(a){if(!a.q&&(a.q=new Ma,a.k=0,a.a))for(var b=a.a.split("&"),c=0;c2*c.k&&Na(c))}}m.clear=function(){this.q=this.a=j;this.k=0};function Hb(a,b){Ab(a);b=Gb(a,b);return Oa(a.q.b,b)}m.$=function(){Ab(this);for(var a=this.q.L(),b=this.q.$(),c=[],d=0;d=a.keyCode)a.keyCode=-1}catch(b){}};m.lc=ca("A");function dc(){}var ec=0;dc.prototype.key=0;dc.prototype.ca=l;dc.prototype.a=l;dc.prototype.handleEvent=function(a){return this.b?this.ma.call(this.Wa||this.src,a):this.ma.handleEvent.call(this.ma,a)};var fc={},gc={},hc={},ic={};
+function J(a,b,c,d,e){if(b){if(fa(b)){for(var f=0;ff.keyCode||f.returnValue!=h)return i;a:{var u=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(r){u=i}if(u||f.returnValue==h)f.returnValue=i}}u=new Tb;Ub(u,f,this);f=i;try{if(k){for(var p=[],x=u.b;x;x=x.parentNode)p.push(x);g=e[i];g.B=g.k;for(var y=p.length-
+1;!u.X&&0<=y&&g.B;y--)u.b=p[y],f&=nc(g,p[y],d,i,u);if(q){g=e[l];g.B=g.k;for(y=0;!u.X&&yc*b?c+b:c};function R(a,b){this.x=t(a)?a:0;this.y=t(b)?b:0}R.prototype.G=function(){return new R(this.x,this.y)};function uc(a,b){this.width=a;this.height=b}uc.prototype.G=function(){return new uc(this.width,this.height)};uc.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};uc.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};uc.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function vc(a){return a?new wc(xc(a)):pc||(pc=new wc)}function yc(a,b){D(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in zc?a.setAttribute(zc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var zc={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 Ac(a){a=a.document.documentElement;return new uc(a.clientWidth,a.clientHeight)}function Bc(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!qc&&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 k={};Ka(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(v(g)?f.className=g:fa(g)?rc.apply(j,[f].concat(g)):yc(f,g));2=b.b&&a.a<=b.d&&a.d>=b.a}Xc.prototype.toString=function(){return"("+[this.b,this.a,this.c,this.d].join(", ")+")"};function Zc(a,b,c,d){Xc.call(this,a,b,c,d)}A(Zc,Xc);function $c(a){var b=arguments[0],b=new Zc(b.x,b.y,b.x,b.y),c;for(c=1;c>=1;return b.join("")}cd.prototype.toString=function(){return[this.j,this.x,this.y].join("/")};function fd(a,b,c,d){Xc.call(this,a,b,c,d)}A(fd,Xc);function gd(a,b,c,d){var e,f;for(e=a.b;e<=a.c;++e)for(f=a.a;f<=a.d;++f)c.call(d,new cd(b,e,f))}fd.prototype.e=function(){return this.d-this.a+1};fd.prototype.f=function(){return this.c-this.b+1};function hd(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d=a.c&&(d.x+=1);b.y=a.d&&(d.y+=1);return d};function od(a,b,c,d){this.w=b;this.c=a;this.b=c;this.a=d}A(od,ad);od.prototype.transform=function(a){a=this.w.transform(a);return new od(this.c,a,this.b,this.a)};function U(a,b,c){this.a=a;this.b=b;this.c=c}U.prototype.d=ca("a");U.prototype.f=ca("c");U.prototype.e=ca("b");function pd(a,b){U.call(this,a,b.units,j);this.Mb=b}A(pd,U);var qd={},rd={},sd={};function td(a){C(a,function(a){rd[a.a]=a});C(a,function(b){C(a,function(a){ud(b,a,vd)})})}function ud(a,b,c){a=a.a;b=b.a;a in sd||(sd[a]={});sd[a][b]=c}function wd(a){var b=rd[a];"Proj4js"in n&&!t(b)&&(b=xd(a));t(b)||(b=j);return b}
+function xd(a){var b=qd[a];t(b)||(b=new Proj4js.Proj(a),b=new pd(a,b),qd[a]=b);return b}function yd(a,b){var c=a.a,d=b.a,e;c in sd&&d in sd[c]&&(e=sd[c][d]);if("Proj4js"in n&&!t(e)){var f;f=(a instanceof pd?a:xd(a.a)).Mb;var g;g=(b instanceof pd?b:xd(a.a)).Mb;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new T(a.x,a.y)};ud(a,b,e)}t(e)||(e=zd);return e}function Ad(a,b){var c=wd(a),d=wd(b);return yd(c,d)}function zd(a){return a}function vd(a){return new T(a.x,a.y)}
+var Bd=6378137*Math.PI,Cd=new Zc(-Bd,-Bd,Bd,Bd),Dd=za(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new U(a,"m",Cd)}),Ed=new Zc(-180,-90,180,90),Fd=za(["CRS:84","EPSG:4326","urn:ogc:def:crs:EPSG:6.6:4326"],function(a){return new U(a,"degrees",Ed)});td(Dd);td(Fd);function Gd(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new T(b,a)}
+function Hd(a){return new T(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}C(Fd,function(a){C(Dd,function(b){ud(a,b,Gd);ud(b,a,Hd)})});function Id(a,b,c){this.b=a;this.a=b||j;this.c=c||j};function Jd(){I.call(this)}A(Jd,I);m=Jd.prototype;m.qb=i;m.ab=j;m.addEventListener=function(a,b,c,d){J(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){lc(this,a,b,c,d)};m.o=function(){Jd.i.o.call(this);var a,b=0,c=a==j;a=!!a;if(this==j)D(hc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)L(f.key),b++}});else{var d=w(this);if(hc[d])for(var d=hc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)L(f.key),b++}}this.ab=j};function Kd(a,b,c){I.call(this);this.Na=a;this.g=b;this.a=0;this.b=new Image;c!==j&&(this.b.crossOrigin=c);this.d={};this.c=j}A(Kd,Jd);function Ld(a,b){if(t(b)){var c,d=w(b);if(d in a.d)return a.d[d];c=Ia(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}Kd.prototype.e=function(){this.a=3;C(this.c,L);this.c=j};Kd.prototype.f=function(){this.a=2;C(this.c,L);this.c=j;P(this,"change")};function Md(a){0==a.a&&(a.a=1,a.c=[kc(a.b,"error",a.e,l,a),kc(a.b,"load",a.f,l,a)],a.b.src=a.g)};function Nd(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 Od(za(c,Nd))}return function(b){return b===j?h:a.replace("{z}",b.j).replace("{x}",b.x).replace("{y}",b.y)}}function Od(a){return function(b){if(b!==j){var c=tc(b.hash(),a.length);return a[c](b)}}}function Pd(){}function Qd(a,b){return function(c){return c===j?h:b(a(c))}};function Rd(a){return function(){return a}}var Sd=Rd(l),Td=Rd(i);function Ud(a){I.call(this);this.h=t(a.projection)?a.projection:j;this.g=t(a.w)?a.w:a.projection.c;this.a=t(a.F)?a.F:j}A(Ud,Jd);Ud.prototype.V=Td;function Vd(a){Ud.call(this,{F:a.F,w:a.w,projection:a.projection});this.K=t(a.K)?a.K:j;this.P=t(a.P)?a.P:Pd;this.d=t(a.crossOrigin)?a.crossOrigin:"anonymous";this.b={}}A(Vd,Ud);function Wd(a,b){var c=b.toString();if(c in a.b)return a.b[c];var d=a.P(b),d=t(d)?new Kd(b,d,a.d):j;return a.b[c]=d};function Xd(a){var b=Array(a.z+1),c;for(c=0;c<=a.z;++c)b[c]=Bd/(128<a)break;d=Math.floor(d/2);e=Math.floor(e/2);f=new fd(d,e,d,e);if(b.call(c,a,f))break}};var Yd={Xc:"Aerial",Yc:"AerialWithLabels",cd:"Road",bd:"OrdnanceSurvey",Zc:"CollinsBart"};
+function Zd(a){Vd.call(this,{projection:wd("EPSG:3857")});this.gc=t(a.culture)?a.culture:"en-us";this.c=l;var b=new pb("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Sc(b),a={include:"ImageryProviders",key:a.key},c=na(this.e,this),a=a||j,d="_"+(Tc++).toString(36)+pa().toString(36);n._callbacks_||(n._callbacks_={});var e=b.b.G();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&Eb(e,f,a[f]);c&&(n._callbacks_[d]=function(a){Uc(d,i);c.apply(h,arguments)},Eb(e,b.a,"_callbacks_."+
+d));f=Mc(e.toString(),{timeout:b.Oa,nb:i});f.a.push([j,function(){Uc(d,l)},h]);f.R&&Ic(f)}A(Zd,Vd);
+Zd.prototype.e=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new Xd({z:d,eb:new Wc(b.imageWidth,b.imageHeight)});this.K=e;this.P=Qd(function(a){if(a.je||b<=e?j:new cd(a.j,tc(a.x,b),e)},Od(za(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.gc);return function(a){return a===j?h:c.replace("{quadkey}",ed(a))}})));var f=wd("EPSG:4326");this.a=za(b.imageryProviders,function(a){var b=
+a.attribution,a=za(a.coverageAreas,function(a){var b=a.bbox;return new od(e,new Zc(b[1],b[0],b[3],b[2]),a.zoomMin,a.zoomMax)});return new Id(b,a,f)});this.c=i;P(this,"load")};Zd.prototype.V=ca("c");function V(a){I.call(this);t(a)&&this.Ya(a)}A(V,Jd);var $d={},ae={},be={};function ce(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function de(a){return a.ol_accessors_||(a.ol_accessors_={})}function W(a){return $d[a]||($d[a]=a.toLowerCase()+"_changed")}function ee(a){return a.ol_bindings_||(a.ol_bindings_={})}m=V.prototype;m.cc=function(a,b,c,d){c=c||a;this.gb(a);var e=W(c);ee(this)[a]=J(b,e,function(){fe(this,a)},h,this);de(this)[a]={target:b,key:c};d||fe(this,a)};m.fc=s;
+m.r=function(a){var b=de(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=ae[b]||(ae[b]="get"+ce(b));return a[c]?a[c]():a.r(b)}return this[a]};m.Ib=function(a){var b=de(this);a in b?(a=b[a],a.target.Ib(a.key)):fe(this,a)};function fe(a,b){var c=W(b);P(a,c)}m.set=function(a,b){var c=de(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=be[d]||(be[d]="set"+ce(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,fe(this,a)};
+m.Pb=function(a){D(a,function(a,c){var d=be[c]||(be[c]="set"+ce(c));if(this[d])this[d](a);else this.set(c,a)},this)};m.Ya=V.prototype.Pb;m.gb=function(a){var b=ee(this),c=b[a];c&&(delete b[a],L(c),b=this.r(a),delete de(this)[a],this[a]=b)};m.Vc=function(){var a=ee(this);C(Ha(a),function(a){this.gb(a)},this)};function ge(a,b,c,d,e){Qb.call(this,a,e);this.a=b;this.index=c;this.c=d}A(ge,Qb);function X(a){V.call(this);this.a=a||[];he(this)}A(X,V);m=X.prototype;m.clear=function(){for(;this.length;)this.Jb()};m.forEach=function(a,b){C(this.a,a,b)};m.jc=ca("a");m.kc=function(a){return this.a[a]};m.sb=function(){return this.r("length")};m.Ba=function(a,b){Da(this.a,a,0,b);he(this);P(this,new ge("add",b,h,h,this));P(this,new ge("insert_at",b,a,h,this))};m.Jb=function(){return this.Nb(this.sb()-1)};
+m.push=function(a){var b=this.a.length;this.Ba(b,a);return b};m.Nb=function(a){var b=this.a[a];B.splice.call(this.a,a,1);he(this);P(this,new ge("remove",b,h,h,this));P(this,new ge("remove_at",h,a,b,this));return b};m.Mc=function(a,b){var c=this.length;if(ac?1:0)},Dc:function(a){return t(a)?ie.rb(a.y,"NS")+" "+ie.rb(a.x,"EW"):""}};function je(a){I.call(this);this.Z=a||window;this.Ea=J(this.Z,"resize",this.zc,l,this);this.Y=Ac(this.Z||window);if(G&&Va||ab&&this.Z.self!=this.Z.top)this.Qa=window.setInterval(na(this.mb,this),ke)}A(je,Jd);var ke=500;m=je.prototype;m.Ea=j;m.Z=j;m.Y=j;m.Qa=j;m.o=function(){je.i.o.call(this);this.Ea&&(L(this.Ea),this.Ea=j);this.Qa&&(window.clearInterval(this.Qa),this.Qa=j);this.Y=this.Z=j};m.zc=function(){this.mb()};
+m.mb=function(){var a=Ac(this.Z||window);if(!(a==this.Y||(!a||!this.Y?0:a.width==this.Y.width&&a.height==this.Y.height)))this.Y=a,P(this,"resize")};function le(a,b,c,d,e){if(!E&&(!G||!H("525")))return i;if(Ua&&e)return me(a);if(e&&!d||!c&&(17==b||18==b)||E&&d&&b==a)return l;switch(a){case 13:return!(E&&nb(9));case 27:return!G}return me(a)}function me(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 ne(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function oe(a,b){I.call(this);a&&(this.Da&&pe(this),this.ha=a,this.Ca=J(this.ha,"keypress",this,b),this.Xa=J(this.ha,"keydown",this.a,b,this),this.Da=J(this.ha,"keyup",this.b,b,this))}A(oe,Jd);m=oe.prototype;m.ha=j;m.Ca=j;m.Xa=j;m.Da=j;m.O=-1;m.N=-1;m.Ra=l;
+var qe={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},re={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},se=E||G&&H("525"),te=Ua&&F;
+oe.prototype.a=function(a){if(G&&(17==this.O&&!a.va||18==this.O&&!a.I))this.N=this.O=-1;se&&!le(a.aa,this.O,a.U,a.va,a.I)?this.handleEvent(a):(this.N=F?ne(a.aa):a.aa,te&&(this.Ra=a.I))};oe.prototype.b=function(a){this.N=this.O=-1;this.Ra=a.I};
+oe.prototype.handleEvent=function(a){var b=a.A,c,d,e=b.altKey;E&&"keypress"==a.type?(c=this.N,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.N,d=0<=b.charCode&&63232>b.charCode&&me(c)?b.charCode:0):ab?(c=this.N,d=me(c)?b.keyCode:0):(c=b.keyCode||this.N,d=b.charCode||0,te&&(e=this.Ra),Ua&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in qe?f=qe[c]:25==c&&a.U&&(f=9):g&&g in re&&(f=re[g]);a=f==this.O;this.O=f;b=new ue(f,d,a,b);b.I=e;P(this,b)};
+function pe(a){a.Ca&&(L(a.Ca),L(a.Xa),L(a.Da),a.Ca=j,a.Xa=j,a.Da=j);a.ha=j;a.O=-1;a.N=-1}oe.prototype.o=function(){oe.i.o.call(this);pe(this)};function ue(a,b,c,d){d&&Ub(this,d,h);this.type="key";this.aa=a;this.ua=b;this.a=c}A(ue,Tb);function ve(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}ve.prototype.G=function(){return new ve(this.top,this.right,this.bottom,this.left)};function we(a,b,c){v(b)?xe(a,c,b):D(b,oa(xe,a))}function xe(a,b,c){a.style[String(c).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})]=b}function ye(a,b){var c=xc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,j))?c[b]||c.getPropertyValue(b)||"":""}function ze(a,b){return a.currentStyle?a.currentStyle[b]:j}function Ae(a,b){return ye(a,b)||ze(a,b)||a.style&&a.style[b]}
+function Be(a,b){var c,d,e=F&&(Ua||db)&&H("1.9");b instanceof R?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Ce(c,e);a.style.top=Ce(d,e)}function De(a){var b=a.getBoundingClientRect();E&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
+function Ee(a){if(E&&!nb(8))return a.offsetParent;for(var b=xc(a),c=Ae(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ae(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 j}function Fe(a,b){var c=Ge(a),d=Ge(b);return new R(c.x-d.x,c.y-d.y)}
+function Ge(a){var b=new R;if(1==a.nodeType){if(a.getBoundingClientRect){var c=De(a);b.x=c.left;b.y=c.top}else{c=Fc(vc(a));var d,e=xc(a),f=Ae(a,"position"),g=F&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),k=new R(0,0),q;d=e?xc(e):document;if(q=E)if(q=!nb(9))vc(d),q=l;q=q?d.body:d.documentElement;if(a!=q)if(a.getBoundingClientRect)d=De(a),e=Fc(vc(e)),k.x=d.left+e.x,k.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
+e=e.getBoxObjectFor(q),k.x=d.screenX-e.screenX,k.y=d.screenY-e.screenY;else{g=a;do{k.x+=g.offsetLeft;k.y+=g.offsetTop;g!=a&&(k.x+=g.clientLeft||0,k.y+=g.clientTop||0);if(G&&"fixed"==Ae(g,"position")){k.x+=e.body.scrollLeft;k.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(ab||G&&"absolute"==f)k.y-=e.body.offsetTop;for(g=a;(g=Ee(g))&&g!=e.body&&g!=q;)if(k.x-=g.scrollLeft,!ab||"TR"!=g.tagName)k.y-=g.scrollTop}b.x=k.x-c.x;b.y=k.y-c.y}if(F&&!H(12)){var u;E?u="-ms-transform":G?u="-webkit-transform":
+ab?u="-o-transform":F&&(u="-moz-transform");var r;u&&(r=Ae(a,u));r||(r=Ae(a,"transform"));r?(a=r.match(He),a=!a?new R(0,0):new R(parseFloat(a[1]),parseFloat(a[2]))):a=new R(0,0);b=new R(b.x+a.x,b.y+a.y)}}else u=ha(a.lc),r=a,a.targetTouches?r=a.targetTouches[0]:u&&a.A.targetTouches&&(r=a.A.targetTouches[0]),b.x=r.clientX,b.y=r.clientY;return b}function Ce(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ie(a,b){a.style.display=b?"":"none"}
+function Je(a,b){vc(xc(a));if(E&&!H("8")){var c=a.style,d;if(E){d=Ke(a,ze(a,"paddingLeft"));var e=Ke(a,ze(a,"paddingRight")),f=Ke(a,ze(a,"paddingTop")),g=Ke(a,ze(a,"paddingBottom"));d=new ve(f,e,g,d)}else d=ye(a,"paddingLeft"),e=ye(a,"paddingRight"),f=ye(a,"paddingTop"),g=ye(a,"paddingBottom"),d=new ve(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(E)var e=Le(a,"borderLeft"),f=Le(a,"borderRight"),g=Le(a,"borderTop"),k=Le(a,"borderBottom"),e=new ve(g,f,k,e);else e=ye(a,"borderLeftWidth"),
+f=ye(a,"borderRightWidth"),g=ye(a,"borderTopWidth"),k=ye(a,"borderBottomWidth"),e=new ve(parseFloat(g),parseFloat(f),parseFloat(k),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,F?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 Ke(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 Me={thin:2,medium:4,thick:6};function Le(a,b){if("none"==ze(a,b+"Style"))return 0;var c=ze(a,b+"Width");return c in Me?Me[c]:Ke(a,c)}var He=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Ne(a){I.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:j;this.e=!!a&&"rtl"==Ae(a,"direction");this.b=J(this.a,F?"DOMMouseScroll":"mousewheel",this)}A(Ne,Jd);
+Ne.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.A;if("mousewheel"==a.type){c=1;if(E||G&&(Va||H("532.0")))c=40;d=Oe(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=Oe(-a.wheelDeltaX,c),c=Oe(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),t(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=sc(b,-this.c,this.c));"number"==typeof this.d&&(c=sc(c,-this.d,this.d));this.e&&(b=-b);b=new Pe(d,a,b,c);P(this,b)};function Oe(a,b){return G&&(Ua||Wa)&&0!=a%b?a:a/b}
+Ne.prototype.o=function(){Ne.i.o.call(this);L(this.b);delete this.b};function Pe(a,b,c,d){b&&Ub(this,b,h);this.type="mousewheel";this.e=a;this.c=c;this.a=d}A(Pe,Tb);var Qe=n.window;function Re(a,b,c){I.call(this);this.b=a;this.e=b||0;this.c=c;this.d=na(this.f,this)}A(Re,I);Re.prototype.a=0;Re.prototype.o=function(){Re.i.o.call(this);Se(this);delete this.b;delete this.c};function Se(a){0!=a.a&&Qe.clearTimeout(a.a);a.a=0}Re.prototype.f=function(){this.a=0;this.b&&this.b.call(this.c)};var Te={},Ue=j;function Ve(){Ue||(Ue=new Re(function(){pa();D(Te,function(a){We(a)});Ia(Te)||Ve()},20));var a=Ue;if(0==a.a){Se(a);var b;b=a.d;var c=t(h)?h:a.e;if(!ha(b))if(b&&"function"==typeof b.handleEvent)b=na(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647c.a?this.a:-this.a,d);a.t();c.t()}};function Nf(a,b){V.call(this);this.e=a;this.a=b;J(this.a,W("brightness"),this.xb,l,this);J(this.a,W("contrast"),this.yb,l,this);J(this.a,W("hue"),this.zb,l,this);J(this.a,"load",this.Za,l,this);J(this.a,W("opacity"),this.xa,l,this);J(this.a,W("saturation"),this.Ab,l,this);J(this.a,W("visible"),this.ya,l,this)}A(Nf,V);m=Nf.prototype;m.H=ca("a");m.S=ca("e");m.xb=s;m.yb=s;m.zb=s;m.Za=s;m.xa=s;m.Ab=s;m.ya=s;function Of(a){this.length=a.length||a;for(var b=0;b 0.) {\n color.rgb += (average - color.rgb)\n * (1. - 1. / (1. - uSaturation));\n } else {\n color.rgb += (average - color.rgb) * -uSaturation;\n }\n }\n\n color.rgb += uBrightness;\n\n if (uContrast != 0.) {\n if (uContrast > 0.) {\n color.rgb = (color.rgb - 0.5) / (1. - uContrast) + 0.5;\n } else {\n color.rgb = (color.rgb - 0.5) * (1. + uContrast) + 0.5;\n }\n }\n\n color.a = color.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}
+A(ug,kg);da(ug);function vg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = vec4(aPosition, 0., 1.);\n vTexCoord = aTexCoord;\n}"}A(vg,lg);da(vg);
+function wg(a,b){Wf.call(this,a,b);this.a=document.createElement("CANVAS");this.a.height=a.clientHeight;this.a.width=a.clientWidth;this.a.className="ol-unselectable";a.insertBefore(this.a,a.childNodes[0]||j);this.s=new Wc(a.clientHeight,a.clientWidth);this.b=this.a.getContext("experimental-webgl",{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});J(this.a,"webglcontextlost",this.Aa,l,this);J(this.a,"webglcontextrestored",this.Cc,l,this);this.f=new Ye(1,1,1,1);this.m=this.n=j;this.h=
+{};this.g={};this.l={};this.oa=ug.ta();this.qa=vg.ta();this.v={};xg(this)}A(wg,Wf);m=wg.prototype;m.Ga=function(a){wg.i.Ga.call(this,a);a.M()&&this.map.p()};
+function tg(a,b){var c=a.b,d=b.src,e=a.l[d];t(e)?(c.bindTexture(3553,e.Sb),9729!=e.Eb&&(c.texParameteri(3553,10240,9729),e.Eb=9729),9729!=e.Fb&&(c.texParameteri(3553,10240,9729),e.Fb=9729)):(e=c.createTexture(),c.bindTexture(3553,e),c.texImage2D(3553,0,6408,6408,5121,b),c.texParameteri(3553,10240,9729),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),a.l[d]={Sb:e,Eb:9729,Fb:9729})}m.ba=Td;m.pb=function(a){return a instanceof ag?new qg(this,a):j};
+m.o=function(){var a=this.b;a.isContextLost()||(D(this.g,function(b){a.deleteProgram(b)}),D(this.h,function(b){a.deleteShader(b)}),D(this.l,function(b){a.deleteTexture(b.Sb)}));wg.i.o.call(this)};function sg(a,b,c){var d=w(b)+"/"+w(c);if(d in a.g)return a.g[d];var e=a.b,f=e.createProgram();e.attachShader(f,yg(a,b));e.attachShader(f,yg(a,c));e.linkProgram(f);return a.g[d]=f}
+function yg(a,b){var c=w(b);if(c in a.h)return a.h[c];var d=a.b,e=d.createShader(b.b());d.shaderSource(e,b.a);d.compileShader(e);return a.h[c]=e}m.tb=function(){var a=this.map.Ub();this.f=new Ye(a.d/255,a.c/255,a.b/255,a.a/255);this.map.p()};m.ja=function(){wg.i.ja.call(this);this.map.p()};m.vc=function(){this.map.p()};m.ka=function(){wg.i.ka.call(this);this.map.p()};m.za=function(){wg.i.za.call(this);this.map.p()};m.la=function(){wg.i.la.call(this);this.map.p()};
+m.Aa=function(a){a.t();this.m=this.n=j;this.h={};this.g={};this.l={};D(this.D,function(a){a.Aa()})};m.Cc=function(){xg(this);this.map.p()};function xg(a){a=a.b;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}m.$a=function(a){wg.i.$a.call(this,a);a.M()&&this.map.p()};m.La=function(a){var b=wg.i.La.call(this,a);b!==j&&(a=w(a),L(this.v[a]),delete this.v[a]);return b};
+m.p=function(){if(!this.map.u())return l;var a=this.map.d();this.s.width==a.width&&this.s.height==a.height||(this.a.width=a.width,this.a.height=a.height,this.s=a);var b=wg.i.p.call(this),c=this.b;c.bindFramebuffer(36160,j);c.clearColor(this.f.d,this.f.c,this.f.b,this.f.a);c.clear(16384);c.enable(3042);c.viewport(0,0,a.width,a.height);a=sg(this,this.oa,this.qa);c.useProgram(a);this.n===j&&(this.n={ea:c.getAttribLocation(a,"aPosition"),fa:c.getAttribLocation(a,"aTexCoord"),Oc:c.getUniformLocation(a,
+"uBrightness"),Pc:c.getUniformLocation(a,"uContrast"),Qc:c.getUniformLocation(a,"uHue"),Rc:c.getUniformLocation(a,"uMatrix"),Sc:c.getUniformLocation(a,"uOpacity"),Tc:c.getUniformLocation(a,"uSaturation"),fb:c.getUniformLocation(a,"uTexture")});this.m===j?(a=c.createBuffer(),c.bindBuffer(34962,a),c.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.m=a):c.bindBuffer(34962,this.m);c.enableVertexAttribArray(this.n.ea);c.vertexAttribPointer(this.n.ea,2,5126,l,16,0);c.enableVertexAttribArray(this.n.fa);
+c.vertexAttribPointer(this.n.fa,2,5126,l,16,8);c.uniform1i(this.n.fb,0);Zf(this,function(a,b){c.uniformMatrix4fv(this.n.Rc,l,b.d);c.uniform1f(this.n.Oc,a.c());c.uniform1f(this.n.Pc,a.d());c.uniform1f(this.n.Qc,a.e());c.uniform1f(this.n.Sc,a.b());c.uniform1f(this.n.Tc,a.f());c.bindTexture(3553,b.g);c.drawArrays(5,0,4)},this);return b};m.cb=function(a,b){wg.i.cb.call(this,a,b);var c=w(a);this.v[c]=J(b,"change",this.vc,l,this)};var zg={$c:"dom",dd:"webgl"},Ag=["webgl","dom"],rg="postrender",Xf="backgroundColor",uf="center",tf="layers",vf="resolution",Yf="rotation",wf="size";
+function Z(a){var b,c;V.call(this);var d={};t(a.center)&&(d[uf]=a.center);d[tf]=t(a.layers)?a.layers:new X;d.projection=a.projection!=j?v(a.projection)?wd(a.projection):a.projection:wd("EPSG:3857");t(a.resolution)?d[vf]=a.resolution:t(a.zoom)&&(d[vf]=Bd/(128<this.l&&(0===this.oa?We(this):this.na=i)};
+function We(a){var b=a.f.p();a.na=l;if(b!=a.Rb){if(b){if(1==++a.l){var c=w(a);c in Te||(Te[c]=a);Ve()}}else 0===--a.l&&(c=w(a),delete Te[c],Ia(Te)&&Ue&&Se(Ue));a.Rb=b}P(a,rg)}m.rotate=function(a,b){a=this.J.a(a,b);this.Ka(a)};m.Nc=function(a){this.set(Xf,a)};Z.prototype.setBackgroundColor=Z.prototype.Nc;Z.prototype.h=function(a){this.set(uf,a)};Z.prototype.setCenter=Z.prototype.h;Z.prototype.Zb=function(a){this.set(tf,a)};Z.prototype.setLayers=Z.prototype.Zb;
+Z.prototype.Yb=function(a){this.set("projection",a)};Z.prototype.setProjection=Z.prototype.Yb;Z.prototype.v=function(a){this.set(vf,a)};Z.prototype.setResolution=Z.prototype.v;Z.prototype.Ka=function(a){this.set(Yf,a)};Z.prototype.setRotation=Z.prototype.Ka;Z.prototype.lb=function(a){this.set(wf,a)};Z.prototype.setSize=Z.prototype.lb;Z.prototype.$b=function(a){this.h(this.bb(a))};Z.prototype.setUserCenter=Z.prototype.$b;Z.prototype.ac=function(a){this.set("userProjection",a)};
+Z.prototype.setUserProjection=Z.prototype.ac;function Jf(a,b,c){++a.oa;try{b.call(c)}finally{0===--a.oa&&(1>a.l&&a.na)&&We(a)}}Z.prototype.zoom=function(a,b){var c=this.J.resolution(this.a(),a);if(c!=j&&b!=j){var d=this.c(),e=this.a(),f=new T(b.x-c*(b.x-d.x)/e,b.y-c*(b.y-d.y)/e);Jf(this,function(){this.h(f);this.v(c)},this)}else this.v(c)};function Cg(a){var b=Bc("DIV",{"class":"ol-mouse-position"});nf.call(this,{element:b,map:a.map,target:a.target});this.h=a.projection;this.e=a.coordinateFormat;this.d=t(a.undefinedHtml)?a.undefinedHtml:"";this.c=zd;this.b=[];this.f()}A(Cg,nf);Cg.prototype.f=function(){Dg(this);this.element.innerHTML=this.d};Cg.prototype.l=function(a){var b=this.a,a=Fe(a,b.b),b=b.u()?ef(b.f,new bf(a.x,a.y)):j;b===j?b=this.d:(b=this.c(b),b=t(this.e)?this.e(b):b.toString());this.element.innerHTML=b};
+Cg.prototype.m=function(){this.element.innerHTML=this.d};Cg.prototype.C=function(a){this.b!==j&&(C(this.b,L),this.b=j);Cg.i.C.call(this,a);if(a!==j){var b=a.b;this.s=[J(a,W("projection"),this.f,l,this),J(b,"mousemove",this.l,l,this),J(b,"mouseout",this.m,l,this)];Dg(this)}};function Dg(a){var b=a.a;b===j?a.c=zd:(b=b.g(),a.c=!t(b)||!t(a.h)?zd:yd(b,a.h))};function Eg(){this.a={}}A(Eg,yf);Eg.prototype.c=function(a,b){var c;for(c=0;cg||f<=g)return j;f=tc(b.x,f);return!Yc(jd(c,new cd(b.j,f,b.y)),d)?j:new cd(b.j,f,g)},b):Qd(function(b){if(a.zd||c<=d?j:new cd(b.j,tc(b.x,c),d)},b);Vd.call(this,{F:a.F,crossOrigin:a.crossOrigin,w:a.w,projection:wd("EPSG:3857"),K:c,P:b})}A(Kg,Vd);function Lg(){Kg.call(this,{F:[new Id('Tiles Courtesy of MapQuest
'),new Id('Data © OpenStreetMap contributors, CC BY-SA')],z:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}A(Lg,Kg);
+function Mg(){Kg.call(this,{F:[new Id('Tiles Courtesy of MapQuest
'),new Id("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],z:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}A(Mg,Kg);function Ng(){Kg.call(this,{F:[new Id('© OpenStreetMap contributors, CC BY-SA')],z:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}A(Ng,Kg);var Og={terrain:{type:"jpg",Gb:4,z:18},toner:{type:"png",Gb:0,z:20},watercolor:{type:"jpg",Gb:3,z:16}};
+function Pg(a){var b=new Id('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.Lc;t(a.ic)&&(c+="-"+a.ic);a=Og[a.Lc];Kg.call(this,{F:[b],z:a.z,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}A(Pg,Kg);var Qg=[];z("grid",function(a){Qg.push(a)});function Rg(a){Vd.call(this,{projection:wd("EPSG:3857")});this.c=l;a=this.e=Mc(a.uri,{nb:i});a.a.push([this.f,j,this]);a.R&&Ic(a)}A(Rg,Vd);
+Rg.prototype.f=function(){var a=Qg.pop(),b=wd("EPSG:4326"),c,d;t(a.bounds)?(c=a.bounds,c=new Zc(c[0],c[1],c[2],c[3]),this.g=d=c.transform(yd(b,this.h))):d=c=j;var e=a.minzoom||0,f=a.maxzoom||22,g=new Xd({z:f});this.K=g;this.P=Qd(function(a){if(a.jc||b<=c)return j;b=tc(a.x,b);return d!==j&&!Yc(jd(g,new cd(a.j,b,a.y)),d)?j:new cd(a.j,b,c)},Od(za(a.tiles,Nd)));t(a.attribution)&&(this.a=[new Id(a.attribution,[new od(g,c,e,f)],b)]);this.c=i;P(this,"load")};
+Rg.prototype.V=ca("c");z("goog.require",s);z("ol.BingMapsStyle",Yd);Yd.AERIAL="Aerial";Yd.AERIAL_WITH_LABELS="AerialWithLabels";Yd.COLLINS_BART="CollinsBart";Yd.ORDNANCE_SURVEY="OrdnanceSurvey";Yd.ROAD="Road";z("ol.Collection",X);X.prototype.clear=X.prototype.clear;X.prototype.forEach=X.prototype.forEach;X.prototype.getArray=X.prototype.jc;X.prototype.getAt=X.prototype.kc;X.prototype.getLength=X.prototype.sb;X.prototype.insertAt=X.prototype.Ba;X.prototype.pop=X.prototype.Jb;X.prototype.push=X.prototype.push;
+X.prototype.removeAt=X.prototype.Nb;X.prototype.setAt=X.prototype.Mc;z("ol.Coordinate",T);z("ol.CoordinateFormat",ie);ie.hdms=ie.Dc;z("ol.Extent",Zc);
+function Sg(a){Z.call(this,{center:a.center,controls:a.controls,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,maxResolution:a.maxResolution,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,numZoomLevels:a.numZoomLevels,projection:a.projection,renderer:a.renderer,renderers:a.renderers,resolution:a.resolution,resolutions:a.resolutions,rotate:a.rotate,shiftDragZoom:a.shiftDragZoom,
+target:a.target,userProjection:a.userProjection,zoom:a.zoom,zoomDelta:a.zoomDelta,zoomFactor:a.zoomFactor})}A(Sg,Z);z("ol.Map",Sg);Z.prototype.getControls=Z.prototype.Wb;Z.prototype.getInteractions=Z.prototype.Xb;cf.prototype.getCoordinate=cf.prototype.c;z("ol.Object",V);V.prototype.bindTo=V.prototype.cc;V.prototype.changed=V.prototype.fc;V.prototype.get=V.prototype.r;V.prototype.notify=V.prototype.Ib;V.prototype.set=V.prototype.set;V.prototype.setOptions=V.prototype.Pb;V.prototype.setValues=V.prototype.Ya;
+V.prototype.unbind=V.prototype.gb;V.prototype.unbindAll=V.prototype.Vc;z("ol.Projection",U);U.getFromCode=wd;U.getTransform=yd;U.getTransformFromCodes=Ad;U.transform=function(a,b,c){return yd(b,c)(a)};U.transformWithCodes=function(a,b,c){return Ad(b,c)(a)};U.prototype.getCode=U.prototype.d;U.prototype.getExtent=U.prototype.f;U.prototype.getUnits=U.prototype.e;z("ol.RendererHint",zg);zg.DOM="dom";zg.WEBGL="webgl";function Tg(a){of.call(this,{map:a.map,target:a.target})}A(Tg,of);
+z("ol.control.Attribution",Tg);function Ug(a){Cg.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHtml:a.undefinedHtml})}A(Ug,Cg);z("ol.control.MousePosition",Ug);function Vg(a){xf.call(this,{delta:a.delta,map:a.map,target:a.target})}A(Vg,xf);z("ol.control.Zoom",Vg);z("ol.interaction.Keyboard",Eg);Eg.prototype.addCallback=Eg.prototype.c;
+function Wg(a){Y.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}A(Wg,ag);z("ol.layer.TileLayer",Wg);function Xg(a){Fg.call(this,{coordinate:a.coordinate,element:a.element,map:a.map,positioning:a.positioning})}A(Xg,Fg);z("ol.overlay.Overlay",Xg);Fg.prototype.getElement=Fg.prototype.l;Fg.prototype.setCoordinate=Fg.prototype.h;Fg.prototype.setMap=Fg.prototype.g;z("ol.source.BingMaps",Zd);
+z("ol.source.MapQuestOSM",Lg);z("ol.source.MapQuestOpenAerial",Mg);z("ol.source.OpenStreetMap",Ng);z("ol.source.Stamen",Pg);z("ol.source.TileJSON",Rg);})();
diff --git a/master/examples/full-screen.html b/master/examples/full-screen.html
new file mode 100644
index 0000000000..a8ab852868
--- /dev/null
+++ b/master/examples/full-screen.html
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+ ol3 full-screen demo
+
+
+
+
+
+
diff --git a/master/examples/full-screen.js b/master/examples/full-screen.js
new file mode 100644
index 0000000000..a02fc63e8b
--- /dev/null
+++ b/master/examples/full-screen.js
@@ -0,0 +1,24 @@
+goog.require('goog.debug.Console');
+goog.require('goog.debug.Logger');
+goog.require('goog.debug.Logger.Level');
+goog.require('ol.Collection');
+goog.require('ol.Coordinate');
+goog.require('ol.Map');
+goog.require('ol.source.MapQuestOpenAerial');
+
+
+if (goog.DEBUG) {
+ goog.debug.Console.autoInstall();
+ goog.debug.Logger.getLogger('ol').setLevel(goog.debug.Logger.Level.INFO);
+}
+
+
+var layer = new ol.layer.TileLayer({
+ source: new ol.source.MapQuestOpenAerial()
+});
+var map = new ol.Map({
+ center: new ol.Coordinate(0, 0),
+ layers: new ol.Collection([layer]),
+ target: 'map',
+ zoom: 2
+});
diff --git a/master/examples/loader.js b/master/examples/loader.js
new file mode 100644
index 0000000000..3ec22aa5e2
--- /dev/null
+++ b/master/examples/loader.js
@@ -0,0 +1,46 @@
+/**
+ *
+ * Loader to add ol.css, ol.js and the example-specific js file to the
+ * documents.
+ *
+ * This loader is used for the hosted examples. It is used in place of the
+ * development loader (examples/loader.js).
+ *
+ * ol.css and ol.js are built with Plovr/Closure, based build/ol.json.
+ * (`make build` should build them). They are located in the ../build/
+ * directory, relatively to this script.
+ *
+ * The script should be named loader.js. So it needs to be renamed to
+ * loader.js from loader_hosted_examples.js.
+ *
+ * Usage:
+ *
+ *
+ */
+
+(function() {
+ var scripts = document.getElementsByTagName('script');
+
+ var i, src, index, search, chunks, pair, params = {};
+ for (i = scripts.length - 1; i >= 0; --i) {
+ src = scripts[i].getAttribute('src');
+ if (~(index = src.indexOf('loader.js?'))) {
+ search = src.substr(index + 10);
+ chunks = search ? search.split('&') : [];
+ for (i = chunks.length - 1; i >= 0; --i) {
+ pair = chunks[i].split('=');
+ params[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
+ }
+ break;
+ }
+ }
+
+ document.write('');
+ document.write('' +
+ '');
+ document.write('' +
+ '');
+}());
diff --git a/master/examples/overlay-and-popup.html b/master/examples/overlay-and-popup.html
new file mode 100644
index 0000000000..fd0d44eaee
--- /dev/null
+++ b/master/examples/overlay-and-popup.html
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+ ol3 overlay-and-popup demo
+
+
+
+
+
+
diff --git a/master/examples/overlay-and-popup.js b/master/examples/overlay-and-popup.js
new file mode 100644
index 0000000000..660ab2f38f
--- /dev/null
+++ b/master/examples/overlay-and-popup.js
@@ -0,0 +1,48 @@
+goog.require('goog.debug.Console');
+goog.require('goog.debug.Logger');
+goog.require('goog.debug.Logger.Level');
+goog.require('ol.Collection');
+goog.require('ol.Coordinate');
+goog.require('ol.CoordinateFormat');
+goog.require('ol.Map');
+goog.require('ol.overlay.Overlay');
+goog.require('ol.source.MapQuestOpenAerial');
+
+
+if (goog.DEBUG) {
+ goog.debug.Console.autoInstall();
+ goog.debug.Logger.getLogger('ol').setLevel(goog.debug.Logger.Level.INFO);
+}
+
+
+var layer = new ol.layer.TileLayer({
+ source: new ol.source.MapQuestOpenAerial()
+});
+var map = new ol.Map({
+ center: new ol.Coordinate(0, 0),
+ layers: new ol.Collection([layer]),
+ target: 'map',
+ zoom: 2
+});
+
+// Vienna label
+var vienna = new ol.overlay.Overlay({
+ map: map,
+ coordinate: ol.Projection.transformWithCodes(
+ new ol.Coordinate(16.3725, 48.208889), 'EPSG:4326', 'EPSG:3857'),
+ element: document.getElementById('vienna')
+});
+
+// Popup showing the position the user clicked
+var popup = new ol.overlay.Overlay({
+ map: map,
+ element: document.getElementById('popup')
+});
+map.addEventListener('click', function(evt) {
+ var coordinate = evt.getCoordinate();
+ popup.getElement().innerHTML =
+ 'Welcome to ol3. The location you clicked was
' +
+ ol.CoordinateFormat.hdms(ol.Projection.transformWithCodes(
+ coordinate, 'EPSG:3857', 'EPSG:4326'));
+ popup.setCoordinate(coordinate);
+});
diff --git a/master/examples/side-by-side.html b/master/examples/side-by-side.html
new file mode 100644
index 0000000000..da4a0472e3
--- /dev/null
+++ b/master/examples/side-by-side.html
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+ ol3 side-by-side demo
+
+
+ ol3 side-by-side demo
+
+
+ | DOM |
+ WebGL |
+
+
+ |
+ |
+
+
+ |
+ |
+
+
+
+
+ | Pan: |
+ drag, arrow keys |
+
+
+ | Zoom: |
+ double-click, Shift+double-click, mouse wheel, +/- keys; Shift+drag |
+
+
+ | Rotate: |
+ Alt+drag, r to reset |
+
+
+ | Brightness/contrast: |
+ b/B/c/C keys (WebGL only) |
+
+
+ | Hue/saturation: |
+ h/H/s/S keys (WebGL only) |
+
+
+ | Opacity: |
+ o/O keys |
+
+
+ | Visibility: |
+ v/V keys |
+
+
+ | Reset |
+ 0 key |
+
+
+ Notes: The two maps share the same center, resolution, rotation and layers.
+
+
+
diff --git a/master/examples/side-by-side.js b/master/examples/side-by-side.js
new file mode 100644
index 0000000000..61e9fdb3a5
--- /dev/null
+++ b/master/examples/side-by-side.js
@@ -0,0 +1,101 @@
+goog.require('goog.debug.Console');
+goog.require('goog.debug.Logger');
+goog.require('goog.debug.Logger.Level');
+goog.require('ol.CoordinateFormat');
+goog.require('ol.Map');
+goog.require('ol.RendererHint');
+goog.require('ol.control.MousePosition');
+goog.require('ol.interaction.Keyboard');
+goog.require('ol.layer.TileLayer');
+goog.require('ol.source.MapQuestOpenAerial');
+
+
+if (goog.DEBUG) {
+ goog.debug.Console.autoInstall();
+ goog.debug.Logger.getLogger('ol').setLevel(goog.debug.Logger.Level.INFO);
+}
+
+
+var layer = new ol.layer.TileLayer({
+ source: new ol.source.MapQuestOpenAerial()
+});
+
+var domMap = new ol.Map({
+ center: new ol.Coordinate(0, 0),
+ layers: new ol.Collection([layer]),
+ renderer: ol.RendererHint.DOM,
+ target: 'domMap',
+ zoom: 1
+});
+
+domMap.getControls().push(new ol.control.MousePosition({
+ coordinateFormat: ol.CoordinateFormat.hdms,
+ projection: ol.Projection.getFromCode('EPSG:4326'),
+ target: document.getElementById('domMousePosition'),
+ undefinedHtml: ' '
+}));
+
+var webglMap = new ol.Map({
+ renderer: ol.RendererHint.WEBGL,
+ target: 'webglMap'
+});
+if (webglMap !== null) {
+ webglMap.bindTo('center', domMap);
+ webglMap.bindTo('layers', domMap);
+ webglMap.bindTo('resolution', domMap);
+ webglMap.bindTo('rotation', domMap);
+}
+
+webglMap.getControls().push(new ol.control.MousePosition({
+ coordinateFormat: ol.CoordinateFormat.hdms,
+ projection: ol.Projection.getFromCode('EPSG:4326'),
+ target: document.getElementById('webglMousePosition'),
+ undefinedHtml: ' '
+}));
+
+var keyboardInteraction = new ol.interaction.Keyboard();
+keyboardInteraction.addCallback('0', function() {
+ layer.setBrightness(0);
+ layer.setContrast(0);
+ layer.setHue(0);
+ layer.setSaturation(0);
+ layer.setOpacity(1);
+ layer.setVisible(true);
+});
+keyboardInteraction.addCallback('b', function() {
+ layer.setBrightness(layer.getBrightness() - 0.1);
+});
+keyboardInteraction.addCallback('B', function() {
+ layer.setBrightness(layer.getBrightness() + 0.1);
+});
+keyboardInteraction.addCallback('c', function() {
+ layer.setContrast(layer.getContrast() - 0.1);
+});
+keyboardInteraction.addCallback('C', function() {
+ layer.setContrast(layer.getContrast() + 0.1);
+});
+keyboardInteraction.addCallback('h', function() {
+ layer.setHue(layer.getHue() - 0.1);
+});
+keyboardInteraction.addCallback('H', function() {
+ layer.setHue(layer.getHue() + 0.1);
+});
+keyboardInteraction.addCallback('o', function() {
+ layer.setOpacity(layer.getOpacity() - 0.1);
+});
+keyboardInteraction.addCallback('O', function() {
+ layer.setOpacity(layer.getOpacity() + 0.1);
+});
+keyboardInteraction.addCallback('r', function() {
+ webglMap.setRotation(0);
+});
+keyboardInteraction.addCallback('s', function() {
+ layer.setSaturation(layer.getSaturation() - 0.1);
+});
+keyboardInteraction.addCallback('S', function() {
+ layer.setSaturation(layer.getSaturation() + 0.1);
+});
+keyboardInteraction.addCallback('vV', function() {
+ layer.setVisible(!layer.getVisible());
+});
+domMap.getInteractions().push(keyboardInteraction);
diff --git a/master/examples/style.css b/master/examples/style.css
new file mode 100644
index 0000000000..fc4956eb66
--- /dev/null
+++ b/master/examples/style.css
@@ -0,0 +1,56 @@
+/**
+ * Basic Typography
+ */
+body {
+ font-family: Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
+ font-size: 85%;
+ color: #222;
+ background: #fff;
+ margin: 1em 1.5em;
+}
+pre, code {
+ margin: 1.5em 0;
+ white-space: pre;
+}
+pre, code {
+ font: 1em 'andale mono', 'lucida console', monospace;
+ line-height:1.5;
+}
+a {
+ color: #436976;
+ background-color: transparent;
+}
+h1, h2, h3, h4, h5, h6 {
+ color: #003a6b;
+ background-color: transparent;
+ font: 100% Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
+ margin: 0;
+ padding-top: 0.5em;
+}
+h1 {
+ font-size: 130%;
+ margin-bottom: 0.5em;
+ border-bottom: 1px solid #fcb100;
+}
+h2 {
+ font-size: 120%;
+ margin-bottom: 0.5em;
+ border-bottom: 1px solid #aaa;
+}
+h3 {
+ font-size: 110%;
+ margin-bottom: 0.5em;
+ text-decoration: underline;
+}
+h4 {
+ font-size: 100%;
+ font-weight: bold;
+}
+h5 {
+ font-size: 100%;
+ font-weight: bold;
+}
+h6 {
+ font-size: 80%;
+ font-weight: bold;
+}
diff --git a/master/examples/two-layers.html b/master/examples/two-layers.html
new file mode 100644
index 0000000000..17be65f288
--- /dev/null
+++ b/master/examples/two-layers.html
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+ ol3 two-layers demo
+
+
+ ol3 two-layers demo
+
+
+ | DOM |
+ WebGL |
+
+
+ |
+ |
+
+
+
+
+
diff --git a/master/examples/two-layers.js b/master/examples/two-layers.js
new file mode 100644
index 0000000000..53824ff367
--- /dev/null
+++ b/master/examples/two-layers.js
@@ -0,0 +1,41 @@
+goog.require('ol.Collection');
+goog.require('ol.Coordinate');
+goog.require('ol.Map');
+goog.require('ol.Projection');
+goog.require('ol.RendererHint');
+goog.require('ol.layer.TileLayer');
+goog.require('ol.source.BingMaps');
+goog.require('ol.source.TileJSON');
+
+
+var layers = new ol.Collection([
+ new ol.layer.TileLayer({
+ source: new ol.source.BingMaps({
+ key: 'Ak0kFwyFsvMr0dVwuaURTqKAXytSSN47KOdj4uVpaWBhK-DT6Zo-FeHCiJUL0tYL',
+ style: ol.BingMapsStyle.AERIAL
+ })
+ }),
+ new ol.layer.TileLayer({
+ source: new ol.source.TileJSON({
+ uri: 'http://api.tiles.mapbox.com/v3/mapbox.va-quake-aug.jsonp'
+ })
+ })
+]);
+
+var webglMap = new ol.Map({
+ center: ol.Projection.transformWithCodes(
+ new ol.Coordinate(-77.93255, 37.9555), 'EPSG:4326', 'EPSG:3857'),
+ layers: layers,
+ renderer: ol.RendererHint.WEBGL,
+ target: 'webglMap',
+ zoom: 5
+});
+
+var domMap = new ol.Map({
+ renderer: ol.RendererHint.DOM,
+ target: 'domMap'
+});
+domMap.bindTo('center', webglMap);
+domMap.bindTo('layers', webglMap);
+domMap.bindTo('resolution', webglMap);
+domMap.bindTo('rotation', webglMap);