ym-gis-2d 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Select.js.map +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
package/capabilities/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x162585,_0x34650d){const _0x525d25=a0_0x1428,_0x502141=_0x162585();while(!![]){try{const _0xe41b92=parseInt(_0x525d25(0x190))/0x1+-parseInt(_0x525d25(0x186))/0x2+-parseInt(_0x525d25(0x162))/0x3+-parseInt(_0x525d25(0x173))/0x4+parseInt(_0x525d25(0x177))/0x5*(-parseInt(_0x525d25(0x18f))/0x6)+parseInt(_0x525d25(0x1b3))/0x7*(parseInt(_0x525d25(0x196))/0x8)+parseInt(_0x525d25(0x1a7))/0x9;if(_0xe41b92===_0x34650d)break;else _0x502141['push'](_0x502141['shift']());}catch(_0x220d0f){_0x502141['push'](_0x502141['shift']());}}}(a0_0x1bfe,0xb28b1));import{addArgument,appendPath}from'../utils/UrlUtil';import a0_0x49af09 from'../utils/AxiosUtil';import{jsonp}from'../utils/AxiosUtil';import a0_0x3e54ff from'ol/format/WMTSCapabilities';import a0_0x4bfc55 from'ol/format/WMSCapabilities';import{readXml}from'../utils/XmlUtil';import{transformedToNumber}from'../utils/StringUtil';export async function getDynamicLayerInfo(_0x3b60a2){const _0x5e914d=a0_0x1428,_0x1dbcc3=addArgument(_0x3b60a2,'f',_0x5e914d(0x167)),_0x157e3e=await a0_0x49af09[_0x5e914d(0x16f)](_0x1dbcc3);return _0x157e3e[_0x5e914d(0x197)];}export async function getFeatureLayerInfo(_0x397f14,_0x200124){const _0x5476a3=a0_0x1428;let _0x3d05ba=addArgument(_0x397f14,'f',_0x5476a3(0x167));_0x3d05ba=appendPath(_0x3d05ba,_0x200124);const _0x1d9420=await jsonp(_0x3d05ba);return _0x1d9420[_0x5476a3(0x174)]=_0x3d05ba,_0x1d9420;}export async function getWMSLayerCapabilities(_0x9d5621,_0x40fc93){const _0x4ab24b=a0_0x1428,_0x79178e=await getWMSCapabilities(_0x9d5621);let _0xa2bde8={},_0x4b429d=_0x79178e[_0x4ab24b(0x189)]['Layer'][_0x4ab24b(0x1a1)];for(let _0x8014c5=0x0;_0x8014c5<_0x4b429d['length'];_0x8014c5++){const _0x1c9cb0=_0x4b429d[_0x8014c5];if(_0x1c9cb0[_0x4ab24b(0x19f)]==_0x40fc93){_0xa2bde8['style']=_0x1c9cb0[_0x4ab24b(0x19b)][0x0][_0x4ab24b(0x19f)];for(let _0x33afac=0x0;_0x33afac<_0x1c9cb0[_0x4ab24b(0x165)][_0x4ab24b(0x1a8)];_0x33afac++){const _0x4802c2=_0x1c9cb0['BoundingBox'][_0x33afac];if(_0x4802c2[_0x4ab24b(0x19c)]['indexOf']('EPSG:')>-0x1){_0xa2bde8['wkid']=transformedToNumber(_0x4802c2[_0x4ab24b(0x19c)]),_0xa2bde8[_0x4ab24b(0x160)]=[_0x4802c2[_0x4ab24b(0x185)][0x1],_0x4802c2[_0x4ab24b(0x185)][0x0],_0x4802c2[_0x4ab24b(0x185)][0x3],_0x4802c2[_0x4ab24b(0x185)][0x2]];break;}}break;}}return _0xa2bde8;}export async function getWMTSLayerCapabilities(_0x557d03,_0x4c441f){const _0x2b54f5=a0_0x1428,_0x1602eb=await getWMTSCapabilities(_0x557d03);let _0x254cfd={},_0x320ceb=_0x1602eb['Contents'][_0x2b54f5(0x1a1)];_0x254cfd['sourceXml']=_0x1602eb;for(let _0x55a2ee=0x0;_0x55a2ee<_0x320ceb[_0x2b54f5(0x1a8)];_0x55a2ee++){const _0xd889ea=_0x320ceb[_0x55a2ee];if(_0xd889ea[_0x2b54f5(0x1ae)]==_0x4c441f){_0x254cfd[_0x2b54f5(0x161)]=_0xd889ea[_0x2b54f5(0x17a)],_0x254cfd[_0x2b54f5(0x1a6)]=_0xd889ea[_0x2b54f5(0x19b)][0x0][_0x2b54f5(0x1ae)],_0x254cfd[_0x2b54f5(0x180)]=_0xd889ea[_0x2b54f5(0x175)][0x0][_0x2b54f5(0x18a)],_0x254cfd[_0x2b54f5(0x17c)]=_0xd889ea[_0x2b54f5(0x17d)],_0x254cfd[_0x2b54f5(0x183)]=_0xd889ea[_0x2b54f5(0x165)]&&_0xd889ea['BoundingBox']['length']>0x0?_0xd889ea['BoundingBox'][0x0][_0x2b54f5(0x185)]:_0x254cfd[_0x2b54f5(0x17c)];break;}}if(_0x254cfd[_0x2b54f5(0x180)])for(let _0x364e9f=0x0;_0x364e9f<_0x1602eb['Contents'][_0x2b54f5(0x18a)][_0x2b54f5(0x1a8)];_0x364e9f++){const _0x119eb7=_0x1602eb[_0x2b54f5(0x1ac)][_0x2b54f5(0x18a)][_0x364e9f];if(_0x119eb7[_0x2b54f5(0x1ae)]==_0x254cfd[_0x2b54f5(0x180)]){_0x254cfd[_0x2b54f5(0x16e)]=transformedToNumber(_0x119eb7[_0x2b54f5(0x191)]),_0x254cfd[_0x2b54f5(0x195)]=[];for(let _0x5f218c=0x0;_0x5f218c<_0x119eb7[_0x2b54f5(0x1a3)][_0x2b54f5(0x1a8)];_0x5f218c++){const _0xb4ee05=_0x119eb7[_0x2b54f5(0x1a3)][_0x5f218c];_0x254cfd['tileMatrixs'][_0x2b54f5(0x1a4)]({'identifier':_0xb4ee05['Identifier'],'matrixHeight':_0xb4ee05[_0x2b54f5(0x17f)],'matrixWidth':_0xb4ee05[_0x2b54f5(0x182)],'scaleDenominator':_0xb4ee05['ScaleDenominator'],'tileHeight':_0xb4ee05['TileHeight'],'tileWidth':_0xb4ee05[_0x2b54f5(0x1aa)],'topLeftCorner':_0xb4ee05['TopLeftCorner']});}break;}}return _0x254cfd;}export async function getWFSLayerCapabilities(_0x5701f3,_0x4ed7cd){const _0x130c84=a0_0x1428,_0x2169cd=await getWFSCapabilities(_0x5701f3);let _0x3e4e11={};const _0x2041a6=await getWmsLayerFields(_0x5701f3,_0x4ed7cd);_0x3e4e11[_0x130c84(0x163)]=_0x2041a6;let _0x54e3a8=_0x2169cd[_0x130c84(0x19e)](_0x130c84(0x179))[0x0]['children'],_0x50b4dc;for(let _0x477566=0x0,_0x5e9adb=_0x54e3a8['length'];_0x477566<_0x5e9adb;_0x477566++){for(let _0x1d368a=0x0,_0x11f874=_0x54e3a8[_0x477566]['children'][_0x130c84(0x1a8)];_0x1d368a<_0x11f874;_0x1d368a++){if(_0x54e3a8[_0x477566][_0x130c84(0x1a9)][_0x1d368a][_0x130c84(0x18c)]===_0x130c84(0x19f)){const _0x549119=_0x54e3a8[_0x477566]['children'][_0x1d368a][_0x130c84(0x170)][_0x130c84(0x19d)]();if(_0x549119==_0x4ed7cd||_0x549119[_0x130c84(0x1b1)](':'+_0x4ed7cd)>-0x1){_0x50b4dc=_0x54e3a8[_0x477566];break;}}}if(_0x50b4dc)break;}let _0x553566=[];for(let _0x14adee=0x0,_0x5ad0b0=_0x50b4dc['children']['length'];_0x14adee<_0x5ad0b0;_0x14adee++){if(_0x50b4dc[_0x130c84(0x1a9)][_0x14adee]['nodeName']===_0x130c84(0x17e)){let _0x263632=_0x50b4dc[_0x130c84(0x1a9)][_0x14adee][_0x130c84(0x1a9)][0x0]['innerHTML'][_0x130c84(0x188)]('\x20'),_0x2d7477=_0x50b4dc['children'][_0x14adee][_0x130c84(0x1a9)][0x1][_0x130c84(0x170)][_0x130c84(0x188)]('\x20');_0x263632&&_0x2d7477&&(_0x553566=[_0x263632[0x0]-0x0,_0x263632[0x1]-0x0,_0x2d7477[0x0]-0x0,_0x2d7477[0x1]-0x0]),_0x3e4e11[_0x130c84(0x160)]=_0x553566;}else _0x50b4dc[_0x130c84(0x1a9)][_0x14adee][_0x130c84(0x18c)]===_0x130c84(0x18e)&&(_0x3e4e11[_0x130c84(0x16e)]=transformedToNumber(_0x50b4dc[_0x130c84(0x1a9)][_0x14adee][_0x130c84(0x170)]));}return _0x3e4e11;}export async function getWMSCapabilities(_0x29128d){const _0x13edfb=a0_0x1428;let _0x5d31e5=addArgument(_0x29128d,_0x13edfb(0x1af),'GetCapabilities');_0x5d31e5=addArgument(_0x5d31e5,_0x13edfb(0x187),_0x13edfb(0x1a0));const _0xcf88e4=await a0_0x49af09[_0x13edfb(0x16f)](_0x5d31e5);let _0x42a829=new a0_0x4bfc55();return _0x42a829[_0x13edfb(0x192)](_0xcf88e4[_0x13edfb(0x197)]);}export async function getWMTSCapabilities(_0x1f834d){const _0x2b5fb7=a0_0x1428;let _0x5e157b=addArgument(_0x1f834d,_0x2b5fb7(0x1af),_0x2b5fb7(0x1a5));_0x5e157b=addArgument(_0x5e157b,_0x2b5fb7(0x187),'wmts');const _0x357965=await a0_0x49af09['get'](_0x5e157b);let _0x175400=new a0_0x3e54ff();return _0x175400[_0x2b5fb7(0x192)](_0x357965['data']);}export async function getWFSCapabilities(_0x88639c){const _0xf2be22=a0_0x1428;let _0x33b58e=addArgument(_0x88639c,'request',_0xf2be22(0x1a5));_0x33b58e=addArgument(_0x33b58e,_0xf2be22(0x187),_0xf2be22(0x1ad));const _0x1a4674=await a0_0x49af09[_0xf2be22(0x16f)](_0x33b58e),_0x212953=readXml(_0x1a4674[_0xf2be22(0x197)]);return _0x212953;}export async function getWmsLayerFields(_0x2c369b,_0x3509ad){const _0x180ca5=a0_0x1428;let _0x2b11c9=addArgument(_0x2c369b,_0x180ca5(0x1af),_0x180ca5(0x172));_0x2b11c9=addArgument(_0x2b11c9,_0x180ca5(0x187),_0x180ca5(0x1ad)),_0x2b11c9=addArgument(_0x2b11c9,_0x180ca5(0x1b2),_0x3509ad);const _0x1147b7=await a0_0x49af09[_0x180ca5(0x16f)](_0x2b11c9),_0xa22dfa=readXml(_0x1147b7[_0x180ca5(0x197)]);let _0x4204ec=[];const _0xa91ba1=_0xa22dfa[_0x180ca5(0x19e)](_0x180ca5(0x16d))[0x0][_0x180ca5(0x1a9)];for(let _0x1f058e=0x0;_0x1f058e<_0xa91ba1['length'];_0x1f058e++){const _0x2b2223=_0xa91ba1[_0x1f058e],_0x5572e0=_0x2b2223[_0x180ca5(0x193)][_0x180ca5(0x168)][_0x180ca5(0x164)];let _0x323de5=0x1;if(_0x5572e0[_0x180ca5(0x1b1)](_0x180ca5(0x1ab))>-0x1)_0x323de5=0x1;else{if(_0x5572e0[_0x180ca5(0x1b1)]('int')>-0x1||_0x5572e0['indexOf']('short')>-0x1)_0x323de5=0x2;else{if(_0x5572e0[_0x180ca5(0x1b1)](_0x180ca5(0x198))>-0x1||_0x5572e0[_0x180ca5(0x1b1)](_0x180ca5(0x178))>-0x1)_0x323de5=0x3;else{if(_0x5572e0[_0x180ca5(0x1b1)](_0x180ca5(0x166))>-0x1)_0x323de5=0x4;else _0x5572e0[_0x180ca5(0x1b1)](_0x180ca5(0x18d))>-0x1&&(_0x323de5=0x6);}}}_0x4204ec[_0x180ca5(0x1a4)]({'name':_0x2b2223[_0x180ca5(0x193)]['name']['value'],'aliasName':_0x2b2223[_0x180ca5(0x193)][_0x180ca5(0x1b0)][_0x180ca5(0x164)],'fieldType':_0x323de5,'fieldTypeName':_0x5572e0});}return _0x4204ec;}export async function getWmtsLayers(_0x499e51){const _0xe985b6=a0_0x1428,_0x3f7f62=await getWMTSCapabilities(_0x499e51);let _0x306a3d=[];if(!_0x3f7f62||!_0x3f7f62[_0xe985b6(0x1ac)]||!_0x3f7f62['Contents'][_0xe985b6(0x1a1)])return _0x306a3d;return _0x3f7f62['Contents'][_0xe985b6(0x1a1)][_0xe985b6(0x1a2)](_0x2ae39b=>{const _0x2676ba=_0xe985b6;_0x306a3d[_0x2676ba(0x1a4)]({'name':_0x2ae39b[_0x2676ba(0x1ae)],'label':_0x2ae39b['Title']});}),_0x306a3d;}export async function getWmsLayers(_0xe575d4){const _0xc778b3=a0_0x1428,_0x268079=await getWMSCapabilities(_0xe575d4);let _0x133bf9=[];if(!_0x268079||!_0x268079[_0xc778b3(0x189)]||!_0x268079[_0xc778b3(0x189)][_0xc778b3(0x1a1)]||!_0x268079[_0xc778b3(0x189)][_0xc778b3(0x1a1)]['Layer'])return _0x133bf9;return _0x268079[_0xc778b3(0x189)][_0xc778b3(0x1a1)][_0xc778b3(0x1a1)][_0xc778b3(0x1a2)](_0x1b5a39=>{const _0x3b4694=_0xc778b3;_0x133bf9['push']({'name':_0x1b5a39[_0x3b4694(0x19f)],'label':_0x1b5a39['Title']});}),_0x133bf9;}export async function getWfLayers(_0x1b988f){const _0x1f8b0b=a0_0x1428,_0xba4f61=await getWFSCapabilities(_0x1b988f);let _0x51b213=[],_0x4594d6=_0xba4f61['getElementsByTagName'](_0x1f8b0b(0x179))[0x0][_0x1f8b0b(0x1a9)],_0xf8b32c;for(let _0x5093f9=0x0,_0xf91522=_0x4594d6[_0x1f8b0b(0x1a8)];_0x5093f9<_0xf91522;_0x5093f9++){let _0x394362={'name':'','label':''};for(let _0x7b85c9=0x0,_0x1065c7=_0x4594d6[_0x5093f9][_0x1f8b0b(0x1a9)]['length'];_0x7b85c9<_0x1065c7;_0x7b85c9++){if(_0x4594d6[_0x5093f9]['children'][_0x7b85c9][_0x1f8b0b(0x18c)]==='Name'){const _0x36bec5=_0x4594d6[_0x5093f9][_0x1f8b0b(0x1a9)][_0x7b85c9][_0x1f8b0b(0x170)]['toString']();_0x394362['name']=_0x36bec5;}else{if(_0x4594d6[_0x5093f9][_0x1f8b0b(0x1a9)][_0x7b85c9]['nodeName']===_0x1f8b0b(0x16a)){const _0x1fabc2=_0x4594d6[_0x5093f9][_0x1f8b0b(0x1a9)][_0x7b85c9][_0x1f8b0b(0x170)][_0x1f8b0b(0x19d)]();_0x394362['label']=_0x1fabc2;}}}_0x394362[_0x1f8b0b(0x1b0)]!==''&&_0x394362['label']!==''&&_0x51b213[_0x1f8b0b(0x1a4)](_0x394362);}return _0x51b213;}export async function getArcgisDynamicLayers(_0x4ed0e3){const _0x2f2275=a0_0x1428;let _0x279d87=addArgument(_0x4ed0e3,'f',_0x2f2275(0x181));const _0x59e397=await a0_0x49af09[_0x2f2275(0x16f)](_0x279d87);let _0x45e1f3=[];return _0x59e397['data'][_0x2f2275(0x16c)][_0x2f2275(0x1a2)](_0x56ab88=>{const _0x21f0e5=_0x2f2275;_0x45e1f3[_0x21f0e5(0x1a4)]({'name':_0x56ab88['id'][_0x21f0e5(0x19d)](),'label':_0x56ab88[_0x21f0e5(0x1b0)]});}),_0x45e1f3;}export async function getArcgisDynamicLayerFields(_0x24a44c,_0xeb78c8){const _0x5dfa7d=a0_0x1428;let _0x455d2a=appendPath(_0x24a44c,_0xeb78c8);_0x455d2a=addArgument(_0x455d2a,'f','pjson');const _0x27200c=await a0_0x49af09[_0x5dfa7d(0x16f)](_0x455d2a);let _0x518444=[];return _0x27200c[_0x5dfa7d(0x197)][_0x5dfa7d(0x184)][_0x5dfa7d(0x1a2)](_0x83608c=>{const _0x501c29=_0x5dfa7d;let _0x5f4200=0x1;switch(_0x83608c[_0x501c29(0x168)]){case _0x501c29(0x176):_0x5f4200=0x1;break;case _0x501c29(0x194):case _0x501c29(0x199):case _0x501c29(0x19a):_0x5f4200=0x2;break;case _0x501c29(0x18b):_0x5f4200=0x3;break;case _0x501c29(0x171):_0x5f4200=0x4;break;case _0x501c29(0x169):_0x5f4200=0x6;break;default:_0x5f4200=0x1;break;}_0x518444[_0x501c29(0x1a4)]({'name':_0x83608c[_0x501c29(0x1b0)],'aliasName':_0x83608c['alias'],'fieldType':_0x5f4200,'fieldTypeName':_0x83608c[_0x501c29(0x168)],'fieldLength':_0x83608c[_0x501c29(0x1a8)]});}),_0x518444;}export async function getSourceLayerFields(_0xb31cfc,_0x1cc72d,_0x2583c3){const _0x1871f2=a0_0x1428;let _0x5383bc=[];switch(_0x2583c3){case'arcgis-dynamic':case _0x1871f2(0x17b):_0x5383bc=await getArcgisDynamicLayerFields(_0xb31cfc,_0x1cc72d);break;case _0x1871f2(0x16b):case _0x1871f2(0x15f):_0x5383bc=await getWmsLayerFields(_0xb31cfc,_0x1cc72d);break;default:break;}return _0x5383bc;}function a0_0x1428(_0x909875,_0x2f4c5f){const _0x1bfe2c=a0_0x1bfe();return a0_0x1428=function(_0x14288f,_0x481bb0){_0x14288f=_0x14288f-0x15f;let _0x48c682=_0x1bfe2c[_0x14288f];return _0x48c682;},a0_0x1428(_0x909875,_0x2f4c5f);}function a0_0x1bfe(){const _0x23f7db=['278930UnCbRw','SupportedCRS','read','attributes','esriFieldTypeInteger','tileMatrixs','72vQsZxw','data','double','esriFieldTypeSmallInteger','esriFieldTypeOID','Style','crs','toString','getElementsByTagName','Name','wms','Layer','forEach','TileMatrix','push','GetCapabilities','style','24889653QAxpcs','length','children','TileWidth','string','Contents','wfs','Identifier','request','name','indexOf','typeName','490651frxqJP','geoserver-wfs','initExtent','format','3862440ldLOSl','layerFields','value','BoundingBox','date','json','type','esriFieldTypeGeometry','Title','geoserver-wms','layers','xsd:sequence','wkid','get','innerHTML','esriFieldTypeDate','DescribeFeatureType','2343196IjlXSy','url','TileMatrixSetLink','esriFieldTypeString','894035ieXoQL','decimal','FeatureTypeList','Format','arcgis-feature','wgs84BoundingBox','WGS84BoundingBox','ows:WGS84BoundingBox','MatrixHeight','tileMatrixSet','pjson','MatrixWidth','boundingBoxExtent','fields','extent','1783770inuFJX','service','split','Capability','TileMatrixSet','esriFieldTypeDouble','nodeName','gml:','DefaultCRS','6kRMhGL'];a0_0x1bfe=function(){return _0x23f7db;};return a0_0x1bfe();}
|
|
1
|
+
(function(_0x5dc8cd,_0x351cb7){const _0x44fc58=a0_0x1a4f,_0xd91c4e=_0x5dc8cd();while(!![]){try{const _0x5b4dff=-parseInt(_0x44fc58(0x123))/0x1+parseInt(_0x44fc58(0x102))/0x2*(parseInt(_0x44fc58(0x119))/0x3)+parseInt(_0x44fc58(0xe8))/0x4*(parseInt(_0x44fc58(0x108))/0x5)+parseInt(_0x44fc58(0x121))/0x6*(parseInt(_0x44fc58(0xf2))/0x7)+-parseInt(_0x44fc58(0xf7))/0x8+-parseInt(_0x44fc58(0x13a))/0x9*(-parseInt(_0x44fc58(0x126))/0xa)+-parseInt(_0x44fc58(0x13c))/0xb;if(_0x5b4dff===_0x351cb7)break;else _0xd91c4e['push'](_0xd91c4e['shift']());}catch(_0x3854de){_0xd91c4e['push'](_0xd91c4e['shift']());}}}(a0_0x9f5b,0x2f788));function a0_0x1a4f(_0x314e11,_0x23fc38){const _0x9f5b7=a0_0x9f5b();return a0_0x1a4f=function(_0x1a4ffd,_0x381a45){_0x1a4ffd=_0x1a4ffd-0xe8;let _0x36e9b2=_0x9f5b7[_0x1a4ffd];return _0x36e9b2;},a0_0x1a4f(_0x314e11,_0x23fc38);}import{addArgument,appendPath}from'../utils/UrlUtil';import a0_0x3235fd from'../utils/AxiosUtil';import{jsonp}from'../utils/AxiosUtil';import a0_0x5ca421 from'ol/format/WMTSCapabilities';function a0_0x9f5b(){const _0x20dbe9=['3hhfCHg','crs','wmts','tileMatrixs','children','attributes','string','indexOf','411162Bpzfza','DefaultCRS','249287dlpHEu','layers','TileMatrixSet','10CyqJjL','esriFieldTypeDate','BoundingBox','fields','wfs','ows:WGS84BoundingBox','length','wkid','split','xsd:sequence','esriFieldTypeGeometry','style','toString','arcgis-dynamic','service','request','esriFieldTypeString','pjson','wgs84BoundingBox','get','3058083IVwfAi','ScaleDenominator','455213VcuLzn','geoserver-wms','typeName','335740CnSbto','label','json','forEach','alias','layerFields','boundingBoxExtent','Contents','Layer','tileMatrixSet','7pVFPwn','Name','nodeName','GetCapabilities','TileWidth','1309400uEdljX','TileMatrix','EPSG:','Identifier','esriFieldTypeDouble','TopLeftCorner','Capability','esriFieldTypeOID','Title','DescribeFeatureType','extent','313072LdVeob','TileHeight','innerHTML','FeatureTypeList','TileMatrixSetLink','data','5Argxsv','MatrixWidth','initExtent','name','arcgis-feature','value','esriFieldTypeSmallInteger','Style','double','push','decimal','WGS84BoundingBox','format','type','read','MatrixHeight','getElementsByTagName'];a0_0x9f5b=function(){return _0x20dbe9;};return a0_0x9f5b();}import a0_0x397380 from'ol/format/WMSCapabilities';import{readXml}from'../utils/XmlUtil';import{transformedToNumber}from'../utils/StringUtil';export async function getDynamicLayerInfo(_0x419df9){const _0xb9124a=a0_0x1a4f,_0x450d31=addArgument(_0x419df9,'f','json'),_0xd9ba2c=await a0_0x3235fd[_0xb9124a(0x139)](_0x450d31);return _0xd9ba2c[_0xb9124a(0x107)];}export async function getFeatureLayerInfo(_0x20e798,_0x4d31d6){const _0x183009=a0_0x1a4f;let _0x490a8c=addArgument(_0x20e798,'f',_0x183009(0xea));_0x490a8c=appendPath(_0x490a8c,_0x4d31d6);const _0x30af49=await jsonp(_0x490a8c);return _0x30af49['url']=_0x490a8c,_0x30af49;}export async function getWMSLayerCapabilities(_0x20807c,_0x354cdf){const _0x5da8c3=a0_0x1a4f,_0x27d8da=await getWMSCapabilities(_0x20807c);let _0x3f1cca={},_0xd7fa23=_0x27d8da[_0x5da8c3(0xfd)][_0x5da8c3(0xf0)][_0x5da8c3(0xf0)];for(let _0x118b59=0x0;_0x118b59<_0xd7fa23[_0x5da8c3(0x12c)];_0x118b59++){const _0x121f40=_0xd7fa23[_0x118b59];if(_0x121f40['Name']==_0x354cdf){_0x3f1cca['style']=_0x121f40[_0x5da8c3(0x10f)][0x0][_0x5da8c3(0xf3)];for(let _0xbce9f1=0x0;_0xbce9f1<_0x121f40[_0x5da8c3(0x128)][_0x5da8c3(0x12c)];_0xbce9f1++){const _0x43ec30=_0x121f40['BoundingBox'][_0xbce9f1];if(_0x43ec30[_0x5da8c3(0x11a)]['indexOf'](_0x5da8c3(0xf9))>-0x1){_0x3f1cca[_0x5da8c3(0x12d)]=transformedToNumber(_0x43ec30[_0x5da8c3(0x11a)]),_0x3f1cca[_0x5da8c3(0x10a)]=[_0x43ec30[_0x5da8c3(0x101)][0x1],_0x43ec30[_0x5da8c3(0x101)][0x0],_0x43ec30[_0x5da8c3(0x101)][0x3],_0x43ec30['extent'][0x2]];break;}}break;}}return _0x3f1cca;}export async function getWMTSLayerCapabilities(_0x2f888c,_0x475d49){const _0x27a6f3=a0_0x1a4f,_0xdc859a=await getWMTSCapabilities(_0x2f888c);let _0x4a101c={},_0x2c5044=_0xdc859a[_0x27a6f3(0xef)][_0x27a6f3(0xf0)];_0x4a101c['sourceXml']=_0xdc859a;for(let _0x3f880d=0x0;_0x3f880d<_0x2c5044[_0x27a6f3(0x12c)];_0x3f880d++){const _0x29fddd=_0x2c5044[_0x3f880d];if(_0x29fddd[_0x27a6f3(0xfa)]==_0x475d49){_0x4a101c[_0x27a6f3(0x114)]=_0x29fddd['Format'],_0x4a101c[_0x27a6f3(0x131)]=_0x29fddd['Style'][0x0][_0x27a6f3(0xfa)],_0x4a101c[_0x27a6f3(0xf1)]=_0x29fddd[_0x27a6f3(0x106)][0x0]['TileMatrixSet'],_0x4a101c[_0x27a6f3(0x138)]=_0x29fddd[_0x27a6f3(0x113)],_0x4a101c[_0x27a6f3(0xee)]=_0x29fddd[_0x27a6f3(0x128)]&&_0x29fddd['BoundingBox'][_0x27a6f3(0x12c)]>0x0?_0x29fddd[_0x27a6f3(0x128)][0x0][_0x27a6f3(0x101)]:_0x4a101c[_0x27a6f3(0x138)];break;}}if(_0x4a101c['tileMatrixSet'])for(let _0x197d39=0x0;_0x197d39<_0xdc859a['Contents']['TileMatrixSet'][_0x27a6f3(0x12c)];_0x197d39++){const _0x4e7ac1=_0xdc859a[_0x27a6f3(0xef)][_0x27a6f3(0x125)][_0x197d39];if(_0x4e7ac1[_0x27a6f3(0xfa)]==_0x4a101c[_0x27a6f3(0xf1)]){_0x4a101c[_0x27a6f3(0x12d)]=transformedToNumber(_0x4e7ac1['SupportedCRS']),_0x4a101c[_0x27a6f3(0x11c)]=[];for(let _0xc789c2=0x0;_0xc789c2<_0x4e7ac1[_0x27a6f3(0xf8)]['length'];_0xc789c2++){const _0x4e851a=_0x4e7ac1[_0x27a6f3(0xf8)][_0xc789c2];_0x4a101c[_0x27a6f3(0x11c)][_0x27a6f3(0x111)]({'identifier':_0x4e851a[_0x27a6f3(0xfa)],'matrixHeight':_0x4e851a[_0x27a6f3(0x117)],'matrixWidth':_0x4e851a[_0x27a6f3(0x109)],'scaleDenominator':_0x4e851a[_0x27a6f3(0x13b)],'tileHeight':_0x4e851a[_0x27a6f3(0x103)],'tileWidth':_0x4e851a[_0x27a6f3(0xf6)],'topLeftCorner':_0x4e851a[_0x27a6f3(0xfc)]});}break;}}return _0x4a101c;}export async function getWFSLayerCapabilities(_0x277e68,_0x4a9dd4){const _0x2ba116=a0_0x1a4f,_0x12e6f7=await getWFSCapabilities(_0x277e68);let _0x53574f={};const _0x4423ea=await getWmsLayerFields(_0x277e68,_0x4a9dd4);_0x53574f[_0x2ba116(0xed)]=_0x4423ea;let _0x4c0c4d=_0x12e6f7[_0x2ba116(0x118)](_0x2ba116(0x105))[0x0]['children'],_0x59fbbd;for(let _0x1d7a34=0x0,_0x83ecd5=_0x4c0c4d[_0x2ba116(0x12c)];_0x1d7a34<_0x83ecd5;_0x1d7a34++){for(let _0x1ad7ff=0x0,_0xfdc951=_0x4c0c4d[_0x1d7a34][_0x2ba116(0x11d)]['length'];_0x1ad7ff<_0xfdc951;_0x1ad7ff++){if(_0x4c0c4d[_0x1d7a34][_0x2ba116(0x11d)][_0x1ad7ff]['nodeName']===_0x2ba116(0xf3)){const _0x2f550c=_0x4c0c4d[_0x1d7a34][_0x2ba116(0x11d)][_0x1ad7ff][_0x2ba116(0x104)][_0x2ba116(0x132)]();if(_0x2f550c==_0x4a9dd4||_0x2f550c[_0x2ba116(0x120)](':'+_0x4a9dd4)>-0x1){_0x59fbbd=_0x4c0c4d[_0x1d7a34];break;}}}if(_0x59fbbd)break;}let _0x13e27f=[];for(let _0x38fed6=0x0,_0x58c2cc=_0x59fbbd[_0x2ba116(0x11d)][_0x2ba116(0x12c)];_0x38fed6<_0x58c2cc;_0x38fed6++){if(_0x59fbbd[_0x2ba116(0x11d)][_0x38fed6]['nodeName']===_0x2ba116(0x12b)){let _0x55ee2a=_0x59fbbd['children'][_0x38fed6]['children'][0x0][_0x2ba116(0x104)]['split']('\x20'),_0x57be8a=_0x59fbbd[_0x2ba116(0x11d)][_0x38fed6][_0x2ba116(0x11d)][0x1][_0x2ba116(0x104)][_0x2ba116(0x12e)]('\x20');_0x55ee2a&&_0x57be8a&&(_0x13e27f=[_0x55ee2a[0x0]-0x0,_0x55ee2a[0x1]-0x0,_0x57be8a[0x0]-0x0,_0x57be8a[0x1]-0x0]),_0x53574f[_0x2ba116(0x10a)]=_0x13e27f;}else _0x59fbbd[_0x2ba116(0x11d)][_0x38fed6][_0x2ba116(0xf4)]===_0x2ba116(0x122)&&(_0x53574f[_0x2ba116(0x12d)]=transformedToNumber(_0x59fbbd[_0x2ba116(0x11d)][_0x38fed6][_0x2ba116(0x104)]));}return _0x53574f;}export async function getWMSCapabilities(_0x716078){const _0x296476=a0_0x1a4f;let _0x92e1ac=addArgument(_0x716078,'request',_0x296476(0xf5));_0x92e1ac=addArgument(_0x92e1ac,_0x296476(0x134),'wms');const _0x3eec67=await a0_0x3235fd[_0x296476(0x139)](_0x92e1ac);let _0x5c69cd=new a0_0x397380();return _0x5c69cd[_0x296476(0x116)](_0x3eec67[_0x296476(0x107)]);}export async function getWMTSCapabilities(_0x2750e2){const _0x2812d1=a0_0x1a4f;let _0x749fe=addArgument(_0x2750e2,_0x2812d1(0x135),_0x2812d1(0xf5));_0x749fe=addArgument(_0x749fe,_0x2812d1(0x134),_0x2812d1(0x11b));const _0x58c114=await a0_0x3235fd[_0x2812d1(0x139)](_0x749fe);let _0x31e523=new a0_0x5ca421();return _0x31e523[_0x2812d1(0x116)](_0x58c114[_0x2812d1(0x107)]);}export async function getWFSCapabilities(_0x4941ad){const _0x41afcc=a0_0x1a4f;let _0x498923=addArgument(_0x4941ad,'request','GetCapabilities');_0x498923=addArgument(_0x498923,_0x41afcc(0x134),_0x41afcc(0x12a));const _0x22f2cc=await a0_0x3235fd[_0x41afcc(0x139)](_0x498923),_0x3174c1=readXml(_0x22f2cc[_0x41afcc(0x107)]);return _0x3174c1;}export async function getWmsLayerFields(_0x5757fb,_0x54b26b){const _0x146464=a0_0x1a4f;let _0x4f6dc8=addArgument(_0x5757fb,_0x146464(0x135),_0x146464(0x100));_0x4f6dc8=addArgument(_0x4f6dc8,_0x146464(0x134),_0x146464(0x12a)),_0x4f6dc8=addArgument(_0x4f6dc8,_0x146464(0x13e),_0x54b26b);const _0x2c9b96=await a0_0x3235fd['get'](_0x4f6dc8),_0x3bd424=readXml(_0x2c9b96[_0x146464(0x107)]);let _0x5f23ea=[];const _0x53a688=_0x3bd424['getElementsByTagName'](_0x146464(0x12f))[0x0][_0x146464(0x11d)];for(let _0x488fc0=0x0;_0x488fc0<_0x53a688[_0x146464(0x12c)];_0x488fc0++){const _0x4e2b00=_0x53a688[_0x488fc0],_0x46aa42=_0x4e2b00[_0x146464(0x11e)][_0x146464(0x115)][_0x146464(0x10d)];let _0x28cab8=0x1;if(_0x46aa42['indexOf'](_0x146464(0x11f))>-0x1)_0x28cab8=0x1;else{if(_0x46aa42[_0x146464(0x120)]('int')>-0x1||_0x46aa42[_0x146464(0x120)]('short')>-0x1)_0x28cab8=0x2;else{if(_0x46aa42['indexOf'](_0x146464(0x110))>-0x1||_0x46aa42['indexOf'](_0x146464(0x112))>-0x1)_0x28cab8=0x3;else{if(_0x46aa42[_0x146464(0x120)]('date')>-0x1)_0x28cab8=0x4;else _0x46aa42[_0x146464(0x120)]('gml:')>-0x1&&(_0x28cab8=0x6);}}}_0x5f23ea[_0x146464(0x111)]({'name':_0x4e2b00[_0x146464(0x11e)][_0x146464(0x10b)]['value'],'aliasName':_0x4e2b00['attributes'][_0x146464(0x10b)][_0x146464(0x10d)],'fieldType':_0x28cab8,'fieldTypeName':_0x46aa42});}return _0x5f23ea;}export async function getWmtsLayers(_0x38d370){const _0x4db96a=a0_0x1a4f,_0x43ad92=await getWMTSCapabilities(_0x38d370);let _0x5dfbad=[];if(!_0x43ad92||!_0x43ad92[_0x4db96a(0xef)]||!_0x43ad92['Contents'][_0x4db96a(0xf0)])return _0x5dfbad;return _0x43ad92[_0x4db96a(0xef)]['Layer'][_0x4db96a(0xeb)](_0x36ac52=>{const _0x586329=_0x4db96a;_0x5dfbad[_0x586329(0x111)]({'name':_0x36ac52[_0x586329(0xfa)],'label':_0x36ac52['Title']});}),_0x5dfbad;}export async function getWmsLayers(_0x538bc8){const _0x58a39b=a0_0x1a4f,_0x26d149=await getWMSCapabilities(_0x538bc8);let _0x37d00f=[];if(!_0x26d149||!_0x26d149['Capability']||!_0x26d149[_0x58a39b(0xfd)][_0x58a39b(0xf0)]||!_0x26d149[_0x58a39b(0xfd)][_0x58a39b(0xf0)][_0x58a39b(0xf0)])return _0x37d00f;return _0x26d149['Capability'][_0x58a39b(0xf0)][_0x58a39b(0xf0)][_0x58a39b(0xeb)](_0x18d74f=>{const _0x514ab6=_0x58a39b;_0x37d00f[_0x514ab6(0x111)]({'name':_0x18d74f[_0x514ab6(0xf3)],'label':_0x18d74f[_0x514ab6(0xff)]});}),_0x37d00f;}export async function getWfLayers(_0x15e30c){const _0x265d12=a0_0x1a4f,_0x3ea00c=await getWFSCapabilities(_0x15e30c);let _0x50fee2=[],_0x235096=_0x3ea00c[_0x265d12(0x118)](_0x265d12(0x105))[0x0][_0x265d12(0x11d)],_0xab41f8;for(let _0x52a008=0x0,_0x465d52=_0x235096[_0x265d12(0x12c)];_0x52a008<_0x465d52;_0x52a008++){let _0x2fcdd4={'name':'','label':''};for(let _0x2d807c=0x0,_0x53dfe3=_0x235096[_0x52a008][_0x265d12(0x11d)][_0x265d12(0x12c)];_0x2d807c<_0x53dfe3;_0x2d807c++){if(_0x235096[_0x52a008][_0x265d12(0x11d)][_0x2d807c][_0x265d12(0xf4)]===_0x265d12(0xf3)){const _0x3cb576=_0x235096[_0x52a008]['children'][_0x2d807c][_0x265d12(0x104)][_0x265d12(0x132)]();_0x2fcdd4[_0x265d12(0x10b)]=_0x3cb576;}else{if(_0x235096[_0x52a008][_0x265d12(0x11d)][_0x2d807c][_0x265d12(0xf4)]===_0x265d12(0xff)){const _0x247b50=_0x235096[_0x52a008][_0x265d12(0x11d)][_0x2d807c][_0x265d12(0x104)][_0x265d12(0x132)]();_0x2fcdd4['label']=_0x247b50;}}}_0x2fcdd4[_0x265d12(0x10b)]!==''&&_0x2fcdd4[_0x265d12(0xe9)]!==''&&_0x50fee2['push'](_0x2fcdd4);}return _0x50fee2;}export async function getArcgisDynamicLayers(_0x2e0a18){const _0x74f91b=a0_0x1a4f;let _0x36c66f=addArgument(_0x2e0a18,'f',_0x74f91b(0x137));const _0x125bc3=await a0_0x3235fd[_0x74f91b(0x139)](_0x36c66f);let _0x5500f7=[];return _0x125bc3['data'][_0x74f91b(0x124)]['forEach'](_0x609f34=>{const _0x2451ac=_0x74f91b;_0x5500f7[_0x2451ac(0x111)]({'name':_0x609f34['id'][_0x2451ac(0x132)](),'label':_0x609f34[_0x2451ac(0x10b)]});}),_0x5500f7;}export async function getArcgisDynamicLayerFields(_0x16f666,_0x5334d1){const _0x3d3033=a0_0x1a4f;let _0x5777c2=appendPath(_0x16f666,_0x5334d1);_0x5777c2=addArgument(_0x5777c2,'f','pjson');const _0x2f008b=await a0_0x3235fd['get'](_0x5777c2);let _0x3c0699=[];return _0x2f008b['data'][_0x3d3033(0x129)][_0x3d3033(0xeb)](_0x20a5e0=>{const _0x375108=_0x3d3033;let _0x8b42ff=0x1;switch(_0x20a5e0[_0x375108(0x115)]){case _0x375108(0x136):_0x8b42ff=0x1;break;case'esriFieldTypeInteger':case _0x375108(0x10e):case _0x375108(0xfe):_0x8b42ff=0x2;break;case _0x375108(0xfb):_0x8b42ff=0x3;break;case _0x375108(0x127):_0x8b42ff=0x4;break;case _0x375108(0x130):_0x8b42ff=0x6;break;default:_0x8b42ff=0x1;break;}_0x3c0699[_0x375108(0x111)]({'name':_0x20a5e0[_0x375108(0x10b)],'aliasName':_0x20a5e0[_0x375108(0xec)],'fieldType':_0x8b42ff,'fieldTypeName':_0x20a5e0[_0x375108(0x115)],'fieldLength':_0x20a5e0[_0x375108(0x12c)]});}),_0x3c0699;}export async function getSourceLayerFields(_0x20a76d,_0x231ff6,_0x30b2a8){const _0x221387=a0_0x1a4f;let _0x193cd0=[];switch(_0x30b2a8){case _0x221387(0x133):case _0x221387(0x10c):_0x193cd0=await getArcgisDynamicLayerFields(_0x20a76d,_0x231ff6);break;case _0x221387(0x13d):case'geoserver-wfs':_0x193cd0=await getWmsLayerFields(_0x20a76d,_0x231ff6);break;default:break;}return _0x193cd0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x4182(){const _0x3e4807=['removeControl','set','removeAllControls','8851549WXcjRu','1568655bkTmoX','delete','map','1064186WsTBUp','8055680jixuoO','getControl','has','controls','2aDPkez','4062844kxIVCF','7031682VDvPPH','forEach','5AChUNp','get','2594247rpXbBd','addControl','56yHPpcA','name'];a1_0x4182=function(){return _0x3e4807;};return a1_0x4182();}function a1_0x41ac(_0x2603bf,_0x3ae980){const _0x4182c1=a1_0x4182();return a1_0x41ac=function(_0x41ac41,_0x361188){_0x41ac41=_0x41ac41-0xa2;let _0x530357=_0x4182c1[_0x41ac41];return _0x530357;},a1_0x41ac(_0x2603bf,_0x3ae980);}const a1_0xbb1174=a1_0x41ac;(function(_0x18c62c,_0x133239){const _0x427f81=a1_0x41ac,_0x12ecd5=_0x18c62c();while(!![]){try{const _0x4a4956=parseInt(_0x427f81(0xa2))/0x1*(-parseInt(_0x427f81(0xa7))/0x2)+parseInt(_0x427f81(0xad))/0x3+parseInt(_0x427f81(0xa8))/0x4*(-parseInt(_0x427f81(0xab))/0x5)+parseInt(_0x427f81(0xa9))/0x6+-parseInt(_0x427f81(0xb4))/0x7+parseInt(_0x427f81(0xaf))/0x8*(parseInt(_0x427f81(0xb5))/0x9)+parseInt(_0x427f81(0xa3))/0xa;if(_0x4a4956===_0x133239)break;else _0x12ecd5['push'](_0x12ecd5['shift']());}catch(_0x3946af){_0x12ecd5['push'](_0x12ecd5['shift']());}}}(a1_0x4182,0xaf465));export default class ControlManager{constructor(_0x449c6c){const _0x51ee3c=a1_0x41ac;this['map']=_0x449c6c,this[_0x51ee3c(0xa6)]=new Map();}[a1_0xbb1174(0xae)](_0x3ec3ed,_0x1d17e0){const _0x2936c3=a1_0xbb1174;this['controls'][_0x2936c3(0xa5)](_0x3ec3ed)&&this[_0x2936c3(0xb1)](_0x3ec3ed),_0x1d17e0['set'](_0x2936c3(0xb0),_0x3ec3ed),this[_0x2936c3(0xa6)][_0x2936c3(0xb2)](_0x3ec3ed,_0x1d17e0),this['map']['addControl'](_0x1d17e0);}[a1_0xbb1174(0xb1)](_0x53057c){const _0xc37f48=a1_0xbb1174,_0x14e952=this[_0xc37f48(0xa6)][_0xc37f48(0xac)](_0x53057c);_0x14e952&&(this[_0xc37f48(0xb7)][_0xc37f48(0xb1)](_0x14e952),this[_0xc37f48(0xa6)][_0xc37f48(0xb6)](_0x53057c));}[a1_0xbb1174(0xb3)](){const _0x5b3b5d=a1_0xbb1174;this['controls'][_0x5b3b5d(0xaa)](_0x35253c=>{const _0x47c269=_0x5b3b5d;this[_0x47c269(0xb7)]['removeControl'](_0x35253c);}),this['controls']['clear']();}[a1_0xbb1174(0xa4)](_0x1f8a0a){return this['controls']['get'](_0x1f8a0a);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x2879ad=a3_0x4afb;(function(_0x26ec91,_0x4df9e5){const _0x518bee=a3_0x4afb,_0xdf3956=_0x26ec91();while(!![]){try{const _0x209415=parseInt(_0x518bee(0x188))/0x1*(-parseInt(_0x518bee(0x1b5))/0x2)+-parseInt(_0x518bee(0x1ab))/0x3*(parseInt(_0x518bee(0x1a8))/0x4)+parseInt(_0x518bee(0x19f))/0x5+-parseInt(_0x518bee(0x18f))/0x6*(parseInt(_0x518bee(0x192))/0x7)+parseInt(_0x518bee(0x1ad))/0x8*(parseInt(_0x518bee(0x198))/0x9)+-parseInt(_0x518bee(0x1b3))/0xa+parseInt(_0x518bee(0x19d))/0xb*(parseInt(_0x518bee(0x1ac))/0xc);if(_0x209415===_0x4df9e5)break;else _0xdf3956['push'](_0xdf3956['shift']());}catch(_0xef116e){_0xdf3956['push'](_0xdf3956['shift']());}}}(a3_0x2509,0xc965c));import{format,wrapX}from'ol/coordinate';import{degreesToStringHDMS}from'../utils/StringUtil';import a3_0x485e8d from'ol/pointer/EventType.js';import{getSpheroidProjection,isSpheroid}from'../utils/RegisterProjUtil';function a3_0x2509(){const _0x15618c=['POINTERMOVE','innerHTML','getCoordinateFromPixelInternal','612lsLbbY','getCoordinateFormat','mapProjection_','projection','set','20911066XZlJRF','handleMouseOut','705145PUekWs','updateHTML_','fractionDigits','div','getViewport','render','push','setProjection','get','2012thFAyG','placeholder',' ','1743BSzHoL','12bKLirj','123416shJfJt','handleMouseMove','setCoordinateFormat','getProjection','className','viewState','10476760mdnAEz','X:{x}\x20Y:{y}','202ywGBQK','renderedHTML_','createStringHDMS','handleProjectionChanged_','setMap','showSpheroid','placeholder_','7231IGkufC','toString','getMap','wrapX_','renderOnMouseOut_','createStringXY','listenerKeys','234BZIBzJ','createElement','element','35161JbgCRq','transform_','getView'];a3_0x2509=function(){return _0x15618c;};return a3_0x2509();}import{listen}from'ol/events';import{Control}from'ol/control';function a3_0x4afb(_0x4d9638,_0x3a7978){const _0x2509d2=a3_0x2509();return a3_0x4afb=function(_0x4afb35,_0x55a455){_0x4afb35=_0x4afb35-0x184;let _0x1fef35=_0x2509d2[_0x4afb35];return _0x1fef35;},a3_0x4afb(_0x4d9638,_0x3a7978);}import{getTransformFromProjections,getUserProjection,identityTransform}from'ol/proj';const PROJECTION=a3_0x2879ad(0x19b),COORDINATE_FORMAT='coordinateFormat';export default class MousePositionControl extends Control{constructor(_0x5c63e3){const _0x3f1562=a3_0x2879ad;_0x5c63e3=_0x5c63e3||{};if(!_0x5c63e3[_0x3f1562(0x191)]){const _0x87346d=document[_0x3f1562(0x190)](_0x3f1562(0x1a2));_0x5c63e3[_0x3f1562(0x191)]=_0x87346d;}_0x5c63e3[_0x3f1562(0x191)][_0x3f1562(0x1b1)]=_0x5c63e3[_0x3f1562(0x1b1)]==undefined?'ol-mouse-position':_0x5c63e3['className'],super(_0x5c63e3),this['showSpheroid']=_0x5c63e3[_0x3f1562(0x186)]===undefined?![]:_0x5c63e3[_0x3f1562(0x186)],this['fractionDigits']=_0x5c63e3[_0x3f1562(0x1a1)]===undefined?0x2:_0x5c63e3[_0x3f1562(0x1a1)],this[_0x3f1562(0x18c)]=_0x5c63e3['placeholder']!==undefined,this['placeholder_']=_0x5c63e3[_0x3f1562(0x1a9)]!==undefined?_0x5c63e3['placeholder']:_0x3f1562(0x1aa),this[_0x3f1562(0x1b6)]=_0x5c63e3[_0x3f1562(0x191)][_0x3f1562(0x196)],this[_0x3f1562(0x18b)]=!![];}[a3_0x2879ad(0x184)](){const _0x1810ef=a3_0x2879ad;this[_0x1810ef(0x193)]=undefined;}[a3_0x2879ad(0x199)](){const _0x1e613b=a3_0x2879ad;return this[_0x1e613b(0x1a7)](COORDINATE_FORMAT);}[a3_0x2879ad(0x1af)](_0x36fa63){const _0x48a23a=a3_0x2879ad;this[_0x48a23a(0x19c)](COORDINATE_FORMAT,_0x36fa63);}[a3_0x2879ad(0x1b0)](){return this['get'](PROJECTION);}[a3_0x2879ad(0x1a6)](_0x255c82){const _0x308e41=a3_0x2879ad;this[_0x308e41(0x19c)](PROJECTION,_0x255c82);}['handleMouseMove'](_0x4023b4){const _0x649c79=a3_0x2879ad,_0x2b16ed=this[_0x649c79(0x18a)]();this[_0x649c79(0x1a0)](_0x2b16ed===null||_0x2b16ed===void 0x0?void 0x0:_0x2b16ed['getEventPixel'](_0x4023b4));}[a3_0x2879ad(0x19e)](_0x11b326){const _0xc09e5=a3_0x2879ad;this[_0xc09e5(0x1a0)](null);}[a3_0x2879ad(0x185)](_0x2b5564){const _0x1f8eba=a3_0x2879ad;super['setMap'](_0x2b5564);if(_0x2b5564){const _0x4b4099=isSpheroid(_0x2b5564[_0x1f8eba(0x194)]()['getProjection']());let _0x1feac6=_0x2b5564[_0x1f8eba(0x194)]()[_0x1f8eba(0x1b0)](),_0x28fb9b=this[_0x1f8eba(0x1b7)];if(!_0x4b4099){if(this[_0x1f8eba(0x186)]){const _0x25a479=getSpheroidProjection(_0x2b5564[_0x1f8eba(0x194)]()[_0x1f8eba(0x1b0)]());_0x25a479&&(_0x1feac6=_0x25a479);}else _0x28fb9b=this[_0x1f8eba(0x18d)];}this[_0x1f8eba(0x1a6)](_0x1feac6),this[_0x1f8eba(0x1af)](_0x28fb9b(this['fractionDigits']));const _0x2d6b90=_0x2b5564[_0x1f8eba(0x1a3)]();this[_0x1f8eba(0x18e)]['push'](listen(_0x2d6b90,a3_0x485e8d[_0x1f8eba(0x195)],this[_0x1f8eba(0x1ae)],this)),this['renderOnMouseOut_']&&this['listenerKeys'][_0x1f8eba(0x1a5)](listen(_0x2d6b90,a3_0x485e8d['POINTEROUT'],this[_0x1f8eba(0x19e)],this)),this[_0x1f8eba(0x1a0)](null);}}[a3_0x2879ad(0x1a0)](_0x5f4881){const _0x7cd49a=a3_0x2879ad;let _0x143a43=this[_0x7cd49a(0x187)];const _0x564c04=this['getMap']();if(_0x5f4881&&this[_0x7cd49a(0x19a)]&&_0x564c04){if(!this[_0x7cd49a(0x193)]){const _0xa77e48=this[_0x7cd49a(0x1b0)]();_0xa77e48?this[_0x7cd49a(0x193)]=getTransformFromProjections(this[_0x7cd49a(0x19a)],_0xa77e48):this['transform_']=identityTransform;}const _0x3f8485=_0x564c04[_0x7cd49a(0x197)](_0x5f4881);if(_0x3f8485){const _0x456a3b=getUserProjection();_0x456a3b&&(this[_0x7cd49a(0x193)]=getTransformFromProjections(this[_0x7cd49a(0x19a)],_0x456a3b));this['transform_'](_0x3f8485,_0x3f8485,undefined);if(this[_0x7cd49a(0x18b)]){const _0x7e6c6=_0x456a3b||this[_0x7cd49a(0x1b0)]()||this[_0x7cd49a(0x19a)];wrapX(_0x3f8485,_0x7e6c6);}const _0x4c0f81=this[_0x7cd49a(0x199)]();_0x4c0f81?_0x143a43=_0x4c0f81(_0x3f8485):_0x143a43=_0x3f8485[_0x7cd49a(0x189)]();}}(!this[_0x7cd49a(0x1b6)]||_0x143a43!==this[_0x7cd49a(0x1b6)])&&(this['element'][_0x7cd49a(0x196)]=_0x143a43,this[_0x7cd49a(0x1b6)]=_0x143a43);}[a3_0x2879ad(0x1a4)](_0xfadb8b){const _0x388725=a3_0x2879ad,_0x50b6ce=_0xfadb8b['frameState'];!_0x50b6ce?this['mapProjection_']=undefined:this['mapProjection_']!=_0x50b6ce[_0x388725(0x1b2)]['projection']&&(this[_0x388725(0x19a)]=_0x50b6ce[_0x388725(0x1b2)][_0x388725(0x19b)],this[_0x388725(0x193)]=undefined);}[a3_0x2879ad(0x18d)](_0x47cdc7){return function(_0x19675f){const _0x45d41f=a3_0x4afb;return format(_0x19675f,_0x45d41f(0x1b4),_0x47cdc7);};}['createStringHDMS'](_0x5416d2){return function(_0x268c2a){if(_0x268c2a)return'经度:'+degreesToStringHDMS(_0x268c2a[0x0],_0x5416d2)+'\x20'+'纬度:'+degreesToStringHDMS(_0x268c2a[0x1],_0x5416d2);};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x201330=a4_0x5982;function a4_0xf87c(){const _0xeed4c=['isVertical','clientY','element','postrender','unsetSwipeLayer','width','cursor','getTargetElement','style','createElement','Left','left','render','className','36LixxRu','2vmNyDw','ol-scroll-layer\x20ol-scroll-layer-vertical','bindEvents','beginPath','clip','dispose','swipeVa','rect','height','Right','swipeLayer','pointermove','value','top','189868ZsDsaP','row-resize','col-resize','pointerdown','context','restore','_dockedVisible','disposeInternal','1480927bLjabM','canvas','setMap','dockedVisible','clientX','2793216zBBGQg','103152vMmthu','4064499YgMrne','1998705SDNlFj','getMap','addEventListener','_swipeLayer','log','1095894YNBjXI','save','ol-scroll-layer','prerender','setSwipeLayer'];a4_0xf87c=function(){return _0xeed4c;};return a4_0xf87c();}(function(_0x2bf7b5,_0xeb0613){const _0x62e0b1=a4_0x5982,_0x1b0601=_0x2bf7b5();while(!![]){try{const _0x4c8d4f=-parseInt(_0x62e0b1(0x195))/0x1*(parseInt(_0x62e0b1(0x1a3))/0x2)+parseInt(_0x62e0b1(0x1b1))/0x3*(parseInt(_0x62e0b1(0x194))/0x4)+-parseInt(_0x62e0b1(0x1b3))/0x5+parseInt(_0x62e0b1(0x181))/0x6+parseInt(_0x62e0b1(0x1ab))/0x7+-parseInt(_0x62e0b1(0x1b0))/0x8+parseInt(_0x62e0b1(0x1b2))/0x9;if(_0x4c8d4f===_0xeb0613)break;else _0x1b0601['push'](_0x1b0601['shift']());}catch(_0x1ce1a0){_0x1b0601['push'](_0x1b0601['shift']());}}}(a4_0xf87c,0x34dc4));function a4_0x5982(_0x189f1b,_0x41efa8){const _0xf87ce5=a4_0xf87c();return a4_0x5982=function(_0x598230,_0x19e8ec){_0x598230=_0x598230-0x180;let _0x1bc46d=_0xf87ce5[_0x598230];return _0x1bc46d;},a4_0x5982(_0x189f1b,_0x41efa8);}import{Control}from'ol/control';export default class SwipeLayerControl extends Control{constructor(_0x47cda5){const _0x27b79b=a4_0x5982;_0x47cda5=_0x47cda5||{};if(!_0x47cda5['element']){const _0x4eab08=document[_0x27b79b(0x18f)]('div');_0x47cda5['element']=_0x4eab08,_0x4eab08['className']=_0x27b79b(0x183),(_0x47cda5['dockedVisible']===_0x27b79b(0x190)||_0x47cda5['dockedVisible']===_0x27b79b(0x19e))&&(_0x4eab08[_0x27b79b(0x193)]=_0x27b79b(0x196));}super(_0x47cda5),this[_0x27b79b(0x19b)]=0x32,this[_0x27b79b(0x186)]=![],this['_swipeLayer']=_0x47cda5[_0x27b79b(0x19f)],this[_0x27b79b(0x1a9)]=_0x47cda5['dockedVisible'],this[_0x27b79b(0x186)]=_0x47cda5[_0x27b79b(0x1ae)]==='Left'||_0x47cda5[_0x27b79b(0x1ae)]===_0x27b79b(0x19e),this[_0x27b79b(0x197)](this[_0x27b79b(0x188)]),this['element'][_0x27b79b(0x1b5)]('input',()=>{const _0x4e0a42=_0x27b79b;var _0x8c2995;const _0x32647f=this[_0x4e0a42(0x188)][_0x4e0a42(0x1a1)];this[_0x4e0a42(0x19b)]=_0x32647f,(_0x8c2995=this[_0x4e0a42(0x1b4)]())===null||_0x8c2995===void 0x0?void 0x0:_0x8c2995['render']();},![]),this[_0x27b79b(0x185)](_0x47cda5[_0x27b79b(0x19f)]);}['setSwipeLayer'](_0xfb0540){const _0x142925=a4_0x5982;this['unsetSwipeLayer'](),_0xfb0540&&(_0xfb0540['on']('prerender',_0x6c0bac=>this[_0x142925(0x184)](_0x6c0bac)),_0xfb0540['on'](_0x142925(0x189),_0x1b0df1=>this[_0x142925(0x189)](_0x1b0df1)),this['_swipeLayer']=_0xfb0540);}[a4_0x201330(0x18a)](){const _0x16394a=a4_0x201330;var _0x22b63e;this[_0x16394a(0x1b6)]&&(this[_0x16394a(0x19b)]=0x64,(_0x22b63e=this[_0x16394a(0x1b4)]())===null||_0x22b63e===void 0x0?void 0x0:_0x22b63e[_0x16394a(0x192)](),this[_0x16394a(0x1b6)]['un'](_0x16394a(0x184),_0x50ee98=>this[_0x16394a(0x184)](_0x50ee98)),this[_0x16394a(0x1b6)]['un'](_0x16394a(0x189),_0x589bfd=>this['postrender'](_0x589bfd)));}['prerender'](_0x3ee24b){const _0x5069e2=a4_0x201330,_0x154837=_0x3ee24b[_0x5069e2(0x1a7)],_0xb62fe=_0x154837===null||_0x154837===void 0x0?void 0x0:_0x154837[_0x5069e2(0x1ac)][_0x5069e2(0x18b)];if(!this['element']||!_0xb62fe||!_0x154837)return;console[_0x5069e2(0x180)](this[_0x5069e2(0x19b)]);const _0x3bbe40=_0xb62fe*this[_0x5069e2(0x19b)]/0x64;_0x154837[_0x5069e2(0x182)](),_0x154837[_0x5069e2(0x198)](),_0x154837[_0x5069e2(0x19c)](0x0,0x0,_0x3bbe40,_0x154837[_0x5069e2(0x1ac)][_0x5069e2(0x19d)]),_0x154837[_0x5069e2(0x199)]();}[a4_0x201330(0x189)](_0x4b5b4b){const _0x4c5a96=a4_0x201330,_0x1ab6cb=_0x4b5b4b[_0x4c5a96(0x1a7)];_0x1ab6cb[_0x4c5a96(0x1a8)]();}[a4_0x201330(0x1ad)](_0x3ea0d4){const _0x27d840=a4_0x201330;!_0x3ea0d4&&this['unsetSwipeLayer'](),super[_0x27d840(0x1ad)](_0x3ea0d4);}[a4_0x201330(0x19a)](){const _0x2ae18e=a4_0x201330;this[_0x2ae18e(0x18a)]();}['disposeInternal'](){const _0x7666ea=a4_0x201330;this[_0x7666ea(0x18a)](),super[_0x7666ea(0x1aa)]();}[a4_0x201330(0x192)](_0x3e29a8){}['bindEvents'](_0x4ee526){const _0x259e70=a4_0x201330;let _0x26abf5=![];_0x4ee526[_0x259e70(0x1b5)](_0x259e70(0x1a6),()=>{const _0x499d40=_0x259e70,_0x573111=this[_0x499d40(0x1b4)]();if(!_0x573111)return;_0x26abf5=!![],_0x573111[_0x499d40(0x18d)]()[_0x499d40(0x18e)]['cursor']=this['isVertical']?_0x499d40(0x1a5):_0x499d40(0x1a4);}),document[_0x259e70(0x1b5)](_0x259e70(0x1a0),_0xc011df=>{const _0x3f54c0=_0x259e70;if(!_0x26abf5)return;const _0x471017=this[_0x3f54c0(0x1b4)]();if(!_0x471017)return;const _0x5267b8=_0x471017[_0x3f54c0(0x18d)]()['getBoundingClientRect'](),_0x191110=_0x471017['getCoordinateFromPixel']([_0xc011df['clientX']-_0x5267b8[_0x3f54c0(0x191)],_0xc011df['clientY']-_0x5267b8[_0x3f54c0(0x1a2)]]);this[_0x3f54c0(0x186)]?(this[_0x3f54c0(0x19b)]=(_0xc011df[_0x3f54c0(0x1af)]-_0x5267b8[_0x3f54c0(0x191)])/_0x5267b8[_0x3f54c0(0x18b)]*0x64,_0x4ee526[_0x3f54c0(0x18e)][_0x3f54c0(0x191)]=this['swipeVa']+'%'):_0x4ee526[_0x3f54c0(0x18e)][_0x3f54c0(0x1a2)]=(_0xc011df[_0x3f54c0(0x187)]-_0x5267b8['top'])/_0x5267b8[_0x3f54c0(0x19d)]*0x64+'%',_0x471017[_0x3f54c0(0x192)]();}),document[_0x259e70(0x1b5)]('pointerup',()=>{const _0x24d67a=_0x259e70;_0x26abf5=![];const _0x6d90e0=this[_0x24d67a(0x1b4)]();if(!_0x6d90e0)return;_0x6d90e0[_0x24d67a(0x18d)]()['style'][_0x24d67a(0x18c)]='';});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x588758=a5_0x5776;(function(_0x5def7e,_0x5cc960){const _0x218004=a5_0x5776,_0x2886e2=_0x5def7e();while(!![]){try{const _0x2b8d16=-parseInt(_0x218004(0x236))/0x1*(parseInt(_0x218004(0x1ff))/0x2)+parseInt(_0x218004(0x1f1))/0x3+parseInt(_0x218004(0x1fb))/0x4+-parseInt(_0x218004(0x20d))/0x5*(parseInt(_0x218004(0x21f))/0x6)+-parseInt(_0x218004(0x20c))/0x7+parseInt(_0x218004(0x22f))/0x8+-parseInt(_0x218004(0x1f2))/0x9*(-parseInt(_0x218004(0x223))/0xa);if(_0x2b8d16===_0x5cc960)break;else _0x2886e2['push'](_0x2886e2['shift']());}catch(_0x32e4bf){_0x2886e2['push'](_0x2886e2['shift']());}}}(a5_0x3871,0xa483e));export function geoJSONToKml(_0x35d046,_0x22a24d){const _0x3670b1=a5_0x5776;return _0x22a24d=_0x22a24d||{'documentName':undefined,'documentDescription':undefined,'name':'name','description':_0x3670b1(0x1ea),'simplestyle':![],'timestamp':_0x3670b1(0x21c)},_0x3670b1(0x201)+tag('kml',tag('Document',documentName(_0x22a24d)+documentDescription(_0x22a24d)+root(_0x35d046,_0x22a24d)),[[_0x3670b1(0x1ec),'http://www.opengis.net/kml/2.2']]);}function feature(_0x1386ad,_0x354a97){return function(_0x453c07){const _0x7a9e4a=a5_0x5776;if(!_0x453c07[_0x7a9e4a(0x216)]||!geometry[_0x7a9e4a(0x213)](_0x453c07[_0x7a9e4a(0x235)]))return'';const _0x178f5f=geometry['any'](_0x453c07[_0x7a9e4a(0x235)]);if(!_0x178f5f)return'';let _0x28dc1e='',_0x41792c='';if(_0x1386ad[_0x7a9e4a(0x21b)]){const _0x6059dd=hashStyle(_0x453c07[_0x7a9e4a(0x216)]);if(_0x6059dd){if(geometry['isPoint'](_0x453c07[_0x7a9e4a(0x235)])&&hasMarkerStyle(_0x453c07[_0x7a9e4a(0x216)]))_0x354a97[_0x7a9e4a(0x22e)](_0x6059dd)===-0x1&&(_0x28dc1e=markerStyle(_0x453c07['properties'],_0x6059dd),_0x354a97[_0x7a9e4a(0x237)](_0x6059dd)),_0x41792c=tag(_0x7a9e4a(0x217),'#'+_0x6059dd);else(geometry[_0x7a9e4a(0x219)](_0x453c07[_0x7a9e4a(0x235)])||geometry[_0x7a9e4a(0x1fc)](_0x453c07[_0x7a9e4a(0x235)]))&&hasPolygonAndLineStyle(_0x453c07[_0x7a9e4a(0x216)])&&(_0x354a97[_0x7a9e4a(0x22e)](_0x6059dd)===-0x1&&(_0x28dc1e=polygonAndLineStyle(_0x453c07[_0x7a9e4a(0x216)],_0x6059dd),_0x354a97[_0x7a9e4a(0x237)](_0x6059dd)),_0x41792c=tag(_0x7a9e4a(0x217),'#'+_0x6059dd));}}return _0x28dc1e+tag('Placemark',name(_0x453c07['properties'],_0x1386ad)+description(_0x453c07[_0x7a9e4a(0x216)],_0x1386ad)+extendeddata(_0x453c07[_0x7a9e4a(0x216)])+timestamp(_0x453c07[_0x7a9e4a(0x216)],_0x1386ad)+_0x178f5f+_0x41792c);};}function root(_0x98192,_0x162afa){const _0x189305=a5_0x5776;if(!_0x98192[_0x189305(0x227)])return'';const _0x3f8877=[];switch(_0x98192[_0x189305(0x227)]){case _0x189305(0x1f9):if(!_0x98192['features'])return'';return _0x98192['features']['map'](feature(_0x162afa,_0x3f8877))[_0x189305(0x1f6)]('');case _0x189305(0x208):return feature(_0x162afa,_0x3f8877)(_0x98192);default:return feature(_0x162afa,_0x3f8877)({'type':_0x189305(0x208),'geometry':_0x98192,'properties':{}});}}function documentName(_0xa54126){const _0x4dc27a=a5_0x5776;return _0xa54126['documentName']!==undefined?tag(_0x4dc27a(0x230),_0xa54126[_0x4dc27a(0x20e)]):'';}function documentDescription(_0x47d023){const _0x45f54e=a5_0x5776;return _0x47d023[_0x45f54e(0x218)]!==undefined?tag('description',_0x47d023[_0x45f54e(0x218)]):'';}function name(_0xc8a40,_0x7ea9d0){const _0x439eed=a5_0x5776;return _0xc8a40[_0x7ea9d0['name']]?tag(_0x439eed(0x230),encode(_0xc8a40[_0x7ea9d0[_0x439eed(0x230)]])):'';}function description(_0x3b811e,_0x1775bf){const _0x3b08a9=a5_0x5776;return _0x3b811e[_0x1775bf['description']]?tag(_0x3b08a9(0x1ea),encode(_0x3b811e[_0x1775bf[_0x3b08a9(0x1ea)]])):'';}function timestamp(_0x50a77a,_0x4a9bc9){const _0x36598e=a5_0x5776;return _0x50a77a[_0x4a9bc9[_0x36598e(0x21c)]]?tag(_0x36598e(0x207),tag(_0x36598e(0x212),encode(_0x50a77a[_0x4a9bc9['timestamp']]))):'';}const geometry={'Point':function(_0x5b0379){const _0x3e277d=a5_0x5776;return tag(_0x3e277d(0x224),tag('coordinates',_0x5b0379[_0x3e277d(0x1e4)][_0x3e277d(0x1f6)](',')));},'LineString':function(_0x527288){const _0x313536=a5_0x5776;return tag(_0x313536(0x21e),tag(_0x313536(0x1e4),linearring(_0x527288[_0x313536(0x1e4)])));},'Polygon':function(_0x182f70){const _0x2e2366=a5_0x5776;if(!_0x182f70['coordinates'][_0x2e2366(0x1fa)])return'';const _0x1c9c0d=_0x182f70[_0x2e2366(0x1e4)][0x0],_0x6c6700=_0x182f70['coordinates'][_0x2e2366(0x228)](0x1),_0x3c2cef=tag(_0x2e2366(0x211),tag(_0x2e2366(0x1f5),tag(_0x2e2366(0x1e4),linearring(_0x1c9c0d)))),_0x37e0dc=_0x6c6700[_0x2e2366(0x206)](function(_0x3bf8c4){const _0x86d5c2=_0x2e2366;return tag('innerBoundaryIs',tag(_0x86d5c2(0x1f5),tag(_0x86d5c2(0x1e4),linearring(_0x3bf8c4))));})[_0x2e2366(0x1f6)]('');return tag(_0x2e2366(0x200),_0x3c2cef+_0x37e0dc);},'MultiPoint':function(_0x126bce){const _0x40d84d=a5_0x5776;if(!_0x126bce[_0x40d84d(0x1e4)]['length'])return'';return tag(_0x40d84d(0x202),_0x126bce['coordinates'][_0x40d84d(0x206)](function(_0x500588){const _0x7da985=_0x40d84d;return geometry[_0x7da985(0x224)]({'coordinates':_0x500588});})[_0x40d84d(0x1f6)](''));},'MultiPolygon':function(_0x42c116){const _0x3b4d0e=a5_0x5776;if(!_0x42c116[_0x3b4d0e(0x1e4)][_0x3b4d0e(0x1fa)])return'';return tag('MultiGeometry',_0x42c116[_0x3b4d0e(0x1e4)]['map'](function(_0x150f92){const _0x442747=_0x3b4d0e;return geometry[_0x442747(0x200)]({'coordinates':_0x150f92});})['join'](''));},'MultiLineString':function(_0x29fac6){const _0x28f887=a5_0x5776;if(!_0x29fac6[_0x28f887(0x1e4)]['length'])return'';return tag(_0x28f887(0x202),_0x29fac6['coordinates'][_0x28f887(0x206)](function(_0x2ea386){const _0x321f56=_0x28f887;return geometry[_0x321f56(0x21e)]({'coordinates':_0x2ea386});})['join'](''));},'GeometryCollection':function(_0x4c0363){const _0x5a65dc=a5_0x5776;return tag(_0x5a65dc(0x202),_0x4c0363['geometries'][_0x5a65dc(0x206)](geometry[_0x5a65dc(0x1f8)])[_0x5a65dc(0x1f6)](''));},'valid':function(_0xc6b3a){const _0x232282=a5_0x5776;return _0xc6b3a&&_0xc6b3a[_0x232282(0x227)]&&(_0xc6b3a[_0x232282(0x1e4)]||_0xc6b3a['type']===_0x232282(0x214)&&_0xc6b3a['geometries']&&_0xc6b3a[_0x232282(0x1e3)][_0x232282(0x1f0)](geometry[_0x232282(0x213)]));},'any':function(_0xa5e537){const _0x49d13d=a5_0x5776;return geometry[_0xa5e537['type']]?geometry[_0xa5e537[_0x49d13d(0x227)]](_0xa5e537):'';},'isPoint':function(_0x499715){const _0x4cbcf0=a5_0x5776;return _0x499715[_0x4cbcf0(0x227)]===_0x4cbcf0(0x224)||_0x499715['type']===_0x4cbcf0(0x21a);},'isPolygon':function(_0x4e6ea2){const _0x440144=a5_0x5776;return _0x4e6ea2['type']===_0x440144(0x200)||_0x4e6ea2[_0x440144(0x227)]===_0x440144(0x1e8);},'isLine':function(_0x325e01){const _0x256e91=a5_0x5776;return _0x325e01[_0x256e91(0x227)]===_0x256e91(0x21e)||_0x325e01[_0x256e91(0x227)]===_0x256e91(0x1fe);}};function linearring(_0x331562){return _0x331562['map'](function(_0x19fd83){const _0x376ccb=a5_0x5776;return _0x19fd83[_0x376ccb(0x1f6)](',');})['join']('\x20');}function extendeddata(_0x2b6a8d){const _0x494aba=a5_0x5776,_0x281585=[];for(const _0x30f7fc in _0x2b6a8d){const _0x4c9652=_0x2b6a8d[_0x30f7fc];isObject(_0x4c9652)?_0x281585['push'](_0x494aba(0x221)+_0x30f7fc+_0x494aba(0x205)+JSON[_0x494aba(0x220)](_0x4c9652)+_0x494aba(0x22a)):_0x281585[_0x494aba(0x237)](_0x494aba(0x221)+_0x30f7fc+_0x494aba(0x205)+_0x4c9652+_0x494aba(0x22a));}return tag(_0x494aba(0x229),_0x281585[_0x494aba(0x1f6)](''));}function data(_0x2e5aa9){const _0x1001d6=a5_0x5776;return tag(_0x1001d6(0x225),tag('value',encode(_0x2e5aa9[0x1])),[[_0x1001d6(0x230),encode(_0x2e5aa9[0x0])]]);}function hasMarkerStyle(_0x55a7d6){const _0x1ea693=a5_0x5776;return!!(_0x55a7d6[_0x1ea693(0x1e6)]||_0x55a7d6['marker-symbol']||_0x55a7d6[_0x1ea693(0x22d)]);}function a5_0x5776(_0x106739,_0x18275d){const _0x387156=a5_0x3871();return a5_0x5776=function(_0x577693,_0xaeb02c){_0x577693=_0x577693-0x1e1;let _0x220c75=_0x387156[_0x577693];return _0x220c75;},a5_0x5776(_0x106739,_0x18275d);}function markerStyle(_0x37fe8e,_0x11fb1d){const _0xd49a90=a5_0x5776;return tag(_0xd49a90(0x1fd),tag('IconStyle',tag(_0xd49a90(0x1f4),tag(_0xd49a90(0x1f7),iconUrl(_0x37fe8e))))+iconSize(_0x37fe8e),[['id',_0x11fb1d]]);}function iconUrl(_0x3c7985){const _0x304cd4=a5_0x5776;return _0x3c7985[_0x304cd4(0x20a)];}function iconSize(_0x17b834){const _0x34a9b7=a5_0x5776;return tag('hotSpot','',[[_0x34a9b7(0x1ed),_0x34a9b7(0x1e5)],[_0x34a9b7(0x21d),'fraction'],['x',0.5],['y',0.5]]);}function hasPolygonAndLineStyle(_0x10d85d){for(const _0x976981 in _0x10d85d){if({'stroke':!![],'stroke-opacity':!![],'stroke-width':!![],'fill':!![],'fill-opacity':!![]}[_0x976981])return!![];}}function polygonAndLineStyle(_0x3ac02a,_0x2b60e2){const _0x33439e=a5_0x5776,_0x49783=tag('LineStyle',[tag(_0x33439e(0x210),hexToKmlColor(_0x3ac02a['stroke'],_0x3ac02a[_0x33439e(0x222)])||_0x33439e(0x204))+tag('width',_0x3ac02a[_0x33439e(0x1ef)]===undefined?0x2:_0x3ac02a[_0x33439e(0x1ef)])]);let _0x591f7e='';return(_0x3ac02a[_0x33439e(0x22b)]||_0x3ac02a[_0x33439e(0x1f3)])&&(_0x591f7e=tag(_0x33439e(0x1e2),[tag(_0x33439e(0x210),hexToKmlColor(_0x3ac02a[_0x33439e(0x22b)],_0x3ac02a[_0x33439e(0x1f3)])||'88555555')])),tag(_0x33439e(0x1fd),_0x49783+_0x591f7e,[['id',_0x2b60e2]]);}function a5_0x3871(){const _0x5708dd=['color','outerBoundaryIs','when','valid','GeometryCollection','string','properties','styleUrl','documentDescription','isPolygon','MultiPoint','simplestyle','timestamp','yunits','LineString','12QJkrdi','stringify','<Data\x20name\x20=\x22','stroke-opacity','530MjkchN','Point','Data','>','type','slice','ExtendedData','</value></Data>','fill','([&\x22<>\x27])','marker-color','indexOf','5011184YYvXiK','name','keys','stroke',''','prototype','geometry','481376qVlvAE','push','"','PolyStyle','geometries','coordinates','fraction','marker-size','isArray','MultiPolygon','toString','description','<','xmlns','xunits','[object\x20Object]','stroke-width','every','2749515vaIbAf','56394XazvIy','fill-opacity','Icon','LinearRing','join','href','any','FeatureCollection','length','3483832uOEuar','isLine','Style','MultiLineString','2sZAukv','Polygon','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>','MultiGeometry','substr','ff555555','\x22><value>','map','TimeStamp','Feature','replace','marker-symbol','&','2424779ERPkNs','3110830MNWncr','documentName','toLowerCase'];a5_0x3871=function(){return _0x5708dd;};return a5_0x3871();}function hashStyle(_0x8a49bf){const _0x3daccc=a5_0x5776;let _0x5b4cab='';return _0x8a49bf[_0x3daccc(0x20a)]&&(_0x5b4cab=_0x5b4cab+'ms'+_0x8a49bf[_0x3daccc(0x20a)]),_0x8a49bf[_0x3daccc(0x22d)]&&(_0x5b4cab=_0x5b4cab+'mc'+_0x8a49bf[_0x3daccc(0x22d)][_0x3daccc(0x209)]('#','')),_0x8a49bf[_0x3daccc(0x1e6)]&&(_0x5b4cab=_0x5b4cab+'ms'+_0x8a49bf['marker-size']),_0x8a49bf[_0x3daccc(0x232)]&&(_0x5b4cab=_0x5b4cab+'s'+_0x8a49bf[_0x3daccc(0x232)]['replace']('#','')),_0x8a49bf[_0x3daccc(0x1ef)]&&(_0x5b4cab=_0x5b4cab+'sw'+_0x8a49bf[_0x3daccc(0x1ef)][_0x3daccc(0x1e9)]()[_0x3daccc(0x209)]('.','')),_0x8a49bf[_0x3daccc(0x222)]&&(_0x5b4cab=_0x5b4cab+'mo'+_0x8a49bf[_0x3daccc(0x222)][_0x3daccc(0x1e9)]()[_0x3daccc(0x209)]('.','')),_0x8a49bf[_0x3daccc(0x22b)]&&(_0x5b4cab=_0x5b4cab+'f'+_0x8a49bf[_0x3daccc(0x22b)]['replace']('#','')),_0x8a49bf[_0x3daccc(0x1f3)]&&(_0x5b4cab=_0x5b4cab+'fo'+_0x8a49bf[_0x3daccc(0x1f3)][_0x3daccc(0x1e9)]()['replace']('.','')),_0x5b4cab;}function hexToKmlColor(_0x101856,_0x1f37b3){const _0x1d20ee=a5_0x5776;if(typeof _0x101856!==_0x1d20ee(0x215))return'';_0x101856=_0x101856[_0x1d20ee(0x209)]('#','')[_0x1d20ee(0x20f)]();if(_0x101856[_0x1d20ee(0x1fa)]===0x3)_0x101856=_0x101856[0x0]+_0x101856[0x0]+_0x101856[0x1]+_0x101856[0x1]+_0x101856[0x2]+_0x101856[0x2];else{if(_0x101856[_0x1d20ee(0x1fa)]!==0x6)return'';}const _0x34c0b0=_0x101856[0x0]+_0x101856[0x1],_0x38a54d=_0x101856[0x2]+_0x101856[0x3],_0x48a523=_0x101856[0x4]+_0x101856[0x5];let _0x106bac='ff';return typeof _0x1f37b3==='number'&&_0x1f37b3>=0x0&&_0x1f37b3<=0x1&&(_0x106bac=(_0x1f37b3*0xff)[_0x1d20ee(0x1e9)](0x10),_0x106bac['indexOf']('.')>-0x1&&(_0x106bac=_0x106bac[_0x1d20ee(0x203)](0x0,_0x106bac[_0x1d20ee(0x22e)]('.'))),_0x106bac[_0x1d20ee(0x1fa)]<0x2&&(_0x106bac='0'+_0x106bac)),_0x106bac+_0x48a523+_0x38a54d+_0x34c0b0;}export function isObject(_0x4b3516){const _0x16c2e8=a5_0x5776;return Object[_0x16c2e8(0x234)][_0x16c2e8(0x1e9)]['call'](_0x4b3516)===_0x16c2e8(0x1ee);}function encode(_0x7bb1f4){const _0x50d152=a5_0x5776;if(!_0x7bb1f4)return'';return _0x7bb1f4['toString']()[_0x50d152(0x209)](/&/g,_0x50d152(0x20b))[_0x50d152(0x209)](/</g,_0x50d152(0x1eb))[_0x50d152(0x209)](/>/g,_0x50d152(0x226))[_0x50d152(0x209)](/"/g,'"');}function attr(_0x4572f9){const _0x2d193a=a5_0x5776;if(!Object['keys'](_0x4572f9)[_0x2d193a(0x1fa)])return'';return'\x20'+Object[_0x2d193a(0x231)](_0x4572f9)[_0x2d193a(0x206)](function(_0x2a8e2f){return _0x2a8e2f+'=\x22'+escape(_0x4572f9[_0x2a8e2f])+'\x22';})[_0x2d193a(0x1f6)]('\x20');}const escape_map={'>':a5_0x588758(0x226),'<':a5_0x588758(0x1eb),'\x27':a5_0x588758(0x233),'\x22':a5_0x588758(0x1e1),'&':a5_0x588758(0x20b)};function escape(_0x51efd1,_0x26446b){const _0x49e75d=a5_0x588758;if(_0x51efd1===null||_0x51efd1===undefined)return;_0x26446b=(_0x26446b||'')[_0x49e75d(0x209)](/[^&"<>\']/g,'');const _0x7937d0=_0x49e75d(0x22c)[_0x49e75d(0x209)](new RegExp('['+_0x26446b+']','g'),'');return _0x51efd1[_0x49e75d(0x209)](new RegExp(_0x7937d0,'g'),function(_0x21db4d,_0x5e82f7){return escape_map[_0x5e82f7];});}function tag(_0x51055e,_0x507f24,_0x29f038){const _0x1a0d42=a5_0x588758;return(Array[_0x1a0d42(0x1e7)](_0x507f24)||typeof _0x507f24===_0x1a0d42(0x215))&&(_0x29f038=_0x507f24,_0x507f24={}),Array[_0x1a0d42(0x1e7)](_0x29f038)&&(_0x29f038='\x0a'+_0x29f038[_0x1a0d42(0x206)](function(_0x333db4){return'\x20\x20'+_0x333db4;})[_0x1a0d42(0x1f6)]('\x0a')+'\x0a'),'<'+_0x51055e+attr(_0x507f24)+'>'+_0x29f038+'</'+_0x51055e+'>';}
|
|
1
|
+
const a5_0x3ae339=a5_0x49e5;(function(_0x5eaed6,_0x13e9b4){const _0x63427b=a5_0x49e5,_0x575795=_0x5eaed6();while(!![]){try{const _0x59c908=-parseInt(_0x63427b(0xf6))/0x1*(-parseInt(_0x63427b(0x125))/0x2)+-parseInt(_0x63427b(0x11b))/0x3+-parseInt(_0x63427b(0x10a))/0x4*(parseInt(_0x63427b(0x11a))/0x5)+-parseInt(_0x63427b(0x12a))/0x6+-parseInt(_0x63427b(0x136))/0x7+-parseInt(_0x63427b(0x130))/0x8*(parseInt(_0x63427b(0x134))/0x9)+parseInt(_0x63427b(0xf8))/0xa;if(_0x59c908===_0x13e9b4)break;else _0x575795['push'](_0x575795['shift']());}catch(_0x17c6a8){_0x575795['push'](_0x575795['shift']());}}}(a5_0x4bbb,0x4c2b5));function a5_0x4bbb(){const _0x5ed710=['([&\x22<>\x27])','Placemark','indexOf','LineString','name','geometry','1996sZndgT','hotSpot','kml','value','call','2012568OmZutM','stroke','stringify','stroke-opacity','timestamp','ff555555','191896jTKfYz','MultiPoint','replace','marker-size','189cUPqUY','xunits','3461108aKbPha','xmlns','geometries','LineStyle','Polygon','fill-opacity','color','Feature','substr','fill','"','marker-symbol','prototype','>','innerBoundaryIs','ExtendedData','features','keys','type','\x22><value>','valid','278yVkqVD','styleUrl','16011280tDcVMw','Data','http://www.opengis.net/kml/2.2','fraction','LinearRing','properties','length','any','string','FeatureCollection','description','join','number','marker-color','</value></Data>','Document','IconStyle','<Data\x20name\x20=\x22','4mVTBKL','outerBoundaryIs','<','TimeStamp','isPolygon','stroke-width','MultiPolygon','coordinates','PolyStyle','documentName','push','href','Point','&','Style','map','519515abenbr','387243DeEZDo','MultiGeometry','toString','Icon'];a5_0x4bbb=function(){return _0x5ed710;};return a5_0x4bbb();}export function geoJSONToKml(_0x3c35f1,_0x6b5dbd){const _0x1a3fa1=a5_0x49e5;return _0x6b5dbd=_0x6b5dbd||{'documentName':undefined,'documentDescription':undefined,'name':_0x1a3fa1(0x123),'description':_0x1a3fa1(0x102),'simplestyle':![],'timestamp':'timestamp'},'<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>'+tag(_0x1a3fa1(0x127),tag(_0x1a3fa1(0x107),documentName(_0x6b5dbd)+documentDescription(_0x6b5dbd)+root(_0x3c35f1,_0x6b5dbd)),[[_0x1a3fa1(0x137),_0x1a3fa1(0xfa)]]);}function feature(_0x5ed660,_0xbd18de){return function(_0x5194b4){const _0x34b307=a5_0x49e5;if(!_0x5194b4[_0x34b307(0xfd)]||!geometry[_0x34b307(0xf5)](_0x5194b4[_0x34b307(0x124)]))return'';const _0x379257=geometry[_0x34b307(0xff)](_0x5194b4[_0x34b307(0x124)]);if(!_0x379257)return'';let _0x5b5376='',_0xdde315='';if(_0x5ed660['simplestyle']){const _0x3ab871=hashStyle(_0x5194b4['properties']);if(_0x3ab871){if(geometry['isPoint'](_0x5194b4[_0x34b307(0x124)])&&hasMarkerStyle(_0x5194b4['properties']))_0xbd18de[_0x34b307(0x121)](_0x3ab871)===-0x1&&(_0x5b5376=markerStyle(_0x5194b4[_0x34b307(0xfd)],_0x3ab871),_0xbd18de[_0x34b307(0x114)](_0x3ab871)),_0xdde315=tag(_0x34b307(0xf7),'#'+_0x3ab871);else(geometry[_0x34b307(0x10e)](_0x5194b4['geometry'])||geometry['isLine'](_0x5194b4[_0x34b307(0x124)]))&&hasPolygonAndLineStyle(_0x5194b4[_0x34b307(0xfd)])&&(_0xbd18de[_0x34b307(0x121)](_0x3ab871)===-0x1&&(_0x5b5376=polygonAndLineStyle(_0x5194b4['properties'],_0x3ab871),_0xbd18de[_0x34b307(0x114)](_0x3ab871)),_0xdde315=tag('styleUrl','#'+_0x3ab871));}}return _0x5b5376+tag(_0x34b307(0x120),name(_0x5194b4[_0x34b307(0xfd)],_0x5ed660)+description(_0x5194b4[_0x34b307(0xfd)],_0x5ed660)+extendeddata(_0x5194b4[_0x34b307(0xfd)])+timestamp(_0x5194b4['properties'],_0x5ed660)+_0x379257+_0xdde315);};}function root(_0x2ae05f,_0x48a1dd){const _0x2b4dfa=a5_0x49e5;if(!_0x2ae05f[_0x2b4dfa(0xf3)])return'';const _0xd9acfb=[];switch(_0x2ae05f[_0x2b4dfa(0xf3)]){case _0x2b4dfa(0x101):if(!_0x2ae05f[_0x2b4dfa(0xf1)])return'';return _0x2ae05f[_0x2b4dfa(0xf1)][_0x2b4dfa(0x119)](feature(_0x48a1dd,_0xd9acfb))[_0x2b4dfa(0x103)]('');case'Feature':return feature(_0x48a1dd,_0xd9acfb)(_0x2ae05f);default:return feature(_0x48a1dd,_0xd9acfb)({'type':_0x2b4dfa(0xe8),'geometry':_0x2ae05f,'properties':{}});}}function documentName(_0x39e798){const _0x1448e5=a5_0x49e5;return _0x39e798[_0x1448e5(0x113)]!==undefined?tag(_0x1448e5(0x123),_0x39e798[_0x1448e5(0x113)]):'';}function a5_0x49e5(_0x20ba10,_0x4a733e){const _0x4bbbde=a5_0x4bbb();return a5_0x49e5=function(_0x49e5d4,_0x53970f){_0x49e5d4=_0x49e5d4-0xe3;let _0x1e2a4c=_0x4bbbde[_0x49e5d4];return _0x1e2a4c;},a5_0x49e5(_0x20ba10,_0x4a733e);}function documentDescription(_0x3fcdeb){const _0x55270a=a5_0x49e5;return _0x3fcdeb['documentDescription']!==undefined?tag(_0x55270a(0x102),_0x3fcdeb['documentDescription']):'';}function name(_0xc07ebc,_0x386c88){const _0x794585=a5_0x49e5;return _0xc07ebc[_0x386c88[_0x794585(0x123)]]?tag(_0x794585(0x123),encode(_0xc07ebc[_0x386c88[_0x794585(0x123)]])):'';}function description(_0x3e4cf8,_0x410cfb){const _0x23b2d3=a5_0x49e5;return _0x3e4cf8[_0x410cfb['description']]?tag('description',encode(_0x3e4cf8[_0x410cfb[_0x23b2d3(0x102)]])):'';}function timestamp(_0x5c08de,_0x1a00b9){const _0x5c617e=a5_0x49e5;return _0x5c08de[_0x1a00b9['timestamp']]?tag(_0x5c617e(0x10d),tag('when',encode(_0x5c08de[_0x1a00b9[_0x5c617e(0x12e)]]))):'';}const geometry={'Point':function(_0x3611fc){const _0x423e22=a5_0x49e5;return tag(_0x423e22(0x116),tag(_0x423e22(0x111),_0x3611fc[_0x423e22(0x111)][_0x423e22(0x103)](',')));},'LineString':function(_0x16139f){const _0x495f5c=a5_0x49e5;return tag(_0x495f5c(0x122),tag(_0x495f5c(0x111),linearring(_0x16139f['coordinates'])));},'Polygon':function(_0x17cf1b){const _0x2955f6=a5_0x49e5;if(!_0x17cf1b[_0x2955f6(0x111)][_0x2955f6(0xfe)])return'';const _0x5f4b50=_0x17cf1b[_0x2955f6(0x111)][0x0],_0x311ed2=_0x17cf1b[_0x2955f6(0x111)]['slice'](0x1),_0x4e08f3=tag(_0x2955f6(0x10b),tag(_0x2955f6(0xfc),tag(_0x2955f6(0x111),linearring(_0x5f4b50)))),_0x7b8a8f=_0x311ed2[_0x2955f6(0x119)](function(_0x471c4d){const _0x2ce6be=_0x2955f6;return tag(_0x2ce6be(0xef),tag(_0x2ce6be(0xfc),tag(_0x2ce6be(0x111),linearring(_0x471c4d))));})['join']('');return tag('Polygon',_0x4e08f3+_0x7b8a8f);},'MultiPoint':function(_0x1406f4){const _0xa827ef=a5_0x49e5;if(!_0x1406f4['coordinates'][_0xa827ef(0xfe)])return'';return tag(_0xa827ef(0x11c),_0x1406f4[_0xa827ef(0x111)]['map'](function(_0x80bf10){const _0x38eadf=_0xa827ef;return geometry[_0x38eadf(0x116)]({'coordinates':_0x80bf10});})[_0xa827ef(0x103)](''));},'MultiPolygon':function(_0x397302){const _0x494e3a=a5_0x49e5;if(!_0x397302[_0x494e3a(0x111)][_0x494e3a(0xfe)])return'';return tag(_0x494e3a(0x11c),_0x397302[_0x494e3a(0x111)][_0x494e3a(0x119)](function(_0x28e15f){const _0x2c0276=_0x494e3a;return geometry[_0x2c0276(0xe5)]({'coordinates':_0x28e15f});})['join'](''));},'MultiLineString':function(_0x313338){const _0x3c2ccb=a5_0x49e5;if(!_0x313338[_0x3c2ccb(0x111)][_0x3c2ccb(0xfe)])return'';return tag(_0x3c2ccb(0x11c),_0x313338[_0x3c2ccb(0x111)][_0x3c2ccb(0x119)](function(_0x161978){return geometry['LineString']({'coordinates':_0x161978});})[_0x3c2ccb(0x103)](''));},'GeometryCollection':function(_0x44999d){const _0x130eeb=a5_0x49e5;return tag(_0x130eeb(0x11c),_0x44999d[_0x130eeb(0xe3)][_0x130eeb(0x119)](geometry['any'])['join'](''));},'valid':function(_0x57073f){const _0x3273d2=a5_0x49e5;return _0x57073f&&_0x57073f['type']&&(_0x57073f[_0x3273d2(0x111)]||_0x57073f[_0x3273d2(0xf3)]==='GeometryCollection'&&_0x57073f[_0x3273d2(0xe3)]&&_0x57073f[_0x3273d2(0xe3)]['every'](geometry['valid']));},'any':function(_0x133b30){const _0x5ec36f=a5_0x49e5;return geometry[_0x133b30[_0x5ec36f(0xf3)]]?geometry[_0x133b30[_0x5ec36f(0xf3)]](_0x133b30):'';},'isPoint':function(_0x16a038){const _0x1a73c0=a5_0x49e5;return _0x16a038['type']===_0x1a73c0(0x116)||_0x16a038[_0x1a73c0(0xf3)]===_0x1a73c0(0x131);},'isPolygon':function(_0x58c1fb){const _0x415426=a5_0x49e5;return _0x58c1fb[_0x415426(0xf3)]===_0x415426(0xe5)||_0x58c1fb[_0x415426(0xf3)]===_0x415426(0x110);},'isLine':function(_0x129e2e){const _0x3e778a=a5_0x49e5;return _0x129e2e[_0x3e778a(0xf3)]===_0x3e778a(0x122)||_0x129e2e[_0x3e778a(0xf3)]==='MultiLineString';}};function linearring(_0x285edb){const _0x3367cd=a5_0x49e5;return _0x285edb['map'](function(_0x25e238){return _0x25e238['join'](',');})[_0x3367cd(0x103)]('\x20');}function extendeddata(_0x246b3f){const _0x4416fb=a5_0x49e5,_0x384e3b=[];for(const _0x2e93d7 in _0x246b3f){const _0x357dd2=_0x246b3f[_0x2e93d7];isObject(_0x357dd2)?_0x384e3b[_0x4416fb(0x114)](_0x4416fb(0x109)+_0x2e93d7+'\x22><value>'+JSON[_0x4416fb(0x12c)](_0x357dd2)+_0x4416fb(0x106)):_0x384e3b[_0x4416fb(0x114)]('<Data\x20name\x20=\x22'+_0x2e93d7+_0x4416fb(0xf4)+_0x357dd2+'</value></Data>');}return tag(_0x4416fb(0xf0),_0x384e3b['join'](''));}function data(_0x528e2f){const _0x2abdcf=a5_0x49e5;return tag(_0x2abdcf(0xf9),tag(_0x2abdcf(0x128),encode(_0x528e2f[0x1])),[[_0x2abdcf(0x123),encode(_0x528e2f[0x0])]]);}function hasMarkerStyle(_0x4b985c){const _0x2b16ff=a5_0x49e5;return!!(_0x4b985c[_0x2b16ff(0x133)]||_0x4b985c[_0x2b16ff(0xec)]||_0x4b985c['marker-color']);}function markerStyle(_0xff603a,_0x5947e8){const _0x51eade=a5_0x49e5;return tag(_0x51eade(0x118),tag(_0x51eade(0x108),tag(_0x51eade(0x11e),tag(_0x51eade(0x115),iconUrl(_0xff603a))))+iconSize(_0xff603a),[['id',_0x5947e8]]);}function iconUrl(_0x483490){const _0x1f1dfd=a5_0x49e5;return _0x483490[_0x1f1dfd(0xec)];}function iconSize(_0x581b79){const _0x1457b1=a5_0x49e5;return tag(_0x1457b1(0x126),'',[[_0x1457b1(0x135),_0x1457b1(0xfb)],['yunits',_0x1457b1(0xfb)],['x',0.5],['y',0.5]]);}function hasPolygonAndLineStyle(_0x45285a){for(const _0x32aad2 in _0x45285a){if({'stroke':!![],'stroke-opacity':!![],'stroke-width':!![],'fill':!![],'fill-opacity':!![]}[_0x32aad2])return!![];}}function polygonAndLineStyle(_0xd77b79,_0x304dae){const _0x283556=a5_0x49e5,_0x3d3ace=tag(_0x283556(0xe4),[tag(_0x283556(0xe7),hexToKmlColor(_0xd77b79['stroke'],_0xd77b79['stroke-opacity'])||_0x283556(0x12f))+tag('width',_0xd77b79[_0x283556(0x10f)]===undefined?0x2:_0xd77b79[_0x283556(0x10f)])]);let _0x391b1c='';return(_0xd77b79['fill']||_0xd77b79[_0x283556(0xe6)])&&(_0x391b1c=tag(_0x283556(0x112),[tag(_0x283556(0xe7),hexToKmlColor(_0xd77b79[_0x283556(0xea)],_0xd77b79[_0x283556(0xe6)])||'88555555')])),tag(_0x283556(0x118),_0x3d3ace+_0x391b1c,[['id',_0x304dae]]);}function hashStyle(_0x4f0a37){const _0x239437=a5_0x49e5;let _0x3953a5='';return _0x4f0a37[_0x239437(0xec)]&&(_0x3953a5=_0x3953a5+'ms'+_0x4f0a37[_0x239437(0xec)]),_0x4f0a37[_0x239437(0x105)]&&(_0x3953a5=_0x3953a5+'mc'+_0x4f0a37[_0x239437(0x105)][_0x239437(0x132)]('#','')),_0x4f0a37['marker-size']&&(_0x3953a5=_0x3953a5+'ms'+_0x4f0a37[_0x239437(0x133)]),_0x4f0a37[_0x239437(0x12b)]&&(_0x3953a5=_0x3953a5+'s'+_0x4f0a37[_0x239437(0x12b)]['replace']('#','')),_0x4f0a37['stroke-width']&&(_0x3953a5=_0x3953a5+'sw'+_0x4f0a37[_0x239437(0x10f)][_0x239437(0x11d)]()[_0x239437(0x132)]('.','')),_0x4f0a37[_0x239437(0x12d)]&&(_0x3953a5=_0x3953a5+'mo'+_0x4f0a37[_0x239437(0x12d)][_0x239437(0x11d)]()[_0x239437(0x132)]('.','')),_0x4f0a37[_0x239437(0xea)]&&(_0x3953a5=_0x3953a5+'f'+_0x4f0a37['fill'][_0x239437(0x132)]('#','')),_0x4f0a37[_0x239437(0xe6)]&&(_0x3953a5=_0x3953a5+'fo'+_0x4f0a37[_0x239437(0xe6)][_0x239437(0x11d)]()[_0x239437(0x132)]('.','')),_0x3953a5;}function hexToKmlColor(_0x1fbc05,_0x1b4a9a){const _0x38a492=a5_0x49e5;if(typeof _0x1fbc05!==_0x38a492(0x100))return'';_0x1fbc05=_0x1fbc05['replace']('#','')['toLowerCase']();if(_0x1fbc05['length']===0x3)_0x1fbc05=_0x1fbc05[0x0]+_0x1fbc05[0x0]+_0x1fbc05[0x1]+_0x1fbc05[0x1]+_0x1fbc05[0x2]+_0x1fbc05[0x2];else{if(_0x1fbc05[_0x38a492(0xfe)]!==0x6)return'';}const _0xffc5f9=_0x1fbc05[0x0]+_0x1fbc05[0x1],_0x46e9a7=_0x1fbc05[0x2]+_0x1fbc05[0x3],_0x606bcc=_0x1fbc05[0x4]+_0x1fbc05[0x5];let _0x58173b='ff';return typeof _0x1b4a9a===_0x38a492(0x104)&&_0x1b4a9a>=0x0&&_0x1b4a9a<=0x1&&(_0x58173b=(_0x1b4a9a*0xff)[_0x38a492(0x11d)](0x10),_0x58173b['indexOf']('.')>-0x1&&(_0x58173b=_0x58173b[_0x38a492(0xe9)](0x0,_0x58173b['indexOf']('.'))),_0x58173b[_0x38a492(0xfe)]<0x2&&(_0x58173b='0'+_0x58173b)),_0x58173b+_0x606bcc+_0x46e9a7+_0xffc5f9;}export function isObject(_0x25d17f){const _0x49797e=a5_0x49e5;return Object[_0x49797e(0xed)]['toString'][_0x49797e(0x129)](_0x25d17f)==='[object\x20Object]';}function encode(_0x40a312){const _0x390380=a5_0x49e5;if(!_0x40a312)return'';return _0x40a312[_0x390380(0x11d)]()[_0x390380(0x132)](/&/g,_0x390380(0x117))[_0x390380(0x132)](/</g,'<')[_0x390380(0x132)](/>/g,'>')[_0x390380(0x132)](/"/g,'"');}function attr(_0x4f58ca){const _0x18389a=a5_0x49e5;if(!Object['keys'](_0x4f58ca)[_0x18389a(0xfe)])return'';return'\x20'+Object[_0x18389a(0xf2)](_0x4f58ca)['map'](function(_0x45aa89){return _0x45aa89+'=\x22'+escape(_0x4f58ca[_0x45aa89])+'\x22';})[_0x18389a(0x103)]('\x20');}const escape_map={'>':a5_0x3ae339(0xee),'<':a5_0x3ae339(0x10c),'\x27':''','\x22':a5_0x3ae339(0xeb),'&':a5_0x3ae339(0x117)};function escape(_0x5bd734,_0x335d37){const _0xd87419=a5_0x3ae339;if(_0x5bd734===null||_0x5bd734===undefined)return;_0x335d37=(_0x335d37||'')[_0xd87419(0x132)](/[^&"<>\']/g,'');const _0x287ddd=_0xd87419(0x11f)[_0xd87419(0x132)](new RegExp('['+_0x335d37+']','g'),'');return _0x5bd734['replace'](new RegExp(_0x287ddd,'g'),function(_0x551f3e,_0x127267){return escape_map[_0x127267];});}function tag(_0xc816f,_0x32fa12,_0x18a9c9){const _0x11146e=a5_0x3ae339;return(Array['isArray'](_0x32fa12)||typeof _0x32fa12===_0x11146e(0x100))&&(_0x18a9c9=_0x32fa12,_0x32fa12={}),Array['isArray'](_0x18a9c9)&&(_0x18a9c9='\x0a'+_0x18a9c9[_0x11146e(0x119)](function(_0x522d10){return'\x20\x20'+_0x522d10;})[_0x11146e(0x103)]('\x0a')+'\x0a'),'<'+_0xc816f+attr(_0x32fa12)+'>'+_0x18a9c9+'</'+_0xc816f+'>';}
|
package/conver/kml/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x427f(_0x15b326,_0x2abe9c){const _0x41495d=a6_0x4149();return a6_0x427f=function(_0x427f21,_0x21ec4b){_0x427f21=_0x427f21-0x19d;let _0x1d0d85=_0x41495d[_0x427f21];return _0x1d0d85;},a6_0x427f(_0x15b326,_0x2abe9c);}const a6_0x2007c3=a6_0x427f;(function(_0x4c0bfb,_0x5d1ecb){const _0x343893=a6_0x427f,_0xbae970=_0x4c0bfb();while(!![]){try{const _0x166689=parseInt(_0x343893(0x1a5))/0x1*(parseInt(_0x343893(0x1b9))/0x2)+-parseInt(_0x343893(0x1c1))/0x3*(parseInt(_0x343893(0x1cd))/0x4)+-parseInt(_0x343893(0x1b4))/0x5*(parseInt(_0x343893(0x1a0))/0x6)+parseInt(_0x343893(0x1ae))/0x7+parseInt(_0x343893(0x1c0))/0x8+parseInt(_0x343893(0x1a2))/0x9*(-parseInt(_0x343893(0x1a7))/0xa)+-parseInt(_0x343893(0x1ca))/0xb*(-parseInt(_0x343893(0x1a4))/0xc);if(_0x166689===_0x5d1ecb)break;else _0xbae970['push'](_0xbae970['shift']());}catch(_0x43582c){_0xbae970['push'](_0xbae970['shift']());}}}(a6_0x4149,0x8cffe));import a6_0x2578eb from'jszip';import{kmlToGeoJSON}from'./kmlToGeoJSON';import{geoJSONToKml}from'./geoJSONToKml';function a6_0x4149(){const _0x3a7435=['10BldSMc','opacity','kml','type','length','textContent','GET','4755226MVexwD','getRootNode','features','application/xml','forEach','outlineOpacity','5oqlfTa','name','constructor','outlineColor','Polygon','5222BsmQNf','blob','rectangle','closure','split','innerText','image','7722024gBrXNF','777486fVmUjH','outlineWidth','string','push','loadAsync','resolve','toGeoJSON参数不能为空','text','html','132TWhBbs','properties','div','8qgaxtf','stroke','assign','marker-color','style','pop','innerHTML','geometry','stroke-opacity','then','6772002dgOrVq','kmz','4043205hVoWBF','async','399948fFIGLb','241TPPMTk','coordinates'];a6_0x4149=function(){return _0x3a7435;};return a6_0x4149();}export function toKml(_0x2540a1,_0x20907a){const _0x1a7410=a6_0x427f;return _0x2540a1['features']?_0x2540a1[_0x1a7410(0x1b0)][_0x1a7410(0x1b2)](_0x3172c3=>{updateFeatureByStyle(_0x3172c3);}):updateFeatureByStyle(_0x2540a1),geoJSONToKml(_0x2540a1,_0x20907a);}function updateFeatureByStyle(_0x12fdb0){const _0x3ee8fb=a6_0x427f;var _0x5d7ff7,_0x520675,_0x36a6e0,_0x1eb6be,_0x3c7809,_0x2df72e;if(!_0x12fdb0[_0x3ee8fb(0x1cb)])return;const _0x129e96=_0x12fdb0['properties'][_0x3ee8fb(0x1d1)];if(_0x129e96){if(_0x129e96[_0x3ee8fb(0x1bf)]){_0x12fdb0[_0x3ee8fb(0x1cb)]['marker-symbol']=_0x129e96[_0x3ee8fb(0x1bf)];_0x129e96['outlineColor']&&(_0x12fdb0[_0x3ee8fb(0x1cb)][_0x3ee8fb(0x1d0)]=_0x129e96[_0x3ee8fb(0x1b7)]);return;}_0x129e96['color']&&(_0x12fdb0[_0x3ee8fb(0x1cb)]['fill']=_0x129e96['color'],_0x129e96[_0x3ee8fb(0x1a8)]&&(_0x12fdb0[_0x3ee8fb(0x1cb)]['fill-opacity']=_0x129e96[_0x3ee8fb(0x1a8)])),_0x129e96['outlineColor']&&(_0x12fdb0[_0x3ee8fb(0x1cb)][_0x3ee8fb(0x1ce)]=_0x129e96['outlineColor'],_0x12fdb0['properties']['stroke-width']=(_0x5d7ff7=_0x129e96[_0x3ee8fb(0x1c2)])!==null&&_0x5d7ff7!==void 0x0?_0x5d7ff7:0x1,_0x12fdb0[_0x3ee8fb(0x1cb)][_0x3ee8fb(0x19e)]=(_0x36a6e0=(_0x520675=_0x129e96[_0x3ee8fb(0x1b3)])!==null&&_0x520675!==void 0x0?_0x520675:_0x129e96[_0x3ee8fb(0x1a8)])!==null&&_0x36a6e0!==void 0x0?_0x36a6e0:0x1),_0x129e96[_0x3ee8fb(0x1c9)]&&(_0x129e96['html']=HTMLEncode(_0x129e96[_0x3ee8fb(0x1c9)])),_0x129e96[_0x3ee8fb(0x1bc)]&&((_0x3c7809=(_0x1eb6be=_0x12fdb0[_0x3ee8fb(0x19d)])===null||_0x1eb6be===void 0x0?void 0x0:_0x1eb6be[_0x3ee8fb(0x1a6)])===null||_0x3c7809===void 0x0?void 0x0:_0x3c7809[_0x3ee8fb(0x1ab)])>0x0&&_0x12fdb0[_0x3ee8fb(0x19d)][_0x3ee8fb(0x1a6)][_0x3ee8fb(0x1c4)](_0x12fdb0[_0x3ee8fb(0x19d)][_0x3ee8fb(0x1a6)][0x0]);}const _0x5574c7=(_0x2df72e=_0x12fdb0===null||_0x12fdb0===void 0x0?void 0x0:_0x12fdb0['properties'])===null||_0x2df72e===void 0x0?void 0x0:_0x2df72e[_0x3ee8fb(0x1aa)];if(_0x5574c7==='polygon'){const _0x4baf23=_0x12fdb0[_0x3ee8fb(0x19d)][_0x3ee8fb(0x1a6)][0x0];(_0x4baf23===null||_0x4baf23===void 0x0?void 0x0:_0x4baf23[_0x3ee8fb(0x1ab)])>0x2&&_0x4baf23[_0x3ee8fb(0x1c4)](_0x4baf23[0x0]);}else{if(_0x5574c7===_0x3ee8fb(0x1bb)){const _0x1161b0=_0x12fdb0[_0x3ee8fb(0x19d)][_0x3ee8fb(0x1a6)],_0x58715a=_0x1161b0[0x0][0x0],_0x5012e6=_0x1161b0[0x1][0x0],_0x38964f=_0x1161b0[0x0][0x1],_0xe03933=_0x1161b0[0x1][0x1];_0x12fdb0[_0x3ee8fb(0x19d)]={'type':_0x3ee8fb(0x1b8),'coordinates':[[[_0x58715a,_0xe03933],[_0x58715a,_0x38964f],[_0x5012e6,_0x38964f],[_0x5012e6,_0xe03933],[_0x58715a,_0xe03933]]]};}}}const getDom=_0x226951=>new DOMParser()['parseFromString'](_0x226951,a6_0x2007c3(0x1b1)),getExtension=_0x495bf6=>_0x495bf6['split']('.')[a6_0x2007c3(0x1d2)](),getKmlDom=_0x18a75f=>{const _0x4bed89=a6_0x2007c3,_0x37451e=new a6_0x2578eb();return _0x37451e[_0x4bed89(0x1c5)](_0x18a75f)[_0x4bed89(0x19f)](_0x519d39=>{let _0xc6acd3=null;return _0x519d39['forEach']((_0x59257c,_0x1a8477)=>{const _0x29eddc=a6_0x427f;getExtension(_0x59257c)===_0x29eddc(0x1a9)&&_0xc6acd3===null&&(_0xc6acd3=_0x1a8477[_0x29eddc(0x1a3)](_0x29eddc(0x1c3))['then'](getDom));}),_0xc6acd3;});};export function toGeoJSON(_0x1bffc3,_0x3d20d8){const _0x480b10=a6_0x2007c3;if(!_0x1bffc3){console['warn'](_0x480b10(0x1c7));return;}if(isString(_0x1bffc3)){const _0x2921f6=getExtension(_0x1bffc3);if(_0x2921f6===_0x480b10(0x1a9))return fetchXML(_0x1bffc3,_0x3d20d8)[_0x480b10(0x19f)](function(_0x4a59a9){return kmlToGeoJSON(_0x4a59a9);});else{if(_0x2921f6===_0x480b10(0x1a1))return fetchBlob(_0x1bffc3,_0x3d20d8)[_0x480b10(0x19f)](function(_0x12a718){return getKmlDom(_0x12a718);})['then'](function(_0x5a70cc){return kmlToGeoJSON(_0x5a70cc);});else{const _0x23dd38=kmlToGeoJSON(getDom(_0x1bffc3));return Promise['resolve'](_0x23dd38);}}}else{if(_0x1bffc3[_0x480b10(0x1af)]){const _0xe6843b=kmlToGeoJSON(_0x1bffc3);return Promise[_0x480b10(0x1c6)](_0xe6843b);}else{const _0x246ffb=_0x1bffc3[_0x480b10(0x1b5)][_0x480b10(0x1bd)]('.')[_0x1bffc3[_0x480b10(0x1b5)][_0x480b10(0x1bd)]('.')[_0x480b10(0x1ab)]-0x1]['toLowerCase']();return _0x246ffb===_0x480b10(0x1a9)?_0x1bffc3['text']()[_0x480b10(0x19f)](_0x4d2761=>{return kmlToGeoJSON(getDom(_0x4d2761));}):getKmlDom(_0x1bffc3)[_0x480b10(0x19f)](function(_0x999d30){return kmlToGeoJSON(_0x999d30);});}}}function isString(_0x386f54){const _0x115217=a6_0x2007c3;return typeof _0x386f54==='string'&&_0x386f54[_0x115217(0x1b6)]===String;}function HTMLEncode(_0x5952e2){const _0x1d242e=a6_0x2007c3,_0x340a4a=document['createElement'](_0x1d242e(0x1cc));_0x340a4a[_0x1d242e(0x1ac)]!=null?_0x340a4a[_0x1d242e(0x1ac)]=_0x5952e2:_0x340a4a[_0x1d242e(0x1be)]=_0x5952e2;const _0x482f27=_0x340a4a[_0x1d242e(0x1d3)];return _0x482f27;}function fetchXML(_0x4ef347,_0x3a1859){const _0x2d6cd8=a6_0x2007c3,_0x457436=Object['assign']({'method':_0x2d6cd8(0x1ad),'headers':{'Content-Type':_0x2d6cd8(0x1b1)}},_0x3a1859);return fetch(_0x4ef347,_0x457436)['then'](_0x292051=>{const _0x63bf58=_0x2d6cd8;return _0x292051[_0x63bf58(0x1c8)]();})[_0x2d6cd8(0x19f)](_0x556f91=>{return getDom(_0x556f91);});}function fetchBlob(_0x53e666,_0x773ce1){const _0x1e7278=a6_0x2007c3,_0x1cb265=Object[_0x1e7278(0x1cf)]({'method':'GET'},_0x773ce1);return fetch(_0x53e666,_0x1cb265)[_0x1e7278(0x19f)](_0x36319f=>{const _0x2870e5=_0x1e7278;return _0x36319f[_0x2870e5(0x1ba)]();});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x1f5c54=a7_0x33c7;(function(_0x5ee293,_0x5e818a){const _0x15fb98=a7_0x33c7,_0x17d126=_0x5ee293();while(!![]){try{const _0xf94eaa=parseInt(_0x15fb98(0x77))/0x1*(parseInt(_0x15fb98(0x7d))/0x2)+parseInt(_0x15fb98(0x7f))/0x3*(parseInt(_0x15fb98(0x6c))/0x4)+parseInt(_0x15fb98(0xb3))/0x5+-parseInt(_0x15fb98(0xb5))/0x6+-parseInt(_0x15fb98(0x7e))/0x7*(-parseInt(_0x15fb98(0xaa))/0x8)+-parseInt(_0x15fb98(0x8f))/0x9*(-parseInt(_0x15fb98(0x7b))/0xa)+-parseInt(_0x15fb98(0x9b))/0xb;if(_0xf94eaa===_0x5e818a)break;else _0x17d126['push'](_0x17d126['shift']());}catch(_0x549e9b){_0x17d126['push'](_0x17d126['shift']());}}}(a7_0x55ca,0x24860));const removeSpace=/\s*/g,trimSpace=/^\s*|\s*$/g,splitSpace=/\s+/;function okhash(_0x11564f){const _0x122760=a7_0x33c7;if(!_0x11564f||!_0x11564f[_0x122760(0x90)])return 0x0;for(var _0x48eca4=0x0,_0xdeba52=0x0;_0x48eca4<_0x11564f[_0x122760(0x90)];_0x48eca4++){_0xdeba52=(_0xdeba52<<0x5)-_0xdeba52+_0x11564f[_0x122760(0xa8)](_0x48eca4)|0x0;}return _0xdeba52;}function get(_0x2d5aa7,_0xb587cf){const _0x800497=a7_0x33c7;return _0x2d5aa7[_0x800497(0xa2)](_0xb587cf);}function attr(_0x2f0826,_0x4a2845){const _0x391f8e=a7_0x33c7;return _0x2f0826[_0x391f8e(0xac)](_0x4a2845);}function attrf(_0x10955c,_0x4aaa24){return parseFloat(attr(_0x10955c,_0x4aaa24));}function get1(_0x24d0ca,_0x40b3b8){const _0x44e69f=get(_0x24d0ca,_0x40b3b8);return _0x44e69f['length']?_0x44e69f[0x0]:null;}function norm(_0x1687bc){const _0x3c8009=a7_0x33c7;return _0x1687bc['normalize']&&_0x1687bc[_0x3c8009(0xa3)](),_0x1687bc;}function numarray(_0x5f17e7){const _0x41b328=a7_0x33c7;for(var _0x5bf536=0x0,_0x5c8367=[];_0x5bf536<_0x5f17e7[_0x41b328(0x90)];_0x5bf536++){_0x5c8367[_0x5bf536]=parseFloat(_0x5f17e7[_0x5bf536]);}return _0x5c8367;}function nodeVal(_0x5d97c7){const _0xe1eaa8=a7_0x33c7;return _0x5d97c7&&norm(_0x5d97c7),_0x5d97c7&&_0x5d97c7[_0xe1eaa8(0x95)]||'';}function coord1(_0x87fde5){const _0x305f89=a7_0x33c7;return numarray(_0x87fde5[_0x305f89(0x71)](removeSpace,'')[_0x305f89(0x8e)](','));}function coord(_0x282453){const _0x35312c=a7_0x33c7,_0x11b1c6=_0x282453[_0x35312c(0x71)](trimSpace,'')['split'](splitSpace),_0x3b248c=[];for(let _0x325174=0x0;_0x325174<_0x11b1c6[_0x35312c(0x90)];_0x325174++){_0x3b248c[_0x35312c(0x85)](coord1(_0x11b1c6[_0x325174]));}return _0x3b248c;}function fc(){const _0x3acc0a=a7_0x33c7;return{'type':_0x3acc0a(0xa7),'features':[]};}let serializer;function a7_0x55ca(){const _0x31f78e=['336DPSMHp','stroke-opacity','getAttribute','Track','PolyStyle','coordTimes','toString','color','styleHash','1288310JUIbHw','object','428364AUEjIj','Pair','browser','coords','171116KnyDtp','name','MultiGeometry','GeometryCollection','Placemark','replace','xml','visibility','value','parse','key','5743OqINgB','LineStyle','LineString','Feature','190XuHSOr','StyleMap','46iglGwU','20923QYdute','12RjKsRt','fill-opacity','SimpleData','MultiTrack','ExtendedData','substr','push','geoms','TimeStamp','Style','Point','features','fill','concat','stroke-width','split','103257YEdWSd','length','styleUrl','LinearRing','Data','gx:coord','textContent','coordinates','outline','Polygon','TimeSpan','gx:MultiTrack','7517378Xkpmed','styleMapHash','timestamp','timespan','when','description','times','getElementsByTagName','normalize','normal','end','serializeToString','FeatureCollection','charCodeAt','XMLSerializer'];a7_0x55ca=function(){return _0x31f78e;};return a7_0x55ca();}if(typeof XMLSerializer!=='undefined')serializer=new XMLSerializer();else typeof exports===a7_0x1f5c54(0xb4)&&typeof process==='object'&&!process[a7_0x1f5c54(0x6a)]&&(serializer=new(require('xmldom'))[(a7_0x1f5c54(0xa9))]());function a7_0x33c7(_0x5d810e,_0x13aae6){const _0x55ca37=a7_0x55ca();return a7_0x33c7=function(_0x33c751,_0x1a1e0f){_0x33c751=_0x33c751-0x6a;let _0x2b1534=_0x55ca37[_0x33c751];return _0x2b1534;},a7_0x33c7(_0x5d810e,_0x13aae6);}function xml2str(_0x3436ee){const _0x7366bf=a7_0x1f5c54;if(_0x3436ee[_0x7366bf(0x72)]!==undefined)return _0x3436ee[_0x7366bf(0x72)];return serializer[_0x7366bf(0xa6)](_0x3436ee);}export function kmlToGeoJSON(_0x3bf0c0){const _0x3fdc9b=a7_0x1f5c54,_0x2be5c7=fc(),_0x3693ee={},_0x5a36b9={},_0xb2ca19={},_0x40846c=[_0x3fdc9b(0x98),'LineString',_0x3fdc9b(0x89),_0x3fdc9b(0xad),'gx:Track'],_0x1d609b=get(_0x3bf0c0,_0x3fdc9b(0x70)),_0x122bc5=get(_0x3bf0c0,_0x3fdc9b(0x88)),_0x268f7e=get(_0x3bf0c0,_0x3fdc9b(0x7c));for(let _0x4059d0=0x0;_0x4059d0<_0x122bc5[_0x3fdc9b(0x90)];_0x4059d0++){const _0x2baef9=okhash(xml2str(_0x122bc5[_0x4059d0]))[_0x3fdc9b(0xb0)](0x10);_0x3693ee['#'+attr(_0x122bc5[_0x4059d0],'id')]=_0x2baef9,_0x5a36b9[_0x2baef9]=_0x122bc5[_0x4059d0];}for(let _0x4be628=0x0;_0x4be628<_0x268f7e['length'];_0x4be628++){_0x3693ee['#'+attr(_0x268f7e[_0x4be628],'id')]=okhash(xml2str(_0x268f7e[_0x4be628]))[_0x3fdc9b(0xb0)](0x10);const _0x143f23=get(_0x268f7e[_0x4be628],_0x3fdc9b(0xb6)),_0x1aef3e={};for(let _0x37d538=0x0;_0x37d538<_0x143f23[_0x3fdc9b(0x90)];_0x37d538++){_0x1aef3e[nodeVal(get1(_0x143f23[_0x37d538],_0x3fdc9b(0x76)))]=nodeVal(get1(_0x143f23[_0x37d538],_0x3fdc9b(0x91)));}_0xb2ca19['#'+attr(_0x268f7e[_0x4be628],'id')]=_0x1aef3e;}for(let _0x1b31ca=0x0;_0x1b31ca<_0x1d609b[_0x3fdc9b(0x90)];_0x1b31ca++){_0x2be5c7['features']=_0x2be5c7[_0x3fdc9b(0x8a)][_0x3fdc9b(0x8c)](_0x4ffbf0(_0x1d609b[_0x1b31ca]));}function _0x107536(_0x43cde6){const _0x1ddc73=_0x3fdc9b;let _0x2020fa,_0xa5f4ef=0x0;return _0x43cde6=_0x43cde6||'',_0x43cde6['substr'](0x0,0x1)==='#'&&(_0x43cde6=_0x43cde6['substr'](0x1)),(_0x43cde6[_0x1ddc73(0x90)]===0x6||_0x43cde6[_0x1ddc73(0x90)]===0x3)&&(_0x2020fa=_0x43cde6),_0x43cde6[_0x1ddc73(0x90)]===0x8&&(_0xa5f4ef=parseInt(_0x43cde6[_0x1ddc73(0x84)](0x0,0x2),0x10)/0xff,_0x2020fa='#'+_0x43cde6[_0x1ddc73(0x84)](0x6,0x2)+_0x43cde6['substr'](0x4,0x2)+_0x43cde6['substr'](0x2,0x2)),[_0x2020fa,isNaN(_0xa5f4ef)?undefined:_0xa5f4ef];}function _0x1a5065(_0xb7aee9){return numarray(_0xb7aee9['split']('\x20'));}function _0x5a7c45(_0x1d3e7d){const _0x45cfd6=_0x3fdc9b;let _0xf195f8=get(_0x1d3e7d,'coord');const _0x173645=[],_0x29f3ff=[];_0xf195f8[_0x45cfd6(0x90)]===0x0&&(_0xf195f8=get(_0x1d3e7d,_0x45cfd6(0x94)));for(let _0x3c89c8=0x0;_0x3c89c8<_0xf195f8[_0x45cfd6(0x90)];_0x3c89c8++){_0x173645['push'](_0x1a5065(nodeVal(_0xf195f8[_0x3c89c8])));}const _0x3564c8=get(_0x1d3e7d,_0x45cfd6(0x9f));for(let _0xa3878a=0x0;_0xa3878a<_0x3564c8[_0x45cfd6(0x90)];_0xa3878a++){_0x29f3ff[_0x45cfd6(0x85)](nodeVal(_0x3564c8[_0xa3878a]));}return{'coords':_0x173645,'times':_0x29f3ff};}function _0x14bd97(_0x38dd36){const _0x1ca99a=_0x3fdc9b;let _0x33d9a0,_0x591d3f,_0x545b18,_0x56022b,_0x5365b0;const _0x576059=[],_0x42b57b=[];if(get1(_0x38dd36,_0x1ca99a(0x6e)))return _0x14bd97(get1(_0x38dd36,'MultiGeometry'));if(get1(_0x38dd36,_0x1ca99a(0x82)))return _0x14bd97(get1(_0x38dd36,_0x1ca99a(0x82)));if(get1(_0x38dd36,_0x1ca99a(0x9a)))return _0x14bd97(get1(_0x38dd36,_0x1ca99a(0x9a)));for(_0x545b18=0x0;_0x545b18<_0x40846c[_0x1ca99a(0x90)];_0x545b18++){_0x591d3f=get(_0x38dd36,_0x40846c[_0x545b18]);if(_0x591d3f)for(_0x56022b=0x0;_0x56022b<_0x591d3f['length'];_0x56022b++){_0x33d9a0=_0x591d3f[_0x56022b];if(_0x40846c[_0x545b18]===_0x1ca99a(0x89))_0x576059[_0x1ca99a(0x85)]({'type':'Point','coordinates':coord1(nodeVal(get1(_0x33d9a0,_0x1ca99a(0x96))))});else{if(_0x40846c[_0x545b18]==='LineString')_0x576059[_0x1ca99a(0x85)]({'type':_0x1ca99a(0x79),'coordinates':coord(nodeVal(get1(_0x33d9a0,_0x1ca99a(0x96))))});else{if(_0x40846c[_0x545b18]===_0x1ca99a(0x98)){const _0x140233=get(_0x33d9a0,_0x1ca99a(0x92)),_0x11f4c0=[];for(_0x5365b0=0x0;_0x5365b0<_0x140233[_0x1ca99a(0x90)];_0x5365b0++){_0x11f4c0[_0x1ca99a(0x85)](coord(nodeVal(get1(_0x140233[_0x5365b0],'coordinates'))));}_0x576059[_0x1ca99a(0x85)]({'type':_0x1ca99a(0x98),'coordinates':_0x11f4c0});}else{if(_0x40846c[_0x545b18]===_0x1ca99a(0xad)||_0x40846c[_0x545b18]==='gx:Track'){const _0x379511=_0x5a7c45(_0x33d9a0);_0x576059[_0x1ca99a(0x85)]({'type':_0x1ca99a(0x79),'coordinates':_0x379511[_0x1ca99a(0x6b)]}),_0x379511[_0x1ca99a(0xa1)][_0x1ca99a(0x90)]&&_0x42b57b[_0x1ca99a(0x85)](_0x379511[_0x1ca99a(0xa1)]);}}}}}}return{'geoms':_0x576059,'coordTimes':_0x42b57b};}function _0x4ffbf0(_0x4a58c4){const _0x237246=_0x3fdc9b,_0x501015=_0x14bd97(_0x4a58c4);let _0x4dfff9;const _0x30c8bb={},_0xaa89c9=nodeVal(get1(_0x4a58c4,'name'));let _0x88be0a=nodeVal(get1(_0x4a58c4,'styleUrl'));const _0x355920=nodeVal(get1(_0x4a58c4,_0x237246(0xa0))),_0x3d7bd7=get1(_0x4a58c4,_0x237246(0x99)),_0x314a44=get1(_0x4a58c4,_0x237246(0x87)),_0x299d39=get1(_0x4a58c4,_0x237246(0x83));let _0x398e18=get1(_0x4a58c4,_0x237246(0x78)),_0x3ffe76=get1(_0x4a58c4,_0x237246(0xae));const _0x3cc281=get1(_0x4a58c4,_0x237246(0x73));if(!_0x501015[_0x237246(0x86)][_0x237246(0x90)])return[];_0xaa89c9&&(_0x30c8bb[_0x237246(0x6d)]=_0xaa89c9);if(_0x88be0a){_0x88be0a[0x0]!=='#'&&(_0x88be0a='#'+_0x88be0a);_0x30c8bb[_0x237246(0x91)]=_0x88be0a;_0x3693ee[_0x88be0a]&&(_0x30c8bb[_0x237246(0xb2)]=_0x3693ee[_0x88be0a]);_0xb2ca19[_0x88be0a]&&(_0x30c8bb[_0x237246(0x9c)]=_0xb2ca19[_0x88be0a],_0x30c8bb[_0x237246(0xb2)]=_0x3693ee[_0xb2ca19[_0x88be0a][_0x237246(0xa4)]]);const _0x1e7518=_0x5a36b9[_0x30c8bb[_0x237246(0xb2)]];_0x1e7518&&(!_0x398e18&&(_0x398e18=get1(_0x1e7518,_0x237246(0x78))),!_0x3ffe76&&(_0x3ffe76=get1(_0x1e7518,'PolyStyle')));}_0x355920&&(_0x30c8bb[_0x237246(0xa0)]=_0x355920);if(_0x3d7bd7){const _0x425322=nodeVal(get1(_0x3d7bd7,'begin')),_0x29c85e=nodeVal(get1(_0x3d7bd7,_0x237246(0xa5)));_0x30c8bb[_0x237246(0x9e)]={'begin':_0x425322,'end':_0x29c85e};}_0x314a44&&(_0x30c8bb[_0x237246(0x9d)]=nodeVal(get1(_0x314a44,_0x237246(0x9f))));if(_0x398e18){const _0x474537=_0x107536(nodeVal(get1(_0x398e18,_0x237246(0xb1)))),_0x5e6560=_0x474537[0x0],_0x397871=_0x474537[0x1],_0x441b5a=parseFloat(nodeVal(get1(_0x398e18,'width')));_0x5e6560&&(_0x30c8bb['stroke']=_0x5e6560),!isNaN(_0x397871)&&(_0x30c8bb[_0x237246(0xab)]=_0x397871),!isNaN(_0x441b5a)&&(_0x30c8bb[_0x237246(0x8d)]=_0x441b5a);}if(_0x3ffe76){const _0x430251=_0x107536(nodeVal(get1(_0x3ffe76,'color'))),_0x595588=_0x430251[0x0],_0x309789=_0x430251[0x1],_0x303408=nodeVal(get1(_0x3ffe76,_0x237246(0x8b))),_0x1f551c=nodeVal(get1(_0x3ffe76,_0x237246(0x97)));_0x595588&&(_0x30c8bb[_0x237246(0x8b)]=_0x595588),!isNaN(_0x309789)&&(_0x30c8bb[_0x237246(0x80)]=_0x309789),_0x303408&&(_0x30c8bb[_0x237246(0x80)]=_0x303408==='1'?_0x30c8bb['fill-opacity']||0x1:0x0),_0x1f551c&&(_0x30c8bb[_0x237246(0xab)]=_0x1f551c==='1'?_0x30c8bb[_0x237246(0xab)]||0x1:0x0);}if(_0x299d39){const _0xf7a88c=get(_0x299d39,_0x237246(0x93)),_0x103311=get(_0x299d39,_0x237246(0x81));for(_0x4dfff9=0x0;_0x4dfff9<_0xf7a88c['length'];_0x4dfff9++){const _0x594fb7=_0xf7a88c[_0x4dfff9][_0x237246(0xac)]('name');let _0x346c7b=nodeVal(get1(_0xf7a88c[_0x4dfff9],_0x237246(0x74)));try{_0x346c7b=JSON[_0x237246(0x75)](_0x346c7b);}catch(_0x1e9c99){}_0x30c8bb[_0x594fb7]=_0x346c7b;}for(_0x4dfff9=0x0;_0x4dfff9<_0x103311['length'];_0x4dfff9++){const _0x15bb2e=_0x103311[_0x4dfff9]['getAttribute'](_0x237246(0x6d));let _0x1ea6be=nodeVal(_0x103311[_0x4dfff9]);try{_0x1ea6be=JSON['parse'](_0x1ea6be);}catch(_0x5129dc){}_0x30c8bb[_0x15bb2e]=_0x1ea6be;}}_0x3cc281&&(_0x30c8bb['visibility']=nodeVal(_0x3cc281));_0x501015[_0x237246(0xaf)][_0x237246(0x90)]&&(_0x30c8bb['coordTimes']=_0x501015[_0x237246(0xaf)][_0x237246(0x90)]===0x1?_0x501015['coordTimes'][0x0]:_0x501015[_0x237246(0xaf)]);const _0x58c788={'type':_0x237246(0x7a),'geometry':_0x501015[_0x237246(0x86)][_0x237246(0x90)]===0x1?_0x501015[_0x237246(0x86)][0x0]:{'type':_0x237246(0x6f),'geometries':_0x501015['geoms']},'properties':_0x30c8bb};return attr(_0x4a58c4,'id')&&(_0x58c788['id']=attr(_0x4a58c4,'id')),[_0x58c788];}return _0x2be5c7;}
|
|
1
|
+
const a7_0x12fe2a=a7_0x5ec8;(function(_0x5b7384,_0x890fae){const _0x356f94=a7_0x5ec8,_0xb5081c=_0x5b7384();while(!![]){try{const _0x2e7bf1=parseInt(_0x356f94(0x106))/0x1+parseInt(_0x356f94(0x124))/0x2+-parseInt(_0x356f94(0xfe))/0x3+-parseInt(_0x356f94(0x11d))/0x4+-parseInt(_0x356f94(0xfd))/0x5*(parseInt(_0x356f94(0x109))/0x6)+parseInt(_0x356f94(0x114))/0x7*(-parseInt(_0x356f94(0x11a))/0x8)+parseInt(_0x356f94(0x130))/0x9;if(_0x2e7bf1===_0x890fae)break;else _0xb5081c['push'](_0xb5081c['shift']());}catch(_0x30fe1f){_0xb5081c['push'](_0xb5081c['shift']());}}}(a7_0x14fe,0xf0a90));const removeSpace=/\s*/g,trimSpace=/^\s*|\s*$/g,splitSpace=/\s+/;function a7_0x5ec8(_0x56ed63,_0x51ccf5){const _0x14fe51=a7_0x14fe();return a7_0x5ec8=function(_0x5ec804,_0x2d8261){_0x5ec804=_0x5ec804-0xf6;let _0x2b025e=_0x14fe51[_0x5ec804];return _0x2b025e;},a7_0x5ec8(_0x56ed63,_0x51ccf5);}function okhash(_0x12f7c1){const _0x102c73=a7_0x5ec8;if(!_0x12f7c1||!_0x12f7c1[_0x102c73(0x13c)])return 0x0;for(var _0xcc4590=0x0,_0x1c6dda=0x0;_0xcc4590<_0x12f7c1[_0x102c73(0x13c)];_0xcc4590++){_0x1c6dda=(_0x1c6dda<<0x5)-_0x1c6dda+_0x12f7c1[_0x102c73(0xf8)](_0xcc4590)|0x0;}return _0x1c6dda;}function get(_0x157740,_0x434964){return _0x157740['getElementsByTagName'](_0x434964);}function attr(_0x5e3cd0,_0xdf57f1){const _0x5a2be1=a7_0x5ec8;return _0x5e3cd0[_0x5a2be1(0xfc)](_0xdf57f1);}function attrf(_0x138002,_0x2963fb){return parseFloat(attr(_0x138002,_0x2963fb));}function get1(_0xc45cde,_0x5b5089){const _0x1df217=get(_0xc45cde,_0x5b5089);return _0x1df217['length']?_0x1df217[0x0]:null;}function norm(_0x4b5ca5){const _0x1bf29e=a7_0x5ec8;return _0x4b5ca5[_0x1bf29e(0x100)]&&_0x4b5ca5['normalize'](),_0x4b5ca5;}function numarray(_0x418927){const _0x52be9c=a7_0x5ec8;for(var _0x53abc7=0x0,_0x508b51=[];_0x53abc7<_0x418927[_0x52be9c(0x13c)];_0x53abc7++){_0x508b51[_0x53abc7]=parseFloat(_0x418927[_0x53abc7]);}return _0x508b51;}function nodeVal(_0x3e05d9){return _0x3e05d9&&norm(_0x3e05d9),_0x3e05d9&&_0x3e05d9['textContent']||'';}function coord1(_0x539f36){const _0xcb7dbd=a7_0x5ec8;return numarray(_0x539f36['replace'](removeSpace,'')[_0xcb7dbd(0x138)](','));}function a7_0x14fe(){const _0xc5b6dd=['1332208yGMOgn','Polygon','XMLSerializer','1008402tIFmwy','gx:Track','FeatureCollection','browser','features','Feature','LineString','xmldom','outline','width','coordinates','2513lIwEhx','timestamp','begin','TimeSpan','LinearRing','MultiTrack','3848AuQZFf','substr','end','4394072BCYubd','object','Data','stroke-opacity','description','Point','timespan','3245610PaokxD','styleHash','styleMapHash','stroke-width','normal','StyleMap','replace','MultiGeometry','coordTimes','name','color','styleUrl','15377553MakTbv','fill-opacity','gx:coord','stroke','visibility','when','push','SimpleData','split','concat','parse','PolyStyle','length','gx:MultiTrack','Style','TimeStamp','charCodeAt','Track','undefined','xml','getAttribute','25WWmkOX','4699062bxfojW','toString','normalize','LineStyle','ExtendedData','geoms','times','Pair'];a7_0x14fe=function(){return _0xc5b6dd;};return a7_0x14fe();}function coord(_0x10e071){const _0x3202ce=a7_0x5ec8,_0x12f947=_0x10e071[_0x3202ce(0x12a)](trimSpace,'')[_0x3202ce(0x138)](splitSpace),_0x5c8314=[];for(let _0x521a69=0x0;_0x521a69<_0x12f947['length'];_0x521a69++){_0x5c8314[_0x3202ce(0x136)](coord1(_0x12f947[_0x521a69]));}return _0x5c8314;}function fc(){const _0xba7564=a7_0x5ec8;return{'type':_0xba7564(0x10b),'features':[]};}let serializer;if(typeof XMLSerializer!==a7_0x12fe2a(0xfa))serializer=new XMLSerializer();else typeof exports===a7_0x12fe2a(0x11e)&&typeof process===a7_0x12fe2a(0x11e)&&!process[a7_0x12fe2a(0x10c)]&&(serializer=new(require(a7_0x12fe2a(0x110)))[(a7_0x12fe2a(0x108))]());function xml2str(_0x57f52a){const _0x2b13c1=a7_0x12fe2a;if(_0x57f52a['xml']!==undefined)return _0x57f52a[_0x2b13c1(0xfb)];return serializer['serializeToString'](_0x57f52a);}export function kmlToGeoJSON(_0x5a2aa0){const _0xe8bd4e=a7_0x12fe2a,_0xd2278b=fc(),_0xb53316={},_0x26b472={},_0x17aed2={},_0x334994=['Polygon',_0xe8bd4e(0x10f),_0xe8bd4e(0x122),_0xe8bd4e(0xf9),'gx:Track'],_0x3f7167=get(_0x5a2aa0,'Placemark'),_0x43bd28=get(_0x5a2aa0,_0xe8bd4e(0xf6)),_0x4a36d8=get(_0x5a2aa0,_0xe8bd4e(0x129));for(let _0x570748=0x0;_0x570748<_0x43bd28['length'];_0x570748++){const _0x274078=okhash(xml2str(_0x43bd28[_0x570748]))[_0xe8bd4e(0xff)](0x10);_0xb53316['#'+attr(_0x43bd28[_0x570748],'id')]=_0x274078,_0x26b472[_0x274078]=_0x43bd28[_0x570748];}for(let _0x5a3fe9=0x0;_0x5a3fe9<_0x4a36d8[_0xe8bd4e(0x13c)];_0x5a3fe9++){_0xb53316['#'+attr(_0x4a36d8[_0x5a3fe9],'id')]=okhash(xml2str(_0x4a36d8[_0x5a3fe9]))[_0xe8bd4e(0xff)](0x10);const _0x293f96=get(_0x4a36d8[_0x5a3fe9],_0xe8bd4e(0x105)),_0xef206a={};for(let _0x5dd7c0=0x0;_0x5dd7c0<_0x293f96[_0xe8bd4e(0x13c)];_0x5dd7c0++){_0xef206a[nodeVal(get1(_0x293f96[_0x5dd7c0],'key'))]=nodeVal(get1(_0x293f96[_0x5dd7c0],_0xe8bd4e(0x12f)));}_0x17aed2['#'+attr(_0x4a36d8[_0x5a3fe9],'id')]=_0xef206a;}for(let _0x3515a7=0x0;_0x3515a7<_0x3f7167[_0xe8bd4e(0x13c)];_0x3515a7++){_0xd2278b['features']=_0xd2278b[_0xe8bd4e(0x10d)][_0xe8bd4e(0x139)](_0x347bbd(_0x3f7167[_0x3515a7]));}function _0x28d2d3(_0x3f4321){const _0x323e81=_0xe8bd4e;let _0x8b9f75,_0x3de69d=0x0;return _0x3f4321=_0x3f4321||'',_0x3f4321[_0x323e81(0x11b)](0x0,0x1)==='#'&&(_0x3f4321=_0x3f4321[_0x323e81(0x11b)](0x1)),(_0x3f4321[_0x323e81(0x13c)]===0x6||_0x3f4321[_0x323e81(0x13c)]===0x3)&&(_0x8b9f75=_0x3f4321),_0x3f4321[_0x323e81(0x13c)]===0x8&&(_0x3de69d=parseInt(_0x3f4321['substr'](0x0,0x2),0x10)/0xff,_0x8b9f75='#'+_0x3f4321[_0x323e81(0x11b)](0x6,0x2)+_0x3f4321['substr'](0x4,0x2)+_0x3f4321['substr'](0x2,0x2)),[_0x8b9f75,isNaN(_0x3de69d)?undefined:_0x3de69d];}function _0x51f1b0(_0x37a735){return numarray(_0x37a735['split']('\x20'));}function _0x4b7ef9(_0x43204b){const _0x1ca973=_0xe8bd4e;let _0x2eedb0=get(_0x43204b,'coord');const _0x58194c=[],_0x46f7e7=[];_0x2eedb0['length']===0x0&&(_0x2eedb0=get(_0x43204b,_0x1ca973(0x132)));for(let _0x1a6728=0x0;_0x1a6728<_0x2eedb0['length'];_0x1a6728++){_0x58194c[_0x1ca973(0x136)](_0x51f1b0(nodeVal(_0x2eedb0[_0x1a6728])));}const _0x517d88=get(_0x43204b,_0x1ca973(0x135));for(let _0x56d0e5=0x0;_0x56d0e5<_0x517d88[_0x1ca973(0x13c)];_0x56d0e5++){_0x46f7e7[_0x1ca973(0x136)](nodeVal(_0x517d88[_0x56d0e5]));}return{'coords':_0x58194c,'times':_0x46f7e7};}function _0x36806e(_0x29f974){const _0xe4bca5=_0xe8bd4e;let _0x284b47,_0x1c873a,_0x322d2f,_0x50b427,_0x20e1b4;const _0x3400d7=[],_0x625b0c=[];if(get1(_0x29f974,_0xe4bca5(0x12b)))return _0x36806e(get1(_0x29f974,_0xe4bca5(0x12b)));if(get1(_0x29f974,_0xe4bca5(0x119)))return _0x36806e(get1(_0x29f974,'MultiTrack'));if(get1(_0x29f974,_0xe4bca5(0x13d)))return _0x36806e(get1(_0x29f974,_0xe4bca5(0x13d)));for(_0x322d2f=0x0;_0x322d2f<_0x334994[_0xe4bca5(0x13c)];_0x322d2f++){_0x1c873a=get(_0x29f974,_0x334994[_0x322d2f]);if(_0x1c873a)for(_0x50b427=0x0;_0x50b427<_0x1c873a[_0xe4bca5(0x13c)];_0x50b427++){_0x284b47=_0x1c873a[_0x50b427];if(_0x334994[_0x322d2f]==='Point')_0x3400d7[_0xe4bca5(0x136)]({'type':_0xe4bca5(0x122),'coordinates':coord1(nodeVal(get1(_0x284b47,_0xe4bca5(0x113))))});else{if(_0x334994[_0x322d2f]===_0xe4bca5(0x10f))_0x3400d7['push']({'type':'LineString','coordinates':coord(nodeVal(get1(_0x284b47,'coordinates')))});else{if(_0x334994[_0x322d2f]===_0xe4bca5(0x107)){const _0x443c2b=get(_0x284b47,_0xe4bca5(0x118)),_0x4419fe=[];for(_0x20e1b4=0x0;_0x20e1b4<_0x443c2b[_0xe4bca5(0x13c)];_0x20e1b4++){_0x4419fe[_0xe4bca5(0x136)](coord(nodeVal(get1(_0x443c2b[_0x20e1b4],_0xe4bca5(0x113)))));}_0x3400d7[_0xe4bca5(0x136)]({'type':'Polygon','coordinates':_0x4419fe});}else{if(_0x334994[_0x322d2f]===_0xe4bca5(0xf9)||_0x334994[_0x322d2f]===_0xe4bca5(0x10a)){const _0x3daf4b=_0x4b7ef9(_0x284b47);_0x3400d7[_0xe4bca5(0x136)]({'type':_0xe4bca5(0x10f),'coordinates':_0x3daf4b['coords']}),_0x3daf4b[_0xe4bca5(0x104)][_0xe4bca5(0x13c)]&&_0x625b0c[_0xe4bca5(0x136)](_0x3daf4b[_0xe4bca5(0x104)]);}}}}}}return{'geoms':_0x3400d7,'coordTimes':_0x625b0c};}function _0x347bbd(_0x5dab63){const _0x447439=_0xe8bd4e,_0x574859=_0x36806e(_0x5dab63);let _0x43d60f;const _0x1033b7={},_0x20d9de=nodeVal(get1(_0x5dab63,_0x447439(0x12d)));let _0x57250e=nodeVal(get1(_0x5dab63,_0x447439(0x12f)));const _0x36e71f=nodeVal(get1(_0x5dab63,_0x447439(0x121))),_0x4fc63f=get1(_0x5dab63,_0x447439(0x117)),_0x2cd6b2=get1(_0x5dab63,_0x447439(0xf7)),_0xa945d7=get1(_0x5dab63,_0x447439(0x102));let _0x1b8e99=get1(_0x5dab63,_0x447439(0x101)),_0x361407=get1(_0x5dab63,_0x447439(0x13b));const _0x4c06ac=get1(_0x5dab63,'visibility');if(!_0x574859[_0x447439(0x103)]['length'])return[];_0x20d9de&&(_0x1033b7[_0x447439(0x12d)]=_0x20d9de);if(_0x57250e){_0x57250e[0x0]!=='#'&&(_0x57250e='#'+_0x57250e);_0x1033b7['styleUrl']=_0x57250e;_0xb53316[_0x57250e]&&(_0x1033b7['styleHash']=_0xb53316[_0x57250e]);_0x17aed2[_0x57250e]&&(_0x1033b7[_0x447439(0x126)]=_0x17aed2[_0x57250e],_0x1033b7[_0x447439(0x125)]=_0xb53316[_0x17aed2[_0x57250e][_0x447439(0x128)]]);const _0x3a2551=_0x26b472[_0x1033b7[_0x447439(0x125)]];_0x3a2551&&(!_0x1b8e99&&(_0x1b8e99=get1(_0x3a2551,_0x447439(0x101))),!_0x361407&&(_0x361407=get1(_0x3a2551,_0x447439(0x13b))));}_0x36e71f&&(_0x1033b7[_0x447439(0x121)]=_0x36e71f);if(_0x4fc63f){const _0x12ab55=nodeVal(get1(_0x4fc63f,_0x447439(0x116))),_0x434d22=nodeVal(get1(_0x4fc63f,_0x447439(0x11c)));_0x1033b7[_0x447439(0x123)]={'begin':_0x12ab55,'end':_0x434d22};}_0x2cd6b2&&(_0x1033b7[_0x447439(0x115)]=nodeVal(get1(_0x2cd6b2,_0x447439(0x135))));if(_0x1b8e99){const _0x3b91d=_0x28d2d3(nodeVal(get1(_0x1b8e99,_0x447439(0x12e)))),_0x48ec5f=_0x3b91d[0x0],_0x466e51=_0x3b91d[0x1],_0x4f4829=parseFloat(nodeVal(get1(_0x1b8e99,_0x447439(0x112))));_0x48ec5f&&(_0x1033b7[_0x447439(0x133)]=_0x48ec5f),!isNaN(_0x466e51)&&(_0x1033b7[_0x447439(0x120)]=_0x466e51),!isNaN(_0x4f4829)&&(_0x1033b7[_0x447439(0x127)]=_0x4f4829);}if(_0x361407){const _0x14f12c=_0x28d2d3(nodeVal(get1(_0x361407,'color'))),_0x1eb38d=_0x14f12c[0x0],_0x3d80a7=_0x14f12c[0x1],_0x2eda10=nodeVal(get1(_0x361407,'fill')),_0x1ecd44=nodeVal(get1(_0x361407,_0x447439(0x111)));_0x1eb38d&&(_0x1033b7['fill']=_0x1eb38d),!isNaN(_0x3d80a7)&&(_0x1033b7[_0x447439(0x131)]=_0x3d80a7),_0x2eda10&&(_0x1033b7['fill-opacity']=_0x2eda10==='1'?_0x1033b7[_0x447439(0x131)]||0x1:0x0),_0x1ecd44&&(_0x1033b7[_0x447439(0x120)]=_0x1ecd44==='1'?_0x1033b7['stroke-opacity']||0x1:0x0);}if(_0xa945d7){const _0x442b7a=get(_0xa945d7,_0x447439(0x11f)),_0x1dfdd6=get(_0xa945d7,_0x447439(0x137));for(_0x43d60f=0x0;_0x43d60f<_0x442b7a[_0x447439(0x13c)];_0x43d60f++){const _0x4d6e57=_0x442b7a[_0x43d60f][_0x447439(0xfc)](_0x447439(0x12d));let _0x1fed4c=nodeVal(get1(_0x442b7a[_0x43d60f],'value'));try{_0x1fed4c=JSON[_0x447439(0x13a)](_0x1fed4c);}catch(_0xebe2b){}_0x1033b7[_0x4d6e57]=_0x1fed4c;}for(_0x43d60f=0x0;_0x43d60f<_0x1dfdd6[_0x447439(0x13c)];_0x43d60f++){const _0x36aa18=_0x1dfdd6[_0x43d60f]['getAttribute'](_0x447439(0x12d));let _0x5f5200=nodeVal(_0x1dfdd6[_0x43d60f]);try{_0x5f5200=JSON[_0x447439(0x13a)](_0x5f5200);}catch(_0x3827ce){}_0x1033b7[_0x36aa18]=_0x5f5200;}}_0x4c06ac&&(_0x1033b7[_0x447439(0x134)]=nodeVal(_0x4c06ac));_0x574859[_0x447439(0x12c)][_0x447439(0x13c)]&&(_0x1033b7['coordTimes']=_0x574859[_0x447439(0x12c)][_0x447439(0x13c)]===0x1?_0x574859['coordTimes'][0x0]:_0x574859[_0x447439(0x12c)]);const _0x4ce5a1={'type':_0x447439(0x10e),'geometry':_0x574859[_0x447439(0x103)][_0x447439(0x13c)]===0x1?_0x574859[_0x447439(0x103)][0x0]:{'type':'GeometryCollection','geometries':_0x574859[_0x447439(0x103)]},'properties':_0x1033b7};return attr(_0x5dab63,'id')&&(_0x4ce5a1['id']=attr(_0x5dab63,'id')),[_0x4ce5a1];}return _0xd2278b;}
|
package/entity/Feature.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x48f90f,_0x2bd226){var _0x444ecf=a9_0x275a,_0x527a3f=_0x48f90f();while(!![]){try{var _0x34e1be=-parseInt(_0x444ecf(0x100))/0x1*(-parseInt(_0x444ecf(0x101))/0x2)+-parseInt(_0x444ecf(0x105))/0x3+parseInt(_0x444ecf(0x103))/0x4*(parseInt(_0x444ecf(0xfd))/0x5)+-parseInt(_0x444ecf(0x104))/0x6*(parseInt(_0x444ecf(0x107))/0x7)+parseInt(_0x444ecf(0x106))/0x8*(-parseInt(_0x444ecf(0xff))/0x9)+-parseInt(_0x444ecf(0x102))/0xa+parseInt(_0x444ecf(0xfe))/0xb;if(_0x34e1be===_0x2bd226)break;else _0x527a3f['push'](_0x527a3f['shift']());}catch(_0x2f1b87){_0x527a3f['push'](_0x527a3f['shift']());}}}(a9_0x5b94,0x3f42c));import{Feature as a9_0x430287}from'ol';function a9_0x275a(_0x13572e,_0x592ccc){var _0x5b948e=a9_0x5b94();return a9_0x275a=function(_0x275ab8,_0x38998a){_0x275ab8=_0x275ab8-0xfd;var _0x103ce9=_0x5b948e[_0x275ab8];return _0x103ce9;},a9_0x275a(_0x13572e,_0x592ccc);}function a9_0x5b94(){var _0x1ba762=['6288GfHppj','186264crQsHU','1953104aGQOeH','1274PRoEBs','65ZgokfG','3613346PUUytG','18VMGAYM','7099LzlCHb','134arelcg','55200LfsuEB','62036xjOgjm'];a9_0x5b94=function(){return _0x1ba762;};return a9_0x5b94();}export default class Feature extends a9_0x430287{constructor(){super();}}
|
package/entity/GeometryType.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a10_0x1553(_0xac92db,_0x28480c){var _0x239a3b=a10_0x239a();return a10_0x1553=function(_0x15530b,_0xf5e539){_0x15530b=_0x15530b-0xe1;var _0x4805e8=_0x239a3b[_0x15530b];return _0x4805e8;},a10_0x1553(_0xac92db,_0x28480c);}var a10_0x154f52=a10_0x1553;(function(_0x55a9c5,_0xfb34f6){var _0x389cab=a10_0x1553,_0x19a07f=_0x55a9c5();while(!![]){try{var _0x23daca=-parseInt(_0x389cab(0xe7))/0x1+parseInt(_0x389cab(0xe4))/0x2+parseInt(_0x389cab(0xe2))/0x3+parseInt(_0x389cab(0xf2))/0x4+-parseInt(_0x389cab(0xf7))/0x5+-parseInt(_0x389cab(0xf1))/0x6+parseInt(_0x389cab(0xf4))/0x7*(parseInt(_0x389cab(0xf6))/0x8);if(_0x23daca===_0xfb34f6)break;else _0x19a07f['push'](_0x19a07f['shift']());}catch(_0x4ce56a){_0x19a07f['push'](_0x19a07f['shift']());}}}(a10_0x239a,0x791fa));class GeometryType{}function a10_0x239a(){var _0x5274a5=['arrow','1916028FKQhaQ','assembly_site','rectangle','107650YrCapm','AssemblySite','curve','ellipsoid','Circle','Ellipsoid','surface-closed','arrow_attack','Point','polygon','1054878oiVFkS','2772608sYLnCT','polyline','14GmMZLR','Curve','221264yaxipz','4858525cLegvU','ArrowAttack','Rectangle','circle','134424jUdajf'];a10_0x239a=function(){return _0x5274a5;};return a10_0x239a();}GeometryType[a10_0x154f52(0xef)]='point',GeometryType['PolyLine']=a10_0x154f52(0xf3),GeometryType['Polygon']=a10_0x154f52(0xf0),GeometryType[a10_0x154f52(0xf9)]=a10_0x154f52(0xe6),GeometryType[a10_0x154f52(0xeb)]=a10_0x154f52(0xe1),GeometryType[a10_0x154f52(0xf5)]=a10_0x154f52(0xe9),GeometryType['Ellipse']='ellipse',GeometryType[a10_0x154f52(0xec)]=a10_0x154f52(0xea),GeometryType['Arrow']=a10_0x154f52(0xe3),GeometryType[a10_0x154f52(0xf8)]=a10_0x154f52(0xee),GeometryType['ArrowPincerlike']='arrow_pincerlike',GeometryType[a10_0x154f52(0xe8)]=a10_0x154f52(0xe5),GeometryType['SurfaceClosed']=a10_0x154f52(0xed);export default GeometryType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x19f4dd=a27_0x591a;(function(_0x464a3a,_0x3b2660){const _0x5ee204=a27_0x591a,_0x1f1698=_0x464a3a();while(!![]){try{const _0x24d73f=-parseInt(_0x5ee204(0xc1))/0x1*(parseInt(_0x5ee204(0xb8))/0x2)+parseInt(_0x5ee204(0xd1))/0x3*(-parseInt(_0x5ee204(0xca))/0x4)+parseInt(_0x5ee204(0xbe))/0x5+parseInt(_0x5ee204(0xd2))/0x6+parseInt(_0x5ee204(0xb1))/0x7+parseInt(_0x5ee204(0xbb))/0x8+parseInt(_0x5ee204(0xb2))/0x9*(parseInt(_0x5ee204(0xd4))/0xa);if(_0x24d73f===_0x3b2660)break;else _0x1f1698['push'](_0x1f1698['shift']());}catch(_0x521fd8){_0x1f1698['push'](_0x1f1698['shift']());}}}(a27_0x5aa7,0xf30f1));function a27_0x591a(_0x21c40c,_0x29e097){const _0x5aa709=a27_0x5aa7();return a27_0x591a=function(_0x591ac9,_0x2b2459){_0x591ac9=_0x591ac9-0xaf;let _0x29f2da=_0x5aa709[_0x591ac9];return _0x29f2da;},a27_0x591a(_0x21c40c,_0x29e097);}function a27_0x5aa7(){const _0x62aac9=['removeLayer','geometryType','getVisible','length','flashFeatures','getLineTempLayer','1497036rSdGrC','704772LFxFJO','layerInfo','10MvEPFp','features','getFeatures','tempLayer','layerId','10857637VPlImT','532242KmSSYP','flash_layer','setVisible','getPointTempLayer','filter','forEach','3823948KIGuWH','map','isSelected','12764616bNmjtj','tag','getPolygonTempLayer','416435QefhaO','getTempSelectedFeatures','getSelectedFeatures','1httuIr','getSource','addLayer','getLayersById','removeFeature','push','addFeatures','kmlImport','readFeature','4VFbQNa'];a27_0x5aa7=function(){return _0x62aac9;};return a27_0x5aa7();}import a27_0x15611c from'ol/layer/Vector';import a27_0x3fb41b from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a27_0x80712b from'ol/format/GeoJSON';export default class FeatureManager{constructor(_0x7d5891){const _0x1827d2=a27_0x591a;this[_0x1827d2(0xb9)]=_0x7d5891;}[a27_0x19f4dd(0xc0)](_0x366151,_0x49b86d){const _0x2c776f=a27_0x19f4dd;if(_0x366151){const _0x595563=this[_0x2c776f(0xb9)][_0x2c776f(0xc4)](_0x366151);if(!_0x595563||!_0x595563[_0x2c776f(0xd3)])return;let _0x23ab68;switch(_0x595563[_0x2c776f(0xd3)][_0x2c776f(0xcc)]){case 0x1:_0x23ab68=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)][_0x2c776f(0xb5)](),_0x366151,_0x49b86d);break;case 0x2:_0x23ab68=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)]['getLineTempLayer'](),_0x366151,_0x49b86d);break;case 0x3:_0x23ab68=this[_0x2c776f(0xbf)](this['map']['getPolygonTempLayer'](),_0x366151,_0x49b86d);break;default:break;}return _0x23ab68;}else{const _0x11083f=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)][_0x2c776f(0xb5)](),_0x366151,_0x49b86d),_0x2be964=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)][_0x2c776f(0xd0)](),_0x366151,_0x49b86d),_0x384fab=this[_0x2c776f(0xbf)](this[_0x2c776f(0xb9)][_0x2c776f(0xbd)](),_0x366151,_0x49b86d);let _0x346b8a=[];return _0x11083f&&(_0x346b8a=[..._0x346b8a,..._0x11083f]),_0x2be964&&(_0x346b8a=[..._0x346b8a,..._0x2be964]),_0x384fab&&(_0x346b8a=[..._0x346b8a,..._0x384fab]),_0x346b8a;}}[a27_0x19f4dd(0xbf)](_0x2438f3,_0x386bb9,_0x23eb80){const _0x565c9c=a27_0x19f4dd;var _0x138f49;let _0x53098d=(_0x138f49=_0x2438f3[_0x565c9c(0xc2)]())===null||_0x138f49===void 0x0?void 0x0:_0x138f49[_0x565c9c(0xd6)]();if(!_0x53098d)return;_0x53098d[_0x565c9c(0xb7)]((_0x14190d,_0x163e8f,_0x406c75)=>{_0x14190d['tempLayer']=_0x2438f3;});_0x23eb80!=undefined&&(_0x53098d=_0x53098d[_0x565c9c(0xb6)](_0x1c3430=>_0x1c3430[_0x565c9c(0xba)]==_0x23eb80));if(_0x386bb9)return _0x53098d[_0x565c9c(0xb6)](_0x2626c0=>_0x2626c0[_0x565c9c(0xb0)]==_0x386bb9);return _0x53098d;}[a27_0x19f4dd(0xcf)](_0x5ecff2,_0x113c60=0x3){const _0x995ef2=a27_0x19f4dd;var _0xc5816;let _0x1b092c=new a27_0x15611c({'zIndex':0x270f,'source':new a27_0x3fb41b()});_0x1b092c['id']=_0x995ef2(0xb3),this[_0x995ef2(0xb9)][_0x995ef2(0xc3)](_0x1b092c,![]),(_0xc5816=_0x1b092c[_0x995ef2(0xc2)]())===null||_0xc5816===void 0x0?void 0x0:_0xc5816[_0x995ef2(0xc7)](_0x5ecff2);let _0x558273=0x0,_0x2227cb=setInterval(()=>{const _0xda51ba=_0x995ef2;if(_0x558273===_0x113c60){_0x2227cb&&clearInterval(_0x2227cb);const _0x531b15=this['map'][_0xda51ba(0xc4)](_0x1b092c['id']);_0x531b15&&this[_0xda51ba(0xb9)][_0xda51ba(0xcb)](_0x531b15);return;}if(_0x1b092c[_0xda51ba(0xcd)]())_0x1b092c['setVisible'](![]);else _0x1b092c[_0xda51ba(0xb4)](!![]);_0x558273++;},0x190);}async[a27_0x19f4dd(0xc8)](_0x10e0a9){const _0x126c4b=a27_0x19f4dd;let _0x168d78=await toGeoJSON(_0x10e0a9,null);if(!_0x168d78)return[];let _0xe33c5c=[];var _0x1f886b=new a27_0x80712b();return _0x168d78[_0x126c4b(0xd5)][_0x126c4b(0xb7)](_0x47aa1e=>{const _0x1d977a=_0x126c4b;_0xe33c5c[_0x1d977a(0xc6)](_0x1f886b[_0x1d977a(0xc9)](_0x47aa1e,null));}),_0xe33c5c;}['clearTempFeatures'](_0x28cbf9){const _0x2954f0=a27_0x19f4dd,_0x3985ed=this['getSelectedFeatures']();if(_0x3985ed&&_0x3985ed[_0x2954f0(0xce)]>0x0)for(const _0x5863c1 of _0x3985ed){if(_0x5863c1&&_0x5863c1[_0x2954f0(0xaf)]){const _0x5210e0=_0x5863c1[_0x2954f0(0xaf)][_0x2954f0(0xc2)]();_0x5210e0&&(_0x28cbf9!=undefined?_0x5863c1[_0x2954f0(0xbc)]==_0x28cbf9&&_0x5210e0['removeFeature'](_0x5863c1):_0x5210e0[_0x2954f0(0xc5)](_0x5863c1));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a28_0x1e35(){var _0x5a3e0f=['7359745hIxaqF','14220800VyDmLu','8692992FSMQFa','733660UsMyMc','4JohSSp','9jbMrGF','1688527xIMCrU','2736020KoUiiw','46308726ynzKYd'];a28_0x1e35=function(){return _0x5a3e0f;};return a28_0x1e35();}(function(_0x385a10,_0x94eab0){var _0x52430c=a28_0x3bcc,_0x556224=_0x385a10();while(!![]){try{var _0x3c5d01=-parseInt(_0x52430c(0x87))/0x1+-parseInt(_0x52430c(0x8d))/0x2*(parseInt(_0x52430c(0x8f))/0x3)+parseInt(_0x52430c(0x8e))/0x4*(-parseInt(_0x52430c(0x8a))/0x5)+parseInt(_0x52430c(0x8c))/0x6+parseInt(_0x52430c(0x88))/0x7+-parseInt(_0x52430c(0x8b))/0x8+parseInt(_0x52430c(0x89))/0x9;if(_0x3c5d01===_0x94eab0)break;else _0x556224['push'](_0x556224['shift']());}catch(_0x452dda){_0x556224['push'](_0x556224['shift']());}}}(a28_0x1e35,0xe716c));import a28_0x1cc33a from'./mapView/Map';function a28_0x3bcc(_0x5bdb9a,_0x256dcf){var _0x1e35f0=a28_0x1e35();return a28_0x3bcc=function(_0x3bcc94,_0x3e9f79){_0x3bcc94=_0x3bcc94-0x87;var _0x3ea7d2=_0x1e35f0[_0x3bcc94];return _0x3ea7d2;},a28_0x3bcc(_0x5bdb9a,_0x256dcf);}export{a28_0x1cc33a as Map2D};
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x574768=a29_0x51bd;(function(_0x632509,_0x39b0a6){const _0x1de31e=a29_0x51bd,_0x44f7a9=_0x632509();while(!![]){try{const _0x2fc1ef=parseInt(_0x1de31e(0x189))/0x1*(parseInt(_0x1de31e(0x1a1))/0x2)+-parseInt(_0x1de31e(0x166))/0x3+-parseInt(_0x1de31e(0x176))/0x4*(parseInt(_0x1de31e(0x194))/0x5)+-parseInt(_0x1de31e(0x16c))/0x6*(-parseInt(_0x1de31e(0x1aa))/0x7)+-parseInt(_0x1de31e(0x18a))/0x8*(parseInt(_0x1de31e(0x185))/0x9)+-parseInt(_0x1de31e(0x144))/0xa+parseInt(_0x1de31e(0x153))/0xb;if(_0x2fc1ef===_0x39b0a6)break;else _0x44f7a9['push'](_0x44f7a9['shift']());}catch(_0x185faa){_0x44f7a9['push'](_0x44f7a9['shift']());}}}(a29_0x5275,0xe50ae));import a29_0x23ea7e from'ol/events/Event';import a29_0x4ced0c from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';function a29_0x51bd(_0x28b9dc,_0x4d5b87){const _0x527509=a29_0x5275();return a29_0x51bd=function(_0x51bd38,_0x2e87e4){_0x51bd38=_0x51bd38-0x142;let _0x64186b=_0x527509[_0x51bd38];return _0x64186b;},a29_0x51bd(_0x28b9dc,_0x4d5b87);}import a29_0x1ab892 from'ol/Feature';function a29_0x5275(){const _0x1929eb=['getOverlay','stopDown','setMap','Rectangle','atFinish_','rectangle','rgba(255,\x20255,\x20255,\x201)','getPixelFromCoordinate','单击增加点,右击删除点双击完成绘制','startDrawing_','createMultiPointFeature','drawend','4436OmIEXJ','length','_fixPoint','fixPoint','_features','_isStayDraw','slice','coordinates','_tipStyle','1120133DrxttD','showTip','MAX_VALUE','getType','4910080KXCmjh','_minPoints','Ellipse','minPoint','_source','DRAWABORT','dispatchEvent','ACTIVE','setGeometry','getProjection','DRAWADDPOINT','getView','getText','_drawingCoordinates','_overlay','31264893RlPkna','_style','originalEvent','push','pop','tipText','单击结束绘制,右击删除点','button','handleUpEvent','buildDrawingFeature','projection','abortDrawing','type','DRAWEND','_snapTolerance','_tipOverlay','_sketchFeature','getCode','getActive','3854307gWSGyP','handleDownEvent','abortDrawing_','pointermove','clear','_tipFeature','6EAGuBS','onInternal','单击开始绘制','wrapX','rgba(0,\x200,\x200,\x200.4)','unInternal','handleMoveEvent','Circle','getSource','snapTolerance','1204448tQwxYS','coordinate','updateState_','Ellipsoid','addFeature','finishDrawing','features','drawmoving','addChangeListener','_showTip','once','setStyle','updateTip_','12px\x20Calibre,sans-serif','point','3557457spHxgf','DRAWSTART','preventDefault','source','727EbkaFA','8MmIRvj','getMap','feature','单击拖动绘制','updateSketchFeatures_','indexOf','left','getGeometry','drawaddpoint','_type','25BnRoVl'];a29_0x5275=function(){return _0x1929eb;};return a29_0x5275();}import a29_0x575a73,{createEditingStyle}from'ol/style/Style';import a29_0x4f0e7b from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a29_0xb5ddde from'ol/style/Text';import a29_0x4decf0 from'ol/style/Fill';import a29_0x133a57 from'ol/interaction/Property';import a29_0x5dcf36 from'ol/layer/Vector';import a29_0x33b2ce from'../entity/GeometryType';const DrawEventType={'DRAWSTART':'drawstart','DRAWEND':a29_0x574768(0x1a0),'DRAWABORT':'drawabort','DRAWADDPOINT':a29_0x574768(0x192),'DRAWMOVING':a29_0x574768(0x17d)};export class DrawEvent extends a29_0x23ea7e{constructor(_0x1cd4a0,_0x85c61c,_0x4a2f7b){const _0x5d0e76=a29_0x574768;super(_0x1cd4a0),this[_0x5d0e76(0x18c)]=_0x85c61c,this[_0x5d0e76(0x1a8)]=_0x4a2f7b;}}export class ShEvent extends a29_0x23ea7e{constructor(_0x909318,_0x251698,_0x5a8f0e,_0x1619c9,_0x3ee2c2){const _0x2017f9=a29_0x574768;super(_0x909318),this[_0x2017f9(0x15d)]=_0x3ee2c2,this[_0x2017f9(0x15f)]=_0x251698,this[_0x2017f9(0x177)]=_0x5a8f0e,this[_0x2017f9(0x1a8)]=_0x1619c9;}}export default class Draw extends a29_0x4ced0c{constructor(_0x3c8291,_0x5bbe3d){const _0x2303d2=a29_0x574768,_0x132d23=_0x5bbe3d?_0x5bbe3d:{};!_0x132d23[_0x2303d2(0x196)]&&(_0x132d23['stopDown']=![]);super(_0x5bbe3d),this['on']=this[_0x2303d2(0x16d)],this[_0x2303d2(0x180)]=this['onceInternal'],this['un']=this[_0x2303d2(0x171)],this['_isStayDraw']=![],this[_0x2303d2(0x193)]=_0x3c8291,this[_0x2303d2(0x154)]=_0x5bbe3d===null||_0x5bbe3d===void 0x0?void 0x0:_0x5bbe3d['style'],this[_0x2303d2(0x148)]=_0x5bbe3d===null||_0x5bbe3d===void 0x0?void 0x0:_0x5bbe3d[_0x2303d2(0x188)],this[_0x2303d2(0x1a5)]=_0x5bbe3d===null||_0x5bbe3d===void 0x0?void 0x0:_0x5bbe3d[_0x2303d2(0x17c)];const _0x62ead0=getPlotCount(this['_type']);this[_0x2303d2(0x145)]=_0x62ead0[_0x2303d2(0x147)],this[_0x2303d2(0x1a3)]=_0x62ead0[_0x2303d2(0x1a4)],this[_0x2303d2(0x158)]=_0x5bbe3d===null||_0x5bbe3d===void 0x0?void 0x0:_0x5bbe3d[_0x2303d2(0x158)],this['_showTip']=(_0x5bbe3d===null||_0x5bbe3d===void 0x0?void 0x0:_0x5bbe3d[_0x2303d2(0x1ab)])==![]?![]:!![],this[_0x2303d2(0x161)]=_0x132d23['snapTolerance']?_0x132d23[_0x2303d2(0x175)]:0x6,this[_0x2303d2(0x16b)]=new a29_0x1ab892(),this[_0x2303d2(0x1a9)]=new a29_0x575a73({'text':new a29_0xb5ddde({'font':_0x2303d2(0x183),'fill':new a29_0x4decf0({'color':_0x2303d2(0x19b)}),'backgroundFill':new a29_0x4decf0({'color':_0x2303d2(0x170)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x2303d2(0x190),'offsetX':0xf})}),this[_0x2303d2(0x151)]=[],this['_tipOverlay']=new a29_0x5dcf36({'source':new a29_0x4f0e7b({'useSpatialIndex':![],'wrapX':(_0x5bbe3d===null||_0x5bbe3d===void 0x0?void 0x0:_0x5bbe3d['wrapX'])?_0x5bbe3d[_0x2303d2(0x16f)]:![]})}),this['_overlay']=new a29_0x5dcf36({'source':new a29_0x4f0e7b({'useSpatialIndex':![],'wrapX':(_0x5bbe3d===null||_0x5bbe3d===void 0x0?void 0x0:_0x5bbe3d['wrapX'])?_0x5bbe3d[_0x2303d2(0x16f)]:![]}),'updateWhileInteracting':!![]}),this[_0x2303d2(0x17e)](a29_0x133a57[_0x2303d2(0x14b)],this[_0x2303d2(0x178)]);}['updateState_'](){const _0x41e940=a29_0x574768,_0x2b0560=this['getMap'](),_0x5a0bd6=this[_0x41e940(0x165)]();(!_0x2b0560||!_0x5a0bd6)&&this[_0x41e940(0x15e)](),this[_0x41e940(0x152)][_0x41e940(0x197)](_0x5a0bd6?_0x2b0560:null),this['_tipOverlay'][_0x41e940(0x197)](_0x5a0bd6?_0x2b0560:null);}[a29_0x574768(0x197)](_0x7343c7){const _0x23a983=a29_0x574768;super[_0x23a983(0x197)](_0x7343c7),this[_0x23a983(0x178)]();}[a29_0x574768(0x181)](_0x420cd5){const _0x5dd460=a29_0x574768;this[_0x5dd460(0x154)]=_0x420cd5?_0x420cd5:{};}[a29_0x574768(0x195)](){const _0x2fa3cf=a29_0x574768;return this[_0x2fa3cf(0x152)];}[a29_0x574768(0x167)](_0x33dfe7){const _0x33cbd4=a29_0x574768;if(_0x33dfe7[_0x33cbd4(0x155)][_0x33cbd4(0x15a)]===0x2)return _0x33dfe7[_0x33cbd4(0x155)][_0x33cbd4(0x187)](),this['revert'](),this[_0x33cbd4(0x172)](_0x33dfe7),![];return!![];}[a29_0x574768(0x15b)](_0x487cb3){const _0x1166bb=a29_0x574768;var _0x184420,_0x3a0f18;if(this[_0x1166bb(0x193)]==_0x1166bb(0x19a)&&this['_drawingCoordinates'][_0x1166bb(0x1a2)]<0x1)return this['dispatchEvent'](new DrawEvent(DrawEventType[_0x1166bb(0x160)],undefined,[_0x487cb3[_0x1166bb(0x177)]])),![];if(!this[_0x1166bb(0x1a6)])this[_0x1166bb(0x19e)](_0x487cb3[_0x1166bb(0x177)]),this[_0x1166bb(0x14a)](new ShEvent(DrawEventType[_0x1166bb(0x14e)],this[_0x1166bb(0x193)],_0x487cb3[_0x1166bb(0x177)],this['_drawingCoordinates'],(_0x184420=this[_0x1166bb(0x18b)]())===null||_0x184420===void 0x0?void 0x0:_0x184420[_0x1166bb(0x14f)]()[_0x1166bb(0x14d)]()[_0x1166bb(0x164)]())),this['_type']==_0x1166bb(0x184)&&this[_0x1166bb(0x17b)]();else{if(this['_drawingCoordinates']&&this['_drawingCoordinates']['length']>0x0){if(this['atFinish_'](_0x487cb3['pixel']))return this[_0x1166bb(0x17b)](),_0x487cb3[_0x1166bb(0x187)](),![];let _0x3c2fef=this[_0x1166bb(0x151)]['length']+0x1;_0x3c2fef<=this[_0x1166bb(0x1a3)]&&this['addPoint'](_0x487cb3['coordinate']),this['dispatchEvent'](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x1166bb(0x193)],_0x487cb3[_0x1166bb(0x177)],this[_0x1166bb(0x151)],(_0x3a0f18=this[_0x1166bb(0x18b)]())===null||_0x3a0f18===void 0x0?void 0x0:_0x3a0f18['getView']()[_0x1166bb(0x14d)]()['getCode']())),_0x3c2fef>=this[_0x1166bb(0x145)]&&this[_0x1166bb(0x15c)](this[_0x1166bb(0x151)]),_0x3c2fef===this[_0x1166bb(0x1a3)]&&this[_0x1166bb(0x17b)]();}}return _0x487cb3[_0x1166bb(0x187)](),![];}['handleDragEvent'](_0x485c2e){const _0x4aca52=a29_0x574768;var _0x501d83;if(this[_0x4aca52(0x193)]==_0x4aca52(0x19a)&&_0x485c2e['originalEvent'][_0x4aca52(0x15f)]=='pointermove'){if(!this[_0x4aca52(0x1a6)]){this[_0x4aca52(0x19e)](_0x485c2e['coordinate']),this['dispatchEvent'](new ShEvent(DrawEventType[_0x4aca52(0x14e)],this[_0x4aca52(0x193)],_0x485c2e[_0x4aca52(0x177)],this[_0x4aca52(0x151)],(_0x501d83=this[_0x4aca52(0x18b)]())===null||_0x501d83===void 0x0?void 0x0:_0x501d83[_0x4aca52(0x14f)]()['getProjection']()[_0x4aca52(0x164)]()));return;}let _0x13d35f=[...this[_0x4aca52(0x151)],_0x485c2e[_0x4aca52(0x177)]];this[_0x4aca52(0x15c)](_0x13d35f),this[_0x4aca52(0x14a)](new DrawEvent(DrawEventType['DRAWMOVING'],this['_sketchFeature'],this[_0x4aca52(0x151)]));}}[a29_0x574768(0x172)](_0x266b9f){const _0x4bf2cc=a29_0x574768;var _0x525c20,_0x4b04ca,_0x131bce;let _0x44e20d='';this[_0x4bf2cc(0x193)]==_0x4bf2cc(0x169)&&(this[_0x4bf2cc(0x19e)](_0x266b9f[_0x4bf2cc(0x177)]),this[_0x4bf2cc(0x14a)](new ShEvent(DrawEventType[_0x4bf2cc(0x14e)],this['_type'],_0x266b9f['coordinate'],this[_0x4bf2cc(0x151)],(_0x525c20=this[_0x4bf2cc(0x18b)]())===null||_0x525c20===void 0x0?void 0x0:_0x525c20[_0x4bf2cc(0x14f)]()[_0x4bf2cc(0x14d)]()['getCode']())),this['finishDrawing']());!this[_0x4bf2cc(0x1a6)]?_0x44e20d=this['_type']==_0x4bf2cc(0x19a)?_0x4bf2cc(0x18d):_0x4bf2cc(0x16e):(_0x44e20d='单击增加点,右击删除点',((_0x4b04ca=this[_0x4bf2cc(0x151)])===null||_0x4b04ca===void 0x0?void 0x0:_0x4b04ca[_0x4bf2cc(0x1a2)])===this[_0x4bf2cc(0x1a3)]-0x1&&(_0x44e20d=_0x4bf2cc(0x159)),((_0x131bce=this[_0x4bf2cc(0x151)])===null||_0x131bce===void 0x0?void 0x0:_0x131bce['length'])>=this[_0x4bf2cc(0x145)]&&this[_0x4bf2cc(0x1a3)]===Number[_0x4bf2cc(0x142)]&&(_0x44e20d=_0x4bf2cc(0x19d)));this['tipText']!=undefined&&(_0x44e20d=this[_0x4bf2cc(0x158)]);this['updateTip_'](_0x266b9f[_0x4bf2cc(0x177)],_0x44e20d);if(this[_0x4bf2cc(0x1a6)]&&this[_0x4bf2cc(0x193)]!=_0x4bf2cc(0x19a)){let _0x59cff1=[...this[_0x4bf2cc(0x151)],_0x266b9f[_0x4bf2cc(0x177)]];this['buildDrawingFeature'](_0x59cff1),this[_0x4bf2cc(0x14a)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x4bf2cc(0x163)],this['_drawingCoordinates']));}}[a29_0x574768(0x199)](_0x1af61a){const _0xeecf22=a29_0x574768;var _0x507442;let _0x3ef6dc=![],_0xa41e68=this[_0xeecf22(0x151)][_0xeecf22(0x1a2)];if(_0xa41e68>this['_minPoints']&&this[_0xeecf22(0x1a3)]===Number[_0xeecf22(0x142)]){const _0x2b9159=this[_0xeecf22(0x151)][this['_drawingCoordinates'][_0xeecf22(0x1a2)]-0x1],_0x168038=(_0x507442=this[_0xeecf22(0x18b)]())===null||_0x507442===void 0x0?void 0x0:_0x507442[_0xeecf22(0x19c)](_0x2b9159),_0x316b19=_0x1af61a[0x0]-(_0x168038?_0x168038[0x0]:0x0),_0x186582=_0x1af61a[0x1]-(_0x168038?_0x168038[0x1]:0x0);_0x3ef6dc=Math['sqrt'](_0x316b19*_0x316b19+_0x186582*_0x186582)<=this[_0xeecf22(0x161)];}return _0x3ef6dc;}[a29_0x574768(0x19e)](_0x3d92a0){const _0x3a430c=a29_0x574768;this[_0x3a430c(0x1a6)]=!![],this[_0x3a430c(0x151)]=[_0x3d92a0[_0x3a430c(0x1a7)]()],this[_0x3a430c(0x163)]=this['createMultiPointFeature'](),this[_0x3a430c(0x18e)](),this[_0x3a430c(0x14a)](new DrawEvent(DrawEventType[_0x3a430c(0x186)],this[_0x3a430c(0x163)],this[_0x3a430c(0x151)]));}[a29_0x574768(0x17b)](){const _0x308edf=a29_0x574768;if(this['_drawingCoordinates'][_0x308edf(0x1a2)]>this[_0x308edf(0x145)]){this[_0x308edf(0x15c)](this[_0x308edf(0x151)]);let _0x12fcfd=this[_0x308edf(0x151)];const _0x26d67b=this[_0x308edf(0x168)]();if(!_0x26d67b)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x308edf(0x160)],_0x26d67b,_0x12fcfd)),this[_0x308edf(0x1a5)]&&this['_features'][_0x308edf(0x156)](_0x26d67b),this[_0x308edf(0x148)]&&this[_0x308edf(0x148)][_0x308edf(0x17a)](_0x26d67b);}}['addPoint'](_0x246523){const _0x5326b8=a29_0x574768;this[_0x5326b8(0x151)][_0x5326b8(0x156)](_0x246523),this[_0x5326b8(0x163)]=this['createMultiPointFeature'](),this['updateSketchFeatures_']();}[a29_0x574768(0x19f)](){const _0x18f308=a29_0x574768,_0x5c397d=new MultiPoint(this[_0x18f308(0x151)]);let _0x594339=new a29_0x1ab892();return _0x594339[_0x18f308(0x14c)](_0x5c397d),_0x594339;}[a29_0x574768(0x168)](){const _0x4a87ff=a29_0x574768;var _0x3dc145,_0x372ec9;this[_0x4a87ff(0x1a6)]=![];const _0x21205a=this['_sketchFeature'];return this[_0x4a87ff(0x163)]=undefined,this['_drawingCoordinates']=[],(_0x3dc145=this['_overlay']['getSource']())===null||_0x3dc145===void 0x0?void 0x0:_0x3dc145[_0x4a87ff(0x16a)](!![]),(_0x372ec9=this[_0x4a87ff(0x162)]['getSource']())===null||_0x372ec9===void 0x0?void 0x0:_0x372ec9[_0x4a87ff(0x16a)](!![]),_0x21205a;}[a29_0x574768(0x15e)](){const _0x5c72df=a29_0x574768,_0x1befcf=this[_0x5c72df(0x168)]();_0x1befcf&&this[_0x5c72df(0x14a)](new DrawEvent(DrawEventType[_0x5c72df(0x149)],_0x1befcf,this[_0x5c72df(0x151)]));}[a29_0x574768(0x15c)](_0x2209a2){const _0x44018c=a29_0x574768;this['_sketchFeature']=new a29_0x1ab892();let _0x327010=createPlot(this[_0x44018c(0x193)],_0x2209a2);if(!_0x327010)return;this[_0x44018c(0x163)][_0x44018c(0x14c)](_0x327010);let _0x12398f=[a29_0x33b2ce[_0x44018c(0x173)],a29_0x33b2ce[_0x44018c(0x179)],a29_0x33b2ce[_0x44018c(0x146)]];if(_0x12398f[_0x44018c(0x18f)](this[_0x44018c(0x193)])>-0x1&&this[_0x44018c(0x154)]){}const _0x5d979a=this[_0x44018c(0x18b)]();this['_sketchFeature'][_0x44018c(0x181)](getStyle(this[_0x44018c(0x193)],this['_style'],this['getMap']())),this['updateSketchFeatures_']();}[a29_0x574768(0x18e)](){const _0x267a1b=a29_0x574768,_0x142b68=this[_0x267a1b(0x152)][_0x267a1b(0x174)]();_0x142b68&&this[_0x267a1b(0x163)]&&(_0x142b68['clear'](!![]),_0x142b68[_0x267a1b(0x17a)](this[_0x267a1b(0x163)]));}['revert'](){const _0x34c199=a29_0x574768;if(this[_0x34c199(0x1a6)]){if(this[_0x34c199(0x151)]&&this[_0x34c199(0x151)][_0x34c199(0x1a2)]>0x0){const _0x589ae3=this['_overlay'][_0x34c199(0x174)]();_0x589ae3===null||_0x589ae3===void 0x0?void 0x0:_0x589ae3[_0x34c199(0x16a)](!![]),this['_drawingCoordinates'][_0x34c199(0x157)](),this[_0x34c199(0x151)][_0x34c199(0x1a2)]>=this[_0x34c199(0x145)]&&this[_0x34c199(0x15c)](this[_0x34c199(0x151)]),this[_0x34c199(0x151)]['length']===0x0&&(this[_0x34c199(0x1a6)]=![]);}}}[a29_0x574768(0x182)](_0x5b3a45,_0x360c2a){const _0x5efe4f=a29_0x574768;var _0x129fc0,_0x8d06f6,_0x133d32,_0x3d4e80;if(!this[_0x5efe4f(0x17f)])return;const _0x2265d6=this['_tipOverlay'][_0x5efe4f(0x174)]();_0x2265d6===null||_0x2265d6===void 0x0?void 0x0:_0x2265d6[_0x5efe4f(0x16a)](!![]),(_0x129fc0=this['_tipFeature'])===null||_0x129fc0===void 0x0?void 0x0:_0x129fc0[_0x5efe4f(0x14c)](new Point(_0x5b3a45)),(_0x133d32=(_0x8d06f6=this['_tipStyle'])===null||_0x8d06f6===void 0x0?void 0x0:_0x8d06f6[_0x5efe4f(0x150)]())===null||_0x133d32===void 0x0?void 0x0:_0x133d32['setText'](_0x360c2a),(_0x3d4e80=this[_0x5efe4f(0x16b)])===null||_0x3d4e80===void 0x0?void 0x0:_0x3d4e80[_0x5efe4f(0x181)](this[_0x5efe4f(0x1a9)]),this['_tipFeature']&&(_0x2265d6===null||_0x2265d6===void 0x0?void 0x0:_0x2265d6[_0x5efe4f(0x17a)](this[_0x5efe4f(0x16b)]));}}function getDefaultStyleFunction(){const _0xf01e08=createEditingStyle();return function(_0x19f3fc,_0x373fa5){const _0x4bdd12=a29_0x51bd,_0x4ca75e=_0xf01e08[_0x19f3fc[_0x4bdd12(0x191)]()[_0x4bdd12(0x143)]()];if(_0x4ca75e&&_0x4bdd12(0x198)==_0x19f3fc['getGeometry']()[_0x4bdd12(0x143)]()){}};}
|
|
1
|
+
const a29_0x585764=a29_0x51dc;(function(_0x5d4d66,_0x5b9387){const _0x483c68=a29_0x51dc,_0x320d91=_0x5d4d66();while(!![]){try{const _0x5741c4=parseInt(_0x483c68(0xed))/0x1*(parseInt(_0x483c68(0x10d))/0x2)+parseInt(_0x483c68(0x10b))/0x3+-parseInt(_0x483c68(0x130))/0x4*(-parseInt(_0x483c68(0x13f))/0x5)+-parseInt(_0x483c68(0x10c))/0x6+parseInt(_0x483c68(0x13e))/0x7+-parseInt(_0x483c68(0x147))/0x8+-parseInt(_0x483c68(0x125))/0x9*(parseInt(_0x483c68(0x10e))/0xa);if(_0x5741c4===_0x5b9387)break;else _0x320d91['push'](_0x320d91['shift']());}catch(_0x2dcb54){_0x320d91['push'](_0x320d91['shift']());}}}(a29_0x2d94,0x662fd));import a29_0x304053 from'ol/events/Event';import a29_0x4003b6 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';function a29_0x51dc(_0x16e374,_0x5e8a41){const _0x2d94af=a29_0x2d94();return a29_0x51dc=function(_0x51dcec,_0xa3db41){_0x51dcec=_0x51dcec-0xe5;let _0x5ab68b=_0x2d94af[_0x51dcec];return _0x5ab68b;},a29_0x51dc(_0x16e374,_0x5e8a41);}import a29_0x1402e6 from'ol/Feature';import a29_0x4b9e94,{createEditingStyle}from'ol/style/Style';import a29_0x29aced from'ol/source/Vector';function a29_0x2d94(){const _0x45884a=['单击结束绘制,右击删除点','_tipFeature','getPixelFromCoordinate','updateState_','wrapX','coordinates','getActive','DRAWABORT','indexOf','abortDrawing','rgba(255,\x20255,\x20255,\x201)','style','DRAWADDPOINT','setStyle','updateSketchFeatures_','单击拖动绘制','buildDrawingFeature','showTip','updateTip_','clear','单击增加点,右击删除点','getSource','_type','slice','revert','DRAWSTART','startDrawing_','_isStayDraw','pixel','773838ZKiioy','467424MFUNyD','277142VnKdZb','55950hnmqGy','drawstart','projection','Circle','abortDrawing_','_source','tipText','getGeometry','_sketchFeature','type','push','pointermove','handleDragEvent','_fixPoint','getOverlay','Ellipsoid','minPoint','onceInternal','dispatchEvent','atFinish_','handleMoveEvent','_showTip','Rectangle','999aGwMsv','_tipOverlay','handleUpEvent','length','button','stopDown','left','finishDrawing','MAX_VALUE','_drawingCoordinates','getType','237896uzQjbB','DRAWMOVING','unInternal','addChangeListener','sqrt','getCode','point','source','DRAWEND','setMap','getMap','addPoint','preventDefault','drawabort','4771543hRzjxV','20uEZXoZ','_minPoints','_snapTolerance','_style','getView','rectangle','drawaddpoint','_tipStyle','1588448RDLSte','setText','getProjection','createMultiPointFeature','once','setGeometry','coordinate','onInternal','单击开始绘制','单击增加点,右击删除点双击完成绘制','pop','_features','addFeature','originalEvent','1BalFBA'];a29_0x2d94=function(){return _0x45884a;};return a29_0x2d94();}import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a29_0x330f95 from'ol/style/Text';import a29_0x59ced4 from'ol/style/Fill';import a29_0x17d900 from'ol/interaction/Property';import a29_0x45d6eb from'ol/layer/Vector';import a29_0x35e67d from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a29_0x585764(0x10f),'DRAWEND':'drawend','DRAWABORT':a29_0x585764(0x13d),'DRAWADDPOINT':a29_0x585764(0x145),'DRAWMOVING':'drawmoving'};export class DrawEvent extends a29_0x304053{constructor(_0x511cb1,_0x403d57,_0x2465fc){super(_0x511cb1),this['feature']=_0x403d57,this['coordinates']=_0x2465fc;}}export class ShEvent extends a29_0x304053{constructor(_0x2646bc,_0x3913a1,_0x14a4b5,_0x510e96,_0x4936d0){const _0x36c418=a29_0x585764;super(_0x2646bc),this[_0x36c418(0x110)]=_0x4936d0,this[_0x36c418(0x117)]=_0x3913a1,this[_0x36c418(0xe5)]=_0x14a4b5,this[_0x36c418(0xf3)]=_0x510e96;}}export default class Draw extends a29_0x4003b6{constructor(_0xb6d1c0,_0x46540e){const _0x29ff7d=a29_0x585764,_0x2574fb=_0x46540e?_0x46540e:{};!_0x2574fb[_0x29ff7d(0x12a)]&&(_0x2574fb[_0x29ff7d(0x12a)]=![]);super(_0x46540e),this['on']=this[_0x29ff7d(0xe6)],this[_0x29ff7d(0x14b)]=this[_0x29ff7d(0x11f)],this['un']=this[_0x29ff7d(0x132)],this[_0x29ff7d(0x109)]=![],this[_0x29ff7d(0x104)]=_0xb6d1c0,this['_style']=_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0xf9)],this[_0x29ff7d(0x113)]=_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0x137)],this[_0x29ff7d(0xea)]=_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e['features'];const _0x1cfda3=getPlotCount(this['_type']);this['_minPoints']=_0x1cfda3[_0x29ff7d(0x11e)],this[_0x29ff7d(0x11b)]=_0x1cfda3['fixPoint'],this[_0x29ff7d(0x114)]=_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0x114)],this[_0x29ff7d(0x123)]=(_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0xff)])==![]?![]:!![],this[_0x29ff7d(0x141)]=_0x2574fb['snapTolerance']?_0x2574fb['snapTolerance']:0x6,this[_0x29ff7d(0xef)]=new a29_0x1402e6(),this[_0x29ff7d(0x146)]=new a29_0x4b9e94({'text':new a29_0x330f95({'font':'12px\x20Calibre,sans-serif','fill':new a29_0x59ced4({'color':_0x29ff7d(0xf8)}),'backgroundFill':new a29_0x59ced4({'color':'rgba(0,\x200,\x200,\x200.4)'}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x29ff7d(0x12b),'offsetX':0xf})}),this['_drawingCoordinates']=[],this['_tipOverlay']=new a29_0x45d6eb({'source':new a29_0x29aced({'useSpatialIndex':![],'wrapX':(_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0xf2)])?_0x46540e[_0x29ff7d(0xf2)]:![]})}),this['_overlay']=new a29_0x45d6eb({'source':new a29_0x29aced({'useSpatialIndex':![],'wrapX':(_0x46540e===null||_0x46540e===void 0x0?void 0x0:_0x46540e[_0x29ff7d(0xf2)])?_0x46540e[_0x29ff7d(0xf2)]:![]}),'updateWhileInteracting':!![]}),this[_0x29ff7d(0x133)](a29_0x17d900['ACTIVE'],this[_0x29ff7d(0xf1)]);}[a29_0x585764(0xf1)](){const _0x51281e=a29_0x585764,_0xdaf1a5=this[_0x51281e(0x13a)](),_0x293620=this[_0x51281e(0xf4)]();(!_0xdaf1a5||!_0x293620)&&this[_0x51281e(0xf7)](),this['_overlay']['setMap'](_0x293620?_0xdaf1a5:null),this[_0x51281e(0x126)][_0x51281e(0x139)](_0x293620?_0xdaf1a5:null);}[a29_0x585764(0x139)](_0x3e99e6){const _0x28034e=a29_0x585764;super[_0x28034e(0x139)](_0x3e99e6),this['updateState_']();}[a29_0x585764(0xfb)](_0x4a68da){this['_style']=_0x4a68da?_0x4a68da:{};}[a29_0x585764(0x11c)](){return this['_overlay'];}['handleDownEvent'](_0x4a02c3){const _0x3704d2=a29_0x585764;if(_0x4a02c3[_0x3704d2(0xec)][_0x3704d2(0x129)]===0x2)return _0x4a02c3[_0x3704d2(0xec)][_0x3704d2(0x13c)](),this['revert'](),this[_0x3704d2(0x122)](_0x4a02c3),![];return!![];}[a29_0x585764(0x127)](_0x3b0b10){const _0x2ae6ff=a29_0x585764;var _0x13ff6c,_0x23b1d0;if(this[_0x2ae6ff(0x104)]==_0x2ae6ff(0x144)&&this[_0x2ae6ff(0x12e)]['length']<0x1)return this[_0x2ae6ff(0x120)](new DrawEvent(DrawEventType[_0x2ae6ff(0x138)],undefined,[_0x3b0b10[_0x2ae6ff(0xe5)]])),![];if(!this[_0x2ae6ff(0x109)])this['startDrawing_'](_0x3b0b10[_0x2ae6ff(0xe5)]),this[_0x2ae6ff(0x120)](new ShEvent(DrawEventType['DRAWADDPOINT'],this['_type'],_0x3b0b10['coordinate'],this[_0x2ae6ff(0x12e)],(_0x13ff6c=this[_0x2ae6ff(0x13a)]())===null||_0x13ff6c===void 0x0?void 0x0:_0x13ff6c[_0x2ae6ff(0x143)]()[_0x2ae6ff(0x149)]()[_0x2ae6ff(0x135)]())),this[_0x2ae6ff(0x104)]==_0x2ae6ff(0x136)&&this[_0x2ae6ff(0x12c)]();else{if(this[_0x2ae6ff(0x12e)]&&this[_0x2ae6ff(0x12e)][_0x2ae6ff(0x128)]>0x0){if(this[_0x2ae6ff(0x121)](_0x3b0b10[_0x2ae6ff(0x10a)]))return this[_0x2ae6ff(0x12c)](),_0x3b0b10[_0x2ae6ff(0x13c)](),![];let _0x35b171=this['_drawingCoordinates'][_0x2ae6ff(0x128)]+0x1;_0x35b171<=this[_0x2ae6ff(0x11b)]&&this[_0x2ae6ff(0x13b)](_0x3b0b10[_0x2ae6ff(0xe5)]),this[_0x2ae6ff(0x120)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x2ae6ff(0x104)],_0x3b0b10[_0x2ae6ff(0xe5)],this[_0x2ae6ff(0x12e)],(_0x23b1d0=this['getMap']())===null||_0x23b1d0===void 0x0?void 0x0:_0x23b1d0[_0x2ae6ff(0x143)]()[_0x2ae6ff(0x149)]()['getCode']())),_0x35b171>=this[_0x2ae6ff(0x140)]&&this[_0x2ae6ff(0xfe)](this[_0x2ae6ff(0x12e)]),_0x35b171===this[_0x2ae6ff(0x11b)]&&this['finishDrawing']();}}return _0x3b0b10[_0x2ae6ff(0x13c)](),![];}[a29_0x585764(0x11a)](_0xd77c12){const _0x3eefd4=a29_0x585764;var _0x1a7032;if(this[_0x3eefd4(0x104)]==_0x3eefd4(0x144)&&_0xd77c12['originalEvent'][_0x3eefd4(0x117)]==_0x3eefd4(0x119)){if(!this[_0x3eefd4(0x109)]){this[_0x3eefd4(0x108)](_0xd77c12['coordinate']),this[_0x3eefd4(0x120)](new ShEvent(DrawEventType[_0x3eefd4(0xfa)],this['_type'],_0xd77c12[_0x3eefd4(0xe5)],this['_drawingCoordinates'],(_0x1a7032=this[_0x3eefd4(0x13a)]())===null||_0x1a7032===void 0x0?void 0x0:_0x1a7032['getView']()['getProjection']()[_0x3eefd4(0x135)]()));return;}let _0x2819c5=[...this[_0x3eefd4(0x12e)],_0xd77c12[_0x3eefd4(0xe5)]];this[_0x3eefd4(0xfe)](_0x2819c5),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x3eefd4(0x131)],this[_0x3eefd4(0x116)],this[_0x3eefd4(0x12e)]));}}[a29_0x585764(0x122)](_0xb50041){const _0x4e04d8=a29_0x585764;var _0x415da7,_0x40b8e0,_0x218b6d;let _0x5e600b='';this[_0x4e04d8(0x104)]==_0x4e04d8(0x119)&&(this[_0x4e04d8(0x108)](_0xb50041[_0x4e04d8(0xe5)]),this[_0x4e04d8(0x120)](new ShEvent(DrawEventType[_0x4e04d8(0xfa)],this['_type'],_0xb50041['coordinate'],this[_0x4e04d8(0x12e)],(_0x415da7=this[_0x4e04d8(0x13a)]())===null||_0x415da7===void 0x0?void 0x0:_0x415da7['getView']()[_0x4e04d8(0x149)]()[_0x4e04d8(0x135)]())),this['finishDrawing']());!this['_isStayDraw']?_0x5e600b=this[_0x4e04d8(0x104)]=='rectangle'?_0x4e04d8(0xfd):_0x4e04d8(0xe7):(_0x5e600b=_0x4e04d8(0x102),((_0x40b8e0=this[_0x4e04d8(0x12e)])===null||_0x40b8e0===void 0x0?void 0x0:_0x40b8e0[_0x4e04d8(0x128)])===this[_0x4e04d8(0x11b)]-0x1&&(_0x5e600b=_0x4e04d8(0xee)),((_0x218b6d=this['_drawingCoordinates'])===null||_0x218b6d===void 0x0?void 0x0:_0x218b6d['length'])>=this['_minPoints']&&this['_fixPoint']===Number[_0x4e04d8(0x12d)]&&(_0x5e600b=_0x4e04d8(0xe8)));this['tipText']!=undefined&&(_0x5e600b=this[_0x4e04d8(0x114)]);this['updateTip_'](_0xb50041[_0x4e04d8(0xe5)],_0x5e600b);if(this[_0x4e04d8(0x109)]&&this[_0x4e04d8(0x104)]!=_0x4e04d8(0x144)){let _0x4749a5=[...this[_0x4e04d8(0x12e)],_0xb50041['coordinate']];this[_0x4e04d8(0xfe)](_0x4749a5),this[_0x4e04d8(0x120)](new DrawEvent(DrawEventType[_0x4e04d8(0x131)],this[_0x4e04d8(0x116)],this['_drawingCoordinates']));}}['atFinish_'](_0x368e9f){const _0xe1f37a=a29_0x585764;var _0x14f010;let _0x773c96=![],_0x10754c=this['_drawingCoordinates']['length'];if(_0x10754c>this[_0xe1f37a(0x140)]&&this[_0xe1f37a(0x11b)]===Number[_0xe1f37a(0x12d)]){const _0x2151ca=this[_0xe1f37a(0x12e)][this[_0xe1f37a(0x12e)][_0xe1f37a(0x128)]-0x1],_0x6b9a0b=(_0x14f010=this[_0xe1f37a(0x13a)]())===null||_0x14f010===void 0x0?void 0x0:_0x14f010[_0xe1f37a(0xf0)](_0x2151ca),_0x5e522c=_0x368e9f[0x0]-(_0x6b9a0b?_0x6b9a0b[0x0]:0x0),_0x459b5c=_0x368e9f[0x1]-(_0x6b9a0b?_0x6b9a0b[0x1]:0x0);_0x773c96=Math[_0xe1f37a(0x134)](_0x5e522c*_0x5e522c+_0x459b5c*_0x459b5c)<=this[_0xe1f37a(0x141)];}return _0x773c96;}[a29_0x585764(0x108)](_0x172c56){const _0x1493e0=a29_0x585764;this[_0x1493e0(0x109)]=!![],this[_0x1493e0(0x12e)]=[_0x172c56[_0x1493e0(0x105)]()],this['_sketchFeature']=this['createMultiPointFeature'](),this['updateSketchFeatures_'](),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x1493e0(0x107)],this[_0x1493e0(0x116)],this[_0x1493e0(0x12e)]));}[a29_0x585764(0x12c)](){const _0x53fb35=a29_0x585764;if(this[_0x53fb35(0x12e)][_0x53fb35(0x128)]>this[_0x53fb35(0x140)]){this[_0x53fb35(0xfe)](this[_0x53fb35(0x12e)]);let _0x13e8c2=this[_0x53fb35(0x12e)];const _0x556f0c=this[_0x53fb35(0x112)]();if(!_0x556f0c)return;this[_0x53fb35(0x120)](new DrawEvent(DrawEventType[_0x53fb35(0x138)],_0x556f0c,_0x13e8c2)),this['_features']&&this['_features'][_0x53fb35(0x118)](_0x556f0c),this[_0x53fb35(0x113)]&&this[_0x53fb35(0x113)][_0x53fb35(0xeb)](_0x556f0c);}}['addPoint'](_0x3667d1){const _0x131313=a29_0x585764;this[_0x131313(0x12e)]['push'](_0x3667d1),this[_0x131313(0x116)]=this['createMultiPointFeature'](),this[_0x131313(0xfc)]();}[a29_0x585764(0x14a)](){const _0x5bea63=a29_0x585764,_0x3a2f9b=new MultiPoint(this[_0x5bea63(0x12e)]);let _0x1bdddd=new a29_0x1402e6();return _0x1bdddd[_0x5bea63(0x14c)](_0x3a2f9b),_0x1bdddd;}['abortDrawing_'](){const _0x237c1c=a29_0x585764;var _0x5b573d,_0x4cefd1;this[_0x237c1c(0x109)]=![];const _0x498bfe=this[_0x237c1c(0x116)];return this[_0x237c1c(0x116)]=undefined,this['_drawingCoordinates']=[],(_0x5b573d=this['_overlay'][_0x237c1c(0x103)]())===null||_0x5b573d===void 0x0?void 0x0:_0x5b573d[_0x237c1c(0x101)](!![]),(_0x4cefd1=this[_0x237c1c(0x126)][_0x237c1c(0x103)]())===null||_0x4cefd1===void 0x0?void 0x0:_0x4cefd1[_0x237c1c(0x101)](!![]),_0x498bfe;}['abortDrawing'](){const _0x185373=a29_0x585764,_0x44360f=this['abortDrawing_']();_0x44360f&&this[_0x185373(0x120)](new DrawEvent(DrawEventType[_0x185373(0xf5)],_0x44360f,this[_0x185373(0x12e)]));}['buildDrawingFeature'](_0x181e2e){const _0x34f94e=a29_0x585764;this[_0x34f94e(0x116)]=new a29_0x1402e6();let _0x5602e6=createPlot(this[_0x34f94e(0x104)],_0x181e2e);if(!_0x5602e6)return;this[_0x34f94e(0x116)][_0x34f94e(0x14c)](_0x5602e6);let _0x14bbe9=[a29_0x35e67d[_0x34f94e(0x111)],a29_0x35e67d[_0x34f94e(0x11d)],a29_0x35e67d['Ellipse']];if(_0x14bbe9[_0x34f94e(0xf6)](this[_0x34f94e(0x104)])>-0x1&&this['_style']){}const _0x51383e=this[_0x34f94e(0x13a)]();this[_0x34f94e(0x116)][_0x34f94e(0xfb)](getStyle(this[_0x34f94e(0x104)],this[_0x34f94e(0x142)],this[_0x34f94e(0x13a)]())),this[_0x34f94e(0xfc)]();}['updateSketchFeatures_'](){const _0x1c3fd6=a29_0x585764,_0x21dbe2=this['_overlay']['getSource']();_0x21dbe2&&this[_0x1c3fd6(0x116)]&&(_0x21dbe2[_0x1c3fd6(0x101)](!![]),_0x21dbe2[_0x1c3fd6(0xeb)](this[_0x1c3fd6(0x116)]));}[a29_0x585764(0x106)](){const _0x1c684e=a29_0x585764;if(this['_isStayDraw']){if(this['_drawingCoordinates']&&this[_0x1c684e(0x12e)][_0x1c684e(0x128)]>0x0){const _0x5649f9=this['_overlay'][_0x1c684e(0x103)]();_0x5649f9===null||_0x5649f9===void 0x0?void 0x0:_0x5649f9[_0x1c684e(0x101)](!![]),this[_0x1c684e(0x12e)][_0x1c684e(0xe9)](),this[_0x1c684e(0x12e)][_0x1c684e(0x128)]>=this[_0x1c684e(0x140)]&&this['buildDrawingFeature'](this[_0x1c684e(0x12e)]),this[_0x1c684e(0x12e)][_0x1c684e(0x128)]===0x0&&(this[_0x1c684e(0x109)]=![]);}}}[a29_0x585764(0x100)](_0x43c5f4,_0x5f0f23){const _0x3d3cd4=a29_0x585764;var _0xe57dff,_0x38c052,_0x11f626,_0x36629b;if(!this[_0x3d3cd4(0x123)])return;const _0x10e364=this[_0x3d3cd4(0x126)]['getSource']();_0x10e364===null||_0x10e364===void 0x0?void 0x0:_0x10e364['clear'](!![]),(_0xe57dff=this['_tipFeature'])===null||_0xe57dff===void 0x0?void 0x0:_0xe57dff['setGeometry'](new Point(_0x43c5f4)),(_0x11f626=(_0x38c052=this['_tipStyle'])===null||_0x38c052===void 0x0?void 0x0:_0x38c052['getText']())===null||_0x11f626===void 0x0?void 0x0:_0x11f626[_0x3d3cd4(0x148)](_0x5f0f23),(_0x36629b=this[_0x3d3cd4(0xef)])===null||_0x36629b===void 0x0?void 0x0:_0x36629b[_0x3d3cd4(0xfb)](this[_0x3d3cd4(0x146)]),this[_0x3d3cd4(0xef)]&&(_0x10e364===null||_0x10e364===void 0x0?void 0x0:_0x10e364['addFeature'](this[_0x3d3cd4(0xef)]));}}function getDefaultStyleFunction(){const _0x2a63e0=createEditingStyle();return function(_0x5c0970,_0x458308){const _0x47d76a=a29_0x51dc,_0x336842=_0x2a63e0[_0x5c0970[_0x47d76a(0x115)]()['getType']()];if(_0x336842&&_0x47d76a(0x124)==_0x5c0970['getGeometry']()[_0x47d76a(0x12f)]()){}};}
|