diff --git a/index.html b/index.html index c4cf8ef0..42ac0667 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,6 @@ - @@ -36,6 +35,9 @@ ga('create', 'UA-7157694-83', 'auto'); ga('send', 'pageview'); + + +
diff --git a/main.js b/main.js index 87b865af..64029cf2 100644 --- a/main.js +++ b/main.js @@ -1,9 +1,18 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=77)}([function(e,t,n){"use strict";e.exports=n(78)},function(e,t,n){e.exports=n(83)()},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(79)},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:H(e)}function r(e){return s(e)?e:W(e)}function i(e){return l(e)?e:Q(e)}function o(e){return a(e)&&!c(e)?e:K(e)}function a(e){return!(!e||!e[p])}function s(e){return!(!e||!e[d])}function l(e){return!(!e||!e[_])}function c(e){return s(e)||l(e)}function u(e){return!(!e||!e[f])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=l,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=i,n.Set=o;var p="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",_="@@__IMMUTABLE_INDEXED__@@",f="@@__IMMUTABLE_ORDERED__@@",h=5,m=1<>>l&g;if(b!==d>>>l&g)break;b&&(u+=(1< o&&(o=c.size),a(l)||(c=c.map(function(e){return pe(e)})),r.push(c)}return o>e.size&&(e=e.setSize(o)),at(e,t,r)}function Ot(e){return e o&&(o=s),l>a&&(a=l);c=0!==(c=Math.max(o-r,a-i))?1/c:0}return $o(d,_,n,r,i,c),_}function Qo(e,t,n,r,i){var o,a;if(i===ha(e,t,n,r)>0)for(o=t;o n.x)&&ua(r,e)&&(n=r,d=l),r=r.next;return n}(e,t)){var n=pa(t,e);Ko(n,n.next)}}function ra(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function ia(e){var t=e,n=e;do{(t.x i&&(T+=S-i),!(Ts)return{value:void 0,done:!0};var e=i.next();return r||t===M?e:B(t,l-1,t===D?void 0:e.value[1],e)})},c}function Yt(e,t,n,r){var i=Jt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return l++,i(e,r?o:l-1,a)}),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(P,o),l=!0,c=0;return new F(function(){var e,o,u;do{if((e=s.next()).done)return r||i===M?e:B(i,c++,i===D?void 0:e.value[1],e);var p=e.value;o=p[0],u=p[1],l&&(l=t.call(n,u,o,a))}while(l);return i===P?e:B(i,o,u,e)})},i}function Vt(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function e(l,c){var u=this;l.__iterate(function(i,l){return(!t||c=0&&(t.text.placedSymbolArray.get(e).hidden=x)});var A=this.variableOffsets[_.crossTileID];A&&this.markUsedJustification(t,A.anchor,_)}if(b){for(var w=At(y.icon),C=0;C<_.numIconVertices/4;C++)t.icon.opacityVertexArray.emplaceBack(w);t.icon.placedSymbolArray.get(d).hidden=y.icon.isHidden()}if(t.hasCollisionBoxData()||t.hasCollisionCircleData()){var O=t.collisionArrays[d];if(O){if(O.textBox){var N=new e.Point(0,0),R=!0;if(l){var I=this.variableOffsets[m];I?(N=ht(I.anchor,I.width,I.height,I.radialOffset,I.textBoxScale),c&&N._rotate(u?this.transform.angle:-this.transform.angle)):R=!1}gt(t.collisionBox.collisionVertexArray,y.text.placed,!R,N.x,N.y)}O.iconBox&>(t.collisionBox.collisionVertexArray,y.icon.placed,!1);var D=O.textCircles;if(D&&t.hasCollisionCircleData())for(var M=0;Ma&&(i=a-m)}if(this.lngRange){var g=_.x,y=c.x/2;g-yl&&(r=l-y)}void 0===r&&void 0===i||(this.center=this.unproject(new e.Point(void 0!==r?r:_.x,void 0!==i?i:_.y))),this._unmodified=u,this._constraining=!1}},ur.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var t=this._fov/2,n=Math.PI/2+this._pitch,r=Math.sin(t)*this.cameraToCenterDistance/Math.sin(Math.PI-n-t),i=this.point,o=i.x,a=i.y,s=1.01*(Math.cos(Math.PI/2-this._pitch)*r+this.cameraToCenterDistance),l=new Float64Array(16);e.perspective(l,this._fov,this.width/this.height,1,s),e.scale(l,l,[1,-1,1]),e.translate(l,l,[0,0,-this.cameraToCenterDistance]),e.rotateX(l,l,this._pitch),e.rotateZ(l,l,this.angle),e.translate(l,l,[-o,-a,0]),this.mercatorMatrix=e.scale([],l,[this.worldSize,this.worldSize,this.worldSize]),e.scale(l,l,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=l;var c=this.width%2/2,u=this.height%2/2,p=Math.cos(this.angle),d=Math.sin(this.angle),_=o-Math.round(o)+p*c+d*u,f=a-Math.round(a)+p*u+d*c,h=new Float64Array(l);if(e.translate(h,h,[_>.5?_-1:_,f>.5?f-1:f,0]),this.alignedProjMatrix=h,l=e.create(),e.scale(l,l,[this.width/2,-this.height/2,1]),e.translate(l,l,[1,-1,0]),this.labelPlaneMatrix=l,l=e.create(),e.scale(l,l,[1,-1,1]),e.translate(l,l,[-1,-1,0]),e.scale(l,l,[2/this.width,2/this.height,1]),this.glCoordMatrix=l,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(l=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=l,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ur.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new e.Point(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},ur.prototype.getCameraPoint=function(){var t=this._pitch,n=Math.tan(t)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,n))},ur.prototype.getCameraQueryGeometry=function(t){var n=this.getCameraPoint();if(1===t.length)return[t[0],n];for(var r=n.x,i=n.y,o=n.x,a=n.y,s=0,l=t;s