ym-gis-2d 1.0.13 → 1.0.15
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/LegendControl.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.js +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.d.ts +4 -4
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.d.ts.map +1 -1
- package/mapView/View.js +1 -1
- package/mapView/View.js.map +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.d.ts +7 -1
- package/utils/GeometryUtil.d.ts.map +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/GeometryUtil.js.map +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(_0x327300,_0x166214){const _0x1f3a28=a0_0x9dc7,_0x592a6a=_0x327300();while(!![]){try{const _0x1220fe=-parseInt(_0x1f3a28(0x156))/0x1*(-parseInt(_0x1f3a28(0x17c))/0x2)+parseInt(_0x1f3a28(0x162))/0x3+parseInt(_0x1f3a28(0x173))/0x4*(-parseInt(_0x1f3a28(0x175))/0x5)+-parseInt(_0x1f3a28(0x158))/0x6*(-parseInt(_0x1f3a28(0x17d))/0x7)+-parseInt(_0x1f3a28(0x13a))/0x8+parseInt(_0x1f3a28(0x17a))/0x9+-parseInt(_0x1f3a28(0x159))/0xa;if(_0x1220fe===_0x166214)break;else _0x592a6a['push'](_0x592a6a['shift']());}catch(_0x808686){_0x592a6a['push'](_0x592a6a['shift']());}}}(a0_0x59ef,0x3d8ab));import{addArgument,appendPath}from'../utils/UrlUtil';import a0_0x451431 from'../utils/AxiosUtil';import{jsonp}from'../utils/AxiosUtil';function a0_0x9dc7(_0x30b686,_0x5095d8){const _0x59efcc=a0_0x59ef();return a0_0x9dc7=function(_0x9dc7de,_0x15f0f5){_0x9dc7de=_0x9dc7de-0x12d;let _0x4d4660=_0x59efcc[_0x9dc7de];return _0x4d4660;},a0_0x9dc7(_0x30b686,_0x5095d8);}import a0_0x20fd70 from'ol/format/WMTSCapabilities';import a0_0x58010b from'ol/format/WMSCapabilities';import{readXml}from'../utils/XmlUtil';import{transformedToNumber}from'../utils/StringUtil';export async function getDynamicLayerInfo(_0x2f02f7){const _0x11d2a9=a0_0x9dc7,_0x2becbb=addArgument(_0x2f02f7,'f',_0x11d2a9(0x17f)),_0x3715c2=await a0_0x451431['get'](_0x2becbb);return _0x3715c2[_0x11d2a9(0x152)];}function a0_0x59ef(){const _0xe08a44=['push','Style','568347POhaZP','pjson','MatrixWidth','WGS84BoundingBox','FeatureTypeList','decimal','wkid','geoserver-wms','TileWidth','indexOf','innerHTML','Format','geoserver-wfs','TileMatrixSetLink','arcgis-dynamic','value','label','92kDbItC','request','14610OBgmKt','Contents','gml:','Identifier','Name','3234465TIgaAO','alias','2QDZDJV','21dQVwPU','getElementsByTagName','json','ows:WGS84BoundingBox','type','style','DefaultCRS','length','BoundingBox','EPSG:','attributes','double','initExtent','date','tileMatrixs','service','wfs','wmts','esriFieldTypeSmallInteger','2549232rrMOAp','layerFields','short','forEach','extent','crs','typeName','get','tileMatrixSet','TileHeight','esriFieldTypeInteger','sourceXml','Capability','TileMatrix','name','split','wgs84BoundingBox','Title','nodeName','esriFieldTypeOID','ScaleDenominator','fields','esriFieldTypeString','TopLeftCorner','data','TileMatrixSet','format','boundingBoxExtent','40712SYlRBP','toString','177666ECALrG','404440qDIbQx','GetCapabilities','children','read','SupportedCRS','url','Layer'];a0_0x59ef=function(){return _0xe08a44;};return a0_0x59ef();}export async function getFeatureLayerInfo(_0x27fc8f,_0x153fc6){const _0x579826=a0_0x9dc7;let _0x51431c=addArgument(_0x27fc8f,'f','json');_0x51431c=appendPath(_0x51431c,_0x153fc6);const _0x196223=await jsonp(_0x51431c);return _0x196223[_0x579826(0x15e)]=_0x51431c,_0x196223;}export async function getWMSLayerCapabilities(_0x56e450,_0x1f9668){const _0x4abe47=a0_0x9dc7,_0x4a2855=await getWMSCapabilities(_0x56e450);let _0x1cedb7={},_0x7eb998=_0x4a2855[_0x4abe47(0x146)][_0x4abe47(0x15f)][_0x4abe47(0x15f)];for(let _0x1ce4d8=0x0;_0x1ce4d8<_0x7eb998['length'];_0x1ce4d8++){const _0x264511=_0x7eb998[_0x1ce4d8];if(_0x264511[_0x4abe47(0x179)]==_0x1f9668){_0x1cedb7[_0x4abe47(0x182)]=_0x264511[_0x4abe47(0x161)][0x0][_0x4abe47(0x179)];for(let _0x20eb8d=0x0;_0x20eb8d<_0x264511[_0x4abe47(0x12f)]['length'];_0x20eb8d++){const _0xcb820b=_0x264511[_0x4abe47(0x12f)][_0x20eb8d];if(_0xcb820b[_0x4abe47(0x13f)]['indexOf'](_0x4abe47(0x130))>-0x1){_0x1cedb7['wkid']=transformedToNumber(_0xcb820b[_0x4abe47(0x13f)]),_0x1cedb7['initExtent']=[_0xcb820b[_0x4abe47(0x13e)][0x1],_0xcb820b['extent'][0x0],_0xcb820b[_0x4abe47(0x13e)][0x3],_0xcb820b[_0x4abe47(0x13e)][0x2]];break;}}break;}}return _0x1cedb7;}export async function getWMTSLayerCapabilities(_0x5e0eeb,_0x16ee47){const _0x5bdb08=a0_0x9dc7,_0x1c958a=await getWMTSCapabilities(_0x5e0eeb);let _0x2fecef={},_0x89c448=_0x1c958a[_0x5bdb08(0x176)][_0x5bdb08(0x15f)];_0x2fecef[_0x5bdb08(0x145)]=_0x1c958a;for(let _0x52ab7=0x0;_0x52ab7<_0x89c448[_0x5bdb08(0x12e)];_0x52ab7++){const _0x50a225=_0x89c448[_0x52ab7];if(_0x50a225[_0x5bdb08(0x178)]==_0x16ee47){_0x2fecef[_0x5bdb08(0x154)]=_0x50a225[_0x5bdb08(0x16d)],_0x2fecef[_0x5bdb08(0x182)]=_0x50a225[_0x5bdb08(0x161)][0x0][_0x5bdb08(0x178)],_0x2fecef[_0x5bdb08(0x142)]=_0x50a225[_0x5bdb08(0x16f)][0x0][_0x5bdb08(0x153)],_0x2fecef[_0x5bdb08(0x14a)]=_0x50a225[_0x5bdb08(0x165)],_0x2fecef[_0x5bdb08(0x155)]=_0x50a225[_0x5bdb08(0x12f)]&&_0x50a225[_0x5bdb08(0x12f)][_0x5bdb08(0x12e)]>0x0?_0x50a225[_0x5bdb08(0x12f)][0x0][_0x5bdb08(0x13e)]:_0x2fecef[_0x5bdb08(0x14a)];break;}}if(_0x2fecef[_0x5bdb08(0x142)])for(let _0x5d478a=0x0;_0x5d478a<_0x1c958a['Contents'][_0x5bdb08(0x153)]['length'];_0x5d478a++){const _0x508acc=_0x1c958a[_0x5bdb08(0x176)][_0x5bdb08(0x153)][_0x5d478a];if(_0x508acc['Identifier']==_0x2fecef['tileMatrixSet']){_0x2fecef['wkid']=transformedToNumber(_0x508acc[_0x5bdb08(0x15d)]),_0x2fecef['tileMatrixs']=[];for(let _0x48b3ab=0x0;_0x48b3ab<_0x508acc['TileMatrix'][_0x5bdb08(0x12e)];_0x48b3ab++){const _0x57f350=_0x508acc[_0x5bdb08(0x147)][_0x48b3ab];_0x2fecef[_0x5bdb08(0x135)][_0x5bdb08(0x160)]({'identifier':_0x57f350[_0x5bdb08(0x178)],'matrixHeight':_0x57f350['MatrixHeight'],'matrixWidth':_0x57f350[_0x5bdb08(0x164)],'scaleDenominator':_0x57f350[_0x5bdb08(0x14e)],'tileHeight':_0x57f350[_0x5bdb08(0x143)],'tileWidth':_0x57f350[_0x5bdb08(0x16a)],'topLeftCorner':_0x57f350[_0x5bdb08(0x151)]});}break;}}return _0x2fecef;}export async function getWFSLayerCapabilities(_0x1578c7,_0x43f60f){const _0x106cda=a0_0x9dc7,_0x24ee5f=await getWFSCapabilities(_0x1578c7);let _0x66a212={};const _0x54c3b2=await getWmsLayerFields(_0x1578c7,_0x43f60f);_0x66a212[_0x106cda(0x13b)]=_0x54c3b2;let _0x2ad80=_0x24ee5f[_0x106cda(0x17e)](_0x106cda(0x166))[0x0][_0x106cda(0x15b)],_0x203cbf;for(let _0x50170d=0x0,_0x3b0758=_0x2ad80[_0x106cda(0x12e)];_0x50170d<_0x3b0758;_0x50170d++){for(let _0x36396c=0x0,_0x3e5b31=_0x2ad80[_0x50170d][_0x106cda(0x15b)][_0x106cda(0x12e)];_0x36396c<_0x3e5b31;_0x36396c++){if(_0x2ad80[_0x50170d]['children'][_0x36396c][_0x106cda(0x14c)]==='Name'){const _0x5ad75f=_0x2ad80[_0x50170d]['children'][_0x36396c][_0x106cda(0x16c)][_0x106cda(0x157)]();if(_0x5ad75f==_0x43f60f||_0x5ad75f[_0x106cda(0x16b)](':'+_0x43f60f)>-0x1){_0x203cbf=_0x2ad80[_0x50170d];break;}}}if(_0x203cbf)break;}let _0xacff13=[];for(let _0x1c4508=0x0,_0xc7ba58=_0x203cbf['children']['length'];_0x1c4508<_0xc7ba58;_0x1c4508++){if(_0x203cbf[_0x106cda(0x15b)][_0x1c4508][_0x106cda(0x14c)]===_0x106cda(0x180)){let _0x51a067=_0x203cbf[_0x106cda(0x15b)][_0x1c4508][_0x106cda(0x15b)][0x0]['innerHTML'][_0x106cda(0x149)]('\x20'),_0x36394e=_0x203cbf['children'][_0x1c4508][_0x106cda(0x15b)][0x1][_0x106cda(0x16c)][_0x106cda(0x149)]('\x20');_0x51a067&&_0x36394e&&(_0xacff13=[_0x51a067[0x0]-0x0,_0x51a067[0x1]-0x0,_0x36394e[0x0]-0x0,_0x36394e[0x1]-0x0]),_0x66a212[_0x106cda(0x133)]=_0xacff13;}else _0x203cbf['children'][_0x1c4508][_0x106cda(0x14c)]===_0x106cda(0x12d)&&(_0x66a212[_0x106cda(0x168)]=transformedToNumber(_0x203cbf[_0x106cda(0x15b)][_0x1c4508][_0x106cda(0x16c)]));}return _0x66a212;}export async function getWMSCapabilities(_0x24116b){const _0x3f71d0=a0_0x9dc7;let _0x1dc08c=addArgument(_0x24116b,_0x3f71d0(0x174),'GetCapabilities');_0x1dc08c=addArgument(_0x1dc08c,'service','wms');const _0x3da6d8=await a0_0x451431[_0x3f71d0(0x141)](_0x1dc08c);let _0x12e940=new a0_0x58010b();return _0x12e940[_0x3f71d0(0x15c)](_0x3da6d8['data']);}export async function getWMTSCapabilities(_0x140bb4){const _0x3fc590=a0_0x9dc7;let _0x5aaa5b=addArgument(_0x140bb4,_0x3fc590(0x174),_0x3fc590(0x15a));_0x5aaa5b=addArgument(_0x5aaa5b,_0x3fc590(0x136),_0x3fc590(0x138));const _0xf61c4f=await a0_0x451431[_0x3fc590(0x141)](_0x5aaa5b);let _0x381512=new a0_0x20fd70();return _0x381512[_0x3fc590(0x15c)](_0xf61c4f[_0x3fc590(0x152)]);}export async function getWFSCapabilities(_0x398ea4){const _0x2d2714=a0_0x9dc7;let _0x3b88df=addArgument(_0x398ea4,'request',_0x2d2714(0x15a));_0x3b88df=addArgument(_0x3b88df,_0x2d2714(0x136),_0x2d2714(0x137));const _0x11e522=await a0_0x451431[_0x2d2714(0x141)](_0x3b88df),_0x4f521f=readXml(_0x11e522[_0x2d2714(0x152)]);return _0x4f521f;}export async function getWmsLayerFields(_0x359484,_0x589054){const _0x4360ce=a0_0x9dc7;let _0x5d02ce=addArgument(_0x359484,_0x4360ce(0x174),'DescribeFeatureType');_0x5d02ce=addArgument(_0x5d02ce,_0x4360ce(0x136),_0x4360ce(0x137)),_0x5d02ce=addArgument(_0x5d02ce,_0x4360ce(0x140),_0x589054);const _0xa1e9f2=await a0_0x451431[_0x4360ce(0x141)](_0x5d02ce),_0x3ae292=readXml(_0xa1e9f2[_0x4360ce(0x152)]);let _0x5bbec8=[];const _0x31155c=_0x3ae292[_0x4360ce(0x17e)]('xsd:sequence')[0x0][_0x4360ce(0x15b)];for(let _0x39aee7=0x0;_0x39aee7<_0x31155c[_0x4360ce(0x12e)];_0x39aee7++){const _0x36c8d8=_0x31155c[_0x39aee7],_0x5c4dcf=_0x36c8d8[_0x4360ce(0x131)][_0x4360ce(0x181)]['value'];let _0x7daeb2=0x1;if(_0x5c4dcf[_0x4360ce(0x16b)]('string')>-0x1)_0x7daeb2=0x1;else{if(_0x5c4dcf[_0x4360ce(0x16b)]('int')>-0x1||_0x5c4dcf[_0x4360ce(0x16b)](_0x4360ce(0x13c))>-0x1)_0x7daeb2=0x2;else{if(_0x5c4dcf[_0x4360ce(0x16b)](_0x4360ce(0x132))>-0x1||_0x5c4dcf[_0x4360ce(0x16b)](_0x4360ce(0x167))>-0x1)_0x7daeb2=0x3;else{if(_0x5c4dcf[_0x4360ce(0x16b)](_0x4360ce(0x134))>-0x1)_0x7daeb2=0x4;else _0x5c4dcf['indexOf'](_0x4360ce(0x177))>-0x1&&(_0x7daeb2=0x6);}}}_0x5bbec8[_0x4360ce(0x160)]({'name':_0x36c8d8[_0x4360ce(0x131)][_0x4360ce(0x148)][_0x4360ce(0x171)],'aliasName':_0x36c8d8['attributes'][_0x4360ce(0x148)][_0x4360ce(0x171)],'fieldType':_0x7daeb2,'fieldTypeName':_0x5c4dcf,'iDisplay':!![]});}return _0x5bbec8;}export async function getWmtsLayers(_0x3ccff4){const _0x574797=a0_0x9dc7,_0xbe138c=await getWMTSCapabilities(_0x3ccff4);let _0x3b6f83=[];if(!_0xbe138c||!_0xbe138c['Contents']||!_0xbe138c['Contents'][_0x574797(0x15f)])return _0x3b6f83;return _0xbe138c[_0x574797(0x176)]['Layer'][_0x574797(0x13d)](_0x465873=>{const _0x536b27=_0x574797;_0x3b6f83[_0x536b27(0x160)]({'name':_0x465873['Identifier'],'label':_0x465873[_0x536b27(0x14b)]});}),_0x3b6f83;}export async function getWmsLayers(_0x17da81){const _0x20e962=a0_0x9dc7,_0x4dd2f4=await getWMSCapabilities(_0x17da81);let _0x34d35f=[];if(!_0x4dd2f4||!_0x4dd2f4['Capability']||!_0x4dd2f4['Capability']['Layer']||!_0x4dd2f4[_0x20e962(0x146)][_0x20e962(0x15f)][_0x20e962(0x15f)])return _0x34d35f;return _0x4dd2f4[_0x20e962(0x146)]['Layer']['Layer'][_0x20e962(0x13d)](_0x128f57=>{_0x34d35f['push']({'name':_0x128f57['Name'],'label':_0x128f57['Title']});}),_0x34d35f;}export async function getWfLayers(_0x3e0275){const _0x3e72d9=a0_0x9dc7,_0x21b39b=await getWFSCapabilities(_0x3e0275);let _0x3392b0=[],_0x40525d=_0x21b39b[_0x3e72d9(0x17e)](_0x3e72d9(0x166))[0x0][_0x3e72d9(0x15b)],_0x46ed91;for(let _0x2a856f=0x0,_0x3f6b72=_0x40525d[_0x3e72d9(0x12e)];_0x2a856f<_0x3f6b72;_0x2a856f++){let _0x13e7c4={'name':'','label':''};for(let _0x36ffa5=0x0,_0x44cdbe=_0x40525d[_0x2a856f]['children'][_0x3e72d9(0x12e)];_0x36ffa5<_0x44cdbe;_0x36ffa5++){if(_0x40525d[_0x2a856f]['children'][_0x36ffa5][_0x3e72d9(0x14c)]===_0x3e72d9(0x179)){const _0x521f1c=_0x40525d[_0x2a856f][_0x3e72d9(0x15b)][_0x36ffa5][_0x3e72d9(0x16c)][_0x3e72d9(0x157)]();_0x13e7c4['name']=_0x521f1c;}else{if(_0x40525d[_0x2a856f][_0x3e72d9(0x15b)][_0x36ffa5][_0x3e72d9(0x14c)]===_0x3e72d9(0x14b)){const _0x20151d=_0x40525d[_0x2a856f]['children'][_0x36ffa5][_0x3e72d9(0x16c)][_0x3e72d9(0x157)]();_0x13e7c4['label']=_0x20151d;}}}_0x13e7c4['name']!==''&&_0x13e7c4[_0x3e72d9(0x172)]!==''&&_0x3392b0[_0x3e72d9(0x160)](_0x13e7c4);}return _0x3392b0;}export async function getArcgisDynamicLayers(_0x17c278){const _0x53247c=a0_0x9dc7;let _0x21936e=addArgument(_0x17c278,'f','pjson');const _0x592737=await a0_0x451431[_0x53247c(0x141)](_0x21936e);let _0xbb4eac=[];return _0x592737[_0x53247c(0x152)]['layers'][_0x53247c(0x13d)](_0x517b09=>{const _0x1374c2=_0x53247c;_0xbb4eac[_0x1374c2(0x160)]({'name':_0x517b09['id']['toString'](),'label':_0x517b09['name']});}),_0xbb4eac;}export async function getArcgisDynamicLayerFields(_0x1179ed,_0x45d7a9){const _0x2f9b80=a0_0x9dc7;let _0x3a89c2=appendPath(_0x1179ed,_0x45d7a9);_0x3a89c2=addArgument(_0x3a89c2,'f',_0x2f9b80(0x163));const _0x4a0d34=await a0_0x451431[_0x2f9b80(0x141)](_0x3a89c2);let _0x57255f=[];return _0x4a0d34[_0x2f9b80(0x152)][_0x2f9b80(0x14f)][_0x2f9b80(0x13d)](_0xd2cf87=>{const _0x4baed3=_0x2f9b80;let _0x24c031=0x1;switch(_0xd2cf87[_0x4baed3(0x181)]){case _0x4baed3(0x150):_0x24c031=0x1;break;case _0x4baed3(0x144):case _0x4baed3(0x139):case _0x4baed3(0x14d):_0x24c031=0x2;break;case'esriFieldTypeDouble':_0x24c031=0x3;break;case'esriFieldTypeDate':_0x24c031=0x4;break;case'esriFieldTypeGeometry':_0x24c031=0x6;break;default:_0x24c031=0x1;break;}_0x57255f[_0x4baed3(0x160)]({'name':_0xd2cf87[_0x4baed3(0x148)],'aliasName':_0xd2cf87[_0x4baed3(0x17b)],'fieldType':_0x24c031,'fieldTypeName':_0xd2cf87['type'],'fieldLength':_0xd2cf87[_0x4baed3(0x12e)],'iDisplay':!![]});}),_0x57255f;}export async function getSourceLayerFields(_0x554aba,_0x281332,_0x27ff50){const _0x3c510e=a0_0x9dc7;let _0x2a0a06=[];switch(_0x27ff50){case _0x3c510e(0x170):case'arcgis-feature':_0x2a0a06=await getArcgisDynamicLayerFields(_0x554aba,_0x281332);break;case _0x3c510e(0x169):case _0x3c510e(0x16e):_0x2a0a06=await getWmsLayerFields(_0x554aba,_0x281332);break;default:break;}return _0x2a0a06;}
|
|
1
|
+
(function(_0x4b44d2,_0x454057){const _0xa1bdaf=a0_0x1463,_0x1e8875=_0x4b44d2();while(!![]){try{const _0x26a42e=parseInt(_0xa1bdaf(0x1ba))/0x1+-parseInt(_0xa1bdaf(0x1d4))/0x2*(-parseInt(_0xa1bdaf(0x1bc))/0x3)+-parseInt(_0xa1bdaf(0x1fa))/0x4+parseInt(_0xa1bdaf(0x1e1))/0x5+-parseInt(_0xa1bdaf(0x1eb))/0x6*(parseInt(_0xa1bdaf(0x1f4))/0x7)+parseInt(_0xa1bdaf(0x1d7))/0x8*(parseInt(_0xa1bdaf(0x1c9))/0x9)+parseInt(_0xa1bdaf(0x1de))/0xa*(-parseInt(_0xa1bdaf(0x1d1))/0xb);if(_0x26a42e===_0x454057)break;else _0x1e8875['push'](_0x1e8875['shift']());}catch(_0x5ca0b6){_0x1e8875['push'](_0x1e8875['shift']());}}}(a0_0x2cea,0x4a367));import{addArgument,appendPath}from'../utils/UrlUtil';import a0_0x127fd4 from'../utils/AxiosUtil';function a0_0x2cea(){const _0x45e40a=['TileHeight','1036sLNJEa','Contents','tileMatrixs','name','esriFieldTypeInteger','toString','1222680VltEfH','extent','short','layerFields','sourceXml','Name','service','Identifier','int','getElementsByTagName','attributes','BoundingBox','Style','GetCapabilities','TileMatrix','pjson','esriFieldTypeGeometry','esriFieldTypeDouble','request','json','date','forEach','string','style','DefaultCRS','FeatureTypeList','split','123868uRveYf','TopLeftCorner','5637qvVikl','data','innerHTML','url','get','Format','push','length','TileMatrixSetLink','Layer','layers','wms','SupportedCRS','18SdLnqv','ows:WGS84BoundingBox','value','label','crs','wmts','gml:','WGS84BoundingBox','11LRziVO','Capability','Title','322qXFULn','format','wkid','2311760EksPAL','type','typeName','fields','children','geoserver-wfs','boundingBoxExtent','4149850hcZEWp','esriFieldTypeSmallInteger','MatrixHeight','1807955VaNMmI','nodeName','TileMatrixSet','DescribeFeatureType','wgs84BoundingBox','MatrixWidth','esriFieldTypeDate','decimal','tileMatrixSet','alias','13836aWcDcQ','indexOf','double','EPSG:','initExtent','esriFieldTypeString','TileWidth','read'];a0_0x2cea=function(){return _0x45e40a;};return a0_0x2cea();}import{jsonp}from'../utils/AxiosUtil';import a0_0x1c31f0 from'ol/format/WMTSCapabilities';import a0_0x27407d from'ol/format/WMSCapabilities';import{readXml}from'../utils/XmlUtil';import{transformedToNumber}from'../utils/StringUtil';export async function getDynamicLayerInfo(_0x4e7482){const _0xfbca89=a0_0x1463,_0x5b98a4=addArgument(_0x4e7482,'f',_0xfbca89(0x1b2)),_0x57399f=await a0_0x127fd4[_0xfbca89(0x1c0)](_0x5b98a4);return _0x57399f[_0xfbca89(0x1bd)];}export async function getFeatureLayerInfo(_0x523771,_0x47a6b3){const _0x32bebd=a0_0x1463;let _0x41a2c6=addArgument(_0x523771,'f',_0x32bebd(0x1b2));_0x41a2c6=appendPath(_0x41a2c6,_0x47a6b3);const _0x118b05=await jsonp(_0x41a2c6);return _0x118b05[_0x32bebd(0x1bf)]=_0x41a2c6,_0x118b05;}export async function getWMSLayerCapabilities(_0xa20e95,_0x75fed7){const _0x3069cc=a0_0x1463,_0xcb9878=await getWMSCapabilities(_0xa20e95);let _0x2b8417={},_0x41b1c0=_0xcb9878[_0x3069cc(0x1d2)][_0x3069cc(0x1c5)][_0x3069cc(0x1c5)];for(let _0x479400=0x0;_0x479400<_0x41b1c0[_0x3069cc(0x1c3)];_0x479400++){const _0x45e699=_0x41b1c0[_0x479400];if(_0x45e699[_0x3069cc(0x1a4)]==_0x75fed7){_0x2b8417[_0x3069cc(0x1b6)]=_0x45e699[_0x3069cc(0x1ab)][0x0]['Name'];for(let _0x2e654d=0x0;_0x2e654d<_0x45e699[_0x3069cc(0x1aa)][_0x3069cc(0x1c3)];_0x2e654d++){const _0x24ec24=_0x45e699[_0x3069cc(0x1aa)][_0x2e654d];if(_0x24ec24['crs'][_0x3069cc(0x1ec)](_0x3069cc(0x1ee))>-0x1){_0x2b8417['wkid']=transformedToNumber(_0x24ec24[_0x3069cc(0x1cd)]),_0x2b8417[_0x3069cc(0x1ef)]=[_0x24ec24[_0x3069cc(0x1fb)][0x1],_0x24ec24[_0x3069cc(0x1fb)][0x0],_0x24ec24[_0x3069cc(0x1fb)][0x3],_0x24ec24[_0x3069cc(0x1fb)][0x2]];break;}}break;}}return _0x2b8417;}export async function getWMTSLayerCapabilities(_0x411af4,_0xacf513){const _0x4ccca8=a0_0x1463,_0x102c3e=await getWMTSCapabilities(_0x411af4);let _0xe87ccb={},_0x1fcf73=_0x102c3e[_0x4ccca8(0x1f5)][_0x4ccca8(0x1c5)];_0xe87ccb[_0x4ccca8(0x1a3)]=_0x102c3e;for(let _0x3431a1=0x0;_0x3431a1<_0x1fcf73[_0x4ccca8(0x1c3)];_0x3431a1++){const _0x275b5c=_0x1fcf73[_0x3431a1];if(_0x275b5c[_0x4ccca8(0x1a6)]==_0xacf513){_0xe87ccb[_0x4ccca8(0x1d5)]=_0x275b5c[_0x4ccca8(0x1c1)],_0xe87ccb['style']=_0x275b5c[_0x4ccca8(0x1ab)][0x0][_0x4ccca8(0x1a6)],_0xe87ccb['tileMatrixSet']=_0x275b5c[_0x4ccca8(0x1c4)][0x0][_0x4ccca8(0x1e3)],_0xe87ccb[_0x4ccca8(0x1e5)]=_0x275b5c[_0x4ccca8(0x1d0)],_0xe87ccb[_0x4ccca8(0x1dd)]=_0x275b5c[_0x4ccca8(0x1aa)]&&_0x275b5c['BoundingBox']['length']>0x0?_0x275b5c[_0x4ccca8(0x1aa)][0x0][_0x4ccca8(0x1fb)]:_0xe87ccb[_0x4ccca8(0x1e5)];break;}}if(_0xe87ccb[_0x4ccca8(0x1e9)])for(let _0xd0ddfe=0x0;_0xd0ddfe<_0x102c3e['Contents']['TileMatrixSet']['length'];_0xd0ddfe++){const _0x117a1c=_0x102c3e[_0x4ccca8(0x1f5)]['TileMatrixSet'][_0xd0ddfe];if(_0x117a1c[_0x4ccca8(0x1a6)]==_0xe87ccb['tileMatrixSet']){_0xe87ccb[_0x4ccca8(0x1d6)]=transformedToNumber(_0x117a1c[_0x4ccca8(0x1c8)]),_0xe87ccb[_0x4ccca8(0x1f6)]=[];for(let _0x905584=0x0;_0x905584<_0x117a1c[_0x4ccca8(0x1ad)]['length'];_0x905584++){const _0x2bdf68=_0x117a1c[_0x4ccca8(0x1ad)][_0x905584];_0xe87ccb[_0x4ccca8(0x1f6)][_0x4ccca8(0x1c2)]({'identifier':_0x2bdf68[_0x4ccca8(0x1a6)],'matrixHeight':_0x2bdf68[_0x4ccca8(0x1e0)],'matrixWidth':_0x2bdf68[_0x4ccca8(0x1e6)],'scaleDenominator':_0x2bdf68['ScaleDenominator'],'tileHeight':_0x2bdf68[_0x4ccca8(0x1f3)],'tileWidth':_0x2bdf68[_0x4ccca8(0x1f1)],'topLeftCorner':_0x2bdf68[_0x4ccca8(0x1bb)]});}break;}}return _0xe87ccb;}export async function getWFSLayerCapabilities(_0x1569bc,_0x52c7f6){const _0x32888b=a0_0x1463,_0x32f138=await getWFSCapabilities(_0x1569bc);let _0x341bd0={};const _0x3a5728=await getWmsLayerFields(_0x1569bc,_0x52c7f6);_0x341bd0[_0x32888b(0x1fd)]=_0x3a5728;let _0x33329a=_0x32f138[_0x32888b(0x1a8)]('FeatureTypeList')[0x0][_0x32888b(0x1db)],_0x561181;for(let _0xdaab4=0x0,_0x30fef3=_0x33329a['length'];_0xdaab4<_0x30fef3;_0xdaab4++){for(let _0x5a386d=0x0,_0x54cafb=_0x33329a[_0xdaab4][_0x32888b(0x1db)]['length'];_0x5a386d<_0x54cafb;_0x5a386d++){if(_0x33329a[_0xdaab4]['children'][_0x5a386d]['nodeName']===_0x32888b(0x1a4)){const _0x292811=_0x33329a[_0xdaab4]['children'][_0x5a386d][_0x32888b(0x1be)]['toString']();if(_0x292811==_0x52c7f6||_0x292811[_0x32888b(0x1ec)](':'+_0x52c7f6)>-0x1){_0x561181=_0x33329a[_0xdaab4];break;}}}if(_0x561181)break;}let _0x3ac8f6=[];for(let _0x88d20b=0x0,_0x43c77a=_0x561181['children'][_0x32888b(0x1c3)];_0x88d20b<_0x43c77a;_0x88d20b++){if(_0x561181[_0x32888b(0x1db)][_0x88d20b]['nodeName']===_0x32888b(0x1ca)){let _0x5eb964=_0x561181[_0x32888b(0x1db)][_0x88d20b][_0x32888b(0x1db)][0x0][_0x32888b(0x1be)][_0x32888b(0x1b9)]('\x20'),_0x418546=_0x561181['children'][_0x88d20b][_0x32888b(0x1db)][0x1][_0x32888b(0x1be)][_0x32888b(0x1b9)]('\x20');_0x5eb964&&_0x418546&&(_0x3ac8f6=[_0x5eb964[0x0]-0x0,_0x5eb964[0x1]-0x0,_0x418546[0x0]-0x0,_0x418546[0x1]-0x0]),_0x341bd0['initExtent']=_0x3ac8f6;}else _0x561181[_0x32888b(0x1db)][_0x88d20b]['nodeName']===_0x32888b(0x1b7)&&(_0x341bd0[_0x32888b(0x1d6)]=transformedToNumber(_0x561181['children'][_0x88d20b][_0x32888b(0x1be)]));}return _0x341bd0;}export async function getWMSCapabilities(_0x332db5){const _0x46ef77=a0_0x1463;let _0x20353c=addArgument(_0x332db5,_0x46ef77(0x1b1),'GetCapabilities');_0x20353c=addArgument(_0x20353c,'service',_0x46ef77(0x1c7));const _0x72c5bc=await a0_0x127fd4['get'](_0x20353c);let _0x123e79=new a0_0x27407d();return _0x123e79[_0x46ef77(0x1f2)](_0x72c5bc[_0x46ef77(0x1bd)]);}export async function getWMTSCapabilities(_0x2ed952){const _0x3feca7=a0_0x1463;let _0x15eb56=addArgument(_0x2ed952,_0x3feca7(0x1b1),_0x3feca7(0x1ac));_0x15eb56=addArgument(_0x15eb56,_0x3feca7(0x1a5),_0x3feca7(0x1ce));const _0xb22b14=await a0_0x127fd4[_0x3feca7(0x1c0)](_0x15eb56);let _0x40a209=new a0_0x1c31f0();return _0x40a209[_0x3feca7(0x1f2)](_0xb22b14['data']);}export async function getWFSCapabilities(_0x18ba12){const _0x346510=a0_0x1463;let _0x4a9afa=addArgument(_0x18ba12,_0x346510(0x1b1),_0x346510(0x1ac));_0x4a9afa=addArgument(_0x4a9afa,_0x346510(0x1a5),'wfs');const _0x58424d=await a0_0x127fd4[_0x346510(0x1c0)](_0x4a9afa),_0x560c0e=readXml(_0x58424d[_0x346510(0x1bd)]);return _0x560c0e;}export async function getWmsLayerFields(_0x4d5cdd,_0x16930a){const _0x8be4a8=a0_0x1463;let _0x8983ed=addArgument(_0x4d5cdd,_0x8be4a8(0x1b1),_0x8be4a8(0x1e4));_0x8983ed=addArgument(_0x8983ed,'service','wfs'),_0x8983ed=addArgument(_0x8983ed,_0x8be4a8(0x1d9),_0x16930a);const _0x5946a1=await a0_0x127fd4['get'](_0x8983ed),_0x4c1252=readXml(_0x5946a1[_0x8be4a8(0x1bd)]);let _0x213358=[];const _0x30f307=_0x4c1252['getElementsByTagName']('xsd:sequence')[0x0]['children'];for(let _0x12c1bf=0x0;_0x12c1bf<_0x30f307[_0x8be4a8(0x1c3)];_0x12c1bf++){const _0x17ec3b=_0x30f307[_0x12c1bf],_0x15f122=_0x17ec3b[_0x8be4a8(0x1a9)][_0x8be4a8(0x1d8)]['value'];let _0x51e67c=0x1;if(_0x15f122[_0x8be4a8(0x1ec)](_0x8be4a8(0x1b5))>-0x1)_0x51e67c=0x1;else{if(_0x15f122[_0x8be4a8(0x1ec)](_0x8be4a8(0x1a7))>-0x1||_0x15f122[_0x8be4a8(0x1ec)](_0x8be4a8(0x1fc))>-0x1)_0x51e67c=0x2;else{if(_0x15f122['indexOf'](_0x8be4a8(0x1ed))>-0x1||_0x15f122['indexOf'](_0x8be4a8(0x1e8))>-0x1)_0x51e67c=0x3;else{if(_0x15f122[_0x8be4a8(0x1ec)](_0x8be4a8(0x1b3))>-0x1)_0x51e67c=0x4;else _0x15f122[_0x8be4a8(0x1ec)](_0x8be4a8(0x1cf))>-0x1&&(_0x51e67c=0x6);}}}_0x213358[_0x8be4a8(0x1c2)]({'name':_0x17ec3b[_0x8be4a8(0x1a9)][_0x8be4a8(0x1f7)][_0x8be4a8(0x1cb)],'aliasName':_0x17ec3b['attributes']['name'][_0x8be4a8(0x1cb)],'fieldType':_0x51e67c,'fieldTypeName':_0x15f122,'iDisplay':!![]});}return _0x213358;}export async function getWmtsLayers(_0x2fef62){const _0x52175c=a0_0x1463,_0xd5030f=await getWMTSCapabilities(_0x2fef62);let _0x1e5db3=[];if(!_0xd5030f||!_0xd5030f[_0x52175c(0x1f5)]||!_0xd5030f[_0x52175c(0x1f5)][_0x52175c(0x1c5)])return _0x1e5db3;return _0xd5030f[_0x52175c(0x1f5)][_0x52175c(0x1c5)][_0x52175c(0x1b4)](_0x491ad4=>{const _0x34e359=_0x52175c;_0x1e5db3[_0x34e359(0x1c2)]({'name':_0x491ad4[_0x34e359(0x1a6)],'label':_0x491ad4[_0x34e359(0x1d3)]});}),_0x1e5db3;}export async function getWmsLayers(_0x59876e){const _0x52bf16=a0_0x1463,_0xe7b828=await getWMSCapabilities(_0x59876e);let _0x108fbc=[];if(!_0xe7b828||!_0xe7b828['Capability']||!_0xe7b828[_0x52bf16(0x1d2)][_0x52bf16(0x1c5)]||!_0xe7b828[_0x52bf16(0x1d2)][_0x52bf16(0x1c5)][_0x52bf16(0x1c5)])return _0x108fbc;return _0xe7b828[_0x52bf16(0x1d2)][_0x52bf16(0x1c5)]['Layer'][_0x52bf16(0x1b4)](_0x1d8c64=>{const _0x133ae8=_0x52bf16;_0x108fbc[_0x133ae8(0x1c2)]({'name':_0x1d8c64['Name'],'label':_0x1d8c64[_0x133ae8(0x1d3)]});}),_0x108fbc;}export async function getWfLayers(_0x406047){const _0x224031=a0_0x1463,_0x18a6e5=await getWFSCapabilities(_0x406047);let _0x19a5fc=[],_0x30c895=_0x18a6e5[_0x224031(0x1a8)](_0x224031(0x1b8))[0x0][_0x224031(0x1db)],_0x45ffa4;for(let _0x141229=0x0,_0x21abec=_0x30c895['length'];_0x141229<_0x21abec;_0x141229++){let _0x16f548={'name':'','label':''};for(let _0x1dfa36=0x0,_0x21f0c3=_0x30c895[_0x141229][_0x224031(0x1db)][_0x224031(0x1c3)];_0x1dfa36<_0x21f0c3;_0x1dfa36++){if(_0x30c895[_0x141229][_0x224031(0x1db)][_0x1dfa36][_0x224031(0x1e2)]===_0x224031(0x1a4)){const _0x1b2c97=_0x30c895[_0x141229][_0x224031(0x1db)][_0x1dfa36]['innerHTML'][_0x224031(0x1f9)]();_0x16f548['name']=_0x1b2c97;}else{if(_0x30c895[_0x141229][_0x224031(0x1db)][_0x1dfa36][_0x224031(0x1e2)]==='Title'){const _0x2765a4=_0x30c895[_0x141229][_0x224031(0x1db)][_0x1dfa36]['innerHTML'][_0x224031(0x1f9)]();_0x16f548[_0x224031(0x1cc)]=_0x2765a4;}}}_0x16f548['name']!==''&&_0x16f548[_0x224031(0x1cc)]!==''&&_0x19a5fc[_0x224031(0x1c2)](_0x16f548);}return _0x19a5fc;}function a0_0x1463(_0x5a309a,_0x144850){const _0x2ceae6=a0_0x2cea();return a0_0x1463=function(_0x1463a6,_0x27898e){_0x1463a6=_0x1463a6-0x1a3;let _0x5e51c9=_0x2ceae6[_0x1463a6];return _0x5e51c9;},a0_0x1463(_0x5a309a,_0x144850);}export async function getArcgisDynamicLayers(_0x492b70){const _0xb28485=a0_0x1463;let _0x4488b8=addArgument(_0x492b70,'f',_0xb28485(0x1ae));const _0x498242=await a0_0x127fd4[_0xb28485(0x1c0)](_0x4488b8);let _0x4cc8ed=[];return _0x498242['data'][_0xb28485(0x1c6)][_0xb28485(0x1b4)](_0x30f2cd=>{const _0x164b2c=_0xb28485;_0x4cc8ed[_0x164b2c(0x1c2)]({'name':_0x30f2cd['id'][_0x164b2c(0x1f9)](),'label':_0x30f2cd[_0x164b2c(0x1f7)]});}),_0x4cc8ed;}export async function getArcgisDynamicLayerFields(_0x2db68f,_0x490808){const _0xa9f2a6=a0_0x1463;let _0x5290bd=appendPath(_0x2db68f,_0x490808);_0x5290bd=addArgument(_0x5290bd,'f',_0xa9f2a6(0x1ae));const _0x5982cb=await a0_0x127fd4[_0xa9f2a6(0x1c0)](_0x5290bd);let _0x21120e=[];return _0x5982cb[_0xa9f2a6(0x1bd)][_0xa9f2a6(0x1da)][_0xa9f2a6(0x1b4)](_0xbb4e8b=>{const _0x37007e=_0xa9f2a6;let _0x50497d=0x1;switch(_0xbb4e8b[_0x37007e(0x1d8)]){case _0x37007e(0x1f0):_0x50497d=0x1;break;case _0x37007e(0x1f8):case _0x37007e(0x1df):case'esriFieldTypeOID':_0x50497d=0x2;break;case _0x37007e(0x1b0):_0x50497d=0x3;break;case _0x37007e(0x1e7):_0x50497d=0x4;break;case _0x37007e(0x1af):_0x50497d=0x6;break;default:_0x50497d=0x1;break;}_0x21120e[_0x37007e(0x1c2)]({'name':_0xbb4e8b[_0x37007e(0x1f7)],'aliasName':_0xbb4e8b[_0x37007e(0x1ea)],'fieldType':_0x50497d,'fieldTypeName':_0xbb4e8b[_0x37007e(0x1d8)],'fieldLength':_0xbb4e8b[_0x37007e(0x1c3)],'iDisplay':!![]});}),_0x21120e;}export async function getSourceLayerFields(_0x34a4d9,_0x391bc8,_0x52299b){const _0x233b58=a0_0x1463;let _0x13e94c=[];switch(_0x52299b){case'arcgis-dynamic':case'arcgis-feature':_0x13e94c=await getArcgisDynamicLayerFields(_0x34a4d9,_0x391bc8);break;case'geoserver-wms':case _0x233b58(0x1dc):_0x13e94c=await getWmsLayerFields(_0x34a4d9,_0x391bc8);break;default:break;}return _0x13e94c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x411a(_0x5d4b01,_0x35423e){const _0x4838fb=a1_0x4838();return a1_0x411a=function(_0x411ae5,_0xeaf8ae){_0x411ae5=_0x411ae5-0x154;let _0x5fa77d=_0x4838fb[_0x411ae5];return _0x5fa77d;},a1_0x411a(_0x5d4b01,_0x35423e);}const a1_0x237a55=a1_0x411a;function a1_0x4838(){const _0x1f2755=['2212176qdvLKL','7neUZfI','set','controls','84ASAtok','delete','245866sFdDVy','1733646fbiBbl','get','30oAnWdD','forEach','removeControl','map','3022201KgDzDY','name','2100537iYoOex','4729920FFgdca','has','addControl','213695WfWzKR'];a1_0x4838=function(){return _0x1f2755;};return a1_0x4838();}(function(_0x996777,_0x42b11c){const _0x3ba5af=a1_0x411a,_0x2c7e0b=_0x996777();while(!![]){try{const _0x3cdc55=parseInt(_0x3ba5af(0x160))/0x1*(-parseInt(_0x3ba5af(0x165))/0x2)+parseInt(_0x3ba5af(0x166))/0x3+parseInt(_0x3ba5af(0x15f))/0x4+parseInt(_0x3ba5af(0x15e))/0x5*(-parseInt(_0x3ba5af(0x163))/0x6)+-parseInt(_0x3ba5af(0x158))/0x7+parseInt(_0x3ba5af(0x15b))/0x8+parseInt(_0x3ba5af(0x15a))/0x9*(parseInt(_0x3ba5af(0x154))/0xa);if(_0x3cdc55===_0x42b11c)break;else _0x2c7e0b['push'](_0x2c7e0b['shift']());}catch(_0x4a2f34){_0x2c7e0b['push'](_0x2c7e0b['shift']());}}}(a1_0x4838,0x81d0d));export default class ControlManager{constructor(_0x4ab305){const _0x1e1867=a1_0x411a;this[_0x1e1867(0x157)]=_0x4ab305,this['controls']=new Map();}[a1_0x237a55(0x15d)](_0x12a071,_0x5756ff){const _0x49d58f=a1_0x237a55;this[_0x49d58f(0x162)][_0x49d58f(0x15c)](_0x12a071)&&this[_0x49d58f(0x156)](_0x12a071),_0x5756ff['set'](_0x49d58f(0x159),_0x12a071),this[_0x49d58f(0x162)][_0x49d58f(0x161)](_0x12a071,_0x5756ff),this['map'][_0x49d58f(0x15d)](_0x5756ff);}[a1_0x237a55(0x156)](_0x49592d){const _0x29623d=a1_0x237a55,_0x36f04a=this[_0x29623d(0x162)][_0x29623d(0x167)](_0x49592d);_0x36f04a&&(this[_0x29623d(0x157)][_0x29623d(0x156)](_0x36f04a),this[_0x29623d(0x162)][_0x29623d(0x164)](_0x49592d));}['removeAllControls'](){const _0x36ef85=a1_0x237a55;this[_0x36ef85(0x162)][_0x36ef85(0x155)](_0x240af1=>{const _0x527c91=_0x36ef85;this[_0x527c91(0x157)][_0x527c91(0x156)](_0x240af1);}),this[_0x36ef85(0x162)]['clear']();}['getControl'](_0x3de1e7){const _0x5c636=a1_0x237a55;return this[_0x5c636(0x162)][_0x5c636(0x167)](_0x3de1e7);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x5a7dd5=a3_0x4ed3;(function(_0x6ce9a5,_0x10d96c){const _0x174303=a3_0x4ed3,_0x4a988f=_0x6ce9a5();while(!![]){try{const _0x25d342=-parseInt(_0x174303(0x1dd))/0x1*(parseInt(_0x174303(0x1e2))/0x2)+parseInt(_0x174303(0x1c2))/0x3+-parseInt(_0x174303(0x1cc))/0x4+-parseInt(_0x174303(0x1e6))/0x5*(parseInt(_0x174303(0x1d9))/0x6)+-parseInt(_0x174303(0x1b2))/0x7+-parseInt(_0x174303(0x1b4))/0x8*(parseInt(_0x174303(0x1e5))/0x9)+parseInt(_0x174303(0x1d7))/0xa*(parseInt(_0x174303(0x1c1))/0xb);if(_0x25d342===_0x10d96c)break;else _0x4a988f['push'](_0x4a988f['shift']());}catch(_0x471114){_0x4a988f['push'](_0x4a988f['shift']());}}}(a3_0x5494,0x6bc33));import{Control}from'ol/control';import{getColor}from'../style/common';function a3_0x5494(){const _0x4d1230=['Polygon','fill-opacity','legend','url','<div\x20class=\x22ol-legend-item-title\x22>','175150rDNQET','ol-legend-container','12hXCjeg','Point','innerHTML','setMap','3viGclh','createElement','createDivByLegendJson','title','showLegend','464066HgWvlk','\x22\x20/></div>','<div\x20class=\x22legend-layer-title\x22>','1006839MPLrje','1307620jrTduS','ol-legend-item-container','fill','className','frameState','<div\x20class=\x22ol-legend-icon-size\x20ol-legend-item-polygon\x22\x20style=\x22','2440515gZtpeD','ol-legend-control\x20','56oJIFgq','stroke','div','rules','\x22></div>','background-color:','<div\x20class=\x22ol-legend-title\x22>','Line','ol-legend-layer','</div>','px\x20solid\x20','init','render','1925DScdpp','856215yWxEOs','stroke-opacity','layerInfos','<div\x20class=\x22ol-legend-icon-size\x20ol-legend-item-line\x22\x20style=\x22','element','<img\x20src=\x22','appendChild','stroke-width','symbolizers','length','2232984fMnaYq','imgUrl',';height:','<div\x20class=\x22ol-legend-icon-size\x20ol-legend-item-img\x22><img\x20src=\x22','\x22\x20/>','ol-legend-item'];a3_0x5494=function(){return _0x4d1230;};return a3_0x5494();}import{getLayerLegend}from'../utils/LayerUtil';function a3_0x4ed3(_0x24aa82,_0x4e88ba){const _0x5494db=a3_0x5494();return a3_0x4ed3=function(_0x4ed3e3,_0x388fc4){_0x4ed3e3=_0x4ed3e3-0x1b2;let _0x3cec3d=_0x5494db[_0x4ed3e3];return _0x3cec3d;},a3_0x4ed3(_0x24aa82,_0x4e88ba);}export default class LegendControl extends Control{constructor(_0x39a83c){const _0x6d00c=a3_0x4ed3;_0x39a83c=_0x39a83c||{};if(!_0x39a83c['element']){const _0x4d0f81=document['createElement'](_0x6d00c(0x1b6));_0x39a83c[_0x6d00c(0x1c6)]=_0x4d0f81,_0x4d0f81[_0x6d00c(0x1e9)]=_0x6d00c(0x1b3)+_0x39a83c[_0x6d00c(0x1e9)];}super(_0x39a83c),this[_0x6d00c(0x1c4)]=_0x39a83c[_0x6d00c(0x1c4)],this['title']=_0x39a83c[_0x6d00c(0x1e0)],this[_0x6d00c(0x1bf)]();}async['init'](){const _0x1a94ed=a3_0x4ed3,_0x305cf4=this[_0x1a94ed(0x1c6)];this['title']&&(_0x305cf4[_0x1a94ed(0x1db)]=_0x1a94ed(0x1ba)+this['title']+_0x1a94ed(0x1bd));if(!this[_0x1a94ed(0x1c4)]||this[_0x1a94ed(0x1c4)][_0x1a94ed(0x1cb)]==0x0)return;const _0x2fc8ad=document[_0x1a94ed(0x1de)](_0x1a94ed(0x1b6));_0x2fc8ad[_0x1a94ed(0x1e9)]=_0x1a94ed(0x1d8);for(let _0x4b6499=0x0;_0x4b6499<this[_0x1a94ed(0x1c4)][_0x1a94ed(0x1cb)];_0x4b6499++){const _0x551075=this[_0x1a94ed(0x1c4)][_0x4b6499];if(!_0x551075[_0x1a94ed(0x1e1)]||!_0x551075[_0x1a94ed(0x1d5)])continue;if(_0x551075[_0x1a94ed(0x1d4)]&&_0x551075[_0x1a94ed(0x1d4)][_0x1a94ed(0x1cb)]>0x0)for(let _0x85d7a5=0x0;_0x85d7a5<_0x551075[_0x1a94ed(0x1d4)][_0x1a94ed(0x1cb)];_0x85d7a5++){const _0x3bf6bf=_0x551075[_0x1a94ed(0x1d4)][_0x85d7a5],_0x14c568=document[_0x1a94ed(0x1de)](_0x1a94ed(0x1b6));_0x14c568[_0x1a94ed(0x1e9)]='ol-legend-layer',_0x14c568[_0x1a94ed(0x1db)]+='<div\x20class=\x22legend-layer-title\x22>'+_0x3bf6bf['title']+_0x1a94ed(0x1bd);const _0x1aaf97=this[_0x1a94ed(0x1df)](_0x3bf6bf);_0x1aaf97&&_0x14c568[_0x1a94ed(0x1c8)](_0x1aaf97),_0x2fc8ad[_0x1a94ed(0x1c8)](_0x14c568);}else{const _0x368f42=await getLayerLegend(_0x551075);if(_0x368f42&&_0x368f42[_0x1a94ed(0x1cb)]>0x0)for(let _0xdbb344=0x0;_0xdbb344<_0x368f42[_0x1a94ed(0x1cb)];_0xdbb344++){const _0x3fcf72=_0x368f42[_0xdbb344],_0x5946c2=document[_0x1a94ed(0x1de)](_0x1a94ed(0x1b6));_0x5946c2['className']=_0x1a94ed(0x1bc),_0x5946c2[_0x1a94ed(0x1db)]+=_0x1a94ed(0x1e4)+_0x3fcf72['title']+'</div>';const _0x5e3d3b=this[_0x1a94ed(0x1df)](_0x3fcf72);_0x5e3d3b&&_0x5946c2['appendChild'](_0x5e3d3b),_0x2fc8ad[_0x1a94ed(0x1c8)](_0x5946c2);}}}this['element'][_0x1a94ed(0x1c8)](_0x2fc8ad);}[a3_0x5a7dd5(0x1df)](_0xd53d7b){const _0x48df99=a3_0x5a7dd5;if(!_0xd53d7b||(!_0xd53d7b[_0x48df99(0x1b7)]||_0xd53d7b[_0x48df99(0x1b7)][_0x48df99(0x1cb)]==0x0)&&!_0xd53d7b[_0x48df99(0x1d5)])return;const _0x4f6389=document[_0x48df99(0x1de)]('div');_0x4f6389[_0x48df99(0x1e9)]=_0x48df99(0x1e7);if(_0xd53d7b[_0x48df99(0x1d5)]){const _0x19b72b=document['createElement'](_0x48df99(0x1b6));return _0x19b72b[_0x48df99(0x1e9)]=_0x48df99(0x1d1),_0x19b72b[_0x48df99(0x1db)]+=_0x48df99(0x1c7)+_0xd53d7b['url']+_0x48df99(0x1d0),_0x4f6389['appendChild'](_0x19b72b),_0x4f6389;}for(let _0x5723c8=0x0;_0x5723c8<_0xd53d7b[_0x48df99(0x1b7)][_0x48df99(0x1cb)];_0x5723c8++){const _0x41918c=_0xd53d7b[_0x48df99(0x1b7)][_0x5723c8];if(!_0x41918c||!_0x41918c[_0x48df99(0x1ca)]||_0x41918c[_0x48df99(0x1ca)][_0x48df99(0x1cb)]==0x0)continue;const _0xdcd9ed=document['createElement'](_0x48df99(0x1b6));_0xdcd9ed[_0x48df99(0x1e9)]=_0x48df99(0x1d1);const _0x12f4f8=_0x41918c[_0x48df99(0x1ca)][0x0];if(_0x12f4f8[_0x48df99(0x1d2)]){let _0x427290='';if(_0x12f4f8[_0x48df99(0x1d2)][_0x48df99(0x1b5)]){const _0xfc29aa=getColor(_0x12f4f8['Polygon'][_0x48df99(0x1b5)],_0x12f4f8[_0x48df99(0x1d2)][_0x48df99(0x1c3)]?_0x12f4f8[_0x48df99(0x1d2)][_0x48df99(0x1c3)]-0x0:0x1);_0x427290='border:\x20'+_0x12f4f8[_0x48df99(0x1d2)][_0x48df99(0x1c9)]+_0x48df99(0x1be)+_0xfc29aa+';';}if(_0x12f4f8[_0x48df99(0x1d2)][_0x48df99(0x1e8)]){const _0x38f738=getColor(_0x12f4f8[_0x48df99(0x1d2)][_0x48df99(0x1e8)],_0x12f4f8[_0x48df99(0x1d2)][_0x48df99(0x1d3)]?_0x12f4f8['Polygon'][_0x48df99(0x1d3)]-0x0:0x1);_0x427290+='background-color:\x20'+_0x38f738+';';}_0xdcd9ed['innerHTML']+=_0x48df99(0x1eb)+_0x427290+_0x48df99(0x1b8);}else{if(_0x12f4f8['Line']){let _0x524df6='';if(_0x12f4f8['Line'][_0x48df99(0x1b5)]){const _0x4783ff=getColor(_0x12f4f8[_0x48df99(0x1bb)]['stroke'],_0x12f4f8[_0x48df99(0x1bb)][_0x48df99(0x1c3)]?_0x12f4f8[_0x48df99(0x1bb)][_0x48df99(0x1c3)]-0x0:0x1);_0x524df6=_0x48df99(0x1b9)+_0x4783ff+_0x48df99(0x1ce)+_0x12f4f8[_0x48df99(0x1bb)][_0x48df99(0x1c9)]+'px';}_0xdcd9ed['innerHTML']+=_0x48df99(0x1c5)+_0x524df6+_0x48df99(0x1b8);}else{if(_0x12f4f8[_0x48df99(0x1da)]){}else _0x12f4f8['imgUrl']&&(_0xdcd9ed['innerHTML']+=_0x48df99(0x1cf)+_0x12f4f8[_0x48df99(0x1cd)]+_0x48df99(0x1e3));}}_0xdcd9ed[_0x48df99(0x1db)]+=_0x48df99(0x1d6)+_0x41918c[_0x48df99(0x1e0)]+_0x48df99(0x1bd),_0x4f6389['appendChild'](_0xdcd9ed);}return _0x4f6389;}[a3_0x5a7dd5(0x1dc)](_0x916928){const _0x56ed5b=a3_0x5a7dd5;if(!_0x916928){}super[_0x56ed5b(0x1dc)](_0x916928);}[a3_0x5a7dd5(0x1c0)](_0x8aaa59){const _0x113016=a3_0x5a7dd5,_0x1fa7ad=_0x8aaa59[_0x113016(0x1ea)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a4_0x10c6(_0x10b413,_0x2ce498){const _0x54bdd2=a4_0x54bd();return a4_0x10c6=function(_0x10c6d9,_0x496992){_0x10c6d9=_0x10c6d9-0x17c;let _0x3d9bb5=_0x54bdd2[_0x10c6d9];return _0x3d9bb5;},a4_0x10c6(_0x10b413,_0x2ce498);}const a4_0x46653d=a4_0x10c6;(function(_0x498f88,_0x4ad06e){const _0x1703de=a4_0x10c6,_0x137e43=_0x498f88();while(!![]){try{const _0x3e2681=-parseInt(_0x1703de(0x1a5))/0x1*(-parseInt(_0x1703de(0x181))/0x2)+-parseInt(_0x1703de(0x186))/0x3*(-parseInt(_0x1703de(0x188))/0x4)+-parseInt(_0x1703de(0x197))/0x5+-parseInt(_0x1703de(0x18d))/0x6*(-parseInt(_0x1703de(0x1b0))/0x7)+parseInt(_0x1703de(0x18e))/0x8*(parseInt(_0x1703de(0x195))/0x9)+parseInt(_0x1703de(0x18a))/0xa+-parseInt(_0x1703de(0x19c))/0xb;if(_0x3e2681===_0x4ad06e)break;else _0x137e43['push'](_0x137e43['shift']());}catch(_0x46be10){_0x137e43['push'](_0x137e43['shift']());}}}(a4_0x54bd,0x5ea9e));import{format,wrapX}from'ol/coordinate';import{degreesToStringHDMS}from'../utils/StringUtil';import a4_0x40fb45 from'ol/pointer/EventType.js';import{getSpheroidProjection,isSpheroid}from'../utils/RegisterProjUtil';import{listen}from'ol/events';import{Control}from'ol/control';import{getTransformFromProjections,getUserProjection,identityTransform}from'ol/proj';const PROJECTION=a4_0x46653d(0x189),COORDINATE_FORMAT='coordinateFormat';export default class MousePositionControl extends Control{constructor(_0x2a8c6a){const _0x40c85d=a4_0x46653d;_0x2a8c6a=_0x2a8c6a||{};if(!_0x2a8c6a[_0x40c85d(0x1a2)]){const _0x494f5c=document[_0x40c85d(0x190)]('div');_0x2a8c6a[_0x40c85d(0x1a2)]=_0x494f5c;}_0x2a8c6a[_0x40c85d(0x1a2)]['className']=_0x2a8c6a[_0x40c85d(0x1a0)]==undefined?_0x40c85d(0x1a8):_0x2a8c6a[_0x40c85d(0x1a0)],super(_0x2a8c6a),this['showSpheroid']=_0x2a8c6a[_0x40c85d(0x187)]===undefined?![]:_0x2a8c6a[_0x40c85d(0x187)],this[_0x40c85d(0x1ac)]=_0x2a8c6a['fractionDigits']===undefined?0x2:_0x2a8c6a[_0x40c85d(0x1ac)],this['renderOnMouseOut_']=_0x2a8c6a['placeholder']!==undefined,this[_0x40c85d(0x17e)]=_0x2a8c6a[_0x40c85d(0x1a3)]!==undefined?_0x2a8c6a[_0x40c85d(0x1a3)]:_0x40c85d(0x1a7),this['renderedHTML_']=_0x2a8c6a[_0x40c85d(0x1a2)]['innerHTML'],this[_0x40c85d(0x19d)]=!![];}[a4_0x46653d(0x18b)](){const _0x73ae00=a4_0x46653d;this[_0x73ae00(0x19b)]=undefined;}['getCoordinateFormat'](){return this['get'](COORDINATE_FORMAT);}[a4_0x46653d(0x18f)](_0x112fda){const _0x3ab2c1=a4_0x46653d;this[_0x3ab2c1(0x199)](COORDINATE_FORMAT,_0x112fda);}['getProjection'](){const _0x75e41=a4_0x46653d;return this[_0x75e41(0x19a)](PROJECTION);}['setProjection'](_0x275a24){const _0x3ccfc5=a4_0x46653d;this[_0x3ccfc5(0x199)](PROJECTION,_0x275a24);}['handleMouseMove'](_0x39db38){const _0x49b062=a4_0x46653d,_0x23cf2=this[_0x49b062(0x194)]();this[_0x49b062(0x185)](_0x23cf2===null||_0x23cf2===void 0x0?void 0x0:_0x23cf2[_0x49b062(0x193)](_0x39db38));}[a4_0x46653d(0x191)](_0xee2f88){const _0x562008=a4_0x46653d;this[_0x562008(0x185)](null);}[a4_0x46653d(0x18c)](_0x4e40f0){const _0x1fdf99=a4_0x46653d;super[_0x1fdf99(0x18c)](_0x4e40f0);if(_0x4e40f0){const _0xf5a6ae=isSpheroid(_0x4e40f0[_0x1fdf99(0x1a4)]()[_0x1fdf99(0x180)]());let _0x2c0c42=_0x4e40f0[_0x1fdf99(0x1a4)]()['getProjection'](),_0x2a757f=this['createStringHDMS'];if(!_0xf5a6ae){if(this[_0x1fdf99(0x187)]){const _0x3a6a3c=getSpheroidProjection(_0x4e40f0[_0x1fdf99(0x1a4)]()[_0x1fdf99(0x180)]());_0x3a6a3c&&(_0x2c0c42=_0x3a6a3c);}else _0x2a757f=this[_0x1fdf99(0x1af)];}this[_0x1fdf99(0x1ab)](_0x2c0c42),this[_0x1fdf99(0x18f)](_0x2a757f(this[_0x1fdf99(0x1ac)]));const _0x1d5429=_0x4e40f0[_0x1fdf99(0x19f)]();this[_0x1fdf99(0x17d)][_0x1fdf99(0x1ad)](listen(_0x1d5429,a4_0x40fb45[_0x1fdf99(0x182)],this['handleMouseMove'],this)),this[_0x1fdf99(0x17c)]&&this[_0x1fdf99(0x17d)]['push'](listen(_0x1d5429,a4_0x40fb45[_0x1fdf99(0x198)],this[_0x1fdf99(0x191)],this)),this[_0x1fdf99(0x185)](null);}}[a4_0x46653d(0x185)](_0xd2a11){const _0x591016=a4_0x46653d;let _0x1e95c4=this[_0x591016(0x17e)];const _0x378639=this[_0x591016(0x194)]();if(_0xd2a11&&this[_0x591016(0x17f)]&&_0x378639){if(!this[_0x591016(0x19b)]){const _0x1f63c6=this[_0x591016(0x180)]();_0x1f63c6?this[_0x591016(0x19b)]=getTransformFromProjections(this['mapProjection_'],_0x1f63c6):this[_0x591016(0x19b)]=identityTransform;}const _0x13ce7d=_0x378639['getCoordinateFromPixelInternal'](_0xd2a11);if(_0x13ce7d){const _0x188fa6=getUserProjection();_0x188fa6&&(this[_0x591016(0x19b)]=getTransformFromProjections(this[_0x591016(0x17f)],_0x188fa6));this['transform_'](_0x13ce7d,_0x13ce7d,undefined);if(this[_0x591016(0x19d)]){const _0x271405=_0x188fa6||this['getProjection']()||this[_0x591016(0x17f)];wrapX(_0x13ce7d,_0x271405);}const _0x438c0c=this['getCoordinateFormat']();_0x438c0c?_0x1e95c4=_0x438c0c(_0x13ce7d):_0x1e95c4=_0x13ce7d[_0x591016(0x1a9)]();}}(!this['renderedHTML_']||_0x1e95c4!==this[_0x591016(0x183)])&&(this[_0x591016(0x1a2)][_0x591016(0x1aa)]=_0x1e95c4,this[_0x591016(0x183)]=_0x1e95c4);}[a4_0x46653d(0x1ae)](_0x2fc93e){const _0x210342=a4_0x46653d,_0x1685e8=_0x2fc93e[_0x210342(0x19e)];!_0x1685e8?this[_0x210342(0x17f)]=undefined:this['mapProjection_']!=_0x1685e8['viewState'][_0x210342(0x189)]&&(this[_0x210342(0x17f)]=_0x1685e8[_0x210342(0x192)]['projection'],this[_0x210342(0x19b)]=undefined);}[a4_0x46653d(0x1af)](_0x6e1593){return function(_0xfd4418){const _0x39cea5=a4_0x10c6;return format(_0xfd4418,_0x39cea5(0x196),_0x6e1593);};}[a4_0x46653d(0x184)](_0x15849c){return function(_0x2c13b7){const _0x45c15a=a4_0x10c6;if(_0x2c13b7)return _0x45c15a(0x1a1)+degreesToStringHDMS(_0x2c13b7[0x0],_0x15849c)+'\x20'+_0x45c15a(0x1a6)+degreesToStringHDMS(_0x2c13b7[0x1],_0x15849c);};}}function a4_0x54bd(){const _0xde9dc1=['renderedHTML_','createStringHDMS','updateHTML_','1509dhzVoF','showSpheroid','876HIlDgv','projection','299600NBcmFI','handleProjectionChanged_','setMap','438uoCZKr','711104UWnTGJ','setCoordinateFormat','createElement','handleMouseOut','viewState','getEventPixel','getMap','72FEoHjs','X:{x}\x20Y:{y}','1792540JjUDvN','POINTEROUT','set','get','transform_','9169380khSlCf','wrapX_','frameState','getViewport','className','经度:','element','placeholder','getView','118697TeiXxM','纬度:',' ','ol-mouse-position','toString','innerHTML','setProjection','fractionDigits','push','render','createStringXY','24339zmrqWo','renderOnMouseOut_','listenerKeys','placeholder_','mapProjection_','getProjection','8AlFnaQ','POINTERMOVE'];a4_0x54bd=function(){return _0xde9dc1;};return a4_0x54bd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a5_0xa527(_0x1843f3,_0x831138){const _0x5aec96=a5_0x5aec();return a5_0xa527=function(_0xa527c,_0xa88519){_0xa527c=_0xa527c-0x13a;let _0x51cf73=_0x5aec96[_0xa527c];return _0x51cf73;},a5_0xa527(_0x1843f3,_0x831138);}function a5_0x5aec(){const _0x251adb=['cursor','bindEvents','4679605zwcjbP','2582288CvHCGT','height','clientY','Left','element','className','1880UghNBT','996356gbHzKZ','div','8211nFZviJ','prerender','canvas','left','postrender','value','createElement','col-resize','getTargetElement','4314dWCBQu','27bJjPaT','rect','setMap','Right','context','render','style','unsetSwipeLayer','11510840gzFOhT','dockedVisible','top','pointerup','clip','swipeLayer','pointerdown','getCoordinateFromPixel','4025VBBtOo','_dockedVisible','swipeVa','width','_swipeLayer','isVertical','restore','log','clientX','getMap','addEventListener','549368znIMEE','disposeInternal','setSwipeLayer','getBoundingClientRect','input','row-resize'];a5_0x5aec=function(){return _0x251adb;};return a5_0x5aec();}const a5_0x4a679f=a5_0xa527;(function(_0xe9fad3,_0x442831){const _0x1ac2ae=a5_0xa527,_0x5a26ed=_0xe9fad3();while(!![]){try{const _0x7500f9=parseInt(_0x1ac2ae(0x13e))/0x1+parseInt(_0x1ac2ae(0x16e))/0x2+parseInt(_0x1ac2ae(0x140))/0x3*(-parseInt(_0x1ac2ae(0x13d))/0x4)+-parseInt(_0x1ac2ae(0x15a))/0x5*(parseInt(_0x1ac2ae(0x149))/0x6)+-parseInt(_0x1ac2ae(0x16d))/0x7+-parseInt(_0x1ac2ae(0x165))/0x8*(parseInt(_0x1ac2ae(0x14a))/0x9)+parseInt(_0x1ac2ae(0x152))/0xa;if(_0x7500f9===_0x442831)break;else _0x5a26ed['push'](_0x5a26ed['shift']());}catch(_0x567f3e){_0x5a26ed['push'](_0x5a26ed['shift']());}}}(a5_0x5aec,0xaa9f7));import{Control}from'ol/control';export default class SwipeLayerControl extends Control{constructor(_0x2a8bd5){const _0x100c76=a5_0xa527;_0x2a8bd5=_0x2a8bd5||{};if(!_0x2a8bd5['element']){const _0x34787f=document[_0x100c76(0x146)](_0x100c76(0x13f));_0x2a8bd5[_0x100c76(0x13b)]=_0x34787f,_0x34787f[_0x100c76(0x13c)]='ol-scroll-layer',(_0x2a8bd5[_0x100c76(0x153)]===_0x100c76(0x13a)||_0x2a8bd5[_0x100c76(0x153)]===_0x100c76(0x14d))&&(_0x34787f['className']='ol-scroll-layer\x20ol-scroll-layer-vertical');}super(_0x2a8bd5),this[_0x100c76(0x15c)]=0x32,this[_0x100c76(0x15f)]=![],this[_0x100c76(0x15e)]=_0x2a8bd5[_0x100c76(0x157)],this[_0x100c76(0x15b)]=_0x2a8bd5[_0x100c76(0x153)],this[_0x100c76(0x15f)]=_0x2a8bd5[_0x100c76(0x153)]===_0x100c76(0x13a)||_0x2a8bd5[_0x100c76(0x153)]==='Right',this[_0x100c76(0x16c)](this[_0x100c76(0x13b)]),this[_0x100c76(0x13b)]['addEventListener'](_0x100c76(0x169),()=>{const _0x3044e8=_0x100c76;var _0x300e89;const _0x132c22=this[_0x3044e8(0x13b)][_0x3044e8(0x145)];this[_0x3044e8(0x15c)]=_0x132c22,(_0x300e89=this[_0x3044e8(0x163)]())===null||_0x300e89===void 0x0?void 0x0:_0x300e89['render']();},![]),this['setSwipeLayer'](_0x2a8bd5[_0x100c76(0x157)]);}[a5_0x4a679f(0x167)](_0x567f59){const _0x993511=a5_0x4a679f;this['unsetSwipeLayer'](),_0x567f59&&(_0x567f59['on'](_0x993511(0x141),_0x163ebb=>this[_0x993511(0x141)](_0x163ebb)),_0x567f59['on'](_0x993511(0x144),_0x1f5b16=>this[_0x993511(0x144)](_0x1f5b16)),this[_0x993511(0x15e)]=_0x567f59);}[a5_0x4a679f(0x151)](){const _0x2d0e98=a5_0x4a679f;var _0x16afd7;this[_0x2d0e98(0x15e)]&&(this[_0x2d0e98(0x15c)]=0x64,(_0x16afd7=this['getMap']())===null||_0x16afd7===void 0x0?void 0x0:_0x16afd7[_0x2d0e98(0x14f)](),this[_0x2d0e98(0x15e)]['un'](_0x2d0e98(0x141),_0x35b2e6=>this[_0x2d0e98(0x141)](_0x35b2e6)),this[_0x2d0e98(0x15e)]['un'](_0x2d0e98(0x144),_0x1f8253=>this[_0x2d0e98(0x144)](_0x1f8253)));}[a5_0x4a679f(0x141)](_0x9074bc){const _0x1020d4=a5_0x4a679f,_0x31694b=_0x9074bc[_0x1020d4(0x14e)],_0x106678=_0x31694b===null||_0x31694b===void 0x0?void 0x0:_0x31694b['canvas'][_0x1020d4(0x15d)];if(!this[_0x1020d4(0x13b)]||!_0x106678||!_0x31694b)return;console[_0x1020d4(0x161)](this[_0x1020d4(0x15c)]);const _0x515b8e=_0x106678*this[_0x1020d4(0x15c)]/0x64;_0x31694b['save'](),_0x31694b['beginPath'](),_0x31694b[_0x1020d4(0x14b)](0x0,0x0,_0x515b8e,_0x31694b[_0x1020d4(0x142)]['height']),_0x31694b[_0x1020d4(0x156)]();}[a5_0x4a679f(0x144)](_0x330cd5){const _0x7254e0=a5_0x4a679f,_0x2bb2c5=_0x330cd5[_0x7254e0(0x14e)];_0x2bb2c5[_0x7254e0(0x160)]();}[a5_0x4a679f(0x14c)](_0x18a23f){const _0x2ae64c=a5_0x4a679f;!_0x18a23f&&this[_0x2ae64c(0x151)](),super[_0x2ae64c(0x14c)](_0x18a23f);}['dispose'](){this['unsetSwipeLayer']();}[a5_0x4a679f(0x166)](){const _0x3b8634=a5_0x4a679f;this[_0x3b8634(0x151)](),super['disposeInternal']();}['render'](_0x962821){}[a5_0x4a679f(0x16c)](_0x2333f7){const _0x4ce780=a5_0x4a679f;let _0x526927=![];_0x2333f7[_0x4ce780(0x164)](_0x4ce780(0x158),()=>{const _0x17a59e=_0x4ce780,_0x32e8c3=this[_0x17a59e(0x163)]();if(!_0x32e8c3)return;_0x526927=!![],_0x32e8c3[_0x17a59e(0x148)]()[_0x17a59e(0x150)][_0x17a59e(0x16b)]=this[_0x17a59e(0x15f)]?_0x17a59e(0x147):_0x17a59e(0x16a);}),document[_0x4ce780(0x164)]('pointermove',_0x435066=>{const _0x2b4d08=_0x4ce780;if(!_0x526927)return;const _0x49d403=this['getMap']();if(!_0x49d403)return;const _0x40d1de=_0x49d403[_0x2b4d08(0x148)]()[_0x2b4d08(0x168)](),_0x299d55=_0x49d403[_0x2b4d08(0x159)]([_0x435066[_0x2b4d08(0x162)]-_0x40d1de['left'],_0x435066[_0x2b4d08(0x170)]-_0x40d1de[_0x2b4d08(0x154)]]);this[_0x2b4d08(0x15f)]?(this['swipeVa']=(_0x435066[_0x2b4d08(0x162)]-_0x40d1de[_0x2b4d08(0x143)])/_0x40d1de[_0x2b4d08(0x15d)]*0x64,_0x2333f7[_0x2b4d08(0x150)][_0x2b4d08(0x143)]=this[_0x2b4d08(0x15c)]+'%'):_0x2333f7['style'][_0x2b4d08(0x154)]=(_0x435066[_0x2b4d08(0x170)]-_0x40d1de['top'])/_0x40d1de[_0x2b4d08(0x16f)]*0x64+'%',_0x49d403[_0x2b4d08(0x14f)]();}),document['addEventListener'](_0x4ce780(0x155),()=>{const _0x15df07=_0x4ce780;_0x526927=![];const _0x12d16a=this[_0x15df07(0x163)]();if(!_0x12d16a)return;_0x12d16a['getTargetElement']()[_0x15df07(0x150)][_0x15df07(0x16b)]='';});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6_0xfa65d8=a6_0x4b9e;(function(_0x5253da,_0xc68588){const _0x55051a=a6_0x4b9e,_0x4e0412=_0x5253da();while(!![]){try{const _0x14e8b4=-parseInt(_0x55051a(0xd0))/0x1*(-parseInt(_0x55051a(0xcc))/0x2)+-parseInt(_0x55051a(0xff))/0x3*(parseInt(_0x55051a(0xe7))/0x4)+parseInt(_0x55051a(0x106))/0x5+parseInt(_0x55051a(0xe6))/0x6+-parseInt(_0x55051a(0xe8))/0x7*(parseInt(_0x55051a(0xee))/0x8)+-parseInt(_0x55051a(0xdd))/0x9*(parseInt(_0x55051a(0xd1))/0xa)+parseInt(_0x55051a(0xe3))/0xb*(-parseInt(_0x55051a(0xb9))/0xc);if(_0x14e8b4===_0xc68588)break;else _0x4e0412['push'](_0x4e0412['shift']());}catch(_0x2ad7fb){_0x4e0412['push'](_0x4e0412['shift']());}}}(a6_0x140a,0xc840b));export function geoJSONToKml(_0x104d5f,_0x285f96){const _0x1f1292=a6_0x4b9e;return _0x285f96=_0x285f96||{'documentName':undefined,'documentDescription':undefined,'name':_0x1f1292(0xd5),'description':_0x1f1292(0xb8),'simplestyle':![],'timestamp':_0x1f1292(0x109)},_0x1f1292(0xc4)+tag(_0x1f1292(0xec),tag(_0x1f1292(0xcf),documentName(_0x285f96)+documentDescription(_0x285f96)+root(_0x104d5f,_0x285f96)),[[_0x1f1292(0xbc),_0x1f1292(0xbf)]]);}function feature(_0x31fa65,_0x230540){return function(_0x1f79df){const _0x29753b=a6_0x4b9e;if(!_0x1f79df[_0x29753b(0x100)]||!geometry[_0x29753b(0xbd)](_0x1f79df['geometry']))return'';const _0x439134=geometry['any'](_0x1f79df[_0x29753b(0xeb)]);if(!_0x439134)return'';let _0x3ecc26='',_0x25e653='';if(_0x31fa65['simplestyle']){const _0xc97396=hashStyle(_0x1f79df[_0x29753b(0x100)]);if(_0xc97396){if(geometry[_0x29753b(0xc6)](_0x1f79df[_0x29753b(0xeb)])&&hasMarkerStyle(_0x1f79df[_0x29753b(0x100)]))_0x230540['indexOf'](_0xc97396)===-0x1&&(_0x3ecc26=markerStyle(_0x1f79df[_0x29753b(0x100)],_0xc97396),_0x230540[_0x29753b(0x104)](_0xc97396)),_0x25e653=tag(_0x29753b(0xc9),'#'+_0xc97396);else(geometry[_0x29753b(0x10c)](_0x1f79df[_0x29753b(0xeb)])||geometry[_0x29753b(0xe4)](_0x1f79df[_0x29753b(0xeb)]))&&hasPolygonAndLineStyle(_0x1f79df[_0x29753b(0x100)])&&(_0x230540[_0x29753b(0xf0)](_0xc97396)===-0x1&&(_0x3ecc26=polygonAndLineStyle(_0x1f79df[_0x29753b(0x100)],_0xc97396),_0x230540['push'](_0xc97396)),_0x25e653=tag(_0x29753b(0xc9),'#'+_0xc97396));}}return _0x3ecc26+tag(_0x29753b(0xf2),name(_0x1f79df[_0x29753b(0x100)],_0x31fa65)+description(_0x1f79df[_0x29753b(0x100)],_0x31fa65)+extendeddata(_0x1f79df[_0x29753b(0x100)])+timestamp(_0x1f79df['properties'],_0x31fa65)+_0x439134+_0x25e653);};}function a6_0x140a(){const _0x46e095=['MultiLineString','length','timestamp','documentName','features','isPolygon','marker-color','type','<','stroke-width','toString','description','132wfBMXv','ff555555','fill','xmlns','valid','string','http://www.opengis.net/kml/2.2','call','LineStyle','Point','width','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>','&','isPoint','marker-size',''','styleUrl','GeometryCollection','geometries','5948JYItsJ','when','substr','Document','49FdIctI','151070tQaegO','<Data\x20name\x20=\x22','</value></Data>','isArray','name','FeatureCollection','fill-opacity','88555555','fraction','coordinates','Polygon','any','90vStagj','documentDescription','>','replace','TimeStamp','join','331133mgRemr','isLine','([&\x22<>\x27])','6535050WUwnPy','59524LdTCYI','10241yRZHsx','number','IconStyle','geometry','kml','stroke','184jjcXco','ExtendedData','indexOf','Data','Placemark','Feature','LinearRing','value','Icon','map','href','marker-symbol','LineString','stroke-opacity','[object\x20Object]','PolyStyle','Style','39VgWhzD','properties','MultiGeometry','outerBoundaryIs','toLowerCase','push','xunits','1473195lAIoBi'];a6_0x140a=function(){return _0x46e095;};return a6_0x140a();}function root(_0x17052d,_0x3a1dd0){const _0x4ae1cf=a6_0x4b9e;if(!_0x17052d[_0x4ae1cf(0x10e)])return'';const _0xfae96c=[];switch(_0x17052d[_0x4ae1cf(0x10e)]){case _0x4ae1cf(0xd6):if(!_0x17052d['features'])return'';return _0x17052d[_0x4ae1cf(0x10b)][_0x4ae1cf(0xf7)](feature(_0x3a1dd0,_0xfae96c))[_0x4ae1cf(0xe2)]('');case _0x4ae1cf(0xf3):return feature(_0x3a1dd0,_0xfae96c)(_0x17052d);default:return feature(_0x3a1dd0,_0xfae96c)({'type':_0x4ae1cf(0xf3),'geometry':_0x17052d,'properties':{}});}}function documentName(_0x552271){const _0xe0dc51=a6_0x4b9e;return _0x552271[_0xe0dc51(0x10a)]!==undefined?tag('name',_0x552271[_0xe0dc51(0x10a)]):'';}function documentDescription(_0x2b57d6){const _0xc0e59c=a6_0x4b9e;return _0x2b57d6[_0xc0e59c(0xde)]!==undefined?tag(_0xc0e59c(0xb8),_0x2b57d6[_0xc0e59c(0xde)]):'';}function name(_0x147069,_0x307a95){const _0x1c7204=a6_0x4b9e;return _0x147069[_0x307a95[_0x1c7204(0xd5)]]?tag(_0x1c7204(0xd5),encode(_0x147069[_0x307a95[_0x1c7204(0xd5)]])):'';}function a6_0x4b9e(_0x197aae,_0x24ce78){const _0x140af6=a6_0x140a();return a6_0x4b9e=function(_0x4b9e1e,_0x16566a){_0x4b9e1e=_0x4b9e1e-0xb5;let _0xd26ad9=_0x140af6[_0x4b9e1e];return _0xd26ad9;},a6_0x4b9e(_0x197aae,_0x24ce78);}function description(_0x4b892e,_0x1205de){const _0x4c0b57=a6_0x4b9e;return _0x4b892e[_0x1205de[_0x4c0b57(0xb8)]]?tag(_0x4c0b57(0xb8),encode(_0x4b892e[_0x1205de[_0x4c0b57(0xb8)]])):'';}function timestamp(_0xb5b6a0,_0x40f43f){const _0x21fd70=a6_0x4b9e;return _0xb5b6a0[_0x40f43f[_0x21fd70(0x109)]]?tag(_0x21fd70(0xe1),tag(_0x21fd70(0xcd),encode(_0xb5b6a0[_0x40f43f[_0x21fd70(0x109)]]))):'';}const geometry={'Point':function(_0x2dbfff){const _0x3809b0=a6_0x4b9e;return tag('Point',tag('coordinates',_0x2dbfff[_0x3809b0(0xda)][_0x3809b0(0xe2)](',')));},'LineString':function(_0x1cc0c1){const _0x314122=a6_0x4b9e;return tag('LineString',tag('coordinates',linearring(_0x1cc0c1[_0x314122(0xda)])));},'Polygon':function(_0x6c1825){const _0x2cf457=a6_0x4b9e;if(!_0x6c1825[_0x2cf457(0xda)]['length'])return'';const _0x1462c8=_0x6c1825[_0x2cf457(0xda)][0x0],_0xfe350c=_0x6c1825['coordinates']['slice'](0x1),_0x3f0905=tag(_0x2cf457(0x102),tag(_0x2cf457(0xf4),tag(_0x2cf457(0xda),linearring(_0x1462c8)))),_0x3b9e8e=_0xfe350c[_0x2cf457(0xf7)](function(_0x38a5bf){const _0xee0afc=_0x2cf457;return tag('innerBoundaryIs',tag(_0xee0afc(0xf4),tag(_0xee0afc(0xda),linearring(_0x38a5bf))));})[_0x2cf457(0xe2)]('');return tag(_0x2cf457(0xdb),_0x3f0905+_0x3b9e8e);},'MultiPoint':function(_0x10cbf5){const _0x649f5c=a6_0x4b9e;if(!_0x10cbf5[_0x649f5c(0xda)][_0x649f5c(0x108)])return'';return tag(_0x649f5c(0x101),_0x10cbf5[_0x649f5c(0xda)][_0x649f5c(0xf7)](function(_0x29463a){const _0x45df31=_0x649f5c;return geometry[_0x45df31(0xc2)]({'coordinates':_0x29463a});})[_0x649f5c(0xe2)](''));},'MultiPolygon':function(_0x498d2f){const _0x2b5b3f=a6_0x4b9e;if(!_0x498d2f[_0x2b5b3f(0xda)][_0x2b5b3f(0x108)])return'';return tag('MultiGeometry',_0x498d2f['coordinates']['map'](function(_0x3cefea){const _0x29d331=_0x2b5b3f;return geometry[_0x29d331(0xdb)]({'coordinates':_0x3cefea});})[_0x2b5b3f(0xe2)](''));},'MultiLineString':function(_0x31d0d5){const _0x5a78bc=a6_0x4b9e;if(!_0x31d0d5[_0x5a78bc(0xda)][_0x5a78bc(0x108)])return'';return tag(_0x5a78bc(0x101),_0x31d0d5[_0x5a78bc(0xda)][_0x5a78bc(0xf7)](function(_0x38674b){const _0x23089b=_0x5a78bc;return geometry[_0x23089b(0xfa)]({'coordinates':_0x38674b});})['join'](''));},'GeometryCollection':function(_0x2de1af){const _0xc3ac2f=a6_0x4b9e;return tag(_0xc3ac2f(0x101),_0x2de1af[_0xc3ac2f(0xcb)]['map'](geometry[_0xc3ac2f(0xdc)])['join'](''));},'valid':function(_0x47984e){const _0x9230d2=a6_0x4b9e;return _0x47984e&&_0x47984e['type']&&(_0x47984e[_0x9230d2(0xda)]||_0x47984e['type']===_0x9230d2(0xca)&&_0x47984e[_0x9230d2(0xcb)]&&_0x47984e[_0x9230d2(0xcb)]['every'](geometry['valid']));},'any':function(_0x33f665){const _0x4002bb=a6_0x4b9e;return geometry[_0x33f665[_0x4002bb(0x10e)]]?geometry[_0x33f665[_0x4002bb(0x10e)]](_0x33f665):'';},'isPoint':function(_0x41738d){const _0x2fa85c=a6_0x4b9e;return _0x41738d[_0x2fa85c(0x10e)]==='Point'||_0x41738d[_0x2fa85c(0x10e)]==='MultiPoint';},'isPolygon':function(_0x40216b){const _0x3f4293=a6_0x4b9e;return _0x40216b[_0x3f4293(0x10e)]===_0x3f4293(0xdb)||_0x40216b[_0x3f4293(0x10e)]==='MultiPolygon';},'isLine':function(_0x77959c){const _0x3382b4=a6_0x4b9e;return _0x77959c[_0x3382b4(0x10e)]===_0x3382b4(0xfa)||_0x77959c[_0x3382b4(0x10e)]===_0x3382b4(0x107);}};function linearring(_0x30025d){const _0x5c1f33=a6_0x4b9e;return _0x30025d[_0x5c1f33(0xf7)](function(_0x5124e5){const _0x271257=_0x5c1f33;return _0x5124e5[_0x271257(0xe2)](',');})['join']('\x20');}function extendeddata(_0x581f49){const _0x577aa7=a6_0x4b9e,_0x1f9e1b=[];for(const _0x21141a in _0x581f49){const _0x3f8705=_0x581f49[_0x21141a];isObject(_0x3f8705)?_0x1f9e1b[_0x577aa7(0x104)](_0x577aa7(0xd2)+_0x21141a+'\x22><value>'+JSON['stringify'](_0x3f8705)+_0x577aa7(0xd3)):_0x1f9e1b[_0x577aa7(0x104)](_0x577aa7(0xd2)+_0x21141a+'\x22><value>'+_0x3f8705+_0x577aa7(0xd3));}return tag(_0x577aa7(0xef),_0x1f9e1b[_0x577aa7(0xe2)](''));}function data(_0x3c062f){const _0x2b3964=a6_0x4b9e;return tag(_0x2b3964(0xf1),tag(_0x2b3964(0xf5),encode(_0x3c062f[0x1])),[['name',encode(_0x3c062f[0x0])]]);}function hasMarkerStyle(_0x4fe1e5){const _0x4bc217=a6_0x4b9e;return!!(_0x4fe1e5[_0x4bc217(0xc7)]||_0x4fe1e5[_0x4bc217(0xf9)]||_0x4fe1e5['marker-color']);}function markerStyle(_0x4b69ae,_0x4d3559){const _0x1eef88=a6_0x4b9e;return tag(_0x1eef88(0xfe),tag(_0x1eef88(0xea),tag(_0x1eef88(0xf6),tag(_0x1eef88(0xf8),iconUrl(_0x4b69ae))))+iconSize(_0x4b69ae),[['id',_0x4d3559]]);}function iconUrl(_0x3f02c7){const _0x2c6723=a6_0x4b9e;return _0x3f02c7[_0x2c6723(0xf9)];}function iconSize(_0x541041){const _0x38fd24=a6_0x4b9e;return tag('hotSpot','',[[_0x38fd24(0x105),_0x38fd24(0xd9)],['yunits',_0x38fd24(0xd9)],['x',0.5],['y',0.5]]);}function hasPolygonAndLineStyle(_0x492112){for(const _0x4a05eb in _0x492112){if({'stroke':!![],'stroke-opacity':!![],'stroke-width':!![],'fill':!![],'fill-opacity':!![]}[_0x4a05eb])return!![];}}function polygonAndLineStyle(_0x4c6ddc,_0x296c12){const _0x21db8e=a6_0x4b9e,_0x5399e7=tag(_0x21db8e(0xc1),[tag('color',hexToKmlColor(_0x4c6ddc[_0x21db8e(0xed)],_0x4c6ddc[_0x21db8e(0xfb)])||_0x21db8e(0xba))+tag(_0x21db8e(0xc3),_0x4c6ddc[_0x21db8e(0xb6)]===undefined?0x2:_0x4c6ddc[_0x21db8e(0xb6)])]);let _0x5a8caf='';return(_0x4c6ddc[_0x21db8e(0xbb)]||_0x4c6ddc[_0x21db8e(0xd7)])&&(_0x5a8caf=tag(_0x21db8e(0xfd),[tag('color',hexToKmlColor(_0x4c6ddc['fill'],_0x4c6ddc[_0x21db8e(0xd7)])||_0x21db8e(0xd8))])),tag('Style',_0x5399e7+_0x5a8caf,[['id',_0x296c12]]);}function hashStyle(_0x406b52){const _0x3c512a=a6_0x4b9e;let _0x1ec1a8='';return _0x406b52[_0x3c512a(0xf9)]&&(_0x1ec1a8=_0x1ec1a8+'ms'+_0x406b52['marker-symbol']),_0x406b52[_0x3c512a(0x10d)]&&(_0x1ec1a8=_0x1ec1a8+'mc'+_0x406b52[_0x3c512a(0x10d)][_0x3c512a(0xe0)]('#','')),_0x406b52[_0x3c512a(0xc7)]&&(_0x1ec1a8=_0x1ec1a8+'ms'+_0x406b52[_0x3c512a(0xc7)]),_0x406b52['stroke']&&(_0x1ec1a8=_0x1ec1a8+'s'+_0x406b52[_0x3c512a(0xed)][_0x3c512a(0xe0)]('#','')),_0x406b52[_0x3c512a(0xb6)]&&(_0x1ec1a8=_0x1ec1a8+'sw'+_0x406b52[_0x3c512a(0xb6)][_0x3c512a(0xb7)]()[_0x3c512a(0xe0)]('.','')),_0x406b52[_0x3c512a(0xfb)]&&(_0x1ec1a8=_0x1ec1a8+'mo'+_0x406b52[_0x3c512a(0xfb)]['toString']()[_0x3c512a(0xe0)]('.','')),_0x406b52[_0x3c512a(0xbb)]&&(_0x1ec1a8=_0x1ec1a8+'f'+_0x406b52['fill'][_0x3c512a(0xe0)]('#','')),_0x406b52[_0x3c512a(0xd7)]&&(_0x1ec1a8=_0x1ec1a8+'fo'+_0x406b52[_0x3c512a(0xd7)][_0x3c512a(0xb7)]()[_0x3c512a(0xe0)]('.','')),_0x1ec1a8;}function hexToKmlColor(_0x56781d,_0x8740f9){const _0x9730e0=a6_0x4b9e;if(typeof _0x56781d!==_0x9730e0(0xbe))return'';_0x56781d=_0x56781d[_0x9730e0(0xe0)]('#','')[_0x9730e0(0x103)]();if(_0x56781d[_0x9730e0(0x108)]===0x3)_0x56781d=_0x56781d[0x0]+_0x56781d[0x0]+_0x56781d[0x1]+_0x56781d[0x1]+_0x56781d[0x2]+_0x56781d[0x2];else{if(_0x56781d[_0x9730e0(0x108)]!==0x6)return'';}const _0x39aba7=_0x56781d[0x0]+_0x56781d[0x1],_0x53db57=_0x56781d[0x2]+_0x56781d[0x3],_0x27dfac=_0x56781d[0x4]+_0x56781d[0x5];let _0x278747='ff';return typeof _0x8740f9===_0x9730e0(0xe9)&&_0x8740f9>=0x0&&_0x8740f9<=0x1&&(_0x278747=(_0x8740f9*0xff)[_0x9730e0(0xb7)](0x10),_0x278747[_0x9730e0(0xf0)]('.')>-0x1&&(_0x278747=_0x278747[_0x9730e0(0xce)](0x0,_0x278747[_0x9730e0(0xf0)]('.'))),_0x278747['length']<0x2&&(_0x278747='0'+_0x278747)),_0x278747+_0x27dfac+_0x53db57+_0x39aba7;}export function isObject(_0x54908b){const _0x533ba5=a6_0x4b9e;return Object['prototype'][_0x533ba5(0xb7)][_0x533ba5(0xc0)](_0x54908b)===_0x533ba5(0xfc);}function encode(_0x12a7ae){const _0x564521=a6_0x4b9e;if(!_0x12a7ae)return'';return _0x12a7ae['toString']()[_0x564521(0xe0)](/&/g,_0x564521(0xc5))[_0x564521(0xe0)](/</g,_0x564521(0xb5))['replace'](/>/g,_0x564521(0xdf))[_0x564521(0xe0)](/"/g,'"');}function attr(_0x35ae48){const _0x9e940c=a6_0x4b9e;if(!Object['keys'](_0x35ae48)[_0x9e940c(0x108)])return'';return'\x20'+Object['keys'](_0x35ae48)[_0x9e940c(0xf7)](function(_0x1cc156){return _0x1cc156+'=\x22'+escape(_0x35ae48[_0x1cc156])+'\x22';})[_0x9e940c(0xe2)]('\x20');}const escape_map={'>':a6_0xfa65d8(0xdf),'<':a6_0xfa65d8(0xb5),'\x27':a6_0xfa65d8(0xc8),'\x22':'"','&':a6_0xfa65d8(0xc5)};function escape(_0x5d53cf,_0x1dc399){const _0x3ca2ca=a6_0xfa65d8;if(_0x5d53cf===null||_0x5d53cf===undefined)return;_0x1dc399=(_0x1dc399||'')[_0x3ca2ca(0xe0)](/[^&"<>\']/g,'');const _0x2e564a=_0x3ca2ca(0xe5)[_0x3ca2ca(0xe0)](new RegExp('['+_0x1dc399+']','g'),'');return _0x5d53cf['replace'](new RegExp(_0x2e564a,'g'),function(_0x4dbea1,_0x3c2aa2){return escape_map[_0x3c2aa2];});}function tag(_0x2396b5,_0x47647d,_0x15ff1d){const _0x333c62=a6_0xfa65d8;return(Array['isArray'](_0x47647d)||typeof _0x47647d===_0x333c62(0xbe))&&(_0x15ff1d=_0x47647d,_0x47647d={}),Array[_0x333c62(0xd4)](_0x15ff1d)&&(_0x15ff1d='\x0a'+_0x15ff1d['map'](function(_0x1179e1){return'\x20\x20'+_0x1179e1;})[_0x333c62(0xe2)]('\x0a')+'\x0a'),'<'+_0x2396b5+attr(_0x47647d)+'>'+_0x15ff1d+'</'+_0x2396b5+'>';}
|
|
1
|
+
const a6_0x1126af=a6_0x18be;(function(_0x8e57a1,_0x21d545){const _0x5561e6=a6_0x18be,_0x4a67cf=_0x8e57a1();while(!![]){try{const _0xffdec6=parseInt(_0x5561e6(0x22a))/0x1*(parseInt(_0x5561e6(0x1ed))/0x2)+parseInt(_0x5561e6(0x239))/0x3+parseInt(_0x5561e6(0x1ee))/0x4+parseInt(_0x5561e6(0x22d))/0x5*(-parseInt(_0x5561e6(0x23f))/0x6)+parseInt(_0x5561e6(0x222))/0x7+parseInt(_0x5561e6(0x1f2))/0x8+-parseInt(_0x5561e6(0x217))/0x9;if(_0xffdec6===_0x21d545)break;else _0x4a67cf['push'](_0x4a67cf['shift']());}catch(_0x125ce8){_0x4a67cf['push'](_0x4a67cf['shift']());}}}(a6_0x138d,0xb4b9b));export function geoJSONToKml(_0x53fcd3,_0x97976c){const _0x1e128b=a6_0x18be;return _0x97976c=_0x97976c||{'documentName':undefined,'documentDescription':undefined,'name':_0x1e128b(0x23d),'description':_0x1e128b(0x234),'simplestyle':![],'timestamp':_0x1e128b(0x20f)},_0x1e128b(0x219)+tag(_0x1e128b(0x20d),tag(_0x1e128b(0x235),documentName(_0x97976c)+documentDescription(_0x97976c)+root(_0x53fcd3,_0x97976c)),[[_0x1e128b(0x1fa),_0x1e128b(0x21d)]]);}function feature(_0x4d58d1,_0x56aa7e){return function(_0x224f5d){const _0x260052=a6_0x18be;if(!_0x224f5d[_0x260052(0x20c)]||!geometry[_0x260052(0x240)](_0x224f5d[_0x260052(0x20b)]))return'';const _0x474c98=geometry['any'](_0x224f5d[_0x260052(0x20b)]);if(!_0x474c98)return'';let _0x2a56c1='',_0x3587ed='';if(_0x4d58d1[_0x260052(0x1eb)]){const _0x5c6abb=hashStyle(_0x224f5d[_0x260052(0x20c)]);if(_0x5c6abb){if(geometry['isPoint'](_0x224f5d[_0x260052(0x20b)])&&hasMarkerStyle(_0x224f5d[_0x260052(0x20c)]))_0x56aa7e[_0x260052(0x214)](_0x5c6abb)===-0x1&&(_0x2a56c1=markerStyle(_0x224f5d[_0x260052(0x20c)],_0x5c6abb),_0x56aa7e[_0x260052(0x21c)](_0x5c6abb)),_0x3587ed=tag(_0x260052(0x1f5),'#'+_0x5c6abb);else(geometry['isPolygon'](_0x224f5d['geometry'])||geometry[_0x260052(0x22c)](_0x224f5d[_0x260052(0x20b)]))&&hasPolygonAndLineStyle(_0x224f5d[_0x260052(0x20c)])&&(_0x56aa7e[_0x260052(0x214)](_0x5c6abb)===-0x1&&(_0x2a56c1=polygonAndLineStyle(_0x224f5d[_0x260052(0x20c)],_0x5c6abb),_0x56aa7e[_0x260052(0x21c)](_0x5c6abb)),_0x3587ed=tag(_0x260052(0x1f5),'#'+_0x5c6abb));}}return _0x2a56c1+tag(_0x260052(0x200),name(_0x224f5d['properties'],_0x4d58d1)+description(_0x224f5d['properties'],_0x4d58d1)+extendeddata(_0x224f5d[_0x260052(0x20c)])+timestamp(_0x224f5d['properties'],_0x4d58d1)+_0x474c98+_0x3587ed);};}function root(_0x11a641,_0x54e6c5){const _0x48fcda=a6_0x18be;if(!_0x11a641[_0x48fcda(0x1f7)])return'';const _0x53eaf8=[];switch(_0x11a641[_0x48fcda(0x1f7)]){case'FeatureCollection':if(!_0x11a641[_0x48fcda(0x220)])return'';return _0x11a641[_0x48fcda(0x220)]['map'](feature(_0x54e6c5,_0x53eaf8))['join']('');case'Feature':return feature(_0x54e6c5,_0x53eaf8)(_0x11a641);default:return feature(_0x54e6c5,_0x53eaf8)({'type':_0x48fcda(0x229),'geometry':_0x11a641,'properties':{}});}}function documentName(_0xd8bb45){const _0x39c3ed=a6_0x18be;return _0xd8bb45[_0x39c3ed(0x224)]!==undefined?tag(_0x39c3ed(0x23d),_0xd8bb45['documentName']):'';}function documentDescription(_0x371af8){const _0xec93dd=a6_0x18be;return _0x371af8[_0xec93dd(0x236)]!==undefined?tag(_0xec93dd(0x234),_0x371af8[_0xec93dd(0x236)]):'';}function name(_0x4bda65,_0x2ee6b3){const _0x6afdc8=a6_0x18be;return _0x4bda65[_0x2ee6b3[_0x6afdc8(0x23d)]]?tag(_0x6afdc8(0x23d),encode(_0x4bda65[_0x2ee6b3[_0x6afdc8(0x23d)]])):'';}function description(_0x27a9ee,_0x7a0fde){const _0x37ee00=a6_0x18be;return _0x27a9ee[_0x7a0fde['description']]?tag(_0x37ee00(0x234),encode(_0x27a9ee[_0x7a0fde['description']])):'';}function timestamp(_0x39b12f,_0x10d908){const _0x4edfa1=a6_0x18be;return _0x39b12f[_0x10d908[_0x4edfa1(0x20f)]]?tag(_0x4edfa1(0x241),tag('when',encode(_0x39b12f[_0x10d908[_0x4edfa1(0x20f)]]))):'';}const geometry={'Point':function(_0x5b5909){const _0x51819e=a6_0x18be;return tag(_0x51819e(0x1fd),tag(_0x51819e(0x223),_0x5b5909[_0x51819e(0x223)][_0x51819e(0x1fb)](',')));},'LineString':function(_0x604349){const _0x5a9d4c=a6_0x18be;return tag('LineString',tag(_0x5a9d4c(0x223),linearring(_0x604349['coordinates'])));},'Polygon':function(_0x181ee5){const _0x469cd7=a6_0x18be;if(!_0x181ee5[_0x469cd7(0x223)]['length'])return'';const _0x4879de=_0x181ee5[_0x469cd7(0x223)][0x0],_0x3a3e5f=_0x181ee5[_0x469cd7(0x223)]['slice'](0x1),_0xd6aa30=tag(_0x469cd7(0x20a),tag(_0x469cd7(0x204),tag(_0x469cd7(0x223),linearring(_0x4879de)))),_0x5dc293=_0x3a3e5f[_0x469cd7(0x22b)](function(_0x3704e2){return tag('innerBoundaryIs',tag('LinearRing',tag('coordinates',linearring(_0x3704e2))));})['join']('');return tag(_0x469cd7(0x21a),_0xd6aa30+_0x5dc293);},'MultiPoint':function(_0xe59fe0){const _0x3927cc=a6_0x18be;if(!_0xe59fe0[_0x3927cc(0x223)]['length'])return'';return tag(_0x3927cc(0x23c),_0xe59fe0[_0x3927cc(0x223)][_0x3927cc(0x22b)](function(_0x28094f){return geometry['Point']({'coordinates':_0x28094f});})[_0x3927cc(0x1fb)](''));},'MultiPolygon':function(_0x899a43){const _0x52941a=a6_0x18be;if(!_0x899a43[_0x52941a(0x223)]['length'])return'';return tag(_0x52941a(0x23c),_0x899a43['coordinates'][_0x52941a(0x22b)](function(_0x4ce1cd){return geometry['Polygon']({'coordinates':_0x4ce1cd});})['join'](''));},'MultiLineString':function(_0x3e6894){const _0x3ffd82=a6_0x18be;if(!_0x3e6894[_0x3ffd82(0x223)][_0x3ffd82(0x228)])return'';return tag(_0x3ffd82(0x23c),_0x3e6894['coordinates'][_0x3ffd82(0x22b)](function(_0x5e493e){return geometry['LineString']({'coordinates':_0x5e493e});})['join'](''));},'GeometryCollection':function(_0xd4625c){const _0x4bb600=a6_0x18be;return tag(_0x4bb600(0x23c),_0xd4625c[_0x4bb600(0x205)]['map'](geometry['any'])[_0x4bb600(0x1fb)](''));},'valid':function(_0x485a03){const _0x4905f8=a6_0x18be;return _0x485a03&&_0x485a03[_0x4905f8(0x1f7)]&&(_0x485a03[_0x4905f8(0x223)]||_0x485a03[_0x4905f8(0x1f7)]==='GeometryCollection'&&_0x485a03['geometries']&&_0x485a03[_0x4905f8(0x205)]['every'](geometry['valid']));},'any':function(_0x2c8346){const _0x245707=a6_0x18be;return geometry[_0x2c8346['type']]?geometry[_0x2c8346[_0x245707(0x1f7)]](_0x2c8346):'';},'isPoint':function(_0x3d6533){const _0x2f62ce=a6_0x18be;return _0x3d6533['type']===_0x2f62ce(0x1fd)||_0x3d6533[_0x2f62ce(0x1f7)]===_0x2f62ce(0x202);},'isPolygon':function(_0x17fe8d){const _0x212879=a6_0x18be;return _0x17fe8d[_0x212879(0x1f7)]===_0x212879(0x21a)||_0x17fe8d['type']===_0x212879(0x206);},'isLine':function(_0x425682){const _0x381f60=a6_0x18be;return _0x425682['type']===_0x381f60(0x1f1)||_0x425682[_0x381f60(0x1f7)]==='MultiLineString';}};function linearring(_0x4ad85e){const _0x564918=a6_0x18be;return _0x4ad85e[_0x564918(0x22b)](function(_0x4b08d0){const _0x3581ee=_0x564918;return _0x4b08d0[_0x3581ee(0x1fb)](',');})[_0x564918(0x1fb)]('\x20');}function extendeddata(_0x5f0361){const _0x165b6f=a6_0x18be,_0x417fd8=[];for(const _0x4c9c42 in _0x5f0361){const _0xa07ef0=_0x5f0361[_0x4c9c42];isObject(_0xa07ef0)?_0x417fd8[_0x165b6f(0x21c)](_0x165b6f(0x207)+_0x4c9c42+_0x165b6f(0x21f)+JSON[_0x165b6f(0x1f4)](_0xa07ef0)+_0x165b6f(0x1f8)):_0x417fd8[_0x165b6f(0x21c)](_0x165b6f(0x207)+_0x4c9c42+_0x165b6f(0x21f)+_0xa07ef0+_0x165b6f(0x1f8));}return tag(_0x165b6f(0x1ff),_0x417fd8[_0x165b6f(0x1fb)](''));}function data(_0x9628f9){const _0x5ab2d1=a6_0x18be;return tag(_0x5ab2d1(0x233),tag('value',encode(_0x9628f9[0x1])),[[_0x5ab2d1(0x23d),encode(_0x9628f9[0x0])]]);}function hasMarkerStyle(_0x380904){const _0x3035a0=a6_0x18be;return!!(_0x380904[_0x3035a0(0x231)]||_0x380904[_0x3035a0(0x218)]||_0x380904['marker-color']);}function markerStyle(_0x5781e2,_0x3cd8e9){const _0x24cd73=a6_0x18be;return tag(_0x24cd73(0x225),tag(_0x24cd73(0x215),tag('Icon',tag(_0x24cd73(0x211),iconUrl(_0x5781e2))))+iconSize(_0x5781e2),[['id',_0x3cd8e9]]);}function iconUrl(_0x477650){const _0x2f18cf=a6_0x18be;return _0x477650[_0x2f18cf(0x218)];}function iconSize(_0x3e328f){const _0x24e3fe=a6_0x18be;return tag(_0x24e3fe(0x221),'',[[_0x24e3fe(0x238),_0x24e3fe(0x1f9)],[_0x24e3fe(0x1f6),_0x24e3fe(0x1f9)],['x',0.5],['y',0.5]]);}function hasPolygonAndLineStyle(_0x56bc46){for(const _0x199f01 in _0x56bc46){if({'stroke':!![],'stroke-opacity':!![],'stroke-width':!![],'fill':!![],'fill-opacity':!![]}[_0x199f01])return!![];}}function a6_0x138d(){const _0x199256=['TimeStamp','simplestyle','toString','50stkVha','3447664Gghetk','ff555555','prototype','LineString','10732808gSpOyb','fill-opacity','stringify','styleUrl','yunits','type','</value></Data>','fraction','xmlns','join','number','Point','([&\x22<>\x27])','ExtendedData','Placemark','keys','MultiPoint','color','LinearRing','geometries','MultiPolygon','<Data\x20name\x20=\x22','[object\x20Object]','toLowerCase','outerBoundaryIs','geometry','properties','kml','string','timestamp','<','href','replace','&','indexOf','IconStyle','call','46035909Plefad','marker-symbol','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>','Polygon','"','push','http://www.opengis.net/kml/2.2','substr','\x22><value>','features','hotSpot','10194569ugDVUz','coordinates','documentName','Style','stroke-opacity','PolyStyle','length','Feature','46546tKIfzK','map','isLine','10910MLCQxI','width','fill','LineStyle','marker-size','stroke-width','Data','description','Document','documentDescription','marker-color','xunits','4110084qscTXc','isArray','stroke','MultiGeometry','name','>','930bxxdvn','valid'];a6_0x138d=function(){return _0x199256;};return a6_0x138d();}function polygonAndLineStyle(_0x18852f,_0x2b93a5){const _0x1a704a=a6_0x18be,_0xe8d22=tag(_0x1a704a(0x230),[tag(_0x1a704a(0x203),hexToKmlColor(_0x18852f['stroke'],_0x18852f[_0x1a704a(0x226)])||_0x1a704a(0x1ef))+tag(_0x1a704a(0x22e),_0x18852f[_0x1a704a(0x232)]===undefined?0x2:_0x18852f[_0x1a704a(0x232)])]);let _0x2fbb11='';return(_0x18852f[_0x1a704a(0x22f)]||_0x18852f['fill-opacity'])&&(_0x2fbb11=tag(_0x1a704a(0x227),[tag(_0x1a704a(0x203),hexToKmlColor(_0x18852f[_0x1a704a(0x22f)],_0x18852f[_0x1a704a(0x1f3)])||'88555555')])),tag('Style',_0xe8d22+_0x2fbb11,[['id',_0x2b93a5]]);}function hashStyle(_0x25e101){const _0x185022=a6_0x18be;let _0x36aa7e='';return _0x25e101['marker-symbol']&&(_0x36aa7e=_0x36aa7e+'ms'+_0x25e101[_0x185022(0x218)]),_0x25e101['marker-color']&&(_0x36aa7e=_0x36aa7e+'mc'+_0x25e101[_0x185022(0x237)][_0x185022(0x212)]('#','')),_0x25e101[_0x185022(0x231)]&&(_0x36aa7e=_0x36aa7e+'ms'+_0x25e101[_0x185022(0x231)]),_0x25e101[_0x185022(0x23b)]&&(_0x36aa7e=_0x36aa7e+'s'+_0x25e101[_0x185022(0x23b)]['replace']('#','')),_0x25e101[_0x185022(0x232)]&&(_0x36aa7e=_0x36aa7e+'sw'+_0x25e101['stroke-width'][_0x185022(0x1ec)]()[_0x185022(0x212)]('.','')),_0x25e101[_0x185022(0x226)]&&(_0x36aa7e=_0x36aa7e+'mo'+_0x25e101[_0x185022(0x226)][_0x185022(0x1ec)]()['replace']('.','')),_0x25e101[_0x185022(0x22f)]&&(_0x36aa7e=_0x36aa7e+'f'+_0x25e101[_0x185022(0x22f)][_0x185022(0x212)]('#','')),_0x25e101[_0x185022(0x1f3)]&&(_0x36aa7e=_0x36aa7e+'fo'+_0x25e101[_0x185022(0x1f3)]['toString']()[_0x185022(0x212)]('.','')),_0x36aa7e;}function hexToKmlColor(_0x3157d2,_0xadcff5){const _0x39b54d=a6_0x18be;if(typeof _0x3157d2!==_0x39b54d(0x20e))return'';_0x3157d2=_0x3157d2[_0x39b54d(0x212)]('#','')[_0x39b54d(0x209)]();if(_0x3157d2['length']===0x3)_0x3157d2=_0x3157d2[0x0]+_0x3157d2[0x0]+_0x3157d2[0x1]+_0x3157d2[0x1]+_0x3157d2[0x2]+_0x3157d2[0x2];else{if(_0x3157d2['length']!==0x6)return'';}const _0x2a0aca=_0x3157d2[0x0]+_0x3157d2[0x1],_0x152314=_0x3157d2[0x2]+_0x3157d2[0x3],_0x3e4f7d=_0x3157d2[0x4]+_0x3157d2[0x5];let _0x10f5c2='ff';return typeof _0xadcff5===_0x39b54d(0x1fc)&&_0xadcff5>=0x0&&_0xadcff5<=0x1&&(_0x10f5c2=(_0xadcff5*0xff)[_0x39b54d(0x1ec)](0x10),_0x10f5c2[_0x39b54d(0x214)]('.')>-0x1&&(_0x10f5c2=_0x10f5c2[_0x39b54d(0x21e)](0x0,_0x10f5c2['indexOf']('.'))),_0x10f5c2['length']<0x2&&(_0x10f5c2='0'+_0x10f5c2)),_0x10f5c2+_0x3e4f7d+_0x152314+_0x2a0aca;}export function isObject(_0x5f0e15){const _0x300aca=a6_0x18be;return Object[_0x300aca(0x1f0)]['toString'][_0x300aca(0x216)](_0x5f0e15)===_0x300aca(0x208);}function encode(_0x293aee){const _0x3652e9=a6_0x18be;if(!_0x293aee)return'';return _0x293aee[_0x3652e9(0x1ec)]()[_0x3652e9(0x212)](/&/g,_0x3652e9(0x213))[_0x3652e9(0x212)](/</g,_0x3652e9(0x210))[_0x3652e9(0x212)](/>/g,_0x3652e9(0x23e))['replace'](/"/g,_0x3652e9(0x21b));}function attr(_0x1ed88b){const _0x1535d6=a6_0x18be;if(!Object[_0x1535d6(0x201)](_0x1ed88b)[_0x1535d6(0x228)])return'';return'\x20'+Object[_0x1535d6(0x201)](_0x1ed88b)[_0x1535d6(0x22b)](function(_0x2f4ac3){return _0x2f4ac3+'=\x22'+escape(_0x1ed88b[_0x2f4ac3])+'\x22';})[_0x1535d6(0x1fb)]('\x20');}const escape_map={'>':a6_0x1126af(0x23e),'<':'<','\x27':''','\x22':'"','&':'&'};function a6_0x18be(_0x25363c,_0x185e64){const _0x138df3=a6_0x138d();return a6_0x18be=function(_0x18be9a,_0x5c1b33){_0x18be9a=_0x18be9a-0x1eb;let _0x5f0966=_0x138df3[_0x18be9a];return _0x5f0966;},a6_0x18be(_0x25363c,_0x185e64);}function escape(_0x1b211e,_0x12daea){const _0x1e39a6=a6_0x1126af;if(_0x1b211e===null||_0x1b211e===undefined)return;_0x12daea=(_0x12daea||'')[_0x1e39a6(0x212)](/[^&"<>\']/g,'');const _0x54b34b=_0x1e39a6(0x1fe)['replace'](new RegExp('['+_0x12daea+']','g'),'');return _0x1b211e[_0x1e39a6(0x212)](new RegExp(_0x54b34b,'g'),function(_0x19bc98,_0x1385d8){return escape_map[_0x1385d8];});}function tag(_0xbb0629,_0x3acf48,_0x46077c){const _0x4ab883=a6_0x1126af;return(Array[_0x4ab883(0x23a)](_0x3acf48)||typeof _0x3acf48===_0x4ab883(0x20e))&&(_0x46077c=_0x3acf48,_0x3acf48={}),Array[_0x4ab883(0x23a)](_0x46077c)&&(_0x46077c='\x0a'+_0x46077c[_0x4ab883(0x22b)](function(_0x3ac2d4){return'\x20\x20'+_0x3ac2d4;})[_0x4ab883(0x1fb)]('\x0a')+'\x0a'),'<'+_0xbb0629+attr(_0x3acf48)+'>'+_0x46077c+'</'+_0xbb0629+'>';}
|
package/conver/kml/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a7_0x1f9bb2=a7_0x2e4c;(function(_0x46b1f7,_0x31a240){const _0x4fc251=a7_0x2e4c,_0x253a02=_0x46b1f7();while(!![]){try{const _0xd720c3=-parseInt(_0x4fc251(0x7c))/0x1+parseInt(_0x4fc251(0x87))/0x2+-parseInt(_0x4fc251(0x7d))/0x3*(parseInt(_0x4fc251(0x76))/0x4)+parseInt(_0x4fc251(0xa4))/0x5*(-parseInt(_0x4fc251(0x93))/0x6)+-parseInt(_0x4fc251(0x92))/0x7+parseInt(_0x4fc251(0x9b))/0x8+parseInt(_0x4fc251(0x80))/0x9;if(_0xd720c3===_0x31a240)break;else _0x253a02['push'](_0x253a02['shift']());}catch(_0x12197){_0x253a02['push'](_0x253a02['shift']());}}}(a7_0x6b8d,0xa792e));import a7_0x3b1907 from'jszip';function a7_0x2e4c(_0x59a973,_0x5d7f34){const _0x6b8dbd=a7_0x6b8d();return a7_0x2e4c=function(_0x2e4c13,_0x1ae8d8){_0x2e4c13=_0x2e4c13-0x75;let _0x56e3e8=_0x6b8dbd[_0x2e4c13];return _0x56e3e8;},a7_0x2e4c(_0x59a973,_0x5d7f34);}import{kmlToGeoJSON}from'./kmlToGeoJSON';import{geoJSONToKml}from'./geoJSONToKml';export function toKml(_0x11a18e,_0x167ed7){const _0x12a841=a7_0x2e4c;return _0x11a18e['features']?_0x11a18e[_0x12a841(0xa7)][_0x12a841(0xa1)](_0x35eda9=>{updateFeatureByStyle(_0x35eda9);}):updateFeatureByStyle(_0x11a18e),geoJSONToKml(_0x11a18e,_0x167ed7);}function updateFeatureByStyle(_0x1a1a6c){const _0x41cb41=a7_0x2e4c;var _0xb57b99,_0x3e3d39,_0x388281,_0x490436,_0x298496,_0xddb696;if(!_0x1a1a6c['properties'])return;const _0x2912f1=_0x1a1a6c[_0x41cb41(0x9e)][_0x41cb41(0x83)];if(_0x2912f1){if(_0x2912f1['image']){_0x1a1a6c[_0x41cb41(0x9e)][_0x41cb41(0x8f)]=_0x2912f1[_0x41cb41(0x8d)];_0x2912f1['outlineColor']&&(_0x1a1a6c['properties']['marker-color']=_0x2912f1[_0x41cb41(0x7b)]);return;}_0x2912f1[_0x41cb41(0x95)]&&(_0x1a1a6c[_0x41cb41(0x9e)][_0x41cb41(0x9d)]=_0x2912f1[_0x41cb41(0x95)],_0x2912f1[_0x41cb41(0x78)]&&(_0x1a1a6c[_0x41cb41(0x9e)][_0x41cb41(0x7f)]=_0x2912f1[_0x41cb41(0x78)])),_0x2912f1['outlineColor']&&(_0x1a1a6c['properties']['stroke']=_0x2912f1[_0x41cb41(0x7b)],_0x1a1a6c[_0x41cb41(0x9e)][_0x41cb41(0x8e)]=(_0xb57b99=_0x2912f1[_0x41cb41(0xa3)])!==null&&_0xb57b99!==void 0x0?_0xb57b99:0x1,_0x1a1a6c[_0x41cb41(0x9e)][_0x41cb41(0x8a)]=(_0x388281=(_0x3e3d39=_0x2912f1[_0x41cb41(0xa2)])!==null&&_0x3e3d39!==void 0x0?_0x3e3d39:_0x2912f1[_0x41cb41(0x78)])!==null&&_0x388281!==void 0x0?_0x388281:0x1),_0x2912f1['html']&&(_0x2912f1[_0x41cb41(0x8c)]=HTMLEncode(_0x2912f1[_0x41cb41(0x8c)])),_0x2912f1['closure']&&((_0x298496=(_0x490436=_0x1a1a6c[_0x41cb41(0x9f)])===null||_0x490436===void 0x0?void 0x0:_0x490436[_0x41cb41(0x85)])===null||_0x298496===void 0x0?void 0x0:_0x298496[_0x41cb41(0xa5)])>0x0&&_0x1a1a6c[_0x41cb41(0x9f)][_0x41cb41(0x85)][_0x41cb41(0x77)](_0x1a1a6c[_0x41cb41(0x9f)][_0x41cb41(0x85)][0x0]);}const _0x3a7d75=(_0xddb696=_0x1a1a6c===null||_0x1a1a6c===void 0x0?void 0x0:_0x1a1a6c[_0x41cb41(0x9e)])===null||_0xddb696===void 0x0?void 0x0:_0xddb696['type'];if(_0x3a7d75===_0x41cb41(0x98)){const _0x5764b9=_0x1a1a6c[_0x41cb41(0x9f)][_0x41cb41(0x85)][0x0];(_0x5764b9===null||_0x5764b9===void 0x0?void 0x0:_0x5764b9['length'])>0x2&&_0x5764b9[_0x41cb41(0x77)](_0x5764b9[0x0]);}else{if(_0x3a7d75===_0x41cb41(0x9a)){const _0x22becb=_0x1a1a6c[_0x41cb41(0x9f)][_0x41cb41(0x85)],_0x21bcc1=_0x22becb[0x0][0x0],_0x45537f=_0x22becb[0x1][0x0],_0x4d135a=_0x22becb[0x0][0x1],_0x384a2d=_0x22becb[0x1][0x1];_0x1a1a6c['geometry']={'type':'Polygon','coordinates':[[[_0x21bcc1,_0x384a2d],[_0x21bcc1,_0x4d135a],[_0x45537f,_0x4d135a],[_0x45537f,_0x384a2d],[_0x21bcc1,_0x384a2d]]]};}}}const getDom=_0x418ccb=>new DOMParser()[a7_0x1f9bb2(0x75)](_0x418ccb,'application/xml'),getExtension=_0x4c2794=>_0x4c2794[a7_0x1f9bb2(0xa0)]('.')['pop'](),getKmlDom=_0x37b935=>{const _0xf37435=a7_0x1f9bb2,_0x522a68=new a7_0x3b1907();return _0x522a68[_0xf37435(0x94)](_0x37b935)[_0xf37435(0x96)](_0x4f5854=>{const _0x3b078=_0xf37435;let _0x122c9d=null;return _0x4f5854[_0x3b078(0xa1)]((_0x1dbb6f,_0x2cd490)=>{const _0x591b42=_0x3b078;getExtension(_0x1dbb6f)===_0x591b42(0x89)&&_0x122c9d===null&&(_0x122c9d=_0x2cd490['async'](_0x591b42(0x99))[_0x591b42(0x96)](getDom));}),_0x122c9d;});};export function toGeoJSON(_0x3d391e,_0x101c68){const _0x527bb5=a7_0x1f9bb2;if(!_0x3d391e){console[_0x527bb5(0x91)](_0x527bb5(0x82));return;}if(isString(_0x3d391e)){const _0x1f95c1=getExtension(_0x3d391e);if(_0x1f95c1===_0x527bb5(0x89))return fetchXML(_0x3d391e,_0x101c68)['then'](function(_0x201ffd){return kmlToGeoJSON(_0x201ffd);});else{if(_0x1f95c1===_0x527bb5(0x8b))return fetchBlob(_0x3d391e,_0x101c68)['then'](function(_0x33584b){return getKmlDom(_0x33584b);})[_0x527bb5(0x96)](function(_0x5bdee0){return kmlToGeoJSON(_0x5bdee0);});else{const _0x41daae=kmlToGeoJSON(getDom(_0x3d391e));return Promise[_0x527bb5(0x81)](_0x41daae);}}}else{if(_0x3d391e[_0x527bb5(0x86)]){const _0x5742ff=kmlToGeoJSON(_0x3d391e);return Promise[_0x527bb5(0x81)](_0x5742ff);}else{const _0x4b1fe4=_0x3d391e[_0x527bb5(0x9c)]['split']('.')[_0x3d391e[_0x527bb5(0x9c)][_0x527bb5(0xa0)]('.')[_0x527bb5(0xa5)]-0x1][_0x527bb5(0xa6)]();return _0x4b1fe4==='kml'?_0x3d391e[_0x527bb5(0xa8)]()['then'](_0x1826d7=>{return kmlToGeoJSON(getDom(_0x1826d7));}):getKmlDom(_0x3d391e)['then'](function(_0x51cc51){return kmlToGeoJSON(_0x51cc51);});}}}function isString(_0x2fe8e4){const _0x37e6d3=a7_0x1f9bb2;return typeof _0x2fe8e4===_0x37e6d3(0x99)&&_0x2fe8e4['constructor']===String;}function HTMLEncode(_0x13d0f4){const _0x5182be=a7_0x1f9bb2,_0x3ea226=document[_0x5182be(0x7e)]('div');_0x3ea226[_0x5182be(0x7a)]!=null?_0x3ea226['textContent']=_0x13d0f4:_0x3ea226[_0x5182be(0x84)]=_0x13d0f4;const _0x5ac389=_0x3ea226['innerHTML'];return _0x5ac389;}function a7_0x6b8d(){const _0x5d77cc=['getRootNode','741694YwaISy','application/xml','kml','stroke-opacity','kmz','html','image','stroke-width','marker-symbol','GET','warn','5610724LOgNRy','6LEmXOF','loadAsync','color','then','assign','polygon','string','rectangle','1763560vazRHM','name','fill','properties','geometry','split','forEach','outlineOpacity','outlineWidth','923620tXqBCq','length','toLowerCase','features','text','parseFromString','124AAJMBr','push','opacity','blob','textContent','outlineColor','99910KNfxUU','8997AsOLVp','createElement','fill-opacity','11468025ukasyk','resolve','toGeoJSON参数不能为空','style','innerText','coordinates'];a7_0x6b8d=function(){return _0x5d77cc;};return a7_0x6b8d();}function fetchXML(_0x603d55,_0x2a0cdd){const _0x34f010=a7_0x1f9bb2,_0x52bbbd=Object[_0x34f010(0x97)]({'method':_0x34f010(0x90),'headers':{'Content-Type':_0x34f010(0x88)}},_0x2a0cdd);return fetch(_0x603d55,_0x52bbbd)[_0x34f010(0x96)](_0x5dc77d=>{const _0x4d8e32=_0x34f010;return _0x5dc77d[_0x4d8e32(0xa8)]();})[_0x34f010(0x96)](_0x74c95e=>{return getDom(_0x74c95e);});}function fetchBlob(_0x1c8d61,_0xd752da){const _0x2765a2=a7_0x1f9bb2,_0x588987=Object['assign']({'method':_0x2765a2(0x90)},_0xd752da);return fetch(_0x1c8d61,_0x588987)[_0x2765a2(0x96)](_0x4f11f7=>{const _0xd3a5cf=_0x2765a2;return _0x4f11f7[_0xd3a5cf(0x79)]();});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x4c886e=a8_0x38b6;(function(_0x107086,_0x494a2a){const _0x37f34b=a8_0x38b6,_0x435d4b=_0x107086();while(!![]){try{const _0x5cb3c9=-parseInt(_0x37f34b(0x165))/0x1*(-parseInt(_0x37f34b(0x14e))/0x2)+-parseInt(_0x37f34b(0x168))/0x3*(-parseInt(_0x37f34b(0x167))/0x4)+parseInt(_0x37f34b(0x15f))/0x5+parseInt(_0x37f34b(0x162))/0x6*(-parseInt(_0x37f34b(0x145))/0x7)+parseInt(_0x37f34b(0x16c))/0x8*(parseInt(_0x37f34b(0x144))/0x9)+parseInt(_0x37f34b(0x176))/0xa+-parseInt(_0x37f34b(0x178))/0xb;if(_0x5cb3c9===_0x494a2a)break;else _0x435d4b['push'](_0x435d4b['shift']());}catch(_0x5047d5){_0x435d4b['push'](_0x435d4b['shift']());}}}(a8_0x59c9,0xce325));const removeSpace=/\s*/g,trimSpace=/^\s*|\s*$/g,splitSpace=/\s+/;function a8_0x38b6(_0x1d4b10,_0x7bd64c){const _0x59c98c=a8_0x59c9();return a8_0x38b6=function(_0x38b68b,_0x1fba71){_0x38b68b=_0x38b68b-0x135;let _0x4c5d45=_0x59c98c[_0x38b68b];return _0x4c5d45;},a8_0x38b6(_0x1d4b10,_0x7bd64c);}function okhash(_0x3a303e){const _0x449ba4=a8_0x38b6;if(!_0x3a303e||!_0x3a303e[_0x449ba4(0x13d)])return 0x0;for(var _0x5c44e5=0x0,_0x16266b=0x0;_0x5c44e5<_0x3a303e[_0x449ba4(0x13d)];_0x5c44e5++){_0x16266b=(_0x16266b<<0x5)-_0x16266b+_0x3a303e[_0x449ba4(0x14d)](_0x5c44e5)|0x0;}return _0x16266b;}function get(_0x2027ce,_0x3cccfe){const _0x1106eb=a8_0x38b6;return _0x2027ce[_0x1106eb(0x153)](_0x3cccfe);}function attr(_0x3e8d12,_0x446435){const _0x568a10=a8_0x38b6;return _0x3e8d12[_0x568a10(0x16b)](_0x446435);}function a8_0x59c9(){const _0x5ac41d=['Feature','concat','getElementsByTagName','value','styleHash','MultiTrack','Polygon','LineString','substr','description','coordTimes','width','textContent','xmldom','7301505jWrNLJ','normalize','LineStyle','2872626JYPHtJ','color','push','4254MkbDyq','fill-opacity','4fWixYh','3969282aegMCH','timespan','serializeToString','getAttribute','7296sWpoJL','MultiGeometry','Pair','LinearRing','Data','browser','StyleMap','PolyStyle','SimpleData','stroke-opacity','3286020EldMVV','gx:Track','26733707hXzrJP','TimeSpan','visibility','stroke','geoms','styleUrl','timestamp','coord','object','outline','toString','styleMapHash','parse','coords','normal','length','TimeStamp','Point','coordinates','name','Placemark','features','7092XEHhBn','21SgjVQu','stroke-width','split','begin','fill','end','replace','Style','charCodeAt','414eBbnFY','ExtendedData','xml'];a8_0x59c9=function(){return _0x5ac41d;};return a8_0x59c9();}function attrf(_0x8a1a9a,_0x414cb6){return parseFloat(attr(_0x8a1a9a,_0x414cb6));}function get1(_0xd454fc,_0x597fdc){const _0x4b3d1d=a8_0x38b6,_0x5f557c=get(_0xd454fc,_0x597fdc);return _0x5f557c[_0x4b3d1d(0x13d)]?_0x5f557c[0x0]:null;}function norm(_0x2ea1b4){const _0x38fc38=a8_0x38b6;return _0x2ea1b4[_0x38fc38(0x160)]&&_0x2ea1b4['normalize'](),_0x2ea1b4;}function numarray(_0x187ff6){for(var _0x55734e=0x0,_0x3c1e9c=[];_0x55734e<_0x187ff6['length'];_0x55734e++){_0x3c1e9c[_0x55734e]=parseFloat(_0x187ff6[_0x55734e]);}return _0x3c1e9c;}function nodeVal(_0x4da18c){const _0x3c95e9=a8_0x38b6;return _0x4da18c&&norm(_0x4da18c),_0x4da18c&&_0x4da18c[_0x3c95e9(0x15d)]||'';}function coord1(_0x57e784){const _0x51d4a4=a8_0x38b6;return numarray(_0x57e784[_0x51d4a4(0x14b)](removeSpace,'')[_0x51d4a4(0x147)](','));}function coord(_0x4e443b){const _0x24e803=a8_0x38b6,_0xc8f71e=_0x4e443b[_0x24e803(0x14b)](trimSpace,'')[_0x24e803(0x147)](splitSpace),_0x30c66a=[];for(let _0x53d4b4=0x0;_0x53d4b4<_0xc8f71e[_0x24e803(0x13d)];_0x53d4b4++){_0x30c66a['push'](coord1(_0xc8f71e[_0x53d4b4]));}return _0x30c66a;}function fc(){return{'type':'FeatureCollection','features':[]};}let serializer;if(typeof XMLSerializer!=='undefined')serializer=new XMLSerializer();else typeof exports===a8_0x4c886e(0x136)&&typeof process===a8_0x4c886e(0x136)&&!process[a8_0x4c886e(0x171)]&&(serializer=new(require(a8_0x4c886e(0x15e)))['XMLSerializer']());function xml2str(_0x5ee9b7){const _0x15d1a0=a8_0x4c886e;if(_0x5ee9b7[_0x15d1a0(0x150)]!==undefined)return _0x5ee9b7['xml'];return serializer[_0x15d1a0(0x16a)](_0x5ee9b7);}export function kmlToGeoJSON(_0x5c2918){const _0x1d2511=a8_0x4c886e,_0x200c54=fc(),_0x18a211={},_0x50d57e={},_0x5618b3={},_0x2678ac=[_0x1d2511(0x157),'LineString',_0x1d2511(0x13f),'Track',_0x1d2511(0x177)],_0x2d04de=get(_0x5c2918,_0x1d2511(0x142)),_0x3d7726=get(_0x5c2918,_0x1d2511(0x14c)),_0x55356f=get(_0x5c2918,_0x1d2511(0x172));for(let _0x24a7ca=0x0;_0x24a7ca<_0x3d7726[_0x1d2511(0x13d)];_0x24a7ca++){const _0x4da5b2=okhash(xml2str(_0x3d7726[_0x24a7ca]))[_0x1d2511(0x138)](0x10);_0x18a211['#'+attr(_0x3d7726[_0x24a7ca],'id')]=_0x4da5b2,_0x50d57e[_0x4da5b2]=_0x3d7726[_0x24a7ca];}for(let _0x41d6f1=0x0;_0x41d6f1<_0x55356f[_0x1d2511(0x13d)];_0x41d6f1++){_0x18a211['#'+attr(_0x55356f[_0x41d6f1],'id')]=okhash(xml2str(_0x55356f[_0x41d6f1]))[_0x1d2511(0x138)](0x10);const _0xdfef7=get(_0x55356f[_0x41d6f1],_0x1d2511(0x16e)),_0xad38cb={};for(let _0x24ee06=0x0;_0x24ee06<_0xdfef7[_0x1d2511(0x13d)];_0x24ee06++){_0xad38cb[nodeVal(get1(_0xdfef7[_0x24ee06],'key'))]=nodeVal(get1(_0xdfef7[_0x24ee06],_0x1d2511(0x17d)));}_0x5618b3['#'+attr(_0x55356f[_0x41d6f1],'id')]=_0xad38cb;}for(let _0x13f1f2=0x0;_0x13f1f2<_0x2d04de[_0x1d2511(0x13d)];_0x13f1f2++){_0x200c54[_0x1d2511(0x143)]=_0x200c54[_0x1d2511(0x143)][_0x1d2511(0x152)](_0x624836(_0x2d04de[_0x13f1f2]));}function _0x52512c(_0x1cf8fd){const _0x102d81=_0x1d2511;let _0x4b824f,_0x2afff2=0x0;return _0x1cf8fd=_0x1cf8fd||'',_0x1cf8fd[_0x102d81(0x159)](0x0,0x1)==='#'&&(_0x1cf8fd=_0x1cf8fd['substr'](0x1)),(_0x1cf8fd[_0x102d81(0x13d)]===0x6||_0x1cf8fd[_0x102d81(0x13d)]===0x3)&&(_0x4b824f=_0x1cf8fd),_0x1cf8fd[_0x102d81(0x13d)]===0x8&&(_0x2afff2=parseInt(_0x1cf8fd[_0x102d81(0x159)](0x0,0x2),0x10)/0xff,_0x4b824f='#'+_0x1cf8fd['substr'](0x6,0x2)+_0x1cf8fd[_0x102d81(0x159)](0x4,0x2)+_0x1cf8fd['substr'](0x2,0x2)),[_0x4b824f,isNaN(_0x2afff2)?undefined:_0x2afff2];}function _0x1d0253(_0x527571){const _0x2a9138=_0x1d2511;return numarray(_0x527571[_0x2a9138(0x147)]('\x20'));}function _0x481b58(_0x2ae75f){const _0x40fdf2=_0x1d2511;let _0x226b98=get(_0x2ae75f,_0x40fdf2(0x135));const _0x15ffd6=[],_0xbf571e=[];_0x226b98[_0x40fdf2(0x13d)]===0x0&&(_0x226b98=get(_0x2ae75f,'gx:coord'));for(let _0x12099b=0x0;_0x12099b<_0x226b98[_0x40fdf2(0x13d)];_0x12099b++){_0x15ffd6[_0x40fdf2(0x164)](_0x1d0253(nodeVal(_0x226b98[_0x12099b])));}const _0x19bb2b=get(_0x2ae75f,'when');for(let _0x576333=0x0;_0x576333<_0x19bb2b[_0x40fdf2(0x13d)];_0x576333++){_0xbf571e[_0x40fdf2(0x164)](nodeVal(_0x19bb2b[_0x576333]));}return{'coords':_0x15ffd6,'times':_0xbf571e};}function _0xbd1ae1(_0x3b445a){const _0x3f0846=_0x1d2511;let _0xf8ae06,_0x522781,_0x5aec8d,_0x3a278b,_0xe7b9e3;const _0xb72ab6=[],_0x33baca=[];if(get1(_0x3b445a,_0x3f0846(0x16d)))return _0xbd1ae1(get1(_0x3b445a,_0x3f0846(0x16d)));if(get1(_0x3b445a,_0x3f0846(0x156)))return _0xbd1ae1(get1(_0x3b445a,_0x3f0846(0x156)));if(get1(_0x3b445a,'gx:MultiTrack'))return _0xbd1ae1(get1(_0x3b445a,'gx:MultiTrack'));for(_0x5aec8d=0x0;_0x5aec8d<_0x2678ac[_0x3f0846(0x13d)];_0x5aec8d++){_0x522781=get(_0x3b445a,_0x2678ac[_0x5aec8d]);if(_0x522781)for(_0x3a278b=0x0;_0x3a278b<_0x522781['length'];_0x3a278b++){_0xf8ae06=_0x522781[_0x3a278b];if(_0x2678ac[_0x5aec8d]===_0x3f0846(0x13f))_0xb72ab6[_0x3f0846(0x164)]({'type':_0x3f0846(0x13f),'coordinates':coord1(nodeVal(get1(_0xf8ae06,_0x3f0846(0x140))))});else{if(_0x2678ac[_0x5aec8d]===_0x3f0846(0x158))_0xb72ab6[_0x3f0846(0x164)]({'type':_0x3f0846(0x158),'coordinates':coord(nodeVal(get1(_0xf8ae06,_0x3f0846(0x140))))});else{if(_0x2678ac[_0x5aec8d]==='Polygon'){const _0x5f4e68=get(_0xf8ae06,_0x3f0846(0x16f)),_0x477765=[];for(_0xe7b9e3=0x0;_0xe7b9e3<_0x5f4e68['length'];_0xe7b9e3++){_0x477765[_0x3f0846(0x164)](coord(nodeVal(get1(_0x5f4e68[_0xe7b9e3],'coordinates'))));}_0xb72ab6[_0x3f0846(0x164)]({'type':'Polygon','coordinates':_0x477765});}else{if(_0x2678ac[_0x5aec8d]==='Track'||_0x2678ac[_0x5aec8d]===_0x3f0846(0x177)){const _0x5a019b=_0x481b58(_0xf8ae06);_0xb72ab6[_0x3f0846(0x164)]({'type':_0x3f0846(0x158),'coordinates':_0x5a019b[_0x3f0846(0x13b)]}),_0x5a019b['times'][_0x3f0846(0x13d)]&&_0x33baca[_0x3f0846(0x164)](_0x5a019b['times']);}}}}}}return{'geoms':_0xb72ab6,'coordTimes':_0x33baca};}function _0x624836(_0xf4a9a6){const _0x5e4a48=_0x1d2511,_0x494116=_0xbd1ae1(_0xf4a9a6);let _0x4838e6;const _0x33012c={},_0x491bb9=nodeVal(get1(_0xf4a9a6,'name'));let _0xcad768=nodeVal(get1(_0xf4a9a6,_0x5e4a48(0x17d)));const _0x1642a0=nodeVal(get1(_0xf4a9a6,'description')),_0x57b367=get1(_0xf4a9a6,_0x5e4a48(0x179)),_0x34ca3f=get1(_0xf4a9a6,_0x5e4a48(0x13e)),_0x2498d7=get1(_0xf4a9a6,_0x5e4a48(0x14f));let _0x4b6290=get1(_0xf4a9a6,_0x5e4a48(0x161)),_0x34060f=get1(_0xf4a9a6,_0x5e4a48(0x173));const _0x2a1fc2=get1(_0xf4a9a6,_0x5e4a48(0x17a));if(!_0x494116[_0x5e4a48(0x17c)]['length'])return[];_0x491bb9&&(_0x33012c[_0x5e4a48(0x141)]=_0x491bb9);if(_0xcad768){_0xcad768[0x0]!=='#'&&(_0xcad768='#'+_0xcad768);_0x33012c[_0x5e4a48(0x17d)]=_0xcad768;_0x18a211[_0xcad768]&&(_0x33012c[_0x5e4a48(0x155)]=_0x18a211[_0xcad768]);_0x5618b3[_0xcad768]&&(_0x33012c[_0x5e4a48(0x139)]=_0x5618b3[_0xcad768],_0x33012c[_0x5e4a48(0x155)]=_0x18a211[_0x5618b3[_0xcad768][_0x5e4a48(0x13c)]]);const _0x4aca27=_0x50d57e[_0x33012c['styleHash']];_0x4aca27&&(!_0x4b6290&&(_0x4b6290=get1(_0x4aca27,_0x5e4a48(0x161))),!_0x34060f&&(_0x34060f=get1(_0x4aca27,'PolyStyle')));}_0x1642a0&&(_0x33012c[_0x5e4a48(0x15a)]=_0x1642a0);if(_0x57b367){const _0xee2f8=nodeVal(get1(_0x57b367,_0x5e4a48(0x148))),_0x37131c=nodeVal(get1(_0x57b367,_0x5e4a48(0x14a)));_0x33012c[_0x5e4a48(0x169)]={'begin':_0xee2f8,'end':_0x37131c};}_0x34ca3f&&(_0x33012c[_0x5e4a48(0x17e)]=nodeVal(get1(_0x34ca3f,'when')));if(_0x4b6290){const _0x2919ae=_0x52512c(nodeVal(get1(_0x4b6290,_0x5e4a48(0x163)))),_0x529796=_0x2919ae[0x0],_0x6f3947=_0x2919ae[0x1],_0x5cc44e=parseFloat(nodeVal(get1(_0x4b6290,_0x5e4a48(0x15c))));_0x529796&&(_0x33012c[_0x5e4a48(0x17b)]=_0x529796),!isNaN(_0x6f3947)&&(_0x33012c[_0x5e4a48(0x175)]=_0x6f3947),!isNaN(_0x5cc44e)&&(_0x33012c[_0x5e4a48(0x146)]=_0x5cc44e);}if(_0x34060f){const _0x545b06=_0x52512c(nodeVal(get1(_0x34060f,_0x5e4a48(0x163)))),_0x26086d=_0x545b06[0x0],_0x1bd801=_0x545b06[0x1],_0x4abc04=nodeVal(get1(_0x34060f,_0x5e4a48(0x149))),_0x37b86c=nodeVal(get1(_0x34060f,_0x5e4a48(0x137)));_0x26086d&&(_0x33012c[_0x5e4a48(0x149)]=_0x26086d),!isNaN(_0x1bd801)&&(_0x33012c[_0x5e4a48(0x166)]=_0x1bd801),_0x4abc04&&(_0x33012c['fill-opacity']=_0x4abc04==='1'?_0x33012c[_0x5e4a48(0x166)]||0x1:0x0),_0x37b86c&&(_0x33012c[_0x5e4a48(0x175)]=_0x37b86c==='1'?_0x33012c['stroke-opacity']||0x1:0x0);}if(_0x2498d7){const _0x56c55d=get(_0x2498d7,_0x5e4a48(0x170)),_0x25435b=get(_0x2498d7,_0x5e4a48(0x174));for(_0x4838e6=0x0;_0x4838e6<_0x56c55d['length'];_0x4838e6++){const _0x15419b=_0x56c55d[_0x4838e6][_0x5e4a48(0x16b)](_0x5e4a48(0x141));let _0x8dbbc7=nodeVal(get1(_0x56c55d[_0x4838e6],_0x5e4a48(0x154)));try{_0x8dbbc7=JSON[_0x5e4a48(0x13a)](_0x8dbbc7);}catch(_0x21aeb1){}_0x33012c[_0x15419b]=_0x8dbbc7;}for(_0x4838e6=0x0;_0x4838e6<_0x25435b[_0x5e4a48(0x13d)];_0x4838e6++){const _0x51692a=_0x25435b[_0x4838e6][_0x5e4a48(0x16b)](_0x5e4a48(0x141));let _0x59d498=nodeVal(_0x25435b[_0x4838e6]);try{_0x59d498=JSON[_0x5e4a48(0x13a)](_0x59d498);}catch(_0x3a4748){}_0x33012c[_0x51692a]=_0x59d498;}}_0x2a1fc2&&(_0x33012c[_0x5e4a48(0x17a)]=nodeVal(_0x2a1fc2));_0x494116[_0x5e4a48(0x15b)][_0x5e4a48(0x13d)]&&(_0x33012c[_0x5e4a48(0x15b)]=_0x494116['coordTimes'][_0x5e4a48(0x13d)]===0x1?_0x494116[_0x5e4a48(0x15b)][0x0]:_0x494116['coordTimes']);const _0x372c9a={'type':_0x5e4a48(0x151),'geometry':_0x494116[_0x5e4a48(0x17c)][_0x5e4a48(0x13d)]===0x1?_0x494116[_0x5e4a48(0x17c)][0x0]:{'type':'GeometryCollection','geometries':_0x494116['geoms']},'properties':_0x33012c};return attr(_0xf4a9a6,'id')&&(_0x372c9a['id']=attr(_0xf4a9a6,'id')),[_0x372c9a];}return _0x200c54;}
|
|
1
|
+
const a8_0x3e4748=a8_0x401f;function a8_0x4d21(){const _0x1b9654=['GeometryCollection','Style','XMLSerializer','coord','timespan','Point','MultiTrack','856547VRvGQh','stroke-width','object','gx:coord','serializeToString','toString','visibility','replace','charCodeAt','405PoujgL','timestamp','xml','TimeSpan','coordTimes','when','Data','4748OAgNkC','features','Feature','stroke','492sKqNTN','name','gx:MultiTrack','times','564790mSMSqe','LinearRing','FeatureCollection','push','3547138WQDQKO','styleHash','substr','stroke-opacity','normalize','concat','styleUrl','getElementsByTagName','description','getAttribute','1244808YuRSTt','Placemark','browser','length','end','begin','undefined','Polygon','MultiGeometry','fill','value','SimpleData','coords','fill-opacity','LineStyle','LineString','color','422988tZgCAN','parse','coordinates','3417iWYoay','normal','StyleMap','split','Track','gx:Track','geoms','410lltcAZ'];a8_0x4d21=function(){return _0x1b9654;};return a8_0x4d21();}(function(_0x491677,_0x24cc76){const _0x57076d=a8_0x401f,_0xabe7cf=_0x491677();while(!![]){try{const _0x155f3d=-parseInt(_0x57076d(0xcc))/0x1+parseInt(_0x57076d(0xba))/0x2+parseInt(_0x57076d(0xbd))/0x3*(-parseInt(_0x57076d(0xdc))/0x4)+-parseInt(_0x57076d(0xc4))/0x5*(parseInt(_0x57076d(0xe0))/0x6)+parseInt(_0x57076d(0xe8))/0x7+-parseInt(_0x57076d(0xf2))/0x8+-parseInt(_0x57076d(0xd5))/0x9*(-parseInt(_0x57076d(0xe4))/0xa);if(_0x155f3d===_0x24cc76)break;else _0xabe7cf['push'](_0xabe7cf['shift']());}catch(_0x58247f){_0xabe7cf['push'](_0xabe7cf['shift']());}}}(a8_0x4d21,0xd9056));const removeSpace=/\s*/g,trimSpace=/^\s*|\s*$/g,splitSpace=/\s+/;function okhash(_0x46c304){const _0x257b59=a8_0x401f;if(!_0x46c304||!_0x46c304[_0x257b59(0xac)])return 0x0;for(var _0x4b2e5a=0x0,_0x33f07f=0x0;_0x4b2e5a<_0x46c304[_0x257b59(0xac)];_0x4b2e5a++){_0x33f07f=(_0x33f07f<<0x5)-_0x33f07f+_0x46c304[_0x257b59(0xd4)](_0x4b2e5a)|0x0;}return _0x33f07f;}function get(_0x1a643d,_0x3f608a){const _0x26c76a=a8_0x401f;return _0x1a643d[_0x26c76a(0xef)](_0x3f608a);}function attr(_0x1548fb,_0x4517ef){return _0x1548fb['getAttribute'](_0x4517ef);}function attrf(_0x4ff9a1,_0x50d4bc){return parseFloat(attr(_0x4ff9a1,_0x50d4bc));}function get1(_0x35d16b,_0x156be7){const _0x4fb87d=get(_0x35d16b,_0x156be7);return _0x4fb87d['length']?_0x4fb87d[0x0]:null;}function norm(_0xa17cc7){const _0x1d6e7f=a8_0x401f;return _0xa17cc7[_0x1d6e7f(0xec)]&&_0xa17cc7['normalize'](),_0xa17cc7;}function numarray(_0xdcb1a4){const _0x2f0554=a8_0x401f;for(var _0x46f25c=0x0,_0x24af42=[];_0x46f25c<_0xdcb1a4[_0x2f0554(0xac)];_0x46f25c++){_0x24af42[_0x46f25c]=parseFloat(_0xdcb1a4[_0x46f25c]);}return _0x24af42;}function nodeVal(_0x385bdf){return _0x385bdf&&norm(_0x385bdf),_0x385bdf&&_0x385bdf['textContent']||'';}function a8_0x401f(_0x2b752b,_0x344964){const _0x4d21e8=a8_0x4d21();return a8_0x401f=function(_0x401f63,_0x593e85){_0x401f63=_0x401f63-0xab;let _0x18810d=_0x4d21e8[_0x401f63];return _0x18810d;},a8_0x401f(_0x2b752b,_0x344964);}function coord1(_0x5e2d21){const _0x5a68b7=a8_0x401f;return numarray(_0x5e2d21[_0x5a68b7(0xd3)](removeSpace,'')[_0x5a68b7(0xc0)](','));}function coord(_0x4f1677){const _0x9c0e9a=a8_0x401f,_0x1135a2=_0x4f1677[_0x9c0e9a(0xd3)](trimSpace,'')[_0x9c0e9a(0xc0)](splitSpace),_0x1fc21b=[];for(let _0xb59759=0x0;_0xb59759<_0x1135a2[_0x9c0e9a(0xac)];_0xb59759++){_0x1fc21b[_0x9c0e9a(0xe7)](coord1(_0x1135a2[_0xb59759]));}return _0x1fc21b;}function fc(){const _0x11afb6=a8_0x401f;return{'type':_0x11afb6(0xe6),'features':[]};}let serializer;if(typeof XMLSerializer!==a8_0x3e4748(0xaf))serializer=new XMLSerializer();else typeof exports===a8_0x3e4748(0xce)&&typeof process===a8_0x3e4748(0xce)&&!process[a8_0x3e4748(0xab)]&&(serializer=new(require('xmldom'))[(a8_0x3e4748(0xc7))]());function xml2str(_0x18e510){const _0x585b43=a8_0x3e4748;if(_0x18e510['xml']!==undefined)return _0x18e510[_0x585b43(0xd7)];return serializer[_0x585b43(0xd0)](_0x18e510);}export function kmlToGeoJSON(_0x552254){const _0x2a18cd=a8_0x3e4748,_0x53448a=fc(),_0x248ca0={},_0x3e4dde={},_0x3fcdbf={},_0x14f157=[_0x2a18cd(0xb0),_0x2a18cd(0xb8),_0x2a18cd(0xca),_0x2a18cd(0xc1),'gx:Track'],_0x3629e6=get(_0x552254,_0x2a18cd(0xf3)),_0xa1551b=get(_0x552254,_0x2a18cd(0xc6)),_0xe69143=get(_0x552254,_0x2a18cd(0xbf));for(let _0x1333a7=0x0;_0x1333a7<_0xa1551b['length'];_0x1333a7++){const _0x27ccf4=okhash(xml2str(_0xa1551b[_0x1333a7]))[_0x2a18cd(0xd1)](0x10);_0x248ca0['#'+attr(_0xa1551b[_0x1333a7],'id')]=_0x27ccf4,_0x3e4dde[_0x27ccf4]=_0xa1551b[_0x1333a7];}for(let _0x23abfc=0x0;_0x23abfc<_0xe69143[_0x2a18cd(0xac)];_0x23abfc++){_0x248ca0['#'+attr(_0xe69143[_0x23abfc],'id')]=okhash(xml2str(_0xe69143[_0x23abfc]))[_0x2a18cd(0xd1)](0x10);const _0x590dbd=get(_0xe69143[_0x23abfc],'Pair'),_0x13935c={};for(let _0x3c4d05=0x0;_0x3c4d05<_0x590dbd[_0x2a18cd(0xac)];_0x3c4d05++){_0x13935c[nodeVal(get1(_0x590dbd[_0x3c4d05],'key'))]=nodeVal(get1(_0x590dbd[_0x3c4d05],_0x2a18cd(0xee)));}_0x3fcdbf['#'+attr(_0xe69143[_0x23abfc],'id')]=_0x13935c;}for(let _0x2b7b5b=0x0;_0x2b7b5b<_0x3629e6[_0x2a18cd(0xac)];_0x2b7b5b++){_0x53448a[_0x2a18cd(0xdd)]=_0x53448a[_0x2a18cd(0xdd)][_0x2a18cd(0xed)](_0x5a3731(_0x3629e6[_0x2b7b5b]));}function _0x2a64ec(_0x1da030){const _0x1461d6=_0x2a18cd;let _0x1e8081,_0x596595=0x0;return _0x1da030=_0x1da030||'',_0x1da030['substr'](0x0,0x1)==='#'&&(_0x1da030=_0x1da030[_0x1461d6(0xea)](0x1)),(_0x1da030[_0x1461d6(0xac)]===0x6||_0x1da030[_0x1461d6(0xac)]===0x3)&&(_0x1e8081=_0x1da030),_0x1da030[_0x1461d6(0xac)]===0x8&&(_0x596595=parseInt(_0x1da030['substr'](0x0,0x2),0x10)/0xff,_0x1e8081='#'+_0x1da030[_0x1461d6(0xea)](0x6,0x2)+_0x1da030[_0x1461d6(0xea)](0x4,0x2)+_0x1da030[_0x1461d6(0xea)](0x2,0x2)),[_0x1e8081,isNaN(_0x596595)?undefined:_0x596595];}function _0x16b311(_0x4b3ebe){const _0x13e39d=_0x2a18cd;return numarray(_0x4b3ebe[_0x13e39d(0xc0)]('\x20'));}function _0x1d8adc(_0x486fe4){const _0x504070=_0x2a18cd;let _0x1f2b45=get(_0x486fe4,_0x504070(0xc8));const _0x3468a0=[],_0xfb78b3=[];_0x1f2b45[_0x504070(0xac)]===0x0&&(_0x1f2b45=get(_0x486fe4,_0x504070(0xcf)));for(let _0x130dd8=0x0;_0x130dd8<_0x1f2b45[_0x504070(0xac)];_0x130dd8++){_0x3468a0[_0x504070(0xe7)](_0x16b311(nodeVal(_0x1f2b45[_0x130dd8])));}const _0x5f7839=get(_0x486fe4,_0x504070(0xda));for(let _0x2354d9=0x0;_0x2354d9<_0x5f7839['length'];_0x2354d9++){_0xfb78b3['push'](nodeVal(_0x5f7839[_0x2354d9]));}return{'coords':_0x3468a0,'times':_0xfb78b3};}function _0xc33faf(_0x2e6b5b){const _0xe2e2cd=_0x2a18cd;let _0x2a5a04,_0x122fa0,_0x1d64b3,_0x3b3197,_0x564e28;const _0x4913a1=[],_0x299e0b=[];if(get1(_0x2e6b5b,'MultiGeometry'))return _0xc33faf(get1(_0x2e6b5b,_0xe2e2cd(0xb1)));if(get1(_0x2e6b5b,_0xe2e2cd(0xcb)))return _0xc33faf(get1(_0x2e6b5b,_0xe2e2cd(0xcb)));if(get1(_0x2e6b5b,'gx:MultiTrack'))return _0xc33faf(get1(_0x2e6b5b,_0xe2e2cd(0xe2)));for(_0x1d64b3=0x0;_0x1d64b3<_0x14f157[_0xe2e2cd(0xac)];_0x1d64b3++){_0x122fa0=get(_0x2e6b5b,_0x14f157[_0x1d64b3]);if(_0x122fa0)for(_0x3b3197=0x0;_0x3b3197<_0x122fa0[_0xe2e2cd(0xac)];_0x3b3197++){_0x2a5a04=_0x122fa0[_0x3b3197];if(_0x14f157[_0x1d64b3]===_0xe2e2cd(0xca))_0x4913a1['push']({'type':_0xe2e2cd(0xca),'coordinates':coord1(nodeVal(get1(_0x2a5a04,_0xe2e2cd(0xbc))))});else{if(_0x14f157[_0x1d64b3]==='LineString')_0x4913a1[_0xe2e2cd(0xe7)]({'type':_0xe2e2cd(0xb8),'coordinates':coord(nodeVal(get1(_0x2a5a04,'coordinates')))});else{if(_0x14f157[_0x1d64b3]===_0xe2e2cd(0xb0)){const _0x32b1b9=get(_0x2a5a04,_0xe2e2cd(0xe5)),_0x53b662=[];for(_0x564e28=0x0;_0x564e28<_0x32b1b9[_0xe2e2cd(0xac)];_0x564e28++){_0x53b662[_0xe2e2cd(0xe7)](coord(nodeVal(get1(_0x32b1b9[_0x564e28],'coordinates'))));}_0x4913a1[_0xe2e2cd(0xe7)]({'type':_0xe2e2cd(0xb0),'coordinates':_0x53b662});}else{if(_0x14f157[_0x1d64b3]===_0xe2e2cd(0xc1)||_0x14f157[_0x1d64b3]===_0xe2e2cd(0xc2)){const _0x59a80c=_0x1d8adc(_0x2a5a04);_0x4913a1[_0xe2e2cd(0xe7)]({'type':_0xe2e2cd(0xb8),'coordinates':_0x59a80c[_0xe2e2cd(0xb5)]}),_0x59a80c[_0xe2e2cd(0xe3)][_0xe2e2cd(0xac)]&&_0x299e0b[_0xe2e2cd(0xe7)](_0x59a80c[_0xe2e2cd(0xe3)]);}}}}}}return{'geoms':_0x4913a1,'coordTimes':_0x299e0b};}function _0x5a3731(_0x1bbd46){const _0x129982=_0x2a18cd,_0x243096=_0xc33faf(_0x1bbd46);let _0x2d2a7a;const _0x741a4d={},_0x3a6d5b=nodeVal(get1(_0x1bbd46,_0x129982(0xe1)));let _0x10f2f5=nodeVal(get1(_0x1bbd46,_0x129982(0xee)));const _0x496db4=nodeVal(get1(_0x1bbd46,_0x129982(0xf0))),_0x4b64d6=get1(_0x1bbd46,_0x129982(0xd8)),_0x49e367=get1(_0x1bbd46,'TimeStamp'),_0x4455fe=get1(_0x1bbd46,'ExtendedData');let _0xb7a04b=get1(_0x1bbd46,_0x129982(0xb7)),_0x21a1f0=get1(_0x1bbd46,'PolyStyle');const _0xd210a4=get1(_0x1bbd46,_0x129982(0xd2));if(!_0x243096[_0x129982(0xc3)][_0x129982(0xac)])return[];_0x3a6d5b&&(_0x741a4d[_0x129982(0xe1)]=_0x3a6d5b);if(_0x10f2f5){_0x10f2f5[0x0]!=='#'&&(_0x10f2f5='#'+_0x10f2f5);_0x741a4d[_0x129982(0xee)]=_0x10f2f5;_0x248ca0[_0x10f2f5]&&(_0x741a4d[_0x129982(0xe9)]=_0x248ca0[_0x10f2f5]);_0x3fcdbf[_0x10f2f5]&&(_0x741a4d['styleMapHash']=_0x3fcdbf[_0x10f2f5],_0x741a4d[_0x129982(0xe9)]=_0x248ca0[_0x3fcdbf[_0x10f2f5][_0x129982(0xbe)]]);const _0x42c149=_0x3e4dde[_0x741a4d['styleHash']];_0x42c149&&(!_0xb7a04b&&(_0xb7a04b=get1(_0x42c149,_0x129982(0xb7))),!_0x21a1f0&&(_0x21a1f0=get1(_0x42c149,'PolyStyle')));}_0x496db4&&(_0x741a4d['description']=_0x496db4);if(_0x4b64d6){const _0x4920bf=nodeVal(get1(_0x4b64d6,_0x129982(0xae))),_0x43b826=nodeVal(get1(_0x4b64d6,_0x129982(0xad)));_0x741a4d[_0x129982(0xc9)]={'begin':_0x4920bf,'end':_0x43b826};}_0x49e367&&(_0x741a4d[_0x129982(0xd6)]=nodeVal(get1(_0x49e367,_0x129982(0xda))));if(_0xb7a04b){const _0x5bec0d=_0x2a64ec(nodeVal(get1(_0xb7a04b,'color'))),_0x7ee8ef=_0x5bec0d[0x0],_0x5b4e24=_0x5bec0d[0x1],_0x132c74=parseFloat(nodeVal(get1(_0xb7a04b,'width')));_0x7ee8ef&&(_0x741a4d[_0x129982(0xdf)]=_0x7ee8ef),!isNaN(_0x5b4e24)&&(_0x741a4d[_0x129982(0xeb)]=_0x5b4e24),!isNaN(_0x132c74)&&(_0x741a4d[_0x129982(0xcd)]=_0x132c74);}if(_0x21a1f0){const _0x140806=_0x2a64ec(nodeVal(get1(_0x21a1f0,_0x129982(0xb9)))),_0x1bc4b1=_0x140806[0x0],_0x228473=_0x140806[0x1],_0x51957e=nodeVal(get1(_0x21a1f0,_0x129982(0xb2))),_0x396d86=nodeVal(get1(_0x21a1f0,'outline'));_0x1bc4b1&&(_0x741a4d[_0x129982(0xb2)]=_0x1bc4b1),!isNaN(_0x228473)&&(_0x741a4d[_0x129982(0xb6)]=_0x228473),_0x51957e&&(_0x741a4d['fill-opacity']=_0x51957e==='1'?_0x741a4d[_0x129982(0xb6)]||0x1:0x0),_0x396d86&&(_0x741a4d[_0x129982(0xeb)]=_0x396d86==='1'?_0x741a4d[_0x129982(0xeb)]||0x1:0x0);}if(_0x4455fe){const _0x52facd=get(_0x4455fe,_0x129982(0xdb)),_0x18c8a4=get(_0x4455fe,_0x129982(0xb4));for(_0x2d2a7a=0x0;_0x2d2a7a<_0x52facd[_0x129982(0xac)];_0x2d2a7a++){const _0x129442=_0x52facd[_0x2d2a7a]['getAttribute'](_0x129982(0xe1));let _0x5914de=nodeVal(get1(_0x52facd[_0x2d2a7a],_0x129982(0xb3)));try{_0x5914de=JSON[_0x129982(0xbb)](_0x5914de);}catch(_0x42e842){}_0x741a4d[_0x129442]=_0x5914de;}for(_0x2d2a7a=0x0;_0x2d2a7a<_0x18c8a4['length'];_0x2d2a7a++){const _0x37c1f2=_0x18c8a4[_0x2d2a7a][_0x129982(0xf1)]('name');let _0x4194e0=nodeVal(_0x18c8a4[_0x2d2a7a]);try{_0x4194e0=JSON['parse'](_0x4194e0);}catch(_0xfe5ca6){}_0x741a4d[_0x37c1f2]=_0x4194e0;}}_0xd210a4&&(_0x741a4d[_0x129982(0xd2)]=nodeVal(_0xd210a4));_0x243096[_0x129982(0xd9)][_0x129982(0xac)]&&(_0x741a4d[_0x129982(0xd9)]=_0x243096['coordTimes'][_0x129982(0xac)]===0x1?_0x243096[_0x129982(0xd9)][0x0]:_0x243096[_0x129982(0xd9)]);const _0x3b646e={'type':_0x129982(0xde),'geometry':_0x243096[_0x129982(0xc3)][_0x129982(0xac)]===0x1?_0x243096[_0x129982(0xc3)][0x0]:{'type':_0x129982(0xc5),'geometries':_0x243096[_0x129982(0xc3)]},'properties':_0x741a4d};return attr(_0x1bbd46,'id')&&(_0x3b646e['id']=attr(_0x1bbd46,'id')),[_0x3b646e];}return _0x53448a;}
|
package/entity/Feature.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x9199c6,_0x304d4e){var _0x50f821=a10_0x1caa,_0x4c385b=_0x9199c6();while(!![]){try{var _0x240682=parseInt(_0x50f821(0x1a1))/0x1+parseInt(_0x50f821(0x1a6))/0x2*(-parseInt(_0x50f821(0x19d))/0x3)+parseInt(_0x50f821(0x1a8))/0x4*(parseInt(_0x50f821(0x1a4))/0x5)+-parseInt(_0x50f821(0x19e))/0x6*(parseInt(_0x50f821(0x1a5))/0x7)+parseInt(_0x50f821(0x19f))/0x8*(-parseInt(_0x50f821(0x1a7))/0x9)+-parseInt(_0x50f821(0x1a2))/0xa+parseInt(_0x50f821(0x1a3))/0xb*(parseInt(_0x50f821(0x1a0))/0xc);if(_0x240682===_0x304d4e)break;else _0x4c385b['push'](_0x4c385b['shift']());}catch(_0x49f9b1){_0x4c385b['push'](_0x4c385b['shift']());}}}(a10_0x2306,0xabb92));function a10_0x1caa(_0x448ee7,_0x1d1cca){var _0x2306b1=a10_0x2306();return a10_0x1caa=function(_0x1caaee,_0x14231f){_0x1caaee=_0x1caaee-0x19d;var _0x5c2f3b=_0x2306b1[_0x1caaee];return _0x5c2f3b;},a10_0x1caa(_0x448ee7,_0x1d1cca);}function a10_0x2306(){var _0x4d8892=['8335rBltJq','42mftvZo','2380unbrKL','50292yOjlvF','892wqKrcl','3183mViCnu','1366242nZrOQs','712KtoJjM','12xUUFbT','382608KvxiDe','5953780oGSzKz','40376281EqeOUV'];a10_0x2306=function(){return _0x4d8892;};return a10_0x2306();}import{Feature as a10_0x250d93}from'ol';export default class Feature extends a10_0x250d93{constructor(){super();}}
|
package/entity/GeometryType.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a11_0x4701(){var _0x5e0a6f=['point','Rectangle','ellipse','arrow_pincerlike','PolyLine','12618504InCHxs','Arrow','Curve','5pXzbZp','2130NJubcZ','53383AoYgDX','7Hebdfs','352010KUgxtc','Point','Circle','arrow_attack','Ellipse','7499502ZsKfzE','4YLHNpe','SurfaceClosed','polygon','Ellipsoid','9zylQfG','2683797LzxJeT','assembly_site','surface-closed','rectangle','2902160oeSjrY','arrow','ellipsoid','44914296VSjCON'];a11_0x4701=function(){return _0x5e0a6f;};return a11_0x4701();}var a11_0x235492=a11_0x4fbd;(function(_0x461bc6,_0xf23bb8){var _0x5460c5=a11_0x4fbd,_0x308f17=_0x461bc6();while(!![]){try{var _0x39b031=parseInt(_0x5460c5(0x195))/0x1*(parseInt(_0x5460c5(0x1aa))/0x2)+-parseInt(_0x5460c5(0x196))/0x3*(parseInt(_0x5460c5(0x191))/0x4)+-parseInt(_0x5460c5(0x1a6))/0x5*(-parseInt(_0x5460c5(0x190))/0x6)+parseInt(_0x5460c5(0x1a9))/0x7*(parseInt(_0x5460c5(0x19a))/0x8)+parseInt(_0x5460c5(0x1a3))/0x9+-parseInt(_0x5460c5(0x1a7))/0xa*(-parseInt(_0x5460c5(0x1a8))/0xb)+-parseInt(_0x5460c5(0x19d))/0xc;if(_0x39b031===_0xf23bb8)break;else _0x308f17['push'](_0x308f17['shift']());}catch(_0x2b58af){_0x308f17['push'](_0x308f17['shift']());}}}(a11_0x4701,0xf2ecc));class GeometryType{}function a11_0x4fbd(_0x4d02d3,_0x4047de){var _0x4701de=a11_0x4701();return a11_0x4fbd=function(_0x4fbd93,_0x456efe){_0x4fbd93=_0x4fbd93-0x190;var _0x58dafc=_0x4701de[_0x4fbd93];return _0x58dafc;},a11_0x4fbd(_0x4d02d3,_0x4047de);}GeometryType[a11_0x235492(0x1ab)]=a11_0x235492(0x19e),GeometryType[a11_0x235492(0x1a2)]='polyline',GeometryType['Polygon']=a11_0x235492(0x193),GeometryType[a11_0x235492(0x19f)]=a11_0x235492(0x199),GeometryType[a11_0x235492(0x1ac)]='circle',GeometryType[a11_0x235492(0x1a5)]='curve',GeometryType[a11_0x235492(0x1ae)]=a11_0x235492(0x1a0),GeometryType[a11_0x235492(0x194)]=a11_0x235492(0x19c),GeometryType[a11_0x235492(0x1a4)]=a11_0x235492(0x19b),GeometryType['ArrowAttack']=a11_0x235492(0x1ad),GeometryType['ArrowPincerlike']=a11_0x235492(0x1a1),GeometryType['AssemblySite']=a11_0x235492(0x197),GeometryType[a11_0x235492(0x192)]=a11_0x235492(0x198);export default GeometryType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0x18a5f7=a35_0xb2ab;(function(_0x5049aa,_0x306868){const _0x119ba8=a35_0xb2ab,_0x36c6ba=_0x5049aa();while(!![]){try{const _0x2cf8b9=-parseInt(_0x119ba8(0x97))/0x1*(-parseInt(_0x119ba8(0x92))/0x2)+parseInt(_0x119ba8(0x7b))/0x3+-parseInt(_0x119ba8(0x77))/0x4+parseInt(_0x119ba8(0x80))/0x5*(-parseInt(_0x119ba8(0x91))/0x6)+-parseInt(_0x119ba8(0x7a))/0x7*(parseInt(_0x119ba8(0x84))/0x8)+-parseInt(_0x119ba8(0x88))/0x9+parseInt(_0x119ba8(0x74))/0xa;if(_0x2cf8b9===_0x306868)break;else _0x36c6ba['push'](_0x36c6ba['shift']());}catch(_0x4c1b67){_0x36c6ba['push'](_0x36c6ba['shift']());}}}(a35_0x3d78,0x96dad));function a35_0xb2ab(_0x48c8e4,_0x242249){const _0x3d78a1=a35_0x3d78();return a35_0xb2ab=function(_0xb2ab91,_0x3ef29b){_0xb2ab91=_0xb2ab91-0x74;let _0xfec474=_0x3d78a1[_0xb2ab91];return _0xfec474;},a35_0xb2ab(_0x48c8e4,_0x242249);}import a35_0x1a7ae2 from'ol/layer/Vector';import a35_0xffca5e from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a35_0x4aa59f from'ol/format/GeoJSON';function a35_0x3d78(){const _0x2dee49=['getSelectedFeatures','getPolygonTempLayer','5440032tRBUpg','removeFeature','readFeature','layerInfo','length','getSource','tempLayer','getPointTempLayer','getTempSelectedFeatures','562566KMkFMT','1503324PLGaBZ','flashFeatures','addFeatures','push','clearTempFeatures','1XOInOy','removeLayer','14855110tlpqer','tag','isSelected','1664196eRgnat','flash_layer','getLayerById','133flHWUx','3606321QThfVM','map','getLineTempLayer','forEach','getFeatures','65niczeZ','filter','addLayer','features','245048vToBRG','setVisible'];a35_0x3d78=function(){return _0x2dee49;};return a35_0x3d78();}export default class FeatureManager{constructor(_0x320720){const _0x19c58a=a35_0xb2ab;this[_0x19c58a(0x7c)]=_0x320720;}[a35_0x18a5f7(0x86)](_0x24c4bf,_0x1c66ff){const _0x13feb1=a35_0x18a5f7;if(_0x24c4bf){const _0x5def0f=this[_0x13feb1(0x7c)][_0x13feb1(0x79)](_0x24c4bf);if(!_0x5def0f||!_0x5def0f[_0x13feb1(0x8b)])return;let _0x55463e;switch(_0x5def0f[_0x13feb1(0x8b)]['geometryType']){case 0x1:_0x55463e=this[_0x13feb1(0x90)](this[_0x13feb1(0x7c)]['getPointTempLayer'](),_0x24c4bf,_0x1c66ff);break;case 0x2:_0x55463e=this[_0x13feb1(0x90)](this[_0x13feb1(0x7c)][_0x13feb1(0x7d)](),_0x24c4bf,_0x1c66ff);break;case 0x3:_0x55463e=this['getTempSelectedFeatures'](this[_0x13feb1(0x7c)][_0x13feb1(0x87)](),_0x24c4bf,_0x1c66ff);break;default:break;}return _0x55463e;}else{const _0x3d03b3=this[_0x13feb1(0x90)](this[_0x13feb1(0x7c)][_0x13feb1(0x8f)](),_0x24c4bf,_0x1c66ff),_0x2b921b=this[_0x13feb1(0x90)](this[_0x13feb1(0x7c)]['getLineTempLayer'](),_0x24c4bf,_0x1c66ff),_0x5e6c31=this['getTempSelectedFeatures'](this['map']['getPolygonTempLayer'](),_0x24c4bf,_0x1c66ff);let _0x4c5e5d=[];return _0x3d03b3&&(_0x4c5e5d=[..._0x4c5e5d,..._0x3d03b3]),_0x2b921b&&(_0x4c5e5d=[..._0x4c5e5d,..._0x2b921b]),_0x5e6c31&&(_0x4c5e5d=[..._0x4c5e5d,..._0x5e6c31]),_0x4c5e5d;}}['getTempSelectedFeatures'](_0x262807,_0x14806d,_0x391dbb){const _0x19459c=a35_0x18a5f7;var _0x2740ab;let _0x45db99=(_0x2740ab=_0x262807[_0x19459c(0x8d)]())===null||_0x2740ab===void 0x0?void 0x0:_0x2740ab[_0x19459c(0x7f)]();if(!_0x45db99)return;_0x45db99['forEach']((_0x1d0890,_0x237a82,_0x4ba4ee)=>{_0x1d0890['tempLayer']=_0x262807;});_0x391dbb!=undefined&&(_0x45db99=_0x45db99[_0x19459c(0x81)](_0x206183=>_0x206183[_0x19459c(0x76)]==_0x391dbb));if(_0x14806d)return _0x45db99[_0x19459c(0x81)](_0x55a18d=>_0x55a18d['layerId']==_0x14806d);return _0x45db99;}[a35_0x18a5f7(0x93)](_0x560624,_0x31ae15=0x3){const _0x1b12c7=a35_0x18a5f7;var _0x540421;let _0x447893=new a35_0x1a7ae2({'zIndex':0x270f,'source':new a35_0xffca5e()});_0x447893['id']=_0x1b12c7(0x78),this[_0x1b12c7(0x7c)][_0x1b12c7(0x82)](_0x447893,![]),(_0x540421=_0x447893[_0x1b12c7(0x8d)]())===null||_0x540421===void 0x0?void 0x0:_0x540421[_0x1b12c7(0x94)](_0x560624);let _0x462ac5=0x0,_0x97d289=setInterval(()=>{const _0x3a4d27=_0x1b12c7;if(_0x462ac5===_0x31ae15){_0x97d289&&clearInterval(_0x97d289);const _0x11af08=this[_0x3a4d27(0x7c)][_0x3a4d27(0x79)](_0x447893['id']);_0x11af08&&this[_0x3a4d27(0x7c)][_0x3a4d27(0x98)](_0x11af08);return;}if(_0x447893['getVisible']())_0x447893[_0x3a4d27(0x85)](![]);else _0x447893[_0x3a4d27(0x85)](!![]);_0x462ac5++;},0x190);}async['kmlImport'](_0x3b5d76){const _0x4ba108=a35_0x18a5f7;let _0x89d578=await toGeoJSON(_0x3b5d76,null);if(!_0x89d578)return[];let _0x25fe3c=[];var _0x50ad0f=new a35_0x4aa59f();return _0x89d578[_0x4ba108(0x83)][_0x4ba108(0x7e)](_0x46a9c0=>{const _0x5dbf95=_0x4ba108;_0x25fe3c[_0x5dbf95(0x95)](_0x50ad0f[_0x5dbf95(0x8a)](_0x46a9c0,null));}),_0x25fe3c;}[a35_0x18a5f7(0x96)](_0x2cac3b){const _0x5c2331=a35_0x18a5f7,_0x326864=this[_0x5c2331(0x86)]();if(_0x326864&&_0x326864[_0x5c2331(0x8c)]>0x0)for(const _0x53ef59 of _0x326864){if(_0x53ef59&&_0x53ef59[_0x5c2331(0x8e)]){const _0x514a69=_0x53ef59[_0x5c2331(0x8e)][_0x5c2331(0x8d)]();_0x514a69&&(_0x2cac3b!=undefined?_0x53ef59[_0x5c2331(0x75)]==_0x2cac3b&&_0x514a69[_0x5c2331(0x89)](_0x53ef59):_0x514a69[_0x5c2331(0x89)](_0x53ef59));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a36_0x58f4(){var _0x23c267=['30rhDoTl','579MJLGWa','13220082JAZPPU','163512khTuTo','20960netFrd','10246687BkFaSF','5686552USpKrB','2415854wbAzXa','55iyzlpf','2hajAnE','1155023LWVVWA'];a36_0x58f4=function(){return _0x23c267;};return a36_0x58f4();}(function(_0x2b9dda,_0x252709){var _0x16fe64=a36_0x5290,_0x4f359b=_0x2b9dda();while(!![]){try{var _0x251ae2=-parseInt(_0x16fe64(0x1e5))/0x1*(-parseInt(_0x16fe64(0x1e4))/0x2)+parseInt(_0x16fe64(0x1e7))/0x3*(parseInt(_0x16fe64(0x1ea))/0x4)+-parseInt(_0x16fe64(0x1ee))/0x5*(-parseInt(_0x16fe64(0x1e9))/0x6)+parseInt(_0x16fe64(0x1ed))/0x7+-parseInt(_0x16fe64(0x1ec))/0x8+parseInt(_0x16fe64(0x1e8))/0x9+parseInt(_0x16fe64(0x1e6))/0xa*(-parseInt(_0x16fe64(0x1eb))/0xb);if(_0x251ae2===_0x252709)break;else _0x4f359b['push'](_0x4f359b['shift']());}catch(_0x3a5459){_0x4f359b['push'](_0x4f359b['shift']());}}}(a36_0x58f4,0xbd26d));import a36_0x18299b from'./mapView/Map';function a36_0x5290(_0x4c7936,_0xe61955){var _0x58f41e=a36_0x58f4();return a36_0x5290=function(_0x529082,_0x40806d){_0x529082=_0x529082-0x1e4;var _0x529023=_0x58f41e[_0x529082];return _0x529023;},a36_0x5290(_0x4c7936,_0xe61955);}export{a36_0x18299b as Map2D};
|