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
153
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.16 to 3.6.17

6

dist/mars3d-heatmap.js
/**
* Mars3D平台插件,结合heatmap可视化功能插件 mars3d-heatmap
*
* 版本信息:v3.6.16
* 编译日期:2023-12-12 14:27:06
* 版本信息:v3.6.17
* 编译日期:2023-12-18 20:13:45
* 版权所有:Copyright by 火星科技 http://mars3d.cn

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

})(this, (function (exports, mars3d, h337) {
'use strict';const _0x408f7a=_0x19f0;(function(_0x504fcd,_0x59cdb3){const _0x2d90c4={_0x2ef496:0x1ec,_0x5449d0:0x1f9,_0x2858be:0x211,_0x29f2f5:0x1ef,_0x362e3e:0x220,_0x141d8f:0x1f4,_0x5408ab:0x20d},_0x4bee18=_0x19f0,_0x338f4b=_0x504fcd();while(!![]){try{const _0x176b93=parseInt(_0x4bee18(_0x2d90c4._0x2ef496))/0x1+parseInt(_0x4bee18(_0x2d90c4._0x5449d0))/0x2*(parseInt(_0x4bee18(_0x2d90c4._0x2858be))/0x3)+-parseInt(_0x4bee18(0x1eb))/0x4+-parseInt(_0x4bee18(_0x2d90c4._0x29f2f5))/0x5+-parseInt(_0x4bee18(_0x2d90c4._0x362e3e))/0x6*(-parseInt(_0x4bee18(_0x2d90c4._0x141d8f))/0x7)+-parseInt(_0x4bee18(0x225))/0x8*(-parseInt(_0x4bee18(0x1de))/0x9)+parseInt(_0x4bee18(_0x2d90c4._0x5408ab))/0xa*(-parseInt(_0x4bee18(0x20b))/0xb);if(_0x176b93===_0x59cdb3)break;else _0x338f4b['push'](_0x338f4b['shift']());}catch(_0x435761){_0x338f4b['push'](_0x338f4b['shift']());}}}(_0x2e67,0x48dd2));function _interopNamespace(_0x38e6d0){const _0x25cba9={_0xf155df:0x21f,_0x210995:0x235},_0x4ff2f3=_0x19f0;if(_0x38e6d0&&_0x38e6d0['__esModule'])return _0x38e6d0;var _0x191b21=Object[_0x4ff2f3(0x1fa)](null);return _0x38e6d0&&Object['keys'](_0x38e6d0)['forEach'](function(_0x58f22a){const _0x504cb6=_0x4ff2f3;if(_0x58f22a!==_0x504cb6(_0x25cba9._0xf155df)){var _0x38ca57=Object['getOwnPropertyDescriptor'](_0x38e6d0,_0x58f22a);Object['defineProperty'](_0x191b21,_0x58f22a,_0x38ca57[_0x504cb6(_0x25cba9._0x210995)]?_0x38ca57:{'enumerable':!![],'get':function(){return _0x38e6d0[_0x58f22a];}});}}),_0x191b21['default']=_0x38e6d0,_0x191b21;}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';function _0x19f0(_0x46ee1e,_0x54eda5){const _0x2e678c=_0x2e67();return _0x19f0=function(_0x19f00e,_0xd21d16){_0x19f00e=_0x19f00e-0x1dd;let _0x4a9b58=_0x2e678c[_0x19f00e];return _0x4a9b58;},_0x19f0(_0x46ee1e,_0x54eda5);}if(!h337__namespace['create'])throw new Error('请引入\x20heatmap.js\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace[_0x408f7a(0x230)]['BaseLayer'],DEF_HEATSTYLE={'maxOpacity':0.8,'minOpacity':0.1,'blur':0.85,'radius':0x19,'gradient':{0.4:_0x408f7a(0x1ed),0.6:'green',0.8:'yellow',0.9:_0x408f7a(0x1fb)}},DEF_STYLE={'arcRadiusScale':1.5,'arcBlurScale':1.5,'vertexFormat':Cesium['EllipsoidSurfaceAppearance'][_0x408f7a(0x1e7)]};function _0x2e67(){const _0x39c709=['_rectangle','heatStyle','rgb(216,216,216)','px;','minCanvasSize','merge','ALPHA_BLEND','_last_heatData','canvas','splitNum','addGraphic','_getArcHeatCanvas','DomUtil','11edERMs','_last_mBounds','4478150CDLJTL','setData','flyToByAnimationEnd','addPosition','3bOGoKQ','LngLatPoint','KEEP','_graphic','forEach','lonlat2mercator','maxCanvasSize','arcRadiusScale','min','_createGraphic','xmin','xmax','removeGraphic','configure','default','129834iZmBIg','Util','_mBoundsMax','options','PointTrans','8jbFMfU','_graphic2','_layer','_map','_container','abs','floor','_scale','diffHeight','uniforms','remove','layer','lat','RenderState','max','graphic','get','image','clientWidth','5201559WXVLiQ','addLayer','_updatePositionsHook','clientHeight','_heat','div','image/png','getPointData','rgba(','VERTEX_FORMAT','lng','StencilOperation','_createArcGraphic','2024412Flsktr','130813OnwObm','blue','style','278870xNTKMY','round','defineProperty','RectanglePrimitive','clear','161vsLTCd','ymax','getValueAt','bumpMap','container','203362TNWUnT','create','red','positions','mercator2lonlat'];_0x2e67=function(){return _0x39c709;};return _0x2e67();}class HeatLayer extends BaseLayer{constructor(_0x46af8d={}){const _0x334eb6={_0x4ff37c:0x1dd,_0x15e56f:0x219,_0x507542:0x217,_0x29a0d5:0x1e1,_0x22c4e3:0x233,_0x1dd38a:0x1ee},_0x4c111d=_0x408f7a;super(_0x46af8d),this['options']['maxCanvasSize']=this['options']['maxCanvasSize']??document['body'][_0x4c111d(_0x334eb6._0x4ff37c)],this[_0x4c111d(0x223)][_0x4c111d(0x217)]=Math[_0x4c111d(_0x334eb6._0x15e56f)](this['options'][_0x4c111d(_0x334eb6._0x507542)],0x1388),this['options']['minCanvasSize']=this['options'][_0x4c111d(0x202)]??document['body'][_0x4c111d(_0x334eb6._0x29a0d5)],this['options']['minCanvasSize']=Math[_0x4c111d(_0x334eb6._0x22c4e3)](this['options']['minCanvasSize'],0x2bc),this[_0x4c111d(0x223)]['heatStyle']={...DEF_HEATSTYLE,...this['options']['heatStyle']},this[_0x4c111d(0x223)]['style']={...DEF_STYLE,...this[_0x4c111d(0x223)][_0x4c111d(_0x334eb6._0x1dd38a)]};}get['layer'](){return this['_layer'];}get['heatStyle'](){const _0x3e7cf7={_0x5a077c:0x1ff},_0x48f847=_0x408f7a;return this['options'][_0x48f847(_0x3e7cf7._0x5a077c)];}set['heatStyle'](_0x545ada){const _0x1471d1={_0xa54854:0x221,_0x2a8e1b:0x21e,_0x277628:0x1ff},_0x5cfd32=_0x408f7a;this['options']['heatStyle']=mars3d__namespace[_0x5cfd32(_0x1471d1._0xa54854)][_0x5cfd32(0x203)](this['options']['heatStyle'],_0x545ada),this['_heat']&&(this[_0x5cfd32(0x1e2)][_0x5cfd32(_0x1471d1._0x2a8e1b)](this[_0x5cfd32(0x223)][_0x5cfd32(_0x1471d1._0x277628)]),this[_0x5cfd32(0x1e0)](!![]));}get['style'](){const _0x2072a1=_0x408f7a;return this[_0x2072a1(0x223)]['style'];}set['style'](_0x2ad042){const _0x28d3da={_0x21103d:0x223},_0x67ec45=_0x408f7a;this[_0x67ec45(_0x28d3da._0x21103d)]['style']=mars3d__namespace[_0x67ec45(0x221)]['merge'](this['options']['style'],_0x2ad042);}get[_0x408f7a(0x1fc)](){return this['_positions'];}set['positions'](_0x5b62ab){this['setPositions'](_0x5b62ab);}get['coordinates'](){const _0x2633b5=_0x408f7a,_0x1d6efb=[];return this['points'][_0x2633b5(0x215)](_0x44b148=>{_0x1d6efb['push'](_0x44b148['toArray']());}),_0x1d6efb;}get['rectangle'](){const _0x3ef783=_0x408f7a;return this[_0x3ef783(0x1fe)];}['_setOptionsHook'](_0x56971b,_0x5e5856){_0x56971b['positions']&&(this['positions']=_0x56971b['positions']);}['_mountedHook'](){this['style']['type']==='image'?this['_layer']=new mars3d__namespace['layer']['ImageLayer']({'crs':'EPSG:3857','private':!![]}):this['_layer']=new mars3d__namespace['layer']['GraphicLayer']({'private':!![]});}['_addedHook'](){const _0x2d0dda={_0x3270c2:0x1df,_0x3e5c5b:0x1e3,_0x57c343:0x223,_0x3f2586:0x20f},_0x4b40e7=_0x408f7a;this[_0x4b40e7(0x228)][_0x4b40e7(_0x2d0dda._0x3270c2)](this['_layer']),this['_container']=mars3d__namespace['DomUtil']['create'](_0x4b40e7(_0x2d0dda._0x3e5c5b),'mars3d-heatmap\x20mars3d-hideDiv',this['_map'][_0x4b40e7(0x1f8)]),this[_0x4b40e7(0x223)][_0x4b40e7(0x1fc)]&&(this['positions']=this[_0x4b40e7(_0x2d0dda._0x57c343)]['positions']),this['options']['flyTo']&&this[_0x4b40e7(_0x2d0dda._0x3f2586)]();}['_removedHook'](){const _0x4373a0=_0x408f7a;this['_container']&&(mars3d__namespace[_0x4373a0(0x20a)][_0x4373a0(0x22f)](this['_container']),delete this[_0x4373a0(0x229)]),this['clear'](),this['_map']['removeLayer'](this['_layer']);}[_0x408f7a(0x210)](_0x1481a8,_0x187a82){const _0x277639=_0x408f7a;this['_positions']=this['_positions']||[],this['_positions']['push'](_0x1481a8),this[_0x277639(0x1e0)](_0x187a82);}['setPositions'](_0x3eff15,_0x2e872e){this['_positions']=_0x3eff15,this['_updatePositionsHook'](_0x2e872e);}['clear'](){const _0x25d90b={_0xa9c80b:0x21d,_0x2c9653:0x214},_0x4967cd=_0x408f7a;this['_graphic']&&(this['_layer'][_0x4967cd(_0x25d90b._0xa9c80b)](this['_graphic'],!![]),delete this[_0x4967cd(_0x25d90b._0x2c9653)]),this['_graphic2']&&(this['_layer']['removeGraphic'](this['_graphic2'],!![]),delete this['_graphic2']);}['_updatePositionsHook'](_0x3ff713){const _0x5ba669={_0x253164:0x1fc,_0x30ac23:0x1ee,_0xe5dd2c:0x236,_0x59fa2b:0x1e4,_0x2fe18:0x1fe,_0x35f4ed:0x214,_0x3c2157:0x1f7,_0x451129:0x209,_0x45712e:0x22e,_0x5325ed:0x236,_0x4ec674:0x226,_0x11ce13:0x1f7,_0x14fbe4:0x1ea,_0x18a3d9:0x21a},_0x1a75db=_0x408f7a;if(!this['show']||!this[_0x1a75db(0x228)]||!this['positions']||this[_0x1a75db(_0x5ba669._0x253164)]['length']===0x0)return this;const _0x2b76b7=this['_getHeatCanvas']();if(this[_0x1a75db(_0x5ba669._0x30ac23)]['type']===_0x1a75db(_0x5ba669._0xe5dd2c))this['_layer']['setOptions']({'url':_0x2b76b7['toDataURL'](_0x1a75db(_0x5ba669._0x59fa2b)),'rectangle':this[_0x1a75db(_0x5ba669._0x2fe18)],'opacity':this['style']['opacity']});else this[_0x1a75db(_0x5ba669._0x30ac23)]['arc']?this['_graphic']&&_0x3ff713?(this[_0x1a75db(_0x5ba669._0x35f4ed)][_0x1a75db(0x22e)]['image']=_0x2b76b7,this['_graphic']['uniforms'][_0x1a75db(_0x5ba669._0x3c2157)]=this[_0x1a75db(_0x5ba669._0x451129)](),this['_graphic2']&&(this['_graphic2'][_0x1a75db(_0x5ba669._0x45712e)][_0x1a75db(_0x5ba669._0x5325ed)]=_0x2b76b7,this[_0x1a75db(_0x5ba669._0x4ec674)]['uniforms'][_0x1a75db(0x1f7)]=this['_graphic']['uniforms'][_0x1a75db(_0x5ba669._0x11ce13)])):this[_0x1a75db(_0x5ba669._0x14fbe4)](_0x2b76b7):this['_graphic']&&_0x3ff713?this['_graphic'][_0x1a75db(_0x5ba669._0x45712e)]['image']=_0x2b76b7:this[_0x1a75db(_0x5ba669._0x18a3d9)](_0x2b76b7);return this;}['_createGraphic'](_0x7ae8f9){const _0x48378f={_0x587372:0x1f3,_0x211ffb:0x1f2,_0x26e015:0x227,_0x5d7fd4:0x208},_0x50e7b4=_0x408f7a;this[_0x50e7b4(_0x48378f._0x587372)](),this[_0x50e7b4(0x214)]=new mars3d__namespace['graphic'][(_0x50e7b4(_0x48378f._0x211ffb))]({...this[_0x50e7b4(0x223)],'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'material':new Cesium['Material']({'fabric':{'uniforms':{'image':_0x7ae8f9},'source':HeatMaterial},'translucent':!![]}),'flat':!![]})}),this[_0x50e7b4(_0x48378f._0x26e015)][_0x50e7b4(_0x48378f._0x5d7fd4)](this['_graphic']);}['_createArcGraphic'](_0x1e8bb6){const _0x32064d={_0x576963:0x1e9,_0x5ecbda:0x1e9,_0x3fbbd2:0x213,_0x237916:0x207,_0xcc12d6:0x1fe,_0x5281b2:0x1ee,_0x47f32e:0x1f2,_0x2a956b:0x223,_0x5b423d:0x234,_0x2ad71a:0x208},_0xc98fe9=_0x408f7a;this['clear']();const _0x56b0c0=Cesium[_0xc98fe9(0x232)]['fromCache']({'cull':{'enabled':!![]},'depthTest':{'enabled':!![]},'stencilTest':{'enabled':!![],'frontFunction':Cesium['StencilFunction']['ALWAYS'],'frontOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium[_0xc98fe9(_0x32064d._0x576963)][_0xc98fe9(0x213)],'zPass':Cesium[_0xc98fe9(_0x32064d._0x5ecbda)]['REPLACE']},'backFunction':Cesium['StencilFunction']['ALWAYS'],'backOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium[_0xc98fe9(_0x32064d._0x5ecbda)][_0xc98fe9(_0x32064d._0x3fbbd2)],'zPass':Cesium['StencilOperation']['REPLACE']},'reference':0x2,'mask':0x2},'blending':Cesium['BlendingState'][_0xc98fe9(0x204)]}),_0x5d20a2=Math[_0xc98fe9(0x22b)](this['style']['diffHeight']??this[_0xc98fe9(0x222)]*0.02)+0.1;this['style'][_0xc98fe9(0x22d)]&&delete this['style']['diffHeight'];const _0x2ff8eb=(this['style'][_0xc98fe9(_0x32064d._0x237916)],0x64);let _0x556393=Math['max'](this['_rectangle']['height'],this[_0xc98fe9(_0x32064d._0xcc12d6)]['width']);this['style']['granularity']=_0x556393/=_0x2ff8eb;const _0x424ece=new Cesium['Material']({'fabric':{'uniforms':{'image':_0x1e8bb6,'repeat':new Cesium['Cartesian2'](0x1,0x1),'color':new Cesium['Color'](0x1,0x1,0x1,0x0),'bumpMap':this['_getArcHeatCanvas']()},'source':HeatMaterial},'translucent':!![]}),_0x20ec79=this[_0xc98fe9(_0x32064d._0x5281b2)]['arcDirection']||0x1;this['_graphic']=new mars3d__namespace['graphic'][(_0xc98fe9(_0x32064d._0x47f32e))]({...this[_0xc98fe9(_0x32064d._0x2a956b)],'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x56b0c0,'material':_0x424ece,'vertexShaderSource':getVertexShaderSource(_0x5d20a2*_0x20ec79)})}),this['_layer']['addGraphic'](this['_graphic']),this['style']['arcDirection']===0x0&&(this[_0xc98fe9(0x226)]=new mars3d__namespace[(_0xc98fe9(_0x32064d._0x5b423d))][(_0xc98fe9(0x1f2))]({...this['options'],'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x56b0c0,'material':_0x424ece,'vertexShaderSource':getVertexShaderSource(-_0x5d20a2)})}),this['_layer'][_0xc98fe9(_0x32064d._0x2ad71a)](this['_graphic2']));}['getRectangle'](_0x3bbcdf){const _0xd7f740=_0x408f7a;return _0x3bbcdf!==null&&_0x3bbcdf!==void 0x0&&_0x3bbcdf['isFormat']&&this['_rectangle']?mars3d__namespace['PolyUtil']['formatRectangle'](this[_0xd7f740(0x1fe)]):this['_rectangle'];}['_getHeatCanvas'](){const _0x3aea41={_0x36b652:0x21c,_0x4a5671:0x22a,_0x2ce18c:0x202,_0x4c4062:0x1f5,_0xb1dd8f:0x223,_0x1d9d99:0x20c,_0x30d312:0x20e,_0x52cc63:0x20a,_0x4b2c5d:0x206},_0x245961={_0x3735a7:0x231,_0x55b8dc:0x1e8},_0x498d54=_0x408f7a,_0x1204f8=this['_positions'],_0x39bb24=[];let _0x3ba493,_0x1cea7e,_0x1baa86,_0x391452;_0x1204f8['forEach'](_0x48ef78=>{const _0x277512=_0x19f0,_0x132853=mars3d__namespace['LngLatPoint']['parse'](_0x48ef78);if(!_0x132853)return;_0x132853['value']=_0x48ef78['value']||0x1,!this['options']['rectangle']&&(_0x3ba493===undefined?(_0x3ba493=_0x132853[_0x277512(0x1e8)],_0x1cea7e=_0x132853['lng'],_0x1baa86=_0x132853['lat'],_0x391452=_0x132853[_0x277512(_0x245961._0x3735a7)]):(_0x3ba493=Math['min'](_0x3ba493,_0x132853['lng']),_0x1cea7e=Math['max'](_0x1cea7e,_0x132853[_0x277512(_0x245961._0x55b8dc)]),_0x1baa86=Math['min'](_0x1baa86,_0x132853['lat']),_0x391452=Math['max'](_0x391452,_0x132853['lat']))),_0x39bb24['push'](_0x132853);});_0x3ba493===_0x1cea7e&&(_0x3ba493-=0.000001,_0x1cea7e+=0.000001);_0x1baa86===_0x391452&&(_0x1baa86-=0.000001,_0x391452+=0.000001);let _0x26877e=this['options']['rectangle']||{'xmin':_0x3ba493,'xmax':_0x1cea7e,'ymin':_0x1baa86,'ymax':_0x391452};const _0x321ae4=getMercatorBounds(_0x26877e),_0x414d49=Math['abs'](_0x321ae4[_0x498d54(_0x3aea41._0x36b652)]-_0x321ae4['xmin']),_0x3cc7d9=Math[_0x498d54(_0x3aea41._0x4a5671)](_0x321ae4['ymax']-_0x321ae4['ymin']),_0x133c0a=Math['max'](_0x414d49,_0x3cc7d9),_0xb3b5db=Math['min'](_0x414d49,_0x3cc7d9);this['_mBoundsMax']=_0x133c0a;let _0x45687c=0x1;if(_0x133c0a>this['options']['maxCanvasSize'])_0x45687c=_0x133c0a/this['options'][_0x498d54(0x217)],_0xb3b5db/_0x45687c<this['options'][_0x498d54(_0x3aea41._0x2ce18c)]&&(_0x45687c=_0xb3b5db/this[_0x498d54(0x223)][_0x498d54(_0x3aea41._0x2ce18c)]);else _0xb3b5db<this['options']['minCanvasSize']&&(_0x45687c=_0xb3b5db/this['options'][_0x498d54(0x202)],_0x133c0a/_0x45687c>this[_0x498d54(0x223)]['maxCanvasSize']&&(_0x45687c=_0x133c0a/this['options']['maxCanvasSize']));const _0x4f0475=this['heatStyle']['radius']*1.5,_0x12c817=_0x414d49/_0x45687c+_0x4f0475*0x2,_0x93aa8d=_0x3cc7d9/_0x45687c+_0x4f0475*0x2,_0x58f4fc=_0x4f0475*_0x45687c;_0x321ae4['xmin']-=_0x58f4fc,_0x321ae4['ymin']-=_0x58f4fc,_0x321ae4['xmax']+=_0x58f4fc,_0x321ae4['ymax']+=_0x58f4fc,this['_scale']=_0x45687c,_0x26877e=geLatLngBounds(_0x321ae4),this['_rectangle']=Cesium['Rectangle']['fromDegrees'](_0x26877e['xmin'],_0x26877e['ymin'],_0x26877e[_0x498d54(_0x3aea41._0x36b652)],_0x26877e[_0x498d54(_0x3aea41._0x4c4062)]);let _0x8c78bc=_0x39bb24[0x0]['value']??0x1,_0x521ad6=_0x39bb24[0x0]['value']??0x0;const _0x339fe5=[];_0x39bb24['forEach'](_0x56f916=>{const _0x6a9bcf=_0x498d54,_0x484f85=mars3d__namespace['PointTrans'][_0x6a9bcf(0x216)]([_0x56f916[_0x6a9bcf(0x1e8)],_0x56f916['lat']]),_0x1800dc=_0x56f916['value']||0x1,_0x4de0e6=Math['round']((_0x484f85[0x0]-_0x321ae4['xmin'])/_0x45687c),_0x4f0171=Math['round']((_0x321ae4['ymax']-_0x484f85[0x1])/_0x45687c);_0x8c78bc=Math['max'](_0x8c78bc,_0x1800dc),_0x521ad6=Math['min'](_0x521ad6,_0x1800dc),_0x339fe5['push']({'x':_0x4de0e6,'y':_0x4f0171,'value':_0x1800dc});});const _0x200810={'min':this['options']['min']??_0x521ad6,'max':this[_0x498d54(_0x3aea41._0xb1dd8f)]['max']??_0x8c78bc,'data':_0x339fe5};this[_0x498d54(0x205)]=_0x200810;if(!this['_last_mBounds']||_0x321ae4[_0x498d54(0x21b)]!==this['_last_mBounds']['xmin']||_0x321ae4['ymin']!==this[_0x498d54(_0x3aea41._0x1d9d99)]['ymin']||_0x321ae4['xmax']!==this['_last_mBounds']['xmax']||_0x321ae4[_0x498d54(_0x3aea41._0x4c4062)]!==this[_0x498d54(0x20c)][_0x498d54(0x1f5)]){this['_last_mBounds']=_0x321ae4,this['_container']['style']['cssText']='width:'+_0x12c817+'px;height:'+_0x93aa8d+_0x498d54(0x201);const _0x1e626b={...this['heatStyle'],'container':this['_container']};!this['_heat']?this['_heat']=h337__namespace['create'](_0x1e626b):this['_heat']['configure'](_0x1e626b);}this['_heat'][_0x498d54(_0x3aea41._0x30d312)](_0x200810);const _0x5aa956=mars3d__namespace[_0x498d54(_0x3aea41._0x52cc63)]['copyCanvas'](this['_heat']['_renderer'][_0x498d54(_0x3aea41._0x4b2c5d)]);return _0x5aa956;}['_getArcHeatCanvas'](){const _0x104f96={_0x1cd483:0x1ff,_0x13da98:0x200},_0x35f39c=_0x408f7a;this['_heat']['configure']({'radius':this[_0x35f39c(0x1ff)]['radius']*this['style'][_0x35f39c(0x218)],'blur':this[_0x35f39c(_0x104f96._0x1cd483)]['blur']*this['style']['arcBlurScale'],'gradient':this[_0x35f39c(_0x104f96._0x1cd483)]['gradientArc']||{0.25:'rgb(0,0,0)',0.55:'rgb(140,140,140)',0.85:_0x35f39c(_0x104f96._0x13da98),0x1:'rgb(255,255,255)'}});const _0x4b4611=mars3d__namespace['DomUtil']['copyCanvas'](this['_heat']['_renderer']['canvas']);return this['_heat']['configure'](this['options']['heatStyle']),_0x4b4611;}[_0x408f7a(0x1e5)](_0xeac10a){const _0x823c58={_0xb36348:0x212,_0x479948:0x216,_0x5ab204:0x21b,_0x39d394:0x22c,_0x44140a:0x1f6,_0x403ace:0x1e6},_0x3e031a=_0x408f7a,_0x53008b=mars3d__namespace[_0x3e031a(_0x823c58._0xb36348)]['parse'](_0xeac10a);if(!_0x53008b)return{};const _0x234d4a=mars3d__namespace[_0x3e031a(0x224)][_0x3e031a(_0x823c58._0x479948)]([_0x53008b['lng'],_0x53008b['lat']]),_0x2e51ed=this['_last_mBounds'],_0x1172c0=Math[_0x3e031a(0x1f0)]((_0x234d4a[0x0]-_0x2e51ed[_0x3e031a(_0x823c58._0x5ab204)])/this[_0x3e031a(0x22c)]),_0x2234ee=Math['round']((_0x2e51ed['ymax']-_0x234d4a[0x1])/this[_0x3e031a(_0x823c58._0x39d394)]),_0x25cdf0=this['_heat'][_0x3e031a(_0x823c58._0x44140a)]({'x':_0x1172c0,'y':_0x2234ee}),_0x451a81=this[_0x3e031a(0x1e2)]['_renderer']['ctx']['getImageData'](_0x1172c0-0x1,_0x2234ee-0x1,0x1,0x1)['data'];return{'x':_0x1172c0,'y':_0x2234ee,'value':_0x25cdf0,'color':_0x3e031a(_0x823c58._0x403ace)+_0x451a81[0x0]+','+_0x451a81[0x1]+','+_0x451a81[0x2]+','+_0x451a81[0x3]+')'};}}mars3d__namespace['LayerUtil']['register']('heat',HeatLayer),mars3d__namespace['layer']['HeatLayer']=HeatLayer,mars3d__namespace['h337']=h337__namespace;function getMercatorBounds(_0x131962){const _0x4a53c6={_0x1ad629:0x224,_0x2b35b7:0x1f5},_0x5011a7=_0x408f7a,_0x36ceac=mars3d__namespace[_0x5011a7(_0x4a53c6._0x1ad629)]['lonlat2mercator']([_0x131962['xmin'],_0x131962['ymin']]),_0x5fb019=mars3d__namespace['PointTrans'][_0x5011a7(0x216)]([_0x131962['xmax'],_0x131962[_0x5011a7(_0x4a53c6._0x2b35b7)]]);return{'xmin':_0x36ceac[0x0],'ymin':_0x36ceac[0x1],'xmax':_0x5fb019[0x0],'ymax':_0x5fb019[0x1]};}function geLatLngBounds(_0x2e54a7){const _0x16d362={_0x392ede:0x1fd,_0x289cb9:0x21b},_0x14de05=_0x408f7a,_0x3a63ca=mars3d__namespace['PointTrans'][_0x14de05(_0x16d362._0x392ede)]([_0x2e54a7[_0x14de05(_0x16d362._0x289cb9)],_0x2e54a7['ymin']]),_0x27641d=mars3d__namespace['PointTrans']['mercator2lonlat']([_0x2e54a7['xmax'],_0x2e54a7['ymax']]);return{'xmin':_0x3a63ca[0x0],'ymin':_0x3a63ca[0x1],'xmax':_0x27641d[0x0],'ymax':_0x27641d[0x1]};}function getVertexShaderSource(_0x38546b){return'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'+_0x38546b+';\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[_0x408f7a(0x1f1)](exports,'__esModule',{'value':!![]});
'use strict';function _0x1839(){const _0x2de345=['6cLIvqQ','addGraphic','image','_last_heatData','default','_createGraphic','body','1782568RXpIoz','PointTrans','_graphic','Cesium','lat','_heat','rectangle','mercator2lonlat','EllipsoidSurfaceAppearance','fromDegrees','minCanvasSize','flyTo','cssText','_container','xmax','create','LngLatPoint','forEach','_getArcHeatCanvas','push','bumpMap','arc','546225RXTWAh','EPSG:3857','_updatePositionsHook','325575qxnBne','3389309DZtJxm','uniforms','toArray','_scale','_layer','round','register','_graphic2','clientHeight','GraphicLayer','layer','35852PZuQhM','ymax','9OKJUlb','DomUtil','BaseLayer','parse','10691325PqNbRf','heat','abs','xmin','KEEP','options','heatStyle','addLayer','PolyUtil','isFormat','_rectangle','setOptions','235848viOePB','lonlat2mercator','setData','removeGraphic','style','addPosition','max','StencilOperation','positions','ymin','arcRadiusScale','yellow','min','merge','StencilFunction','ImageLayer','setPositions','_removedHook','_renderer','_last_mBounds','px;height:','_positions'];_0x1839=function(){return _0x2de345;};return _0x1839();}const _0x3fe13f=_0x463d;(function(_0x49f4fd,_0x24a5db){const _0x296b89={_0x17e9b1:0xc0,_0x18b9e:0xcf,_0x1a3e82:0xaa,_0x3c6dc9:0xc4},_0x7fa634=_0x463d,_0x35d0db=_0x49f4fd();while(!![]){try{const _0x5d6f74=parseInt(_0x7fa634(_0x296b89._0x17e9b1))/0x1+parseInt(_0x7fa634(_0x296b89._0x18b9e))/0x2*(parseInt(_0x7fa634(0xd1))/0x3)+parseInt(_0x7fa634(_0x296b89._0x1a3e82))/0x4+-parseInt(_0x7fa634(0xc3))/0x5+-parseInt(_0x7fa634(0xa3))/0x6*(-parseInt(_0x7fa634(_0x296b89._0x3c6dc9))/0x7)+parseInt(_0x7fa634(0xe1))/0x8+-parseInt(_0x7fa634(0xd5))/0x9;if(_0x5d6f74===_0x24a5db)break;else _0x35d0db['push'](_0x35d0db['shift']());}catch(_0x314ab7){_0x35d0db['push'](_0x35d0db['shift']());}}}(_0x1839,0x4ac61));function _interopNamespace(_0x3e5030){const _0x13ad0d=_0x463d;if(_0x3e5030&&_0x3e5030['__esModule'])return _0x3e5030;var _0x3591aa=Object[_0x13ad0d(0xb9)](null);return _0x3e5030&&Object['keys'](_0x3e5030)['forEach'](function(_0x39caa1){if(_0x39caa1!=='default'){var _0x491954=Object['getOwnPropertyDescriptor'](_0x3e5030,_0x39caa1);Object['defineProperty'](_0x3591aa,_0x39caa1,_0x491954['get']?_0x491954:{'enumerable':!![],'get':function(){return _0x3e5030[_0x39caa1];}});}}),_0x3591aa[_0x13ad0d(0xa7)]=_0x3e5030,_0x3591aa;}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[_0x3fe13f(0xb9)])throw new Error('请引入\x20heatmap.js\x20库\x20');function _0x463d(_0x5ca123,_0x16b0ba){const _0x183927=_0x1839();return _0x463d=function(_0x463dfe,_0x14b96e){_0x463dfe=_0x463dfe-0x8e;let _0x376727=_0x183927[_0x463dfe];return _0x376727;},_0x463d(_0x5ca123,_0x16b0ba);}const Cesium=mars3d__namespace[_0x3fe13f(0xad)],BaseLayer=mars3d__namespace['layer'][_0x3fe13f(0xd3)],DEF_HEATSTYLE={'maxOpacity':0.8,'minOpacity':0.1,'blur':0.85,'radius':0x19,'gradient':{0.4:'blue',0.6:'green',0.8:_0x3fe13f(0x98),0.9:'red'}},DEF_STYLE={'arcRadiusScale':1.5,'arcBlurScale':1.5,'vertexFormat':Cesium['EllipsoidSurfaceAppearance']['VERTEX_FORMAT']};class HeatLayer extends BaseLayer{constructor(_0x52b8c6={}){const _0x5209ba={_0x248e23:0xda,_0x27cab9:0x99,_0x18740a:0xb4},_0x3e9a12=_0x3fe13f;super(_0x52b8c6),this['options']['maxCanvasSize']=this[_0x3e9a12(_0x5209ba._0x248e23)]['maxCanvasSize']??document['body']['clientWidth'],this['options']['maxCanvasSize']=Math[_0x3e9a12(_0x5209ba._0x27cab9)](this[_0x3e9a12(0xda)]['maxCanvasSize'],0x1388),this['options'][_0x3e9a12(_0x5209ba._0x18740a)]=this['options']['minCanvasSize']??document[_0x3e9a12(0xa9)][_0x3e9a12(0xcc)],this[_0x3e9a12(0xda)]['minCanvasSize']=Math[_0x3e9a12(0x93)](this['options']['minCanvasSize'],0x2bc),this[_0x3e9a12(0xda)]['heatStyle']={...DEF_HEATSTYLE,...this[_0x3e9a12(_0x5209ba._0x248e23)]['heatStyle']},this['options']['style']={...DEF_STYLE,...this['options']['style']};}get['layer'](){return this['_layer'];}get['heatStyle'](){const _0x434681={_0x2281ff:0xda},_0x8b516c=_0x3fe13f;return this[_0x8b516c(_0x434681._0x2281ff)]['heatStyle'];}set['heatStyle'](_0x4de1f1){const _0x2ca07c={_0xbda8b1:0x9a,_0x245dc0:0xaf},_0x49e506=_0x3fe13f;this[_0x49e506(0xda)]['heatStyle']=mars3d__namespace['Util'][_0x49e506(_0x2ca07c._0xbda8b1)](this['options']['heatStyle'],_0x4de1f1),this['_heat']&&(this[_0x49e506(_0x2ca07c._0x245dc0)]['configure'](this['options']['heatStyle']),this['_updatePositionsHook'](!![]));}get['style'](){const _0x3016ca={_0x4c65b8:0xda},_0x310909=_0x3fe13f;return this[_0x310909(_0x3016ca._0x4c65b8)]['style'];}set[_0x3fe13f(0x91)](_0x490274){const _0x8dc0d9={_0x26d33f:0x91},_0x47f5bb=_0x3fe13f;this['options']['style']=mars3d__namespace['Util'][_0x47f5bb(0x9a)](this[_0x47f5bb(0xda)][_0x47f5bb(_0x8dc0d9._0x26d33f)],_0x490274);}get[_0x3fe13f(0x95)](){const _0x22802b={_0x3202da:0xa2},_0x2dc456=_0x3fe13f;return this[_0x2dc456(_0x22802b._0x3202da)];}set[_0x3fe13f(0x95)](_0x72d773){const _0x1fec57={_0x244b83:0x9d},_0x4abdda=_0x3fe13f;this[_0x4abdda(_0x1fec57._0x244b83)](_0x72d773);}get['coordinates'](){const _0x2901eb=[];return this['points']['forEach'](_0x4035d4=>{const _0x193253=_0x463d;_0x2901eb['push'](_0x4035d4[_0x193253(0xc6)]());}),_0x2901eb;}get['rectangle'](){return this['_rectangle'];}['_setOptionsHook'](_0x469f2b,_0x16c2c0){const _0xa9db42=_0x3fe13f;_0x469f2b[_0xa9db42(0x95)]&&(this[_0xa9db42(0x95)]=_0x469f2b['positions']);}['_mountedHook'](){const _0x16036b={_0x2d9127:0xa5,_0x5885dd:0xce,_0x4e483b:0x9c},_0x45c08a=_0x3fe13f;this['style']['type']===_0x45c08a(_0x16036b._0x2d9127)?this['_layer']=new mars3d__namespace[(_0x45c08a(_0x16036b._0x5885dd))][(_0x45c08a(_0x16036b._0x4e483b))]({'crs':_0x45c08a(0xc1),'private':!![]}):this['_layer']=new mars3d__namespace['layer'][(_0x45c08a(0xcd))]({'private':!![]});}['_addedHook'](){const _0x59f42c={_0x574e37:0xda},_0x37c2e8=_0x3fe13f;this['_map'][_0x37c2e8(0xdc)](this['_layer']),this['_container']=mars3d__namespace['DomUtil']['create']('div','mars3d-heatmap\x20mars3d-hideDiv',this['_map']['container']),this[_0x37c2e8(_0x59f42c._0x574e37)]['positions']&&(this['positions']=this['options']['positions']),this['options'][_0x37c2e8(0xb5)]&&this['flyToByAnimationEnd']();}[_0x3fe13f(0x9e)](){const _0x2e8c83={_0x1fd17a:0xb7,_0x8081cd:0xc8},_0x50d0fd=_0x3fe13f;this[_0x50d0fd(0xb7)]&&(mars3d__namespace['DomUtil']['remove'](this['_container']),delete this[_0x50d0fd(_0x2e8c83._0x1fd17a)]),this['clear'](),this['_map']['removeLayer'](this[_0x50d0fd(_0x2e8c83._0x8081cd)]);}[_0x3fe13f(0x92)](_0x3afd0b,_0x4d2013){const _0x2cc3e={_0x5709a9:0xa2},_0xa77423=_0x3fe13f;this[_0xa77423(_0x2cc3e._0x5709a9)]=this['_positions']||[],this['_positions'][_0xa77423(0xbd)](_0x3afd0b),this['_updatePositionsHook'](_0x4d2013);}[_0x3fe13f(0x9d)](_0x22b03a,_0x16f47a){this['_positions']=_0x22b03a,this['_updatePositionsHook'](_0x16f47a);}['clear'](){const _0x5c4b10=_0x3fe13f;this[_0x5c4b10(0xac)]&&(this['_layer'][_0x5c4b10(0x90)](this['_graphic'],!![]),delete this[_0x5c4b10(0xac)]),this['_graphic2']&&(this['_layer']['removeGraphic'](this['_graphic2'],!![]),delete this['_graphic2']);}[_0x3fe13f(0xc2)](_0x186d1c){const _0x31428c={_0x123f0c:0xe0,_0xd2e93c:0xbc},_0x4cacbe=_0x3fe13f;if(!this['show']||!this['_map']||!this['positions']||this['positions']['length']===0x0)return this;const _0x21e9ef=this['_getHeatCanvas']();if(this['style']['type']==='image')this[_0x4cacbe(0xc8)][_0x4cacbe(_0x31428c._0x123f0c)]({'url':_0x21e9ef['toDataURL']('image/png'),'rectangle':this['_rectangle'],'opacity':this['style']['opacity']});else this['style'][_0x4cacbe(0xbf)]?this['_graphic']&&_0x186d1c?(this['_graphic'][_0x4cacbe(0xc5)]['image']=_0x21e9ef,this['_graphic']['uniforms']['bumpMap']=this[_0x4cacbe(_0x31428c._0xd2e93c)](),this[_0x4cacbe(0xcb)]&&(this['_graphic2']['uniforms']['image']=_0x21e9ef,this[_0x4cacbe(0xcb)][_0x4cacbe(0xc5)]['bumpMap']=this[_0x4cacbe(0xac)]['uniforms'][_0x4cacbe(0xbe)])):this['_createArcGraphic'](_0x21e9ef):this['_graphic']&&_0x186d1c?this['_graphic']['uniforms'][_0x4cacbe(0xa5)]=_0x21e9ef:this['_createGraphic'](_0x21e9ef);return this;}[_0x3fe13f(0xa8)](_0x2b3545){const _0x42ad66={_0x4fec6a:0xb2},_0x553f3c=_0x3fe13f;this['clear'](),this['_graphic']=new mars3d__namespace['graphic']['RectanglePrimitive']({...this['options'],'rectangle':this['_rectangle'],'appearance':new Cesium[(_0x553f3c(_0x42ad66._0x4fec6a))]({'material':new Cesium['Material']({'fabric':{'uniforms':{'image':_0x2b3545},'source':HeatMaterial},'translucent':!![]}),'flat':!![]})}),this['_layer'][_0x553f3c(0xa4)](this['_graphic']);}['_createArcGraphic'](_0x55c0eb){const _0x46031c={_0x5c2480:0x9b,_0x4c021e:0x94,_0x396842:0x91,_0xfa425a:0xac,_0x10c1d1:0xdf},_0x4d4ab0=_0x3fe13f;this['clear']();const _0x46373d=Cesium['RenderState']['fromCache']({'cull':{'enabled':!![]},'depthTest':{'enabled':!![]},'stencilTest':{'enabled':!![],'frontFunction':Cesium[_0x4d4ab0(_0x46031c._0x5c2480)]['ALWAYS'],'frontOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium['StencilOperation']['KEEP'],'zPass':Cesium[_0x4d4ab0(_0x46031c._0x4c021e)]['REPLACE']},'backFunction':Cesium['StencilFunction']['ALWAYS'],'backOperation':{'fail':Cesium['StencilOperation']['KEEP'],'zFail':Cesium['StencilOperation'][_0x4d4ab0(0xd9)],'zPass':Cesium['StencilOperation']['REPLACE']},'reference':0x2,'mask':0x2},'blending':Cesium['BlendingState']['ALPHA_BLEND']}),_0x78660a=Math['floor'](this['style']['diffHeight']??this['_mBoundsMax']*0.02)+0.1;this['style']['diffHeight']&&delete this[_0x4d4ab0(0x91)]['diffHeight'];const _0x344153=(this[_0x4d4ab0(_0x46031c._0x396842)]['splitNum'],0x64);let _0x17b28b=Math['max'](this['_rectangle']['height'],this['_rectangle']['width']);this[_0x4d4ab0(_0x46031c._0x396842)]['granularity']=_0x17b28b/=_0x344153;const _0x31ab3f=new Cesium['Material']({'fabric':{'uniforms':{'image':_0x55c0eb,'repeat':new Cesium['Cartesian2'](0x1,0x1),'color':new Cesium['Color'](0x1,0x1,0x1,0x0),'bumpMap':this['_getArcHeatCanvas']()},'source':HeatMaterial},'translucent':!![]}),_0x519bd5=this['style']['arcDirection']||0x1;this[_0x4d4ab0(_0x46031c._0xfa425a)]=new mars3d__namespace['graphic']['RectanglePrimitive']({...this['options'],'rectangle':this['_rectangle'],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x46373d,'material':_0x31ab3f,'vertexShaderSource':getVertexShaderSource(_0x78660a*_0x519bd5)})}),this['_layer']['addGraphic'](this['_graphic']),this['style']['arcDirection']===0x0&&(this['_graphic2']=new mars3d__namespace['graphic']['RectanglePrimitive']({...this['options'],'rectangle':this[_0x4d4ab0(_0x46031c._0x10c1d1)],'appearance':new Cesium['EllipsoidSurfaceAppearance']({'flat':!![],'aboveGround':!![],'renderState':_0x46373d,'material':_0x31ab3f,'vertexShaderSource':getVertexShaderSource(-_0x78660a)})}),this['_layer']['addGraphic'](this['_graphic2']));}['getRectangle'](_0x1fde56){const _0x4dbcac={_0x587e4a:0xdd},_0x37216c=_0x3fe13f;return _0x1fde56!==null&&_0x1fde56!==void 0x0&&_0x1fde56[_0x37216c(0xde)]&&this['_rectangle']?mars3d__namespace[_0x37216c(_0x4dbcac._0x587e4a)]['formatRectangle'](this['_rectangle']):this[_0x37216c(0xdf)];}['_getHeatCanvas'](){const _0x41c3ef={_0x12c192:0xa2,_0x109cc2:0xd7,_0x21c17:0x96,_0x43767b:0xd0,_0x47b10a:0xc7,_0x3621f3:0xbb,_0x530f28:0xda,_0x297ce8:0x93,_0x475a34:0xa6,_0x5961b4:0xa0,_0x534c30:0xd8,_0x387d27:0xd0,_0x4b0e66:0xa0,_0x2178bc:0x91,_0x853149:0xa1,_0x4d202b:0x8f},_0x527a1d={_0x2395c7:0x8e,_0x135399:0xd0,_0x132ad0:0x93},_0x1b7bac={_0x143d21:0xba,_0x48cb3b:0xb0},_0xd39d91=_0x3fe13f,_0x3d69b1=this[_0xd39d91(_0x41c3ef._0x12c192)],_0x4eff89=[];let _0x48ec3d,_0x3fe325,_0x4a3986,_0xed37a7;_0x3d69b1['forEach'](_0x5e957e=>{const _0x5d06e2=_0xd39d91,_0x4ec082=mars3d__namespace[_0x5d06e2(_0x1b7bac._0x143d21)]['parse'](_0x5e957e);if(!_0x4ec082)return;_0x4ec082['value']=_0x5e957e['value']||0x1,!this['options'][_0x5d06e2(_0x1b7bac._0x48cb3b)]&&(_0x48ec3d===undefined?(_0x48ec3d=_0x4ec082['lng'],_0x3fe325=_0x4ec082['lng'],_0x4a3986=_0x4ec082['lat'],_0xed37a7=_0x4ec082['lat']):(_0x48ec3d=Math['min'](_0x48ec3d,_0x4ec082['lng']),_0x3fe325=Math[_0x5d06e2(0x93)](_0x3fe325,_0x4ec082['lng']),_0x4a3986=Math['min'](_0x4a3986,_0x4ec082['lat']),_0xed37a7=Math['max'](_0xed37a7,_0x4ec082['lat']))),_0x4eff89['push'](_0x4ec082);});_0x48ec3d===_0x3fe325&&(_0x48ec3d-=0.000001,_0x3fe325+=0.000001);_0x4a3986===_0xed37a7&&(_0x4a3986-=0.000001,_0xed37a7+=0.000001);let _0x4040b5=this['options'][_0xd39d91(0xb0)]||{'xmin':_0x48ec3d,'xmax':_0x3fe325,'ymin':_0x4a3986,'ymax':_0xed37a7};const _0x17836f=getMercatorBounds(_0x4040b5),_0x28947e=Math[_0xd39d91(0xd7)](_0x17836f['xmax']-_0x17836f[_0xd39d91(0xd8)]),_0x4c2c40=Math[_0xd39d91(_0x41c3ef._0x109cc2)](_0x17836f['ymax']-_0x17836f[_0xd39d91(_0x41c3ef._0x21c17)]),_0x4c1f6d=Math['max'](_0x28947e,_0x4c2c40),_0x18e949=Math['min'](_0x28947e,_0x4c2c40);this['_mBoundsMax']=_0x4c1f6d;let _0x4fc339=0x1;if(_0x4c1f6d>this['options']['maxCanvasSize'])_0x4fc339=_0x4c1f6d/this['options']['maxCanvasSize'],_0x18e949/_0x4fc339<this[_0xd39d91(0xda)]['minCanvasSize']&&(_0x4fc339=_0x18e949/this[_0xd39d91(0xda)]['minCanvasSize']);else _0x18e949<this['options']['minCanvasSize']&&(_0x4fc339=_0x18e949/this['options']['minCanvasSize'],_0x4c1f6d/_0x4fc339>this[_0xd39d91(0xda)]['maxCanvasSize']&&(_0x4fc339=_0x4c1f6d/this['options']['maxCanvasSize']));const _0x304db0=this[_0xd39d91(0xdb)]['radius']*1.5,_0x3760d1=_0x28947e/_0x4fc339+_0x304db0*0x2,_0x362793=_0x4c2c40/_0x4fc339+_0x304db0*0x2,_0x531e32=_0x304db0*_0x4fc339;_0x17836f[_0xd39d91(0xd8)]-=_0x531e32,_0x17836f['ymin']-=_0x531e32,_0x17836f['xmax']+=_0x531e32,_0x17836f[_0xd39d91(_0x41c3ef._0x43767b)]+=_0x531e32,this[_0xd39d91(_0x41c3ef._0x47b10a)]=_0x4fc339,_0x4040b5=geLatLngBounds(_0x17836f),this['_rectangle']=Cesium['Rectangle'][_0xd39d91(0xb3)](_0x4040b5['xmin'],_0x4040b5['ymin'],_0x4040b5['xmax'],_0x4040b5[_0xd39d91(0xd0)]);let _0x161628=_0x4eff89[0x0]['value']??0x1,_0x1d1bfc=_0x4eff89[0x0]['value']??0x0;const _0x589033=[];_0x4eff89[_0xd39d91(_0x41c3ef._0x3621f3)](_0x15e7b0=>{const _0x455200=_0xd39d91,_0x1dbbcf=mars3d__namespace[_0x455200(0xab)][_0x455200(_0x527a1d._0x2395c7)]([_0x15e7b0['lng'],_0x15e7b0['lat']]),_0x4f0eb9=_0x15e7b0['value']||0x1,_0x252b1d=Math['round']((_0x1dbbcf[0x0]-_0x17836f[_0x455200(0xd8)])/_0x4fc339),_0x2b353b=Math['round']((_0x17836f[_0x455200(_0x527a1d._0x135399)]-_0x1dbbcf[0x1])/_0x4fc339);_0x161628=Math[_0x455200(_0x527a1d._0x132ad0)](_0x161628,_0x4f0eb9),_0x1d1bfc=Math['min'](_0x1d1bfc,_0x4f0eb9),_0x589033[_0x455200(0xbd)]({'x':_0x252b1d,'y':_0x2b353b,'value':_0x4f0eb9});});const _0x2d489b={'min':this[_0xd39d91(_0x41c3ef._0x530f28)][_0xd39d91(0x99)]??_0x1d1bfc,'max':this['options'][_0xd39d91(_0x41c3ef._0x297ce8)]??_0x161628,'data':_0x589033};this[_0xd39d91(_0x41c3ef._0x475a34)]=_0x2d489b;if(!this[_0xd39d91(_0x41c3ef._0x5961b4)]||_0x17836f['xmin']!==this[_0xd39d91(0xa0)][_0xd39d91(_0x41c3ef._0x534c30)]||_0x17836f['ymin']!==this['_last_mBounds']['ymin']||_0x17836f['xmax']!==this['_last_mBounds'][_0xd39d91(0xb8)]||_0x17836f[_0xd39d91(_0x41c3ef._0x387d27)]!==this['_last_mBounds']['ymax']){this[_0xd39d91(_0x41c3ef._0x4b0e66)]=_0x17836f,this[_0xd39d91(0xb7)][_0xd39d91(_0x41c3ef._0x2178bc)][_0xd39d91(0xb6)]='width:'+_0x3760d1+_0xd39d91(_0x41c3ef._0x853149)+_0x362793+'px;';const _0x36b090={...this['heatStyle'],'container':this['_container']};!this['_heat']?this['_heat']=h337__namespace[_0xd39d91(0xb9)](_0x36b090):this['_heat']['configure'](_0x36b090);}this['_heat'][_0xd39d91(_0x41c3ef._0x4d202b)](_0x2d489b);const _0x26fc98=mars3d__namespace['DomUtil']['copyCanvas'](this['_heat']['_renderer']['canvas']);return _0x26fc98;}[_0x3fe13f(0xbc)](){const _0x51c2da={_0x14515d:0x97,_0x2be72c:0xaf},_0x5e26e1=_0x3fe13f;this['_heat']['configure']({'radius':this['heatStyle']['radius']*this['style'][_0x5e26e1(_0x51c2da._0x14515d)],'blur':this['heatStyle']['blur']*this['style']['arcBlurScale'],'gradient':this['heatStyle']['gradientArc']||{0.25:'rgb(0,0,0)',0.55:'rgb(140,140,140)',0.85:'rgb(216,216,216)',0x1:'rgb(255,255,255)'}});const _0x4f3718=mars3d__namespace[_0x5e26e1(0xd2)]['copyCanvas'](this[_0x5e26e1(0xaf)]['_renderer']['canvas']);return this[_0x5e26e1(_0x51c2da._0x2be72c)]['configure'](this[_0x5e26e1(0xda)]['heatStyle']),_0x4f3718;}['getPointData'](_0xb8569){const _0x287f28={_0x3d2eaa:0xd4,_0x3798ce:0xab},_0x5434d1=_0x3fe13f,_0x171c99=mars3d__namespace['LngLatPoint'][_0x5434d1(_0x287f28._0x3d2eaa)](_0xb8569);if(!_0x171c99)return{};const _0x40c5c2=mars3d__namespace[_0x5434d1(_0x287f28._0x3798ce)]['lonlat2mercator']([_0x171c99['lng'],_0x171c99[_0x5434d1(0xae)]]),_0x45ddc5=this[_0x5434d1(0xa0)],_0x48a376=Math[_0x5434d1(0xc9)]((_0x40c5c2[0x0]-_0x45ddc5['xmin'])/this['_scale']),_0x2f01df=Math['round']((_0x45ddc5[_0x5434d1(0xd0)]-_0x40c5c2[0x1])/this[_0x5434d1(0xc7)]),_0x478d67=this['_heat']['getValueAt']({'x':_0x48a376,'y':_0x2f01df}),_0x2a2017=this['_heat'][_0x5434d1(0x9f)]['ctx']['getImageData'](_0x48a376-0x1,_0x2f01df-0x1,0x1,0x1)['data'];return{'x':_0x48a376,'y':_0x2f01df,'value':_0x478d67,'color':'rgba('+_0x2a2017[0x0]+','+_0x2a2017[0x1]+','+_0x2a2017[0x2]+','+_0x2a2017[0x3]+')'};}}mars3d__namespace['LayerUtil'][_0x3fe13f(0xca)](_0x3fe13f(0xd6),HeatLayer),mars3d__namespace[_0x3fe13f(0xce)]['HeatLayer']=HeatLayer,mars3d__namespace['h337']=h337__namespace;function getMercatorBounds(_0x392af7){const _0x2f3489=_0x3fe13f,_0x71b5bc=mars3d__namespace['PointTrans']['lonlat2mercator']([_0x392af7['xmin'],_0x392af7[_0x2f3489(0x96)]]),_0xba6146=mars3d__namespace['PointTrans'][_0x2f3489(0x8e)]([_0x392af7['xmax'],_0x392af7['ymax']]);return{'xmin':_0x71b5bc[0x0],'ymin':_0x71b5bc[0x1],'xmax':_0xba6146[0x0],'ymax':_0xba6146[0x1]};}function geLatLngBounds(_0x408487){const _0xd9aee2=_0x3fe13f,_0x416e1c=mars3d__namespace[_0xd9aee2(0xab)][_0xd9aee2(0xb1)]([_0x408487['xmin'],_0x408487['ymin']]),_0x3c050f=mars3d__namespace['PointTrans']['mercator2lonlat']([_0x408487['xmax'],_0x408487['ymax']]);return{'xmin':_0x416e1c[0x0],'ymin':_0x416e1c[0x1],'xmax':_0x3c050f[0x0],'ymax':_0x3c050f[0x1]};}function getVertexShaderSource(_0x16412a){return'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'+_0x16412a+';\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.16",
"version": "3.6.17",
"description": "Mars3D平台插件,结合heatmap可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.6.16"
"mars3d": "~3.6.17"
},

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