{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/l7-components/1.0.22',['pandav:/npm/events/3.3.0','pandav:/npm/lodash/4.6.1','pandav:/com/l7-components/1.0.22/components/line','pandav:/com/l7-components/1.0.22/components/link','pandav:/com/l7-components/1.0.22/components/marker','pandav:/com/l7-components/1.0.22/components/scene','pandav:/com/l7-components/1.0.22/components/markerTip','pandav:/com/l7-components/1.0.22/components/polygon','pandav:/com/l7-components/1.0.22/components/wall','pandav:/com/l7-components/1.0.22/components/building','pandav:/com/l7-components/1.0.22/components/heatmap'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){return k(a)||j(a,b)||g(a,b)||f()}function f(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function g(a,b){if(a){if('string'==typeof a)return h(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?h(a,b):void 0}}function h(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);cc?(a.apply(i,g),f=j):(clearTimeout(e),e=setTimeout(function(){a.apply(i,g),f=null},b))}}},{key:'filterScene',value:function b(a){var c='';return c='amap'===a?'GaodeMap':'mapbox'===a?'Mapbox':'BaiduMap'===a?'BaiduMap':'TencentMap'===a?'TencentMap':'MapLibre'===a?'MapLibre':'GaodeMap',c}},{key:'clearLayer',value:function a(){this.L7Scene.removeAllLayer(),this.L7Scene.removeAllMarkers()}},{key:'destroy',value:function a(){this.L7Scene&&this.clearLayer()}},{key:'createScene',value:function b(a){var c=this,d=a.L7Scene,e=a.mapInstance,f=a.children;this.init(),d&&(this.L7Scene=d,this.mapInstance=e),d.on('loaded',function(){d&&c.addChildren(f)}),d.off('zoomend'),d.on('zoomend',this.throttle(function(a){if(c.WMTSLayer){var b=a.target.getCenter(),d=c.WMTSLayer.getSource(),e=a.target.getZoom(0),f=d.tileset.currentZoom,g=c.WMTSLayer.sourceOption,h=g.data,i=g.options,j=c.centerIsPolygon([b.lng,b.lat],i.parser.extent);if(j){c.WMTSLayer.show();var k=c.getUrlParams(h),l=k.urlStr,m=f>e?f:e,n=''.concat(l,'?FORMAT=image/png&TILEMATRIX=EPSG:900913:').concat(m),o=Object.assign({},i);o.parser.zoomOffset=e-f,c.WMTSLayer.setData(n,o)}else c.WMTSLayer.hide()}}),60,120)}},{key:'centerIsPolygon',value:function c(a,b){if(b){var d=b,e=[[d[0],d[1]],[d[0],d[3]],[d[2],d[3]],[d[2],d[1]]];return window.AMap.GeometryUtil.isPointInRing(a,e)}}},{key:'getConfig',value:function b(a){var c=e(a.viewRange,2),d=c[0],f=c[1],g=a.extent,h=g.min,i=g.max,j=[h.lng,h.lat,i.lng,i.lat];return{extent:j,maxZoom:f,minZoom:d}}},{key:'addChildToScene',value:function d(a,b,c){this.childrenScene[a]||(this.childrenScene[a]=new b(c,{L7Scene:this.L7Scene,mapInstance:this.mapInstance,eventEmitter:i}))}},{key:'getChildrenConfig',value:function b(a){var c=this.childrenConfig;return c.filter(function(b){return b.comName===a}).filter(function(a){return!!a})}},{key:'getChildren',value:function b(a){return this.getChildrenConfig(a)}},{key:'addChildren',value:function b(a){var c=this;this.childrenConfig=a,a.forEach(function(a){var b=c.getChildren(a.comName)||[];b&&0'):'video'===a?'