New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mars3d-heatmap

Package Overview
Dependencies
Maintainers
1
Versions
162
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.6.6 to 3.6.7

6

dist/mars3d-heatmap.js
/**
* Mars3D平台插件,结合heatmap可视化功能插件 mars3d-heatmap
*
* 版本信息:v3.6.6
* 编译日期:2023-09-19 21:39:49
* 版本信息:v3.6.7
* 编译日期:2023-09-26 10:50:35
* 版权所有:Copyright by 火星科技 http://mars3d.cn

@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17

})(this, (function (exports, mars3d, h337) {
'use strict';const _0x1dfc2f=_0x3a23;(function(_0x208831,_0x4bbc1b){const _0x4c3fc4={_0x599053:0x1c0,_0x9c6c11:0x1ed,_0x3bd868:0x20a,_0x4229a6:0x1bf,_0x3c438d:0x204,_0x35add6:0x1d8,_0x527dcf:0x209},_0x2f3066=_0x3a23,_0x46c7fc=_0x208831();while(!![]){try{const _0x34e85e=-parseInt(_0x2f3066(_0x4c3fc4._0x599053))/0x1*(parseInt(_0x2f3066(_0x4c3fc4._0x9c6c11))/0x2)+-parseInt(_0x2f3066(_0x4c3fc4._0x3bd868))/0x3+-parseInt(_0x2f3066(0x1da))/0x4*(-parseInt(_0x2f3066(_0x4c3fc4._0x4229a6))/0x5)+parseInt(_0x2f3066(0x222))/0x6*(parseInt(_0x2f3066(0x21b))/0x7)+parseInt(_0x2f3066(_0x4c3fc4._0x3c438d))/0x8*(parseInt(_0x2f3066(_0x4c3fc4._0x35add6))/0x9)+-parseInt(_0x2f3066(0x223))/0xa*(-parseInt(_0x2f3066(0x1f7))/0xb)+-parseInt(_0x2f3066(_0x4c3fc4._0x527dcf))/0xc*(parseInt(_0x2f3066(0x1bd))/0xd);if(_0x34e85e===_0x4bbc1b)break;else _0x46c7fc['push'](_0x46c7fc['shift']());}catch(_0x146d61){_0x46c7fc['push'](_0x46c7fc['shift']());}}}(_0x50f7,0x82161));function _interopNamespace(_0x490f07){const _0x37c46e={_0x5c84c4:0x1d1},_0x482725={_0xef0438:0x201},_0x8a7251=_0x3a23;if(_0x490f07&&_0x490f07['__esModule'])return _0x490f07;var _0x42d3ee=Object['create'](null);return _0x490f07&&Object[_0x8a7251(_0x37c46e._0x5c84c4)](_0x490f07)['forEach'](function(_0x5df6d6){const _0x549fa9=_0x8a7251;if(_0x5df6d6!=='default'){var _0x5f3237=Object['getOwnPropertyDescriptor'](_0x490f07,_0x5df6d6);Object[_0x549fa9(0x1fd)](_0x42d3ee,_0x5df6d6,_0x5f3237[_0x549fa9(_0x482725._0xef0438)]?_0x5f3237:{'enumerable':!![],'get':function(){return _0x490f07[_0x5df6d6];}});}}),_0x42d3ee[_0x8a7251(0x203)]=_0x490f07,_0x42d3ee;}function _0x50f7(){const _0x5313e6=['GraphicLayer','green','VERTEX_FORMAT','BlendingState','uniforms','_mBoundsMax','image/png','_positions','canvas','addGraphic','diffHeight','minCanvasSize','EPSG:3857','_getHeatCanvas','keys','REPLACE','ymax','EllipsoidSurfaceAppearance','isFormat','coordinates','PolyUtil','44802uNKiDV','max','549264RxanOP','StencilFunction','rgb(0,0,0)','image','_renderer','_last_heatData','setData','gradientArc','_graphic','fromCache','options','value','div','parse','formatRectangle','_rectangle','Material','clientWidth','_last_mBounds','9774YeJtJM','radius','lng','removeGraphic','lat','granularity','_scale','_updatePositionsHook','heatStyle','ymin','22FuAQRE','_layer','round','_graphic2','push','StencilOperation','defineProperty','DomUtil','_createGraphic','removeLayer','get','_heat','default','16vMHmDK','arcBlurScale','PointTrans','rectangle','graphic','12GlpQnj','728310UoNRkR','layer','blue','xmin','_map','style','KEEP','positions','getPointData','setPositions','configure','RectanglePrimitive','Color','_getArcHeatCanvas','copyCanvas','LayerUtil','Rectangle','21xHLhjI','_container','lonlat2mercator','min','clientHeight','clear','create','1990638wjNzed','275910cEzFVH','register','3016741hlEBuq','_addedHook','10iDXRkO','67DyktNQ','in\x20vec3\x20position3DHigh;\x0a\x20\x20in\x20vec3\x20position3DLow;\x0a\x20\x20in\x20vec2\x20st;\x0a\x20\x20in\x20float\x20batchId;\x0a\x20\x20uniform\x20sampler2D\x20bumpMap_3;\x0a\x20\x20out\x20vec3\x20v_positionMC;\x0a\x20\x20out\x20vec3\x20v_positionEC;\x0a\x20\x20out\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=\x20texture(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','_mountedHook'];_0x50f7=function(){return _0x5313e6;};return _0x50f7();}var mars3d__namespace=_interopNamespace(mars3d),h337__namespace=_interopNamespace(h337),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=\x20texture(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['create'])throw new Error('请引入\x20heatmap.js\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'],DEF_HEATSTYLE={'maxOpacity':0.8,'minOpacity':0.1,'blur':0.85,'radius':0x19,'gradient':{0.4:_0x1dfc2f(0x20c),0.6:_0x1dfc2f(0x1c4),0.8:'yellow',0.9:'red'}},DEF_STYLE={'arcRadiusScale':1.5,'arcBlurScale':1.5,'vertexFormat':Cesium['EllipsoidSurfaceAppearance'][_0x1dfc2f(0x1c5)]};class HeatLayer extends BaseLayer{constructor(_0x42a32c={}){const _0x9e65={_0x369243:0x1eb,_0x242161:0x21e,_0x2e8bee:0x1ce,_0x1fa979:0x1f5},_0xbefe2b=_0x1dfc2f;super(_0x42a32c),this['options']['maxCanvasSize']=this[_0xbefe2b(0x1e4)]['maxCanvasSize']??document['body'][_0xbefe2b(_0x9e65._0x369243)],this[_0xbefe2b(0x1e4)]['maxCanvasSize']=Math[_0xbefe2b(_0x9e65._0x242161)](this['options']['maxCanvasSize'],0x1388),this['options']['minCanvasSize']=this['options']['minCanvasSize']??document['body'][_0xbefe2b(0x21f)],this['options'][_0xbefe2b(_0x9e65._0x2e8bee)]=Math['max'](this['options']['minCanvasSize'],0x2bc),this['options'][_0xbefe2b(_0x9e65._0x1fa979)]={...DEF_HEATSTYLE,...this['options']['heatStyle']},this['options']['style']={...DEF_STYLE,...this['options'][_0xbefe2b(0x20f)]};}get[_0x1dfc2f(0x20b)](){const _0x560ead=_0x1dfc2f;return this[_0x560ead(0x1f8)];}get['heatStyle'](){return this['options']['heatStyle'];}set['heatStyle'](_0x413e02){const _0x1b36a0={_0xd3f2db:0x1e4,_0x2d9421:0x202},_0x25cac6=_0x1dfc2f;this['options']['heatStyle']=mars3d__namespace['Util']['merge'](this[_0x25cac6(_0x1b36a0._0xd3f2db)]['heatStyle'],_0x413e02),this[_0x25cac6(_0x1b36a0._0x2d9421)]&&(this['_heat'][_0x25cac6(0x214)](this['options']['heatStyle']),this['_updatePositionsHook'](!![]));}get[_0x1dfc2f(0x20f)](){const _0xb2554={_0xb4f01b:0x1e4,_0x46b8f4:0x20f},_0x176770=_0x1dfc2f;return this[_0x176770(_0xb2554._0xb4f01b)][_0x176770(_0xb2554._0x46b8f4)];}set['style'](_0x58c67f){const _0x120562={_0x375883:0x20f},_0x5a02ed=_0x1dfc2f;this['options'][_0x5a02ed(0x20f)]=mars3d__namespace['Util']['merge'](this['options'][_0x5a02ed(_0x120562._0x375883)],_0x58c67f);}get['positions'](){return this['_positions'];}set['positions'](_0x13b822){const _0xe030b3=_0x1dfc2f;this[_0xe030b3(0x213)](_0x13b822);}get[_0x1dfc2f(0x1d6)](){const _0x477514={_0x4d563a:0x1fb},_0x33b4ec=[];return this['points']['forEach'](_0x25eda7=>{const _0x57680b=_0x3a23;_0x33b4ec[_0x57680b(_0x477514._0x4d563a)](_0x25eda7['toArray']());}),_0x33b4ec;}get['rectangle'](){const _0x2a4392=_0x1dfc2f;return this[_0x2a4392(0x1e9)];}['_setOptionsHook'](_0x9d8991,_0x1f2465){const _0x283313={_0x3832cb:0x211},_0x5dc6a5=_0x1dfc2f;_0x9d8991['positions']&&(this['positions']=_0x9d8991[_0x5dc6a5(_0x283313._0x3832cb)]);}[_0x1dfc2f(0x1c2)](){const _0x2dd2e8={_0x4f2f9b:0x1cf,_0x62f298:0x1c3},_0x3adf74=_0x1dfc2f;this['style']['type']===_0x3adf74(0x1dd)?this['_layer']=new mars3d__namespace['layer']['ImageLayer']({'crs':_0x3adf74(_0x2dd2e8._0x4f2f9b),'private':!![]}):this['_layer']=new mars3d__namespace[(_0x3adf74(0x20b))][(_0x3adf74(_0x2dd2e8._0x62f298))]({'private':!![]});}[_0x1dfc2f(0x1be)](){const _0x5ddffa={_0x39115c:0x1f8,_0x5c4778:0x1e6,_0x1835aa:0x211},_0x39f5b6=_0x1dfc2f;this['_map']['addLayer'](this[_0x39f5b6(_0x5ddffa._0x39115c)]),this['_container']=mars3d__namespace[_0x39f5b6(0x1fe)]['create'](_0x39f5b6(_0x5ddffa._0x5c4778),'mars3d-heatmap\x20mars3d-hideDiv',this[_0x39f5b6(0x20e)]['container']),this['options']['positions']&&(this['positions']=this['options'][_0x39f5b6(_0x5ddffa._0x1835aa)]),this['options']['flyTo']&&this['flyToByAnimationEnd']();}['_removedHook'](){const _0x384e98={_0x5aaf6e:0x21c,_0x423486:0x200},_0x1dc1c7=_0x1dfc2f;this['_container']&&(mars3d__namespace['DomUtil']['remove'](this[_0x1dc1c7(0x21c)]),delete this[_0x1dc1c7(_0x384e98._0x5aaf6e)]),this[_0x1dc1c7(0x220)](),this['_map'][_0x1dc1c7(_0x384e98._0x423486)](this['_layer']);}['addPosition'](_0x71d57f,_0x2682f2){const _0x561f56=_0x1dfc2f;this['_positions']=this['_positions']||[],this['_positions']['push'](_0x71d57f),this[_0x561f56(0x1f4)](_0x2682f2);}['setPositions'](_0x3491a8,_0x1f72d1){this['_positions']=_0x3491a8,this['_updatePositionsHook'](_0x1f72d1);}[_0x1dfc2f(0x220)](){const _0x1e4077={_0x77f873:0x1f0,_0x3d9f08:0x1fa},_0x5c3273=_0x1dfc2f;this['_graphic']&&(this['_layer'][_0x5c3273(0x1f0)](this['_graphic'],!![]),delete this['_graphic']),this['_graphic2']&&(this['_layer'][_0x5c3273(_0x1e4077._0x77f873)](this[_0x5c3273(_0x1e4077._0x3d9f08)],!![]),delete this['_graphic2']);}[_0x1dfc2f(0x1f4)](_0x2d0fee){const _0x2814f7={_0x5baf26:0x20f,_0x519afc:0x1dd,_0x428245:0x217,_0x42d9fe:0x1e2,_0x11db82:0x1e2},_0x4c79e5=_0x1dfc2f;if(!this['show']||!this['_map']||!this['positions']||this[_0x4c79e5(0x211)]['length']===0x0)return this;const _0x5efd64=this[_0x4c79e5(0x1d0)]();if(this['style']['type']==='image')this['_layer']['setOptions']({'url':_0x5efd64['toDataURL'](_0x4c79e5(0x1c9)),'rectangle':this['_rectangle'],'opacity':this[_0x4c79e5(0x20f)]['opacity']});else this[_0x4c79e5(_0x2814f7._0x5baf26)]['arc']?this['_graphic']&&_0x2d0fee?(this['_graphic'][_0x4c79e5(0x1c7)][_0x4c79e5(_0x2814f7._0x519afc)]=_0x5efd64,this['_graphic'][_0x4c79e5(0x1c7)]['bumpMap']=this[_0x4c79e5(_0x2814f7._0x428245)](),this['_graphic2']&&(this[_0x4c79e5(0x1fa)]['uniforms']['image']=_0x5efd64,this['_graphic2']['uniforms']['bumpMap']=this[_0x4c79e5(_0x2814f7._0x42d9fe)]['uniforms']['bumpMap'])):this['_createArcGraphic'](_0x5efd64):this['_graphic']&&_0x2d0fee?this[_0x4c79e5(_0x2814f7._0x11db82)]['uniforms']['image']=_0x5efd64:this['_createGraphic'](_0x5efd64);return this;}[_0x1dfc2f(0x1ff)](_0x477e49){const _0x5bc997=_0x1dfc2f;this[_0x5bc997(0x220)](),this['_graphic']=new mars3d__namespace['graphic']['RectanglePrimitive']({...this[_0x5bc997(0x1e4)],'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'material':new Cesium[(_0x5bc997(0x1ea))]({'fabric':{'uniforms':{'image':_0x477e49},'source':HeatMaterial},'translucent':!![]}),'flat':!![]})}),this['_layer']['addGraphic'](this['_graphic']);}['_createArcGraphic'](_0x1cf251){const _0x5446e1={_0x3fa96e:0x1fc,_0x48247e:0x210,_0x32a39a:0x210,_0x202079:0x1c6,_0x430fac:0x20f,_0x490aa7:0x1cd,_0x451407:0x1e9,_0x5dadd4:0x1f2,_0xb5b459:0x216,_0x2d6dfd:0x1e2,_0x42b82f:0x1f8,_0x35175c:0x1cc,_0x1194ce:0x215,_0x126b27:0x1e4,_0x1861d9:0x1d4,_0x1d6ad3:0x1fa},_0x308909=_0x1dfc2f;this[_0x308909(0x220)]();const _0x382b57=Cesium['RenderState'][_0x308909(0x1e3)]({'cull':{'enabled':!![]},'depthTest':{'enabled':!![]},'stencilTest':{'enabled':!![],'frontFunction':Cesium['StencilFunction']['ALWAYS'],'frontOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium[_0x308909(0x1fc)]['KEEP'],'zPass':Cesium[_0x308909(_0x5446e1._0x3fa96e)]['REPLACE']},'backFunction':Cesium[_0x308909(0x1db)]['ALWAYS'],'backOperation':{'fail':Cesium[_0x308909(0x1fc)][_0x308909(_0x5446e1._0x48247e)],'zFail':Cesium['StencilOperation'][_0x308909(_0x5446e1._0x32a39a)],'zPass':Cesium['StencilOperation'][_0x308909(0x1d2)]},'reference':0x2,'mask':0x2},'blending':Cesium[_0x308909(_0x5446e1._0x202079)]['ALPHA_BLEND']}),_0x38aa57=Math['floor'](this[_0x308909(_0x5446e1._0x430fac)]['diffHeight']??this['_mBoundsMax']*0.02)+0.1;this[_0x308909(_0x5446e1._0x430fac)]['diffHeight']&&delete this['style'][_0x308909(_0x5446e1._0x490aa7)];const _0x468045=(this['style']['splitNum'],0x64);let _0x7ae74a=Math['max'](this[_0x308909(_0x5446e1._0x451407)]['height'],this['_rectangle']['width']);this['style'][_0x308909(_0x5446e1._0x5dadd4)]=_0x7ae74a/=_0x468045;const _0x251f39=new Cesium['Material']({'fabric':{'uniforms':{'image':_0x1cf251,'repeat':new Cesium['Cartesian2'](0x1,0x1),'color':new Cesium[(_0x308909(_0x5446e1._0xb5b459))](0x1,0x1,0x1,0x0),'bumpMap':this['_getArcHeatCanvas']()},'source':HeatMaterial},'translucent':!![]}),_0x220785=this['style']['arcDirection']||0x1;this[_0x308909(_0x5446e1._0x2d6dfd)]=new mars3d__namespace['graphic']['RectanglePrimitive']({...this['options'],'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x382b57,'material':_0x251f39,'vertexShaderSource':getVertexShaderSource(_0x38aa57*_0x220785)})}),this[_0x308909(_0x5446e1._0x42b82f)][_0x308909(_0x5446e1._0x35175c)](this['_graphic']),this['style']['arcDirection']===0x0&&(this['_graphic2']=new mars3d__namespace[(_0x308909(0x208))][(_0x308909(_0x5446e1._0x1194ce))]({...this[_0x308909(_0x5446e1._0x126b27)],'rectangle':this['_rectangle'],'appearance':new Cesium[(_0x308909(_0x5446e1._0x1861d9))]({'flat':!![],'aboveGround':!![],'renderState':_0x382b57,'material':_0x251f39,'vertexShaderSource':getVertexShaderSource(-_0x38aa57)})}),this['_layer']['addGraphic'](this[_0x308909(_0x5446e1._0x1d6ad3)]));}['getRectangle'](_0x5ab468){const _0x12ecde={_0x55199c:0x1e9},_0x59b9e5=_0x1dfc2f;return _0x5ab468!==null&&_0x5ab468!==void 0x0&&_0x5ab468[_0x59b9e5(0x1d5)]&&this['_rectangle']?mars3d__namespace[_0x59b9e5(0x1d7)][_0x59b9e5(0x1e8)](this[_0x59b9e5(_0x12ecde._0x55199c)]):this['_rectangle'];}['_getHeatCanvas'](){const _0x2b9716={_0x227596:0x1ca,_0x26137c:0x1f6,_0x26972e:0x1d9,_0x26884d:0x1e4,_0x4b7e6d:0x1ce,_0x2729ff:0x1f6,_0x11a62b:0x1e9,_0x59e04e:0x21a,_0x1f1bb6:0x1d3,_0x552cb2:0x1ec,_0x4bb4ff:0x1f5,_0x155d48:0x21c,_0x55bde1:0x1e0,_0x522990:0x1de},_0x2ca883={_0x50851c:0x21d,_0x3eff52:0x1f1},_0x45398c={_0x41516b:0x1ef},_0x44535d=_0x1dfc2f,_0x2669da=this[_0x44535d(_0x2b9716._0x227596)],_0x564152=[];let _0x70bac5,_0x76831c,_0x229888,_0x2ff494;_0x2669da['forEach'](_0x547d82=>{const _0x5c2b63=_0x44535d,_0x1d5697=mars3d__namespace['LngLatPoint']['parse'](_0x547d82);if(!_0x1d5697)return;_0x1d5697[_0x5c2b63(0x1e5)]=_0x547d82['value']||0x1,!this['options']['rectangle']&&(_0x70bac5===undefined?(_0x70bac5=_0x1d5697['lng'],_0x76831c=_0x1d5697[_0x5c2b63(_0x45398c._0x41516b)],_0x229888=_0x1d5697['lat'],_0x2ff494=_0x1d5697['lat']):(_0x70bac5=Math['min'](_0x70bac5,_0x1d5697['lng']),_0x76831c=Math['max'](_0x76831c,_0x1d5697['lng']),_0x229888=Math['min'](_0x229888,_0x1d5697['lat']),_0x2ff494=Math['max'](_0x2ff494,_0x1d5697['lat']))),_0x564152[_0x5c2b63(0x1fb)](_0x1d5697);});_0x70bac5===_0x76831c&&(_0x70bac5-=0.000001,_0x76831c+=0.000001);_0x229888===_0x2ff494&&(_0x229888-=0.000001,_0x2ff494+=0.000001);let _0x5768ca=this['options'][_0x44535d(0x207)]||{'xmin':_0x70bac5,'xmax':_0x76831c,'ymin':_0x229888,'ymax':_0x2ff494};const _0xb3684a=getMercatorBounds(_0x5768ca),_0x3feb64=Math['abs'](_0xb3684a['xmax']-_0xb3684a['xmin']),_0x42d509=Math['abs'](_0xb3684a['ymax']-_0xb3684a[_0x44535d(_0x2b9716._0x26137c)]),_0x3c06ec=Math[_0x44535d(_0x2b9716._0x26972e)](_0x3feb64,_0x42d509),_0x4f267a=Math['min'](_0x3feb64,_0x42d509);this[_0x44535d(0x1c8)]=_0x3c06ec;let _0x5b9668=0x1;if(_0x3c06ec>this['options']['maxCanvasSize'])_0x5b9668=_0x3c06ec/this['options']['maxCanvasSize'],_0x4f267a/_0x5b9668<this[_0x44535d(_0x2b9716._0x26884d)]['minCanvasSize']&&(_0x5b9668=_0x4f267a/this['options'][_0x44535d(0x1ce)]);else _0x4f267a<this['options'][_0x44535d(_0x2b9716._0x4b7e6d)]&&(_0x5b9668=_0x4f267a/this['options']['minCanvasSize'],_0x3c06ec/_0x5b9668>this['options']['maxCanvasSize']&&(_0x5b9668=_0x3c06ec/this['options']['maxCanvasSize']));const _0x2aa5e8=this[_0x44535d(0x1f5)]['radius']*1.5,_0x4de616=_0x3feb64/_0x5b9668+_0x2aa5e8*0x2,_0x24edaf=_0x42d509/_0x5b9668+_0x2aa5e8*0x2,_0x1718d6=_0x2aa5e8*_0x5b9668;_0xb3684a['xmin']-=_0x1718d6,_0xb3684a[_0x44535d(_0x2b9716._0x2729ff)]-=_0x1718d6,_0xb3684a['xmax']+=_0x1718d6,_0xb3684a['ymax']+=_0x1718d6,this[_0x44535d(0x1f3)]=_0x5b9668,_0x5768ca=geLatLngBounds(_0xb3684a),this[_0x44535d(_0x2b9716._0x11a62b)]=Cesium[_0x44535d(_0x2b9716._0x59e04e)]['fromDegrees'](_0x5768ca[_0x44535d(0x20d)],_0x5768ca['ymin'],_0x5768ca['xmax'],_0x5768ca[_0x44535d(_0x2b9716._0x1f1bb6)]);let _0x1d8917=_0x564152[0x0]['value']??0x1,_0x16b852=_0x564152[0x0][_0x44535d(0x1e5)]??0x0;const _0x2ee587=[];_0x564152['forEach'](_0x5deb77=>{const _0x59b6c4=_0x44535d,_0x253e89=mars3d__namespace[_0x59b6c4(0x206)][_0x59b6c4(_0x2ca883._0x50851c)]([_0x5deb77['lng'],_0x5deb77[_0x59b6c4(_0x2ca883._0x3eff52)]]),_0x54ee84=_0x5deb77['value']||0x1,_0x5c6613=Math['round']((_0x253e89[0x0]-_0xb3684a['xmin'])/_0x5b9668),_0x3a384f=Math['round']((_0xb3684a[_0x59b6c4(0x1d3)]-_0x253e89[0x1])/_0x5b9668);_0x1d8917=Math['max'](_0x1d8917,_0x54ee84),_0x16b852=Math['min'](_0x16b852,_0x54ee84),_0x2ee587['push']({'x':_0x5c6613,'y':_0x3a384f,'value':_0x54ee84});});const _0x2771c8={'min':this['options'][_0x44535d(0x21e)]??_0x16b852,'max':this['options']['max']??_0x1d8917,'data':_0x2ee587};this[_0x44535d(0x1df)]=_0x2771c8;if(!this[_0x44535d(_0x2b9716._0x552cb2)]||_0xb3684a[_0x44535d(0x20d)]!==this[_0x44535d(0x1ec)][_0x44535d(0x20d)]||_0xb3684a['ymin']!==this['_last_mBounds']['ymin']||_0xb3684a['xmax']!==this[_0x44535d(0x1ec)]['xmax']||_0xb3684a['ymax']!==this['_last_mBounds']['ymax']){this['_last_mBounds']=_0xb3684a,this['_container'][_0x44535d(0x20f)]['cssText']='width:'+_0x4de616+'px;height:'+_0x24edaf+'px;';const _0x3dd168={...this[_0x44535d(_0x2b9716._0x4bb4ff)],'container':this[_0x44535d(_0x2b9716._0x155d48)]};!this['_heat']?this['_heat']=h337__namespace[_0x44535d(0x221)](_0x3dd168):this['_heat']['configure'](_0x3dd168);}this['_heat'][_0x44535d(_0x2b9716._0x55bde1)](_0x2771c8);const _0x55fa68=mars3d__namespace['DomUtil']['copyCanvas'](this['_heat'][_0x44535d(_0x2b9716._0x522990)][_0x44535d(0x1cb)]);return _0x55fa68;}['_getArcHeatCanvas'](){const _0x4638f8={_0x22b8a3:0x1ee,_0x7fa45e:0x20f,_0xde4a11:0x1de},_0x3414c9=_0x1dfc2f;this['_heat']['configure']({'radius':this[_0x3414c9(0x1f5)][_0x3414c9(_0x4638f8._0x22b8a3)]*this['style']['arcRadiusScale'],'blur':this['heatStyle']['blur']*this[_0x3414c9(_0x4638f8._0x7fa45e)][_0x3414c9(0x205)],'gradient':this['heatStyle'][_0x3414c9(0x1e1)]||{0.25:_0x3414c9(0x1dc),0.55:'rgb(140,140,140)',0.85:'rgb(216,216,216)',0x1:'rgb(255,255,255)'}});const _0x47e451=mars3d__namespace['DomUtil'][_0x3414c9(0x218)](this[_0x3414c9(0x202)][_0x3414c9(_0x4638f8._0xde4a11)]['canvas']);return this['_heat'][_0x3414c9(0x214)](this[_0x3414c9(0x1e4)][_0x3414c9(0x1f5)]),_0x47e451;}[_0x1dfc2f(0x212)](_0x30e99e){const _0xa91e8b={_0x5a2bde:0x1e7,_0x82db66:0x1f1},_0x25287c=_0x1dfc2f,_0x3b55c6=mars3d__namespace['LngLatPoint'][_0x25287c(_0xa91e8b._0x5a2bde)](_0x30e99e);if(!_0x3b55c6)return{};const _0x2ed155=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x3b55c6[_0x25287c(0x1ef)],_0x3b55c6[_0x25287c(_0xa91e8b._0x82db66)]]),_0x204f96=this['_last_mBounds'],_0x29431c=Math[_0x25287c(0x1f9)]((_0x2ed155[0x0]-_0x204f96['xmin'])/this['_scale']),_0x5c48cd=Math[_0x25287c(0x1f9)]((_0x204f96[_0x25287c(0x1d3)]-_0x2ed155[0x1])/this['_scale']),_0x20a67e=this['_heat']['getValueAt']({'x':_0x29431c,'y':_0x5c48cd}),_0x2e7b00=this[_0x25287c(0x202)]['_renderer']['ctx']['getImageData'](_0x29431c-0x1,_0x5c48cd-0x1,0x1,0x1)['data'];return{'x':_0x29431c,'y':_0x5c48cd,'value':_0x20a67e,'color':'rgba('+_0x2e7b00[0x0]+','+_0x2e7b00[0x1]+','+_0x2e7b00[0x2]+','+_0x2e7b00[0x3]+')'};}}mars3d__namespace[_0x1dfc2f(0x219)][_0x1dfc2f(0x224)]('heat',HeatLayer),mars3d__namespace['layer']['HeatLayer']=HeatLayer,mars3d__namespace['h337']=h337__namespace;function getMercatorBounds(_0x244309){const _0x25e19e={_0x1efbf4:0x1f6},_0x36d913=_0x1dfc2f,_0x26f961=mars3d__namespace[_0x36d913(0x206)]['lonlat2mercator']([_0x244309['xmin'],_0x244309[_0x36d913(_0x25e19e._0x1efbf4)]]),_0x527e23=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x244309['xmax'],_0x244309['ymax']]);return{'xmin':_0x26f961[0x0],'ymin':_0x26f961[0x1],'xmax':_0x527e23[0x0],'ymax':_0x527e23[0x1]};}function geLatLngBounds(_0x1de701){const _0x2e27c8={_0x1b484b:0x20d,_0x12018d:0x1d3},_0x4655c7=_0x1dfc2f,_0x4ba517=mars3d__namespace['PointTrans']['mercator2lonlat']([_0x1de701[_0x4655c7(_0x2e27c8._0x1b484b)],_0x1de701['ymin']]),_0x5538ea=mars3d__namespace['PointTrans']['mercator2lonlat']([_0x1de701['xmax'],_0x1de701[_0x4655c7(_0x2e27c8._0x12018d)]]);return{'xmin':_0x4ba517[0x0],'ymin':_0x4ba517[0x1],'xmax':_0x5538ea[0x0],'ymax':_0x5538ea[0x1]};}function _0x3a23(_0x23a00f,_0x31bb5c){const _0x50f7bb=_0x50f7();return _0x3a23=function(_0x3a2388,_0xe5c87b){_0x3a2388=_0x3a2388-0x1bd;let _0x47df86=_0x50f7bb[_0x3a2388];return _0x47df86;},_0x3a23(_0x23a00f,_0x31bb5c);}function getVertexShaderSource(_0xbe5e76){const _0x29bbac=_0x1dfc2f;return _0x29bbac(0x1c1)+_0xbe5e76+';\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[_0x1dfc2f(0x1fd)](exports,'__esModule',{'value':!![]});
'use strict';const _0x250caa=_0xa203;function _0xa203(_0x10c7e4,_0x304325){const _0x5cefe4=_0x5cef();return _0xa203=function(_0xa20351,_0x537b59){_0xa20351=_0xa20351-0x1af;let _0x22e324=_0x5cefe4[_0xa20351];return _0x22e324;},_0xa203(_0x10c7e4,_0x304325);}(function(_0x46f4a3,_0x249b2f){const _0x1f2eea={_0x1011db:0x207,_0x2a3576:0x1fc,_0x5caf15:0x204,_0x5008d2:0x1c8},_0x435331=_0xa203,_0xcf83db=_0x46f4a3();while(!![]){try{const _0x49144d=parseInt(_0x435331(_0x1f2eea._0x1011db))/0x1+-parseInt(_0x435331(0x1d3))/0x2*(-parseInt(_0x435331(0x1f2))/0x3)+-parseInt(_0x435331(0x1e8))/0x4+-parseInt(_0x435331(0x1fb))/0x5+parseInt(_0x435331(0x1f8))/0x6*(-parseInt(_0x435331(0x1d2))/0x7)+-parseInt(_0x435331(_0x1f2eea._0x2a3576))/0x8*(parseInt(_0x435331(_0x1f2eea._0x5caf15))/0x9)+parseInt(_0x435331(_0x1f2eea._0x5008d2))/0xa;if(_0x49144d===_0x249b2f)break;else _0xcf83db['push'](_0xcf83db['shift']());}catch(_0x594540){_0xcf83db['push'](_0xcf83db['shift']());}}}(_0x5cef,0x383d3));function _interopNamespace(_0x46c252){const _0x459699={_0x340eca:0x206},_0xd41b7f={_0x103764:0x1af,_0x2755a6:0x1da,_0x52ecbf:0x1f0},_0xdd4b77=_0xa203;if(_0x46c252&&_0x46c252['__esModule'])return _0x46c252;var _0x544fa8=Object['create'](null);return _0x46c252&&Object['keys'](_0x46c252)[_0xdd4b77(_0x459699._0x340eca)](function(_0x243334){const _0x29465b=_0xdd4b77;if(_0x243334!==_0x29465b(_0xd41b7f._0x103764)){var _0x3de55f=Object[_0x29465b(_0xd41b7f._0x2755a6)](_0x46c252,_0x243334);Object[_0x29465b(0x202)](_0x544fa8,_0x243334,_0x3de55f[_0x29465b(_0xd41b7f._0x52ecbf)]?_0x3de55f:{'enumerable':!![],'get':function(){return _0x46c252[_0x243334];}});}}),_0x544fa8[_0xdd4b77(0x1af)]=_0x46c252,_0x544fa8;}function _0x5cef(){const _0x3ecd03=['_positions','51651UwKDno','请引入\x20heatmap.js\x20库\x20','forEach','95547XcGHwu','_removedHook','fromDegrees','default','layer','push','_map','_layer','bumpMap','graphic','addPosition','heatStyle','_renderer','style','radius','div','remove','ymin','abs','max','LngLatPoint','register','lonlat2mercator','parse','xmin','_rectangle','_graphic','options','6386480aXvNRx','xmax','RectanglePrimitive','arcRadiusScale','_graphic2','diffHeight','_last_mBounds','min','ymax','positions','7RWAzoJ','371712KBjasc','create','Material','removeGraphic','Cartesian2','setPositions','ALWAYS','getOwnPropertyDescriptor','rectangle','points','_heat','uniforms','lat','red','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=\x20texture(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','_getArcHeatCanvas','setData','canvas','blue','formatRectangle','value','1333232ReDoUC','_mountedHook','PointTrans','LayerUtil','width:','addGraphic','BlendingState','StencilFunction','get','EllipsoidSurfaceAppearance','6dMqcLp','minCanvasSize','maxCanvasSize','round','image','_scale','76758XjgoAu','setOptions','in\x20vec3\x20position3DHigh;\x0a\x20\x20in\x20vec3\x20position3DLow;\x0a\x20\x20in\x20vec2\x20st;\x0a\x20\x20in\x20float\x20batchId;\x0a\x20\x20uniform\x20sampler2D\x20bumpMap_3;\x0a\x20\x20out\x20vec3\x20v_positionMC;\x0a\x20\x20out\x20vec3\x20v_positionEC;\x0a\x20\x20out\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=\x20texture(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','1786405JRBBPK','240YjGzTP','rgb(0,0,0)','DomUtil','_container','fromCache','lng','defineProperty'];_0x5cef=function(){return _0x3ecd03;};return _0x5cef();}var mars3d__namespace=_interopNamespace(mars3d),h337__namespace=_interopNamespace(h337),HeatMaterial=_0x250caa(0x1e1);if(!h337__namespace['create'])throw new Error(_0x250caa(0x205));const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'],DEF_HEATSTYLE={'maxOpacity':0.8,'minOpacity':0.1,'blur':0.85,'radius':0x19,'gradient':{0.4:_0x250caa(0x1e5),0.6:'green',0.8:'yellow',0.9:_0x250caa(0x1e0)}},DEF_STYLE={'arcRadiusScale':1.5,'arcBlurScale':1.5,'vertexFormat':Cesium['EllipsoidSurfaceAppearance']['VERTEX_FORMAT']};class HeatLayer extends BaseLayer{constructor(_0x4ceb15={}){const _0xb8644a={_0x5304d7:0x1f4,_0x3c3390:0x1f3,_0x2586c2:0x1b7},_0x112335=_0x250caa;super(_0x4ceb15),this['options']['maxCanvasSize']=this[_0x112335(0x1c7)][_0x112335(_0xb8644a._0x5304d7)]??document['body']['clientWidth'],this['options']['maxCanvasSize']=Math['min'](this[_0x112335(0x1c7)]['maxCanvasSize'],0x1388),this['options']['minCanvasSize']=this['options']['minCanvasSize']??document['body']['clientHeight'],this['options']['minCanvasSize']=Math['max'](this[_0x112335(0x1c7)][_0x112335(_0xb8644a._0x3c3390)],0x2bc),this[_0x112335(0x1c7)]['heatStyle']={...DEF_HEATSTYLE,...this['options'][_0x112335(_0xb8644a._0x2586c2)]},this['options']['style']={...DEF_STYLE,...this['options'][_0x112335(0x1b9)]};}get[_0x250caa(0x1b0)](){return this['_layer'];}get['heatStyle'](){return this['options']['heatStyle'];}set[_0x250caa(0x1b7)](_0x2a3347){const _0x21a5b8={_0x15f510:0x1dd},_0x3fbbe9=_0x250caa;this['options']['heatStyle']=mars3d__namespace['Util']['merge'](this[_0x3fbbe9(0x1c7)]['heatStyle'],_0x2a3347),this[_0x3fbbe9(_0x21a5b8._0x15f510)]&&(this['_heat']['configure'](this['options']['heatStyle']),this['_updatePositionsHook'](!![]));}get[_0x250caa(0x1b9)](){const _0xf1fc9f=_0x250caa;return this[_0xf1fc9f(0x1c7)]['style'];}set[_0x250caa(0x1b9)](_0x329721){this['options']['style']=mars3d__namespace['Util']['merge'](this['options']['style'],_0x329721);}get['positions'](){return this['_positions'];}set[_0x250caa(0x1d1)](_0x447640){this['setPositions'](_0x447640);}get['coordinates'](){const _0x4e8c45=_0x250caa,_0x121625=[];return this[_0x4e8c45(0x1dc)]['forEach'](_0x575513=>{_0x121625['push'](_0x575513['toArray']());}),_0x121625;}get[_0x250caa(0x1db)](){return this['_rectangle'];}['_setOptionsHook'](_0x54c392,_0xeda0ac){const _0x4f0426=_0x250caa;_0x54c392['positions']&&(this['positions']=_0x54c392[_0x4f0426(0x1d1)]);}[_0x250caa(0x1e9)](){const _0x21546b=_0x250caa;this['style']['type']===_0x21546b(0x1f6)?this['_layer']=new mars3d__namespace['layer']['ImageLayer']({'crs':'EPSG:3857','private':!![]}):this['_layer']=new mars3d__namespace['layer']['GraphicLayer']({'private':!![]});}['_addedHook'](){const _0x433345=_0x250caa;this['_map']['addLayer'](this['_layer']),this['_container']=mars3d__namespace['DomUtil']['create'](_0x433345(0x1bb),'mars3d-heatmap\x20mars3d-hideDiv',this['_map']['container']),this['options']['positions']&&(this[_0x433345(0x1d1)]=this['options']['positions']),this['options']['flyTo']&&this['flyToByAnimationEnd']();}[_0x250caa(0x208)](){const _0x442cae={_0x49a959:0x1bc,_0x3fe7c0:0x1b2},_0x1ba1c6=_0x250caa;this['_container']&&(mars3d__namespace['DomUtil'][_0x1ba1c6(_0x442cae._0x49a959)](this['_container']),delete this['_container']),this['clear'](),this[_0x1ba1c6(_0x442cae._0x3fe7c0)]['removeLayer'](this['_layer']);}[_0x250caa(0x1b6)](_0xe8b72d,_0x59c31d){const _0x1b6732={_0x4beb04:0x203,_0xd8358e:0x1b1},_0x7249c0=_0x250caa;this[_0x7249c0(_0x1b6732._0x4beb04)]=this[_0x7249c0(0x203)]||[],this[_0x7249c0(0x203)][_0x7249c0(_0x1b6732._0xd8358e)](_0xe8b72d),this['_updatePositionsHook'](_0x59c31d);}[_0x250caa(0x1d8)](_0x436661,_0x1d9d2e){this['_positions']=_0x436661,this['_updatePositionsHook'](_0x1d9d2e);}['clear'](){const _0x399588={_0x14078d:0x1b3},_0x3a8861=_0x250caa;this['_graphic']&&(this['_layer']['removeGraphic'](this['_graphic'],!![]),delete this['_graphic']),this[_0x3a8861(0x1cc)]&&(this[_0x3a8861(_0x399588._0x14078d)][_0x3a8861(0x1d6)](this['_graphic2'],!![]),delete this['_graphic2']);}['_updatePositionsHook'](_0xde732c){const _0x5399a2={_0x2476a7:0x1d1,_0x579654:0x1cc,_0x2afa39:0x1b4},_0x319864=_0x250caa;if(!this['show']||!this['_map']||!this[_0x319864(_0x5399a2._0x2476a7)]||this['positions']['length']===0x0)return this;const _0x46f92d=this['_getHeatCanvas']();if(this['style']['type']==='image')this['_layer'][_0x319864(0x1f9)]({'url':_0x46f92d['toDataURL']('image/png'),'rectangle':this[_0x319864(0x1c5)],'opacity':this['style']['opacity']});else this[_0x319864(0x1b9)]['arc']?this['_graphic']&&_0xde732c?(this['_graphic']['uniforms']['image']=_0x46f92d,this['_graphic'][_0x319864(0x1de)]['bumpMap']=this[_0x319864(0x1e2)](),this[_0x319864(0x1cc)]&&(this[_0x319864(_0x5399a2._0x579654)]['uniforms'][_0x319864(0x1f6)]=_0x46f92d,this[_0x319864(0x1cc)]['uniforms']['bumpMap']=this[_0x319864(0x1c6)][_0x319864(0x1de)][_0x319864(_0x5399a2._0x2afa39)])):this['_createArcGraphic'](_0x46f92d):this['_graphic']&&_0xde732c?this[_0x319864(0x1c6)]['uniforms']['image']=_0x46f92d:this['_createGraphic'](_0x46f92d);return this;}['_createGraphic'](_0x3fe42c){const _0x72fec6={_0x583e27:0x1f1,_0x3ee489:0x1d5},_0x307c53=_0x250caa;this['clear'](),this['_graphic']=new mars3d__namespace[(_0x307c53(0x1b5))][(_0x307c53(0x1ca))]({...this['options'],'rectangle':this[_0x307c53(0x1c5)],'appearance':new Cesium[(_0x307c53(_0x72fec6._0x583e27))]({'material':new Cesium[(_0x307c53(_0x72fec6._0x3ee489))]({'fabric':{'uniforms':{'image':_0x3fe42c},'source':HeatMaterial},'translucent':!![]}),'flat':!![]})}),this[_0x307c53(0x1b3)]['addGraphic'](this['_graphic']);}['_createArcGraphic'](_0x5b8bcb){const _0x2111b9={_0x38743e:0x1ef,_0x1e6e8f:0x1ef,_0x4d8b03:0x1b9,_0x414198:0x1b9,_0x170e69:0x1d7,_0x3d00eb:0x1e2,_0x3ec543:0x1b5,_0x570359:0x1c5,_0x4786b0:0x1ca,_0xa38f7d:0x1c5},_0x2aae3c=_0x250caa;this['clear']();const _0x65e465=Cesium['RenderState'][_0x2aae3c(0x200)]({'cull':{'enabled':!![]},'depthTest':{'enabled':!![]},'stencilTest':{'enabled':!![],'frontFunction':Cesium[_0x2aae3c(_0x2111b9._0x38743e)]['ALWAYS'],'frontOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium['StencilOperation']['KEEP'],'zPass':Cesium['StencilOperation']['REPLACE']},'backFunction':Cesium[_0x2aae3c(_0x2111b9._0x1e6e8f)][_0x2aae3c(0x1d9)],'backOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium['StencilOperation']['KEEP'],'zPass':Cesium['StencilOperation']['REPLACE']},'reference':0x2,'mask':0x2},'blending':Cesium[_0x2aae3c(0x1ee)]['ALPHA_BLEND']}),_0x409d1d=Math['floor'](this['style']['diffHeight']??this['_mBoundsMax']*0.02)+0.1;this['style'][_0x2aae3c(0x1cd)]&&delete this[_0x2aae3c(_0x2111b9._0x4d8b03)]['diffHeight'];const _0x2cbeed=(this['style']['splitNum'],0x64);let _0x50f377=Math['max'](this['_rectangle']['height'],this['_rectangle']['width']);this[_0x2aae3c(_0x2111b9._0x414198)]['granularity']=_0x50f377/=_0x2cbeed;const _0x437e88=new Cesium['Material']({'fabric':{'uniforms':{'image':_0x5b8bcb,'repeat':new Cesium[(_0x2aae3c(_0x2111b9._0x170e69))](0x1,0x1),'color':new Cesium['Color'](0x1,0x1,0x1,0x0),'bumpMap':this[_0x2aae3c(_0x2111b9._0x3d00eb)]()},'source':HeatMaterial},'translucent':!![]}),_0x3caa24=this['style']['arcDirection']||0x1;this['_graphic']=new mars3d__namespace[(_0x2aae3c(_0x2111b9._0x3ec543))][(_0x2aae3c(0x1ca))]({...this[_0x2aae3c(0x1c7)],'rectangle':this[_0x2aae3c(_0x2111b9._0x570359)],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x65e465,'material':_0x437e88,'vertexShaderSource':getVertexShaderSource(_0x409d1d*_0x3caa24)})}),this['_layer'][_0x2aae3c(0x1ed)](this['_graphic']),this[_0x2aae3c(0x1b9)]['arcDirection']===0x0&&(this['_graphic2']=new mars3d__namespace['graphic'][(_0x2aae3c(_0x2111b9._0x4786b0))]({...this['options'],'rectangle':this[_0x2aae3c(_0x2111b9._0xa38f7d)],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x65e465,'material':_0x437e88,'vertexShaderSource':getVertexShaderSource(-_0x409d1d)})}),this['_layer']['addGraphic'](this['_graphic2']));}['getRectangle'](_0x876d3e){const _0x4ee05f={_0x59dd31:0x1e6},_0x426643=_0x250caa;return _0x876d3e!==null&&_0x876d3e!==void 0x0&&_0x876d3e['isFormat']&&this['_rectangle']?mars3d__namespace['PolyUtil'][_0x426643(_0x4ee05f._0x59dd31)](this['_rectangle']):this['_rectangle'];}['_getHeatCanvas'](){const _0x1cd9ab={_0x1f55d4:0x203,_0xb9aa6a:0x1be,_0x263455:0x1f4,_0x5d3c73:0x1c7,_0x3ca7b6:0x1f7,_0x5470a8:0x1c4,_0x38a067:0x1c7,_0x540918:0x1c9,_0x10119e:0x1ce,_0x63ff36:0x1ec},_0x5f3b99={_0x2fbdce:0x201,_0xd07aa6:0x1df,_0x14deff:0x1e7,_0x2caad4:0x1f5,_0x4ef7b3:0x1bf},_0xc3dfc2={_0x511b0e:0x1c0,_0x20d3df:0x201,_0xbef2c0:0x1df},_0x2fef8e=_0x250caa,_0x4563e4=this[_0x2fef8e(_0x1cd9ab._0x1f55d4)],_0x1163cb=[];let _0x1bebaf,_0xfd18e,_0x4e1a95,_0x3cc733;_0x4563e4['forEach'](_0x5180e9=>{const _0x445c2d=_0x2fef8e,_0x193590=mars3d__namespace[_0x445c2d(_0xc3dfc2._0x511b0e)][_0x445c2d(0x1c3)](_0x5180e9);if(!_0x193590)return;_0x193590['value']=_0x5180e9['value']||0x1,!this['options']['rectangle']&&(_0x1bebaf===undefined?(_0x1bebaf=_0x193590['lng'],_0xfd18e=_0x193590['lng'],_0x4e1a95=_0x193590['lat'],_0x3cc733=_0x193590['lat']):(_0x1bebaf=Math['min'](_0x1bebaf,_0x193590['lng']),_0xfd18e=Math['max'](_0xfd18e,_0x193590[_0x445c2d(_0xc3dfc2._0x20d3df)]),_0x4e1a95=Math[_0x445c2d(0x1cf)](_0x4e1a95,_0x193590['lat']),_0x3cc733=Math[_0x445c2d(0x1bf)](_0x3cc733,_0x193590[_0x445c2d(_0xc3dfc2._0xbef2c0)]))),_0x1163cb['push'](_0x193590);});_0x1bebaf===_0xfd18e&&(_0x1bebaf-=0.000001,_0xfd18e+=0.000001);_0x4e1a95===_0x3cc733&&(_0x4e1a95-=0.000001,_0x3cc733+=0.000001);let _0x318782=this['options']['rectangle']||{'xmin':_0x1bebaf,'xmax':_0xfd18e,'ymin':_0x4e1a95,'ymax':_0x3cc733};const _0x5c3565=getMercatorBounds(_0x318782),_0x2eb91e=Math[_0x2fef8e(0x1be)](_0x5c3565['xmax']-_0x5c3565['xmin']),_0x239209=Math[_0x2fef8e(_0x1cd9ab._0xb9aa6a)](_0x5c3565[_0x2fef8e(0x1d0)]-_0x5c3565['ymin']),_0x2ce33e=Math['max'](_0x2eb91e,_0x239209),_0x2c06ad=Math['min'](_0x2eb91e,_0x239209);this['_mBoundsMax']=_0x2ce33e;let _0xcfbb57=0x1;if(_0x2ce33e>this['options']['maxCanvasSize'])_0xcfbb57=_0x2ce33e/this[_0x2fef8e(0x1c7)][_0x2fef8e(_0x1cd9ab._0x263455)],_0x2c06ad/_0xcfbb57<this[_0x2fef8e(0x1c7)]['minCanvasSize']&&(_0xcfbb57=_0x2c06ad/this['options']['minCanvasSize']);else _0x2c06ad<this['options']['minCanvasSize']&&(_0xcfbb57=_0x2c06ad/this[_0x2fef8e(_0x1cd9ab._0x5d3c73)]['minCanvasSize'],_0x2ce33e/_0xcfbb57>this['options']['maxCanvasSize']&&(_0xcfbb57=_0x2ce33e/this['options']['maxCanvasSize']));const _0x1ccff1=this['heatStyle']['radius']*1.5,_0x10decf=_0x2eb91e/_0xcfbb57+_0x1ccff1*0x2,_0x1bbec4=_0x239209/_0xcfbb57+_0x1ccff1*0x2,_0x3e7d10=_0x1ccff1*_0xcfbb57;_0x5c3565['xmin']-=_0x3e7d10,_0x5c3565[_0x2fef8e(0x1bd)]-=_0x3e7d10,_0x5c3565['xmax']+=_0x3e7d10,_0x5c3565['ymax']+=_0x3e7d10,this[_0x2fef8e(_0x1cd9ab._0x3ca7b6)]=_0xcfbb57,_0x318782=geLatLngBounds(_0x5c3565),this[_0x2fef8e(0x1c5)]=Cesium['Rectangle'][_0x2fef8e(0x209)](_0x318782[_0x2fef8e(_0x1cd9ab._0x5470a8)],_0x318782['ymin'],_0x318782[_0x2fef8e(0x1c9)],_0x318782['ymax']);let _0x364178=_0x1163cb[0x0]['value']??0x1,_0x5d9191=_0x1163cb[0x0][_0x2fef8e(0x1e7)]??0x0;const _0x481083=[];_0x1163cb['forEach'](_0x36c953=>{const _0x46e34d=_0x2fef8e,_0x497277=mars3d__namespace[_0x46e34d(0x1ea)]['lonlat2mercator']([_0x36c953[_0x46e34d(_0x5f3b99._0x2fbdce)],_0x36c953[_0x46e34d(_0x5f3b99._0xd07aa6)]]),_0x2f2f96=_0x36c953[_0x46e34d(_0x5f3b99._0x14deff)]||0x1,_0x1cab35=Math['round']((_0x497277[0x0]-_0x5c3565['xmin'])/_0xcfbb57),_0x46d7d1=Math[_0x46e34d(_0x5f3b99._0x2caad4)]((_0x5c3565['ymax']-_0x497277[0x1])/_0xcfbb57);_0x364178=Math[_0x46e34d(_0x5f3b99._0x4ef7b3)](_0x364178,_0x2f2f96),_0x5d9191=Math['min'](_0x5d9191,_0x2f2f96),_0x481083[_0x46e34d(0x1b1)]({'x':_0x1cab35,'y':_0x46d7d1,'value':_0x2f2f96});});const _0x5b653a={'min':this[_0x2fef8e(_0x1cd9ab._0x38a067)]['min']??_0x5d9191,'max':this[_0x2fef8e(_0x1cd9ab._0x5d3c73)]['max']??_0x364178,'data':_0x481083};this['_last_heatData']=_0x5b653a;if(!this[_0x2fef8e(0x1ce)]||_0x5c3565[_0x2fef8e(0x1c4)]!==this['_last_mBounds']['xmin']||_0x5c3565[_0x2fef8e(0x1bd)]!==this['_last_mBounds']['ymin']||_0x5c3565[_0x2fef8e(_0x1cd9ab._0x540918)]!==this['_last_mBounds']['xmax']||_0x5c3565['ymax']!==this['_last_mBounds'][_0x2fef8e(0x1d0)]){this[_0x2fef8e(_0x1cd9ab._0x10119e)]=_0x5c3565,this[_0x2fef8e(0x1ff)]['style']['cssText']=_0x2fef8e(_0x1cd9ab._0x63ff36)+_0x10decf+'px;height:'+_0x1bbec4+'px;';const _0x3ccbdb={...this['heatStyle'],'container':this['_container']};!this[_0x2fef8e(0x1dd)]?this['_heat']=h337__namespace[_0x2fef8e(0x1d4)](_0x3ccbdb):this['_heat']['configure'](_0x3ccbdb);}this['_heat'][_0x2fef8e(0x1e3)](_0x5b653a);const _0x5183a6=mars3d__namespace['DomUtil']['copyCanvas'](this['_heat']['_renderer']['canvas']);return _0x5183a6;}['_getArcHeatCanvas'](){const _0x530492={_0x1c0806:0x1fd,_0x4ea807:0x1fe,_0x5b3845:0x1b8,_0x48bd91:0x1dd},_0x1058fd=_0x250caa;this['_heat']['configure']({'radius':this['heatStyle'][_0x1058fd(0x1ba)]*this['style'][_0x1058fd(0x1cb)],'blur':this['heatStyle']['blur']*this[_0x1058fd(0x1b9)]['arcBlurScale'],'gradient':this['heatStyle']['gradientArc']||{0.25:_0x1058fd(_0x530492._0x1c0806),0.55:'rgb(140,140,140)',0.85:'rgb(216,216,216)',0x1:'rgb(255,255,255)'}});const _0x4df3ae=mars3d__namespace[_0x1058fd(_0x530492._0x4ea807)]['copyCanvas'](this['_heat'][_0x1058fd(_0x530492._0x5b3845)][_0x1058fd(0x1e4)]);return this[_0x1058fd(_0x530492._0x48bd91)]['configure'](this[_0x1058fd(0x1c7)]['heatStyle']),_0x4df3ae;}['getPointData'](_0x506f16){const _0x458ef1={_0x23eb25:0x201,_0x1d353f:0x1f5,_0x3853c5:0x1b8},_0x419b35=_0x250caa,_0x2d4b73=mars3d__namespace['LngLatPoint'][_0x419b35(0x1c3)](_0x506f16);if(!_0x2d4b73)return{};const _0x36bea1=mars3d__namespace['PointTrans'][_0x419b35(0x1c2)]([_0x2d4b73[_0x419b35(_0x458ef1._0x23eb25)],_0x2d4b73[_0x419b35(0x1df)]]),_0x372628=this['_last_mBounds'],_0x52ee1e=Math[_0x419b35(_0x458ef1._0x1d353f)]((_0x36bea1[0x0]-_0x372628['xmin'])/this['_scale']),_0x2f0223=Math['round']((_0x372628['ymax']-_0x36bea1[0x1])/this['_scale']),_0x278b9f=this[_0x419b35(0x1dd)]['getValueAt']({'x':_0x52ee1e,'y':_0x2f0223}),_0x13ef54=this[_0x419b35(0x1dd)][_0x419b35(_0x458ef1._0x3853c5)]['ctx']['getImageData'](_0x52ee1e-0x1,_0x2f0223-0x1,0x1,0x1)['data'];return{'x':_0x52ee1e,'y':_0x2f0223,'value':_0x278b9f,'color':'rgba('+_0x13ef54[0x0]+','+_0x13ef54[0x1]+','+_0x13ef54[0x2]+','+_0x13ef54[0x3]+')'};}}mars3d__namespace[_0x250caa(0x1eb)][_0x250caa(0x1c1)]('heat',HeatLayer),mars3d__namespace['layer']['HeatLayer']=HeatLayer,mars3d__namespace['h337']=h337__namespace;function getMercatorBounds(_0x19cc8a){const _0x316bba={_0x529587:0x1c2},_0x42005e=_0x250caa,_0x3dd98b=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x19cc8a['xmin'],_0x19cc8a['ymin']]),_0x489440=mars3d__namespace[_0x42005e(0x1ea)][_0x42005e(_0x316bba._0x529587)]([_0x19cc8a['xmax'],_0x19cc8a['ymax']]);return{'xmin':_0x3dd98b[0x0],'ymin':_0x3dd98b[0x1],'xmax':_0x489440[0x0],'ymax':_0x489440[0x1]};}function geLatLngBounds(_0x43d043){const _0x1a856f={_0x953a38:0x1bd,_0x51b37c:0x1c9},_0x33519c=_0x250caa,_0x1518a6=mars3d__namespace['PointTrans']['mercator2lonlat']([_0x43d043[_0x33519c(0x1c4)],_0x43d043[_0x33519c(_0x1a856f._0x953a38)]]),_0x4818af=mars3d__namespace['PointTrans']['mercator2lonlat']([_0x43d043[_0x33519c(_0x1a856f._0x51b37c)],_0x43d043['ymax']]);return{'xmin':_0x1518a6[0x0],'ymin':_0x1518a6[0x1],'xmax':_0x4818af[0x0],'ymax':_0x4818af[0x1]};}function getVertexShaderSource(_0x4bc80b){const _0x1b81dc=_0x250caa;return _0x1b81dc(0x1fa)+_0x4bc80b+';\x0a\x20\x20\x20\x20p\x20+=vec4(disPos,0.0);\x0a\x20\x20\x20\x20gl_Position\x20=\x20czm_modelViewProjectionRelativeToEye\x20*\x20p;\x0a\x20\x20}\x0a';}exports['HeatLayer']=HeatLayer,Object['defineProperty'](exports,'__esModule',{'value':!![]});
}));
{
"name": "mars3d-heatmap",
"version": "3.6.6",
"version": "3.6.7",
"description": "Mars3D平台插件,结合heatmap可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.6.6"
"mars3d": "~3.6.7"
},

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