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.22 to 3.4.23

6

dist/mars3d-heatmap.js
/**
* Mars3D平台插件,结合heatmap可视化功能插件 mars3d-heatmap
*
* 版本信息:v3.4.22
* 编译日期:2023-02-06 19:58:12
* 版本信息:v3.4.23
* 编译日期:2023-02-20 17:11:36
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, mars3d, h337) {
'use strict';var _0x7cad9d=_0x5969;(function(_0x4b149c,_0x1666a8){var _0x14af69={_0x4e65e4:0x1ce,_0x9ea30:0x16d},_0x2d65c8=_0x5969,_0x2e5b69=_0x4b149c();while(!![]){try{var _0x50a7e7=parseInt(_0x2d65c8(0x170))/0x1+parseInt(_0x2d65c8(0x19c))/0x2*(parseInt(_0x2d65c8(0x19f))/0x3)+parseInt(_0x2d65c8(0x1ae))/0x4*(parseInt(_0x2d65c8(_0x14af69._0x4e65e4))/0x5)+parseInt(_0x2d65c8(0x1b7))/0x6+-parseInt(_0x2d65c8(0x1b5))/0x7+-parseInt(_0x2d65c8(_0x14af69._0x9ea30))/0x8*(parseInt(_0x2d65c8(0x18d))/0x9)+-parseInt(_0x2d65c8(0x1ad))/0xa*(parseInt(_0x2d65c8(0x16e))/0xb);if(_0x50a7e7===_0x1666a8)break;else _0x2e5b69['push'](_0x2e5b69['shift']());}catch(_0x2ef3ec){_0x2e5b69['push'](_0x2e5b69['shift']());}}}(_0x56a6,0x3687e));function _interopNamespace(_0x1fd604){var _0x5b7d79=_0x5969;if(_0x1fd604&&_0x1fd604['__esModule'])return _0x1fd604;var _0x4e278a=Object['create'](null);return _0x1fd604&&Object['keys'](_0x1fd604)['forEach'](function(_0x3774a8){if(_0x3774a8!=='default'){var _0x4f99cb=Object['getOwnPropertyDescriptor'](_0x1fd604,_0x3774a8);Object['defineProperty'](_0x4e278a,_0x3774a8,_0x4f99cb['get']?_0x4f99cb:{'enumerable':!![],'get':function(){return _0x1fd604[_0x3774a8];}});}}),_0x4e278a[_0x5b7d79(0x1a5)]=_0x1fd604,_0x4e278a;}var mars3d__namespace=_interopNamespace(mars3d),h337__namespace=_interopNamespace(h337);function ownKeys(_0x1a45e7,_0x1b0407){var _0x22eedb={_0x1effb3:0x173},_0x5a9fc3=_0x5969,_0x296701=Object[_0x5a9fc3(0x17b)](_0x1a45e7);if(Object['getOwnPropertySymbols']){var _0x753d47=Object[_0x5a9fc3(0x1cb)](_0x1a45e7);_0x1b0407&&(_0x753d47=_0x753d47['filter'](function(_0x21defb){var _0x554631=_0x5a9fc3;return Object['getOwnPropertyDescriptor'](_0x1a45e7,_0x21defb)[_0x554631(0x1bc)];})),_0x296701[_0x5a9fc3(_0x22eedb._0x1effb3)]['apply'](_0x296701,_0x753d47);}return _0x296701;}function _objectSpread2(_0x162eac){var _0x4ff8c3={_0x334c48:0x1aa},_0x41b96a=_0x5969;for(var _0x628d07=0x1;_0x628d07<arguments[_0x41b96a(0x16b)];_0x628d07++){var _0x5bfa12=null!=arguments[_0x628d07]?arguments[_0x628d07]:{};_0x628d07%0x2?ownKeys(Object(_0x5bfa12),!0x0)['forEach'](function(_0x1ad8ef){_defineProperty(_0x162eac,_0x1ad8ef,_0x5bfa12[_0x1ad8ef]);}):Object[_0x41b96a(_0x4ff8c3._0x334c48)]?Object[_0x41b96a(0x181)](_0x162eac,Object['getOwnPropertyDescriptors'](_0x5bfa12)):ownKeys(Object(_0x5bfa12))['forEach'](function(_0x593d43){Object['defineProperty'](_0x162eac,_0x593d43,Object['getOwnPropertyDescriptor'](_0x5bfa12,_0x593d43));});}return _0x162eac;}function _0x56a6(){var _0x1cfbf5=['Util','uniforms','请引入\x20heatmap.js\x20库\x20','lng','arcDirection','VERTEX_FORMAT','_renderer','LayerUtil','parse','getOwnPropertySymbols','_graphic','toDataURL','297770APGBII','configure','mercator2lonlat','div','_last_heatData','ymin','_heat','ImageLayer',';\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','length','blur','632lICMys','11DReAFc','removeLayer','366104QqRHCn','heatStyle','ymax','push','LngLatPoint','_getHeatCanvas','DomUtil','positions','clear','removeGraphic','rectangle','keys','maxCanvasSize','_scale','body','_map','_last_mBounds','defineProperties','arc','clientWidth','image','_graphic2','style','type','concat','lat','Material','flyToByAnimationEnd','layer','585QsqFMK','image/png','diffHeight','writable','getPointData','Color','container','create','mars3d-heatmap\x20mars3d-hideDiv','radius','prototype','canvas','ctx','rgba(','setPositions','17314gSKgmn','abs','options','153EDNAiX','Derived\x20constructors\x20may\x20only\x20return\x20object\x20or\x20undefined','value','px;','round','defineProperty','default','min','flyTo','Cesium','Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function','getOwnPropertyDescriptors','_setOptionsHook','xmin','6542230KhsHSK','4IeIikh','xmax','_rectangle','show','undefined','_updatePositionsHook','max','627767nFcGOJ','getPrototypeOf','631392NeRmtV','forEach','bind','yellow','lonlat2mercator','enumerable','register','_layer','clientHeight','addGraphic','rgb(0,0,0)'];_0x56a6=function(){return _0x1cfbf5;};return _0x56a6();}function _classCallCheck(_0x267abb,_0x4039f3){if(!(_0x267abb instanceof _0x4039f3))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}function _defineProperties(_0x4a7ffd,_0xb8642a){var _0x572c2b={_0x46aa26:0x1a1,_0x3f27f2:0x190},_0x39cac6=_0x5969;for(var _0xdf30a4=0x0;_0xdf30a4<_0xb8642a[_0x39cac6(0x16b)];_0xdf30a4++){var _0x16af9f=_0xb8642a[_0xdf30a4];_0x16af9f['enumerable']=_0x16af9f['enumerable']||![],_0x16af9f['configurable']=!![];if(_0x39cac6(_0x572c2b._0x46aa26)in _0x16af9f)_0x16af9f[_0x39cac6(_0x572c2b._0x3f27f2)]=!![];Object['defineProperty'](_0x4a7ffd,_0x16af9f['key'],_0x16af9f);}}function _createClass(_0x6d5f79,_0x52b319,_0x22eb38){var _0x5dfbde={_0x32381b:0x1a4},_0x52f77b=_0x5969;if(_0x52b319)_defineProperties(_0x6d5f79['prototype'],_0x52b319);if(_0x22eb38)_defineProperties(_0x6d5f79,_0x22eb38);return Object[_0x52f77b(_0x5dfbde._0x32381b)](_0x6d5f79,_0x52f77b(0x197),{'writable':![]}),_0x6d5f79;}function _defineProperty(_0xca2bde,_0x19e877,_0x2768db){return _0x19e877 in _0xca2bde?Object['defineProperty'](_0xca2bde,_0x19e877,{'value':_0x2768db,'enumerable':!![],'configurable':!![],'writable':!![]}):_0xca2bde[_0x19e877]=_0x2768db,_0xca2bde;}function _inherits(_0xc3d20d,_0x19ea79){var _0x87c994=_0x5969;if(typeof _0x19ea79!=='function'&&_0x19ea79!==null)throw new TypeError(_0x87c994(0x1a9));_0xc3d20d['prototype']=Object['create'](_0x19ea79&&_0x19ea79['prototype'],{'constructor':{'value':_0xc3d20d,'writable':!![],'configurable':!![]}}),Object['defineProperty'](_0xc3d20d,'prototype',{'writable':![]});if(_0x19ea79)_setPrototypeOf(_0xc3d20d,_0x19ea79);}function _0x5969(_0x4f73da,_0x3f207a){var _0x56a6d3=_0x56a6();return _0x5969=function(_0x596940,_0x1bd083){_0x596940=_0x596940-0x16a;var _0x4d268d=_0x56a6d3[_0x596940];return _0x4d268d;},_0x5969(_0x4f73da,_0x3f207a);}function _getPrototypeOf(_0x1dad17){var _0x3e8543=_0x5969;return _getPrototypeOf=Object['setPrototypeOf']?Object[_0x3e8543(0x1b6)]['bind']():function _0x462619(_0x1cd95c){var _0x4be766=_0x3e8543;return _0x1cd95c['__proto__']||Object[_0x4be766(0x1b6)](_0x1cd95c);},_getPrototypeOf(_0x1dad17);}function _setPrototypeOf(_0x3f1822,_0x335cc5){var _0xd5b4c4=_0x5969;return _setPrototypeOf=Object['setPrototypeOf']?Object['setPrototypeOf'][_0xd5b4c4(0x1b9)]():function _0x3c9052(_0x3995bc,_0x49de13){return _0x3995bc['__proto__']=_0x49de13,_0x3995bc;},_setPrototypeOf(_0x3f1822,_0x335cc5);}function _isNativeReflectConstruct(){var _0x5e1e59=_0x5969;if(typeof Reflect===_0x5e1e59(0x1b2)||!Reflect['construct'])return![];if(Reflect['construct']['sham'])return![];if(typeof Proxy==='function')return!![];try{return Boolean['prototype']['valueOf']['call'](Reflect['construct'](Boolean,[],function(){})),!![];}catch(_0x1b8b30){return![];}}function _assertThisInitialized(_0x2fbfde){if(_0x2fbfde===void 0x0)throw new ReferenceError('this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called');return _0x2fbfde;}function _possibleConstructorReturn(_0xca4b4b,_0x49e19b){var _0x91a530=_0x5969;if(_0x49e19b&&(typeof _0x49e19b==='object'||typeof _0x49e19b==='function'))return _0x49e19b;else{if(_0x49e19b!==void 0x0)throw new TypeError(_0x91a530(0x1a0));}return _assertThisInitialized(_0xca4b4b);}function _createSuper(_0x3abcaf){var _0x502e9f=_isNativeReflectConstruct();return function _0x5954d8(){var _0x319ee3=_getPrototypeOf(_0x3abcaf),_0x2f289d;if(_0x502e9f){var _0x4bb689=_getPrototypeOf(this)['constructor'];_0x2f289d=Reflect['construct'](_0x319ee3,arguments,_0x4bb689);}else _0x2f289d=_0x319ee3['apply'](this,arguments);return _possibleConstructorReturn(this,_0x2f289d);};}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[_0x7cad9d(0x194)])throw new Error(_0x7cad9d(0x1c4));var Cesium=mars3d__namespace[_0x7cad9d(0x1a8)],BaseLayer=mars3d__namespace[_0x7cad9d(0x18c)]['BaseLayer'],DEF_HEATSTYLE={'maxOpacity':0.8,'minOpacity':0.1,'blur':0.85,'radius':0x19,'gradient':{0.4:'blue',0.6:'green',0.8:_0x7cad9d(0x1ba),0.9:'red'}},DEF_STYLE={'arcRadiusScale':1.5,'arcBlurScale':1.5,'vertexFormat':Cesium['EllipsoidSurfaceAppearance'][_0x7cad9d(0x1c7)]},HeatLayer=function(_0x536998){var _0x187597={_0x3542ef:0x1ab,_0x53fc26:0x175,_0xe073e6:0x191},_0x110dcf={_0x4bd2ee:0x1ca,_0x5d7246:0x1bb,_0x29f8ca:0x1a3,_0x471108:0x1c8,_0x52116d:0x199,_0x4dfc38:0x19a},_0x35fa1e={_0x494ed8:0x171,_0x4d2dd6:0x16c,_0x366099:0x186,_0x43016b:0x1c1,_0x2e30f1:0x176,_0x2a8a77:0x1c8,_0x27ebf3:0x1d4,_0x4e16f1:0x19e},_0x5330da={_0x15c160:0x17a,_0x25ae5a:0x19d,_0x1acb31:0x19e,_0x53c2d6:0x171,_0x7c366a:0x1af,_0x2c82ca:0x17d,_0x120882:0x1b8,_0x173454:0x180,_0x36e312:0x1d3,_0xeb5bb8:0x195,_0x236f48:0x186,_0x4e474e:0x188,_0x584e55:0x194,_0x4d7a5e:0x171,_0x76a848:0x198},_0x17700c={_0x51c91b:0x186,_0x1ccee6:0x18f,_0x591c1c:0x18a,_0x32a01:0x1c6,_0x20f614:0x1be,_0x32bb26:0x1be},_0x3fd80a={_0x42c8dc:0x1cc},_0xe1711e={_0xc75c61:0x1b1,_0x589e59:0x187,_0x93c16e:0x18e,_0x5f2585:0x1c3,_0x256997:0x185,_0x15c537:0x184},_0x3cfba0={_0x55717c:0x1be,_0x3dde80:0x179},_0x5cac9b={_0x45bec8:0x176,_0x14710b:0x171,_0x3edaf3:0x17f,_0x123d07:0x16f},_0x4f5c56={_0x41c3d2:0x1be,_0x26d73d:0x177},_0xc88ebd={_0x254011:0x187,_0x23af6d:0x184},_0xb51383={_0x33ae01:0x173},_0xba59b9={_0x51256d:0x1c2},_0x393e2d={_0x1f8f83:0x19e,_0x2d1917:0x17c,_0x50a2c2:0x17e,_0x14716a:0x1bf,_0x5ce8f5:0x19e,_0x214928:0x171},_0x3a009d=_0x7cad9d;_inherits(_0xea94c2,_0x536998);var _0x45802e=_createSuper(_0xea94c2);function _0xea94c2(){var _0x2793fb=_0x5969,_0x52f2c2,_0x10e7f0,_0x5b3e12,_0x1e86c7=arguments['length']>0x0&&arguments[0x0]!==undefined?arguments[0x0]:{};return _classCallCheck(this,_0xea94c2),_0x5b3e12=_0x45802e['call'](this,_0x1e86c7),_0x5b3e12[_0x2793fb(_0x393e2d._0x1f8f83)][_0x2793fb(0x17c)]=(_0x52f2c2=_0x5b3e12['options'][_0x2793fb(_0x393e2d._0x2d1917)])!==null&&_0x52f2c2!==void 0x0?_0x52f2c2:document['body'][_0x2793fb(0x183)],_0x5b3e12['options']['maxCanvasSize']=Math['min'](_0x5b3e12['options']['maxCanvasSize'],0x1388),_0x5b3e12['options']['minCanvasSize']=(_0x10e7f0=_0x5b3e12[_0x2793fb(0x19e)]['minCanvasSize'])!==null&&_0x10e7f0!==void 0x0?_0x10e7f0:document[_0x2793fb(_0x393e2d._0x50a2c2)][_0x2793fb(_0x393e2d._0x14716a)],_0x5b3e12['options']['minCanvasSize']=Math[_0x2793fb(0x1b4)](_0x5b3e12[_0x2793fb(0x19e)]['minCanvasSize'],0x2bc),_0x5b3e12[_0x2793fb(_0x393e2d._0x5ce8f5)]['heatStyle']=_objectSpread2(_objectSpread2({},DEF_HEATSTYLE),_0x5b3e12[_0x2793fb(_0x393e2d._0x5ce8f5)][_0x2793fb(_0x393e2d._0x214928)]||{}),_0x5b3e12['options']['style']=_objectSpread2(_objectSpread2({},DEF_STYLE),_0x5b3e12['options']['style']||{}),_0x5b3e12;}return _createClass(_0xea94c2,[{'key':'layer','get':function _0x1eabdb(){return this['_layer'];}},{'key':'heatStyle','get':function _0x5c4d44(){return this['options']['heatStyle'];},'set':function _0x35d229(_0x4911ca){var _0x4d8374=_0x5969;this['options']['heatStyle']=mars3d__namespace[_0x4d8374(_0xba59b9._0x51256d)]['merge'](this[_0x4d8374(0x19e)]['heatStyle'],_0x4911ca),this['_heat']&&(this['_heat'][_0x4d8374(0x1cf)](this['options'][_0x4d8374(0x171)]),this['_updatePositionsHook'](!![]));}},{'key':'style','get':function _0x5463b0(){var _0x21d66f=_0x5969;return this[_0x21d66f(0x19e)][_0x21d66f(0x186)];},'set':function _0x29da33(_0x5951fc){this['options']['style']=mars3d__namespace['Util']['merge'](this['options']['style'],_0x5951fc);}},{'key':'positions','get':function _0x35652a(){return this['_positions'];},'set':function _0x327625(_0x227162){var _0x43331a=_0x5969;this[_0x43331a(0x19b)](_0x227162);}},{'key':'coordinates','get':function _0x162909(){var _0x3a512d=_0x5969,_0x41c616=[];return this['points'][_0x3a512d(0x1b8)](function(_0x13bc49){var _0x5d741c=_0x3a512d;_0x41c616[_0x5d741c(_0xb51383._0x33ae01)](_0x13bc49['toArray']());}),_0x41c616;}},{'key':'rectangle','get':function _0x47f052(){return this['_rectangle'];}},{'key':_0x3a009d(_0x187597._0x3542ef),'value':function _0x2a38c8(_0x2e6c38,_0x1075aa){var _0x1d5995=_0x3a009d;_0x2e6c38[_0x1d5995(0x177)]&&(this['positions']=_0x2e6c38['positions']);}},{'key':'_mountedHook','value':function _0x5578d2(){var _0x50e36b=_0x3a009d;this['style'][_0x50e36b(_0xc88ebd._0x254011)]===_0x50e36b(_0xc88ebd._0x23af6d)?this['_layer']=new mars3d__namespace['layer'][(_0x50e36b(0x1d5))]({'crs':'EPSG:3857','private':!![]}):this['_layer']=new mars3d__namespace['layer']['GraphicLayer']({'private':!![]});}},{'key':'_addedHook','value':function _0x373778(){var _0x78ecfe=_0x3a009d;this['_map']['addLayer'](this[_0x78ecfe(_0x4f5c56._0x41c3d2)]),this['options']['positions']&&(this['positions']=this['options'][_0x78ecfe(_0x4f5c56._0x26d73d)]),this['options'][_0x78ecfe(0x1a7)]&&this[_0x78ecfe(0x18b)]();}},{'key':'_removedHook','value':function _0x59be78(){var _0xf2aa68=_0x3a009d;this['heatStyle']['container']&&(mars3d__namespace[_0xf2aa68(_0x5cac9b._0x45bec8)]['remove'](this[_0xf2aa68(_0x5cac9b._0x14710b)]['container']),delete this['heatStyle']['container']),this[_0xf2aa68(0x178)](),this[_0xf2aa68(_0x5cac9b._0x3edaf3)][_0xf2aa68(_0x5cac9b._0x123d07)](this['_layer']);}},{'key':'addPosition','value':function _0x284a2e(_0x5f5234,_0x54fa08){this['_positions']=this['_positions']||[],this['_positions']['push'](_0x5f5234),this['_updatePositionsHook'](_0x54fa08);}},{'key':'setPositions','value':function _0x22802c(_0x4bb93a,_0x292046){var _0x391426=_0x3a009d;this['_positions']=_0x4bb93a,this[_0x391426(0x1b3)](_0x292046);}},{'key':'clear','value':function _0x108388(){var _0x1a7acd=_0x3a009d;this['_graphic']&&(this[_0x1a7acd(_0x3cfba0._0x55717c)]['removeGraphic'](this['_graphic'],!![]),delete this['_graphic']),this['_graphic2']&&(this['_layer'][_0x1a7acd(_0x3cfba0._0x3dde80)](this['_graphic2'],!![]),delete this['_graphic2']);}},{'key':'_updatePositionsHook','value':function _0x442409(_0x3e4301){var _0x15fd4c=_0x3a009d;if(!this[_0x15fd4c(_0xe1711e._0xc75c61)]||!this['_map']||!this['positions']||this['positions']['length']===0x0)return this;var _0x6255e8=this[_0x15fd4c(0x175)]();if(this['style'][_0x15fd4c(_0xe1711e._0x589e59)]==='image')this['_layer']['setOptions']({'url':_0x6255e8[_0x15fd4c(0x1cd)](_0x15fd4c(_0xe1711e._0x93c16e)),'rectangle':this['_rectangle'],'opacity':this[_0x15fd4c(0x186)]['opacity']});else this['style'][_0x15fd4c(0x182)]?this['_graphic']&&_0x3e4301?(this['_graphic'][_0x15fd4c(_0xe1711e._0x5f2585)]['image']=_0x6255e8,this['_graphic']['uniforms']['bumpMap']=this['_getArcHeatCanvas'](),this['_graphic2']&&(this[_0x15fd4c(_0xe1711e._0x256997)]['uniforms'][_0x15fd4c(_0xe1711e._0x15c537)]=_0x6255e8,this['_graphic2']['uniforms']['bumpMap']=this['_graphic']['uniforms']['bumpMap'])):this['_createArcGraphic'](_0x6255e8):this['_graphic']&&_0x3e4301?this['_graphic']['uniforms']['image']=_0x6255e8:this['_createGraphic'](_0x6255e8);return this;}},{'key':'_createGraphic','value':function _0x547736(_0xa8bf61){var _0x2efe34=_0x3a009d;this['clear'](),this[_0x2efe34(_0x3fd80a._0x42c8dc)]=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'material':new Cesium['Material']({'fabric':{'uniforms':{'image':_0xa8bf61},'source':HeatMaterial},'translucent':!![]}),'flat':!![]})})),this[_0x2efe34(0x1be)][_0x2efe34(0x1c0)](this['_graphic']);}},{'key':'_createArcGraphic','value':function _0x41ae23(_0x43e6f2){var _0x207e4c=_0x3a009d,_0x3352ca;this[_0x207e4c(0x178)]();var _0x5dffdb=Cesium['RenderState']['fromCache']({'cull':{'enabled':!![]},'depthTest':{'enabled':!![]},'stencilTest':{'enabled':!![],'frontFunction':Cesium['StencilFunction']['ALWAYS'],'frontOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium['StencilOperation']['KEEP'],'zPass':Cesium['StencilOperation']['REPLACE']},'backFunction':Cesium['StencilFunction']['ALWAYS'],'backOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium['StencilOperation']['KEEP'],'zPass':Cesium['StencilOperation']['REPLACE']},'reference':0x2,'mask':0x2},'blending':Cesium['BlendingState']['ALPHA_BLEND']}),_0x1f0212=Math['floor']((_0x3352ca=this[_0x207e4c(_0x17700c._0x51c91b)][_0x207e4c(_0x17700c._0x1ccee6)])!==null&&_0x3352ca!==void 0x0?_0x3352ca:this['_mBoundsMax']*0.02)+0.1;this['style']['diffHeight']&&delete this[_0x207e4c(_0x17700c._0x51c91b)][_0x207e4c(_0x17700c._0x1ccee6)];var _0x5087f5=(this['style']['splitNum'],0x64),_0x30a433=Math['max'](this['_rectangle']['height'],this[_0x207e4c(0x1b0)]['width']);this['style']['granularity']=_0x30a433/=_0x5087f5;var _0xb489b1=new Cesium[(_0x207e4c(_0x17700c._0x591c1c))]({'fabric':{'uniforms':{'image':_0x43e6f2,'repeat':new Cesium['Cartesian2'](0x1,0x1),'color':new Cesium[(_0x207e4c(0x192))](0x1,0x1,0x1,0x0),'bumpMap':this['_getArcHeatCanvas']()},'source':HeatMaterial},'translucent':!![]}),_0x52b420=this['style'][_0x207e4c(_0x17700c._0x32a01)]||0x1;this['_graphic']=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x5dffdb,'material':_0xb489b1,'vertexShaderSource':getVertexShaderSource(_0x1f0212*_0x52b420)})})),this[_0x207e4c(_0x17700c._0x20f614)]['addGraphic'](this['_graphic']),this['style']['arcDirection']===0x0&&(this['_graphic2']=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x5dffdb,'material':_0xb489b1,'vertexShaderSource':getVertexShaderSource(-_0x1f0212)})})),this[_0x207e4c(_0x17700c._0x32bb26)]['addGraphic'](this[_0x207e4c(0x185)]));}},{'key':'getRectangle','value':function _0x3cee21(_0x3c26c5){var _0xf2356a=_0x3a009d;return _0x3c26c5!==null&&_0x3c26c5!==void 0x0&&_0x3c26c5['isFormat']&&this[_0xf2356a(0x1b0)]?mars3d__namespace['PolyUtil']['formatRectangle'](this['_rectangle']):this[_0xf2356a(0x1b0)];}},{'key':_0x3a009d(_0x187597._0x53fc26),'value':function _0x492b16(){var _0x45c542={_0x747a31:0x189,_0x3d19c9:0x1a6},_0x59a612={_0x18fe07:0x1a1,_0x34f3f7:0x17a,_0x22dfdb:0x1c5,_0x4644b1:0x1b4,_0x4f4841:0x1b4,_0x29be0d:0x173},_0x408b40=_0x3a009d,_0x9411e1=this,_0x48a571,_0x1d1c87,_0x29360e,_0x35ef2d,_0x17751f=this['_positions'],_0x5b5f71=[],_0x4cf017,_0x45d3cb,_0x949d2c,_0x4d4e20;_0x17751f['forEach'](function(_0x30c570){var _0x1b796b=_0x5969,_0x297a54=mars3d__namespace[_0x1b796b(0x174)]['parse'](_0x30c570);if(!_0x297a54)return;_0x297a54[_0x1b796b(_0x59a612._0x18fe07)]=_0x30c570['value']||0x1,!_0x9411e1['options'][_0x1b796b(_0x59a612._0x34f3f7)]&&(_0x4cf017===undefined?(_0x4cf017=_0x297a54[_0x1b796b(_0x59a612._0x22dfdb)],_0x45d3cb=_0x297a54['lng'],_0x949d2c=_0x297a54['lat'],_0x4d4e20=_0x297a54['lat']):(_0x4cf017=Math['min'](_0x4cf017,_0x297a54['lng']),_0x45d3cb=Math[_0x1b796b(_0x59a612._0x4644b1)](_0x45d3cb,_0x297a54['lng']),_0x949d2c=Math['min'](_0x949d2c,_0x297a54['lat']),_0x4d4e20=Math[_0x1b796b(_0x59a612._0x4f4841)](_0x4d4e20,_0x297a54['lat']))),_0x5b5f71[_0x1b796b(_0x59a612._0x29be0d)](_0x297a54);});var _0x4babde=this['options'][_0x408b40(_0x5330da._0x15c160)]||{'xmin':_0x4cf017,'xmax':_0x45d3cb,'ymin':_0x949d2c,'ymax':_0x4d4e20},_0x247d0c=getMercatorBounds(_0x4babde),_0x22f463=Math['abs'](_0x247d0c['xmax']-_0x247d0c['xmin']),_0x52cfdc=Math[_0x408b40(_0x5330da._0x25ae5a)](_0x247d0c['ymax']-_0x247d0c['ymin']),_0x50cee3=Math['max'](_0x22f463,_0x52cfdc),_0x50cffc=Math['min'](_0x22f463,_0x52cfdc);this['_mBoundsMax']=_0x50cee3;var _0x2c3533=0x1;if(_0x50cee3>this['options']['maxCanvasSize'])_0x2c3533=_0x50cee3/this['options']['maxCanvasSize'],_0x50cffc/_0x2c3533<this[_0x408b40(_0x5330da._0x1acb31)]['minCanvasSize']&&(_0x2c3533=_0x50cffc/this['options']['minCanvasSize']);else _0x50cffc<this['options']['minCanvasSize']&&(_0x2c3533=_0x50cffc/this['options']['minCanvasSize'],_0x50cee3/_0x2c3533>this[_0x408b40(0x19e)]['maxCanvasSize']&&(_0x2c3533=_0x50cee3/this[_0x408b40(0x19e)]['maxCanvasSize']));var _0x331b29=this[_0x408b40(_0x5330da._0x53c2d6)][_0x408b40(0x196)]*1.5,_0x36b041=_0x22f463/_0x2c3533+_0x331b29*0x2,_0x20488e=_0x52cfdc/_0x2c3533+_0x331b29*0x2,_0xadb601=_0x331b29*_0x2c3533;_0x247d0c['xmin']-=_0xadb601,_0x247d0c[_0x408b40(0x1d3)]-=_0xadb601,_0x247d0c[_0x408b40(_0x5330da._0x7c366a)]+=_0xadb601,_0x247d0c['ymax']+=_0xadb601,this[_0x408b40(_0x5330da._0x2c82ca)]=_0x2c3533,_0x4babde=geLatLngBounds(_0x247d0c),this[_0x408b40(0x1b0)]=Cesium['Rectangle']['fromDegrees'](_0x4babde[_0x408b40(0x1ac)],_0x4babde['ymin'],_0x4babde['xmax'],_0x4babde['ymax']);var _0x298f93=(_0x48a571=_0x5b5f71[0x0]['value'])!==null&&_0x48a571!==void 0x0?_0x48a571:0x1,_0x57dc53=(_0x1d1c87=_0x5b5f71[0x0]['value'])!==null&&_0x1d1c87!==void 0x0?_0x1d1c87:0x0,_0x4f218e=[];_0x5b5f71[_0x408b40(_0x5330da._0x120882)](function(_0x57c1f3){var _0x1b263c=_0x408b40,_0xc6d60d=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x57c1f3['lng'],_0x57c1f3[_0x1b263c(_0x45c542._0x747a31)]]),_0x87c9d1=_0x57c1f3['value']||0x1,_0x432f52=Math['round']((_0xc6d60d[0x0]-_0x247d0c['xmin'])/_0x2c3533),_0x3f53e2=Math['round']((_0x247d0c['ymax']-_0xc6d60d[0x1])/_0x2c3533);_0x298f93=Math['max'](_0x298f93,_0x87c9d1),_0x57dc53=Math[_0x1b263c(_0x45c542._0x3d19c9)](_0x57dc53,_0x87c9d1),_0x4f218e['push']({'x':_0x432f52,'y':_0x3f53e2,'value':_0x87c9d1});});var _0x4dc9d3={'min':(_0x29360e=this['options'][_0x408b40(0x1a6)])!==null&&_0x29360e!==void 0x0?_0x29360e:_0x57dc53,'max':(_0x35ef2d=this['options']['max'])!==null&&_0x35ef2d!==void 0x0?_0x35ef2d:_0x298f93,'data':_0x4f218e};this[_0x408b40(0x1d2)]=_0x4dc9d3;(!this['_last_mBounds']||_0x247d0c['xmin']!==this['_last_mBounds']['xmin']||_0x247d0c['ymin']!==this[_0x408b40(_0x5330da._0x173454)][_0x408b40(_0x5330da._0x36e312)]||_0x247d0c[_0x408b40(0x1af)]!==this['_last_mBounds']['xmax']||_0x247d0c['ymax']!==this['_last_mBounds']['ymax'])&&(this['_last_mBounds']=_0x247d0c,!this['heatStyle'][_0x408b40(0x193)]&&(this['heatStyle'][_0x408b40(0x193)]=mars3d__namespace[_0x408b40(0x176)]['create'](_0x408b40(0x1d1),_0x408b40(_0x5330da._0xeb5bb8),this['_map']['container'])),this['heatStyle']['container'][_0x408b40(_0x5330da._0x236f48)]['cssText']='width:'['concat'](_0x36b041,'px;height:')[_0x408b40(_0x5330da._0x4e474e)](_0x20488e,_0x408b40(0x1a2)),!this['_heat']?this['_heat']=h337__namespace[_0x408b40(_0x5330da._0x584e55)](this[_0x408b40(0x171)]):this[_0x408b40(0x1d4)]['configure'](this[_0x408b40(_0x5330da._0x4d7a5e)]));this['_heat']['setData'](_0x4dc9d3);var _0x5e7632=mars3d__namespace['DomUtil']['copyCanvas'](this['_heat']['_renderer'][_0x408b40(_0x5330da._0x76a848)]);return _0x5e7632;}},{'key':'_getArcHeatCanvas','value':function _0x27a5f0(){var _0x3cd645=_0x3a009d;this[_0x3cd645(0x1d4)]['configure']({'radius':this[_0x3cd645(_0x35fa1e._0x494ed8)]['radius']*this['style']['arcRadiusScale'],'blur':this['heatStyle'][_0x3cd645(_0x35fa1e._0x4d2dd6)]*this[_0x3cd645(_0x35fa1e._0x366099)]['arcBlurScale'],'gradient':this[_0x3cd645(0x171)]['gradientArc']||{0.25:_0x3cd645(_0x35fa1e._0x43016b),0.55:'rgb(140,140,140)',0.85:'rgb(216,216,216)',0x1:'rgb(255,255,255)'}});var _0x51f217=mars3d__namespace[_0x3cd645(_0x35fa1e._0x2e30f1)]['copyCanvas'](this['_heat'][_0x3cd645(_0x35fa1e._0x2a8a77)]['canvas']);return this[_0x3cd645(_0x35fa1e._0x27ebf3)]['configure'](this[_0x3cd645(_0x35fa1e._0x4e16f1)]['heatStyle']),_0x51f217;}},{'key':_0x3a009d(_0x187597._0xe073e6),'value':function _0x29a4ac(_0x3b9615){var _0x3190d9=_0x3a009d,_0x4a86af=mars3d__namespace['LngLatPoint'][_0x3190d9(_0x110dcf._0x4bd2ee)](_0x3b9615);if(!_0x4a86af)return{};var _0x1c0c77=mars3d__namespace['PointTrans'][_0x3190d9(_0x110dcf._0x5d7246)]([_0x4a86af['lng'],_0x4a86af['lat']]),_0x284779=this['_last_mBounds'],_0x4901d8=Math[_0x3190d9(_0x110dcf._0x29f8ca)]((_0x1c0c77[0x0]-_0x284779['xmin'])/this['_scale']),_0x8bc7b5=Math[_0x3190d9(0x1a3)]((_0x284779['ymax']-_0x1c0c77[0x1])/this['_scale']),_0xc6bb41=this[_0x3190d9(0x1d4)]['getValueAt']({'x':_0x4901d8,'y':_0x8bc7b5}),_0x270d42=this[_0x3190d9(0x1d4)][_0x3190d9(_0x110dcf._0x471108)][_0x3190d9(_0x110dcf._0x52116d)]['getImageData'](_0x4901d8-0x1,_0x8bc7b5-0x1,0x1,0x1)['data'];return{'x':_0x4901d8,'y':_0x8bc7b5,'value':_0xc6bb41,'color':_0x3190d9(_0x110dcf._0x4dfc38)+_0x270d42[0x0]+','+_0x270d42[0x1]+','+_0x270d42[0x2]+','+_0x270d42[0x3]+')'};}}]),_0xea94c2;}(BaseLayer);mars3d__namespace['layer']['HeatLayer']=HeatLayer,mars3d__namespace[_0x7cad9d(0x1c9)][_0x7cad9d(0x1bd)]('heat',HeatLayer);function getMercatorBounds(_0x1b0fdb){var _0x5c1c9e={_0x417dc3:0x1d3},_0x2180c9=_0x7cad9d,_0xafb0c2=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x1b0fdb['xmin'],_0x1b0fdb[_0x2180c9(_0x5c1c9e._0x417dc3)]]),_0x5f32e5=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x1b0fdb['xmax'],_0x1b0fdb['ymax']]);return{'xmin':_0xafb0c2[0x0],'ymin':_0xafb0c2[0x1],'xmax':_0x5f32e5[0x0],'ymax':_0x5f32e5[0x1]};}function geLatLngBounds(_0x32ca07){var _0x2b3147={_0x540b5c:0x1ac,_0xd83929:0x172},_0xa99c1b=_0x7cad9d,_0x5438b1=mars3d__namespace['PointTrans'][_0xa99c1b(0x1d0)]([_0x32ca07[_0xa99c1b(_0x2b3147._0x540b5c)],_0x32ca07['ymin']]),_0x3d4e2a=mars3d__namespace['PointTrans']['mercator2lonlat']([_0x32ca07['xmax'],_0x32ca07[_0xa99c1b(_0x2b3147._0xd83929)]]);return{'xmin':_0x5438b1[0x0],'ymin':_0x5438b1[0x1],'xmax':_0x3d4e2a[0x0],'ymax':_0x3d4e2a[0x1]};}function getVertexShaderSource(_0x2533df){var _0x5b0a4a={_0xd604f9:0x16a},_0x365d5b=_0x7cad9d;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'](_0x2533df,_0x365d5b(_0x5b0a4a._0xd604f9));}exports['HeatLayer']=HeatLayer,Object['defineProperty'](exports,'__esModule',{'value':!![]});
'use strict';var _0x29f001=_0x2aff;(function(_0x1320f7,_0x44e804){var _0xc01f07={_0x104333:0x173,_0x571569:0x1b4,_0x30b589:0x1a8,_0x4da796:0x195},_0x4ab22d=_0x2aff,_0x5eb956=_0x1320f7();while(!![]){try{var _0x273d63=-parseInt(_0x4ab22d(_0xc01f07._0x104333))/0x1*(parseInt(_0x4ab22d(0x177))/0x2)+parseInt(_0x4ab22d(0x1a6))/0x3+parseInt(_0x4ab22d(0x17c))/0x4+parseInt(_0x4ab22d(_0xc01f07._0x571569))/0x5+-parseInt(_0x4ab22d(0x167))/0x6*(parseInt(_0x4ab22d(_0xc01f07._0x30b589))/0x7)+-parseInt(_0x4ab22d(0x18c))/0x8+parseInt(_0x4ab22d(0x181))/0x9*(parseInt(_0x4ab22d(_0xc01f07._0x4da796))/0xa);if(_0x273d63===_0x44e804)break;else _0x5eb956['push'](_0x5eb956['shift']());}catch(_0x463586){_0x5eb956['push'](_0x5eb956['shift']());}}}(_0x1193,0x90d41));function _0x2aff(_0x5e2aeb,_0x3d47a7){var _0x1193bf=_0x1193();return _0x2aff=function(_0x2affc7,_0x4e0a22){_0x2affc7=_0x2affc7-0x164;var _0x29bebe=_0x1193bf[_0x2affc7];return _0x29bebe;},_0x2aff(_0x5e2aeb,_0x3d47a7);}function _interopNamespace(_0x4166c7){var _0x2ff004=_0x2aff;if(_0x4166c7&&_0x4166c7['__esModule'])return _0x4166c7;var _0x561663=Object['create'](null);return _0x4166c7&&Object['keys'](_0x4166c7)['forEach'](function(_0x2b249c){if(_0x2b249c!=='default'){var _0x28a2aa=Object['getOwnPropertyDescriptor'](_0x4166c7,_0x2b249c);Object['defineProperty'](_0x561663,_0x2b249c,_0x28a2aa['get']?_0x28a2aa:{'enumerable':!![],'get':function(){return _0x4166c7[_0x2b249c];}});}}),_0x561663[_0x2ff004(0x1b3)]=_0x4166c7,_0x561663;}var mars3d__namespace=_interopNamespace(mars3d),h337__namespace=_interopNamespace(h337);function ownKeys(_0x1ceeda,_0x4d4e56){var _0x19748b=Object['keys'](_0x1ceeda);if(Object['getOwnPropertySymbols']){var _0x3b740d=Object['getOwnPropertySymbols'](_0x1ceeda);_0x4d4e56&&(_0x3b740d=_0x3b740d['filter'](function(_0x36d0d7){var _0x4be7e5=_0x2aff;return Object['getOwnPropertyDescriptor'](_0x1ceeda,_0x36d0d7)[_0x4be7e5(0x17f)];})),_0x19748b['push']['apply'](_0x19748b,_0x3b740d);}return _0x19748b;}function _objectSpread2(_0x42814c){var _0x556357=_0x2aff;for(var _0x1bbb11=0x1;_0x1bbb11<arguments['length'];_0x1bbb11++){var _0x4ce07b=null!=arguments[_0x1bbb11]?arguments[_0x1bbb11]:{};_0x1bbb11%0x2?ownKeys(Object(_0x4ce07b),!0x0)['forEach'](function(_0x5f3674){_defineProperty(_0x42814c,_0x5f3674,_0x4ce07b[_0x5f3674]);}):Object['getOwnPropertyDescriptors']?Object[_0x556357(0x1bd)](_0x42814c,Object['getOwnPropertyDescriptors'](_0x4ce07b)):ownKeys(Object(_0x4ce07b))['forEach'](function(_0x4ce677){Object['defineProperty'](_0x42814c,_0x4ce677,Object['getOwnPropertyDescriptor'](_0x4ce07b,_0x4ce677));});}return _0x42814c;}function _classCallCheck(_0x4acd39,_0x12ee15){if(!(_0x4acd39 instanceof _0x12ee15))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}function _0x1193(){var _0x5315ea=['StencilOperation','max','ymax','ymin','toArray','concat','__proto__','170179glAlCh','value','_removedHook','xmin','8BezNvk','function','PointTrans','_createGraphic','heatStyle','726608MaCvCj','setPositions','blur','enumerable','maxCanvasSize','8860518BlNHGK','container','remove','_renderer','_last_mBounds','formatRectangle','KEEP','lat','setPrototypeOf','positions','clear','1556264MClxDp','_graphic','rgb(0,0,0)','diffHeight','canvas','REPLACE','parse','prototype','lng','10sTksfk','Derived\x20constructors\x20may\x20only\x20return\x20object\x20or\x20undefined','mercator2lonlat','_positions','round','call','HeatLayer','rectangle','lonlat2mercator','register','BlendingState','_addedHook','getRectangle','ALWAYS','uniforms','options','StencilFunction','1331025GIYAdQ','create','604723fMCjUf','_map','Cartesian2','xmax','minCanvasSize','constructor','_rectangle','_layer','_graphic2','undefined','push','default','4908470LMuvqB','Material','addGraphic','layer','_mBoundsMax','Util','apply','splitNum','copyCanvas','defineProperties','style','flyToByAnimationEnd','_heat','setOptions','getValueAt','addLayer','78cLYQiT','writable','min','configure','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called'];_0x1193=function(){return _0x5315ea;};return _0x1193();}function _defineProperties(_0x4d9288,_0x3c0e00){var _0x4d60cc=_0x2aff;for(var _0x58357d=0x0;_0x58357d<_0x3c0e00['length'];_0x58357d++){var _0x74bbd0=_0x3c0e00[_0x58357d];_0x74bbd0['enumerable']=_0x74bbd0['enumerable']||![],_0x74bbd0['configurable']=!![];if('value'in _0x74bbd0)_0x74bbd0[_0x4d60cc(0x168)]=!![];Object['defineProperty'](_0x4d9288,_0x74bbd0['key'],_0x74bbd0);}}function _createClass(_0x1bf997,_0x304ea1,_0x37216b){var _0x485709={_0x2c757b:0x193},_0x5f2863=_0x2aff;if(_0x304ea1)_defineProperties(_0x1bf997[_0x5f2863(_0x485709._0x2c757b)],_0x304ea1);if(_0x37216b)_defineProperties(_0x1bf997,_0x37216b);return Object['defineProperty'](_0x1bf997,_0x5f2863(_0x485709._0x2c757b),{'writable':![]}),_0x1bf997;}function _defineProperty(_0x163113,_0x32948b,_0x4a846f){return _0x32948b in _0x163113?Object['defineProperty'](_0x163113,_0x32948b,{'value':_0x4a846f,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x163113[_0x32948b]=_0x4a846f,_0x163113;}function _inherits(_0x4c42dd,_0x396a49){var _0x3232c9={_0x1c67bb:0x1a7},_0x5bddae=_0x2aff;if(typeof _0x396a49!=='function'&&_0x396a49!==null)throw new TypeError('Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function');_0x4c42dd['prototype']=Object[_0x5bddae(_0x3232c9._0x1c67bb)](_0x396a49&&_0x396a49['prototype'],{'constructor':{'value':_0x4c42dd,'writable':!![],'configurable':!![]}}),Object['defineProperty'](_0x4c42dd,'prototype',{'writable':![]});if(_0x396a49)_setPrototypeOf(_0x4c42dd,_0x396a49);}function _getPrototypeOf(_0x159935){var _0x495f50=_0x2aff;return _getPrototypeOf=Object[_0x495f50(0x189)]?Object['getPrototypeOf']['bind']():function _0x27a74e(_0x27c44c){var _0x1ef15e=_0x495f50;return _0x27c44c[_0x1ef15e(0x172)]||Object['getPrototypeOf'](_0x27c44c);},_getPrototypeOf(_0x159935);}function _setPrototypeOf(_0x337d24,_0x57709a){var _0x33a550={_0x3f1f59:0x172};return _setPrototypeOf=Object['setPrototypeOf']?Object['setPrototypeOf']['bind']():function _0x3301f2(_0x6e387e,_0x4060da){var _0x39e818=_0x2aff;return _0x6e387e[_0x39e818(_0x33a550._0x3f1f59)]=_0x4060da,_0x6e387e;},_setPrototypeOf(_0x337d24,_0x57709a);}function _isNativeReflectConstruct(){var _0x11c5ab={_0x5dbc3d:0x178,_0x491ebf:0x19a},_0x1765fd=_0x2aff;if(typeof Reflect===_0x1765fd(0x1b1)||!Reflect['construct'])return![];if(Reflect['construct']['sham'])return![];if(typeof Proxy===_0x1765fd(_0x11c5ab._0x5dbc3d))return!![];try{return Boolean['prototype']['valueOf'][_0x1765fd(_0x11c5ab._0x491ebf)](Reflect['construct'](Boolean,[],function(){})),!![];}catch(_0x425e9c){return![];}}function _assertThisInitialized(_0x50d271){var _0x40a3fc=_0x2aff;if(_0x50d271===void 0x0)throw new ReferenceError(_0x40a3fc(0x16b));return _0x50d271;}function _possibleConstructorReturn(_0x50f325,_0x30411d){var _0x268ea5=_0x2aff;if(_0x30411d&&(typeof _0x30411d==='object'||typeof _0x30411d==='function'))return _0x30411d;else{if(_0x30411d!==void 0x0)throw new TypeError(_0x268ea5(0x196));}return _assertThisInitialized(_0x50f325);}function _createSuper(_0x46910d){var _0x59ca9b=_isNativeReflectConstruct();return function _0x229084(){var _0x1ced88=_0x2aff,_0x2db50f=_getPrototypeOf(_0x46910d),_0x153ded;if(_0x59ca9b){var _0x124004=_getPrototypeOf(this)[_0x1ced88(0x1ad)];_0x153ded=Reflect['construct'](_0x2db50f,arguments,_0x124004);}else _0x153ded=_0x2db50f[_0x1ced88(0x1ba)](this,arguments);return _possibleConstructorReturn(this,_0x153ded);};}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[_0x29f001(0x1a7)])throw new Error('请引入\x20heatmap.js\x20库\x20');var Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x29f001(0x1b7)]['BaseLayer'],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(_0x5b2ff4){var _0x472996={_0x36f0ac:0x17b,_0x4241ce:0x1a1},_0x493189={_0x5be28e:0x194,_0x325333:0x185,_0x9c62d1:0x199,_0x41f037:0x165,_0x4094dd:0x184},_0x21deb9={_0x4a04c6:0x17e,_0xf8d66d:0x18e,_0x50bf5f:0x1bc,_0x4f1673:0x1c0},_0x3a31e8={_0x34f95b:0x169,_0x3b2637:0x1b8,_0x10da29:0x180,_0x286793:0x1a4,_0x225d04:0x16e,_0x317e24:0x16f,_0x12da0c:0x1ab,_0x1d7ad8:0x16f,_0x376ac9:0x1a7,_0x2f0c03:0x182,_0xffac1c:0x171,_0x23e91d:0x1c0},_0x531d10={_0x2be3ac:0x174,_0xcfdc6:0x19c,_0x11bafc:0x188,_0x581e78:0x169},_0x2b3390={_0x4e1021:0x1ae,_0x599a65:0x186},_0x30ff14={_0x1dd522:0x18b,_0x39a1e7:0x16c,_0x5f1e0a:0x18f,_0x206940:0x1a4,_0x1328d4:0x1ae,_0x5664db:0x1b6,_0x43a8af:0x1be},_0x50d9d6={_0x12afba:0x1ae},_0x14119a={_0x14743c:0x18a,_0x58de11:0x164,_0x419d8a:0x1be,_0x36c06:0x1a3,_0x171a69:0x1b0,_0x5e03ad:0x18d},_0x281531={_0x4a7b80:0x18d,_0x1cf47a:0x1af,_0x386d1b:0x1af},_0x3e55d0={_0x2f2fa8:0x183,_0x45bee3:0x18b},_0x272681={_0x305895:0x166,_0x885220:0x1a4,_0x5bf823:0x18a},_0x143989={_0x448a97:0x1af},_0x4474ac={_0x5337dd:0x1b9,_0x48bf92:0x1a4},_0x11e34d={_0x4014d7:0x1ac,_0x4ca727:0x1a4,_0x4663fd:0x1be},_0x376746=_0x29f001;_inherits(_0x38a7f4,_0x5b2ff4);var _0x57f9ce=_createSuper(_0x38a7f4);function _0x38a7f4(){var _0x5cfb2b=_0x2aff,_0x110226,_0x3db376,_0x189c3c,_0x2f7125=arguments['length']>0x0&&arguments[0x0]!==undefined?arguments[0x0]:{};return _classCallCheck(this,_0x38a7f4),_0x189c3c=_0x57f9ce['call'](this,_0x2f7125),_0x189c3c['options']['maxCanvasSize']=(_0x110226=_0x189c3c['options']['maxCanvasSize'])!==null&&_0x110226!==void 0x0?_0x110226:document['body']['clientWidth'],_0x189c3c['options']['maxCanvasSize']=Math['min'](_0x189c3c['options']['maxCanvasSize'],0x1388),_0x189c3c['options'][_0x5cfb2b(_0x11e34d._0x4014d7)]=(_0x3db376=_0x189c3c[_0x5cfb2b(_0x11e34d._0x4ca727)]['minCanvasSize'])!==null&&_0x3db376!==void 0x0?_0x3db376:document['body']['clientHeight'],_0x189c3c['options']['minCanvasSize']=Math['max'](_0x189c3c['options'][_0x5cfb2b(0x1ac)],0x2bc),_0x189c3c['options']['heatStyle']=_objectSpread2(_objectSpread2({},DEF_HEATSTYLE),_0x189c3c['options']['heatStyle']||{}),_0x189c3c['options'][_0x5cfb2b(_0x11e34d._0x4663fd)]=_objectSpread2(_objectSpread2({},DEF_STYLE),_0x189c3c['options']['style']||{}),_0x189c3c;}return _createClass(_0x38a7f4,[{'key':'layer','get':function _0x449ab4(){return this['_layer'];}},{'key':_0x376746(_0x472996._0x36f0ac),'get':function _0x3a1367(){return this['options']['heatStyle'];},'set':function _0x206520(_0x5beae7){var _0x35a289=_0x376746;this['options']['heatStyle']=mars3d__namespace['Util']['merge'](this['options']['heatStyle'],_0x5beae7),this['_heat']&&(this['_heat'][_0x35a289(0x16a)](this['options']['heatStyle']),this['_updatePositionsHook'](!![]));}},{'key':'style','get':function _0x261185(){return this['options']['style'];},'set':function _0x399e4d(_0x48d982){var _0x57cec8=_0x376746;this[_0x57cec8(0x1a4)]['style']=mars3d__namespace[_0x57cec8(_0x4474ac._0x5337dd)]['merge'](this[_0x57cec8(_0x4474ac._0x48bf92)]['style'],_0x48d982);}},{'key':'positions','get':function _0x5b3974(){return this['_positions'];},'set':function _0x421b94(_0xd389e8){this['setPositions'](_0xd389e8);}},{'key':'coordinates','get':function _0x41750f(){var _0x78b98c=[];return this['points']['forEach'](function(_0x78bf6c){var _0xa431b6=_0x2aff;_0x78b98c['push'](_0x78bf6c[_0xa431b6(0x170)]());}),_0x78b98c;}},{'key':_0x376746(0x19c),'get':function _0x5e9993(){return this['_rectangle'];}},{'key':'_setOptionsHook','value':function _0x2dbd7d(_0x6c64db,_0x57a6e3){var _0x230102=_0x376746;_0x6c64db['positions']&&(this[_0x230102(0x18a)]=_0x6c64db['positions']);}},{'key':'_mountedHook','value':function _0x226b4c(){var _0x55db8d=_0x376746;this['style']['type']==='image'?this[_0x55db8d(0x1af)]=new mars3d__namespace['layer']['ImageLayer']({'crs':'EPSG:3857','private':!![]}):this[_0x55db8d(_0x143989._0x448a97)]=new mars3d__namespace['layer']['GraphicLayer']({'private':!![]});}},{'key':_0x376746(0x1a0),'value':function _0x505dcd(){var _0x117cc1=_0x376746;this['_map'][_0x117cc1(_0x272681._0x305895)](this['_layer']),this[_0x117cc1(_0x272681._0x885220)]['positions']&&(this[_0x117cc1(_0x272681._0x5bf823)]=this['options']['positions']),this['options']['flyTo']&&this[_0x117cc1(0x1bf)]();}},{'key':_0x376746(0x175),'value':function _0x4c3496(){var _0x8a786b=_0x376746;this['heatStyle']['container']&&(mars3d__namespace['DomUtil'][_0x8a786b(_0x3e55d0._0x2f2fa8)](this['heatStyle']['container']),delete this[_0x8a786b(0x17b)]['container']),this[_0x8a786b(_0x3e55d0._0x45bee3)](),this['_map']['removeLayer'](this['_layer']);}},{'key':'addPosition','value':function _0x5926a5(_0x27ff1a,_0x2a1982){var _0x366591=_0x376746;this['_positions']=this['_positions']||[],this[_0x366591(0x198)][_0x366591(0x1b2)](_0x27ff1a),this['_updatePositionsHook'](_0x2a1982);}},{'key':_0x376746(0x17d),'value':function _0x35191a(_0xe5fc88,_0x40b9e1){this['_positions']=_0xe5fc88,this['_updatePositionsHook'](_0x40b9e1);}},{'key':'clear','value':function _0xfec6fe(){var _0x2aca40=_0x376746;this[_0x2aca40(_0x281531._0x4a7b80)]&&(this[_0x2aca40(_0x281531._0x1cf47a)]['removeGraphic'](this[_0x2aca40(_0x281531._0x4a7b80)],!![]),delete this['_graphic']),this['_graphic2']&&(this[_0x2aca40(_0x281531._0x386d1b)]['removeGraphic'](this['_graphic2'],!![]),delete this['_graphic2']);}},{'key':'_updatePositionsHook','value':function _0x3200d0(_0xbd387a){var _0x387003=_0x376746;if(!this['show']||!this[_0x387003(0x1a9)]||!this['positions']||this[_0x387003(_0x14119a._0x14743c)]['length']===0x0)return this;var _0x437a94=this['_getHeatCanvas']();if(this['style']['type']==='image')this['_layer'][_0x387003(_0x14119a._0x58de11)]({'url':_0x437a94['toDataURL']('image/png'),'rectangle':this['_rectangle'],'opacity':this['style']['opacity']});else this[_0x387003(_0x14119a._0x419d8a)]['arc']?this['_graphic']&&_0xbd387a?(this[_0x387003(0x18d)][_0x387003(_0x14119a._0x36c06)]['image']=_0x437a94,this['_graphic']['uniforms']['bumpMap']=this['_getArcHeatCanvas'](),this[_0x387003(_0x14119a._0x171a69)]&&(this['_graphic2']['uniforms']['image']=_0x437a94,this[_0x387003(0x1b0)]['uniforms']['bumpMap']=this['_graphic']['uniforms']['bumpMap'])):this['_createArcGraphic'](_0x437a94):this[_0x387003(_0x14119a._0x5e03ad)]&&_0xbd387a?this['_graphic'][_0x387003(0x1a3)]['image']=_0x437a94:this[_0x387003(0x17a)](_0x437a94);return this;}},{'key':'_createGraphic','value':function _0x39b514(_0x4bbc9d){var _0x54e118=_0x376746;this['clear'](),this['_graphic']=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this['options']),{},{'rectangle':this[_0x54e118(_0x50d9d6._0x12afba)],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'material':new Cesium['Material']({'fabric':{'uniforms':{'image':_0x4bbc9d},'source':HeatMaterial},'translucent':!![]}),'flat':!![]})})),this['_layer'][_0x54e118(0x1b6)](this['_graphic']);}},{'key':'_createArcGraphic','value':function _0x54b53c(_0x328415){var _0x12122d=_0x376746,_0x33e97c;this[_0x12122d(_0x30ff14._0x1dd522)]();var _0x1ffd8c=Cesium['RenderState']['fromCache']({'cull':{'enabled':!![]},'depthTest':{'enabled':!![]},'stencilTest':{'enabled':!![],'frontFunction':Cesium[_0x12122d(0x1a5)][_0x12122d(0x1a2)],'frontOperation':{'fail':Cesium['StencilOperation'][_0x12122d(0x187)],'zFail':Cesium['StencilOperation'][_0x12122d(0x187)],'zPass':Cesium['StencilOperation'][_0x12122d(0x191)]},'backFunction':Cesium['StencilFunction']['ALWAYS'],'backOperation':{'fail':Cesium[_0x12122d(_0x30ff14._0x39a1e7)][_0x12122d(0x187)],'zFail':Cesium[_0x12122d(0x16c)]['KEEP'],'zPass':Cesium['StencilOperation']['REPLACE']},'reference':0x2,'mask':0x2},'blending':Cesium[_0x12122d(0x19f)]['ALPHA_BLEND']}),_0x191325=Math['floor']((_0x33e97c=this['style'][_0x12122d(_0x30ff14._0x5f1e0a)])!==null&&_0x33e97c!==void 0x0?_0x33e97c:this['_mBoundsMax']*0.02)+0.1;this['style'][_0x12122d(_0x30ff14._0x5f1e0a)]&&delete this['style']['diffHeight'];var _0x4ebb04=(this['style'][_0x12122d(0x1bb)],0x64),_0x78af29=Math[_0x12122d(0x16d)](this['_rectangle']['height'],this['_rectangle']['width']);this['style']['granularity']=_0x78af29/=_0x4ebb04;var _0x409971=new Cesium[(_0x12122d(0x1b5))]({'fabric':{'uniforms':{'image':_0x328415,'repeat':new Cesium[(_0x12122d(0x1aa))](0x1,0x1),'color':new Cesium['Color'](0x1,0x1,0x1,0x0),'bumpMap':this['_getArcHeatCanvas']()},'source':HeatMaterial},'translucent':!![]}),_0x2c5e3c=this['style']['arcDirection']||0x1;this[_0x12122d(0x18d)]=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this[_0x12122d(_0x30ff14._0x206940)]),{},{'rectangle':this[_0x12122d(_0x30ff14._0x1328d4)],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x1ffd8c,'material':_0x409971,'vertexShaderSource':getVertexShaderSource(_0x191325*_0x2c5e3c)})})),this['_layer'][_0x12122d(_0x30ff14._0x5664db)](this['_graphic']),this[_0x12122d(_0x30ff14._0x43a8af)]['arcDirection']===0x0&&(this['_graphic2']=new mars3d__namespace['graphic']['RectanglePrimitive'](_objectSpread2(_objectSpread2({},this[_0x12122d(0x1a4)]),{},{'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x1ffd8c,'material':_0x409971,'vertexShaderSource':getVertexShaderSource(-_0x191325)})})),this['_layer']['addGraphic'](this['_graphic2']));}},{'key':_0x376746(_0x472996._0x4241ce),'value':function _0x1b1a35(_0x48dc33){var _0x31264a=_0x376746;return _0x48dc33!==null&&_0x48dc33!==void 0x0&&_0x48dc33['isFormat']&&this[_0x31264a(_0x2b3390._0x4e1021)]?mars3d__namespace['PolyUtil'][_0x31264a(_0x2b3390._0x599a65)](this['_rectangle']):this['_rectangle'];}},{'key':'_getHeatCanvas','value':function _0x55c85f(){var _0x528dcc={_0x370ab6:0x199,_0x5d0124:0x1b2},_0x4467ad=_0x376746,_0x51895e=this,_0xbb12fb,_0x5b608a,_0x41eda2,_0x3a3317,_0x4d2e9a=this['_positions'],_0x311bbc=[],_0x19a76a,_0x3ef1b3,_0x46eced,_0x1a2560;_0x4d2e9a['forEach'](function(_0x1b876a){var _0x25e14f=_0x2aff,_0xd63da0=mars3d__namespace['LngLatPoint'][_0x25e14f(0x192)](_0x1b876a);if(!_0xd63da0)return;_0xd63da0[_0x25e14f(0x174)]=_0x1b876a[_0x25e14f(_0x531d10._0x2be3ac)]||0x1,!_0x51895e[_0x25e14f(0x1a4)][_0x25e14f(_0x531d10._0xcfdc6)]&&(_0x19a76a===undefined?(_0x19a76a=_0xd63da0['lng'],_0x3ef1b3=_0xd63da0['lng'],_0x46eced=_0xd63da0['lat'],_0x1a2560=_0xd63da0[_0x25e14f(_0x531d10._0x11bafc)]):(_0x19a76a=Math[_0x25e14f(_0x531d10._0x581e78)](_0x19a76a,_0xd63da0['lng']),_0x3ef1b3=Math['max'](_0x3ef1b3,_0xd63da0['lng']),_0x46eced=Math['min'](_0x46eced,_0xd63da0['lat']),_0x1a2560=Math['max'](_0x1a2560,_0xd63da0['lat']))),_0x311bbc['push'](_0xd63da0);});var _0x9518b6=this[_0x4467ad(0x1a4)]['rectangle']||{'xmin':_0x19a76a,'xmax':_0x3ef1b3,'ymin':_0x46eced,'ymax':_0x1a2560},_0x2506fa=getMercatorBounds(_0x9518b6),_0x336f3a=Math['abs'](_0x2506fa['xmax']-_0x2506fa[_0x4467ad(0x176)]),_0x3f80de=Math['abs'](_0x2506fa['ymax']-_0x2506fa['ymin']),_0x2b735d=Math['max'](_0x336f3a,_0x3f80de),_0x32a37e=Math[_0x4467ad(_0x3a31e8._0x34f95b)](_0x336f3a,_0x3f80de);this[_0x4467ad(_0x3a31e8._0x3b2637)]=_0x2b735d;var _0x1cc627=0x1;if(_0x2b735d>this['options']['maxCanvasSize'])_0x1cc627=_0x2b735d/this[_0x4467ad(0x1a4)][_0x4467ad(_0x3a31e8._0x10da29)],_0x32a37e/_0x1cc627<this[_0x4467ad(0x1a4)]['minCanvasSize']&&(_0x1cc627=_0x32a37e/this['options']['minCanvasSize']);else _0x32a37e<this['options']['minCanvasSize']&&(_0x1cc627=_0x32a37e/this['options']['minCanvasSize'],_0x2b735d/_0x1cc627>this[_0x4467ad(_0x3a31e8._0x286793)]['maxCanvasSize']&&(_0x1cc627=_0x2b735d/this['options']['maxCanvasSize']));var _0x34a35=this[_0x4467ad(0x17b)]['radius']*1.5,_0xcd25df=_0x336f3a/_0x1cc627+_0x34a35*0x2,_0x496d76=_0x3f80de/_0x1cc627+_0x34a35*0x2,_0x3a6c79=_0x34a35*_0x1cc627;_0x2506fa['xmin']-=_0x3a6c79,_0x2506fa['ymin']-=_0x3a6c79,_0x2506fa['xmax']+=_0x3a6c79,_0x2506fa[_0x4467ad(_0x3a31e8._0x225d04)]+=_0x3a6c79,this['_scale']=_0x1cc627,_0x9518b6=geLatLngBounds(_0x2506fa),this['_rectangle']=Cesium['Rectangle']['fromDegrees'](_0x9518b6['xmin'],_0x9518b6[_0x4467ad(_0x3a31e8._0x317e24)],_0x9518b6[_0x4467ad(_0x3a31e8._0x12da0c)],_0x9518b6['ymax']);var _0x2e4bda=(_0xbb12fb=_0x311bbc[0x0]['value'])!==null&&_0xbb12fb!==void 0x0?_0xbb12fb:0x1,_0x4c76fd=(_0x5b608a=_0x311bbc[0x0]['value'])!==null&&_0x5b608a!==void 0x0?_0x5b608a:0x0,_0x39d176=[];_0x311bbc['forEach'](function(_0x1b263d){var _0x31f9e8=_0x4467ad,_0x2a489e=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x1b263d['lng'],_0x1b263d['lat']]),_0x421714=_0x1b263d['value']||0x1,_0x4aa70c=Math[_0x31f9e8(_0x528dcc._0x370ab6)]((_0x2a489e[0x0]-_0x2506fa[_0x31f9e8(0x176)])/_0x1cc627),_0x112e69=Math['round']((_0x2506fa['ymax']-_0x2a489e[0x1])/_0x1cc627);_0x2e4bda=Math[_0x31f9e8(0x16d)](_0x2e4bda,_0x421714),_0x4c76fd=Math['min'](_0x4c76fd,_0x421714),_0x39d176[_0x31f9e8(_0x528dcc._0x5d0124)]({'x':_0x4aa70c,'y':_0x112e69,'value':_0x421714});});var _0x4a842e={'min':(_0x41eda2=this['options']['min'])!==null&&_0x41eda2!==void 0x0?_0x41eda2:_0x4c76fd,'max':(_0x3a3317=this[_0x4467ad(0x1a4)]['max'])!==null&&_0x3a3317!==void 0x0?_0x3a3317:_0x2e4bda,'data':_0x39d176};this['_last_heatData']=_0x4a842e;(!this['_last_mBounds']||_0x2506fa[_0x4467ad(0x176)]!==this['_last_mBounds']['xmin']||_0x2506fa['ymin']!==this['_last_mBounds'][_0x4467ad(_0x3a31e8._0x1d7ad8)]||_0x2506fa['xmax']!==this['_last_mBounds']['xmax']||_0x2506fa['ymax']!==this['_last_mBounds'][_0x4467ad(0x16e)])&&(this['_last_mBounds']=_0x2506fa,!this['heatStyle']['container']&&(this['heatStyle']['container']=mars3d__namespace['DomUtil'][_0x4467ad(_0x3a31e8._0x376ac9)]('div','mars3d-heatmap\x20mars3d-hideDiv',this[_0x4467ad(0x1a9)]['container'])),this['heatStyle'][_0x4467ad(_0x3a31e8._0x2f0c03)]['style']['cssText']='width:'['concat'](_0xcd25df,'px;height:')[_0x4467ad(_0x3a31e8._0xffac1c)](_0x496d76,'px;'),!this[_0x4467ad(_0x3a31e8._0x23e91d)]?this[_0x4467ad(0x1c0)]=h337__namespace['create'](this['heatStyle']):this['_heat']['configure'](this['heatStyle']));this['_heat']['setData'](_0x4a842e);var _0x5a1a27=mars3d__namespace['DomUtil']['copyCanvas'](this['_heat']['_renderer']['canvas']);return _0x5a1a27;}},{'key':'_getArcHeatCanvas','value':function _0x51a697(){var _0x13d762=_0x376746;this['_heat']['configure']({'radius':this['heatStyle']['radius']*this['style']['arcRadiusScale'],'blur':this['heatStyle'][_0x13d762(_0x21deb9._0x4a04c6)]*this[_0x13d762(0x1be)]['arcBlurScale'],'gradient':this['heatStyle']['gradientArc']||{0.25:_0x13d762(_0x21deb9._0xf8d66d),0.55:'rgb(140,140,140)',0.85:'rgb(216,216,216)',0x1:'rgb(255,255,255)'}});var _0x8f2f7a=mars3d__namespace['DomUtil'][_0x13d762(_0x21deb9._0x50bf5f)](this[_0x13d762(_0x21deb9._0x4f1673)]['_renderer'][_0x13d762(0x190)]);return this['_heat']['configure'](this['options']['heatStyle']),_0x8f2f7a;}},{'key':'getPointData','value':function _0x3c16ae(_0x3ebb25){var _0x51c860=_0x376746,_0x5086ee=mars3d__namespace['LngLatPoint']['parse'](_0x3ebb25);if(!_0x5086ee)return{};var _0x48516f=mars3d__namespace['PointTrans'][_0x51c860(0x19d)]([_0x5086ee[_0x51c860(_0x493189._0x5be28e)],_0x5086ee[_0x51c860(0x188)]]),_0x29f3fb=this[_0x51c860(_0x493189._0x325333)],_0x2c6e50=Math[_0x51c860(_0x493189._0x9c62d1)]((_0x48516f[0x0]-_0x29f3fb['xmin'])/this['_scale']),_0x50854b=Math[_0x51c860(_0x493189._0x9c62d1)]((_0x29f3fb['ymax']-_0x48516f[0x1])/this['_scale']),_0x209bdd=this['_heat'][_0x51c860(_0x493189._0x41f037)]({'x':_0x2c6e50,'y':_0x50854b}),_0xe67167=this['_heat'][_0x51c860(_0x493189._0x4094dd)]['ctx']['getImageData'](_0x2c6e50-0x1,_0x50854b-0x1,0x1,0x1)['data'];return{'x':_0x2c6e50,'y':_0x50854b,'value':_0x209bdd,'color':'rgba('+_0xe67167[0x0]+','+_0xe67167[0x1]+','+_0xe67167[0x2]+','+_0xe67167[0x3]+')'};}}]),_0x38a7f4;}(BaseLayer);mars3d__namespace['layer']['HeatLayer']=HeatLayer,mars3d__namespace['LayerUtil'][_0x29f001(0x19e)]('heat',HeatLayer);function getMercatorBounds(_0x55b936){var _0x4ae339={_0x10b71d:0x176},_0x428f71=_0x29f001,_0x41f4bf=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x55b936[_0x428f71(_0x4ae339._0x10b71d)],_0x55b936['ymin']]),_0x4b0e11=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x55b936['xmax'],_0x55b936['ymax']]);return{'xmin':_0x41f4bf[0x0],'ymin':_0x41f4bf[0x1],'xmax':_0x4b0e11[0x0],'ymax':_0x4b0e11[0x1]};}function geLatLngBounds(_0x1875e1){var _0x34ca2f={_0x3fffcb:0x197},_0x352551=_0x29f001,_0x10ff1e=mars3d__namespace['PointTrans']['mercator2lonlat']([_0x1875e1['xmin'],_0x1875e1[_0x352551(0x16f)]]),_0x11a5ec=mars3d__namespace[_0x352551(0x179)][_0x352551(_0x34ca2f._0x3fffcb)]([_0x1875e1['xmax'],_0x1875e1['ymax']]);return{'xmin':_0x10ff1e[0x0],'ymin':_0x10ff1e[0x1],'xmax':_0x11a5ec[0x0],'ymax':_0x11a5ec[0x1]};}function getVertexShaderSource(_0x136170){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'](_0x136170,';\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[_0x29f001(0x19b)]=HeatLayer,Object['defineProperty'](exports,'__esModule',{'value':!![]});
}));
{
"name": "mars3d-heatmap",
"version": "3.4.22",
"version": "3.4.23",
"description": "Mars3D平台插件,结合heatmap可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.4.22"
"mars3d": "~3.4.23"
},

@@ -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