1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ffc3323"],{"02da":function(t,e,i){"use strict";var n=i("9cb2"),r=i("3426"),s=i("54a8"),o=i("d580"),a=i("93f7"),l=i("633b"),c=i("d83a"),h=i("b485"),u=i("eee5");const d=[0,0,0],g=5;class m{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(s["a"])(Object(h["d"])(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(let n=0,r=this.resolutions_.length-1;n<r;++n)if(e){if(this.resolutions_[n]/this.resolutions_[n+1]!==e){e=void 0;break}}else e=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Object(s["a"])(this.origins_.length==this.resolutions_.length,20));const i=t.extent;void 0===i||this.origin_||this.origins_||(this.origin_=Object(a["C"])(i)),Object(s["a"])(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(s["a"])(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:r["b"],Object(s["a"])(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==i?i:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){const r=new n["b"](Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(i){const t=this.getTileRangeForExtentAndZ(i,e);r.minX=Math.max(t.minX,r.minX),r.maxX=Math.min(t.maxX,r.maxX),r.minY=Math.max(t.minY,r.minY),r.maxY=Math.min(t.maxY,r.maxY)}return r}),this):i&&this.calculateTileRanges_(i)}forEachTileCoord(t,e,i){const n=this.getTileRangeForExtentAndZ(t,e);for(let r=n.minX,s=n.maxX;r<=s;++r)for(let t=n.minY,o=n.maxY;t<=o;++t)i([e,r,t])}forEachTileCoordParentTileRange(t,e,i,r){let s,o,a,l=null,c=t[0]-1;2===this.zoomFactor_?(o=t[1],a=t[2]):l=this.getTileCoordExtent(t,r);while(c>=this.minZoom){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),s=Object(n["a"])(o,o,a,a,i)):s=this.getTileRangeForExtentAndZ(l,c,i),e(c,s))return!0;--c}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,i){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){const i=2*t[1],r=2*t[2];return Object(n["a"])(i,i+1,r,r+1,e)}const r=this.getTileCoordExtent(t,i||this.tmpExtent_);return this.getTileRangeForExtentAndZ(r,t[0]+1,e)}return null}getTileRangeForTileCoordAndZ(t,e,i){if(e>this.maxZoom||e<this.minZoom)return null;const r=t[0],s=t[1],o=t[2];if(e===r)return Object(n["a"])(s,o,s,o,i);if(this.zoomFactor_){const t=Math.pow(this.zoomFactor_,e-r),a=Math.floor(s*t),l=Math.floor(o*t);if(e<r)return Object(n["a"])(a,a,l,l,i);const c=Math.floor(t*(s+1))-1,h=Math.floor(t*(o+1))-1;return Object(n["a"])(a,c,l,h,i)}const a=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e,i)}getTileRangeExtent(t,e,i){const n=this.getOrigin(t),r=this.getResolution(t),s=Object(u["c"])(this.getTileSize(t),this.tmpSize_),o=n[0]+e.minX*s[0]*r,l=n[0]+(e.maxX+1)*s[0]*r,c=n[1]+e.minY*s[1]*r,h=n[1]+(e.maxY+1)*s[1]*r;return Object(a["k"])(o,c,l,h,i)}getTileRangeForExtentAndZ(t,e,i){const r=d;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,r);const s=r[1],o=r[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,r),Object(n["a"])(s,r[1],o,r[2],i)}getTileCoordCenter(t){const e=this.getOrigin(t[0]),i=this.getResolution(t[0]),n=Object(u["c"])(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*i,e[1]-(t[2]+.5)*n[1]*i]}getTileCoordExtent(t,e){const i=this.getOrigin(t[0]),n=this.getResolution(t[0]),r=Object(u["c"])(this.getTileSize(t[0]),this.tmpSize_),s=i[0]+t[1]*r[0]*n,o=i[1]-(t[2]+1)*r[1]*n,l=s+r[0]*n,c=o+r[1]*n;return Object(a["k"])(s,o,l,c,e)}getTileCoordForCoordAndResolution(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)}getTileCoordForXYAndResolution_(t,e,i,n,r){const s=this.getZForResolution(i),a=i/this.getResolution(s),c=this.getOrigin(s),h=Object(u["c"])(this.getTileSize(s),this.tmpSize_);let d=a*(t-c[0])/i/h[0],m=a*(c[1]-e)/i/h[1];return n?(d=Object(o["a"])(d,g)-1,m=Object(o["a"])(m,g)-1):(d=Object(o["c"])(d,g),m=Object(o["c"])(m,g)),Object(l["a"])(s,d,m,r)}getTileCoordForXYAndZ_(t,e,i,n,r){const s=this.getOrigin(i),a=this.getResolution(i),c=Object(u["c"])(this.getTileSize(i),this.tmpSize_);let h=(t-s[0])/a/c[0],d=(s[1]-e)/a/c[1];return n?(h=Object(o["a"])(h,g)-1,d=Object(o["a"])(d,g)-1):(h=Object(o["c"])(h,g),d=Object(o["c"])(d,g)),Object(l["a"])(i,h,d,r)}getTileCoordForCoordAndZ(t,e,i){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,i)}getTileCoordResolution(t){return this.resolutions_[t[0]]}getTileSize(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]}getFullTileRange(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null}getZForResolution(t,e){const i=Object(h["e"])(this.resolutions_,t,e||0);return Object(o["b"])(i,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return Object(c["c"])(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){const e=this.resolutions_.length,i=new Array(e);for(let n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i}}e["a"]=m},"03a8":function(t,e,i){"use strict";var n=i("887b"),r=i("8f60"),s=i("ecd4"),o=i("dd64"),a=i("1d14"),l=i("7013"),c=i("d580"),h=i("93f7"),u=i("1005"),d=i("d72a");class g extends s["a"]{constructor(t,e,i,r,s,u,d,g,m,_,p,f){super(s,o["a"].IDLE,{interpolate:!!f}),this.renderEdges_=void 0!==p&&p,this.pixelRatio_=d,this.gutter_=g,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=r,this.wrappedTileCoord_=u||s,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const b=r.getTileCoordExtent(this.wrappedTileCoord_),T=this.targetTileGrid_.getExtent();let j=this.sourceTileGrid_.getExtent();const x=T?Object(h["A"])(b,T):b;if(0===Object(h["t"])(x))return void(this.state=o["a"].EMPTY);const O=t.getExtent();O&&(j=j?Object(h["A"])(j,O):O);const E=r.getResolution(this.wrappedTileCoord_[0]),C=Object(l["a"])(t,i,x,E);if(!isFinite(C)||C<=0)return void(this.state=o["a"].EMPTY);const R=void 0!==_?_:n["a"];if(this.triangulation_=new a["a"](t,i,x,j,C*R,E),0===this.triangulation_.getTriangles().length)return void(this.state=o["a"].EMPTY);this.sourceZ_=e.getZForResolution(C);let S=this.triangulation_.calculateSourceExtent();if(j&&(t.canWrapX()?(S[1]=Object(c["b"])(S[1],j[1],j[3]),S[3]=Object(c["b"])(S[3],j[1],j[3])):S=Object(h["A"])(S,j)),Object(h["t"])(S)){const t=e.getTileRangeForExtentAndZ(S,this.sourceZ_);for(let e=t.minX;e<=t.maxX;e++)for(let i=t.minY;i<=t.maxY;i++){const t=m(this.sourceZ_,e,i,d);t&&this.sourceTiles_.push(t)}0===this.sourceTiles_.length&&(this.state=o["a"].EMPTY)}else this.state=o["a"].EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach(function(e,i,n){e&&e.getState()==o["a"].LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=o["a"].ERROR;else{const e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n="number"===typeof i?i:i[0],r="number"===typeof i?i:i[1],s=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Object(l["d"])(n,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),s,c,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=o["a"].LOADED}this.changed()}load(){if(this.state==o["a"].IDLE){this.state=o["a"].LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,i,n){const s=e.getState();if(s==o["a"].IDLE||s==o["a"].LOADING){t++;const i=Object(u["a"])(e,r["a"].CHANGE,(function(n){const r=e.getState();r!=o["a"].LOADED&&r!=o["a"].ERROR&&r!=o["a"].EMPTY||(Object(u["c"])(i),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(i)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,i){const n=t.getState();n==o["a"].IDLE&&t.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(u["c"]),this.sourcesListenerKeys_=null}release(){this.canvas_&&(Object(d["b"])(this.canvas_.getContext("2d")),l["c"].push(this.canvas_),this.canvas_=null),super.release()}}e["a"]=g},"0d2b":function(t,e,i){"use strict";var n=i("ecd4"),r=i("dd64"),s=i("d72a"),o=i("7bf1");class a extends n["a"]{constructor(t,e,i,n,r,s){super(t,e,s),this.crossOrigin_=n,this.src_=i,this.key=i,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=r["a"].LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=r["a"].ERROR,this.unlistenImage_(),this.image_=l(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=r["a"].LOADED:this.state=r["a"].EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==r["a"].ERROR&&(this.state=r["a"].IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==r["a"].IDLE&&(this.state=r["a"].LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(o["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function l(){const t=Object(s["a"])(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}e["a"]=a},"34f1":function(t,e,i){"use strict";i("456d"),i("eeea"),i("b920"),i("895b"),i("fdd9"),i("a4c0")},3915:function(t,e,i){"use strict";i.d(e,"c",(function(){return l})),i.d(e,"d",(function(){return c})),i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return m}));var n=i("02da"),r=i("3426"),s=i("b91b"),o=i("93f7"),a=i("eee5");function l(t){let e=t.getDefaultTileGrid();return e||(e=g(t),t.setDefaultTileGrid(e)),e}function c(t,e,i){const n=e[0],r=t.getTileCoordCenter(e),s=m(i);if(Object(o["f"])(s,r))return e;{const e=Object(o["E"])(s),i=Math.ceil((s[0]-r[0])/e);return r[0]+=e*i,t.getTileCoordForCoordAndZ(r,n)}}function h(t,e,i,r){r=void 0!==r?r:"top-left";const s=d(t,e,i);return new n["a"]({extent:t,origin:Object(o["x"])(t,r),resolutions:s,tileSize:i})}function u(t){const e=t||{},i=e.extent||Object(s["j"])("EPSG:3857").getExtent(),r={extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:d(i,e.maxZoom,e.tileSize,e.maxResolution)};return new n["a"](r)}function d(t,e,i,n){e=void 0!==e?e:r["a"],i=Object(a["c"])(void 0!==i?i:r["b"]);const s=Object(o["z"])(t),l=Object(o["E"])(t);n=n>0?n:Math.max(l/i[0],s/i[1]);const c=e+1,h=new Array(c);for(let r=0;r<c;++r)h[r]=n/Math.pow(2,r);return h}function g(t,e,i,n){const r=m(t);return h(r,e,i,n)}function m(t){t=Object(s["j"])(t);let e=t.getExtent();if(!e){const i=180*s["a"].degrees/t.getMetersPerUnit();e=Object(o["k"])(-i,-i,i,i)}return e}},"633b":function(t,e,i){"use strict";function n(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function r(t,e,i){return t+"/"+e+"/"+i}function s(t){return r(t[0],t[1],t[2])}function o(t){return t.split("/").map(Number)}function a(t){return(t[1]<<t[0])+t[2]}function l(t,e){const i=t[0],n=t[1],r=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;const s=e.getFullTileRange(i);return!s||s.containsXY(n,r)}i.d(e,"a",(function(){return n})),i.d(e,"d",(function(){return r})),i.d(e,"c",(function(){return s})),i.d(e,"b",(function(){return o})),i.d(e,"e",(function(){return a})),i.d(e,"f",(function(){return l}))},"9cb2":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));class n{constructor(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function r(t,e,i,r,s){return void 0!==s?(s.minX=t,s.maxX=e,s.minY=i,s.maxY=r,s):new n(t,e,i,r)}e["b"]=n},a0c8:function(t,e,i){"use strict";var n=i("aaaf"),r={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class s extends n["a"]{constructor(t){t=t||{};const e=Object.assign({},t);delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getPreload(){return this.get(r.PRELOAD)}setPreload(t){this.set(r.PRELOAD,t)}getUseInterimTilesOnError(){return this.get(r.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(t){this.set(r.USE_INTERIM_TILES_ON_ERROR,t)}getData(t){return super.getData(t)}}var o=s,a=i("5df6"),l=i("0d2b"),c=i("03a8"),h=i("9cb2"),u=i("dd64"),d=i("ac76"),g=i("93f7"),m=i("b91b"),_=i("2fc48"),p=i("b485"),f=i("eee5");class b extends a["b"]{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=Object(g["j"])(),this.tmpTileRange_=new h["b"](0,0,0,0)}isDrawableTile(t){const e=this.getLayer(),i=t.getState(),n=e.getUseInterimTilesOnError();return i==u["a"].LOADED||i==u["a"].EMPTY||i==u["a"].ERROR&&!n}getTile(t,e,i,n){const r=n.pixelRatio,s=n.viewState.projection,o=this.getLayer(),a=o.getSource();let l=a.getTile(t,e,i,r,s);return l.getState()==u["a"].ERROR&&o.getUseInterimTilesOnError()&&o.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(l)||(l=l.getInterimTile()),l}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=Object(d["a"])(e.pixelToCoordinateTransform,t.slice()),r=i.getExtent();if(r&&!Object(g["f"])(r,n))return null;const s=e.pixelRatio,o=e.viewState.projection,a=e.viewState,h=i.getRenderSource(),m=h.getTileGridForProjection(a.projection),_=h.getTilePixelRatio(e.pixelRatio);for(let d=m.getZForResolution(a.resolution);d>=m.getMinZoom();--d){const t=m.getTileCoordForCoordAndZ(n,d),e=h.getTile(d,t[1],t[2],s,o);if(!(e instanceof l["a"]||e instanceof c["a"])||e instanceof c["a"]&&e.getState()===u["a"].EMPTY)return null;if(e.getState()!==u["a"].LOADED)continue;const i=m.getOrigin(d),r=Object(f["c"])(m.getTileSize(d)),g=m.getResolution(d),p=Math.floor(_*((n[0]-i[0])/g-t[1]*r[0])),b=Math.floor(_*((i[1]-n[1])/g-t[2]*r[1])),T=Math.round(_*h.getGutterForProjection(a.projection));return this.getImageData(e.getImage(),p+T,b+T)}return null}loadedTileCallback(t,e,i){return!!this.isDrawableTile(i)&&super.loadedTileCallback(t,e,i)}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){const i=t.layerStatesArray[t.layerIndex],n=t.viewState,r=n.projection,s=n.resolution,o=n.center,a=n.rotation,l=t.pixelRatio,c=this.getLayer(),h=c.getSource(),f=h.getRevision(),b=h.getTileGridForProjection(r),T=b.getZForResolution(s,h.zDirection),j=b.getResolution(T);let x=t.extent;const O=t.viewState.resolution,E=h.getTilePixelRatio(l),C=Math.round(Object(g["E"])(x)/O*l),R=Math.round(Object(g["z"])(x)/O*l),S=i.extent&&Object(m["h"])(i.extent,r);S&&(x=Object(g["A"])(x,Object(m["h"])(i.extent,r)));const w=j*C/2/E,v=j*R/2/E,F=[o[0]-w,o[1]-v,o[0]+w,o[1]+v],y=b.getTileRangeForExtentAndZ(x,T),P={};P[T]={};const I=this.createLoadedTileFinder(h,r,P),z=this.tmpExtent,L=this.tmpTileRange_;this.newTiles_=!1;const A=a?Object(g["B"])(n.center,O,a,t.size):void 0;for(let d=y.minX;d<=y.maxX;++d)for(let e=y.minY;e<=y.maxY;++e){if(a&&!b.tileCoordIntersectsViewport([T,d,e],A))continue;const n=this.getTile(T,d,e,t);if(this.isDrawableTile(n)){const e=Object(_["b"])(this);if(n.getState()==u["a"].LOADED){P[T][n.tileCoord.toString()]=n;let t=n.inTransition(e);t&&1!==i.opacity&&(n.endTransition(e),t=!1),this.newTiles_||!t&&this.renderedTiles.includes(n)||(this.newTiles_=!0)}if(1===n.getAlpha(e,t.time))continue}const r=b.getTileCoordChildTileRange(n.tileCoord,L,z);let s=!1;r&&(s=I(T+1,r)),s||b.forEachTileCoordParentTileRange(n.tileCoord,I,L,z)}const D=j/s*l/E;Object(d["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,a,-C/2,-R/2);const G=Object(d["g"])(this.pixelTransform);this.useContainer(e,G,this.getBackground(t));const X=this.context,Y=X.canvas;Object(d["d"])(this.inversePixelTransform,this.pixelTransform),Object(d["b"])(this.tempTransform,C/2,R/2,D,D,0,-C/2,-R/2),Y.width!=C||Y.height!=R?(Y.width=C,Y.height=R):this.containerReused||X.clearRect(0,0,C,R),S&&this.clipUnrotated(X,t,S),h.getInterpolate()||(X.imageSmoothingEnabled=!1),this.preRender(X,t),this.renderedTiles.length=0;let k,Z,M,U=Object.keys(P).map(Number);U.sort(p["f"]),1!==i.opacity||this.containerReused&&!h.getOpaque(t.viewState.projection)?(k=[],Z=[]):U=U.reverse();for(let u=U.length-1;u>=0;--u){const e=U[u],i=h.getTilePixelSize(e,l,r),n=b.getResolution(e),s=n/j,o=i[0]*s*D,a=i[1]*s*D,c=b.getTileCoordForCoordAndZ(Object(g["C"])(F),e),m=b.getTileCoordExtent(c),p=Object(d["a"])(this.tempTransform,[E*(m[0]-F[0])/j,E*(F[3]-m[3])/j]),f=E*h.getGutterForProjection(r),x=P[e];for(const r in x){const i=x[r],n=i.tileCoord,s=c[1]-n[1],l=Math.round(p[0]-(s-1)*o),u=c[2]-n[2],d=Math.round(p[1]-(u-1)*a),m=Math.round(p[0]-s*o),b=Math.round(p[1]-u*a),j=l-m,O=d-b,E=T===e,C=E&&1!==i.getAlpha(Object(_["b"])(this),t.time);let R=!1;if(!C)if(k){M=[m,b,m+j,b,m+j,b+O,m,b+O];for(let t=0,i=k.length;t<i;++t)if(T!==e&&e<Z[t]){const e=k[t];Object(g["F"])([m,b,m+j,b+O],[e[0],e[3],e[4],e[7]])&&(R||(X.save(),R=!0),X.beginPath(),X.moveTo(M[0],M[1]),X.lineTo(M[2],M[3]),X.lineTo(M[4],M[5]),X.lineTo(M[6],M[7]),X.moveTo(e[6],e[7]),X.lineTo(e[4],e[5]),X.lineTo(e[2],e[3]),X.lineTo(e[0],e[1]),X.clip())}k.push(M),Z.push(e)}else X.clearRect(m,b,j,O);this.drawTileImage(i,t,m,b,j,O,f,E),k&&!C?(R&&X.restore(),this.renderedTiles.unshift(i)):this.renderedTiles.push(i),this.updateUsedTiles(t.usedTiles,h,i)}}return this.renderedRevision=f,this.renderedResolution=j,this.extentChanged=!this.renderedExtent_||!Object(g["o"])(this.renderedExtent_,F),this.renderedExtent_=F,this.renderedPixelRatio=l,this.renderedProjection=r,this.manageTilePyramid(t,h,b,l,r,x,T,c.getPreload()),this.scheduleExpireCache(t,h),this.postRender(X,t),i.extent&&X.restore(),X.imageSmoothingEnabled=!0,G!==Y.style.transform&&(Y.style.transform=G),this.container}drawTileImage(t,e,i,n,r,s,o,a){const l=this.getTileImage(t);if(!l)return;const c=Object(_["b"])(this),h=e.layerStatesArray[e.layerIndex],u=h.opacity*(a?t.getAlpha(c,e.time):1),d=u!==this.context.globalAlpha;d&&(this.context.save(),this.context.globalAlpha=u),this.context.drawImage(l,o,o,l.width-2*o,l.height-2*o,i,n,r,s),d&&this.context.restore(),u!==h.opacity?e.animate=!0:a&&t.endTransition(c)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}scheduleExpireCache(t,e){if(e.canExpireCache()){const i=function(t,e,i){const n=Object(_["b"])(t);n in i.usedTiles&&t.expireCache(i.viewState.projection,i.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(i)}}updateUsedTiles(t,e,i){const n=Object(_["b"])(e);n in t||(t[n]={}),t[n][i.getKey()]=!0}manageTilePyramid(t,e,i,n,r,s,o,a,l){const c=Object(_["b"])(e);c in t.wantedTiles||(t.wantedTiles[c]={});const h=t.wantedTiles[c],d=t.tileQueue,m=i.getMinZoom(),p=t.viewState.rotation,f=p?Object(g["B"])(t.viewState.center,t.viewState.resolution,p,t.size):void 0;let b,T,j,x,O,E,C=0;for(E=m;E<=o;++E)for(T=i.getTileRangeForExtentAndZ(s,E,T),j=i.getResolution(E),x=T.minX;x<=T.maxX;++x)for(O=T.minY;O<=T.maxY;++O)p&&!i.tileCoordIntersectsViewport([E,x,O],f)||(o-E<=a?(++C,b=e.getTile(E,x,O,n,r),b.getState()==u["a"].IDLE&&(h[b.getKey()]=!0,d.isKeyQueued(b.getKey())||d.enqueue([b,c,i.getTileCoordCenter(b.tileCoord),j])),void 0!==l&&l(b)):e.useTile(E,x,O,r));e.updateCacheSize(C,r)}}var T=b;class j extends o{constructor(t){super(t)}createRenderer(){return new T(this)}}e["a"]=j},a241:function(t,e,i){"use strict";var n=i("4c02"),r=i.n(n),s=i("6da8"),o=i("32be"),a=i("c60e"),l=i("18f0"),c=i("9ec8"),h=Object(o["a"])("search"),u=h[0],d=h[1],g=h[2];function m(t,e,i,n){function o(){if(i.label||e.label)return t("div",{class:d("label")},[i.label?i.label():e.label])}function h(){if(e.showAction)return t("div",{class:d("action"),attrs:{role:"button",tabindex:"0"},on:{click:r}},[i.action?i.action():e.actionText||g("cancel")]);function r(){i.action||(Object(a["a"])(n,"input",""),Object(a["a"])(n,"cancel"))}}var u={attrs:n.data.attrs,on:Object(s["a"])({},n.listeners,{keypress:function(t){13===t.keyCode&&(Object(l["c"])(t),Object(a["a"])(n,"search",e.value)),Object(a["a"])(n,"keypress",t)}})},m=Object(a["b"])(n);return m.attrs=void 0,t("div",r()([{class:d({"show-action":e.showAction}),style:{background:e.background}},m]),[null==i.left?void 0:i.left(),t("div",{class:d("content",e.shape)},[o(),t(c["a"],r()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":i["left-icon"],"right-icon":i["right-icon"]}},u]))]),h()])}m.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}},e["a"]=u(m)},a4c0:function(t,e,i){},dc29:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex flex-col h-screen"},[i("van-search",{attrs:{placeholder:"请输入关键词"},on:{search:t.handleSearch},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),i("div",{staticClass:"flex-1"},[i("div",{ref:"map",staticStyle:{width:"100%",height:"100%"}})])],1)},r=[],s=i("d696"),o=(i("34f1"),i("a241")),a=(i("c510"),i("f8c2"),i("4d38"),i("1ae6"),i("c08f"),i("09ed"),i("97ee")),l=i("f34f"),c=i("da7b"),h=i("fc9b"),u=i("a0c8"),d=i("15ea"),g=i("8f60"),m=i("0d2b"),_=i("03a8"),p=i("54a8");class f{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){while(this.canExpireCache())this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;while(e)t(e.value_,e.key_,this),e=e.newer}get(t,e){const i=this.entries_[t];return Object(p["a"])(void 0!==i,15),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(t){const e=this.entries_[t];return Object(p["a"])(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(t))return this.entries_[t].value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){Object(p["a"])(!(t in this.entries_),16);const i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_}setSize(t){this.highWaterMark=t}}var b=f,T=i("633b");class j extends b{clear(){while(this.getCount()>0)this.pop().release();super.clear()}expireCache(t){while(this.canExpireCache()){const e=this.peekLast();if(e.getKey()in t)break;this.pop().release()}}pruneExceptNewestZ(){if(0===this.getCount())return;const t=this.peekFirstKey(),e=Object(T["b"])(t),i=e[0];this.forEach(function(t){t.tileCoord[0]!==i&&(this.remove(Object(T["c"])(t.tileCoord)),t.release())}.bind(this))}}var x=j,O=i("dd64"),E={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},C=i("8a11"),R=i("1d8e"),S=i("2fc48"),w=i("b91b"),v=i("3915"),F=i("eee5");class y extends R["a"]{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate}),this.on,this.once,this.un,this.opaque_=void 0!==t.opaque&&t.opaque,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;const e=[256,256];this.tileGrid&&Object(F["c"])(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),e),this.tileCache=new x(t.cacheSize||0),this.tmpSize=[0,0],this.key_=t.key||"",this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(t,e){const i=this.getTileCacheForProjection(t);i&&i.expireCache(e)}forEachLoadedTile(t,e,i,n){const r=this.getTileCacheForProjection(t);if(!r)return!1;let s,o,a,l=!0;for(let c=i.minX;c<=i.maxX;++c)for(let t=i.minY;t<=i.maxY;++t)o=Object(T["d"])(e,c,t),a=!1,r.containsKey(o)&&(s=r.get(o),a=s.getState()===O["a"].LOADED,a&&(a=!1!==n(s))),a||(l=!1);return l}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getOpaque(t){return this.opaque_}getResolutions(){return this.tileGrid?this.tileGrid.getResolutions():null}getTile(t,e,i,n,r){return Object(S["a"])()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:Object(v["c"])(t)}getTileCacheForProjection(t){const e=this.getProjection();return Object(p["a"])(null===e||Object(w["e"])(e,t),68),this.tileCache}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,i){const n=this.getTileGridForProjection(i),r=this.getTilePixelRatio(e),s=Object(F["c"])(n.getTileSize(t),this.tmpSize);return 1==r?s:Object(F["b"])(s,r,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){e=void 0!==e?e:this.getProjection();const i=this.getTileGridForProjection(e);return this.getWrapX()&&e.isGlobal()&&(t=Object(v["d"])(i,t,e)),Object(T["f"])(t,i)?t:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(t,e){const i=this.getTileCacheForProjection(e);t>i.highWaterMark&&(i.highWaterMark=t)}useTile(t,e,i,n){}}class P extends C["a"]{constructor(t,e){super(t),this.tile=e}}var I=y,z=i("d580");function L(t,e){const i=/\{z\}/g,n=/\{x\}/g,r=/\{y\}/g,s=/\{-y\}/g;return function(o,a,l){return o?t.replace(i,o[0].toString()).replace(n,o[1].toString()).replace(r,o[2].toString()).replace(s,(function(){const t=o[0],i=e.getFullTileRange(t);Object(p["a"])(i,55);const n=i.getHeight()-o[2]-1;return n.toString()})):void 0}}function A(t,e){const i=t.length,n=new Array(i);for(let r=0;r<i;++r)n[r]=L(t[r],e);return D(n)}function D(t){return 1===t.length?t[0]:function(e,i,n){if(e){const r=Object(T["e"])(e),s=Object(z["e"])(r,t.length);return t[s](e,i,n)}}}function G(t){const e=[];let i=/\{([a-z])-([a-z])\}/.exec(t);if(i){const n=i[1].charCodeAt(0),r=i[2].charCodeAt(0);let s;for(s=n;s<=r;++s)e.push(t.replace(i[0],String.fromCharCode(s)));return e}if(i=/\{(\d+)-(\d+)\}/.exec(t),i){const n=parseInt(i[2],10);for(let r=parseInt(i[1],10);r<=n;r++)e.push(t.replace(i[0],r.toString()));return e}return e.push(t),e}class X extends I{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===X.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){const e=t.target,i=Object(S["b"])(e),n=e.getState();let r;n==O["a"].LOADING?(this.tileLoadingKeys_[i]=!0,r=E.TILELOADSTART):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],r=n==O["a"].ERROR?E.TILELOADERROR:n==O["a"].LOADED?E.TILELOADEND:void 0),void 0!=r&&this.dispatchEvent(new P(r,e))}setTileLoadFunction(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof e?this.setKey(e):this.changed()}setUrl(t){const e=G(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(A(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,i){}useTile(t,e,i){const n=Object(T["d"])(t,e,i);this.tileCache.containsKey(n)&&this.tileCache.get(n)}}var Y=X;class k extends Y{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:Z,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:void 0===t.interpolate||t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=void 0!==t.tileClass?t.tileClass:m["a"],this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1}expireCache(t,e){const i=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==i?e:{});for(const n in this.tileCacheForProjection){const t=this.tileCacheForProjection[n];t.expireCache(t==i?e:{})}}getGutterForProjection(t){return this.getProjection()&&t&&!Object(w["e"])(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=":disable-interpolation"),t}getOpaque(t){return!(this.getProjection()&&t&&!Object(w["e"])(this.getProjection(),t))&&super.getOpaque(t)}getTileGridForProjection(t){const e=this.getProjection();if(!this.tileGrid||e&&!Object(w["e"])(e,t)){const e=Object(S["b"])(t);return e in this.tileGridForProjection||(this.tileGridForProjection[e]=Object(v["c"])(t)),this.tileGridForProjection[e]}return this.tileGrid}getTileCacheForProjection(t){const e=this.getProjection();if(!e||Object(w["e"])(e,t))return this.tileCache;{const e=Object(S["b"])(t);return e in this.tileCacheForProjection||(this.tileCacheForProjection[e]=new x(this.tileCache.highWaterMark)),this.tileCacheForProjection[e]}}createTile_(t,e,i,n,r,s){const o=[t,e,i],a=this.getTileCoordForTileUrlFunction(o,r),l=a?this.tileUrlFunction(a,n,r):void 0,c=new this.tileClass(o,void 0!==l?O["a"].IDLE:O["a"].EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return c.key=s,c.addEventListener(g["a"].CHANGE,this.handleTileChange.bind(this)),c}getTile(t,e,i,n,r){const s=this.getProjection();if(s&&r&&!Object(w["e"])(s,r)){const o=this.getTileCacheForProjection(r),a=[t,e,i];let l;const c=Object(T["c"])(a);o.containsKey(c)&&(l=o.get(c));const h=this.getKey();if(l&&l.key==h)return l;{const t=this.getTileGridForProjection(s),e=this.getTileGridForProjection(r),i=this.getTileCoordForTileUrlFunction(a,r),u=new _["a"](s,t,r,e,a,i,this.getTilePixelRatio(n),this.getGutter(),function(t,e,i,n){return this.getTileInternal(t,e,i,n,s)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return u.key=h,l?(u.interimTile=l,u.refreshInterimChain(),o.replace(c,u)):o.set(c,u),u}}return this.getTileInternal(t,e,i,n,s||r)}getTileInternal(t,e,i,n,r){let s=null;const o=Object(T["d"])(t,e,i),a=this.getKey();if(this.tileCache.containsKey(o)){if(s=this.tileCache.get(o),s.key!=a){const l=s;s=this.createTile_(t,e,i,n,r,a),l.getState()==O["a"].IDLE?s.interimTile=l.interimTile:s.interimTile=l,s.refreshInterimChain(),this.tileCache.replace(o,s)}}else s=this.createTile_(t,e,i,n,r,a),this.tileCache.set(o,s);return s}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}setTileGridForProjection(t,e){const i=Object(w["j"])(t);if(i){const t=Object(S["b"])(i);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}}function Z(t,e){t.getImage().src=e}var M=k;class U extends M{constructor(t){t=t||{};const e=void 0!==t.projection?t.projection:"EPSG:3857",i=void 0!==t.tileGrid?t.tileGrid:Object(v["a"])({extent:Object(v["b"])(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}var K=U,N=i("019e"),q=i("c33f"),W=i("e93b"),H=i("88bb"),B=i("f1aa"),V=i("8df8"),$={components:Object(s["a"])({},o["a"].name,o["a"]),data:function(){return{adcode:"",search:"",map:null,vectorSource:new d["a"]({wrapX:!1}),houses:[]}},mounted:function(){this.initLocation()},methods:{initLocation:function(){var t=this;Object(V["a"])().then((function(e){e.data.result&&(e.data.result.location&&(t.center=[e.data.result.location.lng,e.data.result.location.lat]),e.data.result.ad_info&&e.data.result.ad_info.adcode&&(t.adcode=e.data.result.ad_info.adcode.toString().slice(0,4))),t.init()})).catch((function(){t.init()}))},init:function(){var t=this,e=new u["a"]({source:new K({url:"https://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}"})}),i=new h["a"]({source:this.vectorSource});this.map=new l["a"]({target:this.$refs["map"],layers:[e,i],view:new c["a"]({center:Object(w["f"])(this.center),zoom:12})}),this.map.on("click",(function(e){var i;t.vectorSource.getFeatures().forEach((function(t){t.getGeometry().intersectsCoordinate(e.coordinate)&&(i=t.getId())})),i&&t.$router.push("/house/"+i)})),this.loadHouses()},loadHouses:function(){var t=this;Object(a["a"])("/houses/list").then((function(e){t.houses=e.data.list,t.setSource()})).catch((function(t){console.log(t)}))},getStyle:function(t){return new N["b"]({stroke:new q["a"]({color:"#1890ff",width:2,lineDash:[10,6]}),fill:new W["a"]({color:"rgba(255,255,255,0.2)"}),text:new H["a"]({textAlign:"center",textBaseline:"middle",font:"normal 16px 微软雅黑",text:t,fill:new W["a"]({color:"rgba(0,0,0,0.6)"}),stroke:new q["a"]({color:"rgba(255,255,255,0.6)",width:2})})})},setSource:function(){var t=this;this.vectorSource.clear();var e=[];this.houses.forEach((function(i){var n=(new B["a"]).readFeature(i.shape);n&&(n.setStyle(t.getStyle(i.name.toString())),n.setId(i.id),e.push(n))})),this.vectorSource.addFeatures(e)},handleSearch:function(t){this.$router.push({name:"Search",params:{search:t}})}}},J=$,Q=i("cba8"),tt=Object(Q["a"])(J,n,r,!1,null,"1580760a",null);e["default"]=tt.exports},ecd4:function(t,e,i){"use strict";var n=i("9e10"),r=i("8f60"),s=i("dd64"),o=i("2fc48"),a=i("7774");class l extends n["a"]{constructor(t,e,i){super(),i=i||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=void 0===i.transition?250:i.transition,this.transitionStarts_={},this.interpolate=!!i.interpolate}changed(){this.dispatchEvent(r["a"].CHANGE)}release(){this.state===s["a"].ERROR&&this.setState(s["a"].EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let t=this.interimTile;do{if(t.getState()==s["a"].LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){if(!this.interimTile)return;let t=this.interimTile,e=this;do{if(t.getState()==s["a"].LOADED){t.interimTile=null;break}t.getState()==s["a"].LOADING?e=t:t.getState()==s["a"].IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==s["a"].ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){Object(o["a"])()}getAlpha(t,e){if(!this.transition_)return 1;let i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;const n=e-i+1e3/60;return n>=this.transition_?1:Object(a["a"])(n/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}e["a"]=l}}]);
|