mars3d-heatmap
Advanced tools
Comparing version 3.4.19 to 3.4.20
/** | ||
* Mars3D平台插件,结合heatmap可视化功能插件 mars3d-heatmap | ||
* | ||
* 版本信息:v3.4.19 | ||
* 编译日期:2022-12-26 19:59:27 | ||
* 版本信息:v3.4.20 | ||
* 编译日期:2023-01-09 21:00:18 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2022-06-01 | ||
})(this, (function (exports, mars3d, h337) { | ||
'use strict';var _0x4a220e=_0x154b;(function(_0x3088a8,_0x2db4c5){var _0x1367a9={_0x1cc233:0x206,_0x12c9f2:0x21f,_0x189498:0x240,_0x5f58f2:0x20f},_0x1928cd=_0x154b,_0x2fcf2e=_0x3088a8();while(!![]){try{var _0x2381f8=-parseInt(_0x1928cd(0x1f3))/0x1*(-parseInt(_0x1928cd(_0x1367a9._0x1cc233))/0x2)+parseInt(_0x1928cd(_0x1367a9._0x12c9f2))/0x3+-parseInt(_0x1928cd(0x204))/0x4+-parseInt(_0x1928cd(0x1fd))/0x5+-parseInt(_0x1928cd(0x21a))/0x6*(-parseInt(_0x1928cd(0x242))/0x7)+parseInt(_0x1928cd(_0x1367a9._0x189498))/0x8*(parseInt(_0x1928cd(0x22b))/0x9)+-parseInt(_0x1928cd(_0x1367a9._0x5f58f2))/0xa;if(_0x2381f8===_0x2db4c5)break;else _0x2fcf2e['push'](_0x2fcf2e['shift']());}catch(_0x110f08){_0x2fcf2e['push'](_0x2fcf2e['shift']());}}}(_0x31e1,0xb1408));function _interopNamespace(_0x42e6d8){var _0x7c513a={_0x29458b:0x1ff},_0x2ba1b7=_0x154b;if(_0x42e6d8&&_0x42e6d8['__esModule'])return _0x42e6d8;var _0x395a8e=Object['create'](null);return _0x42e6d8&&Object['keys'](_0x42e6d8)[_0x2ba1b7(0x1f9)](function(_0x37c258){var _0x4b9e8f=_0x2ba1b7;if(_0x37c258!==_0x4b9e8f(0x230)){var _0x263ec1=Object['getOwnPropertyDescriptor'](_0x42e6d8,_0x37c258);Object[_0x4b9e8f(_0x7c513a._0x29458b)](_0x395a8e,_0x37c258,_0x263ec1['get']?_0x263ec1:{'enumerable':!![],'get':function(){return _0x42e6d8[_0x37c258];}});}}),_0x395a8e['default']=_0x42e6d8,_0x395a8e;}var mars3d__namespace=_interopNamespace(mars3d),h337__namespace=_interopNamespace(h337);function ownKeys(_0xaf6fe6,_0x4dec51){var _0xfae862={_0x1280b3:0x228},_0x35ba96=_0x154b,_0x3d3b6c=Object['keys'](_0xaf6fe6);if(Object[_0x35ba96(_0xfae862._0x1280b3)]){var _0x3be0a7=Object[_0x35ba96(_0xfae862._0x1280b3)](_0xaf6fe6);_0x4dec51&&(_0x3be0a7=_0x3be0a7['filter'](function(_0x4dfd64){return Object['getOwnPropertyDescriptor'](_0xaf6fe6,_0x4dfd64)['enumerable'];})),_0x3d3b6c[_0x35ba96(0x1f2)]['apply'](_0x3d3b6c,_0x3be0a7);}return _0x3d3b6c;}function _objectSpread2(_0x282e65){var _0x1d6310={_0x3477b9:0x244,_0x3d3d63:0x203},_0xe828f9={_0x18bbd6:0x241},_0x578a75=_0x154b;for(var _0x1e0cc3=0x1;_0x1e0cc3<arguments['length'];_0x1e0cc3++){var _0x6d7724=null!=arguments[_0x1e0cc3]?arguments[_0x1e0cc3]:{};_0x1e0cc3%0x2?ownKeys(Object(_0x6d7724),!0x0)['forEach'](function(_0x4e3209){_defineProperty(_0x282e65,_0x4e3209,_0x6d7724[_0x4e3209]);}):Object[_0x578a75(_0x1d6310._0x3477b9)]?Object[_0x578a75(_0x1d6310._0x3d3d63)](_0x282e65,Object[_0x578a75(_0x1d6310._0x3477b9)](_0x6d7724)):ownKeys(Object(_0x6d7724))[_0x578a75(0x1f9)](function(_0x3fa1ef){var _0x43c323=_0x578a75;Object['defineProperty'](_0x282e65,_0x3fa1ef,Object[_0x43c323(_0xe828f9._0x18bbd6)](_0x6d7724,_0x3fa1ef));});}return _0x282e65;}function _classCallCheck(_0x5ee8c7,_0x307b3f){if(!(_0x5ee8c7 instanceof _0x307b3f))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}function _defineProperties(_0xb57855,_0x2c7ba5){var _0x325d8f={_0x4fc3b1:0x1f6},_0x186370=_0x154b;for(var _0x43bdc4=0x0;_0x43bdc4<_0x2c7ba5[_0x186370(_0x325d8f._0x4fc3b1)];_0x43bdc4++){var _0x83d0ef=_0x2c7ba5[_0x43bdc4];_0x83d0ef['enumerable']=_0x83d0ef['enumerable']||![],_0x83d0ef[_0x186370(0x21d)]=!![];if('value'in _0x83d0ef)_0x83d0ef[_0x186370(0x212)]=!![];Object['defineProperty'](_0xb57855,_0x83d0ef['key'],_0x83d0ef);}}function _0x31e1(){var _0x5d1ce2=['ymin','push','622559gagJgz','ctx','xmax','length','_map','configure','forEach','image','_graphic','merge','6388760ZEMdbQ','xmin','defineProperty','container','EllipsoidSurfaceAppearance','style','defineProperties','611508ChSPTD','ImageLayer','2IhXUWq','PointTrans','isFormat','StencilOperation','bumpMap','BaseLayer','addPosition','lonlat2mercator','_last_mBounds','18014360Ecxfiu','create','width','writable','Util','arcBlurScale','RectanglePrimitive','toDataURL','minCanvasSize','_layer','height','1750362toRhrK','type','round','configurable','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','3232422AoYJeQ','VERTEX_FORMAT','clear','parse','_getArcHeatCanvas','addGraphic','radius','options','_renderer','getOwnPropertySymbols','_mBoundsMax','positions','45IrvGkc','Cartesian2','lat','_graphic2','uniforms','default','copyCanvas','layer','floor','_positions','lng','mercator2lonlat','fromDegrees','_rectangle','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called','min','graphic','DomUtil','_heat','prototype','setPositions','2212600GsuEtU','getOwnPropertyDescriptor','21zGaCqt','ymax','getOwnPropertyDescriptors','LngLatPoint','heatStyle','value'];_0x31e1=function(){return _0x5d1ce2;};return _0x31e1();}function _createClass(_0x40f274,_0x3df7ce,_0x3c31d4){var _0x38af3c=_0x154b;if(_0x3df7ce)_defineProperties(_0x40f274['prototype'],_0x3df7ce);if(_0x3c31d4)_defineProperties(_0x40f274,_0x3c31d4);return Object[_0x38af3c(0x1ff)](_0x40f274,'prototype',{'writable':![]}),_0x40f274;}function _defineProperty(_0x3594fb,_0x5aba30,_0x3ecc03){return _0x5aba30 in _0x3594fb?Object['defineProperty'](_0x3594fb,_0x5aba30,{'value':_0x3ecc03,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x3594fb[_0x5aba30]=_0x3ecc03,_0x3594fb;}function _inherits(_0x42b8d0,_0x302d1e){if(typeof _0x302d1e!=='function'&&_0x302d1e!==null)throw new TypeError('Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function');_0x42b8d0['prototype']=Object['create'](_0x302d1e&&_0x302d1e['prototype'],{'constructor':{'value':_0x42b8d0,'writable':!![],'configurable':!![]}}),Object['defineProperty'](_0x42b8d0,'prototype',{'writable':![]});if(_0x302d1e)_setPrototypeOf(_0x42b8d0,_0x302d1e);}function _getPrototypeOf(_0xc59687){return _getPrototypeOf=Object['setPrototypeOf']?Object['getPrototypeOf']['bind']():function _0x436181(_0x4146e3){return _0x4146e3['__proto__']||Object['getPrototypeOf'](_0x4146e3);},_getPrototypeOf(_0xc59687);}function _setPrototypeOf(_0x3abb8d,_0x30616c){return _setPrototypeOf=Object['setPrototypeOf']?Object['setPrototypeOf']['bind']():function _0x7109fa(_0x32e9a4,_0x934bce){return _0x32e9a4['__proto__']=_0x934bce,_0x32e9a4;},_setPrototypeOf(_0x3abb8d,_0x30616c);}function _isNativeReflectConstruct(){var _0x3eee0e={_0x122986:0x23e},_0x3d3e99=_0x154b;if(typeof Reflect==='undefined'||!Reflect['construct'])return![];if(Reflect['construct']['sham'])return![];if(typeof Proxy==='function')return!![];try{return Boolean[_0x3d3e99(_0x3eee0e._0x122986)]['valueOf']['call'](Reflect['construct'](Boolean,[],function(){})),!![];}catch(_0x13ae32){return![];}}function _assertThisInitialized(_0x1d3d60){var _0x614c7a=_0x154b;if(_0x1d3d60===void 0x0)throw new ReferenceError(_0x614c7a(0x239));return _0x1d3d60;}function _possibleConstructorReturn(_0x495607,_0x12d9ef){if(_0x12d9ef&&(typeof _0x12d9ef==='object'||typeof _0x12d9ef==='function'))return _0x12d9ef;else{if(_0x12d9ef!==void 0x0)throw new TypeError('Derived\x20constructors\x20may\x20only\x20return\x20object\x20or\x20undefined');}return _assertThisInitialized(_0x495607);}function _createSuper(_0x1055be){var _0x230305=_isNativeReflectConstruct();return function _0x2999e1(){var _0x15224c=_getPrototypeOf(_0x1055be),_0x17ced4;if(_0x230305){var _0x1626ae=_getPrototypeOf(this)['constructor'];_0x17ced4=Reflect['construct'](_0x15224c,arguments,_0x1626ae);}else _0x17ced4=_0x15224c['apply'](this,arguments);return _possibleConstructorReturn(this,_0x17ced4);};}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[_0x4a220e(0x210)])throw new Error('请引入\x20heatmap.js\x20库\x20');var Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x4a220e(0x20b)],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[_0x4a220e(0x201)][_0x4a220e(0x220)]},HeatLayer=function(_0x245f42){var _0x22d0b1={_0x209022:0x20c,_0x32a2e3:0x23f,_0x2c2a8c:0x223},_0x4f4b35={_0x45c535:0x222,_0x14a751:0x21c,_0x281710:0x227},_0x646865={_0x526535:0x1f8,_0x9efdce:0x202,_0x33bddd:0x23c},_0x563f5a={_0x5acbe3:0x1fe,_0x3f4830:0x243,_0x140a6e:0x226,_0x44804b:0x226,_0x116574:0x1fe,_0x254261:0x1f1,_0x32f636:0x243,_0x5b454f:0x23c,_0x2067e6:0x200,_0x3d79c9:0x1ef,_0x2d7327:0x1f8},_0x104738={_0x63d6bd:0x22d},_0x467148={_0x501563:0x221,_0x2211d2:0x209,_0x430b38:0x209,_0x384abf:0x202,_0x549572:0x211,_0x47e81b:0x224,_0x2d7e84:0x218},_0x471104={_0x15b361:0x221,_0x4aad22:0x215},_0x418163={_0x177c73:0x216,_0x4bb574:0x1fb,_0xa9874d:0x20a,_0x4c7e44:0x22e,_0x5d4f77:0x20a},_0x3b3576={_0x4833f9:0x218,_0x5bd728:0x1fb},_0x45c850={_0x10a405:0x234},_0xd87c2e={_0x51375d:0x200,_0x31850b:0x1f7},_0xec17b={_0x4a2b54:0x218,_0x396c00:0x226},_0x21b0a0={_0x5d18b0:0x21b,_0x173697:0x1fa,_0x2b2295:0x205},_0x591ccf={_0x34ca77:0x22a},_0xe4d09d={_0x324c5d:0x1f9},_0x2556d3={_0x341c60:0x213},_0x157a0a={_0x354993:0x202},_0x125e17={_0x20502f:0x226,_0x374c7d:0x23d,_0x19d124:0x1ef},_0x192079={_0x37e9e7:0x1ef},_0x3a7588={_0x454edd:0x218},_0x1c48e9={_0x82ca87:0x226},_0x9548f5=_0x4a220e;_inherits(_0x536288,_0x245f42);var _0x48260e=_createSuper(_0x536288);function _0x536288(){var _0x583953=_0x154b,_0xcb1de2,_0x2dcc9c,_0x5697d6,_0x2aecba=arguments[_0x583953(0x1f6)]>0x0&&arguments[0x0]!==undefined?arguments[0x0]:{};return _classCallCheck(this,_0x536288),_0x5697d6=_0x48260e['call'](this,_0x2aecba),_0x5697d6['options']['maxCanvasSize']=(_0xcb1de2=_0x5697d6['options']['maxCanvasSize'])!==null&&_0xcb1de2!==void 0x0?_0xcb1de2:document['body']['clientWidth'],_0x5697d6['options']['maxCanvasSize']=Math['min'](_0x5697d6[_0x583953(0x226)]['maxCanvasSize'],0x1388),_0x5697d6['options'][_0x583953(0x217)]=(_0x2dcc9c=_0x5697d6[_0x583953(0x226)]['minCanvasSize'])!==null&&_0x2dcc9c!==void 0x0?_0x2dcc9c:document['body']['clientHeight'],_0x5697d6['options']['minCanvasSize']=Math['max'](_0x5697d6[_0x583953(_0x1c48e9._0x82ca87)]['minCanvasSize'],0x2bc),_0x5697d6['options'][_0x583953(0x1ef)]=_objectSpread2(_objectSpread2({},DEF_HEATSTYLE),_0x5697d6['options']['heatStyle']||{}),_0x5697d6['options']['style']=_objectSpread2(_objectSpread2({},DEF_STYLE),_0x5697d6['options']['style']||{}),_0x5697d6;}return _createClass(_0x536288,[{'key':'layer','get':function _0x3d72b9(){var _0x2c9cc2=_0x154b;return this[_0x2c9cc2(_0x3a7588._0x454edd)];}},{'key':_0x9548f5(0x1ef),'get':function _0x2a0fc3(){var _0x2e88bc=_0x9548f5;return this[_0x2e88bc(0x226)][_0x2e88bc(_0x192079._0x37e9e7)];},'set':function _0x446b51(_0x327308){var _0x2ec7a1=_0x9548f5;this[_0x2ec7a1(_0x125e17._0x20502f)]['heatStyle']=mars3d__namespace['Util']['merge'](this['options']['heatStyle'],_0x327308),this[_0x2ec7a1(_0x125e17._0x374c7d)]&&(this['_heat']['configure'](this['options'][_0x2ec7a1(_0x125e17._0x19d124)]),this['_updatePositionsHook'](!![]));}},{'key':'style','get':function _0x2eb918(){var _0x13b6de=_0x9548f5;return this['options'][_0x13b6de(_0x157a0a._0x354993)];},'set':function _0x24c5c6(_0x4ef837){var _0x53fadb=_0x9548f5;this[_0x53fadb(0x226)]['style']=mars3d__namespace[_0x53fadb(_0x2556d3._0x341c60)][_0x53fadb(0x1fc)](this['options'][_0x53fadb(0x202)],_0x4ef837);}},{'key':'positions','get':function _0x214b37(){return this['_positions'];},'set':function _0x509b1b(_0x4881ae){this['setPositions'](_0x4881ae);}},{'key':'coordinates','get':function _0x47f136(){var _0x3388cf=_0x9548f5,_0x57476c=[];return this['points'][_0x3388cf(_0xe4d09d._0x324c5d)](function(_0x132e0d){_0x57476c['push'](_0x132e0d['toArray']());}),_0x57476c;}},{'key':'rectangle','get':function _0x4fb148(){return this['_rectangle'];}},{'key':'_setOptionsHook','value':function _0x379668(_0x56aec1,_0x383cee){var _0x2f7dcb=_0x9548f5;_0x56aec1[_0x2f7dcb(_0x591ccf._0x34ca77)]&&(this['positions']=_0x56aec1[_0x2f7dcb(0x22a)]);}},{'key':'_mountedHook','value':function _0x100471(){var _0x27cf71=_0x9548f5;this[_0x27cf71(0x202)][_0x27cf71(_0x21b0a0._0x5d18b0)]===_0x27cf71(_0x21b0a0._0x173697)?this['_layer']=new mars3d__namespace[(_0x27cf71(0x232))][(_0x27cf71(_0x21b0a0._0x2b2295))]({'crs':'EPSG:3857','private':!![]}):this['_layer']=new mars3d__namespace[(_0x27cf71(0x232))]['GraphicLayer']({'private':!![]});}},{'key':'_addedHook','value':function _0x446c16(){var _0x273ed3=_0x9548f5;this['_map']['addLayer'](this[_0x273ed3(_0xec17b._0x4a2b54)]),this['options'][_0x273ed3(0x22a)]&&(this[_0x273ed3(0x22a)]=this[_0x273ed3(_0xec17b._0x396c00)]['positions']),this['options']['flyTo']&&this['flyToByAnimationEnd']();}},{'key':'_removedHook','value':function _0xe7a09f(){var _0x5bab8c=_0x9548f5;this['heatStyle']['container']&&(mars3d__namespace['DomUtil']['remove'](this['heatStyle'][_0x5bab8c(0x200)]),delete this[_0x5bab8c(0x1ef)][_0x5bab8c(_0xd87c2e._0x51375d)]),this['clear'](),this[_0x5bab8c(_0xd87c2e._0x31850b)]['removeLayer'](this['_layer']);}},{'key':_0x9548f5(_0x22d0b1._0x209022),'value':function _0x1a747e(_0x1d88f4,_0x58658c){var _0x504eea=_0x9548f5;this['_positions']=this[_0x504eea(_0x45c850._0x10a405)]||[],this[_0x504eea(_0x45c850._0x10a405)]['push'](_0x1d88f4),this['_updatePositionsHook'](_0x58658c);}},{'key':_0x9548f5(_0x22d0b1._0x32a2e3),'value':function _0x45f890(_0x43d6cd,_0x378d25){this['_positions']=_0x43d6cd,this['_updatePositionsHook'](_0x378d25);}},{'key':'clear','value':function _0x17e3bc(){var _0x57984a=_0x9548f5;this['_graphic']&&(this[_0x57984a(_0x3b3576._0x4833f9)]['removeGraphic'](this[_0x57984a(_0x3b3576._0x5bd728)],!![]),delete this['_graphic']),this['_graphic2']&&(this['_layer']['removeGraphic'](this['_graphic2'],!![]),delete this['_graphic2']);}},{'key':'_updatePositionsHook','value':function _0x33a79d(_0x4c20f7){var _0x16a227=_0x9548f5;if(!this['show']||!this['_map']||!this['positions']||this['positions']['length']===0x0)return this;var _0x2223db=this['_getHeatCanvas']();if(this['style']['type']==='image')this['_layer']['setOptions']({'url':_0x2223db[_0x16a227(_0x418163._0x177c73)]('image/png'),'rectangle':this['_rectangle'],'opacity':this['style']['opacity']});else this['style']['arc']?this['_graphic']&&_0x4c20f7?(this[_0x16a227(_0x418163._0x4bb574)]['uniforms']['image']=_0x2223db,this['_graphic'][_0x16a227(0x22f)][_0x16a227(_0x418163._0xa9874d)]=this['_getArcHeatCanvas'](),this['_graphic2']&&(this['_graphic2']['uniforms']['image']=_0x2223db,this[_0x16a227(_0x418163._0x4c7e44)]['uniforms']['bumpMap']=this['_graphic']['uniforms'][_0x16a227(_0x418163._0x5d4f77)])):this['_createArcGraphic'](_0x2223db):this[_0x16a227(_0x418163._0x4bb574)]&&_0x4c20f7?this['_graphic']['uniforms']['image']=_0x2223db:this['_createGraphic'](_0x2223db);return this;}},{'key':'_createGraphic','value':function _0x34f23f(_0x254637){var _0x13d61f=_0x9548f5;this[_0x13d61f(_0x471104._0x15b361)](),this[_0x13d61f(0x1fb)]=new mars3d__namespace[(_0x13d61f(0x23b))][(_0x13d61f(_0x471104._0x4aad22))](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'material':new Cesium['Material']({'fabric':{'uniforms':{'image':_0x254637},'source':HeatMaterial},'translucent':!![]}),'flat':!![]})})),this['_layer']['addGraphic'](this['_graphic']);}},{'key':'_createArcGraphic','value':function _0x3256a6(_0x4afadc){var _0x5c4c46=_0x9548f5,_0x38cb7f;this[_0x5c4c46(_0x467148._0x501563)]();var _0x2eaa50=Cesium['RenderState']['fromCache']({'cull':{'enabled':!![]},'depthTest':{'enabled':!![]},'stencilTest':{'enabled':!![],'frontFunction':Cesium['StencilFunction']['ALWAYS'],'frontOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium['StencilOperation']['KEEP'],'zPass':Cesium[_0x5c4c46(0x209)]['REPLACE']},'backFunction':Cesium['StencilFunction']['ALWAYS'],'backOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium[_0x5c4c46(_0x467148._0x2211d2)]['KEEP'],'zPass':Cesium[_0x5c4c46(_0x467148._0x430b38)]['REPLACE']},'reference':0x2,'mask':0x2},'blending':Cesium['BlendingState']['ALPHA_BLEND']}),_0x3c47f1=Math[_0x5c4c46(0x233)]((_0x38cb7f=this['style']['diffHeight'])!==null&&_0x38cb7f!==void 0x0?_0x38cb7f:this['_mBoundsMax']*0.02)+0.1;this[_0x5c4c46(0x202)]['diffHeight']&&delete this[_0x5c4c46(_0x467148._0x384abf)]['diffHeight'];var _0xb65a7a=(this['style']['splitNum'],0x64),_0xec956=Math['max'](this['_rectangle'][_0x5c4c46(0x219)],this['_rectangle'][_0x5c4c46(_0x467148._0x549572)]);this['style']['granularity']=_0xec956/=_0xb65a7a;var _0x2b1e4a=new Cesium['Material']({'fabric':{'uniforms':{'image':_0x4afadc,'repeat':new Cesium[(_0x5c4c46(0x22c))](0x1,0x1),'color':new Cesium['Color'](0x1,0x1,0x1,0x0),'bumpMap':this['_getArcHeatCanvas']()},'source':HeatMaterial},'translucent':!![]}),_0x5b7941=this[_0x5c4c46(0x202)]['arcDirection']||0x1;this['_graphic']=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this[_0x5c4c46(0x238)],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x2eaa50,'material':_0x2b1e4a,'vertexShaderSource':getVertexShaderSource(_0x3c47f1*_0x5b7941)})})),this['_layer'][_0x5c4c46(_0x467148._0x47e81b)](this['_graphic']),this[_0x5c4c46(_0x467148._0x384abf)]['arcDirection']===0x0&&(this['_graphic2']=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x2eaa50,'material':_0x2b1e4a,'vertexShaderSource':getVertexShaderSource(-_0x3c47f1)})})),this[_0x5c4c46(_0x467148._0x2d7e84)]['addGraphic'](this['_graphic2']));}},{'key':'getRectangle','value':function _0x2f2402(_0x15e07a){var _0x1f7f6e=_0x9548f5;return _0x15e07a!==null&&_0x15e07a!==void 0x0&&_0x15e07a[_0x1f7f6e(0x208)]&&this['_rectangle']?mars3d__namespace['PolyUtil']['formatRectangle'](this['_rectangle']):this[_0x1f7f6e(0x238)];}},{'key':'_getHeatCanvas','value':function _0x4df24f(){var _0xb7d5c9={_0x1c97e9:0x1f0,_0x1081c5:0x23a,_0xd69a0c:0x235},_0x395127=_0x9548f5,_0x142233=this,_0x6d395a,_0x5e0934,_0x2ccf2a,_0x2d3d94,_0xbfa73a=this['_positions'],_0x3f1454=[],_0x321222,_0x4d11ac,_0x130a7a,_0x21406e;_0xbfa73a['forEach'](function(_0x388009){var _0x4a26f8=_0x154b,_0x26eaf7=mars3d__namespace['LngLatPoint'][_0x4a26f8(0x222)](_0x388009);if(!_0x26eaf7)return;_0x26eaf7['value']=_0x388009[_0x4a26f8(_0xb7d5c9._0x1c97e9)]||0x1,!_0x142233['options']['rectangle']&&(_0x321222===undefined?(_0x321222=_0x26eaf7['lng'],_0x4d11ac=_0x26eaf7['lng'],_0x130a7a=_0x26eaf7['lat'],_0x21406e=_0x26eaf7[_0x4a26f8(0x22d)]):(_0x321222=Math[_0x4a26f8(_0xb7d5c9._0x1081c5)](_0x321222,_0x26eaf7['lng']),_0x4d11ac=Math['max'](_0x4d11ac,_0x26eaf7[_0x4a26f8(_0xb7d5c9._0xd69a0c)]),_0x130a7a=Math['min'](_0x130a7a,_0x26eaf7['lat']),_0x21406e=Math['max'](_0x21406e,_0x26eaf7[_0x4a26f8(0x22d)]))),_0x3f1454['push'](_0x26eaf7);});var _0x1689a9=this['options']['rectangle']||{'xmin':_0x321222,'xmax':_0x4d11ac,'ymin':_0x130a7a,'ymax':_0x21406e},_0x736cdf=getMercatorBounds(_0x1689a9),_0x3f437f=Math['abs'](_0x736cdf[_0x395127(0x1f5)]-_0x736cdf[_0x395127(_0x563f5a._0x5acbe3)]),_0x670fdd=Math['abs'](_0x736cdf[_0x395127(_0x563f5a._0x3f4830)]-_0x736cdf['ymin']),_0x515897=Math['max'](_0x3f437f,_0x670fdd),_0x4641b3=Math[_0x395127(0x23a)](_0x3f437f,_0x670fdd);this[_0x395127(0x229)]=_0x515897;var _0x142910=0x1;if(_0x515897>this['options']['maxCanvasSize'])_0x142910=_0x515897/this[_0x395127(0x226)]['maxCanvasSize'],_0x4641b3/_0x142910<this['options'][_0x395127(0x217)]&&(_0x142910=_0x4641b3/this[_0x395127(_0x563f5a._0x140a6e)]['minCanvasSize']);else _0x4641b3<this[_0x395127(_0x563f5a._0x44804b)]['minCanvasSize']&&(_0x142910=_0x4641b3/this['options']['minCanvasSize'],_0x515897/_0x142910>this[_0x395127(_0x563f5a._0x140a6e)]['maxCanvasSize']&&(_0x142910=_0x515897/this[_0x395127(0x226)]['maxCanvasSize']));var _0x571507=this[_0x395127(0x1ef)]['radius']*1.5,_0x1b0082=_0x3f437f/_0x142910+_0x571507*0x2,_0x3bef89=_0x670fdd/_0x142910+_0x571507*0x2,_0x52ae47=_0x571507*_0x142910;_0x736cdf['xmin']-=_0x52ae47,_0x736cdf['ymin']-=_0x52ae47,_0x736cdf['xmax']+=_0x52ae47,_0x736cdf[_0x395127(0x243)]+=_0x52ae47,this['_scale']=_0x142910,_0x1689a9=geLatLngBounds(_0x736cdf),this['_rectangle']=Cesium['Rectangle'][_0x395127(0x237)](_0x1689a9[_0x395127(_0x563f5a._0x116574)],_0x1689a9[_0x395127(_0x563f5a._0x254261)],_0x1689a9[_0x395127(0x1f5)],_0x1689a9['ymax']);var _0x149337=(_0x6d395a=_0x3f1454[0x0]['value'])!==null&&_0x6d395a!==void 0x0?_0x6d395a:0x1,_0x39d636=(_0x5e0934=_0x3f1454[0x0]['value'])!==null&&_0x5e0934!==void 0x0?_0x5e0934:0x0,_0x14a966=[];_0x3f1454[_0x395127(0x1f9)](function(_0x1c5e2e){var _0x553913=_0x395127,_0x5dd17b=mars3d__namespace['PointTrans'][_0x553913(0x20d)]([_0x1c5e2e['lng'],_0x1c5e2e[_0x553913(_0x104738._0x63d6bd)]]),_0x49526d=_0x1c5e2e['value']||0x1,_0x71b72f=Math['round']((_0x5dd17b[0x0]-_0x736cdf['xmin'])/_0x142910),_0x42e1cc=Math[_0x553913(0x21c)]((_0x736cdf['ymax']-_0x5dd17b[0x1])/_0x142910);_0x149337=Math['max'](_0x149337,_0x49526d),_0x39d636=Math['min'](_0x39d636,_0x49526d),_0x14a966['push']({'x':_0x71b72f,'y':_0x42e1cc,'value':_0x49526d});});var _0x2983c2={'min':(_0x2ccf2a=this['options']['min'])!==null&&_0x2ccf2a!==void 0x0?_0x2ccf2a:_0x39d636,'max':(_0x2d3d94=this[_0x395127(_0x563f5a._0x140a6e)]['max'])!==null&&_0x2d3d94!==void 0x0?_0x2d3d94:_0x149337,'data':_0x14a966};this['_last_heatData']=_0x2983c2;(!this['_last_mBounds']||_0x736cdf['xmin']!==this['_last_mBounds']['xmin']||_0x736cdf['ymin']!==this[_0x395127(0x20e)][_0x395127(_0x563f5a._0x254261)]||_0x736cdf['xmax']!==this[_0x395127(0x20e)]['xmax']||_0x736cdf[_0x395127(_0x563f5a._0x32f636)]!==this['_last_mBounds']['ymax'])&&(this['_last_mBounds']=_0x736cdf,!this[_0x395127(0x1ef)]['container']&&(this['heatStyle']['container']=mars3d__namespace[_0x395127(_0x563f5a._0x5b454f)][_0x395127(0x210)]('div','mars3d-heatmap\x20mars3d-hideDiv',this['_map'][_0x395127(_0x563f5a._0x2067e6)])),this['heatStyle']['container']['style']['cssText']='width:'['concat'](_0x1b0082,'px;height:')['concat'](_0x3bef89,'px;'),!this['_heat']?this['_heat']=h337__namespace['create'](this[_0x395127(_0x563f5a._0x3d79c9)]):this['_heat'][_0x395127(_0x563f5a._0x2d7327)](this['heatStyle']));this[_0x395127(0x23d)]['setData'](_0x2983c2);var _0x1589c2=mars3d__namespace[_0x395127(_0x563f5a._0x5b454f)][_0x395127(0x231)](this['_heat']['_renderer']['canvas']);return _0x1589c2;}},{'key':_0x9548f5(_0x22d0b1._0x2c2a8c),'value':function _0x22e180(){var _0x276ef6=_0x9548f5;this['_heat'][_0x276ef6(_0x646865._0x526535)]({'radius':this['heatStyle'][_0x276ef6(0x225)]*this['style']['arcRadiusScale'],'blur':this['heatStyle']['blur']*this[_0x276ef6(_0x646865._0x9efdce)][_0x276ef6(0x214)],'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 _0x1efc19=mars3d__namespace[_0x276ef6(_0x646865._0x33bddd)]['copyCanvas'](this['_heat']['_renderer']['canvas']);return this['_heat']['configure'](this[_0x276ef6(0x226)]['heatStyle']),_0x1efc19;}},{'key':'getPointData','value':function _0x4ff212(_0x2f9c30){var _0x501cd1=_0x9548f5,_0xd72428=mars3d__namespace[_0x501cd1(0x1ee)][_0x501cd1(_0x4f4b35._0x45c535)](_0x2f9c30);if(!_0xd72428)return{};var _0x52723d=mars3d__namespace['PointTrans']['lonlat2mercator']([_0xd72428['lng'],_0xd72428['lat']]),_0x55f05c=this['_last_mBounds'],_0x1872c0=Math[_0x501cd1(_0x4f4b35._0x14a751)]((_0x52723d[0x0]-_0x55f05c[_0x501cd1(0x1fe)])/this['_scale']),_0x1b3116=Math[_0x501cd1(0x21c)]((_0x55f05c['ymax']-_0x52723d[0x1])/this['_scale']),_0x4e1208=this[_0x501cd1(0x23d)]['getValueAt']({'x':_0x1872c0,'y':_0x1b3116}),_0x2f2de7=this['_heat'][_0x501cd1(_0x4f4b35._0x281710)][_0x501cd1(0x1f4)]['getImageData'](_0x1872c0-0x1,_0x1b3116-0x1,0x1,0x1)['data'];return{'x':_0x1872c0,'y':_0x1b3116,'value':_0x4e1208,'color':'rgba('+_0x2f2de7[0x0]+','+_0x2f2de7[0x1]+','+_0x2f2de7[0x2]+','+_0x2f2de7[0x3]+')'};}}]),_0x536288;}(BaseLayer);mars3d__namespace[_0x4a220e(0x232)]['HeatLayer']=HeatLayer,mars3d__namespace['LayerUtil']['register']('heat',HeatLayer);function getMercatorBounds(_0x21ce6f){var _0x36d409=_0x4a220e,_0x61ac7c=mars3d__namespace[_0x36d409(0x207)]['lonlat2mercator']([_0x21ce6f['xmin'],_0x21ce6f[_0x36d409(0x1f1)]]),_0x99482c=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x21ce6f['xmax'],_0x21ce6f['ymax']]);return{'xmin':_0x61ac7c[0x0],'ymin':_0x61ac7c[0x1],'xmax':_0x99482c[0x0],'ymax':_0x99482c[0x1]};}function _0x154b(_0x479349,_0x55414c){var _0x31e14a=_0x31e1();return _0x154b=function(_0x154b2a,_0x4ed00b){_0x154b2a=_0x154b2a-0x1ee;var _0x1d41ef=_0x31e14a[_0x154b2a];return _0x1d41ef;},_0x154b(_0x479349,_0x55414c);}function geLatLngBounds(_0x80ea45){var _0x1ccdb9={_0x33bfb7:0x236,_0x424104:0x236,_0x309581:0x1f5},_0x57f77b=_0x4a220e,_0x584f4d=mars3d__namespace['PointTrans'][_0x57f77b(_0x1ccdb9._0x33bfb7)]([_0x80ea45['xmin'],_0x80ea45[_0x57f77b(0x1f1)]]),_0x270f66=mars3d__namespace['PointTrans'][_0x57f77b(_0x1ccdb9._0x424104)]([_0x80ea45[_0x57f77b(_0x1ccdb9._0x309581)],_0x80ea45['ymax']]);return{'xmin':_0x584f4d[0x0],'ymin':_0x584f4d[0x1],'xmax':_0x270f66[0x0],'ymax':_0x270f66[0x1]};}function getVertexShaderSource(_0x14a849){var _0x210e74={_0x57d511:0x21e},_0x26f830=_0x4a220e;return _0x26f830(_0x210e74._0x57d511)['concat'](_0x14a849,';\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[_0x4a220e(0x1ff)](exports,'__esModule',{'value':!![]}); | ||
'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();} | ||
})); |
{ | ||
"name": "mars3d-heatmap", | ||
"version": "3.4.19", | ||
"version": "3.4.20", | ||
"description": "Mars3D平台插件,结合heatmap可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-heatmap.js", | ||
"devDependencies": { | ||
"mars3d": "~3.4.19" | ||
"mars3d": "~3.4.20" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31414
119