Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mars3d-heatmap

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mars3d-heatmap - npm Package Compare versions

Comparing version 3.4.20 to 3.4.21

6

dist/mars3d-heatmap.js
/**
* Mars3D平台插件,结合heatmap可视化功能插件 mars3d-heatmap
*
* 版本信息:v3.4.20
* 编译日期:2023-01-09 21:00:18
* 版本信息:v3.4.21
* 编译日期:2023-01-17 20:42:56
* 版权所有:Copyright by 火星科技 http://mars3d.cn

@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2022-06-01

})(this, (function (exports, mars3d, h337) {
'use strict';var _0x2c543d=_0x1c30;(function(_0x52a9c1,_0x4aa07d){var _0x57f787={_0x3ab434:0x10f,_0xe3f2e2:0xd0,_0x35799d:0xf0,_0x1c816e:0xe7,_0x6f9ee7:0x109},_0x1da30e=_0x1c30,_0xa71f69=_0x52a9c1();while(!![]){try{var _0x53f3ae=-parseInt(_0x1da30e(0x120))/0x1*(parseInt(_0x1da30e(0xd4))/0x2)+parseInt(_0x1da30e(0xe8))/0x3*(-parseInt(_0x1da30e(0x115))/0x4)+-parseInt(_0x1da30e(0x105))/0x5*(parseInt(_0x1da30e(_0x57f787._0x3ab434))/0x6)+parseInt(_0x1da30e(_0x57f787._0xe3f2e2))/0x7+-parseInt(_0x1da30e(0x122))/0x8*(-parseInt(_0x1da30e(_0x57f787._0x35799d))/0x9)+-parseInt(_0x1da30e(_0x57f787._0x1c816e))/0xa*(-parseInt(_0x1da30e(_0x57f787._0x6f9ee7))/0xb)+-parseInt(_0x1da30e(0xe2))/0xc*(-parseInt(_0x1da30e(0x10c))/0xd);if(_0x53f3ae===_0x4aa07d)break;else _0xa71f69['push'](_0xa71f69['shift']());}catch(_0x31f0ff){_0xa71f69['push'](_0xa71f69['shift']());}}}(_0x5822,0x2c308));function _interopNamespace(_0x1fe7a4){var _0x149792={_0x1b173b:0x126},_0x436bf0=_0x1c30;if(_0x1fe7a4&&_0x1fe7a4['__esModule'])return _0x1fe7a4;var _0x415e2c=Object['create'](null);return _0x1fe7a4&&Object[_0x436bf0(_0x149792._0x1b173b)](_0x1fe7a4)['forEach'](function(_0x5f2f17){var _0x332df7=_0x436bf0;if(_0x5f2f17!=='default'){var _0xa8f6e=Object[_0x332df7(0xd6)](_0x1fe7a4,_0x5f2f17);Object['defineProperty'](_0x415e2c,_0x5f2f17,_0xa8f6e[_0x332df7(0x114)]?_0xa8f6e:{'enumerable':!![],'get':function(){return _0x1fe7a4[_0x5f2f17];}});}}),_0x415e2c['default']=_0x1fe7a4,_0x415e2c;}var mars3d__namespace=_interopNamespace(mars3d),h337__namespace=_interopNamespace(h337);function ownKeys(_0x154758,_0x175856){var _0x3d93fc=Object['keys'](_0x154758);if(Object['getOwnPropertySymbols']){var _0x50c3d9=Object['getOwnPropertySymbols'](_0x154758);_0x175856&&(_0x50c3d9=_0x50c3d9['filter'](function(_0x5bc4ee){return Object['getOwnPropertyDescriptor'](_0x154758,_0x5bc4ee)['enumerable'];})),_0x3d93fc['push']['apply'](_0x3d93fc,_0x50c3d9);}return _0x3d93fc;}function _objectSpread2(_0x31c4c9){var _0x24d0bf={_0x28d128:0xe0},_0x214a4d=_0x1c30;for(var _0x2eb58f=0x1;_0x2eb58f<arguments['length'];_0x2eb58f++){var _0x3ab934=null!=arguments[_0x2eb58f]?arguments[_0x2eb58f]:{};_0x2eb58f%0x2?ownKeys(Object(_0x3ab934),!0x0)['forEach'](function(_0x5d19f0){_defineProperty(_0x31c4c9,_0x5d19f0,_0x3ab934[_0x5d19f0]);}):Object['getOwnPropertyDescriptors']?Object['defineProperties'](_0x31c4c9,Object['getOwnPropertyDescriptors'](_0x3ab934)):ownKeys(Object(_0x3ab934))[_0x214a4d(_0x24d0bf._0x28d128)](function(_0xbcf389){var _0x38526d=_0x214a4d;Object[_0x38526d(0xf1)](_0x31c4c9,_0xbcf389,Object[_0x38526d(0xd6)](_0x3ab934,_0xbcf389));});}return _0x31c4c9;}function _classCallCheck(_0xba326f,_0x433ab8){if(!(_0xba326f instanceof _0x433ab8))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}function _defineProperties(_0x348495,_0x389b59){var _0xa15f5a={_0x58efb7:0x10a,_0x4e460e:0xf1},_0x385818=_0x1c30;for(var _0x3ca64a=0x0;_0x3ca64a<_0x389b59[_0x385818(0xf7)];_0x3ca64a++){var _0x29dd7b=_0x389b59[_0x3ca64a];_0x29dd7b[_0x385818(_0xa15f5a._0x58efb7)]=_0x29dd7b['enumerable']||![],_0x29dd7b['configurable']=!![];if('value'in _0x29dd7b)_0x29dd7b[_0x385818(0x125)]=!![];Object[_0x385818(_0xa15f5a._0x4e460e)](_0x348495,_0x29dd7b['key'],_0x29dd7b);}}function _createClass(_0x4a736f,_0x20735a,_0x105e96){var _0x13aee5=_0x1c30;if(_0x20735a)_defineProperties(_0x4a736f[_0x13aee5(0x123)],_0x20735a);if(_0x105e96)_defineProperties(_0x4a736f,_0x105e96);return Object['defineProperty'](_0x4a736f,'prototype',{'writable':![]}),_0x4a736f;}function _defineProperty(_0x56e6a9,_0x15a96e,_0x5a4e99){var _0x4a9e52=_0x1c30;return _0x15a96e in _0x56e6a9?Object[_0x4a9e52(0xf1)](_0x56e6a9,_0x15a96e,{'value':_0x5a4e99,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x56e6a9[_0x15a96e]=_0x5a4e99,_0x56e6a9;}function _inherits(_0x110568,_0x116dd9){var _0xd0d394={_0x87a77d:0x123,_0x5d9b61:0x123},_0x28b8e5=_0x1c30;if(typeof _0x116dd9!=='function'&&_0x116dd9!==null)throw new TypeError('Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function');_0x110568[_0x28b8e5(_0xd0d394._0x87a77d)]=Object['create'](_0x116dd9&&_0x116dd9[_0x28b8e5(0x123)],{'constructor':{'value':_0x110568,'writable':!![],'configurable':!![]}}),Object[_0x28b8e5(0xf1)](_0x110568,_0x28b8e5(_0xd0d394._0x5d9b61),{'writable':![]});if(_0x116dd9)_setPrototypeOf(_0x110568,_0x116dd9);}function _getPrototypeOf(_0x3b633a){var _0x6b8535={_0x4b6cfd:0x10b};return _getPrototypeOf=Object['setPrototypeOf']?Object['getPrototypeOf']['bind']():function _0x1c1504(_0x23b8b5){var _0xfac0ae=_0x1c30;return _0x23b8b5['__proto__']||Object[_0xfac0ae(_0x6b8535._0x4b6cfd)](_0x23b8b5);},_getPrototypeOf(_0x3b633a);}function _setPrototypeOf(_0x252099,_0x1e1148){var _0x3728db=_0x1c30;return _setPrototypeOf=Object[_0x3728db(0xdb)]?Object['setPrototypeOf']['bind']():function _0x1b0360(_0x4d6f07,_0x46d6c2){return _0x4d6f07['__proto__']=_0x46d6c2,_0x4d6f07;},_setPrototypeOf(_0x252099,_0x1e1148);}function _isNativeReflectConstruct(){var _0x38ffda={_0x5230df:0xce},_0x1cf616=_0x1c30;if(typeof Reflect==='undefined'||!Reflect['construct'])return![];if(Reflect['construct']['sham'])return![];if(typeof Proxy===_0x1cf616(0xdf))return!![];try{return Boolean['prototype']['valueOf'][_0x1cf616(_0x38ffda._0x5230df)](Reflect['construct'](Boolean,[],function(){})),!![];}catch(_0x574a2a){return![];}}function _assertThisInitialized(_0x5c0166){if(_0x5c0166===void 0x0)throw new ReferenceError('this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called');return _0x5c0166;}function _possibleConstructorReturn(_0x48fa09,_0x230e2d){var _0x34bee0={_0x199e3f:0xdd},_0x556670=_0x1c30;if(_0x230e2d&&(typeof _0x230e2d==='object'||typeof _0x230e2d==='function'))return _0x230e2d;else{if(_0x230e2d!==void 0x0)throw new TypeError(_0x556670(_0x34bee0._0x199e3f));}return _assertThisInitialized(_0x48fa09);}function _createSuper(_0x2fe16d){var _0x3290f6=_isNativeReflectConstruct();return function _0x5d6d60(){var _0x39e78d=_getPrototypeOf(_0x2fe16d),_0x2154d0;if(_0x3290f6){var _0x104eff=_getPrototypeOf(this)['constructor'];_0x2154d0=Reflect['construct'](_0x39e78d,arguments,_0x104eff);}else _0x2154d0=_0x39e78d['apply'](this,arguments);return _possibleConstructorReturn(this,_0x2154d0);};}function _0x1c30(_0x110c47,_0x46d34f){var _0x582232=_0x5822();return _0x1c30=function(_0x1c3080,_0x305887){_0x1c3080=_0x1c3080-0xc9;var _0x40bf38=_0x582232[_0x1c3080];return _0x40bf38;},_0x1c30(_0x110c47,_0x46d34f);}var HeatMaterial=_0x2c543d(0x100);if(!h337__namespace[_0x2c543d(0xf6)])throw new Error('请引入\x20heatmap.js\x20库\x20');var Cesium=mars3d__namespace[_0x2c543d(0xed)],BaseLayer=mars3d__namespace['layer']['BaseLayer'],DEF_HEATSTYLE={'maxOpacity':0.8,'minOpacity':0.1,'blur':0.85,'radius':0x19,'gradient':{0.4:_0x2c543d(0x101),0.6:_0x2c543d(0xcf),0.8:'yellow',0.9:'red'}},DEF_STYLE={'arcRadiusScale':1.5,'arcBlurScale':1.5,'vertexFormat':Cesium[_0x2c543d(0xe3)][_0x2c543d(0x137)]},HeatLayer=function(_0xd938f4){var _0x12a9c5={_0x12f5ab:0xe9,_0x5ac2ef:0xd9,_0x5a83d9:0x10d,_0x220f58:0xea,_0x1b432d:0xef},_0x5aa738={_0x1b8a74:0x106,_0x130fc4:0xcb,_0x609c91:0x12b},_0x2f15ac={_0x3c4b53:0x118,_0x5195f7:0xe5},_0x2c9a1f={_0x275de5:0xe0,_0x218f57:0xde,_0x36b85d:0xf8,_0x3feb35:0xf8,_0x59e1b4:0x117,_0x3c2f12:0xe6,_0x2afabb:0xff,_0xb3e12:0xfb,_0x3e6ad5:0x138,_0x1ceea5:0x12a,_0x11c92b:0x121},_0x31c545={_0xbc14f4:0x104},_0x11b1f4={_0x3f5946:0x110},_0x10e14e={_0x170f86:0x127,_0xf1b16:0x11b},_0x5e586e={_0x24c462:0x10e,_0xa489e0:0x11f,_0x55c707:0x12d,_0x4910b4:0xd2,_0x4fbc47:0x134,_0x26737b:0x135,_0x44aab7:0xfe,_0x362a12:0xe3},_0x398200={_0x317902:0xd5},_0x5a58f8={_0x2c9cc6:0x103,_0x392440:0x11e,_0x52d1d0:0x139},_0x1a4241={_0x2a8f40:0x131},_0x1cfda0={_0xe37fa2:0x138,_0x44c767:0x138},_0x3f93d7={_0x4ff93a:0x130,_0x92f2a2:0x103,_0x292a55:0xde},_0x409621={_0x33876c:0xd8,_0xf9d4a5:0x103},_0x1b7b51={_0x51f88c:0xd3},_0x4704b4={_0x292173:0x112},_0x78b48c={_0x21f1b8:0x119},_0x360719={_0x3e3d8e:0xdc},_0xb9755f={_0x25bdbb:0xde,_0x22009b:0xe9},_0x53a93d={_0x4d5409:0xf9,_0x1679ec:0xde},_0x38f2d4={_0x128482:0x103},_0xfcde12={_0x5683bf:0xeb,_0x242fc7:0xeb,_0x1dc38d:0xe9},_0xf36871=_0x2c543d;_inherits(_0xd0dcef,_0xd938f4);var _0x5eda8d=_createSuper(_0xd0dcef);function _0xd0dcef(){var _0x3d8fb5=_0x1c30,_0xe0352e,_0x3b1851,_0x3dfb04,_0x5c566c=arguments['length']>0x0&&arguments[0x0]!==undefined?arguments[0x0]:{};return _classCallCheck(this,_0xd0dcef),_0x3dfb04=_0x5eda8d[_0x3d8fb5(0xce)](this,_0x5c566c),_0x3dfb04['options']['maxCanvasSize']=(_0xe0352e=_0x3dfb04[_0x3d8fb5(0xde)]['maxCanvasSize'])!==null&&_0xe0352e!==void 0x0?_0xe0352e:document[_0x3d8fb5(_0xfcde12._0x5683bf)]['clientWidth'],_0x3dfb04['options']['maxCanvasSize']=Math[_0x3d8fb5(0x128)](_0x3dfb04[_0x3d8fb5(0xde)]['maxCanvasSize'],0x1388),_0x3dfb04['options']['minCanvasSize']=(_0x3b1851=_0x3dfb04['options']['minCanvasSize'])!==null&&_0x3b1851!==void 0x0?_0x3b1851:document[_0x3d8fb5(_0xfcde12._0x242fc7)]['clientHeight'],_0x3dfb04[_0x3d8fb5(0xde)][_0x3d8fb5(0xf8)]=Math['max'](_0x3dfb04['options']['minCanvasSize'],0x2bc),_0x3dfb04['options']['heatStyle']=_objectSpread2(_objectSpread2({},DEF_HEATSTYLE),_0x3dfb04['options']['heatStyle']||{}),_0x3dfb04['options']['style']=_objectSpread2(_objectSpread2({},DEF_STYLE),_0x3dfb04[_0x3d8fb5(0xde)][_0x3d8fb5(_0xfcde12._0x1dc38d)]||{}),_0x3dfb04;}return _createClass(_0xd0dcef,[{'key':'layer','get':function _0x52d9c2(){var _0x37ef83=_0x1c30;return this[_0x37ef83(_0x38f2d4._0x128482)];}},{'key':'heatStyle','get':function _0x458612(){return this['options']['heatStyle'];},'set':function _0x45f2ae(_0x2f3c47){var _0x49a0c=_0x1c30;this['options']['heatStyle']=mars3d__namespace['Util'][_0x49a0c(_0x53a93d._0x4d5409)](this[_0x49a0c(_0x53a93d._0x1679ec)]['heatStyle'],_0x2f3c47),this['_heat']&&(this['_heat']['configure'](this['options']['heatStyle']),this['_updatePositionsHook'](!![]));}},{'key':_0xf36871(_0x12a9c5._0x12f5ab),'get':function _0x508795(){return this['options']['style'];},'set':function _0x2e0df3(_0x251baf){var _0xd7b997=_0xf36871;this[_0xd7b997(_0xb9755f._0x25bdbb)][_0xd7b997(0xe9)]=mars3d__namespace[_0xd7b997(0x12e)]['merge'](this['options'][_0xd7b997(_0xb9755f._0x22009b)],_0x251baf);}},{'key':'positions','get':function _0x277b6b(){var _0x18ffa1=_0xf36871;return this[_0x18ffa1(_0x360719._0x3e3d8e)];},'set':function _0x5f47c0(_0x5952c2){var _0x47a24f=_0xf36871;this[_0x47a24f(_0x78b48c._0x21f1b8)](_0x5952c2);}},{'key':_0xf36871(0xfd),'get':function _0x57d056(){var _0x3132b4=_0xf36871,_0x3dc039=[];return this[_0x3132b4(_0x4704b4._0x292173)]['forEach'](function(_0x23fa4a){_0x3dc039['push'](_0x23fa4a['toArray']());}),_0x3dc039;}},{'key':'rectangle','get':function _0x4b20ab(){return this['_rectangle'];}},{'key':_0xf36871(_0x12a9c5._0x5ac2ef),'value':function _0x41ce89(_0x51d8ba,_0x301e22){var _0x498f98=_0xf36871;_0x51d8ba[_0x498f98(0xd3)]&&(this['positions']=_0x51d8ba[_0x498f98(_0x1b7b51._0x51f88c)]);}},{'key':_0xf36871(_0x12a9c5._0x5a83d9),'value':function _0x1ffdf5(){var _0x4e167e=_0xf36871;this['style'][_0x4e167e(_0x409621._0x33876c)]==='image'?this['_layer']=new mars3d__namespace['layer']['ImageLayer']({'crs':'EPSG:3857','private':!![]}):this[_0x4e167e(_0x409621._0xf9d4a5)]=new mars3d__namespace['layer']['GraphicLayer']({'private':!![]});}},{'key':_0xf36871(0x116),'value':function _0x2101c1(){var _0x556f3e=_0xf36871;this[_0x556f3e(0x12c)][_0x556f3e(_0x3f93d7._0x4ff93a)](this[_0x556f3e(_0x3f93d7._0x92f2a2)]),this[_0x556f3e(_0x3f93d7._0x292a55)]['positions']&&(this['positions']=this[_0x556f3e(0xde)][_0x556f3e(0xd3)]),this['options']['flyTo']&&this['flyToByAnimationEnd']();}},{'key':'_removedHook','value':function _0x4f4b30(){var _0x49a05d=_0xf36871;this[_0x49a05d(_0x1cfda0._0xe37fa2)]['container']&&(mars3d__namespace['DomUtil']['remove'](this['heatStyle'][_0x49a05d(0xfb)]),delete this[_0x49a05d(_0x1cfda0._0x44c767)][_0x49a05d(0xfb)]),this['clear'](),this['_map']['removeLayer'](this['_layer']);}},{'key':'addPosition','value':function _0x514121(_0x4fb5d6,_0x996970){var _0x5b25e2=_0xf36871;this['_positions']=this['_positions']||[],this['_positions'][_0x5b25e2(0x11a)](_0x4fb5d6),this[_0x5b25e2(0xe4)](_0x996970);}},{'key':'setPositions','value':function _0xe7fbf8(_0x35987e,_0x37de85){this['_positions']=_0x35987e,this['_updatePositionsHook'](_0x37de85);}},{'key':'clear','value':function _0x12e08d(){var _0x481545=_0xf36871;this['_graphic']&&(this['_layer']['removeGraphic'](this['_graphic'],!![]),delete this['_graphic']),this[_0x481545(_0x1a4241._0x2a8f40)]&&(this[_0x481545(0x103)]['removeGraphic'](this[_0x481545(0x131)],!![]),delete this['_graphic2']);}},{'key':'_updatePositionsHook','value':function _0x516345(_0x3f26af){var _0x4c36d0=_0xf36871;if(!this['show']||!this['_map']||!this['positions']||this['positions']['length']===0x0)return this;var _0x5ce52a=this[_0x4c36d0(0xea)]();if(this['style']['type']==='image')this[_0x4c36d0(_0x5a58f8._0x2c9cc6)][_0x4c36d0(0x11c)]({'url':_0x5ce52a['toDataURL']('image/png'),'rectangle':this['_rectangle'],'opacity':this['style']['opacity']});else this['style'][_0x4c36d0(_0x5a58f8._0x392440)]?this['_graphic']&&_0x3f26af?(this['_graphic']['uniforms'][_0x4c36d0(0xfc)]=_0x5ce52a,this['_graphic']['uniforms']['bumpMap']=this['_getArcHeatCanvas'](),this['_graphic2']&&(this['_graphic2']['uniforms']['image']=_0x5ce52a,this['_graphic2']['uniforms'][_0x4c36d0(_0x5a58f8._0x52d1d0)]=this['_graphic']['uniforms'][_0x4c36d0(0x139)])):this[_0x4c36d0(0xf2)](_0x5ce52a):this[_0x4c36d0(0xd7)]&&_0x3f26af?this['_graphic']['uniforms'][_0x4c36d0(0xfc)]=_0x5ce52a:this['_createGraphic'](_0x5ce52a);return this;}},{'key':_0xf36871(0x111),'value':function _0x55e013(_0x40404d){var _0x9e0719=_0xf36871;this[_0x9e0719(0x132)](),this['_graphic']=new mars3d__namespace['graphic'][(_0x9e0719(_0x398200._0x317902))](_objectSpread2(_objectSpread2({},this[_0x9e0719(0xde)]),{},{'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'material':new Cesium['Material']({'fabric':{'uniforms':{'image':_0x40404d},'source':HeatMaterial},'translucent':!![]}),'flat':!![]})})),this['_layer']['addGraphic'](this[_0x9e0719(0xd7)]);}},{'key':'_createArcGraphic','value':function _0x3b9066(_0xdcf4c8){var _0x5a81c8=_0xf36871,_0x42ebda;this['clear']();var _0x3e652e=Cesium['RenderState']['fromCache']({'cull':{'enabled':!![]},'depthTest':{'enabled':!![]},'stencilTest':{'enabled':!![],'frontFunction':Cesium[_0x5a81c8(_0x5e586e._0x24c462)][_0x5a81c8(0xd1)],'frontOperation':{'fail':Cesium['StencilOperation'][_0x5a81c8(0x11f)],'zFail':Cesium['StencilOperation']['KEEP'],'zPass':Cesium['StencilOperation']['REPLACE']},'backFunction':Cesium['StencilFunction']['ALWAYS'],'backOperation':{'fail':Cesium['StencilOperation'][_0x5a81c8(_0x5e586e._0xa489e0)],'zFail':Cesium[_0x5a81c8(0x113)]['KEEP'],'zPass':Cesium['StencilOperation'][_0x5a81c8(_0x5e586e._0x55c707)]},'reference':0x2,'mask':0x2},'blending':Cesium['BlendingState'][_0x5a81c8(_0x5e586e._0x4910b4)]}),_0x2c98d7=Math['floor']((_0x42ebda=this['style']['diffHeight'])!==null&&_0x42ebda!==void 0x0?_0x42ebda:this['_mBoundsMax']*0.02)+0.1;this['style'][_0x5a81c8(0x133)]&&delete this['style']['diffHeight'];var _0xa285e8=(this['style'][_0x5a81c8(0xc9)],0x64),_0x1f0d76=Math[_0x5a81c8(0x104)](this['_rectangle']['height'],this['_rectangle']['width']);this['style'][_0x5a81c8(0x136)]=_0x1f0d76/=_0xa285e8;var _0xf173e4=new Cesium['Material']({'fabric':{'uniforms':{'image':_0xdcf4c8,'repeat':new Cesium['Cartesian2'](0x1,0x1),'color':new Cesium['Color'](0x1,0x1,0x1,0x0),'bumpMap':this['_getArcHeatCanvas']()},'source':HeatMaterial},'translucent':!![]}),_0x17c332=this['style'][_0x5a81c8(_0x5e586e._0x4fbc47)]||0x1;this[_0x5a81c8(0xd7)]=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this[_0x5a81c8(_0x5e586e._0x26737b)],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x3e652e,'material':_0xf173e4,'vertexShaderSource':getVertexShaderSource(_0x2c98d7*_0x17c332)})})),this['_layer'][_0x5a81c8(_0x5e586e._0x44aab7)](this['_graphic']),this['style']['arcDirection']===0x0&&(this['_graphic2']=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this[_0x5a81c8(0xde)]),{},{'rectangle':this['_rectangle'],'appearance':new Cesium[(_0x5a81c8(_0x5e586e._0x362a12))]({'flat':!![],'aboveGround':!![],'renderState':_0x3e652e,'material':_0xf173e4,'vertexShaderSource':getVertexShaderSource(-_0x2c98d7)})})),this['_layer'][_0x5a81c8(0xfe)](this[_0x5a81c8(0x131)]));}},{'key':'getRectangle','value':function _0x18a196(_0x1444e3){var _0x242185=_0xf36871;return _0x1444e3!==null&&_0x1444e3!==void 0x0&&_0x1444e3[_0x242185(_0x10e14e._0x170f86)]&&this[_0x242185(0x135)]?mars3d__namespace[_0x242185(_0x10e14e._0xf1b16)][_0x242185(0x12f)](this[_0x242185(0x135)]):this['_rectangle'];}},{'key':_0xf36871(_0x12a9c5._0x220f58),'value':function _0x83755(){var _0x394a29=_0xf36871,_0x586d37=this,_0x3da607,_0x4746b6,_0x3e6a12,_0x3b16d3,_0x403843=this['_positions'],_0x244be3=[],_0x5d0276,_0x4c1766,_0x39886e,_0x521e32;_0x403843[_0x394a29(_0x2c9a1f._0x275de5)](function(_0xbcbd92){var _0x3f2bf7=_0x394a29,_0x4689a2=mars3d__namespace[_0x3f2bf7(0x124)]['parse'](_0xbcbd92);if(!_0x4689a2)return;_0x4689a2[_0x3f2bf7(0xe1)]=_0xbcbd92['value']||0x1,!_0x586d37['options']['rectangle']&&(_0x5d0276===undefined?(_0x5d0276=_0x4689a2['lng'],_0x4c1766=_0x4689a2['lng'],_0x39886e=_0x4689a2['lat'],_0x521e32=_0x4689a2['lat']):(_0x5d0276=Math['min'](_0x5d0276,_0x4689a2['lng']),_0x4c1766=Math[_0x3f2bf7(0x104)](_0x4c1766,_0x4689a2[_0x3f2bf7(_0x11b1f4._0x3f5946)]),_0x39886e=Math[_0x3f2bf7(0x128)](_0x39886e,_0x4689a2[_0x3f2bf7(0xec)]),_0x521e32=Math['max'](_0x521e32,_0x4689a2['lat']))),_0x244be3['push'](_0x4689a2);});var _0xaa8c5a=this['options']['rectangle']||{'xmin':_0x5d0276,'xmax':_0x4c1766,'ymin':_0x39886e,'ymax':_0x521e32},_0x282cd5=getMercatorBounds(_0xaa8c5a),_0x2d4067=Math['abs'](_0x282cd5['xmax']-_0x282cd5['xmin']),_0x5edeaa=Math['abs'](_0x282cd5[_0x394a29(0x117)]-_0x282cd5['ymin']),_0x55b5a5=Math['max'](_0x2d4067,_0x5edeaa),_0x5d07b5=Math[_0x394a29(0x128)](_0x2d4067,_0x5edeaa);this['_mBoundsMax']=_0x55b5a5;var _0x337b70=0x1;if(_0x55b5a5>this[_0x394a29(0xde)]['maxCanvasSize'])_0x337b70=_0x55b5a5/this['options'][_0x394a29(0xda)],_0x5d07b5/_0x337b70<this[_0x394a29(_0x2c9a1f._0x218f57)][_0x394a29(_0x2c9a1f._0x36b85d)]&&(_0x337b70=_0x5d07b5/this['options'][_0x394a29(0xf8)]);else _0x5d07b5<this['options'][_0x394a29(_0x2c9a1f._0x3feb35)]&&(_0x337b70=_0x5d07b5/this['options'][_0x394a29(_0x2c9a1f._0x36b85d)],_0x55b5a5/_0x337b70>this['options']['maxCanvasSize']&&(_0x337b70=_0x55b5a5/this[_0x394a29(0xde)]['maxCanvasSize']));var _0x346d64=this[_0x394a29(0x138)][_0x394a29(0xfa)]*1.5,_0x354ed9=_0x2d4067/_0x337b70+_0x346d64*0x2,_0x32e5fd=_0x5edeaa/_0x337b70+_0x346d64*0x2,_0x4524ff=_0x346d64*_0x337b70;_0x282cd5['xmin']-=_0x4524ff,_0x282cd5['ymin']-=_0x4524ff,_0x282cd5['xmax']+=_0x4524ff,_0x282cd5[_0x394a29(_0x2c9a1f._0x59e1b4)]+=_0x4524ff,this['_scale']=_0x337b70,_0xaa8c5a=geLatLngBounds(_0x282cd5),this['_rectangle']=Cesium['Rectangle']['fromDegrees'](_0xaa8c5a['xmin'],_0xaa8c5a['ymin'],_0xaa8c5a['xmax'],_0xaa8c5a[_0x394a29(0x117)]);var _0x1c1500=(_0x3da607=_0x244be3[0x0][_0x394a29(0xe1)])!==null&&_0x3da607!==void 0x0?_0x3da607:0x1,_0x3423e5=(_0x4746b6=_0x244be3[0x0]['value'])!==null&&_0x4746b6!==void 0x0?_0x4746b6:0x0,_0x3a9171=[];_0x244be3[_0x394a29(0xe0)](function(_0x458dc1){var _0x4ec46e=_0x394a29,_0x5a582f=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x458dc1['lng'],_0x458dc1['lat']]),_0x73b698=_0x458dc1['value']||0x1,_0x487cb7=Math['round']((_0x5a582f[0x0]-_0x282cd5['xmin'])/_0x337b70),_0x25fcf2=Math['round']((_0x282cd5['ymax']-_0x5a582f[0x1])/_0x337b70);_0x1c1500=Math[_0x4ec46e(_0x31c545._0xbc14f4)](_0x1c1500,_0x73b698),_0x3423e5=Math['min'](_0x3423e5,_0x73b698),_0x3a9171['push']({'x':_0x487cb7,'y':_0x25fcf2,'value':_0x73b698});});var _0x333b43={'min':(_0x3e6a12=this['options']['min'])!==null&&_0x3e6a12!==void 0x0?_0x3e6a12:_0x3423e5,'max':(_0x3b16d3=this['options']['max'])!==null&&_0x3b16d3!==void 0x0?_0x3b16d3:_0x1c1500,'data':_0x3a9171};this['_last_heatData']=_0x333b43;(!this['_last_mBounds']||_0x282cd5['xmin']!==this[_0x394a29(_0x2c9a1f._0x3c2f12)][_0x394a29(_0x2c9a1f._0x2afabb)]||_0x282cd5['ymin']!==this[_0x394a29(_0x2c9a1f._0x3c2f12)]['ymin']||_0x282cd5['xmax']!==this['_last_mBounds']['xmax']||_0x282cd5['ymax']!==this['_last_mBounds']['ymax'])&&(this['_last_mBounds']=_0x282cd5,!this['heatStyle'][_0x394a29(_0x2c9a1f._0xb3e12)]&&(this['heatStyle']['container']=mars3d__namespace['DomUtil']['create']('div','mars3d-heatmap\x20mars3d-hideDiv',this['_map']['container'])),this['heatStyle'][_0x394a29(0xfb)]['style']['cssText']='width:'['concat'](_0x354ed9,'px;height:')['concat'](_0x32e5fd,_0x394a29(0xf3)),!this['_heat']?this['_heat']=h337__namespace['create'](this[_0x394a29(_0x2c9a1f._0x3e6ad5)]):this['_heat']['configure'](this['heatStyle']));this['_heat']['setData'](_0x333b43);var _0x18c472=mars3d__namespace[_0x394a29(_0x2c9a1f._0x1ceea5)]['copyCanvas'](this['_heat'][_0x394a29(_0x2c9a1f._0x11c92b)][_0x394a29(0x11d)]);return _0x18c472;}},{'key':_0xf36871(0xf4),'value':function _0x25fc47(){var _0x4e2ffb=_0xf36871;this['_heat'][_0x4e2ffb(0xf5)]({'radius':this['heatStyle']['radius']*this['style'][_0x4e2ffb(0x108)],'blur':this['heatStyle']['blur']*this['style']['arcBlurScale'],'gradient':this['heatStyle']['gradientArc']||{0.25:_0x4e2ffb(0x129),0.55:'rgb(140,140,140)',0.85:'rgb(216,216,216)',0x1:_0x4e2ffb(_0x2f15ac._0x3c4b53)}});var _0x27047e=mars3d__namespace[_0x4e2ffb(0x12a)]['copyCanvas'](this[_0x4e2ffb(_0x2f15ac._0x5195f7)]['_renderer']['canvas']);return this['_heat'][_0x4e2ffb(0xf5)](this['options']['heatStyle']),_0x27047e;}},{'key':_0xf36871(_0x12a9c5._0x1b432d),'value':function _0x122097(_0x9ad835){var _0x5a8ac7=_0xf36871,_0x437636=mars3d__namespace['LngLatPoint'][_0x5a8ac7(0xcc)](_0x9ad835);if(!_0x437636)return{};var _0x312fcc=mars3d__namespace[_0x5a8ac7(_0x5aa738._0x1b8a74)]['lonlat2mercator']([_0x437636['lng'],_0x437636['lat']]),_0x173851=this['_last_mBounds'],_0x28654e=Math['round']((_0x312fcc[0x0]-_0x173851['xmin'])/this[_0x5a8ac7(_0x5aa738._0x130fc4)]),_0x5cf3cd=Math['round']((_0x173851[_0x5a8ac7(0x117)]-_0x312fcc[0x1])/this[_0x5a8ac7(0xcb)]),_0x501c14=this[_0x5a8ac7(0xe5)][_0x5a8ac7(_0x5aa738._0x609c91)]({'x':_0x28654e,'y':_0x5cf3cd}),_0x50a376=this['_heat']['_renderer']['ctx']['getImageData'](_0x28654e-0x1,_0x5cf3cd-0x1,0x1,0x1)[_0x5a8ac7(0x107)];return{'x':_0x28654e,'y':_0x5cf3cd,'value':_0x501c14,'color':'rgba('+_0x50a376[0x0]+','+_0x50a376[0x1]+','+_0x50a376[0x2]+','+_0x50a376[0x3]+')'};}}]),_0xd0dcef;}(BaseLayer);mars3d__namespace['layer'][_0x2c543d(0xee)]=HeatLayer,mars3d__namespace['LayerUtil']['register']('heat',HeatLayer);function getMercatorBounds(_0x2a0e75){var _0x4103b0={_0x12a3a1:0xcd},_0x5868dd=_0x2c543d,_0x422c4e=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x2a0e75['xmin'],_0x2a0e75['ymin']]),_0x4d0499=mars3d__namespace[_0x5868dd(0x106)]['lonlat2mercator']([_0x2a0e75[_0x5868dd(_0x4103b0._0x12a3a1)],_0x2a0e75['ymax']]);return{'xmin':_0x422c4e[0x0],'ymin':_0x422c4e[0x1],'xmax':_0x4d0499[0x0],'ymax':_0x4d0499[0x1]};}function geLatLngBounds(_0x5b8607){var _0x72ba76={_0x4676d8:0xcd},_0x16c20b=_0x2c543d,_0xe7137d=mars3d__namespace['PointTrans']['mercator2lonlat']([_0x5b8607['xmin'],_0x5b8607['ymin']]),_0x195989=mars3d__namespace['PointTrans'][_0x16c20b(0xca)]([_0x5b8607[_0x16c20b(_0x72ba76._0x4676d8)],_0x5b8607['ymax']]);return{'xmin':_0xe7137d[0x0],'ymin':_0xe7137d[0x1],'xmax':_0x195989[0x0],'ymax':_0x195989[0x1]};}function getVertexShaderSource(_0x4afd93){var _0x4501eb={_0x58f8d:0x102},_0xa5bbe9=_0x2c543d;return'attribute\x20vec3\x20position3DHigh;\x0a\x20\x20attribute\x20vec3\x20position3DLow;\x0a\x20\x20attribute\x20vec2\x20st;\x0a\x20\x20attribute\x20float\x20batchId;\x0a\x20\x20uniform\x20sampler2D\x20bumpMap_3;\x0a\x20\x20varying\x20vec3\x20v_positionMC;\x0a\x20\x20varying\x20vec3\x20v_positionEC;\x0a\x20\x20varying\x20vec2\x20v_st;\x0a\x0a\x20\x20void\x20main()\x0a\x20\x20{\x0a\x20\x20\x20\x20vec4\x20p\x20=\x20czm_computePosition();\x0a\x20\x20\x20\x20v_positionMC\x20=\x20position3DHigh\x20+\x20position3DLow;\x0a\x20\x20\x20\x20v_positionEC\x20=\x20(czm_modelViewRelativeToEye\x20*\x20p).xyz;\x0a\x20\x20\x20\x20v_st\x20=\x20st;\x0a\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(bumpMap_3,\x20v_st);\x0a\x20\x20\x20\x20float\x20centerBump\x20=\x20distance(vec3(0.0),color.rgb);\x0a\x20\x20\x20\x20vec3\x20upDir\x20=\x20normalize(v_positionMC.xyz);\x0a\x20\x20\x20\x20vec3\x20disPos\x20=\x20upDir\x20*\x20centerBump\x20*\x20'['concat'](_0x4afd93,_0xa5bbe9(_0x4501eb._0x58f8d));}exports['HeatLayer']=HeatLayer,Object['defineProperty'](exports,'__esModule',{'value':!![]});function _0x5822(){var _0x6160d4=['green','1687553mrlcYk','ALWAYS','ALPHA_BLEND','positions','34OWuAXJ','RectanglePrimitive','getOwnPropertyDescriptor','_graphic','type','_setOptionsHook','maxCanvasSize','setPrototypeOf','_positions','Derived\x20constructors\x20may\x20only\x20return\x20object\x20or\x20undefined','options','function','forEach','value','118524BZWNob','EllipsoidSurfaceAppearance','_updatePositionsHook','_heat','_last_mBounds','9410yNPVoc','4611PMdKLX','style','_getHeatCanvas','body','lat','Cesium','HeatLayer','getPointData','1503qSJGXC','defineProperty','_createArcGraphic','px;','_getArcHeatCanvas','configure','create','length','minCanvasSize','merge','radius','container','image','coordinates','addGraphic','xmin','uniform\x20sampler2D\x20image;\x0a\x0aczm_material\x20czm_getMaterial(czm_materialInput\x20materialInput)\x20{\x0a\x20\x20czm_material\x20material\x20=\x20czm_getDefaultMaterial(materialInput);\x0a\x20\x20vec2\x20st\x20=\x20materialInput.st;\x0a\x20\x20vec4\x20colorImage\x20=\x20texture2D(image,\x20st);\x0a\x20\x20if(colorImage.rgb\x20==\x20vec3(1.0)\x20||\x20colorImage.rgb\x20==\x20vec3(0.0))\x20{\x0a\x20\x20\x20\x20discard;\x0a\x20\x20}\x0a\x20\x20material.diffuse\x20=\x20colorImage.rgb;\x0a\x20\x20material.alpha\x20=\x20colorImage.a;\x0a\x20\x20return\x20material;\x0a}\x0a','blue',';\x0a\x20\x20\x20\x20p\x20+=vec4(disPos,0.0);\x0a\x20\x20\x20\x20gl_Position\x20=\x20czm_modelViewProjectionRelativeToEye\x20*\x20p;\x0a\x20\x20}\x0a','_layer','max','825915HCFZTg','PointTrans','data','arcRadiusScale','3421kKKvfm','enumerable','getPrototypeOf','299fbymft','_mountedHook','StencilFunction','6NBopNi','lng','_createGraphic','points','StencilOperation','get','428KfWLCd','_addedHook','ymax','rgb(255,255,255)','setPositions','push','PolyUtil','setOptions','canvas','arc','KEEP','15674nIxpmH','_renderer','776KuBNhv','prototype','LngLatPoint','writable','keys','isFormat','min','rgb(0,0,0)','DomUtil','getValueAt','_map','REPLACE','Util','formatRectangle','addLayer','_graphic2','clear','diffHeight','arcDirection','_rectangle','granularity','VERTEX_FORMAT','heatStyle','bumpMap','splitNum','mercator2lonlat','_scale','parse','xmax','call'];_0x5822=function(){return _0x6160d4;};return _0x5822();}
'use strict';var _0x464f5b=_0x1243;(function(_0x457b2b,_0x43664b){var _0x7b66ca={_0x781142:0x1d3,_0x5e4fe5:0x17e,_0x3ebfbb:0x1a8,_0x571b2a:0x186,_0x446de4:0x1b6},_0x12670d=_0x1243,_0x55dfd4=_0x457b2b();while(!![]){try{var _0x2fc122=parseInt(_0x12670d(0x1b9))/0x1*(parseInt(_0x12670d(_0x7b66ca._0x781142))/0x2)+parseInt(_0x12670d(0x1a9))/0x3+-parseInt(_0x12670d(_0x7b66ca._0x5e4fe5))/0x4*(-parseInt(_0x12670d(0x1d4))/0x5)+-parseInt(_0x12670d(_0x7b66ca._0x3ebfbb))/0x6+-parseInt(_0x12670d(0x1b2))/0x7*(parseInt(_0x12670d(0x1ab))/0x8)+-parseInt(_0x12670d(0x1d1))/0x9*(-parseInt(_0x12670d(_0x7b66ca._0x571b2a))/0xa)+-parseInt(_0x12670d(_0x7b66ca._0x446de4))/0xb*(parseInt(_0x12670d(0x18f))/0xc);if(_0x2fc122===_0x43664b)break;else _0x55dfd4['push'](_0x55dfd4['shift']());}catch(_0x172b00){_0x55dfd4['push'](_0x55dfd4['shift']());}}}(_0x5523,0x4fa85));function _interopNamespace(_0x236765){var _0x485b53={_0x5e19d7:0x1c7};if(_0x236765&&_0x236765['__esModule'])return _0x236765;var _0x32b6ab=Object['create'](null);return _0x236765&&Object['keys'](_0x236765)['forEach'](function(_0x49611d){var _0x349e74=_0x1243;if(_0x49611d!=='default'){var _0x24da79=Object[_0x349e74(_0x485b53._0x5e19d7)](_0x236765,_0x49611d);Object['defineProperty'](_0x32b6ab,_0x49611d,_0x24da79['get']?_0x24da79:{'enumerable':!![],'get':function(){return _0x236765[_0x49611d];}});}}),_0x32b6ab['default']=_0x236765,_0x32b6ab;}var mars3d__namespace=_interopNamespace(mars3d),h337__namespace=_interopNamespace(h337);function ownKeys(_0x22a46f,_0xd4547f){var _0xce2c05={_0x13c66c:0x17b,_0x39a39b:0x187},_0xef202=_0x1243,_0x499c76=Object['keys'](_0x22a46f);if(Object['getOwnPropertySymbols']){var _0x3fcb26=Object[_0xef202(_0xce2c05._0x13c66c)](_0x22a46f);_0xd4547f&&(_0x3fcb26=_0x3fcb26[_0xef202(_0xce2c05._0x39a39b)](function(_0x49c25f){return Object['getOwnPropertyDescriptor'](_0x22a46f,_0x49c25f)['enumerable'];})),_0x499c76[_0xef202(0x19e)]['apply'](_0x499c76,_0x3fcb26);}return _0x499c76;}function _objectSpread2(_0x3d6121){var _0x5b4a0={_0x4b3680:0x1c7},_0x4f9413=_0x1243;for(var _0x1d95bf=0x1;_0x1d95bf<arguments['length'];_0x1d95bf++){var _0x1ad575=null!=arguments[_0x1d95bf]?arguments[_0x1d95bf]:{};_0x1d95bf%0x2?ownKeys(Object(_0x1ad575),!0x0)[_0x4f9413(0x1bb)](function(_0x124586){_defineProperty(_0x3d6121,_0x124586,_0x1ad575[_0x124586]);}):Object['getOwnPropertyDescriptors']?Object['defineProperties'](_0x3d6121,Object['getOwnPropertyDescriptors'](_0x1ad575)):ownKeys(Object(_0x1ad575))['forEach'](function(_0x2d2ab8){var _0x545dc9=_0x4f9413;Object[_0x545dc9(0x1bd)](_0x3d6121,_0x2d2ab8,Object[_0x545dc9(_0x5b4a0._0x4b3680)](_0x1ad575,_0x2d2ab8));});}return _0x3d6121;}function _classCallCheck(_0x3ad98b,_0x5c1af0){if(!(_0x3ad98b instanceof _0x5c1af0))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}function _defineProperties(_0x21b454,_0x4110eb){for(var _0x511667=0x0;_0x511667<_0x4110eb['length'];_0x511667++){var _0x11e3c3=_0x4110eb[_0x511667];_0x11e3c3['enumerable']=_0x11e3c3['enumerable']||![],_0x11e3c3['configurable']=!![];if('value'in _0x11e3c3)_0x11e3c3['writable']=!![];Object['defineProperty'](_0x21b454,_0x11e3c3['key'],_0x11e3c3);}}function _createClass(_0x1f3900,_0x419dd2,_0x47d1bd){if(_0x419dd2)_defineProperties(_0x1f3900['prototype'],_0x419dd2);if(_0x47d1bd)_defineProperties(_0x1f3900,_0x47d1bd);return Object['defineProperty'](_0x1f3900,'prototype',{'writable':![]}),_0x1f3900;}function _defineProperty(_0x189220,_0x97f0e1,_0x13dcc9){return _0x97f0e1 in _0x189220?Object['defineProperty'](_0x189220,_0x97f0e1,{'value':_0x13dcc9,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x189220[_0x97f0e1]=_0x13dcc9,_0x189220;}function _inherits(_0x2e503d,_0x50df1f){var _0x2a4c54=_0x1243;if(typeof _0x50df1f!==_0x2a4c54(0x1ad)&&_0x50df1f!==null)throw new TypeError('Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function');_0x2e503d['prototype']=Object['create'](_0x50df1f&&_0x50df1f['prototype'],{'constructor':{'value':_0x2e503d,'writable':!![],'configurable':!![]}}),Object['defineProperty'](_0x2e503d,'prototype',{'writable':![]});if(_0x50df1f)_setPrototypeOf(_0x2e503d,_0x50df1f);}function _getPrototypeOf(_0x240ab7){var _0x494a96=_0x1243;return _getPrototypeOf=Object['setPrototypeOf']?Object['getPrototypeOf'][_0x494a96(0x199)]():function _0x344824(_0x4a405a){var _0x39f506=_0x494a96;return _0x4a405a['__proto__']||Object[_0x39f506(0x185)](_0x4a405a);},_getPrototypeOf(_0x240ab7);}function _setPrototypeOf(_0x118448,_0x4074a7){var _0x3c825c={_0x5bca06:0x1a6};return _setPrototypeOf=Object['setPrototypeOf']?Object['setPrototypeOf']['bind']():function _0x10f8b9(_0x5896f7,_0x79a0dd){var _0x322076=_0x1243;return _0x5896f7[_0x322076(_0x3c825c._0x5bca06)]=_0x79a0dd,_0x5896f7;},_setPrototypeOf(_0x118448,_0x4074a7);}function _isNativeReflectConstruct(){var _0x87fa6d={_0x43494b:0x190,_0x2113a5:0x1ad,_0x263568:0x17f,_0x1b6f36:0x183,_0x282e49:0x1b8},_0x14799a=_0x1243;if(typeof Reflect===_0x14799a(_0x87fa6d._0x43494b)||!Reflect['construct'])return![];if(Reflect['construct']['sham'])return![];if(typeof Proxy===_0x14799a(_0x87fa6d._0x2113a5))return!![];try{return Boolean['prototype'][_0x14799a(_0x87fa6d._0x263568)][_0x14799a(_0x87fa6d._0x1b6f36)](Reflect[_0x14799a(_0x87fa6d._0x282e49)](Boolean,[],function(){})),!![];}catch(_0x26d918){return![];}}function _assertThisInitialized(_0x5ed102){if(_0x5ed102===void 0x0)throw new ReferenceError('this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called');return _0x5ed102;}function _possibleConstructorReturn(_0x1c4780,_0x13d4ed){var _0x14637d={_0x49fa76:0x19c},_0x4abe4f=_0x1243;if(_0x13d4ed&&(typeof _0x13d4ed===_0x4abe4f(_0x14637d._0x49fa76)||typeof _0x13d4ed===_0x4abe4f(0x1ad)))return _0x13d4ed;else{if(_0x13d4ed!==void 0x0)throw new TypeError('Derived\x20constructors\x20may\x20only\x20return\x20object\x20or\x20undefined');}return _assertThisInitialized(_0x1c4780);}function _createSuper(_0x1bcffe){var _0x2e8a15=_isNativeReflectConstruct();return function _0x47c24b(){var _0x65b55a=_0x1243,_0x46584b=_getPrototypeOf(_0x1bcffe),_0x219e4a;if(_0x2e8a15){var _0x3b1bff=_getPrototypeOf(this)[_0x65b55a(0x1cd)];_0x219e4a=Reflect['construct'](_0x46584b,arguments,_0x3b1bff);}else _0x219e4a=_0x46584b['apply'](this,arguments);return _possibleConstructorReturn(this,_0x219e4a);};}var HeatMaterial='uniform\x20sampler2D\x20image;\x0a\x0aczm_material\x20czm_getMaterial(czm_materialInput\x20materialInput)\x20{\x0a\x20\x20czm_material\x20material\x20=\x20czm_getDefaultMaterial(materialInput);\x0a\x20\x20vec2\x20st\x20=\x20materialInput.st;\x0a\x20\x20vec4\x20colorImage\x20=\x20texture2D(image,\x20st);\x0a\x20\x20if(colorImage.rgb\x20==\x20vec3(1.0)\x20||\x20colorImage.rgb\x20==\x20vec3(0.0))\x20{\x0a\x20\x20\x20\x20discard;\x0a\x20\x20}\x0a\x20\x20material.diffuse\x20=\x20colorImage.rgb;\x0a\x20\x20material.alpha\x20=\x20colorImage.a;\x0a\x20\x20return\x20material;\x0a}\x0a';if(!h337__namespace[_0x464f5b(0x1ca)])throw new Error('请引入\x20heatmap.js\x20库\x20');var Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x464f5b(0x1a7)][_0x464f5b(0x1b3)],DEF_HEATSTYLE={'maxOpacity':0.8,'minOpacity':0.1,'blur':0.85,'radius':0x19,'gradient':{0.4:'blue',0.6:'green',0.8:'yellow',0.9:'red'}},DEF_STYLE={'arcRadiusScale':1.5,'arcBlurScale':1.5,'vertexFormat':Cesium['EllipsoidSurfaceAppearance']['VERTEX_FORMAT']},HeatLayer=function(_0x43ece3){var _0x4d95be={_0x2d5b5:0x198,_0x7f0824:0x1af},_0x345800={_0x1c879c:0x1d7,_0x5a92ab:0x1d5},_0x4a155f={_0x4977c6:0x1a2,_0x4cd394:0x1bc,_0x517dcc:0x197,_0x241e97:0x1a4,_0x1ea9bb:0x191,_0x39e3e4:0x1c0,_0xb83add:0x1c1,_0x24e7ef:0x1b1,_0x4b7080:0x196,_0x1927c1:0x196,_0x236d2c:0x188},_0x2dba9f={_0x260c60:0x189,_0x4a42a5:0x1a0,_0x274fc1:0x1a0,_0xfe31d0:0x19e},_0x376eef={_0x565307:0x18b,_0x15751b:0x182,_0x3f2d68:0x19b,_0x335484:0x182,_0x54660c:0x18d,_0x1f08f3:0x1c2,_0x114bf1:0x1b7,_0x510d2e:0x1b7,_0x2345c8:0x197},_0x5a17da={_0x49fcb6:0x1c5},_0x5f4e4d={_0x41a906:0x181,_0x206dff:0x1a3,_0x42e5fc:0x1cf},_0x34dfdd={_0x34d541:0x1c5,_0x3abaee:0x195,_0x5165a8:0x1ae},_0xb4b18f={_0x493f61:0x1b4,_0x32e2f1:0x18b,_0x34e64c:0x1ce},_0x1938ec={_0x1474c6:0x18a,_0x5327b6:0x17c},_0x57827a={_0x4da923:0x1c5},_0x35f4f2={_0x35665a:0x1cc},_0x529ee1={_0x51d260:0x19e},_0x22eafe={_0x26c287:0x1c9},_0xae36d3={_0x34f162:0x197},_0x4c88f1={_0x1bd80d:0x197,_0x54b226:0x197},_0x46a89d=_0x464f5b;_inherits(_0x5102eb,_0x43ece3);var _0x47f673=_createSuper(_0x5102eb);function _0x5102eb(){var _0x177f63=_0x1243,_0x37d512,_0x5bd295,_0x33fcf4,_0x3028ba=arguments['length']>0x0&&arguments[0x0]!==undefined?arguments[0x0]:{};return _classCallCheck(this,_0x5102eb),_0x33fcf4=_0x47f673['call'](this,_0x3028ba),_0x33fcf4['options']['maxCanvasSize']=(_0x37d512=_0x33fcf4['options'][_0x177f63(0x1a4)])!==null&&_0x37d512!==void 0x0?_0x37d512:document['body'][_0x177f63(0x1cb)],_0x33fcf4['options'][_0x177f63(0x1a4)]=Math['min'](_0x33fcf4['options']['maxCanvasSize'],0x1388),_0x33fcf4['options'][_0x177f63(0x1d0)]=(_0x5bd295=_0x33fcf4['options']['minCanvasSize'])!==null&&_0x5bd295!==void 0x0?_0x5bd295:document['body']['clientHeight'],_0x33fcf4[_0x177f63(0x197)]['minCanvasSize']=Math['max'](_0x33fcf4['options'][_0x177f63(0x1d0)],0x2bc),_0x33fcf4[_0x177f63(_0x4c88f1._0x1bd80d)]['heatStyle']=_objectSpread2(_objectSpread2({},DEF_HEATSTYLE),_0x33fcf4['options']['heatStyle']||{}),_0x33fcf4['options']['style']=_objectSpread2(_objectSpread2({},DEF_STYLE),_0x33fcf4[_0x177f63(_0x4c88f1._0x54b226)]['style']||{}),_0x33fcf4;}return _createClass(_0x5102eb,[{'key':'layer','get':function _0x4ecc18(){var _0x1b51ff=_0x1243;return this[_0x1b51ff(0x1c5)];}},{'key':'heatStyle','get':function _0x448daf(){return this['options']['heatStyle'];},'set':function _0x8adad8(_0xe8cf04){var _0xfe9e3d=_0x1243;this[_0xfe9e3d(0x197)]['heatStyle']=mars3d__namespace['Util'][_0xfe9e3d(0x1c9)](this[_0xfe9e3d(0x197)]['heatStyle'],_0xe8cf04),this['_heat']&&(this['_heat'][_0xfe9e3d(0x188)](this[_0xfe9e3d(_0xae36d3._0x34f162)]['heatStyle']),this['_updatePositionsHook'](!![]));}},{'key':'style','get':function _0x45396c(){return this['options']['style'];},'set':function _0x1515ec(_0x14dab1){var _0x373eb2=_0x1243;this['options']['style']=mars3d__namespace[_0x373eb2(0x1ac)][_0x373eb2(_0x22eafe._0x26c287)](this['options']['style'],_0x14dab1);}},{'key':'positions','get':function _0xb36a15(){return this['_positions'];},'set':function _0x4b4400(_0x48808b){this['setPositions'](_0x48808b);}},{'key':'coordinates','get':function _0xc4e56a(){var _0xbdc243=_0x1243,_0x4e50fd=[];return this[_0xbdc243(_0x35f4f2._0x35665a)]['forEach'](function(_0x30c2df){var _0x432041=_0xbdc243;_0x4e50fd[_0x432041(_0x529ee1._0x51d260)](_0x30c2df['toArray']());}),_0x4e50fd;}},{'key':'rectangle','get':function _0x205795(){return this['_rectangle'];}},{'key':_0x46a89d(0x19f),'value':function _0x5c8bd4(_0x5875aa,_0x54be39){_0x5875aa['positions']&&(this['positions']=_0x5875aa['positions']);}},{'key':'_mountedHook','value':function _0xc084d1(){var _0x13a647=_0x46a89d;this['style']['type']==='image'?this['_layer']=new mars3d__namespace['layer']['ImageLayer']({'crs':'EPSG:3857','private':!![]}):this[_0x13a647(_0x57827a._0x4da923)]=new mars3d__namespace['layer']['GraphicLayer']({'private':!![]});}},{'key':_0x46a89d(_0x4d95be._0x2d5b5),'value':function _0x14ae14(){var _0x1d0f94=_0x46a89d;this[_0x1d0f94(_0x1938ec._0x1474c6)]['addLayer'](this['_layer']),this['options'][_0x1d0f94(0x17c)]&&(this[_0x1d0f94(_0x1938ec._0x5327b6)]=this['options'][_0x1d0f94(0x17c)]),this['options']['flyTo']&&this['flyToByAnimationEnd']();}},{'key':'_removedHook','value':function _0xa052aa(){var _0x218f7b=_0x46a89d;this['heatStyle']['container']&&(mars3d__namespace[_0x218f7b(_0xb4b18f._0x493f61)]['remove'](this[_0x218f7b(0x1c1)]['container']),delete this['heatStyle']['container']),this[_0x218f7b(_0xb4b18f._0x32e2f1)](),this['_map'][_0x218f7b(_0xb4b18f._0x34e64c)](this['_layer']);}},{'key':'addPosition','value':function _0x36204c(_0x2a89a6,_0x2d5d59){var _0x3a0068=_0x46a89d;this['_positions']=this[_0x3a0068(0x1bf)]||[],this[_0x3a0068(0x1bf)]['push'](_0x2a89a6),this['_updatePositionsHook'](_0x2d5d59);}},{'key':'setPositions','value':function _0x163077(_0x292916,_0x82fafc){this['_positions']=_0x292916,this['_updatePositionsHook'](_0x82fafc);}},{'key':_0x46a89d(0x18b),'value':function _0x2d8f0b(){var _0x58e870=_0x46a89d;this['_graphic']&&(this['_layer']['removeGraphic'](this['_graphic'],!![]),delete this['_graphic']),this['_graphic2']&&(this[_0x58e870(_0x34dfdd._0x34d541)][_0x58e870(_0x34dfdd._0x3abaee)](this['_graphic2'],!![]),delete this[_0x58e870(_0x34dfdd._0x5165a8)]);}},{'key':'_updatePositionsHook','value':function _0x3bc486(_0x345e3e){var _0x4f96ce=_0x46a89d;if(!this['show']||!this['_map']||!this['positions']||this[_0x4f96ce(0x17c)][_0x4f96ce(0x1be)]===0x0)return this;var _0x14988e=this[_0x4f96ce(0x1af)]();if(this['style']['type']==='image')this['_layer']['setOptions']({'url':_0x14988e['toDataURL']('image/png'),'rectangle':this['_rectangle'],'opacity':this['style']['opacity']});else this[_0x4f96ce(0x1b7)]['arc']?this[_0x4f96ce(_0x5f4e4d._0x41a906)]&&_0x345e3e?(this['_graphic'][_0x4f96ce(0x19d)]['image']=_0x14988e,this['_graphic']['uniforms']['bumpMap']=this['_getArcHeatCanvas'](),this['_graphic2']&&(this['_graphic2']['uniforms'][_0x4f96ce(_0x5f4e4d._0x206dff)]=_0x14988e,this['_graphic2']['uniforms']['bumpMap']=this['_graphic']['uniforms']['bumpMap'])):this['_createArcGraphic'](_0x14988e):this['_graphic']&&_0x345e3e?this['_graphic']['uniforms'][_0x4f96ce(0x1a3)]=_0x14988e:this[_0x4f96ce(_0x5f4e4d._0x42e5fc)](_0x14988e);return this;}},{'key':'_createGraphic','value':function _0x16f525(_0x4810b7){var _0x452896=_0x46a89d;this['clear'](),this['_graphic']=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this[_0x452896(0x1a5)],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'material':new Cesium['Material']({'fabric':{'uniforms':{'image':_0x4810b7},'source':HeatMaterial},'translucent':!![]}),'flat':!![]})})),this[_0x452896(_0x5a17da._0x49fcb6)][_0x452896(0x1d6)](this['_graphic']);}},{'key':'_createArcGraphic','value':function _0xfc7a(_0x5a8d63){var _0x54234c=_0x46a89d,_0xf57208;this[_0x54234c(_0x376eef._0x565307)]();var _0xb3f14b=Cesium['RenderState']['fromCache']({'cull':{'enabled':!![]},'depthTest':{'enabled':!![]},'stencilTest':{'enabled':!![],'frontFunction':Cesium['StencilFunction']['ALWAYS'],'frontOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium['StencilOperation']['KEEP'],'zPass':Cesium[_0x54234c(_0x376eef._0x15751b)]['REPLACE']},'backFunction':Cesium[_0x54234c(_0x376eef._0x3f2d68)]['ALWAYS'],'backOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium[_0x54234c(_0x376eef._0x15751b)]['KEEP'],'zPass':Cesium[_0x54234c(_0x376eef._0x335484)]['REPLACE']},'reference':0x2,'mask':0x2},'blending':Cesium[_0x54234c(_0x376eef._0x54660c)]['ALPHA_BLEND']}),_0x376922=Math[_0x54234c(0x1a1)]((_0xf57208=this['style']['diffHeight'])!==null&&_0xf57208!==void 0x0?_0xf57208:this['_mBoundsMax']*0.02)+0.1;this['style']['diffHeight']&&delete this['style'][_0x54234c(_0x376eef._0x1f08f3)];var _0x27d219=(this[_0x54234c(_0x376eef._0x114bf1)]['splitNum'],0x64),_0x565261=Math['max'](this['_rectangle'][_0x54234c(0x192)],this[_0x54234c(0x1a5)]['width']);this[_0x54234c(_0x376eef._0x510d2e)]['granularity']=_0x565261/=_0x27d219;var _0x1a899e=new Cesium[(_0x54234c(0x1ba))]({'fabric':{'uniforms':{'image':_0x5a8d63,'repeat':new Cesium['Cartesian2'](0x1,0x1),'color':new Cesium['Color'](0x1,0x1,0x1,0x0),'bumpMap':this['_getArcHeatCanvas']()},'source':HeatMaterial},'translucent':!![]}),_0x345523=this['style']['arcDirection']||0x1;this['_graphic']=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this[_0x54234c(0x1a5)],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0xb3f14b,'material':_0x1a899e,'vertexShaderSource':getVertexShaderSource(_0x376922*_0x345523)})})),this['_layer'][_0x54234c(0x1d6)](this['_graphic']),this[_0x54234c(0x1b7)]['arcDirection']===0x0&&(this[_0x54234c(0x1ae)]=new mars3d__namespace[(_0x54234c(0x180))]['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this[_0x54234c(_0x376eef._0x2345c8)]),{},{'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0xb3f14b,'material':_0x1a899e,'vertexShaderSource':getVertexShaderSource(-_0x376922)})})),this['_layer'][_0x54234c(0x1d6)](this['_graphic2']));}},{'key':'getRectangle','value':function _0x11561e(_0x4f4f3f){return _0x4f4f3f!==null&&_0x4f4f3f!==void 0x0&&_0x4f4f3f['isFormat']&&this['_rectangle']?mars3d__namespace['PolyUtil']['formatRectangle'](this['_rectangle']):this['_rectangle'];}},{'key':_0x46a89d(_0x4d95be._0x7f0824),'value':function _0x391e99(){var _0x3083f4={_0x50597d:0x1b5,_0x29c664:0x1bc,_0x2f7db6:0x1c4},_0x5bb0ee=_0x46a89d,_0xfe26e7=this,_0x548ebc,_0x2bb955,_0x1c3905,_0x2968bf,_0x43f4b6=this['_positions'],_0x59ae13=[],_0x3b8b96,_0x385b68,_0x3f22e8,_0x1ea97a;_0x43f4b6['forEach'](function(_0x2c8e61){var _0x37b7b3=_0x1243,_0x45866d=mars3d__namespace['LngLatPoint']['parse'](_0x2c8e61);if(!_0x45866d)return;_0x45866d['value']=_0x2c8e61['value']||0x1,!_0xfe26e7['options']['rectangle']&&(_0x3b8b96===undefined?(_0x3b8b96=_0x45866d['lng'],_0x385b68=_0x45866d['lng'],_0x3f22e8=_0x45866d['lat'],_0x1ea97a=_0x45866d[_0x37b7b3(_0x2dba9f._0x260c60)]):(_0x3b8b96=Math['min'](_0x3b8b96,_0x45866d[_0x37b7b3(_0x2dba9f._0x4a42a5)]),_0x385b68=Math[_0x37b7b3(0x1c4)](_0x385b68,_0x45866d[_0x37b7b3(_0x2dba9f._0x274fc1)]),_0x3f22e8=Math['min'](_0x3f22e8,_0x45866d[_0x37b7b3(0x189)]),_0x1ea97a=Math['max'](_0x1ea97a,_0x45866d[_0x37b7b3(0x189)]))),_0x59ae13[_0x37b7b3(_0x2dba9f._0xfe31d0)](_0x45866d);});var _0x813114=this[_0x5bb0ee(0x197)]['rectangle']||{'xmin':_0x3b8b96,'xmax':_0x385b68,'ymin':_0x3f22e8,'ymax':_0x1ea97a},_0x2528e5=getMercatorBounds(_0x813114),_0x2f2347=Math[_0x5bb0ee(_0x4a155f._0x4977c6)](_0x2528e5['xmax']-_0x2528e5[_0x5bb0ee(_0x4a155f._0x4cd394)]),_0x309767=Math['abs'](_0x2528e5['ymax']-_0x2528e5['ymin']),_0x286831=Math['max'](_0x2f2347,_0x309767),_0x1294d4=Math['min'](_0x2f2347,_0x309767);this['_mBoundsMax']=_0x286831;var _0x26e433=0x1;if(_0x286831>this['options']['maxCanvasSize'])_0x26e433=_0x286831/this['options']['maxCanvasSize'],_0x1294d4/_0x26e433<this['options']['minCanvasSize']&&(_0x26e433=_0x1294d4/this['options']['minCanvasSize']);else _0x1294d4<this['options']['minCanvasSize']&&(_0x26e433=_0x1294d4/this['options']['minCanvasSize'],_0x286831/_0x26e433>this['options']['maxCanvasSize']&&(_0x26e433=_0x286831/this[_0x5bb0ee(_0x4a155f._0x517dcc)][_0x5bb0ee(_0x4a155f._0x241e97)]));var _0x2286a6=this['heatStyle'][_0x5bb0ee(0x17d)]*1.5,_0x6035e8=_0x2f2347/_0x26e433+_0x2286a6*0x2,_0x258162=_0x309767/_0x26e433+_0x2286a6*0x2,_0x371e49=_0x2286a6*_0x26e433;_0x2528e5['xmin']-=_0x371e49,_0x2528e5['ymin']-=_0x371e49,_0x2528e5['xmax']+=_0x371e49,_0x2528e5['ymax']+=_0x371e49,this['_scale']=_0x26e433,_0x813114=geLatLngBounds(_0x2528e5),this['_rectangle']=Cesium['Rectangle'][_0x5bb0ee(_0x4a155f._0x1ea9bb)](_0x813114['xmin'],_0x813114['ymin'],_0x813114['xmax'],_0x813114['ymax']);var _0x1f7158=(_0x548ebc=_0x59ae13[0x0]['value'])!==null&&_0x548ebc!==void 0x0?_0x548ebc:0x1,_0x1ce534=(_0x2bb955=_0x59ae13[0x0][_0x5bb0ee(0x18e)])!==null&&_0x2bb955!==void 0x0?_0x2bb955:0x0,_0x50ea7b=[];_0x59ae13['forEach'](function(_0x214d3f){var _0x511523=_0x5bb0ee,_0x31f18c=mars3d__namespace['PointTrans'][_0x511523(_0x3083f4._0x50597d)]([_0x214d3f['lng'],_0x214d3f['lat']]),_0x2760f4=_0x214d3f['value']||0x1,_0xb70a7f=Math['round']((_0x31f18c[0x0]-_0x2528e5[_0x511523(_0x3083f4._0x29c664)])/_0x26e433),_0x109b12=Math[_0x511523(0x1d7)]((_0x2528e5['ymax']-_0x31f18c[0x1])/_0x26e433);_0x1f7158=Math[_0x511523(_0x3083f4._0x2f7db6)](_0x1f7158,_0x2760f4),_0x1ce534=Math['min'](_0x1ce534,_0x2760f4),_0x50ea7b['push']({'x':_0xb70a7f,'y':_0x109b12,'value':_0x2760f4});});var _0x5ea094={'min':(_0x1c3905=this['options']['min'])!==null&&_0x1c3905!==void 0x0?_0x1c3905:_0x1ce534,'max':(_0x2968bf=this[_0x5bb0ee(_0x4a155f._0x517dcc)]['max'])!==null&&_0x2968bf!==void 0x0?_0x2968bf:_0x1f7158,'data':_0x50ea7b};this['_last_heatData']=_0x5ea094;(!this['_last_mBounds']||_0x2528e5['xmin']!==this['_last_mBounds']['xmin']||_0x2528e5[_0x5bb0ee(0x194)]!==this['_last_mBounds']['ymin']||_0x2528e5[_0x5bb0ee(_0x4a155f._0x39e3e4)]!==this['_last_mBounds']['xmax']||_0x2528e5['ymax']!==this['_last_mBounds'][_0x5bb0ee(0x1b0)])&&(this['_last_mBounds']=_0x2528e5,!this['heatStyle']['container']&&(this['heatStyle'][_0x5bb0ee(0x18c)]=mars3d__namespace['DomUtil']['create']('div','mars3d-heatmap\x20mars3d-hideDiv',this[_0x5bb0ee(0x18a)][_0x5bb0ee(0x18c)])),this[_0x5bb0ee(_0x4a155f._0xb83add)]['container']['style'][_0x5bb0ee(_0x4a155f._0x24e7ef)]='width:'['concat'](_0x6035e8,'px;height:')['concat'](_0x258162,'px;'),!this['_heat']?this[_0x5bb0ee(_0x4a155f._0x4b7080)]=h337__namespace['create'](this['heatStyle']):this[_0x5bb0ee(_0x4a155f._0x1927c1)][_0x5bb0ee(_0x4a155f._0x236d2c)](this[_0x5bb0ee(0x1c1)]));this['_heat']['setData'](_0x5ea094);var _0x5eafbb=mars3d__namespace['DomUtil'][_0x5bb0ee(0x1c6)](this[_0x5bb0ee(0x196)][_0x5bb0ee(0x1d2)]['canvas']);return _0x5eafbb;}},{'key':_0x46a89d(0x184),'value':function _0x389c16(){var _0x1bd4f2=_0x46a89d;this[_0x1bd4f2(0x196)][_0x1bd4f2(0x188)]({'radius':this[_0x1bd4f2(0x1c1)]['radius']*this['style']['arcRadiusScale'],'blur':this['heatStyle']['blur']*this['style']['arcBlurScale'],'gradient':this['heatStyle']['gradientArc']||{0.25:'rgb(0,0,0)',0.55:'rgb(140,140,140)',0.85:'rgb(216,216,216)',0x1:'rgb(255,255,255)'}});var _0x10aff1=mars3d__namespace['DomUtil']['copyCanvas'](this['_heat']['_renderer']['canvas']);return this['_heat']['configure'](this[_0x1bd4f2(0x197)]['heatStyle']),_0x10aff1;}},{'key':'getPointData','value':function _0x313a0a(_0x5143f){var _0x3106b9=_0x46a89d,_0x49974b=mars3d__namespace['LngLatPoint'][_0x3106b9(0x1aa)](_0x5143f);if(!_0x49974b)return{};var _0x3b35f9=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x49974b['lng'],_0x49974b['lat']]),_0x19c8b5=this['_last_mBounds'],_0x484143=Math['round']((_0x3b35f9[0x0]-_0x19c8b5['xmin'])/this['_scale']),_0x258ff3=Math[_0x3106b9(_0x345800._0x1c879c)]((_0x19c8b5[_0x3106b9(0x1b0)]-_0x3b35f9[0x1])/this['_scale']),_0xb1b99=this[_0x3106b9(0x196)][_0x3106b9(_0x345800._0x5a92ab)]({'x':_0x484143,'y':_0x258ff3}),_0x1f8c1f=this['_heat']['_renderer']['ctx']['getImageData'](_0x484143-0x1,_0x258ff3-0x1,0x1,0x1)['data'];return{'x':_0x484143,'y':_0x258ff3,'value':_0xb1b99,'color':'rgba('+_0x1f8c1f[0x0]+','+_0x1f8c1f[0x1]+','+_0x1f8c1f[0x2]+','+_0x1f8c1f[0x3]+')'};}}]),_0x5102eb;}(BaseLayer);mars3d__namespace['layer']['HeatLayer']=HeatLayer,mars3d__namespace['LayerUtil']['register']('heat',HeatLayer);function getMercatorBounds(_0x391c83){var _0x27c26a=_0x464f5b,_0x2e23f8=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x391c83[_0x27c26a(0x1bc)],_0x391c83['ymin']]),_0x1b25dc=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x391c83['xmax'],_0x391c83[_0x27c26a(0x1b0)]]);return{'xmin':_0x2e23f8[0x0],'ymin':_0x2e23f8[0x1],'xmax':_0x1b25dc[0x0],'ymax':_0x1b25dc[0x1]};}function _0x1243(_0x246dfe,_0xaff008){var _0x552323=_0x5523();return _0x1243=function(_0x1243de,_0x2255da){_0x1243de=_0x1243de-0x17b;var _0x32f1db=_0x552323[_0x1243de];return _0x32f1db;},_0x1243(_0x246dfe,_0xaff008);}function _0x5523(){var _0x1b34da=['fromDegrees','height','attribute\x20vec3\x20position3DHigh;\x0a\x20\x20attribute\x20vec3\x20position3DLow;\x0a\x20\x20attribute\x20vec2\x20st;\x0a\x20\x20attribute\x20float\x20batchId;\x0a\x20\x20uniform\x20sampler2D\x20bumpMap_3;\x0a\x20\x20varying\x20vec3\x20v_positionMC;\x0a\x20\x20varying\x20vec3\x20v_positionEC;\x0a\x20\x20varying\x20vec2\x20v_st;\x0a\x0a\x20\x20void\x20main()\x0a\x20\x20{\x0a\x20\x20\x20\x20vec4\x20p\x20=\x20czm_computePosition();\x0a\x20\x20\x20\x20v_positionMC\x20=\x20position3DHigh\x20+\x20position3DLow;\x0a\x20\x20\x20\x20v_positionEC\x20=\x20(czm_modelViewRelativeToEye\x20*\x20p).xyz;\x0a\x20\x20\x20\x20v_st\x20=\x20st;\x0a\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(bumpMap_3,\x20v_st);\x0a\x20\x20\x20\x20float\x20centerBump\x20=\x20distance(vec3(0.0),color.rgb);\x0a\x20\x20\x20\x20vec3\x20upDir\x20=\x20normalize(v_positionMC.xyz);\x0a\x20\x20\x20\x20vec3\x20disPos\x20=\x20upDir\x20*\x20centerBump\x20*\x20','ymin','removeGraphic','_heat','options','_addedHook','bind','__esModule','StencilFunction','object','uniforms','push','_setOptionsHook','lng','floor','abs','image','maxCanvasSize','_rectangle','__proto__','layer','80970nGzvLv','905877xXfhKP','parse','3993656FzJKSy','Util','function','_graphic2','_getHeatCanvas','ymax','cssText','7beNfKV','BaseLayer','DomUtil','lonlat2mercator','1180289qkcvwe','style','construct','197QFFdWM','Material','forEach','xmin','defineProperty','length','_positions','xmax','heatStyle','diffHeight','PointTrans','max','_layer','copyCanvas','getOwnPropertyDescriptor','mercator2lonlat','merge','create','clientWidth','points','constructor','removeLayer','_createGraphic','minCanvasSize','27edAObd','_renderer','638QNNSnd','645kpZUhR','getValueAt','addGraphic','round','getOwnPropertySymbols','positions','radius','19828MArfDB','valueOf','graphic','_graphic','StencilOperation','call','_getArcHeatCanvas','getPrototypeOf','522070PRGQDv','filter','configure','lat','_map','clear','container','BlendingState','value','36OVghpL','undefined'];_0x5523=function(){return _0x1b34da;};return _0x5523();}function geLatLngBounds(_0x4c765e){var _0x547e99={_0x5e3f99:0x1c3,_0x3ef002:0x1bc},_0x5f04e5=_0x464f5b,_0x3070a8=mars3d__namespace[_0x5f04e5(_0x547e99._0x5e3f99)]['mercator2lonlat']([_0x4c765e[_0x5f04e5(_0x547e99._0x3ef002)],_0x4c765e['ymin']]),_0x7ab7b4=mars3d__namespace[_0x5f04e5(0x1c3)][_0x5f04e5(0x1c8)]([_0x4c765e['xmax'],_0x4c765e['ymax']]);return{'xmin':_0x3070a8[0x0],'ymin':_0x3070a8[0x1],'xmax':_0x7ab7b4[0x0],'ymax':_0x7ab7b4[0x1]};}function getVertexShaderSource(_0x57f062){var _0x4d3f3f={_0x148f76:0x193},_0x345bd1=_0x464f5b;return _0x345bd1(_0x4d3f3f._0x148f76)['concat'](_0x57f062,';\x0a\x20\x20\x20\x20p\x20+=vec4(disPos,0.0);\x0a\x20\x20\x20\x20gl_Position\x20=\x20czm_modelViewProjectionRelativeToEye\x20*\x20p;\x0a\x20\x20}\x0a');}exports['HeatLayer']=HeatLayer,Object['defineProperty'](exports,_0x464f5b(0x19a),{'value':!![]});
}));
{
"name": "mars3d-heatmap",
"version": "3.4.20",
"version": "3.4.21",
"description": "Mars3D平台插件,结合heatmap可视化功能插件",

@@ -13,3 +13,3 @@ "main": "dist/mars3d-heatmap.js",

"devDependencies": {
"mars3d": "~3.4.20"
"mars3d": "~3.4.21"
},

@@ -16,0 +16,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc