ym-gis-2d 1.0.34 → 1.0.36
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/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/feature/FeatureManager.js.map +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Difference.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Modify.d.ts +15 -0
- package/interaction/Modify.d.ts.map +1 -0
- package/interaction/Modify.js +1 -0
- package/interaction/Modify.js.map +1 -0
- package/interaction/Select.js +1 -1
- package/interaction/Split.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.js +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x3e0e19=a53_0x315b;(function(_0x9688a4,_0x54e8eb){const _0x37283f=a53_0x315b,_0x4a9b49=_0x9688a4();while(!![]){try{const _0x15c825=parseInt(_0x37283f(0x106))/0x1+-parseInt(_0x37283f(0xea))/0x2+-parseInt(_0x37283f(0xe4))/0x3+parseInt(_0x37283f(0x113))/0x4*(-parseInt(_0x37283f(0xfe))/0x5)+parseInt(_0x37283f(0xff))/0x6*(-parseInt(_0x37283f(0x111))/0x7)+-parseInt(_0x37283f(0x109))/0x8+parseInt(_0x37283f(0x107))/0x9;if(_0x15c825===_0x54e8eb)break;else _0x4a9b49['push'](_0x4a9b49['shift']());}catch(_0x2d0b50){_0x4a9b49['push'](_0x4a9b49['shift']());}}}(a53_0x4da4,0x2de2a));import a53_0x57ca0a from'ol/format/EsriJSON';import a53_0x4f6c1d from'ol/source/Vector';import{Vector as a53_0xf77680}from'ol/layer';function a53_0x4da4(){const _0x183cd1=['symbol','331134AblDJR','5673645YZqetB','/query','579864jlCfTg','error','type','1=1','ymax','uniqueValueInfos','renderer','EPSG:','26915CvxTxf','mapIndex','526172tClVdi','log','uniqueValue','initialExtent','&outSR=','url','133956qUOoxA','{\x22xmin\x22:','then','where=','setLayers','layerInfo','511530qEISaw','forEach','drawingInfo','f\x20=\x20json\x20&\x20','setFilter',',\x22spatialReference\x22:{\x22wkid\x22:','field1','find','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','fullExtent','push','xmax','createArcGISFeatureLayer','wkt','xmin','showIndex','addFeatures','&outFields=*',',\x22ymax\x22:','&geometryType=esriGeometryEnvelope&inSR=','5TgzlbW','420EmnurC','ymin','loadFilter','spatialReference','setStyle','value'];a53_0x4da4=function(){return _0x183cd1;};return a53_0x4da4();}import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x20b066}from'ol/loadingstrategy';function a53_0x315b(_0x13415e,_0x1ff534){const _0x4da4ee=a53_0x4da4();return a53_0x315b=function(_0x315ba1,_0x4e2689){_0x315ba1=_0x315ba1-0xdf;let _0x2df2e0=_0x4da4ee[_0x315ba1];return _0x2df2e0;},a53_0x315b(_0x13415e,_0x1ff534);}import a53_0x8944f3 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0x40f662 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x8944f3{constructor(_0x3bdc27,_0x122e46,_0x5319d9){const _0xda911=a53_0x315b,_0x49eb13=[_0x122e46['initialExtent'][_0xda911(0xf8)],_0x122e46[_0xda911(0xe1)][_0xda911(0x100)],_0x122e46[_0xda911(0xe1)][_0xda911(0xf5)],_0x122e46['initialExtent'][_0xda911(0x10d)]],_0x435359=[_0x122e46[_0xda911(0xf3)][_0xda911(0xf8)],_0x122e46['fullExtent'][_0xda911(0x100)],_0x122e46['fullExtent'][_0xda911(0xf5)],_0x122e46[_0xda911(0xf3)]['ymax']];let _0x22cdbc;_0x122e46['spatialReference']['wkid']?_0x22cdbc=registerProj(_0xda911(0x110)+_0x122e46[_0xda911(0x102)]['wkid'],_0x435359):_0x22cdbc=registerProj(_0x122e46[_0xda911(0x102)][_0xda911(0xf7)],_0x435359);let _0x303035=[];super({'zIndex':_0x3bdc27[_0xda911(0x112)]});for(let _0x3ed805 of _0x5319d9){let _0x325a53=this[_0xda911(0xf6)](_0x3bdc27,_0x3ed805);_0x303035[_0xda911(0xf4)](_0x325a53);}this[_0xda911(0xe8)](new a53_0x40f662(_0x303035)),this['id']=_0x3bdc27['id'],this[_0xda911(0xe1)]=_0x49eb13,this['projection']=_0x22cdbc,this[_0xda911(0xe9)]=_0x3bdc27;}[a53_0x3e0e19(0xf6)](_0x4120db,_0x11a31c){const _0x5ba474=a53_0x3e0e19;var _0x1ea4d2=new a53_0x57ca0a();let _0x4b2182=new a53_0x4f6c1d({'loader':function(_0x1edd7a,_0x28bb7,_0x3c2682){const _0x5a8a64=a53_0x315b;let _0xe24ce=_0x5a8a64(0x10c);_0x4120db['loadFilter']&&(_0xe24ce=typeof _0x4120db[_0x5a8a64(0x101)]==='string'?_0x4120db[_0x5a8a64(0x101)]:JSON['stringify'](_0x4120db[_0x5a8a64(0x101)]));let _0x3fe7ae=_0x3c2682['getCode'](),_0x5aca9a=_0x3fe7ae['split'](':')[0x1];var _0x47cfe4=appendPath(_0x11a31c[_0x5a8a64(0xe3)],_0x5a8a64(0x108));_0x47cfe4=appendParam(_0x47cfe4,_0x5a8a64(0xed)+_0x5a8a64(0xe7)+encodeURIComponent(_0xe24ce)+_0x5a8a64(0xf2)+encodeURIComponent(_0x5a8a64(0xe5)+_0x1edd7a[0x0]+',\x22ymin\x22:'+_0x1edd7a[0x1]+',\x22xmax\x22:'+_0x1edd7a[0x2]+_0x5a8a64(0xfc)+_0x1edd7a[0x3]+_0x5a8a64(0xef)+_0x5aca9a+'}}')+_0x5a8a64(0xfd)+_0x5aca9a+_0x5a8a64(0xfb)+_0x5a8a64(0xe2)+_0x5aca9a),jsonp(_0x47cfe4)[_0x5a8a64(0xe6)](_0x2dd555=>{const _0x7bbdb7=_0x5a8a64;if(_0x2dd555[_0x7bbdb7(0x10a)])console[_0x7bbdb7(0xdf)](_0x2dd555);else{var _0x2af0aa=_0x1ea4d2['readFeatures'](_0x2dd555,{'featureProjection':_0x3c2682});_0x2af0aa['length']>0x0&&(_0x11a31c['drawingInfo']['renderer'][_0x7bbdb7(0x10b)]==_0x7bbdb7(0xe0)&&_0x2af0aa[_0x7bbdb7(0xeb)](function(_0x1801a4){const _0x53e355=_0x7bbdb7;var _0x1890c8=_0x1801a4['get'](_0x11a31c['drawingInfo'][_0x53e355(0x10f)][_0x53e355(0xf0)]);const _0xd99659=_0x11a31c[_0x53e355(0xec)][_0x53e355(0x10f)][_0x53e355(0x10e)][_0x53e355(0xf1)](_0x4a6446=>_0x4a6446[_0x53e355(0x104)]==_0x1890c8);let _0x3c3d1f;_0xd99659?_0x3c3d1f=transformedEsriStyle(_0xd99659[_0x53e355(0x105)]):_0x3c3d1f=transformedEsriStyle(_0x11a31c[_0x53e355(0xec)][_0x53e355(0x10f)]['defaultSymbol']),_0x1801a4[_0x53e355(0x103)](_0x3c3d1f);}),_0x4b2182[_0x7bbdb7(0xfa)](_0x2af0aa));}});},'strategy':a53_0x20b066(createXYZ({'tileSize':0x200}))}),_0x50dc3d=new a53_0xf77680({'source':_0x4b2182,'zIndex':_0x4120db[_0x5ba474(0xf9)]});if(_0x11a31c[_0x5ba474(0xec)][_0x5ba474(0x10f)]['type']=='simple'&&_0x11a31c[_0x5ba474(0xec)]['renderer'][_0x5ba474(0x105)]){let _0x190286=transformedEsriStyle(_0x11a31c[_0x5ba474(0xec)][_0x5ba474(0x10f)][_0x5ba474(0x105)]);_0x50dc3d[_0x5ba474(0x103)](_0x190286);}return _0x50dc3d;}[a53_0x3e0e19(0xee)](_0x360fc9){const _0x300efd=a53_0x3e0e19;this[_0x300efd(0xe9)]['loadFilter']=_0x360fc9;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x574f19,_0x1df8f2){const _0x1b7e70=a54_0x53e9,_0x45a32b=_0x574f19();while(!![]){try{const _0x25fa93=parseInt(_0x1b7e70(0x10b))/0x1+-parseInt(_0x1b7e70(0x10a))/0x2+parseInt(_0x1b7e70(0xf8))/0x3+parseInt(_0x1b7e70(0x108))/0x4*(parseInt(_0x1b7e70(0xf7))/0x5)+parseInt(_0x1b7e70(0xfa))/0x6*(-parseInt(_0x1b7e70(0x102))/0x7)+-parseInt(_0x1b7e70(0x116))/0x8*(parseInt(_0x1b7e70(0x115))/0x9)+-parseInt(_0x1b7e70(0x107))/0xa*(-parseInt(_0x1b7e70(0xfd))/0xb);if(_0x25fa93===_0x1df8f2)break;else _0x45a32b['push'](_0x45a32b['shift']());}catch(_0x2bc0f7){_0x45a32b['push'](_0x45a32b['shift']());}}}(a54_0x1713,0x75698));import a54_0x1ebd77 from'ol/layer/Tile';import a54_0x1f3bf0 from'ol/source/XYZ';import a54_0x1e8ca0 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';function a54_0x53e9(_0x478337,_0x1bebd5){const _0x17134d=a54_0x1713();return a54_0x53e9=function(_0x53e999,_0x22fcb9){_0x53e999=_0x53e999-0xf5;let _0x41c0ac=_0x17134d[_0x53e999];return _0x41c0ac;},a54_0x53e9(_0x478337,_0x1bebd5);}function a54_0x1713(){const _0x182c1f=['cols','359604XousYd','8lQsIoR','lods','anonymous','535ttecZm','1553400LHpFcD','resolution','6nBEmGU','tileInfo','ymax','11HaHcPn','/tile/{z}/{y}/{x}','projection','EPSG:','layerInfo','6649244pwSCDL','ymin','rows','xmax','wkid','12985210COYRjb','9132svqNLH','origin','1848354cRZOyT','334343oHHPPt','initialExtent','spatialReference','url','fullExtent','wkt','opacity','xmin','mapIndex'];a54_0x1713=function(){return _0x182c1f;};return a54_0x1713();}import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x1ebd77{constructor(_0x210fb4,_0x5034b5){const _0x4d13a4=a54_0x53e9,_0x219174=_0x210fb4[_0x4d13a4(0x10e)]?_0x210fb4[_0x4d13a4(0x10e)]:'',_0x36f7a3=appendPath(_0x219174,_0x4d13a4(0xfe)),_0x2eb9cb=[_0x5034b5['initialExtent'][_0x4d13a4(0x112)],_0x5034b5[_0x4d13a4(0x10c)][_0x4d13a4(0x103)],_0x5034b5[_0x4d13a4(0x10c)][_0x4d13a4(0x105)],_0x5034b5[_0x4d13a4(0x10c)]['ymax']],_0x180d45=[_0x5034b5[_0x4d13a4(0x10f)][_0x4d13a4(0x112)],_0x5034b5[_0x4d13a4(0x10f)][_0x4d13a4(0x103)],_0x5034b5['fullExtent'][_0x4d13a4(0x105)],_0x5034b5['fullExtent'][_0x4d13a4(0xfc)]];let _0x18bf46;_0x5034b5['spatialReference'][_0x4d13a4(0x106)]?_0x18bf46=registerProj(_0x4d13a4(0x100)+_0x5034b5[_0x4d13a4(0x10d)]['wkid'],_0x180d45):_0x18bf46=registerProj(_0x5034b5[_0x4d13a4(0x10d)][_0x4d13a4(0x110)],_0x180d45);let _0xbb6ab4=[];for(let _0x11692a=0x0,_0x341305=_0x5034b5[_0x4d13a4(0xfb)][_0x4d13a4(0xf5)]['length'];_0x11692a<_0x341305;_0x11692a++){_0xbb6ab4['push'](_0x5034b5[_0x4d13a4(0xfb)][_0x4d13a4(0xf5)][_0x11692a][_0x4d13a4(0xf9)]);}super({'opacity':_0x210fb4[_0x4d13a4(0x111)],'zIndex':_0x210fb4[_0x4d13a4(0x113)],'maxResolution':_0xbb6ab4[0x0]*0x2,'source':new a54_0x1f3bf0({'url':_0x36f7a3,'projection':_0x18bf46,'crossOrigin':_0x4d13a4(0xf6),'tileGrid':new a54_0x1e8ca0({'extent':_0x180d45,'origin':[_0x5034b5[_0x4d13a4(0xfb)][_0x4d13a4(0x109)]['x'],_0x5034b5[_0x4d13a4(0xfb)][_0x4d13a4(0x109)]['y']],'resolutions':_0xbb6ab4,'tileSize':[_0x5034b5['tileInfo'][_0x4d13a4(0x104)],_0x5034b5['tileInfo'][_0x4d13a4(0x114)]]})})}),this['id']=_0x210fb4['id'],this[_0x4d13a4(0x10c)]=_0x2eb9cb,this[_0x4d13a4(0xff)]=_0x18bf46,this[_0x4d13a4(0x101)]=_0x210fb4;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x4d6e85=a55_0x5d2e;(function(_0x4f28e6,_0x54353e){const _0x360c07=a55_0x5d2e,_0x409141=_0x4f28e6();while(!![]){try{const _0x5a0a85=-parseInt(_0x360c07(0x89))/0x1*(-parseInt(_0x360c07(0x9a))/0x2)+-parseInt(_0x360c07(0x8b))/0x3+-parseInt(_0x360c07(0x8e))/0x4*(-parseInt(_0x360c07(0x95))/0x5)+-parseInt(_0x360c07(0x94))/0x6*(-parseInt(_0x360c07(0x98))/0x7)+-parseInt(_0x360c07(0x91))/0x8+-parseInt(_0x360c07(0x8c))/0x9+-parseInt(_0x360c07(0x86))/0xa;if(_0x5a0a85===_0x54353e)break;else _0x409141['push'](_0x409141['shift']());}catch(_0x24fc4b){_0x409141['push'](_0x409141['shift']());}}}(a55_0x2711,0x5dbf2));import{ImageWMS as a55_0x356bad}from'ol/source';import{Image as a55_0x27dc49}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a55_0x5d2e(_0x3fec54,_0x9c7c65){const _0x271137=a55_0x2711();return a55_0x5d2e=function(_0x5d2e53,_0x3adb57){_0x5d2e53=_0x5d2e53-0x86;let _0x5cb22f=_0x271137[_0x5d2e53];return _0x5cb22f;},a55_0x5d2e(_0x3fec54,_0x9c7c65);}export default class ArcgisWMSLayer extends a55_0x27dc49{constructor(_0x3c0bff,_0x4628ce){const _0x42d7d9=a55_0x5d2e;var _0x404b7;let _0x2d6c40=registerProj(_0x42d7d9(0x8a)+_0x4628ce['wkid'],undefined),_0x51ecf0={'LAYERS':(_0x404b7=_0x3c0bff[_0x42d7d9(0x9c)])===null||_0x404b7===void 0x0?void 0x0:_0x404b7['join'](','),'VERSION':'1.1.0'};_0x3c0bff[_0x42d7d9(0x93)]&&(_0x51ecf0[_0x42d7d9(0x88)]=_0x3c0bff[_0x42d7d9(0x93)]),super({'opacity':_0x3c0bff[_0x42d7d9(0x87)],'zIndex':_0x3c0bff[_0x42d7d9(0x9d)],'source':new a55_0x356bad({'crossOrigin':'anonymous','url':_0x3c0bff[_0x42d7d9(0x96)],'params':_0x51ecf0})}),this['id']=_0x3c0bff['id'],this[_0x42d7d9(0x90)]=_0x4628ce[_0x42d7d9(0x99)],this[_0x42d7d9(0x92)]=_0x2d6c40,this[_0x42d7d9(0x8d)]=_0x3c0bff;}[a55_0x4d6e85(0x9b)](){}[a55_0x4d6e85(0x97)](_0x48c26e){const _0x10b736=a55_0x4d6e85;var _0x4d5c01;(_0x4d5c01=this[_0x10b736(0x8f)]())===null||_0x4d5c01===void 0x0?void 0x0:_0x4d5c01['updateParams']({'CQL_FILTER':_0x48c26e});}}function a55_0x2711(){const _0x3c8ef3=['21MVZZDR','initExtent','446WuBsrU','refresh','sublayers','mapIndex','3228840TpjlGK','opacity','CQL_FILTER','605oyIRnF','EPSG:','280692TaQaoc','4783437pKWXFe','layerInfo','2988784BlzOgc','getSource','initialExtent','1637552LNiGbO','projection','loadFilter','1309020VBjFNc','5patAoT','url','setFilter'];a55_0x2711=function(){return _0x3c8ef3;};return a55_0x2711();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c1e6c,_0x2e85c2){const _0xd0db80=a56_0x5852,_0x358729=_0x2c1e6c();while(!![]){try{const _0x2592c5=parseInt(_0xd0db80(0xed))/0x1*(parseInt(_0xd0db80(0xe8))/0x2)+-parseInt(_0xd0db80(0xf5))/0x3+-parseInt(_0xd0db80(0xe3))/0x4+parseInt(_0xd0db80(0xea))/0x5*(parseInt(_0xd0db80(0xe2))/0x6)+-parseInt(_0xd0db80(0x102))/0x7+parseInt(_0xd0db80(0xf4))/0x8+parseInt(_0xd0db80(0xee))/0x9;if(_0x2592c5===_0x2e85c2)break;else _0x358729['push'](_0x358729['shift']());}catch(_0x559b48){_0x358729['push'](_0x358729['shift']());}}}(a56_0x35c6,0xdacb0));import a56_0x561f11 from'ol/layer/Tile';import a56_0x389600,{optionsFromCapabilities}from'ol/source/WMTS.js';import a56_0x177d6b from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';function a56_0x5852(_0x2ba7f9,_0x419138){const _0x35c62f=a56_0x35c6();return a56_0x5852=function(_0x585267,_0x15a24c){_0x585267=_0x585267-0xe2;let _0x10ada6=_0x35c62f[_0x585267];return _0x10ada6;},a56_0x5852(_0x2ba7f9,_0x419138);}import{addArgument,getUrlParams}from'../utils/UrlUtil';function a56_0x35c6(){const _0x59f8c7=['url','tileMatrixSet','getMatrixIds','wkid','name','length','urls','image/png','src','4191782lIcyHf','initialExtent','format','?http','boundingBoxExtent','tileGrid','373206qDClnP','241028avhHEs','layer','layerInfo','sourceXml','opacity','16044YTeFbR','EPSG:','5sYjyFF','sublayers','projection','183pNZOOV','6108183VZcEcu','replace','requestEncoding','mapIndex','value','getImage','3085608oKVddt','3118068SAoDxP','style','indexOf','token'];a56_0x35c6=function(){return _0x59f8c7;};return a56_0x35c6();}export default class ArcgisWMTSLayer extends a56_0x561f11{constructor(_0x3c25a8,_0x287ed4){const _0x555121=a56_0x5852;var _0xd176f7;let _0x15c937='';_0x3c25a8[_0x555121(0xeb)]&&_0x3c25a8[_0x555121(0xeb)][_0x555121(0xfe)]>0x0&&(_0x15c937=_0x3c25a8[_0x555121(0xeb)]['join'](','));const _0x13f450=_0x555121(0xe9)+_0x287ed4[_0x555121(0xfc)];let _0x1e0408=registerProj(_0x13f450);const _0x547d0f=optionsFromCapabilities(_0x287ed4[_0x555121(0xe6)],{'layer':(_0xd176f7=_0x3c25a8[_0x555121(0xeb)])===null||_0xd176f7===void 0x0?void 0x0:_0xd176f7[0x0],'matrixSet':_0x287ed4[_0x555121(0xfa)],'format':_0x555121(0x100)});let _0x4ad22a=_0x547d0f[_0x555121(0x107)]['origins_'][0x0];_0x4ad22a[0x0]===0x5a&&_0x4ad22a[0x1]===-0xb4&&(_0x4ad22a=[_0x4ad22a[0x1],_0x4ad22a[0x0]]),super({'opacity':_0x3c25a8[_0x555121(0xe7)],'zIndex':_0x3c25a8[_0x555121(0xf1)],'source':new a56_0x389600({'urls':_0x547d0f[_0x555121(0xff)],'requestEncoding':_0x547d0f[_0x555121(0xf0)],'layer':_0x547d0f[_0x555121(0xe4)],'tileLoadFunction':function(_0x445809,_0x57fc64){const _0x6ebfda=_0x555121,_0x130836=_0x3c25a8[_0x6ebfda(0xf9)]?_0x3c25a8['url']:'';let _0x22365f=getUrlParams(_0x130836);if((_0x22365f===null||_0x22365f===void 0x0?void 0x0:_0x22365f['length'])>0x0)for(let _0x26d12b of _0x22365f){_0x57fc64=addArgument(_0x57fc64,_0x26d12b[_0x6ebfda(0xfd)],_0x26d12b[_0x6ebfda(0xf2)]);}let _0x5727cd=_0x57fc64[_0x6ebfda(0xf7)](_0x6ebfda(0x105));_0x5727cd!==-0x1?_0x57fc64[_0x6ebfda(0xf7)](_0x6ebfda(0xf8))===-0x1&&_0x57fc64['indexOf']('tk')===-0x1?_0x445809[_0x6ebfda(0xf3)]()[_0x6ebfda(0x101)]=_0x57fc64[_0x6ebfda(0xef)]('&','?'):_0x445809[_0x6ebfda(0xf3)]()[_0x6ebfda(0x101)]=_0x57fc64:_0x445809[_0x6ebfda(0xf3)]()[_0x6ebfda(0x101)]=_0x57fc64;},'matrixSet':_0x547d0f['matrixSet'],'format':_0x547d0f[_0x555121(0x104)],'projection':_0x547d0f[_0x555121(0xec)],'tileGrid':new a56_0x177d6b({'origin':_0x4ad22a,'resolutions':_0x547d0f[_0x555121(0x107)]['getResolutions'](),'matrixIds':_0x547d0f[_0x555121(0x107)][_0x555121(0xfb)](),'extent':_0x287ed4[_0x555121(0x106)]}),'style':_0x287ed4[_0x555121(0xf6)],'wrapX':!![]})}),this['id']=_0x3c25a8['id'],this[_0x555121(0x103)]=_0x287ed4[_0x555121(0x106)],this[_0x555121(0xec)]=_0x1e0408,this[_0x555121(0xe5)]=_0x3c25a8;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a57_0x4b9d(){const _0x4f72fd=['256790RNbdzc','WMTS','tileSizes_','getMatrixIds','tileGrid',':{z}','36CiSyeK','10820552yymxod','toString','2262932uBNOHr','url','3209XWpWLH','sublayers','1.0.0','1176486zmdGRU','length','wkid','sourceXml','459267xWZkjB','GetTile','4239998IEuBgz','projection','30iFvehF','getResolutions','tileMatrixSet','{y}','mapIndex','405XiUeHn','boundingBoxExtent','EPSG:','opacity','application/vnd.mapbox-vector-tile'];a57_0x4b9d=function(){return _0x4f72fd;};return a57_0x4b9d();}(function(_0x4d0e47,_0x321925){const _0x291663=a57_0x5810,_0x2c4264=_0x4d0e47();while(!![]){try{const _0x2bb4a2=parseInt(_0x291663(0x146))/0x1+parseInt(_0x291663(0x144))/0x2+-parseInt(_0x291663(0x12d))/0x3*(-parseInt(_0x291663(0x141))/0x4)+parseInt(_0x291663(0x131))/0x5*(-parseInt(_0x291663(0x149))/0x6)+-parseInt(_0x291663(0x12f))/0x7+parseInt(_0x291663(0x142))/0x8+parseInt(_0x291663(0x136))/0x9*(-parseInt(_0x291663(0x13b))/0xa);if(_0x2bb4a2===_0x321925)break;else _0x2c4264['push'](_0x2c4264['shift']());}catch(_0x79d762){_0x2c4264['push'](_0x2c4264['shift']());}}}(a57_0x4b9d,0xe263a));import a57_0xa3d41c from'ol/layer/VectorTile';import a57_0xf8c9db from'ol/source/VectorTile';import a57_0x3493b5 from'ol/format/MVT';import{registerProj}from'../utils/RegisterProjUtil';import a57_0x12e727 from'ol/tilegrid/WMTS';function a57_0x5810(_0x5dbee2,_0x4168d9){const _0x4b9d49=a57_0x4b9d();return a57_0x5810=function(_0x5810ca,_0x3ce08f){_0x5810ca=_0x5810ca-0x12b;let _0x23e510=_0x4b9d49[_0x5810ca];return _0x23e510;},a57_0x5810(_0x5dbee2,_0x4168d9);}import{optionsFromCapabilities}from'ol/source/WMTS';import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a57_0xa3d41c{constructor(_0x1db8a6,_0x1ee904){const _0x1b59a6=a57_0x5810;var _0x29da4c;let _0x5b0bbf=registerProj(_0x1b59a6(0x138)+_0x1ee904['wkid']);const _0x4e92f3=optionsFromCapabilities(_0x1ee904[_0x1b59a6(0x12c)],{'layer':(_0x29da4c=_0x1db8a6[_0x1b59a6(0x147)])===null||_0x29da4c===void 0x0?void 0x0:_0x29da4c[0x0],'matrixSet':_0x1ee904[_0x1b59a6(0x133)],'format':'image/png'});let _0x45314f=_0x1db8a6['sublayers']&&_0x1db8a6['sublayers'][_0x1b59a6(0x14a)]>0x0?_0x1db8a6[_0x1b59a6(0x147)][0x0]:'';const _0x37b63c={'REQUEST':_0x1b59a6(0x12e),'SERVICE':_0x1b59a6(0x13c),'VERSION':_0x1b59a6(0x148),'LAYER':_0x45314f,'STYLE':_0x1ee904['style']['toString'](),'TILEMATRIX':_0x1ee904['tileMatrixSet']+_0x1b59a6(0x140),'TILEMATRIXSET':_0x1ee904[_0x1b59a6(0x133)][_0x1b59a6(0x143)](),'FORMAT':_0x1b59a6(0x13a),'TILECOL':'{x}','TILEROW':_0x1b59a6(0x134)};let _0x14092c=_0x1db8a6[_0x1b59a6(0x145)]?_0x1db8a6[_0x1b59a6(0x145)]:'';for(const _0x3017a6 in _0x37b63c){_0x14092c=addArgument(_0x14092c,_0x3017a6,_0x37b63c[_0x3017a6]);}super({'opacity':_0x1db8a6[_0x1b59a6(0x139)],'zIndex':_0x1db8a6[_0x1b59a6(0x135)],'declutter':!![],'source':new a57_0xf8c9db({'projection':'EPSG:'+_0x1ee904[_0x1b59a6(0x12b)],'format':new a57_0x3493b5(),'wrapX':!![],'extent':_0x1ee904[_0x1b59a6(0x137)],'tileGrid':new a57_0x12e727({'tileSize':_0x4e92f3[_0x1b59a6(0x13f)][_0x1b59a6(0x13d)][0x0],'origin':_0x4e92f3[_0x1b59a6(0x13f)]['origins_'][0x0],'resolutions':_0x4e92f3[_0x1b59a6(0x13f)][_0x1b59a6(0x132)](),'matrixIds':_0x4e92f3[_0x1b59a6(0x13f)][_0x1b59a6(0x13e)]()}),'url':_0x14092c})}),this['id']=_0x1db8a6['id'],this['initialExtent']=_0x1ee904['boundingBoxExtent'],this[_0x1b59a6(0x130)]=_0x5b0bbf,this['layerInfo']=_0x1db8a6;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x1b0b61=a58_0x5091;(function(_0x215e5e,_0x4cadca){const _0x4dc66a=a58_0x5091,_0x27b5fe=_0x215e5e();while(!![]){try{const _0x4a9eb9=parseInt(_0x4dc66a(0x142))/0x1+parseInt(_0x4dc66a(0x157))/0x2+parseInt(_0x4dc66a(0x153))/0x3*(-parseInt(_0x4dc66a(0x164))/0x4)+-parseInt(_0x4dc66a(0x174))/0x5+-parseInt(_0x4dc66a(0x167))/0x6*(parseInt(_0x4dc66a(0x154))/0x7)+parseInt(_0x4dc66a(0x165))/0x8*(parseInt(_0x4dc66a(0x15c))/0x9)+parseInt(_0x4dc66a(0x16f))/0xa;if(_0x4a9eb9===_0x4cadca)break;else _0x27b5fe['push'](_0x27b5fe['shift']());}catch(_0x5b8d67){_0x27b5fe['push'](_0x27b5fe['shift']());}}}(a58_0x5cef,0x18b33));import a58_0x380119 from'ol/source/Vector';import a58_0x4d97fe from'ol/format/GeoJSON';import{Vector as a58_0x12a793}from'ol/layer';import a58_0x56056e from'ol/format/WFS';import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a58_0x875c84 from'../utils/format/CQL';function a58_0x5091(_0x183a8a,_0x2a3c32){const _0x5cefcd=a58_0x5cef();return a58_0x5091=function(_0x5091be,_0x4d4026){_0x5091be=_0x5091be-0x142;let _0x4b315e=_0x5cefcd[_0x5091be];return _0x4b315e;},a58_0x5091(_0x183a8a,_0x2a3c32);}import*as a58_0x389d25 from'ol/format/filter';function a58_0x5cef(){const _0x399712=['apply','94834DvgnkE','length','initExtent','and','filter','8091UrpFru','layerFields','catch','lessThan','readFeatures','mapIndex','not','then','76WxDoAK','288QcVUVc','addFeatures','30Wqitbm','equalTo','writeGetFeature','find','json','sublayers','loadFilter','application/json','2847440FSfkAo','type字段不存在','initialExtent','serializeToString','string','699045PknJzY','42693yPQqbm','param字段不存在','POST','projection','between','warn','removeLoadedExtent','url','name','!==','type','param','parseFilter','getSource','push','toLowerCase','layerInfo','1161oTfHoE','222439wTQtez','wkid'];a58_0x5cef=function(){return _0x399712;};return a58_0x5cef();}export default class GeoserverWFSLayer extends a58_0x12a793{constructor(_0x163179,_0x45f48d){const _0x232157=a58_0x5091;let _0x2327be=registerProj('EPSG:'+_0x45f48d[_0x232157(0x155)]);const _0x2acb8f=_0x45f48d[_0x232157(0x15d)][_0x232157(0x16a)](_0x12f28b=>_0x12f28b['fieldType']==0x6);super({'zIndex':_0x163179[_0x232157(0x161)],'source':new a58_0x380119({'format':new a58_0x4d97fe(),'loader':(_0xdc76be,_0x4f964b,_0x528291,_0x1afb61,_0x29fa0a)=>{const _0x5514e1=_0x232157;let _0x79e777=_0x163179[_0x5514e1(0x16d)],_0x5e315a={'srsName':_0x528291['getCode'](),'featureTypes':_0x163179[_0x5514e1(0x16c)],'bbox':_0xdc76be,'geometryName':_0x2acb8f?_0x2acb8f[_0x5514e1(0x14a)]:'','outputFormat':_0x5514e1(0x16e)};_0x79e777&&(typeof _0x79e777===_0x5514e1(0x173)?_0x5e315a['filter']=new a58_0x875c84()['read'](_0x79e777):_0x5e315a[_0x5514e1(0x15b)]=this['parseFilter'](_0x79e777));var _0x58f719=new a58_0x56056e()[_0x5514e1(0x169)](_0x5e315a);let _0x4d5d6a=_0x163179[_0x5514e1(0x149)]?_0x163179[_0x5514e1(0x149)]:'';fetch(_0x4d5d6a,{'method':_0x5514e1(0x144),'body':new XMLSerializer()[_0x5514e1(0x172)](_0x58f719)})[_0x5514e1(0x163)](_0x1e8330=>{const _0x13f399=_0x5514e1;return _0x1e8330[_0x13f399(0x16b)]();})[_0x5514e1(0x163)](_0x45134a=>{const _0x2e4363=_0x5514e1,_0x12f319=new a58_0x4d97fe()[_0x2e4363(0x160)](_0x45134a);let _0x5dd926=this[_0x2e4363(0x14f)]();_0x5dd926&&_0x5dd926[_0x2e4363(0x166)](_0x12f319);if(_0x1afb61)_0x1afb61(_0x12f319);})[_0x5514e1(0x15e)](()=>{const _0x82674=_0x5514e1;let _0x35d80b=this[_0x82674(0x14f)]();_0x35d80b&&_0x35d80b[_0x82674(0x148)](_0xdc76be);if(_0x29fa0a)_0x29fa0a();});},'strategy':bbox})}),this['id']=_0x163179['id'],this[_0x232157(0x171)]=_0x45f48d[_0x232157(0x159)],this[_0x232157(0x145)]=_0x2327be,this[_0x232157(0x152)]=_0x163179;}[a58_0x1b0b61(0x14e)](_0x53abf7){const _0x5d5c0f=a58_0x1b0b61;if(!_0x53abf7[_0x5d5c0f(0x14c)]){console[_0x5d5c0f(0x147)](_0x5d5c0f(0x170));return;}if(!_0x53abf7[_0x5d5c0f(0x14d)]){console['warn'](_0x5d5c0f(0x143));return;}let _0x18b61d=[];switch(_0x53abf7[_0x5d5c0f(0x14c)][_0x5d5c0f(0x151)]()){case _0x5d5c0f(0x15a):for(let _0x1b2a48=0x0;_0x1b2a48<_0x53abf7[_0x5d5c0f(0x14d)][_0x5d5c0f(0x158)];_0x1b2a48++){let _0x2c9b11=this['parseFilter'](_0x53abf7[_0x5d5c0f(0x14d)][_0x1b2a48]);_0x18b61d[_0x5d5c0f(0x150)](_0x2c9b11);}return a58_0x389d25[_0x5d5c0f(0x15a)][_0x5d5c0f(0x156)](null,_0x18b61d);case'or':for(let _0x57ba85=0x0;_0x57ba85<_0x53abf7[_0x5d5c0f(0x14d)]['length'];_0x57ba85++){let _0x587bdb=this['parseFilter'](_0x53abf7[_0x5d5c0f(0x14d)][_0x57ba85]);_0x18b61d[_0x5d5c0f(0x150)](_0x587bdb);}return a58_0x389d25['or'][_0x5d5c0f(0x156)](null,_0x18b61d);case _0x5d5c0f(0x162):for(let _0x43f2e8=0x0;_0x43f2e8<_0x53abf7[_0x5d5c0f(0x14d)][_0x5d5c0f(0x158)];_0x43f2e8++){let _0x54a5ba=this[_0x5d5c0f(0x14e)](_0x53abf7[_0x5d5c0f(0x14d)][_0x43f2e8]);_0x18b61d[_0x5d5c0f(0x150)](_0x54a5ba);}return a58_0x389d25[_0x5d5c0f(0x162)]['apply'](null,_0x18b61d);case'=':return a58_0x389d25[_0x5d5c0f(0x168)](_0x53abf7[_0x5d5c0f(0x14d)][0x0],_0x53abf7[_0x5d5c0f(0x14d)][0x1]);case _0x5d5c0f(0x14b):return a58_0x389d25['notEqualTo'](_0x53abf7['param'][0x0],_0x53abf7[_0x5d5c0f(0x14d)][0x1]);case'>':return a58_0x389d25['greaterThan'](_0x53abf7[_0x5d5c0f(0x14d)][0x0],_0x53abf7[_0x5d5c0f(0x14d)][0x1]);case'<':return a58_0x389d25[_0x5d5c0f(0x15f)](_0x53abf7[_0x5d5c0f(0x14d)][0x0],_0x53abf7['param'][0x1]);case'>=':return a58_0x389d25['greaterThanOrEqualTo'](_0x53abf7[_0x5d5c0f(0x14d)][0x0],_0x53abf7[_0x5d5c0f(0x14d)][0x1]);case'<=':return a58_0x389d25['lessThanOrEqualTo'](_0x53abf7[_0x5d5c0f(0x14d)][0x0],_0x53abf7[_0x5d5c0f(0x14d)][0x1]);case'between':return a58_0x389d25[_0x5d5c0f(0x146)](_0x53abf7[_0x5d5c0f(0x14d)][0x0],_0x53abf7['param'][0x1],_0x53abf7['param'][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a59_0x44bc(){const _0x40e93b=['4588803CiVzHl','10dUJWqn','1rPyObW','385021levNmg','CQL_FILTER','projection','687870UBUTnY','sublayers','144OzreiM','anonymous','loadFilter','join','12tNExPI','url','55353XGJeQo','15BvnGpF','layerInfo','setFilter','16CKIoLn','14217437baWjTO','5814149QKGQuy','910398mgAwGh','updateParams','refresh','EPSG:','initExtent','wkid','mapIndex'];a59_0x44bc=function(){return _0x40e93b;};return a59_0x44bc();}const a59_0x13ea54=a59_0x24e6;(function(_0x244b5a,_0x546ce1){const _0xa1c1ab=a59_0x24e6,_0x4be6bb=_0x244b5a();while(!![]){try{const _0x50688a=-parseInt(_0xa1c1ab(0xfc))/0x1*(-parseInt(_0xa1c1ab(0x10f))/0x2)+parseInt(_0xa1c1ab(0x108))/0x3*(parseInt(_0xa1c1ab(0x102))/0x4)+-parseInt(_0xa1c1ab(0x109))/0x5*(-parseInt(_0xa1c1ab(0x100))/0x6)+-parseInt(_0xa1c1ab(0xfd))/0x7*(-parseInt(_0xa1c1ab(0x10c))/0x8)+-parseInt(_0xa1c1ab(0xfa))/0x9+parseInt(_0xa1c1ab(0xfb))/0xa*(parseInt(_0xa1c1ab(0x10e))/0xb)+-parseInt(_0xa1c1ab(0x106))/0xc*(parseInt(_0xa1c1ab(0x10d))/0xd);if(_0x50688a===_0x546ce1)break;else _0x4be6bb['push'](_0x4be6bb['shift']());}catch(_0x3a76a0){_0x4be6bb['push'](_0x4be6bb['shift']());}}}(a59_0x44bc,0x79af3));import{ImageWMS as a59_0x49991b}from'ol/source';function a59_0x24e6(_0x52dabe,_0xa906e5){const _0x44bc77=a59_0x44bc();return a59_0x24e6=function(_0x24e60b,_0x19f36d){_0x24e60b=_0x24e60b-0xf4;let _0x3145a7=_0x44bc77[_0x24e60b];return _0x3145a7;},a59_0x24e6(_0x52dabe,_0xa906e5);}import{Image as a59_0x2e238e}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMSLayer extends a59_0x2e238e{constructor(_0x62b2f4,_0x109bcf){const _0x2eb916=a59_0x24e6;var _0x5bb50d;let _0x476e63=registerProj(_0x2eb916(0xf6)+_0x109bcf[_0x2eb916(0xf8)]),_0x5a55ee={'LAYERS':(_0x5bb50d=_0x62b2f4[_0x2eb916(0x101)])===null||_0x5bb50d===void 0x0?void 0x0:_0x5bb50d[_0x2eb916(0x105)](','),'VERSION':'1.1.0'};_0x62b2f4['loadFilter']&&(_0x5a55ee[_0x2eb916(0xfe)]=_0x62b2f4[_0x2eb916(0x104)]),super({'opacity':_0x62b2f4['opacity'],'zIndex':_0x62b2f4[_0x2eb916(0xf9)],'source':new a59_0x49991b({'crossOrigin':_0x2eb916(0x103),'url':_0x62b2f4[_0x2eb916(0x107)],'params':_0x5a55ee})}),this['id']=_0x62b2f4['id'],this['initialExtent']=_0x109bcf[_0x2eb916(0xf7)],this[_0x2eb916(0xff)]=_0x476e63,this[_0x2eb916(0x10a)]=_0x62b2f4;}[a59_0x13ea54(0xf5)](){}[a59_0x13ea54(0x10b)](_0x589ce4){const _0x371fd9=a59_0x13ea54;var _0x251f25;(_0x251f25=this['getSource']())===null||_0x251f25===void 0x0?void 0x0:_0x251f25[_0x371fd9(0xf4)]({'CQL_FILTER':_0x589ce4});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a60_0xca5c(_0x5e8dfd,_0x16aa7d){const _0x481fe8=a60_0x481f();return a60_0xca5c=function(_0xca5ce6,_0x57847f){_0xca5ce6=_0xca5ce6-0x1a6;let _0x390430=_0x481fe8[_0xca5ce6];return _0x390430;},a60_0xca5c(_0x5e8dfd,_0x16aa7d);}(function(_0x476b1d,_0x30de46){const _0x36db9a=a60_0xca5c,_0x1de8a6=_0x476b1d();while(!![]){try{const _0x45610d=parseInt(_0x36db9a(0x1a9))/0x1*(-parseInt(_0x36db9a(0x1af))/0x2)+-parseInt(_0x36db9a(0x1b1))/0x3*(parseInt(_0x36db9a(0x1b6))/0x4)+-parseInt(_0x36db9a(0x1ac))/0x5*(parseInt(_0x36db9a(0x1b4))/0x6)+parseInt(_0x36db9a(0x1b7))/0x7+parseInt(_0x36db9a(0x1ad))/0x8*(parseInt(_0x36db9a(0x1a8))/0x9)+parseInt(_0x36db9a(0x1ba))/0xa+-parseInt(_0x36db9a(0x1b5))/0xb;if(_0x45610d===_0x30de46)break;else _0x1de8a6['push'](_0x1de8a6['shift']());}catch(_0x43ab2c){_0x1de8a6['push'](_0x1de8a6['shift']());}}}(a60_0x481f,0x9424f));import a60_0x13b99a from'ol/layer/Tile';import a60_0xc9714c,{optionsFromCapabilities}from'ol/source/WMTS.js';import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMTSLayer extends a60_0x13b99a{constructor(_0x3eafb8,_0x1aed00){const _0x41a8cb=a60_0xca5c;var _0x3b8921;const _0x144782=_0x41a8cb(0x1ab)+_0x1aed00[_0x41a8cb(0x1ae)];let _0x23d435=registerProj(_0x144782);if(!_0x23d435)throw new Error(_0x41a8cb(0x1a7));const _0x2e68d4=optionsFromCapabilities(_0x1aed00[_0x41a8cb(0x1b2)],{'layer':(_0x3b8921=_0x3eafb8[_0x41a8cb(0x1aa)])===null||_0x3b8921===void 0x0?void 0x0:_0x3b8921[0x0],'matrixSet':_0x1aed00[_0x41a8cb(0x1bb)],'format':_0x41a8cb(0x1b3)});if(!_0x2e68d4)throw new Error(_0x41a8cb(0x1b0));super({'opacity':_0x3eafb8[_0x41a8cb(0x1bc)],'zIndex':_0x3eafb8[_0x41a8cb(0x1b9)],'source':new a60_0xc9714c(_0x2e68d4)}),this['id']=_0x3eafb8['id'],this['initialExtent']=_0x1aed00[_0x41a8cb(0x1a6)],this['projection']=_0x23d435,this[_0x41a8cb(0x1b8)]=_0x3eafb8;}}function a60_0x481f(){const _0x2909a9=['sourceXml','image/png','6gEQxmR','9558032nVhBTe','7624vNPyFq','2544451uEvODI','layerInfo','mapIndex','11743260ApDYyL','tileMatrixSet','opacity','boundingBoxExtent','未找到投影信息','765oPLqNL','409999GCGkGk','sublayers','EPSG:','1028140NngqYg','102504MCVChX','wkid','2buFuiZ','解析元数据失败','843LjoFQf'];a60_0x481f=function(){return _0x2909a9;};return a60_0x481f();}
|
package/layers/LayerManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a62_0x4fad(_0x23d0bb,_0x5d2386){const _0x2f38ed=a62_0x2f38();return a62_0x4fad=function(_0x4fad7f,_0x4fd60c){_0x4fad7f=_0x4fad7f-0x177;let _0x47ea08=_0x2f38ed[_0x4fad7f];return _0x47ea08;},a62_0x4fad(_0x23d0bb,_0x5d2386);}const a62_0x119a8c=a62_0x4fad;(function(_0x251c9a,_0x510026){const _0x1d5c7=a62_0x4fad,_0x3fdb86=_0x251c9a();while(!![]){try{const _0x5ba905=parseInt(_0x1d5c7(0x18a))/0x1+-parseInt(_0x1d5c7(0x187))/0x2*(parseInt(_0x1d5c7(0x17e))/0x3)+-parseInt(_0x1d5c7(0x186))/0x4*(parseInt(_0x1d5c7(0x184))/0x5)+-parseInt(_0x1d5c7(0x17a))/0x6+parseInt(_0x1d5c7(0x182))/0x7*(parseInt(_0x1d5c7(0x189))/0x8)+parseInt(_0x1d5c7(0x185))/0x9+-parseInt(_0x1d5c7(0x17c))/0xa*(-parseInt(_0x1d5c7(0x179))/0xb);if(_0x5ba905===_0x510026)break;else _0x3fdb86['push'](_0x3fdb86['shift']());}catch(_0x401f37){_0x3fdb86['push'](_0x3fdb86['shift']());}}}(a62_0x2f38,0x656c1));import a62_0x1797da from'./ArcgisDynamicLayer';import a62_0x1cdcb3 from'./ArcgisFeatureLayer';import a62_0x258abe from'./TDTLayer';import{getDynamicLayerInfo,getWMTSLayerCapabilities,getFeatureLayerInfo,getWMSLayerCapabilities,getWFSLayerCapabilities}from'../capabilities';import a62_0x87b04e from'./ArcgisTileLayer';import a62_0x37c6d8 from'./GeoserverWMSLayer';import a62_0x59bf84 from'./GeoserverWMTSLayer';import a62_0x55febf from'./ArcgisWMSLayer';import a62_0x1a1516 from'./ArcgisWMTSLayer';function a62_0x2f38(){const _0x313eb6=['getArcgisFeatureLayer','url','sublayers','329kisRrP','getTDTLayer','5qxixPM','485307ANaDIZ','1694764KMTXLf','14FNsbfi','push','46360alARPg','551436ggeigS','getGeoserverWMTSLayer','getArcgisWMTSLayer','88DiHfnk','397290gQGUnV','getGeoserverWmsLayer','1035430HBvXLC','getDynamicLayer','343173kIABhM'];a62_0x2f38=function(){return _0x313eb6;};return a62_0x2f38();}import a62_0x46a212 from'./GeoserverWFSLayer';import a62_0x154ee1 from'./GeoserverVectorTile';export default class LayerManagement{static async[a62_0x119a8c(0x17d)](_0x575be7){const _0x4a01c0=await getDynamicLayerInfo(_0x575be7['url']?_0x575be7['url']:'');let _0x3ae07f=new a62_0x1797da(_0x575be7,_0x4a01c0);return _0x3ae07f;}static async['getArcgisTileLayer'](_0x2b69a1){const _0x42877a=a62_0x119a8c,_0x7ca2c8=await getDynamicLayerInfo(_0x2b69a1[_0x42877a(0x180)]?_0x2b69a1[_0x42877a(0x180)]:'');let _0xa8d5ef=new a62_0x87b04e(_0x2b69a1,_0x7ca2c8);return _0xa8d5ef;}static async[a62_0x119a8c(0x17f)](_0x50fa45){const _0x2e782b=a62_0x119a8c,_0x30a23=await getDynamicLayerInfo(_0x50fa45[_0x2e782b(0x180)]?_0x50fa45['url']:'');let _0x559bb3=[];if(_0x50fa45[_0x2e782b(0x181)])for(let _0x567476=0x0;_0x567476<_0x50fa45[_0x2e782b(0x181)]['length'];_0x567476++){const _0x37ba70=_0x50fa45[_0x2e782b(0x181)][_0x567476];_0x559bb3[_0x2e782b(0x188)](await getFeatureLayerInfo(_0x50fa45[_0x2e782b(0x180)]?_0x50fa45[_0x2e782b(0x180)]:'',_0x37ba70));}let _0x536c51=new a62_0x1cdcb3(_0x50fa45,_0x30a23,_0x559bb3);return _0x536c51;}static async['getArcgisWmsLayer'](_0x36dff4){const _0x2c424f=a62_0x119a8c;var _0x5e827d;const _0x1881db=(_0x5e827d=_0x36dff4[_0x2c424f(0x181)])===null||_0x5e827d===void 0x0?void 0x0:_0x5e827d[0x0],_0x10a964=await getWMSLayerCapabilities(_0x36dff4[_0x2c424f(0x180)]?_0x36dff4[_0x2c424f(0x180)]:'',_0x1881db==null?'':_0x1881db);let _0x506487=new a62_0x55febf(_0x36dff4,_0x10a964);return _0x506487;}static async[a62_0x119a8c(0x178)](_0x16c4bf){const _0x366a1c=a62_0x119a8c;var _0x5f17e5;const _0x3a3f2d=(_0x5f17e5=_0x16c4bf[_0x366a1c(0x181)])===null||_0x5f17e5===void 0x0?void 0x0:_0x5f17e5[0x0],_0x13379c=await getWMTSLayerCapabilities(_0x16c4bf[_0x366a1c(0x180)]?_0x16c4bf[_0x366a1c(0x180)]:'',_0x3a3f2d==null?'':_0x3a3f2d);let _0x3aa11a=new a62_0x1a1516(_0x16c4bf,_0x13379c);return _0x3aa11a;}static async[a62_0x119a8c(0x17b)](_0x3e8793){const _0x27fc19=a62_0x119a8c;var _0x1a96f8;const _0x52cee5=(_0x1a96f8=_0x3e8793[_0x27fc19(0x181)])===null||_0x1a96f8===void 0x0?void 0x0:_0x1a96f8[0x0],_0x5685cc=await getWMSLayerCapabilities(_0x3e8793['url']?_0x3e8793[_0x27fc19(0x180)]:'',_0x52cee5==null?'':_0x52cee5);let _0x31a468=new a62_0x37c6d8(_0x3e8793,_0x5685cc);return _0x31a468;}static async[a62_0x119a8c(0x177)](_0x3202f1){const _0x295577=a62_0x119a8c;var _0x363dcc;const _0x51fb6f=(_0x363dcc=_0x3202f1[_0x295577(0x181)])===null||_0x363dcc===void 0x0?void 0x0:_0x363dcc[0x0],_0x2fd469=await getWMTSLayerCapabilities(_0x3202f1['url']?_0x3202f1['url']:'',_0x51fb6f==null?'':_0x51fb6f);let _0x342a14=new a62_0x59bf84(_0x3202f1,_0x2fd469);return _0x342a14;}static async['getGeoserverWFSLayer'](_0x5ae5ec){const _0x388574=a62_0x119a8c;var _0x5be27a;const _0x43b927=(_0x5be27a=_0x5ae5ec[_0x388574(0x181)])===null||_0x5be27a===void 0x0?void 0x0:_0x5be27a[0x0],_0x3a7a91=await getWFSLayerCapabilities(_0x5ae5ec['url']?_0x5ae5ec[_0x388574(0x180)]:'',_0x43b927==null?'':_0x43b927);let _0x3ae128=new a62_0x46a212(_0x5ae5ec,_0x3a7a91);return _0x3ae128;}static async['getGeoserverVectorTileLayer'](_0x66f45d){const _0x5973fe=a62_0x119a8c;var _0x34a757;const _0x19be41=(_0x34a757=_0x66f45d[_0x5973fe(0x181)])===null||_0x34a757===void 0x0?void 0x0:_0x34a757[0x0],_0x244b18=await getWMTSLayerCapabilities(_0x66f45d[_0x5973fe(0x180)]?_0x66f45d[_0x5973fe(0x180)]:'',_0x19be41==null?'':_0x19be41);let _0x24f876=new a62_0x154ee1(_0x66f45d,_0x244b18);return _0x24f876;}static async[a62_0x119a8c(0x183)](_0x3164b0){const _0x184f5d=a62_0x119a8c;var _0x4460fb;const _0x11e7c5=(_0x4460fb=_0x3164b0[_0x184f5d(0x181)])===null||_0x4460fb===void 0x0?void 0x0:_0x4460fb[0x0],_0x3e284b=await getWMTSLayerCapabilities(_0x3164b0[_0x184f5d(0x180)]?_0x3164b0[_0x184f5d(0x180)]:'',_0x11e7c5==null?'':_0x11e7c5);let _0x5961e8=new a62_0x258abe(_0x3164b0,_0x3e284b);return _0x5961e8;}}
|
package/layers/TDTLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a63_0x1605(_0x44ad09,_0xda3010){const _0x3eb63a=a63_0x3eb6();return a63_0x1605=function(_0x1605fb,_0x50fbe1){_0x1605fb=_0x1605fb-0xfe;let _0xb37855=_0x3eb63a[_0x1605fb];return _0xb37855;},a63_0x1605(_0x44ad09,_0xda3010);}function a63_0x3eb6(){const _0x1b80df=['37158UMUtVX','256102lLAXKH','join','70vVbNQo','5IFaPAM','initialExtent','projection','39025QDVQtt','pow','8soUpbr','EPSG:4490','1407798VgrprA','boundingBoxExtent','7RffeCw','236748XgVMBx','style','709818qSnotS','url','216wdbrgK','length','format','sublayers','2268696XWuZCW','KVP'];a63_0x3eb6=function(){return _0x1b80df;};return a63_0x3eb6();}(function(_0x4c5aa0,_0x1a89d8){const _0x48d4f3=a63_0x1605,_0x38c42a=_0x4c5aa0();while(!![]){try{const _0x436aec=-parseInt(_0x48d4f3(0x10d))/0x1*(-parseInt(_0x48d4f3(0x109))/0x2)+-parseInt(_0x48d4f3(0x101))/0x3*(-parseInt(_0x48d4f3(0x112))/0x4)+-parseInt(_0x48d4f3(0x110))/0x5*(parseInt(_0x48d4f3(0x103))/0x6)+parseInt(_0x48d4f3(0xfe))/0x7*(parseInt(_0x48d4f3(0x107))/0x8)+-parseInt(_0x48d4f3(0x114))/0x9+-parseInt(_0x48d4f3(0x10c))/0xa*(parseInt(_0x48d4f3(0x10a))/0xb)+parseInt(_0x48d4f3(0xff))/0xc;if(_0x436aec===_0x1a89d8)break;else _0x38c42a['push'](_0x38c42a['shift']());}catch(_0x23c71f){_0x38c42a['push'](_0x38c42a['shift']());}}}(a63_0x3eb6,0x41af7));import a63_0xa31070 from'ol/layer/Tile';import{WMTS as a63_0x5de529}from'ol/source';import a63_0x5894f6 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{getWidth,getTopLeft}from'ol/extent';export default class TDTLayer extends a63_0xa31070{constructor(_0x84e63f,_0xb082f1){const _0x3510d7=a63_0x1605;let _0x26219a='';_0x84e63f[_0x3510d7(0x106)]&&_0x84e63f[_0x3510d7(0x106)][_0x3510d7(0x104)]>0x0&&(_0x26219a=_0x84e63f[_0x3510d7(0x106)][_0x3510d7(0x10b)](','));const _0x221b81=_0x3510d7(0x113);let _0x30bc85=registerProj(_0x221b81);const _0x1af146=[],_0x1288df=[];for(let _0x14f418=0x1;_0x14f418<0x13;_0x14f418++){_0x1af146[_0x14f418]=getWidth(_0xb082f1['boundingBoxExtent'])/(0x100*Math[_0x3510d7(0x111)](0x2,_0x14f418)),_0x1288df[_0x14f418]=_0x14f418+'';}super({'opacity':_0x84e63f['opacity'],'zIndex':_0x84e63f['mapIndex'],'source':new a63_0x5de529({'style':_0xb082f1[_0x3510d7(0x100)],'url':_0x84e63f[_0x3510d7(0x102)],'tileGrid':new a63_0x5894f6({'origin':getTopLeft(_0xb082f1[_0x3510d7(0x115)]),'resolutions':_0x1af146,'matrixIds':_0x1288df}),'layer':_0x26219a,'matrixSet':_0xb082f1['tileMatrixSet'],'version':'1.0.0','format':_0xb082f1[_0x3510d7(0x105)][0x0],'projection':_0x221b81,'requestEncoding':_0x3510d7(0x108)})}),this['id']=_0x84e63f['id'],this[_0x3510d7(0x10e)]=_0xb082f1[_0x3510d7(0x115)],this[_0x3510d7(0x10f)]=_0x30bc85,this['layerInfo']=_0x84e63f;}}
|
package/mapView/Map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a63_0x27e8(){const _0xe55ec2=['constrainResolution','polygonTempLayer','lineTempLayer','extent','14561660ZfAbQb','initialExtent','getZIndex','pointTempLayer','calculateExtent','setProperties','EPSG:','changetype','fromType','fit','dispatchEvent','setMaxResolution','all','暂不支持【','tag','filter','arcgis-dynamic','setMinResolution','getType','getLayers','setStyle','locationGeometry','248qIKKkp','GeometryCollection','setGeometry','layerIds','getSize','insertAt','EPSG:4490','getArray','transform','layerInfo','getElementById','getTarget','getView','getCoordinates','MultiLineString','length','locationWKTs','MultiPolygon','getGeoserverWmsLayer','tdt-c','getExtent','addLayer','arcgis-tile','projection','setProjection','controlManager','LineString','geoserver-vector-tile','minResolution','getGeoserverWMTSLayer','getTempLayerById','add','Point','remove','166780KmNGvK','interactionManager','isSelected','getLayerById','geoserver-wmts','layerType','minScale','_options','232714vxFrjn','geoserver-wms','getArcgisTileLayer','getLength','minZoom','arcgis-wmts','2791206rsAEIl','addMapLayer','changelayer','locationGeometrys','3710496gUuYma','getMetersPerUnit','rgba(255,\x200,\x200,\x201)','getMinZoom','getTempLayerByGeoType','getProjection','addWKTs','maxScale','push','addWKT','maxResolution','removeLayer','getPolygonTempLayer','254884AbWZSg','getPointTempLayer','MultiPoint','resetViewProjection','getCode','getSource','zoom','refresh','16111431koYAUu','120upfVBJ','oncontextmenu','3hWTpII','getLineTempLayer','addFeature','center','maxZoom','fitLayerById','fitLayer','layerTag','flashGeometrys','locationWKT','Polygon','getLayerByLayerTag'];a63_0x27e8=function(){return _0xe55ec2;};return a63_0x27e8();}const a63_0x188dbc=a63_0x575f;(function(_0x4fd960,_0x53cc72){const _0x41c5ce=a63_0x575f,_0x3da382=_0x4fd960();while(!![]){try{const _0x39268b=-parseInt(_0x41c5ce(0x93))/0x1*(-parseInt(_0x41c5ce(0xe3))/0x2)+parseInt(_0x41c5ce(0x7b))/0x3+parseInt(_0x41c5ce(0x91))/0x4*(-parseInt(_0x41c5ce(0xdb))/0x5)+-parseInt(_0x41c5ce(0x77))/0x6+-parseInt(_0x41c5ce(0x88))/0x7*(-parseInt(_0x41c5ce(0xb9))/0x8)+-parseInt(_0x41c5ce(0x90))/0x9+parseInt(_0x41c5ce(0xa3))/0xa;if(_0x39268b===_0x53cc72)break;else _0x3da382['push'](_0x3da382['shift']());}catch(_0x470a1c){_0x3da382['push'](_0x3da382['shift']());}}}(a63_0x27e8,0xdf571));import'ol/ol.css';import'../assets/main.css';import a63_0x4020e1 from'ol/Map';import a63_0x4174cc from'ol/events/Event';import{defaults as a63_0x76b9a2}from'ol/control';import{registerProj}from'../utils/RegisterProjUtil';import{transformExtent}from'ol/proj';import a63_0x5eeceb from'../layers/LayerManager';import a63_0x252a4b from'ol/layer/Vector';function a63_0x575f(_0x8d37fb,_0x9d0e20){const _0x27e800=a63_0x27e8();return a63_0x575f=function(_0x575fd9,_0x51d329){_0x575fd9=_0x575fd9-0x72;let _0x2ed80c=_0x27e800[_0x575fd9];return _0x2ed80c;},a63_0x575f(_0x8d37fb,_0x9d0e20);}import a63_0x3675e4 from'ol/source/Vector';import a63_0x33eaf5 from'../controls/ControlManager';import a63_0x1e1408 from'../entity/Feature';import a63_0x2c1b3d from'../interaction/InteractionManager';import a63_0x2ea2ec from'./View';import{expandExtent,fromWKT,fromWKTs,union}from'../utils/GeometryUtil';import a63_0x4430ac from'../feature/FeatureManager';import{calculateResolution}from'../utils/ResolutionUtil';import{getStyle}from'../style/StyleManager';export class ChangeLayerEvent extends a63_0x4174cc{constructor(_0x5a1047,_0x1d5319,_0x49b94e){const _0x2abde7=a63_0x575f;super(_0x5a1047),this[_0x2abde7(0xbc)]=_0x1d5319,this[_0x2abde7(0xaa)]=_0x49b94e;}}export default class OLMap extends a63_0x4020e1{constructor(_0x11563a,_0x23d5db,_0x279f70){const _0x579f2b=a63_0x575f;_0x23d5db=_0x23d5db?_0x23d5db:{'projection':0x118a,'center':[117.22718,31.820386],'minZoom':0x0,'maxZoom':0x1c,'constrainResolution':![],'zoom':0xa};const _0x4febe4=_0x23d5db['projection']?_0x579f2b(0xa9)+_0x23d5db[_0x579f2b(0xd0)]:_0x579f2b(0xbf);_0x23d5db[_0x579f2b(0x8e)]=_0x23d5db[_0x579f2b(0x8e)]?_0x23d5db['zoom']:0xa,_0x23d5db[_0x579f2b(0x75)]=_0x23d5db[_0x579f2b(0x75)]?_0x23d5db[_0x579f2b(0x75)]:0x0,_0x23d5db[_0x579f2b(0x97)]=_0x23d5db[_0x579f2b(0x97)]?_0x23d5db[_0x579f2b(0x97)]:0x1c,_0x23d5db['constrainResolution']=_0x23d5db['constrainResolution']?_0x23d5db[_0x579f2b(0x9f)]:![],_0x23d5db[_0x579f2b(0x96)]=_0x23d5db[_0x579f2b(0x96)]?_0x23d5db[_0x579f2b(0x96)]:[117.22718,31.820386],registerProj(_0x4febe4);const _0x1b9c60={'target':_0x11563a,'view':_0x279f70?_0x279f70:new a63_0x2ea2ec({'center':_0x23d5db[_0x579f2b(0x96)],'zoom':_0x23d5db[_0x579f2b(0x8e)],'projection':_0x4febe4,'minZoom':_0x23d5db[_0x579f2b(0x75)],'maxZoom':_0x23d5db['maxZoom'],'minResolution':_0x23d5db[_0x579f2b(0xd5)],'maxResolution':_0x23d5db[_0x579f2b(0x85)],'constrainResolution':_0x23d5db[_0x579f2b(0x9f)]}),'controls':a63_0x76b9a2({'zoom':![]})};super(_0x1b9c60);_0x23d5db['extent']&&this[_0x579f2b(0xc5)]()[_0x579f2b(0xac)](_0x23d5db[_0x579f2b(0xa2)]);const _0x8d3848=this[_0x579f2b(0xc4)]();if(_0x8d3848 instanceof HTMLElement)_0x8d3848[_0x579f2b(0x92)]=function(_0x41f3ae){return![];};else{const _0x83a0ba=document[_0x579f2b(0xc3)](_0x8d3848);_0x83a0ba&&(_0x83a0ba['oncontextmenu']=function(_0x51e115){return![];});}this[_0x579f2b(0xdc)]=new a63_0x2c1b3d(this),this[_0x579f2b(0xd2)]=new a63_0x33eaf5(this),this[_0x579f2b(0xe2)]=_0x23d5db;}[a63_0x188dbc(0xc5)](){return super['getView']();}[a63_0x188dbc(0x8f)](){const _0x424491=a63_0x188dbc;let _0x423a18=this[_0x424491(0xc5)]()['getResolution']();_0x423a18&&this['getView']()['setResolution'](_0x423a18-1e-11);}[a63_0x188dbc(0x99)](_0x4601bc){const _0x5d3c11=a63_0x188dbc;var _0x5505d4;this[_0x5d3c11(0xc5)]()[_0x5d3c11(0xac)](transformExtent(_0x4601bc[_0x5d3c11(0xa4)],(_0x5505d4=_0x4601bc['projection'])===null||_0x5505d4===void 0x0?void 0x0:_0x5505d4[_0x5d3c11(0x8c)](),this[_0x5d3c11(0xc5)]()[_0x5d3c11(0x80)]()[_0x5d3c11(0x8c)]()));}[a63_0x188dbc(0x98)](_0x291f57){let _0x3c2fc4=this['getLayerById'](_0x291f57);_0x3c2fc4&&this['fitLayer'](_0x3c2fc4);}async[a63_0x188dbc(0x78)](_0x5e289d){const _0xe635a1=a63_0x188dbc;let _0x570de2;switch(_0x5e289d['layerType']){case'arcgis-feature':_0x570de2=await a63_0x5eeceb['getArcgisFeatureLayer'](_0x5e289d);break;case _0xe635a1(0xb3):_0x570de2=await a63_0x5eeceb['getDynamicLayer'](_0x5e289d);break;case _0xe635a1(0xcf):_0x570de2=await a63_0x5eeceb[_0xe635a1(0x73)](_0x5e289d);break;case'arcgis-wms':_0x570de2=await a63_0x5eeceb['getArcgisWmsLayer'](_0x5e289d);break;case _0xe635a1(0x76):_0x570de2=await a63_0x5eeceb['getArcgisWMTSLayer'](_0x5e289d);break;case _0xe635a1(0x72):_0x570de2=await a63_0x5eeceb[_0xe635a1(0xcb)](_0x5e289d);break;case'geoserver-wfs':_0x570de2=await a63_0x5eeceb['getGeoserverWFSLayer'](_0x5e289d);break;case _0xe635a1(0xdf):_0x570de2=await a63_0x5eeceb[_0xe635a1(0xd6)](_0x5e289d);break;case _0xe635a1(0xd4):_0x570de2=await a63_0x5eeceb['getGeoserverVectorTileLayer'](_0x5e289d);break;case _0xe635a1(0xcc):_0x570de2=await a63_0x5eeceb['getTDTLayer'](_0x5e289d);break;default:throw new Error(_0xe635a1(0xb0)+_0x5e289d[_0xe635a1(0xe0)]+'】服务类型');}return this[_0xe635a1(0xce)](_0x570de2),this[_0xe635a1(0xad)](new ChangeLayerEvent(_0xe635a1(0x79),[_0x5e289d['id']],_0xe635a1(0xd8))),_0x570de2;}async['addMapLayers'](_0x25cb6b){const _0xf689d4=a63_0x188dbc;let _0x8f56e2=[];const _0xa9171e=[];for(let _0x3712e8=0x0;_0x3712e8<_0x25cb6b[_0xf689d4(0xc8)];_0x3712e8++){const _0x5344a4=_0x25cb6b[_0x3712e8];_0xa9171e[_0xf689d4(0x83)](_0x5344a4['id']),_0x8f56e2[_0xf689d4(0x83)](this[_0xf689d4(0x78)](_0x5344a4));}const _0x100341=await Promise[_0xf689d4(0xaf)](_0x8f56e2);return this[_0xf689d4(0xad)](new ChangeLayerEvent('changelayer',_0xa9171e,_0xf689d4(0xd8))),_0x100341;}[a63_0x188dbc(0xce)](_0x33e0b9,_0x39adb9=![]){const _0x4fecd2=a63_0x188dbc,_0x319830=_0x33e0b9,_0x1a8571=this[_0x4fecd2(0xde)](_0x319830['id']);if(_0x1a8571==null){const _0x44566a=_0x319830['layerInfo']==undefined||_0x319830[_0x4fecd2(0xc2)][_0x4fecd2(0xe1)]==undefined||_0x319830[_0x4fecd2(0xc2)][_0x4fecd2(0xe1)]<0x0?undefined:calculateResolution(_0x319830['layerInfo'][_0x4fecd2(0xe1)],this['getView']()[_0x4fecd2(0x80)]()[_0x4fecd2(0x7c)]()||0x0);_0x33e0b9[_0x4fecd2(0xb4)](_0x44566a);const _0x376707=_0x319830[_0x4fecd2(0xc2)]==undefined||_0x319830[_0x4fecd2(0xc2)][_0x4fecd2(0x82)]==undefined||_0x319830[_0x4fecd2(0xc2)][_0x4fecd2(0x82)]<0x0?undefined:calculateResolution(_0x319830['layerInfo'][_0x4fecd2(0x82)],this['getView']()['getProjection']()[_0x4fecd2(0x7c)]()||0x0);_0x33e0b9[_0x4fecd2(0xae)](_0x376707);const _0xb413ee=this[_0x4fecd2(0xb6)]()[_0x4fecd2(0xc0)]()['length'];if(!this['_options'][_0x4fecd2(0xd0)]&&_0xb413ee==0x0&&_0x319830[_0x4fecd2(0xd0)]&&_0x319830[_0x4fecd2(0xd0)]['getCode']()!=this[_0x4fecd2(0xc5)]()[_0x4fecd2(0x80)]()[_0x4fecd2(0x8c)]()){}let _0x37ddd6=_0x33e0b9[_0x4fecd2(0xa5)]();_0x37ddd6!=undefined&&_0x37ddd6>_0xb413ee&&(_0x37ddd6=_0xb413ee),this[_0x4fecd2(0xb6)]()[_0x4fecd2(0xbe)](_0x37ddd6==undefined?_0xb413ee:_0x37ddd6,_0x33e0b9),_0x39adb9&&this[_0x4fecd2(0x99)](_0x319830);}}['removeLayerById'](_0x2f8a3b){const _0x161db2=a63_0x188dbc,_0x524027=this[_0x161db2(0xde)](_0x2f8a3b);_0x524027&&(this[_0x161db2(0x86)](_0x524027),this[_0x161db2(0xad)](new ChangeLayerEvent(_0x161db2(0x79),[_0x2f8a3b],_0x161db2(0xda))));}[a63_0x188dbc(0xde)](_0x2b6b42){const _0x498ab0=a63_0x188dbc;let _0x144f10,_0x4dd57c=this[_0x498ab0(0xb6)]()[_0x498ab0(0xc0)]();for(let _0x58c9ce=0x0;_0x58c9ce<_0x4dd57c[_0x498ab0(0xc8)];_0x58c9ce++){let _0x3397e6=_0x4dd57c[_0x58c9ce]['id'];if(_0x2b6b42==_0x3397e6){_0x144f10=_0x4dd57c[_0x58c9ce];break;}}return _0x144f10;}[a63_0x188dbc(0x9e)](_0x38b01c){const _0x3245c4=a63_0x188dbc;let _0x4803c6,_0x2a8a97=this[_0x3245c4(0xb6)]()[_0x3245c4(0xc0)]();for(let _0x131420=0x0;_0x131420<_0x2a8a97['length'];_0x131420++){const _0x4b2ab9=_0x2a8a97[_0x131420][_0x3245c4(0xc2)];if(!_0x4b2ab9)continue;let _0x181df7=_0x4b2ab9[_0x3245c4(0x9a)];if(_0x181df7==_0x38b01c){_0x4803c6=_0x2a8a97[_0x131420];break;}}return _0x4803c6;}['getLayersByIds'](_0x38af5a){const _0xf6e088=a63_0x188dbc;let _0x381ee5=this['getLayers']()[_0xf6e088(0xc0)]();return _0x381ee5[_0xf6e088(0xb2)](_0x188403=>_0x38af5a['includes'](_0x188403['id']));}['getTempLayerById'](_0x49a51f){const _0x1135c6=a63_0x188dbc;let _0x584ef0,_0x57cbc5=this['getLayers']()[_0x1135c6(0xc0)]();for(let _0x318f92=0x0;_0x318f92<_0x57cbc5['length'];_0x318f92++){const _0x3d97f4=_0x57cbc5[_0x318f92];if(_0x3d97f4['id']===_0x49a51f){_0x584ef0=_0x3d97f4;break;}}if(!_0x584ef0){_0x584ef0=new a63_0x252a4b({'zIndex':0x270f,'source':new a63_0x3675e4()}),_0x584ef0['id']=_0x49a51f;const _0x9b16bc=this[_0x1135c6(0xb6)]()[_0x1135c6(0x74)]();switch(_0x49a51f){case _0x1135c6(0xa1):this[_0x1135c6(0xb6)]()[_0x1135c6(0xbe)](_0x9b16bc-0x1>-0x1?_0x9b16bc-0x1:0x0,_0x584ef0);break;case _0x1135c6(0xa0):this[_0x1135c6(0xb6)]()['insertAt'](_0x9b16bc-0x2>-0x1?_0x9b16bc-0x2:0x0,_0x584ef0);break;case _0x1135c6(0xa6):this[_0x1135c6(0xb6)]()[_0x1135c6(0xbe)](_0x9b16bc,_0x584ef0);break;default:break;}}return _0x584ef0;}['getPointTempLayer'](){const _0x5ed6bf=a63_0x188dbc;return this[_0x5ed6bf(0xd7)]('pointTempLayer');}['getLineTempLayer'](){const _0x5bfa38=a63_0x188dbc;return this[_0x5bfa38(0xd7)](_0x5bfa38(0xa1));}[a63_0x188dbc(0x87)](){const _0x4f225d=a63_0x188dbc;return this[_0x4f225d(0xd7)]('polygonTempLayer');}['getTempLayerByGeoType'](_0x558c64){const _0xed7255=a63_0x188dbc;let _0x4a7ae9=this['getPointTempLayer']();switch(_0x558c64){case _0xed7255(0xd9):case _0xed7255(0x8a):_0x4a7ae9=this[_0xed7255(0x89)]();case _0xed7255(0xd3):case _0xed7255(0xc7):_0x4a7ae9=this[_0xed7255(0x94)]();case _0xed7255(0x9d):case _0xed7255(0xca):_0x4a7ae9=this[_0xed7255(0x87)]();}return _0x4a7ae9;}[a63_0x188dbc(0x8b)](_0x471a68){const _0x569582=a63_0x188dbc;let _0x337f6e=this[_0x569582(0xc5)]()[_0x569582(0x7e)](),_0x41fdae=this['getView']()['getMaxZoom']();registerProj(_0x471a68),this['getView']()[_0x569582(0xd1)](_0x471a68);}['sortTemLayer'](){const _0x5c3403=a63_0x188dbc;let _0x3d4459=[];_0x3d4459[_0x5c3403(0x83)](this[_0x5c3403(0x89)]()),_0x3d4459[_0x5c3403(0x83)](this[_0x5c3403(0x94)]()),_0x3d4459[_0x5c3403(0x83)](this[_0x5c3403(0x87)]());const _0x1d7e11=this[_0x5c3403(0xb6)]()[_0x5c3403(0xc0)]()[_0x5c3403(0xc8)];for(let _0xb38ef4=0x0;_0xb38ef4<_0x3d4459[_0x5c3403(0xc8)];_0xb38ef4++){const _0x44d9a1=_0x3d4459[_0xb38ef4];this[_0x5c3403(0xb6)]()[_0x5c3403(0xbe)](_0x1d7e11-_0xb38ef4-0x1,_0x44d9a1);}}[a63_0x188dbc(0xcd)](){const _0x4863c5=a63_0x188dbc;return this['getView']()[_0x4863c5(0xa7)](this[_0x4863c5(0xbd)]());}[a63_0x188dbc(0x84)](_0x15d8f9,_0xfb5a5b,_0x23dc09,_0x2cc2f5=!![],_0xd4041a,_0x399c50={'color':'rgba(255,\x200,\x200,\x200.2)','opacity':0.2,'outlineColor':a63_0x188dbc(0x7d),'outlineWidth':0x2}){const _0x2ca3e3=a63_0x188dbc;var _0x10f31c;const _0x372d8b=fromWKT(_0x15d8f9,_0xfb5a5b,this[_0x2ca3e3(0xc5)]()[_0x2ca3e3(0x80)]()['getCode']());if(!_0x372d8b)return;const _0x1d6c3f=this[_0x2ca3e3(0x7f)](_0x372d8b['getType']()),_0x1a5afb=getStyle(_0x399c50),_0x415c04=new a63_0x1e1408();return _0x415c04[_0x2ca3e3(0xbb)](_0x372d8b),_0x415c04[_0x2ca3e3(0xb7)](_0x1a5afb),_0xd4041a?_0x415c04[_0x2ca3e3(0xa8)](_0xd4041a):_0x415c04['setProperties']({}),_0x415c04[_0x2ca3e3(0xb1)]=_0x23dc09,(_0x10f31c=_0x1d6c3f[_0x2ca3e3(0x8d)]())===null||_0x10f31c===void 0x0?void 0x0:_0x10f31c[_0x2ca3e3(0x95)](_0x415c04),_0x2cc2f5&&this[_0x2ca3e3(0xb8)](_0x372d8b,undefined,1.2,![]),_0x415c04;}[a63_0x188dbc(0x81)](_0x4ee9ec,_0xf0b9d5,_0x56f909,_0x29fafb=!![],_0x1ce6d7={'color':'rgba(255,\x200,\x200,\x200.2)','opacity':0.2,'outlineColor':a63_0x188dbc(0x7d),'outlineWidth':0x2},_0x42461f){const _0x2dca32=a63_0x188dbc;var _0x16b6f5;const _0x166fca=fromWKTs(_0x4ee9ec,_0xf0b9d5,this[_0x2dca32(0xc5)]()['getProjection']()[_0x2dca32(0x8c)]());if(!_0x166fca||_0x166fca['length']==0x0)return;const _0x37f7af=this[_0x2dca32(0x7f)](_0x166fca[0x0][_0x2dca32(0xb5)]()),_0x4c87d5=getStyle(_0x1ce6d7);let _0x59b940=[];for(const _0x57ef6d of _0x166fca){const _0x384c6b=new a63_0x1e1408();_0x384c6b[_0x2dca32(0xbb)](_0x57ef6d),_0x384c6b[_0x2dca32(0xb7)](_0x4c87d5),_0x42461f?_0x384c6b[_0x2dca32(0xa8)](_0x42461f):_0x384c6b[_0x2dca32(0xa8)]({}),_0x384c6b[_0x2dca32(0xab)]='import',_0x384c6b[_0x2dca32(0xdd)]=!![],_0x384c6b[_0x2dca32(0xb1)]=_0x56f909,_0x59b940[_0x2dca32(0x83)](_0x384c6b);}return(_0x16b6f5=_0x37f7af[_0x2dca32(0x8d)]())===null||_0x16b6f5===void 0x0?void 0x0:_0x16b6f5['addFeatures'](_0x59b940),_0x29fafb&&this[_0x2dca32(0x7a)](_0x166fca,undefined,1.2,![]),_0x59b940;}[a63_0x188dbc(0x9c)](_0x47276c,_0x245ec9,_0x3e4fdd=1.2,_0xcdcb8d=!![]){const _0x47932f=a63_0x188dbc;if(!_0x47276c)return;let _0xae6107=fromWKT(_0x47276c,_0x245ec9,this['getView']()[_0x47932f(0x80)]()[_0x47932f(0x8c)]());if(!_0xae6107)return;this['locationGeometry'](_0xae6107,_0x245ec9,_0x3e4fdd,_0xcdcb8d);}[a63_0x188dbc(0xc9)](_0x36095f,_0x4b8d35,_0x3c18c8=1.2,_0x102369=!![]){const _0x506ec6=a63_0x188dbc;if(!_0x36095f||_0x36095f[_0x506ec6(0xc8)]===0x0)return;const _0x2b2cc0=[];for(let _0x4737a2=0x0;_0x4737a2<_0x36095f[_0x506ec6(0xc8)];_0x4737a2++){let _0x23c562=_0x36095f[_0x4737a2],_0x2c7199=fromWKT(_0x23c562,_0x4b8d35,this['getView']()['getProjection']()['getCode']());if(!_0x2c7199)continue;_0x2b2cc0[_0x506ec6(0x83)](_0x2c7199);}this[_0x506ec6(0x7a)](_0x2b2cc0,_0x4b8d35,_0x3c18c8,_0x102369);}['locationGeometry'](_0x2dc687,_0x19b362,_0x34917d=1.2,_0x13a78e=!![]){const _0x4b566a=a63_0x188dbc;if(!_0x2dc687)return;let _0x33afe6=_0x2dc687;_0x19b362&&(_0x33afe6=_0x2dc687[_0x4b566a(0xc1)](_0x19b362,this[_0x4b566a(0xc5)]()['getProjection']()));switch(_0x33afe6[_0x4b566a(0xb5)]()){case _0x4b566a(0xd9):this[_0x4b566a(0xc5)]()['setCenter'](_0x33afe6[_0x4b566a(0xc6)]());break;case _0x4b566a(0x9d):case _0x4b566a(0x8a):case _0x4b566a(0xc7):case _0x4b566a(0xca):case _0x4b566a(0xba):this[_0x4b566a(0xc5)]()[_0x4b566a(0xac)](expandExtent(_0x33afe6[_0x4b566a(0xcd)](),_0x34917d));break;}if(_0x13a78e){const _0x3bacf2=new a63_0x4430ac(this);_0x3bacf2[_0x4b566a(0x9b)]([_0x33afe6],0x3);}}[a63_0x188dbc(0x7a)](_0x37df80,_0x1068bb,_0x8a8b48=1.2,_0x7599ad=!![]){const _0x141b6e=a63_0x188dbc;if(!_0x37df80||_0x37df80[_0x141b6e(0xc8)]===0x0)return;let _0x4eb269=null;for(const _0x1dd5b7 of _0x37df80){_0x4eb269?_0x4eb269=union(_0x4eb269,_0x1dd5b7):_0x4eb269=_0x1dd5b7;}_0x4eb269&&this[_0x141b6e(0xb8)](_0x4eb269,_0x1068bb,_0x8a8b48,![]);if(_0x7599ad){const _0xc7b28=new a63_0x4430ac(this);_0xc7b28[_0x141b6e(0x9b)](_0x37df80,0x3);}}}
|
|
1
|
+
const a64_0x4b5e53=a64_0x1683;function a64_0x1683(_0x5ef5b6,_0x3e01cd){const _0x8fde55=a64_0x8fde();return a64_0x1683=function(_0x168344,_0x4e293e){_0x168344=_0x168344-0x1c3;let _0xdb5268=_0x8fde55[_0x168344];return _0xdb5268;},a64_0x1683(_0x5ef5b6,_0x3e01cd);}function a64_0x8fde(){const _0x4144b0=['setGeometry','minScale','locationWKTs','MultiPolygon','Point','57795MOcdSo','fromType','527BNrHYx','minResolution','fitLayer','pointTempLayer','constrainResolution','50EJqFdo','maxResolution','geoserver-vector-tile','rgba(255,\x200,\x200,\x201)','minZoom','19528NhXwpl','getLineTempLayer','getArcgisTileLayer','oncontextmenu','maxScale','getPolygonTempLayer','getLayersByIds','setMinResolution','setProperties','addWKTs','import','removeLayerById','geoserver-wmts','filter','getDynamicLayer','addFeature','insertAt','arcgis-wmts','getZIndex','locationWKT','transform','getArray','push','getGeoserverWmsLayer','layerInfo','getArcgisWmsLayer','geoserver-wfs','getProjection','add','getSize','addMapLayer','tag','getCode','Polygon','getView','setStyle','layerTag','getMinZoom','tdt-c','setMaxResolution','getType','18LGGvVJ','refresh','6611KPuQFw','getTempLayerById','1596Fodnwp','geoserver-wms','flashGeometrys','polygonTempLayer','getMetersPerUnit','fit','9FyxmNM','changetype','projection','lineTempLayer','length','_options','remove','center','874564QBFUEo','MultiPoint','getLayers','removeLayer','getArcgisFeatureLayer','getCoordinates','layerIds','includes','getGeoserverVectorTileLayer','getTDTLayer','addLayer','getTempLayerByGeoType','layerType','changelayer','getResolution','341260wkhCFC','getGeoserverWFSLayer','setProjection','locationGeometrys','controlManager','arcgis-feature','extent','dispatchEvent','getExtent','getLayerById','rgba(255,\x200,\x200,\x200.2)','getElementById','3HwxCWV','590408NjOFzf','setCenter','all','getTarget','sortTemLayer','getGeoserverWMTSLayer','LineString','calculateExtent','getArcgisWMTSLayer','getPointTempLayer','getSource','GeometryCollection','maxZoom','zoom','locationGeometry'];a64_0x8fde=function(){return _0x4144b0;};return a64_0x8fde();}(function(_0x1827b9,_0x4938e3){const _0x405144=a64_0x1683,_0x2e71da=_0x1827b9();while(!![]){try{const _0x198ed9=parseInt(_0x405144(0x1ef))/0x1*(parseInt(_0x405144(0x1f4))/0x2)+parseInt(_0x405144(0x1d8))/0x3*(parseInt(_0x405144(0x234))/0x4)+-parseInt(_0x405144(0x1ed))/0x5*(-parseInt(_0x405144(0x222))/0x6)+-parseInt(_0x405144(0x1d9))/0x7+parseInt(_0x405144(0x1f9))/0x8*(parseInt(_0x405144(0x22c))/0x9)+parseInt(_0x405144(0x1cc))/0xa+parseInt(_0x405144(0x224))/0xb*(-parseInt(_0x405144(0x226))/0xc);if(_0x198ed9===_0x4938e3)break;else _0x2e71da['push'](_0x2e71da['shift']());}catch(_0x11f86b){_0x2e71da['push'](_0x2e71da['shift']());}}}(a64_0x8fde,0x21e1f));import'ol/ol.css';import'../assets/main.css';import a64_0x2fb1ec from'ol/Map';import a64_0x3b1916 from'ol/events/Event';import{defaults as a64_0x407050}from'ol/control';import{registerProj}from'../utils/RegisterProjUtil';import{transformExtent}from'ol/proj';import a64_0x34c941 from'../layers/LayerManager';import a64_0x58573b from'ol/layer/Vector';import a64_0x24627d from'ol/source/Vector';import a64_0x202019 from'../controls/ControlManager';import a64_0xfa8e74 from'../entity/Feature';import a64_0x2c7c51 from'../interaction/InteractionManager';import a64_0x38676a from'./View';import{expandExtent,fromWKT,fromWKTs,union}from'../utils/GeometryUtil';import a64_0x5e1c38 from'../feature/FeatureManager';import{calculateResolution}from'../utils/ResolutionUtil';import{getStyle}from'../style/StyleManager';export class ChangeLayerEvent extends a64_0x3b1916{constructor(_0x47afee,_0x1406bd,_0x532ed5){const _0x3a9db3=a64_0x1683;super(_0x47afee),this[_0x3a9db3(0x1c3)]=_0x1406bd,this[_0x3a9db3(0x22d)]=_0x532ed5;}}export default class OLMap extends a64_0x2fb1ec{constructor(_0x454e81,_0x1ee0e5,_0x1de232){const _0x15b78e=a64_0x1683;_0x1ee0e5=_0x1ee0e5?_0x1ee0e5:{'projection':0x118a,'center':[117.22718,31.820386],'minZoom':0x0,'maxZoom':0x1c,'constrainResolution':![],'zoom':0xa};const _0x3a11c7=_0x1ee0e5['projection']?'EPSG:'+_0x1ee0e5[_0x15b78e(0x22e)]:'EPSG:4490';_0x1ee0e5[_0x15b78e(0x1e6)]=_0x1ee0e5['zoom']?_0x1ee0e5[_0x15b78e(0x1e6)]:0xa,_0x1ee0e5[_0x15b78e(0x1f8)]=_0x1ee0e5[_0x15b78e(0x1f8)]?_0x1ee0e5['minZoom']:0x0,_0x1ee0e5[_0x15b78e(0x1e5)]=_0x1ee0e5[_0x15b78e(0x1e5)]?_0x1ee0e5[_0x15b78e(0x1e5)]:0x1c,_0x1ee0e5[_0x15b78e(0x1f3)]=_0x1ee0e5[_0x15b78e(0x1f3)]?_0x1ee0e5['constrainResolution']:![],_0x1ee0e5['center']=_0x1ee0e5[_0x15b78e(0x233)]?_0x1ee0e5[_0x15b78e(0x233)]:[117.22718,31.820386],registerProj(_0x3a11c7);const _0x2629b7={'target':_0x454e81,'view':_0x1de232?_0x1de232:new a64_0x38676a({'center':_0x1ee0e5[_0x15b78e(0x233)],'zoom':_0x1ee0e5['zoom'],'projection':_0x3a11c7,'minZoom':_0x1ee0e5[_0x15b78e(0x1f8)],'maxZoom':_0x1ee0e5['maxZoom'],'minResolution':_0x1ee0e5[_0x15b78e(0x1f0)],'maxResolution':_0x1ee0e5[_0x15b78e(0x1f5)],'constrainResolution':_0x1ee0e5[_0x15b78e(0x1f3)]}),'controls':a64_0x407050({'zoom':![]})};super(_0x2629b7);_0x1ee0e5['extent']&&this[_0x15b78e(0x21b)]()['fit'](_0x1ee0e5[_0x15b78e(0x1d2)]);const _0xccdc68=this[_0x15b78e(0x1dc)]();if(_0xccdc68 instanceof HTMLElement)_0xccdc68[_0x15b78e(0x1fc)]=function(_0x56db07){return![];};else{const _0x363b99=document[_0x15b78e(0x1d7)](_0xccdc68);_0x363b99&&(_0x363b99[_0x15b78e(0x1fc)]=function(_0x3616de){return![];});}this['interactionManager']=new a64_0x2c7c51(this),this[_0x15b78e(0x1d0)]=new a64_0x202019(this),this[_0x15b78e(0x231)]=_0x1ee0e5;}[a64_0x4b5e53(0x21b)](){const _0x44eb83=a64_0x4b5e53;return super[_0x44eb83(0x21b)]();}[a64_0x4b5e53(0x223)](){const _0x4182e4=a64_0x4b5e53;let _0x13b955=this[_0x4182e4(0x21b)]()[_0x4182e4(0x1cb)]();_0x13b955&&this['getView']()['setResolution'](_0x13b955-1e-11);}[a64_0x4b5e53(0x1f1)](_0x4cd200){const _0x553f56=a64_0x4b5e53;var _0x321f0a;this[_0x553f56(0x21b)]()[_0x553f56(0x22b)](transformExtent(_0x4cd200['initialExtent'],(_0x321f0a=_0x4cd200[_0x553f56(0x22e)])===null||_0x321f0a===void 0x0?void 0x0:_0x321f0a['getCode'](),this['getView']()['getProjection']()['getCode']()));}['fitLayerById'](_0xb4570){let _0x2b7b2a=this['getLayerById'](_0xb4570);_0x2b7b2a&&this['fitLayer'](_0x2b7b2a);}async[a64_0x4b5e53(0x217)](_0x44d7cf){const _0x1e0e71=a64_0x4b5e53;let _0x563f44;switch(_0x44d7cf['layerType']){case _0x1e0e71(0x1d1):_0x563f44=await a64_0x34c941[_0x1e0e71(0x238)](_0x44d7cf);break;case'arcgis-dynamic':_0x563f44=await a64_0x34c941[_0x1e0e71(0x207)](_0x44d7cf);break;case'arcgis-tile':_0x563f44=await a64_0x34c941[_0x1e0e71(0x1fb)](_0x44d7cf);break;case'arcgis-wms':_0x563f44=await a64_0x34c941[_0x1e0e71(0x212)](_0x44d7cf);break;case _0x1e0e71(0x20a):_0x563f44=await a64_0x34c941[_0x1e0e71(0x1e1)](_0x44d7cf);break;case _0x1e0e71(0x227):_0x563f44=await a64_0x34c941[_0x1e0e71(0x210)](_0x44d7cf);break;case _0x1e0e71(0x213):_0x563f44=await a64_0x34c941[_0x1e0e71(0x1cd)](_0x44d7cf);break;case _0x1e0e71(0x205):_0x563f44=await a64_0x34c941[_0x1e0e71(0x1de)](_0x44d7cf);break;case _0x1e0e71(0x1f6):_0x563f44=await a64_0x34c941[_0x1e0e71(0x1c5)](_0x44d7cf);break;case _0x1e0e71(0x21f):_0x563f44=await a64_0x34c941[_0x1e0e71(0x1c6)](_0x44d7cf);break;default:throw new Error('暂不支持【'+_0x44d7cf[_0x1e0e71(0x1c9)]+'】服务类型');}return this[_0x1e0e71(0x1c7)](_0x563f44),this[_0x1e0e71(0x1d3)](new ChangeLayerEvent(_0x1e0e71(0x1ca),[_0x44d7cf['id']],_0x1e0e71(0x215))),_0x563f44;}async['addMapLayers'](_0x41c1a6){const _0x24af8b=a64_0x4b5e53;let _0x26ef55=[];const _0x5af312=[];for(let _0x5ad1da=0x0;_0x5ad1da<_0x41c1a6[_0x24af8b(0x230)];_0x5ad1da++){const _0x55126f=_0x41c1a6[_0x5ad1da];_0x5af312[_0x24af8b(0x20f)](_0x55126f['id']),_0x26ef55[_0x24af8b(0x20f)](this['addMapLayer'](_0x55126f));}const _0x3aed5c=await Promise[_0x24af8b(0x1db)](_0x26ef55);return this[_0x24af8b(0x1d3)](new ChangeLayerEvent(_0x24af8b(0x1ca),_0x5af312,_0x24af8b(0x215))),_0x3aed5c;}[a64_0x4b5e53(0x1c7)](_0x42f0c4,_0x538e00=![]){const _0x54c209=a64_0x4b5e53,_0x44592b=_0x42f0c4,_0x11e2cd=this[_0x54c209(0x1d5)](_0x44592b['id']);if(_0x11e2cd==null){const _0x49f861=_0x44592b['layerInfo']==undefined||_0x44592b[_0x54c209(0x211)][_0x54c209(0x1e9)]==undefined||_0x44592b['layerInfo'][_0x54c209(0x1e9)]<0x0?undefined:calculateResolution(_0x44592b['layerInfo'][_0x54c209(0x1e9)],this[_0x54c209(0x21b)]()['getProjection']()[_0x54c209(0x22a)]()||0x0);_0x42f0c4[_0x54c209(0x200)](_0x49f861);const _0x145df5=_0x44592b['layerInfo']==undefined||_0x44592b[_0x54c209(0x211)]['maxScale']==undefined||_0x44592b['layerInfo'][_0x54c209(0x1fd)]<0x0?undefined:calculateResolution(_0x44592b[_0x54c209(0x211)][_0x54c209(0x1fd)],this['getView']()['getProjection']()[_0x54c209(0x22a)]()||0x0);_0x42f0c4[_0x54c209(0x220)](_0x145df5);const _0x4ff31f=this[_0x54c209(0x236)]()[_0x54c209(0x20e)]()[_0x54c209(0x230)];if(!this['_options'][_0x54c209(0x22e)]&&_0x4ff31f==0x0&&_0x44592b['projection']&&_0x44592b[_0x54c209(0x22e)]['getCode']()!=this[_0x54c209(0x21b)]()[_0x54c209(0x214)]()['getCode']()){}let _0x13dc00=_0x42f0c4[_0x54c209(0x20b)]();_0x13dc00!=undefined&&_0x13dc00>_0x4ff31f&&(_0x13dc00=_0x4ff31f),this['getLayers']()[_0x54c209(0x209)](_0x13dc00==undefined?_0x4ff31f:_0x13dc00,_0x42f0c4),_0x538e00&&this[_0x54c209(0x1f1)](_0x44592b);}}[a64_0x4b5e53(0x204)](_0x5c22f7){const _0x93fb1=a64_0x4b5e53,_0x4e966d=this['getLayerById'](_0x5c22f7);_0x4e966d&&(this[_0x93fb1(0x237)](_0x4e966d),this['dispatchEvent'](new ChangeLayerEvent(_0x93fb1(0x1ca),[_0x5c22f7],_0x93fb1(0x232))));}[a64_0x4b5e53(0x1d5)](_0x802eba){const _0xade6d8=a64_0x4b5e53;let _0x4a885e,_0x30a4bc=this['getLayers']()[_0xade6d8(0x20e)]();for(let _0x2da9d6=0x0;_0x2da9d6<_0x30a4bc['length'];_0x2da9d6++){let _0x3b58b2=_0x30a4bc[_0x2da9d6]['id'];if(_0x802eba==_0x3b58b2){_0x4a885e=_0x30a4bc[_0x2da9d6];break;}}return _0x4a885e;}['getLayerByLayerTag'](_0x1e85de){const _0x100877=a64_0x4b5e53;let _0x5a6acb,_0x1aea0d=this[_0x100877(0x236)]()[_0x100877(0x20e)]();for(let _0x4ce345=0x0;_0x4ce345<_0x1aea0d[_0x100877(0x230)];_0x4ce345++){const _0x5ee92a=_0x1aea0d[_0x4ce345][_0x100877(0x211)];if(!_0x5ee92a)continue;let _0x4f8c26=_0x5ee92a[_0x100877(0x21d)];if(_0x4f8c26==_0x1e85de){_0x5a6acb=_0x1aea0d[_0x4ce345];break;}}return _0x5a6acb;}[a64_0x4b5e53(0x1ff)](_0x279220){const _0x36e412=a64_0x4b5e53;let _0x241620=this[_0x36e412(0x236)]()[_0x36e412(0x20e)]();return _0x241620[_0x36e412(0x206)](_0x43ec74=>_0x279220[_0x36e412(0x1c4)](_0x43ec74['id']));}['getTempLayerById'](_0x5807ef){const _0x3fd38c=a64_0x4b5e53;let _0xd88f3c,_0x55391a=this['getLayers']()['getArray']();for(let _0x41b0bf=0x0;_0x41b0bf<_0x55391a[_0x3fd38c(0x230)];_0x41b0bf++){const _0x1fce47=_0x55391a[_0x41b0bf];if(_0x1fce47['id']===_0x5807ef){_0xd88f3c=_0x1fce47;break;}}if(!_0xd88f3c){_0xd88f3c=new a64_0x58573b({'zIndex':0x270f,'source':new a64_0x24627d()}),_0xd88f3c['id']=_0x5807ef;const _0x359d09=this['getLayers']()['getLength']();switch(_0x5807ef){case _0x3fd38c(0x22f):this['getLayers']()[_0x3fd38c(0x209)](_0x359d09-0x1>-0x1?_0x359d09-0x1:0x0,_0xd88f3c);break;case'polygonTempLayer':this[_0x3fd38c(0x236)]()[_0x3fd38c(0x209)](_0x359d09-0x2>-0x1?_0x359d09-0x2:0x0,_0xd88f3c);break;case _0x3fd38c(0x1f2):this[_0x3fd38c(0x236)]()[_0x3fd38c(0x209)](_0x359d09,_0xd88f3c);break;default:break;}}return _0xd88f3c;}[a64_0x4b5e53(0x1e2)](){return this['getTempLayerById']('pointTempLayer');}[a64_0x4b5e53(0x1fa)](){const _0xe15f4=a64_0x4b5e53;return this[_0xe15f4(0x225)](_0xe15f4(0x22f));}[a64_0x4b5e53(0x1fe)](){const _0x10fad7=a64_0x4b5e53;return this[_0x10fad7(0x225)](_0x10fad7(0x229));}['getTempLayerByGeoType'](_0x2d8b3b){const _0x25c2ff=a64_0x4b5e53;let _0x311192=this[_0x25c2ff(0x1e2)]();switch(_0x2d8b3b){case _0x25c2ff(0x1ec):case _0x25c2ff(0x235):_0x311192=this[_0x25c2ff(0x1e2)]();case _0x25c2ff(0x1df):case'MultiLineString':_0x311192=this[_0x25c2ff(0x1fa)]();case'Polygon':case _0x25c2ff(0x1eb):_0x311192=this[_0x25c2ff(0x1fe)]();}return _0x311192;}['resetViewProjection'](_0x788ddf){const _0xe86bdb=a64_0x4b5e53;let _0x5303ab=this[_0xe86bdb(0x21b)]()[_0xe86bdb(0x21e)](),_0x97818c=this[_0xe86bdb(0x21b)]()['getMaxZoom']();registerProj(_0x788ddf),this[_0xe86bdb(0x21b)]()[_0xe86bdb(0x1ce)](_0x788ddf);}[a64_0x4b5e53(0x1dd)](){const _0x3c1705=a64_0x4b5e53;let _0x1e34e4=[];_0x1e34e4['push'](this[_0x3c1705(0x1e2)]()),_0x1e34e4[_0x3c1705(0x20f)](this[_0x3c1705(0x1fa)]()),_0x1e34e4[_0x3c1705(0x20f)](this[_0x3c1705(0x1fe)]());const _0x4ffe02=this[_0x3c1705(0x236)]()[_0x3c1705(0x20e)]()[_0x3c1705(0x230)];for(let _0x231446=0x0;_0x231446<_0x1e34e4['length'];_0x231446++){const _0x543840=_0x1e34e4[_0x231446];this[_0x3c1705(0x236)]()[_0x3c1705(0x209)](_0x4ffe02-_0x231446-0x1,_0x543840);}}[a64_0x4b5e53(0x1d4)](){const _0x102073=a64_0x4b5e53;return this['getView']()[_0x102073(0x1e0)](this[_0x102073(0x216)]());}['addWKT'](_0x54405a,_0x122d4e,_0x41366d,_0x4f7dec=!![],_0x434857,_0x833797={'color':a64_0x4b5e53(0x1d6),'opacity':0.2,'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2}){const _0x5ab764=a64_0x4b5e53;var _0x82e079;const _0x8c81ed=fromWKT(_0x54405a,_0x122d4e,this['getView']()[_0x5ab764(0x214)]()[_0x5ab764(0x219)]());if(!_0x8c81ed)return;const _0x59d104=this[_0x5ab764(0x1c8)](_0x8c81ed[_0x5ab764(0x221)]()),_0x3d59cc=getStyle(_0x833797),_0x3750ac=new a64_0xfa8e74();return _0x3750ac[_0x5ab764(0x1e8)](_0x8c81ed),_0x3750ac[_0x5ab764(0x21c)](_0x3d59cc),_0x434857?_0x3750ac['setProperties'](_0x434857):_0x3750ac[_0x5ab764(0x201)]({}),_0x3750ac[_0x5ab764(0x218)]=_0x41366d,(_0x82e079=_0x59d104[_0x5ab764(0x1e3)]())===null||_0x82e079===void 0x0?void 0x0:_0x82e079[_0x5ab764(0x208)](_0x3750ac),_0x4f7dec&&this[_0x5ab764(0x1e7)](_0x8c81ed,undefined,1.2,![]),_0x3750ac;}[a64_0x4b5e53(0x202)](_0x2dad69,_0x792e79,_0x4f3936,_0x5459bc=!![],_0x29089f={'color':a64_0x4b5e53(0x1d6),'opacity':0.2,'outlineColor':a64_0x4b5e53(0x1f7),'outlineWidth':0x2},_0x173ef3){const _0x49ce4d=a64_0x4b5e53;var _0x46cf3c;const _0x230cbb=fromWKTs(_0x2dad69,_0x792e79,this[_0x49ce4d(0x21b)]()['getProjection']()[_0x49ce4d(0x219)]());if(!_0x230cbb||_0x230cbb[_0x49ce4d(0x230)]==0x0)return;const _0x1abb8c=this[_0x49ce4d(0x1c8)](_0x230cbb[0x0]['getType']()),_0x47def0=getStyle(_0x29089f);let _0x4502b6=[];for(const _0x378178 of _0x230cbb){const _0x11b4d4=new a64_0xfa8e74();_0x11b4d4[_0x49ce4d(0x1e8)](_0x378178),_0x11b4d4['setStyle'](_0x47def0),_0x173ef3?_0x11b4d4[_0x49ce4d(0x201)](_0x173ef3):_0x11b4d4[_0x49ce4d(0x201)]({}),_0x11b4d4[_0x49ce4d(0x1ee)]=_0x49ce4d(0x203),_0x11b4d4['isSelected']=!![],_0x11b4d4[_0x49ce4d(0x218)]=_0x4f3936,_0x4502b6[_0x49ce4d(0x20f)](_0x11b4d4);}return(_0x46cf3c=_0x1abb8c[_0x49ce4d(0x1e3)]())===null||_0x46cf3c===void 0x0?void 0x0:_0x46cf3c['addFeatures'](_0x4502b6),_0x5459bc&&this[_0x49ce4d(0x1cf)](_0x230cbb,undefined,1.2,![]),_0x4502b6;}[a64_0x4b5e53(0x20c)](_0x1bc0be,_0x59d729,_0x1ee1c8=1.2,_0x5e4398=!![]){const _0x3700d9=a64_0x4b5e53;if(!_0x1bc0be)return;let _0x55ca08=fromWKT(_0x1bc0be,_0x59d729,this[_0x3700d9(0x21b)]()[_0x3700d9(0x214)]()[_0x3700d9(0x219)]());if(!_0x55ca08)return;this[_0x3700d9(0x1e7)](_0x55ca08,_0x59d729,_0x1ee1c8,_0x5e4398);}[a64_0x4b5e53(0x1ea)](_0x135528,_0x3b9a39,_0x9ed135=1.2,_0x1c81a8=!![]){const _0x2479d9=a64_0x4b5e53;if(!_0x135528||_0x135528[_0x2479d9(0x230)]===0x0)return;const _0x5846c2=[];for(let _0x9256dd=0x0;_0x9256dd<_0x135528['length'];_0x9256dd++){let _0x869fcf=_0x135528[_0x9256dd],_0x5ba39b=fromWKT(_0x869fcf,_0x3b9a39,this[_0x2479d9(0x21b)]()[_0x2479d9(0x214)]()[_0x2479d9(0x219)]());if(!_0x5ba39b)continue;_0x5846c2[_0x2479d9(0x20f)](_0x5ba39b);}this[_0x2479d9(0x1cf)](_0x5846c2,_0x3b9a39,_0x9ed135,_0x1c81a8);}[a64_0x4b5e53(0x1e7)](_0xb5583d,_0x2e164c,_0x458d30=1.2,_0x50030d=!![]){const _0x4cecbf=a64_0x4b5e53;if(!_0xb5583d)return;let _0x188268=_0xb5583d;_0x2e164c&&(_0x188268=_0xb5583d[_0x4cecbf(0x20d)](_0x2e164c,this[_0x4cecbf(0x21b)]()[_0x4cecbf(0x214)]()));switch(_0x188268[_0x4cecbf(0x221)]()){case _0x4cecbf(0x1ec):this[_0x4cecbf(0x21b)]()[_0x4cecbf(0x1da)](_0x188268[_0x4cecbf(0x239)]());break;case _0x4cecbf(0x21a):case _0x4cecbf(0x235):case'MultiLineString':case _0x4cecbf(0x1eb):case _0x4cecbf(0x1e4):this[_0x4cecbf(0x21b)]()[_0x4cecbf(0x22b)](expandExtent(_0x188268[_0x4cecbf(0x1d4)](),_0x458d30));break;}if(_0x50030d){const _0x493cf7=new a64_0x5e1c38(this);_0x493cf7[_0x4cecbf(0x228)]([_0x188268],0x3);}}[a64_0x4b5e53(0x1cf)](_0x2dd34e,_0x402532,_0x3d4d29=1.2,_0x591ca2=!![]){const _0x1b9231=a64_0x4b5e53;if(!_0x2dd34e||_0x2dd34e[_0x1b9231(0x230)]===0x0)return;let _0x2ef257=null;for(const _0xbd7a4d of _0x2dd34e){_0x2ef257?_0x2ef257=union(_0x2ef257,_0xbd7a4d):_0x2ef257=_0xbd7a4d;}_0x2ef257&&this['locationGeometry'](_0x2ef257,_0x402532,_0x3d4d29,![]);if(_0x591ca2){const _0x4da799=new a64_0x5e1c38(this);_0x4da799[_0x1b9231(0x228)](_0x2dd34e,0x3);}}}
|
package/mapView/View.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe616dc,_0x2cfa3c){var _0x495490=a65_0x166a,_0xb69e9=_0xe616dc();while(!![]){try{var _0x2c2c9a=-parseInt(_0x495490(0x8a))/0x1+-parseInt(_0x495490(0x80))/0x2+-parseInt(_0x495490(0x83))/0x3*(parseInt(_0x495490(0x7d))/0x4)+parseInt(_0x495490(0x89))/0x5*(-parseInt(_0x495490(0x7e))/0x6)+parseInt(_0x495490(0x7f))/0x7*(-parseInt(_0x495490(0x81))/0x8)+-parseInt(_0x495490(0x84))/0x9*(-parseInt(_0x495490(0x87))/0xa)+-parseInt(_0x495490(0x88))/0xb*(-parseInt(_0x495490(0x86))/0xc);if(_0x2c2c9a===_0x2cfa3c)break;else _0xb69e9['push'](_0xb69e9['shift']());}catch(_0x4a6827){_0xb69e9['push'](_0xb69e9['shift']());}}}(a65_0x5d4e,0x3d057));function a65_0x5d4e(){var _0x1af3df=['83772aVLPaW','3370nVUrFh','1199KLOHdL','1875BHqjno','13476hxZgob','460ESgsbg','48RURdZX','1219785YShPyo','232868mBgmjF','16vRRqlI','projection_','4701JffqnJ','4023wXuuyO','setProperties'];a65_0x5d4e=function(){return _0x1af3df;};return a65_0x5d4e();}import a65_0x4e86bf from'ol/View';function a65_0x166a(_0xffaaaf,_0x128aaf){var _0x5d4e04=a65_0x5d4e();return a65_0x166a=function(_0x166ad3,_0x3825fc){_0x166ad3=_0x166ad3-0x7d;var _0x193bab=_0x5d4e04[_0x166ad3];return _0x193bab;},a65_0x166a(_0xffaaaf,_0x128aaf);}import{get}from'ol/proj';export default class OLView extends a65_0x4e86bf{constructor(_0x38994a){super(_0x38994a);}['setProjection'](_0x1fb839){var _0xa80532=a65_0x166a;this[_0xa80532(0x82)]=get(_0x1fb839),this[_0xa80532(0x85)]({'projection_':get(_0x1fb839)});}}
|
package/package.json
CHANGED
package/plot/Plot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ddbd2,_0x209e78){const _0xa47f98=a73_0x2621,_0x519b28=_0x1ddbd2();while(!![]){try{const _0x2100bb=-parseInt(_0xa47f98(0x1de))/0x1*(-parseInt(_0xa47f98(0x1d9))/0x2)+-parseInt(_0xa47f98(0x1e1))/0x3+parseInt(_0xa47f98(0x1da))/0x4+-parseInt(_0xa47f98(0x1ec))/0x5+-parseInt(_0xa47f98(0x1ea))/0x6+-parseInt(_0xa47f98(0x1eb))/0x7+parseInt(_0xa47f98(0x1e8))/0x8;if(_0x2100bb===_0x209e78)break;else _0x519b28['push'](_0x519b28['shift']());}catch(_0x4b9e70){_0x519b28['push'](_0x519b28['shift']());}}}(a73_0x3840,0x5b1cf));import a73_0x15fc37 from'../entity/GeometryType';import a73_0x2cce6f from'./geometry/polygon/Polygon';import{getPointSingleStyle}from'../style/PointStyleFormat';import{getPolylineStyle}from'../style/PolylineStyleFormat';function a73_0x3840(){const _0x314254=['218503AGYcRA','Point','Ellipse','540594HVzviQ','Polygon','text','Circle','toLowerCase','Curve','ArrowPincerlike','11743232qbCvTr','Ellipsoid','3300822vpSvYI','4457866rwKkSl','409295VFCZaw','MAX_VALUE','Rectangle','pointermove','SurfaceClosed','Arrow','2XuWzWu','543296MNTgAd','AssemblySite','assign','PolyLine'];a73_0x3840=function(){return _0x314254;};return a73_0x3840();}import{getPolygonStyle}from'../style/PolygonStyleFormat';import a73_0x2fcf38 from'./geometry/polygon/RectAngle';function a73_0x2621(_0x59bdd7,_0x37f8f6){const _0x3840c5=a73_0x3840();return a73_0x2621=function(_0x262114,_0x400a1f){_0x262114=_0x262114-0x1d8;let _0x17834e=_0x3840c5[_0x262114];return _0x17834e;},a73_0x2621(_0x59bdd7,_0x37f8f6);}import a73_0x2148c0 from'./geometry/polyline/Polyline';import a73_0x87c2f7 from'./geometry/point/Point';import a73_0x31f758 from'./geometry/polygon/Circle';const defaultStyle={'color':[0x40,0xaf,0xc1],'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0x40,0xaf,0xc1],'outlineOpacity':0.6,'outlineWidth':0x2};export function createPlot(_0x5ef727,_0x3bd8bf){const _0x1db6a2=a73_0x2621;_0x5ef727=_0x5ef727[_0x1db6a2(0x1e5)]();switch(_0x5ef727){case a73_0x15fc37[_0x1db6a2(0x1df)]:case _0x1db6a2(0x1ef):return new a73_0x87c2f7(_0x3bd8bf);case a73_0x15fc37[_0x1db6a2(0x1dd)]:return new a73_0x2148c0(_0x3bd8bf);case a73_0x15fc37['Circle']:return new a73_0x31f758(_0x3bd8bf);case a73_0x15fc37[_0x1db6a2(0x1ee)]:return new a73_0x2fcf38(_0x3bd8bf);case a73_0x15fc37['Polygon']:return new a73_0x2cce6f(_0x3bd8bf);}}export function getPlotCount(_0x2ac5d4){const _0x5d9504=a73_0x2621;_0x2ac5d4=_0x2ac5d4[_0x5d9504(0x1e5)]();let _0x41bc16={'fixPoint':0x0,'minPoint':0x0};switch(_0x2ac5d4){case a73_0x15fc37[_0x5d9504(0x1df)]:_0x41bc16={'fixPoint':0x1,'minPoint':0x0};break;case a73_0x15fc37[_0x5d9504(0x1dd)]:_0x41bc16={'fixPoint':Number[_0x5d9504(0x1ed)],'minPoint':0x1};break;case a73_0x15fc37[_0x5d9504(0x1e2)]:_0x41bc16={'fixPoint':Number[_0x5d9504(0x1ed)],'minPoint':0x2};break;case a73_0x15fc37[_0x5d9504(0x1ee)]:_0x41bc16={'fixPoint':0x2,'minPoint':0x1};break;case a73_0x15fc37['Circle']:_0x41bc16={'fixPoint':0x2,'minPoint':0x1};break;case a73_0x15fc37[_0x5d9504(0x1e6)]:_0x41bc16={'fixPoint':Number[_0x5d9504(0x1ed)],'minPoint':0x1};break;case a73_0x15fc37[_0x5d9504(0x1e0)]:case a73_0x15fc37['Ellipsoid']:_0x41bc16={'fixPoint':0x3,'minPoint':0x1};break;default:break;}return _0x41bc16;}export function getStyle(_0x5f3e16,_0x45a1a9,_0x53c0e0){const _0x9b100d=a73_0x2621;_0x5f3e16=_0x5f3e16[_0x9b100d(0x1e5)](),_0x45a1a9=Object[_0x9b100d(0x1dc)](Object['assign']({},defaultStyle),_0x45a1a9);switch(_0x5f3e16){case a73_0x15fc37['Point']:return function(_0x4d5496,_0x2d2485){return getPointSingleStyle(_0x5f3e16,_0x45a1a9,_0x2d2485,_0x53c0e0);};case a73_0x15fc37['PolyLine']:case a73_0x15fc37[_0x9b100d(0x1e6)]:return function(_0x1298ed,_0x21057b){return getPolylineStyle(_0x45a1a9,'',_0x21057b,_0x53c0e0);};case a73_0x15fc37[_0x9b100d(0x1e4)]:case a73_0x15fc37[_0x9b100d(0x1ee)]:case a73_0x15fc37['Ellipse']:case a73_0x15fc37[_0x9b100d(0x1e9)]:case a73_0x15fc37[_0x9b100d(0x1f0)]:case a73_0x15fc37[_0x9b100d(0x1e2)]:case a73_0x15fc37['ArrowAttack']:case a73_0x15fc37[_0x9b100d(0x1e7)]:case a73_0x15fc37[_0x9b100d(0x1d8)]:case a73_0x15fc37[_0x9b100d(0x1db)]:return function(_0x63c91f,_0x15dd15){const _0x30477a=_0x9b100d;return getPolygonStyle(_0x45a1a9,_0x45a1a9[_0x30477a(0x1e3)],_0x15dd15,_0x53c0e0);};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a66_0x4ff4(){var _0x5defc0=['points','getPlotType','12330WFfegY','setPoints','1120476vTfuwN','setStyle','setMap','stringify','701192rlYoVe','length','generate','finishDrawing','getMap','109380HsrHOT','parse','537436eAlRHb','updateLastPoint','14EoYEMd','4021360mLIyVX','传入的不是地图对象!','getPoints','updatePoint','isPlot','Point','setCoordinates','map','1791810KxuRGd','9yMDrMS','type','1DSmllK'];a66_0x4ff4=function(){return _0x5defc0;};return a66_0x4ff4();}var a66_0x144783=a66_0x527d;function a66_0x527d(_0xefca6f,_0xc345e4){var _0x4ff41c=a66_0x4ff4();return a66_0x527d=function(_0x527ddb,_0x254026){_0x527ddb=_0x527ddb-0xc1;var _0x56c85f=_0x4ff41c[_0x527ddb];return _0x56c85f;},a66_0x527d(_0xefca6f,_0xc345e4);}(function(_0x415dbc,_0x572a82){var _0x19e2c9=a66_0x527d,_0x90e290=_0x415dbc();while(!![]){try{var _0x24fb47=-parseInt(_0x19e2c9(0xc8))/0x1*(-parseInt(_0x19e2c9(0xd8))/0x2)+-parseInt(_0x19e2c9(0xc6))/0x3*(-parseInt(_0x19e2c9(0xd6))/0x4)+-parseInt(_0x19e2c9(0xcb))/0x5+-parseInt(_0x19e2c9(0xcd))/0x6+-parseInt(_0x19e2c9(0xda))/0x7*(parseInt(_0x19e2c9(0xd1))/0x8)+-parseInt(_0x19e2c9(0xc5))/0x9+parseInt(_0x19e2c9(0xdb))/0xa;if(_0x24fb47===_0x572a82)break;else _0x90e290['push'](_0x90e290['shift']());}catch(_0x104484){_0x90e290['push'](_0x90e290['shift']());}}}(a66_0x4ff4,0x2e369));import{Map}from'ol';import{Point as a66_0x3055c0}from'ol/geom';class Point extends a66_0x3055c0{constructor(_0x2a8ab0){var _0x54905b=a66_0x527d;super([]),this[_0x54905b(0xc7)]=_0x54905b(0xc2),this[_0x54905b(0xc9)]=_0x2a8ab0,this[_0x54905b(0xcc)](_0x2a8ab0);}[a66_0x144783(0xca)](){var _0x20ecb3=a66_0x144783;return this[_0x20ecb3(0xc7)];}[a66_0x144783(0xd3)](){var _0xb35a0e=a66_0x144783;this[_0xb35a0e(0xc3)](this[_0xb35a0e(0xc9)][0x0]);}[a66_0x144783(0xcf)](_0x3afdbd){var _0x475663=a66_0x144783;if(_0x3afdbd&&_0x3afdbd instanceof Map)this[_0x475663(0xc4)]=_0x3afdbd;else throw new Error(_0x475663(0xdc));}[a66_0x144783(0xd5)](){var _0x52c7c0=a66_0x144783;return this[_0x52c7c0(0xc4)];}[a66_0x144783(0xc1)](){return!![];}[a66_0x144783(0xcc)](_0x2d389e){var _0x194b2a=a66_0x144783;_0x2d389e&&_0x2d389e['length']>=0x1&&(this[_0x194b2a(0xc9)]=_0x2d389e,this[_0x194b2a(0xd3)]());}[a66_0x144783(0xdd)](){return this['points'];}[a66_0x144783(0xde)](_0x583df9,_0x501436){var _0x2a838d=a66_0x144783;_0x501436>=0x0&&_0x501436<this[_0x2a838d(0xc9)][_0x2a838d(0xd2)]&&(this[_0x2a838d(0xc9)][_0x501436]=_0x583df9,this[_0x2a838d(0xd3)]());}[a66_0x144783(0xd9)](_0x10fb49){var _0x5ec154=a66_0x144783;this[_0x5ec154(0xde)](_0x10fb49,this[_0x5ec154(0xc9)][_0x5ec154(0xd2)]-0x1);}[a66_0x144783(0xd4)](){}[a66_0x144783(0xce)](_0x4feec5){var _0x576e1a=a66_0x144783;this['style']=JSON[_0x576e1a(0xd7)](JSON[_0x576e1a(0xd0)](_0x4feec5));}}export default Point;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a67_0x2f53d5=a67_0x41a3;(function(_0x58b45c,_0x24d504){var _0x251cbc=a67_0x41a3,_0x5057cb=_0x58b45c();while(!![]){try{var _0x3324e0=-parseInt(_0x251cbc(0xe5))/0x1*(-parseInt(_0x251cbc(0xe7))/0x2)+parseInt(_0x251cbc(0xef))/0x3+parseInt(_0x251cbc(0xec))/0x4+parseInt(_0x251cbc(0xf6))/0x5+parseInt(_0x251cbc(0xee))/0x6+parseInt(_0x251cbc(0xe3))/0x7+parseInt(_0x251cbc(0xf3))/0x8*(-parseInt(_0x251cbc(0xed))/0x9);if(_0x3324e0===_0x24d504)break;else _0x5057cb['push'](_0x5057cb['shift']());}catch(_0x3426ef){_0x5057cb['push'](_0x5057cb['shift']());}}}(a67_0xa35f,0x99cf1));import{Polygon}from'ol/geom';import a67_0x5bb0fd from'ol/format/GeoJSON';import a67_0x42c808 from'../../../mapView/Map';function a67_0x41a3(_0x4d20ec,_0x4febf4){var _0xa35f9b=a67_0xa35f();return a67_0x41a3=function(_0x41a3d2,_0x41ebeb){_0x41a3d2=_0x41a3d2-0xe3;var _0x2093e4=_0xa35f9b[_0x41a3d2];return _0x2093e4;},a67_0x41a3(_0x4d20ec,_0x4febf4);}function a67_0xa35f(){var _0x201a83=['3411042zKzRIN','256122lskDKH','getPointCount','map','isPlot','26065192dpixYi','getType','stringify','4826030lzhnZR','getMap','writeGeometryObject','传入的不是地图对象!','167160mUCpcb','type','1036281ICJbsv','points','2GmXqcI','generate','setPoints','length','parse','4835608wahnIW','9ghfNtf'];a67_0xa35f=function(){return _0x201a83;};return a67_0xa35f();}class BasePolygon extends Polygon{constructor(){var _0x11e866=a67_0x41a3;super([]),this[_0x11e866(0xe6)]=[];}[a67_0x2f53d5(0xf4)](){var _0x21f6d3=a67_0x2f53d5;return this[_0x21f6d3(0xe4)]?this[_0x21f6d3(0xe4)]:super[_0x21f6d3(0xf4)]();}['getGeoJson'](){var _0x491f52=a67_0x2f53d5;return new a67_0x5bb0fd()[_0x491f52(0xf8)](this);}['setStyle'](_0x26f552){var _0x3ad5ff=a67_0x2f53d5;_0x26f552&&(this['style']=JSON[_0x3ad5ff(0xeb)](JSON[_0x3ad5ff(0xf5)](_0x26f552)));}['setMap'](_0x1b8255){var _0x2455c9=a67_0x2f53d5;if(_0x1b8255&&_0x1b8255 instanceof a67_0x42c808)this[_0x2455c9(0xf1)]=_0x1b8255;else throw new Error(_0x2455c9(0xf9));}[a67_0x2f53d5(0xf7)](){var _0x12e393=a67_0x2f53d5;return this[_0x12e393(0xf1)];}[a67_0x2f53d5(0xf2)](){return!![];}[a67_0x2f53d5(0xe9)](_0x4ff7f2){var _0x1cdd96=a67_0x2f53d5;this[_0x1cdd96(0xe6)]=!_0x4ff7f2?[]:_0x4ff7f2,this[_0x1cdd96(0xe6)][_0x1cdd96(0xea)]>=0x1&&this[_0x1cdd96(0xe8)]();}['generate'](){}['getPoints'](){var _0x4acf5e=a67_0x2f53d5;return this[_0x4acf5e(0xe6)]['slice'](0x0);}[a67_0x2f53d5(0xf0)](){var _0x729f5a=a67_0x2f53d5;return this[_0x729f5a(0xe6)]['length'];}['finishDrawing'](){}}export default BasePolygon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a68_0x3e1901=a68_0x24a0;(function(_0x12c845,_0x20ebb5){const _0x1bcba8=a68_0x24a0,_0x3fad89=_0x12c845();while(!![]){try{const _0xfdde90=-parseInt(_0x1bcba8(0x82))/0x1*(parseInt(_0x1bcba8(0x81))/0x2)+-parseInt(_0x1bcba8(0x85))/0x3*(parseInt(_0x1bcba8(0x83))/0x4)+parseInt(_0x1bcba8(0x7b))/0x5*(parseInt(_0x1bcba8(0x88))/0x6)+parseInt(_0x1bcba8(0x76))/0x7+-parseInt(_0x1bcba8(0x74))/0x8*(parseInt(_0x1bcba8(0x77))/0x9)+parseInt(_0x1bcba8(0x79))/0xa+-parseInt(_0x1bcba8(0x7a))/0xb;if(_0xfdde90===_0x20ebb5)break;else _0x3fad89['push'](_0x3fad89['shift']());}catch(_0x2ec08b){_0x3fad89['push'](_0x3fad89['shift']());}}}(a68_0x18ca,0x5915f));function a68_0x18ca(){const _0x338066=['toRadians','updateLastPoint','192TpAkWX','1171SMHEYi','31700XzntTz','type','114WGIFYX','setCenter','points','5682FkhSoz','setPoints','65064cZHOCA','generate','4210185piIsTY','144YnuOXE','length','5057670RiiYhQ','5216310dfYBeX','1455HNSkCt','updatePoint','sqrt','getGeoJson'];a68_0x18ca=function(){return _0x338066;};return a68_0x18ca();}import{Circle as a68_0xd1901a}from'ol/geom';import a68_0x23a3d9 from'ol/format/GeoJSON';import{offset}from'ol/sphere';import{squaredDistance as a68_0x31b511}from'ol/coordinate';import{fromCircle}from'ol/geom/Polygon';import{compareArray}from'../../../utils/ArrayUtil';class Circle extends a68_0xd1901a{constructor(_0x1b742f){const _0x5354e7=a68_0x24a0;super([]),this[_0x5354e7(0x87)]=_0x1b742f,this[_0x5354e7(0x84)]='Circle',_0x1b742f&&_0x1b742f['length']>0x0&&this['setPoints'](_0x1b742f);}[a68_0x3e1901(0x89)](_0x391311){const _0x3f45df=a68_0x3e1901;var _0x1166e3;((_0x1166e3=this['points'])===null||_0x1166e3===void 0x0?void 0x0:_0x1166e3[_0x3f45df(0x78)])>0x0&&(_0x391311===null||_0x391311===void 0x0?void 0x0:_0x391311[_0x3f45df(0x78)])>0x0&&!compareArray(this[_0x3f45df(0x87)][0x0],_0x391311[0x0])?this[_0x3f45df(0x86)](_0x391311[0x0]):(this['points']=!_0x391311?[]:_0x391311,this['points']['length']>=0x1&&(this[_0x3f45df(0x75)]&&this[_0x3f45df(0x75)]()));}[a68_0x3e1901(0x75)](){const _0x402271=a68_0x3e1901;let _0x11032e=this[_0x402271(0x87)][_0x402271(0x78)];if(_0x11032e<0x2)return![];else{const _0x4969ae=this[_0x402271(0x87)][0x0],_0x2a3303=a68_0x31b511(_0x4969ae,this[_0x402271(0x87)][0x1]);this['setCenterAndRadius'](_0x4969ae,Math[_0x402271(0x7d)](_0x2a3303));}}[a68_0x3e1901(0x86)](_0xaa4012){const _0x1a6d75=a68_0x3e1901;this[_0x1a6d75(0x86)](_0xaa4012),this[_0x1a6d75(0x87)]=[_0xaa4012,offset(_0xaa4012,this['getRadius'](),this[_0x1a6d75(0x7f)](0x5a))],this[_0x1a6d75(0x75)]();}['toRadians'](_0x5ef0a0){return _0x5ef0a0*Math['PI']/0xb4;}[a68_0x3e1901(0x7e)](){return new a68_0x23a3d9()['writeGeometryObject'](fromCircle(this));}[a68_0x3e1901(0x7c)](_0x351598,_0xfb8dd0){const _0x3a92fb=a68_0x3e1901;_0xfb8dd0>=0x0&&_0xfb8dd0<this[_0x3a92fb(0x87)]['length']&&(this[_0x3a92fb(0x87)][_0xfb8dd0]=_0x351598,this[_0x3a92fb(0x75)]());}[a68_0x3e1901(0x80)](_0xf47705){const _0xa1c991=a68_0x3e1901;this[_0xa1c991(0x7c)](_0xf47705,this[_0xa1c991(0x87)][_0xa1c991(0x78)]-0x1);}}function a68_0x24a0(_0x10f3ed,_0xc1833f){const _0x18ca61=a68_0x18ca();return a68_0x24a0=function(_0x24a01c,_0x43dc81){_0x24a01c=_0x24a01c-0x74;let _0x48026b=_0x18ca61[_0x24a01c];return _0x48026b;},a68_0x24a0(_0x10f3ed,_0xc1833f);}export default Circle;
|