ym-gis-2d 1.0.43 → 1.0.44
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/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.js +1 -1
- 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/MapTileLayer.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.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/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a55_0x1d0e(_0x40214d,_0x592421){const _0x30c93c=a55_0x30c9();return a55_0x1d0e=function(_0x1d0ef8,_0x295658){_0x1d0ef8=_0x1d0ef8-0xfb;let _0x3112cb=_0x30c93c[_0x1d0ef8];return _0x3112cb;},a55_0x1d0e(_0x40214d,_0x592421);}const a55_0x2672b1=a55_0x1d0e;(function(_0x9b2dc2,_0x1d91ac){const _0x299e7a=a55_0x1d0e,_0x10f19a=_0x9b2dc2();while(!![]){try{const _0xe69346=parseInt(_0x299e7a(0xff))/0x1+parseInt(_0x299e7a(0x101))/0x2+-parseInt(_0x299e7a(0x10d))/0x3+-parseInt(_0x299e7a(0xfe))/0x4*(-parseInt(_0x299e7a(0x10e))/0x5)+parseInt(_0x299e7a(0x100))/0x6+-parseInt(_0x299e7a(0x112))/0x7*(parseInt(_0x299e7a(0xfb))/0x8)+-parseInt(_0x299e7a(0x10c))/0x9*(-parseInt(_0x299e7a(0x113))/0xa);if(_0xe69346===_0x1d91ac)break;else _0x10f19a['push'](_0x10f19a['shift']());}catch(_0x2cccdb){_0x10f19a['push'](_0x10f19a['shift']());}}}(a55_0x30c9,0xe0810));import{ImageWMS as a55_0x32b771}from'ol/source';import{Image as a55_0x466f4d}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a55_0x30c9(){const _0x16f328=['initExtent','7UnrzCU','111460zQxRSr','11718968HxcLCK','wkid','opacity','16sJbRKK','1065673aMorsv','221916GTmnnu','347754gHgltQ','initialExtent','setFilter','mapIndex','refresh','layerInfo','getSource','EPSG:','1.1.0','updateParams','sublayers','2142OCzuoH','4848219JXENUS','89035TqwOQg','loadFilter','join'];a55_0x30c9=function(){return _0x16f328;};return a55_0x30c9();}export default class ArcgisWMSLayer extends a55_0x466f4d{constructor(_0x59984a,_0x51cad8){const _0x217749=a55_0x1d0e;var _0x478218;let _0x2afa63=registerProj(_0x217749(0x108)+_0x51cad8[_0x217749(0xfc)],undefined),_0x2028ee={'LAYERS':(_0x478218=_0x59984a[_0x217749(0x10b)])===null||_0x478218===void 0x0?void 0x0:_0x478218[_0x217749(0x110)](','),'VERSION':_0x217749(0x109)};_0x59984a['loadFilter']&&(_0x2028ee['CQL_FILTER']=_0x59984a[_0x217749(0x10f)]),super({'opacity':_0x59984a[_0x217749(0xfd)],'zIndex':_0x59984a[_0x217749(0x104)],'source':new a55_0x32b771({'crossOrigin':'anonymous','url':_0x59984a['url'],'params':_0x2028ee})}),this['id']=_0x59984a['id'],this[_0x217749(0x102)]=_0x51cad8[_0x217749(0x111)],this['projection']=_0x2afa63,this[_0x217749(0x106)]=_0x59984a;}[a55_0x2672b1(0x105)](){}[a55_0x2672b1(0x103)](_0x41403a){const _0x5d0ec2=a55_0x2672b1;var _0x5b16b7;(_0x5b16b7=this[_0x5d0ec2(0x107)]())===null||_0x5b16b7===void 0x0?void 0x0:_0x5b16b7[_0x5d0ec2(0x10a)]({'CQL_FILTER':_0x41403a});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a56_0x3fbd(){const _0x89d6e=['wkid','?http','sourceXml','1866546QxTAcn','urls','2ijxqfF','sublayers','getImage','length','10IZoflH','2618132ljjWiN','4BQjDUT','value','boundingBoxExtent','projection','replace','6dkxFEJ','requestEncoding','getResolutions','898910bMuTGx','layer','46797xPYTBk','format','style','join','matrixSet','906227uhPgAR','127110SGPHTS','mapIndex','indexOf','getMatrixIds','url','initialExtent','token','tileGrid','EPSG:','1121984hajIWv','origins_'];a56_0x3fbd=function(){return _0x89d6e;};return a56_0x3fbd();}(function(_0x18fa3f,_0x3722ad){const _0x364a63=a56_0x3ecb,_0x26ea0b=_0x18fa3f();while(!![]){try{const _0x169735=parseInt(_0x364a63(0x20c))/0x1*(-parseInt(_0x364a63(0x1fc))/0x2)+parseInt(_0x364a63(0x1ec))/0x3+parseInt(_0x364a63(0x202))/0x4*(-parseInt(_0x364a63(0x20a))/0x5)+-parseInt(_0x364a63(0x207))/0x6*(-parseInt(_0x364a63(0x1eb))/0x7)+parseInt(_0x364a63(0x1f5))/0x8+-parseInt(_0x364a63(0x1fa))/0x9*(parseInt(_0x364a63(0x200))/0xa)+parseInt(_0x364a63(0x201))/0xb;if(_0x169735===_0x3722ad)break;else _0x26ea0b['push'](_0x26ea0b['shift']());}catch(_0x5f11fd){_0x26ea0b['push'](_0x26ea0b['shift']());}}}(a56_0x3fbd,0x1c596));import a56_0x1e9df8 from'ol/layer/Tile';import a56_0x329f06,{optionsFromCapabilities}from'ol/source/WMTS.js';import a56_0x36a993 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';function a56_0x3ecb(_0x256037,_0x1b1642){const _0x3fbd75=a56_0x3fbd();return a56_0x3ecb=function(_0x3ecbe0,_0x4c6082){_0x3ecbe0=_0x3ecbe0-0x1e8;let _0x25e672=_0x3fbd75[_0x3ecbe0];return _0x25e672;},a56_0x3ecb(_0x256037,_0x1b1642);}import{addArgument,getUrlParams}from'../utils/UrlUtil';export default class ArcgisWMTSLayer extends a56_0x1e9df8{constructor(_0x4c4241,_0x36baa2){const _0x3326f5=a56_0x3ecb;var _0x2b8ba9;let _0x483d96='';_0x4c4241[_0x3326f5(0x1fd)]&&_0x4c4241[_0x3326f5(0x1fd)][_0x3326f5(0x1ff)]>0x0&&(_0x483d96=_0x4c4241[_0x3326f5(0x1fd)][_0x3326f5(0x1e9)](','));const _0x33aca9=_0x3326f5(0x1f4)+_0x36baa2[_0x3326f5(0x1f7)];let _0x26f8da=registerProj(_0x33aca9);const _0x45bb1b=optionsFromCapabilities(_0x36baa2[_0x3326f5(0x1f9)],{'layer':(_0x2b8ba9=_0x4c4241[_0x3326f5(0x1fd)])===null||_0x2b8ba9===void 0x0?void 0x0:_0x2b8ba9[0x0],'matrixSet':_0x36baa2['tileMatrixSet'],'format':'image/png'});let _0x3dbe77=_0x45bb1b[_0x3326f5(0x1f3)][_0x3326f5(0x1f6)][0x0];_0x3dbe77[0x0]===0x5a&&_0x3dbe77[0x1]===-0xb4&&(_0x3dbe77=[_0x3dbe77[0x1],_0x3dbe77[0x0]]),super({'opacity':_0x4c4241['opacity'],'zIndex':_0x4c4241[_0x3326f5(0x1ed)],'source':new a56_0x329f06({'urls':_0x45bb1b[_0x3326f5(0x1fb)],'requestEncoding':_0x45bb1b[_0x3326f5(0x208)],'layer':_0x45bb1b[_0x3326f5(0x20b)],'tileLoadFunction':function(_0x433fcb,_0x180ec2){const _0x15ccd3=_0x3326f5,_0x177654=_0x4c4241[_0x15ccd3(0x1f0)]?_0x4c4241[_0x15ccd3(0x1f0)]:'';let _0x193951=getUrlParams(_0x177654);if((_0x193951===null||_0x193951===void 0x0?void 0x0:_0x193951['length'])>0x0)for(let _0x14d87f of _0x193951){_0x180ec2=addArgument(_0x180ec2,_0x14d87f['name'],_0x14d87f[_0x15ccd3(0x203)]);}let _0x3098ca=_0x180ec2[_0x15ccd3(0x1ee)](_0x15ccd3(0x1f8));_0x3098ca!==-0x1?_0x180ec2[_0x15ccd3(0x1ee)](_0x15ccd3(0x1f2))===-0x1&&_0x180ec2[_0x15ccd3(0x1ee)]('tk')===-0x1?_0x433fcb[_0x15ccd3(0x1fe)]()['src']=_0x180ec2[_0x15ccd3(0x206)]('&','?'):_0x433fcb['getImage']()['src']=_0x180ec2:_0x433fcb[_0x15ccd3(0x1fe)]()['src']=_0x180ec2;},'matrixSet':_0x45bb1b[_0x3326f5(0x1ea)],'format':_0x45bb1b[_0x3326f5(0x20d)],'projection':_0x45bb1b['projection'],'tileGrid':new a56_0x36a993({'origin':_0x3dbe77,'resolutions':_0x45bb1b[_0x3326f5(0x1f3)][_0x3326f5(0x209)](),'matrixIds':_0x45bb1b[_0x3326f5(0x1f3)][_0x3326f5(0x1ef)](),'extent':_0x36baa2[_0x3326f5(0x204)]}),'style':_0x36baa2[_0x3326f5(0x1e8)],'wrapX':!![]})}),this['id']=_0x4c4241['id'],this[_0x3326f5(0x1f1)]=_0x36baa2[_0x3326f5(0x204)],this[_0x3326f5(0x205)]=_0x26f8da,this['layerInfo']=_0x4c4241;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a2126,_0x24b13f){const _0x26b891=a57_0x34ce,_0x16ced2=_0x3a2126();while(!![]){try{const _0x120a97=-parseInt(_0x26b891(0x10d))/0x1*(-parseInt(_0x26b891(0x112))/0x2)+-parseInt(_0x26b891(0x116))/0x3*(-parseInt(_0x26b891(0x115))/0x4)+parseInt(_0x26b891(0x10a))/0x5+parseInt(_0x26b891(0x110))/0x6+-parseInt(_0x26b891(0x10b))/0x7+-parseInt(_0x26b891(0x113))/0x8*(-parseInt(_0x26b891(0x123))/0x9)+-parseInt(_0x26b891(0x11d))/0xa;if(_0x120a97===_0x24b13f)break;else _0x16ced2['push'](_0x16ced2['shift']());}catch(_0x3c7142){_0x16ced2['push'](_0x16ced2['shift']());}}}(a57_0x59cf,0x4c7d7));import a57_0x3901aa from'ol/layer/VectorTile';import a57_0x645597 from'ol/source/VectorTile';import a57_0x29281 from'ol/format/MVT';import{registerProj}from'../utils/RegisterProjUtil';import a57_0x2de6d4 from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';function a57_0x59cf(){const _0x388c8d=['4mhLhuT','image/png','url','2327340jDWVOQ','wkid','110210SIkluF','8PZSzbm','getMatrixIds','815944TLpkWB','9GRGCtx','initialExtent','mapIndex','projection','tileGrid','origins_','sourceXml','12791280KxGzJh','sublayers','toString','layerInfo','{y}','application/vnd.mapbox-vector-tile','922779EnhbLd','boundingBoxExtent','length','tileMatrixSet','{x}','EPSG:','WMTS','2112285Wizvik','1069775MVTXSL',':{z}'];a57_0x59cf=function(){return _0x388c8d;};return a57_0x59cf();}function a57_0x34ce(_0x42baf4,_0x3a2ee0){const _0x59cff0=a57_0x59cf();return a57_0x34ce=function(_0x34ce15,_0x16c204){_0x34ce15=_0x34ce15-0x104;let _0x298d08=_0x59cff0[_0x34ce15];return _0x298d08;},a57_0x34ce(_0x42baf4,_0x3a2ee0);}import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a57_0x3901aa{constructor(_0x1b02b6,_0x2fabea){const _0x42bf72=a57_0x34ce;var _0x418de4;let _0xd9cd2a=registerProj('EPSG:'+_0x2fabea[_0x42bf72(0x111)]);const _0x39bc03=optionsFromCapabilities(_0x2fabea[_0x42bf72(0x11c)],{'layer':(_0x418de4=_0x1b02b6[_0x42bf72(0x11e)])===null||_0x418de4===void 0x0?void 0x0:_0x418de4[0x0],'matrixSet':_0x2fabea['tileMatrixSet'],'format':_0x42bf72(0x10e)});let _0x4f384f=_0x1b02b6[_0x42bf72(0x11e)]&&_0x1b02b6['sublayers'][_0x42bf72(0x105)]>0x0?_0x1b02b6[_0x42bf72(0x11e)][0x0]:'';const _0x49f6e7={'REQUEST':'GetTile','SERVICE':_0x42bf72(0x109),'VERSION':'1.0.0','LAYER':_0x4f384f,'STYLE':_0x2fabea['style'][_0x42bf72(0x11f)](),'TILEMATRIX':_0x2fabea[_0x42bf72(0x106)]+_0x42bf72(0x10c),'TILEMATRIXSET':_0x2fabea[_0x42bf72(0x106)][_0x42bf72(0x11f)](),'FORMAT':_0x42bf72(0x122),'TILECOL':_0x42bf72(0x107),'TILEROW':_0x42bf72(0x121)};let _0x126635=_0x1b02b6[_0x42bf72(0x10f)]?_0x1b02b6['url']:'';for(const _0x4886e9 in _0x49f6e7){_0x126635=addArgument(_0x126635,_0x4886e9,_0x49f6e7[_0x4886e9]);}super({'opacity':_0x1b02b6['opacity'],'zIndex':_0x1b02b6[_0x42bf72(0x118)],'declutter':!![],'source':new a57_0x645597({'projection':_0x42bf72(0x108)+_0x2fabea[_0x42bf72(0x111)],'format':new a57_0x29281(),'wrapX':!![],'extent':_0x2fabea['boundingBoxExtent'],'tileGrid':new a57_0x2de6d4({'tileSize':_0x39bc03[_0x42bf72(0x11a)]['tileSizes_'][0x0],'origin':_0x39bc03[_0x42bf72(0x11a)][_0x42bf72(0x11b)][0x0],'resolutions':_0x39bc03['tileGrid']['getResolutions'](),'matrixIds':_0x39bc03[_0x42bf72(0x11a)][_0x42bf72(0x114)]()}),'url':_0x126635})}),this['id']=_0x1b02b6['id'],this[_0x42bf72(0x117)]=_0x2fabea[_0x42bf72(0x104)],this[_0x42bf72(0x119)]=_0xd9cd2a,this[_0x42bf72(0x120)]=_0x1b02b6;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a58_0x3da8(_0x3da16f,_0x10647d){const _0x59ba80=a58_0x59ba();return a58_0x3da8=function(_0x3da812,_0x131646){_0x3da812=_0x3da812-0x132;let _0x34c108=_0x59ba80[_0x3da812];return _0x34c108;},a58_0x3da8(_0x3da16f,_0x10647d);}const a58_0x3c834b=a58_0x3da8;(function(_0x22eaa7,_0x25f822){const _0x62c52c=a58_0x3da8,_0x2a3698=_0x22eaa7();while(!![]){try{const _0x1f2e7a=parseInt(_0x62c52c(0x160))/0x1+parseInt(_0x62c52c(0x15b))/0x2*(-parseInt(_0x62c52c(0x138))/0x3)+parseInt(_0x62c52c(0x163))/0x4*(parseInt(_0x62c52c(0x145))/0x5)+parseInt(_0x62c52c(0x164))/0x6*(parseInt(_0x62c52c(0x155))/0x7)+parseInt(_0x62c52c(0x144))/0x8+-parseInt(_0x62c52c(0x166))/0x9+-parseInt(_0x62c52c(0x15f))/0xa*(parseInt(_0x62c52c(0x14a))/0xb);if(_0x1f2e7a===_0x25f822)break;else _0x2a3698['push'](_0x2a3698['shift']());}catch(_0x29076b){_0x2a3698['push'](_0x2a3698['shift']());}}}(a58_0x59ba,0x7c7fe));import a58_0x29a5fc from'ol/source/Vector';import a58_0x278d21 from'ol/format/GeoJSON';import{Vector as a58_0x2140e8}from'ol/layer';import a58_0x1955bf from'ol/format/WFS';import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a58_0x3016 from'../utils/format/CQL';function a58_0x59ba(){const _0x5df048=['lessThanOrEqualTo','getSource','55504esXIDZ','5499210yvYQwa','EPSG:','2413746GIrJSc','string','json','parseFilter','application/json','and','apply','notEqualTo','url','1363731oHbGep','initExtent','loadFilter','filter','length','sublayers','between','readFeatures','then','catch','read','warn','5347880ArgorM','85HyCdVO','push','removeLoadedExtent','toLowerCase','param','331089qRjRfe','serializeToString','fieldType','type','name','initialExtent','wkid','equalTo','greaterThanOrEqualTo','find','writeGetFeature','7KcgIbh','!==','lessThan','getCode','addFeatures','layerFields','4KPdzga','not','type字段不存在','POST','180DqIEqc','408168vkqViO'];a58_0x59ba=function(){return _0x5df048;};return a58_0x59ba();}import*as a58_0x53bc6f from'ol/format/filter';export default class GeoserverWFSLayer extends a58_0x2140e8{constructor(_0x47436b,_0xd3c854){const _0x959fe1=a58_0x3da8;let _0x1db04c=registerProj(_0x959fe1(0x165)+_0xd3c854[_0x959fe1(0x150)]);const _0x1b28ea=_0xd3c854[_0x959fe1(0x15a)][_0x959fe1(0x153)](_0x4cb027=>_0x4cb027[_0x959fe1(0x14c)]==0x6);super({'zIndex':_0x47436b['mapIndex'],'source':new a58_0x29a5fc({'format':new a58_0x278d21(),'loader':(_0x533c11,_0x3dfd46,_0xedfb9,_0x171b08,_0x89abdf)=>{const _0x2a6985=_0x959fe1;let _0x22ebeb=_0x47436b[_0x2a6985(0x13a)],_0x10e975={'srsName':_0xedfb9[_0x2a6985(0x158)](),'featureTypes':_0x47436b[_0x2a6985(0x13d)],'bbox':_0x533c11,'geometryName':_0x1b28ea?_0x1b28ea[_0x2a6985(0x14e)]:'','outputFormat':_0x2a6985(0x133)};_0x22ebeb&&(typeof _0x22ebeb===_0x2a6985(0x167)?_0x10e975[_0x2a6985(0x13b)]=new a58_0x3016()[_0x2a6985(0x142)](_0x22ebeb):_0x10e975[_0x2a6985(0x13b)]=this[_0x2a6985(0x132)](_0x22ebeb));var _0x19f056=new a58_0x1955bf()[_0x2a6985(0x154)](_0x10e975);let _0x22b276=_0x47436b['url']?_0x47436b[_0x2a6985(0x137)]:'';fetch(_0x22b276,{'method':_0x2a6985(0x15e),'body':new XMLSerializer()[_0x2a6985(0x14b)](_0x19f056)})[_0x2a6985(0x140)](_0x5236fe=>{const _0x13064c=_0x2a6985;return _0x5236fe[_0x13064c(0x168)]();})[_0x2a6985(0x140)](_0x59641f=>{const _0xdd1782=_0x2a6985,_0x5e79ea=new a58_0x278d21()[_0xdd1782(0x13f)](_0x59641f);let _0x1b17db=this[_0xdd1782(0x162)]();_0x1b17db&&_0x1b17db[_0xdd1782(0x159)](_0x5e79ea);if(_0x171b08)_0x171b08(_0x5e79ea);})[_0x2a6985(0x141)](()=>{const _0x5e42c5=_0x2a6985;let _0x1ae43e=this[_0x5e42c5(0x162)]();_0x1ae43e&&_0x1ae43e[_0x5e42c5(0x147)](_0x533c11);if(_0x89abdf)_0x89abdf();});},'strategy':bbox})}),this['id']=_0x47436b['id'],this[_0x959fe1(0x14f)]=_0xd3c854[_0x959fe1(0x139)],this['projection']=_0x1db04c,this['layerInfo']=_0x47436b;}[a58_0x3c834b(0x132)](_0xc1b352){const _0x547534=a58_0x3c834b;if(!_0xc1b352[_0x547534(0x14d)]){console[_0x547534(0x143)](_0x547534(0x15d));return;}if(!_0xc1b352[_0x547534(0x149)]){console['warn']('param字段不存在');return;}let _0x122130=[];switch(_0xc1b352[_0x547534(0x14d)][_0x547534(0x148)]()){case _0x547534(0x134):for(let _0x1c923c=0x0;_0x1c923c<_0xc1b352[_0x547534(0x149)][_0x547534(0x13c)];_0x1c923c++){let _0x4fd5a7=this[_0x547534(0x132)](_0xc1b352[_0x547534(0x149)][_0x1c923c]);_0x122130['push'](_0x4fd5a7);}return a58_0x53bc6f[_0x547534(0x134)][_0x547534(0x135)](null,_0x122130);case'or':for(let _0x5dd972=0x0;_0x5dd972<_0xc1b352[_0x547534(0x149)][_0x547534(0x13c)];_0x5dd972++){let _0x47eb34=this['parseFilter'](_0xc1b352['param'][_0x5dd972]);_0x122130[_0x547534(0x146)](_0x47eb34);}return a58_0x53bc6f['or'][_0x547534(0x135)](null,_0x122130);case _0x547534(0x15c):for(let _0x41971d=0x0;_0x41971d<_0xc1b352[_0x547534(0x149)][_0x547534(0x13c)];_0x41971d++){let _0xfb8064=this['parseFilter'](_0xc1b352[_0x547534(0x149)][_0x41971d]);_0x122130[_0x547534(0x146)](_0xfb8064);}return a58_0x53bc6f['not'][_0x547534(0x135)](null,_0x122130);case'=':return a58_0x53bc6f[_0x547534(0x151)](_0xc1b352[_0x547534(0x149)][0x0],_0xc1b352[_0x547534(0x149)][0x1]);case _0x547534(0x156):return a58_0x53bc6f[_0x547534(0x136)](_0xc1b352[_0x547534(0x149)][0x0],_0xc1b352[_0x547534(0x149)][0x1]);case'>':return a58_0x53bc6f['greaterThan'](_0xc1b352['param'][0x0],_0xc1b352[_0x547534(0x149)][0x1]);case'<':return a58_0x53bc6f[_0x547534(0x157)](_0xc1b352['param'][0x0],_0xc1b352[_0x547534(0x149)][0x1]);case'>=':return a58_0x53bc6f[_0x547534(0x152)](_0xc1b352[_0x547534(0x149)][0x0],_0xc1b352['param'][0x1]);case'<=':return a58_0x53bc6f[_0x547534(0x161)](_0xc1b352[_0x547534(0x149)][0x0],_0xc1b352[_0x547534(0x149)][0x1]);case _0x547534(0x13e):return a58_0x53bc6f['between'](_0xc1b352[_0x547534(0x149)][0x0],_0xc1b352[_0x547534(0x149)][0x1],_0xc1b352[_0x547534(0x149)][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a59_0x3c46(){const _0x59b91b=['opacity','4ZsdbWi','1.1.0','loadFilter','135261HRbhjd','2177786nPnTsm','wkid','342664USRXUM','96FVsnmy','initExtent','10EYCfNr','6GFWbNU','99aWezkO','6429185hKnhzN','join','initialExtent','17521955UDxuZY','sublayers','EPSG:','1071YQbXxA','url','anonymous','CQL_FILTER','128749eugpGu','projection','412FFhdUr'];a59_0x3c46=function(){return _0x59b91b;};return a59_0x3c46();}(function(_0x25eae3,_0x263e61){const _0x4cbd5c=a59_0x1de5,_0x35074a=_0x25eae3();while(!![]){try{const _0x281912=parseInt(_0x4cbd5c(0x7b))/0x1*(-parseInt(_0x4cbd5c(0x7f))/0x2)+-parseInt(_0x4cbd5c(0x77))/0x3*(parseInt(_0x4cbd5c(0x7d))/0x4)+-parseInt(_0x4cbd5c(0x71))/0x5*(parseInt(_0x4cbd5c(0x89))/0x6)+-parseInt(_0x4cbd5c(0x82))/0x7+-parseInt(_0x4cbd5c(0x85))/0x8*(parseInt(_0x4cbd5c(0x70))/0x9)+parseInt(_0x4cbd5c(0x88))/0xa*(parseInt(_0x4cbd5c(0x74))/0xb)+parseInt(_0x4cbd5c(0x86))/0xc*(parseInt(_0x4cbd5c(0x83))/0xd);if(_0x281912===_0x263e61)break;else _0x35074a['push'](_0x35074a['shift']());}catch(_0x363eac){_0x35074a['push'](_0x35074a['shift']());}}}(a59_0x3c46,0xd2919));import{ImageWMS as a59_0x57260b}from'ol/source';function a59_0x1de5(_0xca6691,_0x340c93){const _0x3c464e=a59_0x3c46();return a59_0x1de5=function(_0x1de5da,_0x43d808){_0x1de5da=_0x1de5da-0x70;let _0x2c7d0b=_0x3c464e[_0x1de5da];return _0x2c7d0b;},a59_0x1de5(_0xca6691,_0x340c93);}import{Image as a59_0x404d8d}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMSLayer extends a59_0x404d8d{constructor(_0x3e63bf,_0x59cea6){const _0x36b557=a59_0x1de5;var _0x59b343;let _0x3460dd=registerProj(_0x36b557(0x76)+_0x59cea6[_0x36b557(0x84)]),_0x20059a={'LAYERS':(_0x59b343=_0x3e63bf[_0x36b557(0x75)])===null||_0x59b343===void 0x0?void 0x0:_0x59b343[_0x36b557(0x72)](','),'VERSION':_0x36b557(0x80)};_0x3e63bf['loadFilter']&&(_0x20059a[_0x36b557(0x7a)]=_0x3e63bf[_0x36b557(0x81)]),super({'opacity':_0x3e63bf[_0x36b557(0x7e)],'zIndex':_0x3e63bf['mapIndex'],'source':new a59_0x57260b({'crossOrigin':_0x36b557(0x79),'url':_0x3e63bf[_0x36b557(0x78)],'params':_0x20059a})}),this['id']=_0x3e63bf['id'],this[_0x36b557(0x73)]=_0x59cea6[_0x36b557(0x87)],this[_0x36b557(0x7c)]=_0x3460dd,this['layerInfo']=_0x3e63bf;}['refresh'](){}['setFilter'](_0x30f5a8){var _0x4ab62c;(_0x4ab62c=this['getSource']())===null||_0x4ab62c===void 0x0?void 0x0:_0x4ab62c['updateParams']({'CQL_FILTER':_0x30f5a8});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x404e3f,_0x5d0a33){const _0x3207da=a60_0x1b54,_0x305edd=_0x404e3f();while(!![]){try{const _0x103b2a=parseInt(_0x3207da(0x158))/0x1*(-parseInt(_0x3207da(0x164))/0x2)+-parseInt(_0x3207da(0x159))/0x3+parseInt(_0x3207da(0x15d))/0x4+parseInt(_0x3207da(0x165))/0x5*(-parseInt(_0x3207da(0x163))/0x6)+-parseInt(_0x3207da(0x16d))/0x7+parseInt(_0x3207da(0x15e))/0x8+-parseInt(_0x3207da(0x160))/0x9*(-parseInt(_0x3207da(0x166))/0xa);if(_0x103b2a===_0x5d0a33)break;else _0x305edd['push'](_0x305edd['shift']());}catch(_0x3774bc){_0x305edd['push'](_0x305edd['shift']());}}}(a60_0x2531,0xb1c7b));import a60_0x1baa4f from'ol/layer/Tile';import a60_0x1e9648,{optionsFromCapabilities}from'ol/source/WMTS.js';function a60_0x1b54(_0x21eb33,_0x16fe2d){const _0x253152=a60_0x2531();return a60_0x1b54=function(_0x1b5445,_0x110a8a){_0x1b5445=_0x1b5445-0x158;let _0x32b917=_0x253152[_0x1b5445];return _0x32b917;},a60_0x1b54(_0x21eb33,_0x16fe2d);}import{registerProj}from'../utils/RegisterProjUtil';function a60_0x2531(){const _0x1128d0=['未找到投影信息','wkid','5511164OneIYG','2703392Woeqon','tileMatrixSet','90LndACk','opacity','sourceXml','950778QtkDbS','963466hmRHGc','45zLjjSs','2762710cSqUPP','EPSG:','image/png','initialExtent','layerInfo','mapIndex','解析元数据失败','9716308BQlQEg','1twOtoA','1362882rSpOQw','sublayers'];a60_0x2531=function(){return _0x1128d0;};return a60_0x2531();}export default class GeoserverWMTSLayer extends a60_0x1baa4f{constructor(_0x590922,_0x1d5ea0){const _0x3a5ada=a60_0x1b54;var _0x47a573;const _0x4136fb=_0x3a5ada(0x167)+_0x1d5ea0[_0x3a5ada(0x15c)];let _0x3994cb=registerProj(_0x4136fb);if(!_0x3994cb)throw new Error(_0x3a5ada(0x15b));const _0x2ddf61=optionsFromCapabilities(_0x1d5ea0[_0x3a5ada(0x162)],{'layer':(_0x47a573=_0x590922[_0x3a5ada(0x15a)])===null||_0x47a573===void 0x0?void 0x0:_0x47a573[0x0],'matrixSet':_0x1d5ea0[_0x3a5ada(0x15f)],'format':_0x3a5ada(0x168)});if(!_0x2ddf61)throw new Error(_0x3a5ada(0x16c));super({'opacity':_0x590922[_0x3a5ada(0x161)],'zIndex':_0x590922[_0x3a5ada(0x16b)],'source':new a60_0x1e9648(_0x2ddf61)}),this['id']=_0x590922['id'],this[_0x3a5ada(0x169)]=_0x1d5ea0['boundingBoxExtent'],this['projection']=_0x3994cb,this[_0x3a5ada(0x16a)]=_0x590922;}}
|
package/layers/LayerManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x30c59e=a62_0xe460;(function(_0x8e4112,_0x37903d){const _0x5acc72=a62_0xe460,_0x4f69de=_0x8e4112();while(!![]){try{const _0x4f44c9=parseInt(_0x5acc72(0xa3))/0x1*(parseInt(_0x5acc72(0x99))/0x2)+-parseInt(_0x5acc72(0xa9))/0x3+parseInt(_0x5acc72(0xa8))/0x4+parseInt(_0x5acc72(0xab))/0x5*(parseInt(_0x5acc72(0x9b))/0x6)+-parseInt(_0x5acc72(0xa4))/0x7+-parseInt(_0x5acc72(0x9c))/0x8*(parseInt(_0x5acc72(0xa2))/0x9)+-parseInt(_0x5acc72(0xaa))/0xa;if(_0x4f44c9===_0x37903d)break;else _0x4f69de['push'](_0x4f69de['shift']());}catch(_0xfb9140){_0x4f69de['push'](_0x4f69de['shift']());}}}(a62_0x2bd1,0xcc92d));import a62_0x155c08 from'./ArcgisDynamicLayer';import a62_0x241553 from'./ArcgisFeatureLayer';import a62_0x696b43 from'./TDTLayer';import{getDynamicLayerInfo,getWMTSLayerCapabilities,getFeatureLayerInfo,getWMSLayerCapabilities,getWFSLayerCapabilities}from'../capabilities';import a62_0x17302f from'./ArcgisTileLayer';function a62_0xe460(_0x2da117,_0x38b91a){const _0x2bd1ee=a62_0x2bd1();return a62_0xe460=function(_0xe46076,_0x46c6d2){_0xe46076=_0xe46076-0x99;let _0x133983=_0x2bd1ee[_0xe46076];return _0x133983;},a62_0xe460(_0x2da117,_0x38b91a);}import a62_0x25af95 from'./GeoserverWMSLayer';import a62_0x2e8ab1 from'./GeoserverWMTSLayer';function a62_0x2bd1(){const _0xa323a2=['3012DXJwys','getArcgisWMTSLayer','39342pPGKwy','1000BduYCD','getDynamicLayer','getTileLayer','sublayers','getGeoserverVectorTileLayer','getArcgisFeatureLayer','7740RWfpWa','843KBncgC','90993mdwLpD','getTDTLayer','getArcgisTileLayer','url','3077364BFoRuZ','924042rzYkYW','11134170wHJpJf','260RvuMnd','getGeoserverWmsLayer','getGeoserverWMTSLayer','getGeoserverWFSLayer'];a62_0x2bd1=function(){return _0xa323a2;};return a62_0x2bd1();}import a62_0x5b9b2c from'./ArcgisWMSLayer';import a62_0x21dd2d from'./ArcgisWMTSLayer';import a62_0x207f92 from'./GeoserverWFSLayer';import a62_0x125ff0 from'./GeoserverVectorTile';import a62_0xaacc86 from'./MapTileLayer';export default class LayerManagement{static async[a62_0x30c59e(0x9d)](_0x5a5f5d){const _0x5b545=a62_0x30c59e,_0x5d2649=await getDynamicLayerInfo(_0x5a5f5d[_0x5b545(0xa7)]?_0x5a5f5d[_0x5b545(0xa7)]:'');let _0x3443ba=new a62_0x155c08(_0x5a5f5d,_0x5d2649);return _0x3443ba;}static async[a62_0x30c59e(0xa6)](_0x5dca4c){const _0x35e6ec=a62_0x30c59e,_0x2a07f7=await getDynamicLayerInfo(_0x5dca4c['url']?_0x5dca4c[_0x35e6ec(0xa7)]:'');let _0x26bdca=new a62_0x17302f(_0x5dca4c,_0x2a07f7);return _0x26bdca;}static async[a62_0x30c59e(0xa1)](_0x1c8c14){const _0x4d2cd7=a62_0x30c59e,_0xe30feb=await getDynamicLayerInfo(_0x1c8c14[_0x4d2cd7(0xa7)]?_0x1c8c14['url']:'');let _0x1f5027=[];if(_0x1c8c14[_0x4d2cd7(0x9f)])for(let _0x3cb27e=0x0;_0x3cb27e<_0x1c8c14['sublayers']['length'];_0x3cb27e++){const _0x4c1565=_0x1c8c14[_0x4d2cd7(0x9f)][_0x3cb27e];_0x1f5027['push'](await getFeatureLayerInfo(_0x1c8c14[_0x4d2cd7(0xa7)]?_0x1c8c14[_0x4d2cd7(0xa7)]:'',_0x4c1565));}let _0x28ef7f=new a62_0x241553(_0x1c8c14,_0xe30feb,_0x1f5027);return _0x28ef7f;}static async['getArcgisWmsLayer'](_0x25b18f){const _0x2e3159=a62_0x30c59e;var _0x11a354;const _0x3c0210=(_0x11a354=_0x25b18f[_0x2e3159(0x9f)])===null||_0x11a354===void 0x0?void 0x0:_0x11a354[0x0],_0x40c32a=await getWMSLayerCapabilities(_0x25b18f[_0x2e3159(0xa7)]?_0x25b18f[_0x2e3159(0xa7)]:'',_0x3c0210==null?'':_0x3c0210);let _0x1a0873=new a62_0x5b9b2c(_0x25b18f,_0x40c32a);return _0x1a0873;}static async[a62_0x30c59e(0x9a)](_0x15f86e){const _0x12f64d=a62_0x30c59e;var _0x485184;const _0x281233=(_0x485184=_0x15f86e['sublayers'])===null||_0x485184===void 0x0?void 0x0:_0x485184[0x0],_0x1fca65=await getWMTSLayerCapabilities(_0x15f86e[_0x12f64d(0xa7)]?_0x15f86e['url']:'',_0x281233==null?'':_0x281233);let _0x4ec463=new a62_0x21dd2d(_0x15f86e,_0x1fca65);return _0x4ec463;}static async[a62_0x30c59e(0xac)](_0x2b631f){const _0x3ed5cb=a62_0x30c59e;var _0x414fb9;const _0x3062b4=(_0x414fb9=_0x2b631f['sublayers'])===null||_0x414fb9===void 0x0?void 0x0:_0x414fb9[0x0],_0x415028=await getWMSLayerCapabilities(_0x2b631f['url']?_0x2b631f[_0x3ed5cb(0xa7)]:'',_0x3062b4==null?'':_0x3062b4);let _0x34f568=new a62_0x25af95(_0x2b631f,_0x415028);return _0x34f568;}static async[a62_0x30c59e(0xad)](_0x248833){const _0x2312cc=a62_0x30c59e;var _0x5ae5db;const _0x9ff5b7=(_0x5ae5db=_0x248833[_0x2312cc(0x9f)])===null||_0x5ae5db===void 0x0?void 0x0:_0x5ae5db[0x0],_0x2049c5=await getWMTSLayerCapabilities(_0x248833[_0x2312cc(0xa7)]?_0x248833[_0x2312cc(0xa7)]:'',_0x9ff5b7==null?'':_0x9ff5b7);let _0x1796f9=new a62_0x2e8ab1(_0x248833,_0x2049c5);return _0x1796f9;}static async[a62_0x30c59e(0xae)](_0x344c82){const _0x4cb2d0=a62_0x30c59e;var _0x38464d;const _0x28c933=(_0x38464d=_0x344c82[_0x4cb2d0(0x9f)])===null||_0x38464d===void 0x0?void 0x0:_0x38464d[0x0],_0x400a57=await getWFSLayerCapabilities(_0x344c82['url']?_0x344c82['url']:'',_0x28c933==null?'':_0x28c933);let _0x545971=new a62_0x207f92(_0x344c82,_0x400a57);return _0x545971;}static async[a62_0x30c59e(0xa0)](_0x591a99){const _0x15c37e=a62_0x30c59e;var _0x45088b;const _0x3586c8=(_0x45088b=_0x591a99[_0x15c37e(0x9f)])===null||_0x45088b===void 0x0?void 0x0:_0x45088b[0x0],_0x3912ee=await getWMTSLayerCapabilities(_0x591a99[_0x15c37e(0xa7)]?_0x591a99[_0x15c37e(0xa7)]:'',_0x3586c8==null?'':_0x3586c8);let _0x4cd025=new a62_0x125ff0(_0x591a99,_0x3912ee);return _0x4cd025;}static async[a62_0x30c59e(0xa5)](_0x171e69){const _0x100a0e=a62_0x30c59e;var _0x545207;const _0x46feb5=(_0x545207=_0x171e69[_0x100a0e(0x9f)])===null||_0x545207===void 0x0?void 0x0:_0x545207[0x0],_0x1f6576=await getWMTSLayerCapabilities(_0x171e69['url']?_0x171e69['url']:'',_0x46feb5==null?'':_0x46feb5);let _0x1e4707=new a62_0x696b43(_0x171e69,_0x1f6576);return _0x1e4707;}static async[a62_0x30c59e(0x9e)](_0x4671ac){let _0xefc607=new a62_0xaacc86(_0x4671ac);return _0xefc607;}}
|
package/layers/MapTileLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d5726,_0x15b50d){var _0x198861=a63_0x2a8c,_0x53a102=_0x3d5726();while(!![]){try{var _0x421b5a=parseInt(_0x198861(0xb1))/0x1+-parseInt(_0x198861(0xb6))/0x2+parseInt(_0x198861(0xba))/0x3+parseInt(_0x198861(0xb7))/0x4*(-parseInt(_0x198861(0xb4))/0x5)+-parseInt(_0x198861(0xb8))/0x6+parseInt(_0x198861(0xaf))/0x7+-parseInt(_0x198861(0xb2))/0x8*(-parseInt(_0x198861(0xb0))/0x9);if(_0x421b5a===_0x15b50d)break;else _0x53a102['push'](_0x53a102['shift']());}catch(_0x52e227){_0x53a102['push'](_0x53a102['shift']());}}}(a63_0x20bd,0xd6c6c));import a63_0x3ef497 from'ol/layer/Tile';import{XYZ as a63_0x3d86c6}from'ol/source';function a63_0x20bd(){var _0x16a6f2=['opacity','996915ICPOSD','projection','7748972bfNjli','569826ozodXN','277706dPXwBX','168mKaUPt','layerInfo','5JofXCu','mapIndex','263364cbVyzZ','5774532sEzgjX','3549372TbVaxh'];a63_0x20bd=function(){return _0x16a6f2;};return a63_0x20bd();}function a63_0x2a8c(_0x348e5a,_0x4c4a31){var _0x20bd1c=a63_0x20bd();return a63_0x2a8c=function(_0x2a8c62,_0x5a3dd8){_0x2a8c62=_0x2a8c62-0xae;var _0x2633a4=_0x20bd1c[_0x2a8c62];return _0x2633a4;},a63_0x2a8c(_0x348e5a,_0x4c4a31);}export default class MapTileLayer extends a63_0x3ef497{constructor(_0x2b0471){var _0x317c74=a63_0x2a8c;super({'opacity':_0x2b0471[_0x317c74(0xb9)],'zIndex':_0x2b0471[_0x317c74(0xb5)],'source':new a63_0x3d86c6({'url':_0x2b0471['url']})}),this['id']=_0x2b0471['id'],this['initialExtent']=[],this[_0x317c74(0xae)]=null,this[_0x317c74(0xb3)]=_0x2b0471;}}
|
package/layers/TDTLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x71891e,_0xbf0a39){const _0x378b5a=a64_0x2ce6,_0x5cc53a=_0x71891e();while(!![]){try{const _0xb9b134=parseInt(_0x378b5a(0x1f9))/0x1*(parseInt(_0x378b5a(0x1fb))/0x2)+parseInt(_0x378b5a(0x1f4))/0x3*(-parseInt(_0x378b5a(0x1f8))/0x4)+-parseInt(_0x378b5a(0x1eb))/0x5*(parseInt(_0x378b5a(0x1f6))/0x6)+-parseInt(_0x378b5a(0x200))/0x7*(-parseInt(_0x378b5a(0x1ed))/0x8)+parseInt(_0x378b5a(0x1ff))/0x9+-parseInt(_0x378b5a(0x1ec))/0xa+-parseInt(_0x378b5a(0x1ee))/0xb;if(_0xb9b134===_0xbf0a39)break;else _0x5cc53a['push'](_0x5cc53a['shift']());}catch(_0x16966d){_0x5cc53a['push'](_0x5cc53a['shift']());}}}(a64_0x5fa0,0x1f287));function a64_0x2ce6(_0x1e91bf,_0x5a518c){const _0x5fa037=a64_0x5fa0();return a64_0x2ce6=function(_0x2ce65c,_0x3e3170){_0x2ce65c=_0x2ce65c-0x1e9;let _0x3a02f8=_0x5fa037[_0x2ce65c];return _0x3a02f8;},a64_0x2ce6(_0x1e91bf,_0x5a518c);}import a64_0x43d516 from'ol/layer/Tile';function a64_0x5fa0(){const _0x21bb93=['sublayers','url','128367hUftKY','1502011xtoEtm','opacity','EPSG:4490','boundingBoxExtent','5DqCfEB','38610uPodMJ','8SkPfWz','419188jQXyIq','pow','initialExtent','mapIndex','1.0.0','layerInfo','3pFZrwx','style','191418unlwzF','projection','669076FKiYct','34982bViHMO','join','8Hppmbe','format'];a64_0x5fa0=function(){return _0x21bb93;};return a64_0x5fa0();}import{WMTS as a64_0x41d70e}from'ol/source';import a64_0x198d19 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{getWidth,getTopLeft}from'ol/extent';export default class TDTLayer extends a64_0x43d516{constructor(_0x5d5176,_0x1b49c8){const _0x9032a4=a64_0x2ce6;let _0x5b8035='';_0x5d5176[_0x9032a4(0x1fd)]&&_0x5d5176[_0x9032a4(0x1fd)]['length']>0x0&&(_0x5b8035=_0x5d5176[_0x9032a4(0x1fd)][_0x9032a4(0x1fa)](','));const _0x243cb0=_0x9032a4(0x1e9);let _0x3e9f8c=registerProj(_0x243cb0);const _0x31631b=[],_0x2d53a2=[];for(let _0x149ed8=0x1;_0x149ed8<0x13;_0x149ed8++){_0x31631b[_0x149ed8]=getWidth(_0x1b49c8[_0x9032a4(0x1ea)])/(0x100*Math[_0x9032a4(0x1ef)](0x2,_0x149ed8)),_0x2d53a2[_0x149ed8]=_0x149ed8+'';}super({'opacity':_0x5d5176[_0x9032a4(0x201)],'zIndex':_0x5d5176[_0x9032a4(0x1f1)],'source':new a64_0x41d70e({'style':_0x1b49c8[_0x9032a4(0x1f5)],'url':_0x5d5176[_0x9032a4(0x1fe)],'tileGrid':new a64_0x198d19({'origin':getTopLeft(_0x1b49c8[_0x9032a4(0x1ea)]),'resolutions':_0x31631b,'matrixIds':_0x2d53a2}),'layer':_0x5b8035,'matrixSet':_0x1b49c8['tileMatrixSet'],'version':_0x9032a4(0x1f2),'format':_0x1b49c8[_0x9032a4(0x1fc)][0x0],'projection':_0x243cb0,'requestEncoding':'KVP'})}),this['id']=_0x5d5176['id'],this[_0x9032a4(0x1f0)]=_0x1b49c8[_0x9032a4(0x1ea)],this[_0x9032a4(0x1f7)]=_0x3e9f8c,this[_0x9032a4(0x1f3)]=_0x5d5176;}}
|
package/mapView/Map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0x36d1d0=a65_0x6093;(function(_0x3bf055,_0x20c9ce){const _0x199a35=a65_0x6093,_0x596cf7=_0x3bf055();while(!![]){try{const _0x2d7288=-parseInt(_0x199a35(0x1ca))/0x1+parseInt(_0x199a35(0x1d4))/0x2+-parseInt(_0x199a35(0x1dd))/0x3*(parseInt(_0x199a35(0x1f6))/0x4)+-parseInt(_0x199a35(0x1fa))/0x5+parseInt(_0x199a35(0x1a5))/0x6*(parseInt(_0x199a35(0x1c9))/0x7)+-parseInt(_0x199a35(0x1be))/0x8+parseInt(_0x199a35(0x203))/0x9;if(_0x2d7288===_0x20c9ce)break;else _0x596cf7['push'](_0x596cf7['shift']());}catch(_0x5a697a){_0x596cf7['push'](_0x596cf7['shift']());}}}(a65_0x58a2,0xb8ddb));import'ol/ol.css';import'../assets/main.css';import a65_0x104943 from'ol/Map';import a65_0x4cfa0e from'ol/events/Event';import{defaults as a65_0x4ef42d}from'ol/control';import{registerProj}from'../utils/RegisterProjUtil';import{transformExtent}from'ol/proj';import a65_0x18ed61 from'../layers/LayerManager';function a65_0x6093(_0x301091,_0x466a7e){const _0x58a27d=a65_0x58a2();return a65_0x6093=function(_0x609373,_0x117f9d){_0x609373=_0x609373-0x195;let _0x2366e3=_0x58a27d[_0x609373];return _0x2366e3;},a65_0x6093(_0x301091,_0x466a7e);}import a65_0x250f24 from'ol/layer/Vector';import a65_0x19a38d from'ol/source/Vector';import a65_0x32065f from'../controls/ControlManager';import a65_0x19cb36 from'../entity/Feature';import a65_0x41f7ea from'../interaction/InteractionManager';import a65_0x2bd745 from'./View';import{selectFeaturesByGeo}from'../utils/tasks';import{expandExtent,fromWKT,fromWKTs,union}from'../utils/GeometryUtil';import a65_0x31c58a from'../feature/FeatureManager';import{calculateResolution}from'../utils/ResolutionUtil';import{getStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle}from'../style/StyleManager';function a65_0x58a2(){const _0x455ff4=['addMapLayers','getSize','flashGeometrys','constrainResolution','getLineTempLayer','pointTempLayer','center','projection','sortTemLayer','remove','getMetersPerUnit','getTDTLayer','arcgis-dynamic','add','layerType','MultiLineString','controlManager','getLayersByIds','setProperties','arcgis-wms','layerIds','24KdBMns','insertAt','Polygon','interactionManager','getZIndex','maxResolution','layerInfo','getResolution','fitFilterByLayerTag','layerId','fitLayer','getLayerById','minResolution','fit','maxScale','lineTempLayer','setMaxResolution','getProjection','length','filter','getArcgisFeatureLayer','arcgis-wmts','getLayerByLayerTag','getSource','removeLayer','2266752CqrKCr','tag','locationWKT','rgba(255,\x200,\x200,\x200.2)','changelayer','layerTag','oncontextmenu','push','Point','getArcgisWmsLayer','tile','416192LwUjYW','109323SwHAow','getPolygonTempLayer','zoom','MultiPolygon','getArray','addMapLayer','initialExtent','GeometryCollection','getPointTempLayer','暂不支持【','2061622CGwyyK','locationGeometrys','getLength','setMinResolution','maxZoom','getType','setProjection','getArcgisWMTSLayer','getGeometry','454347kpHrwh','getGeoserverVectorTileLayer','minZoom','getElementById','transform','setStyle','setGeometry','minScale','addWKT','geoserver-wmts','refresh','EPSG:4490','setCenter','getCode','arcgis-tile','selectIndex','fitLayerById','getGeoserverWMTSLayer','locationGeometry','getView','polygonTempLayer','includes','MultiPoint','removeLayerById','getVisible','32HjxDPQ','getDynamicLayer','dispatchEvent','LineString','5155730rAMFud','getLayers','getTempLayerByGeoType','tempLayer','resetViewProjection','addLayer','getGeoserverWmsLayer','changetype','extent','19115829rLSkkn','getExtent','setResolution','getMinZoom','getCoordinates','forEach','getTempLayerById','all','addFeatures'];a65_0x58a2=function(){return _0x455ff4;};return a65_0x58a2();}export class ChangeLayerEvent extends a65_0x4cfa0e{constructor(_0x30bced,_0x3f58b0,_0x498569){const _0x196bb0=a65_0x6093;super(_0x30bced),this[_0x196bb0(0x1a4)]=_0x3f58b0,this[_0x196bb0(0x201)]=_0x498569;}}export default class OLMap extends a65_0x104943{constructor(_0x1dc43d,_0x3b361d,_0x28b1bc){const _0x24d4b5=a65_0x6093;_0x3b361d=_0x3b361d?_0x3b361d:{'projection':0x118a,'center':[117.22718,31.820386],'minZoom':0x0,'maxZoom':0x1c,'constrainResolution':![],'zoom':0xa};const _0x37cb93=_0x3b361d[_0x24d4b5(0x197)]?'EPSG:'+_0x3b361d[_0x24d4b5(0x197)]:_0x24d4b5(0x1e8);_0x3b361d[_0x24d4b5(0x1cc)]=_0x3b361d[_0x24d4b5(0x1cc)]?_0x3b361d[_0x24d4b5(0x1cc)]:0xa,_0x3b361d['minZoom']=_0x3b361d[_0x24d4b5(0x1df)]?_0x3b361d[_0x24d4b5(0x1df)]:0x0,_0x3b361d['maxZoom']=_0x3b361d[_0x24d4b5(0x1d8)]?_0x3b361d[_0x24d4b5(0x1d8)]:0x1c,_0x3b361d['constrainResolution']=_0x3b361d['constrainResolution']?_0x3b361d['constrainResolution']:![],_0x3b361d[_0x24d4b5(0x196)]=_0x3b361d[_0x24d4b5(0x196)]?_0x3b361d[_0x24d4b5(0x196)]:[117.22718,31.820386],registerProj(_0x37cb93);const _0x1ded6a={'target':_0x1dc43d,'view':_0x28b1bc?_0x28b1bc:new a65_0x2bd745({'center':_0x3b361d[_0x24d4b5(0x196)],'zoom':_0x3b361d[_0x24d4b5(0x1cc)],'projection':_0x37cb93,'minZoom':_0x3b361d[_0x24d4b5(0x1df)],'maxZoom':_0x3b361d[_0x24d4b5(0x1d8)],'minResolution':_0x3b361d[_0x24d4b5(0x1b1)],'maxResolution':_0x3b361d[_0x24d4b5(0x1aa)],'constrainResolution':_0x3b361d[_0x24d4b5(0x20f)]}),'controls':a65_0x4ef42d({'zoom':![]})};super(_0x1ded6a);_0x3b361d[_0x24d4b5(0x202)]&&this['getView']()[_0x24d4b5(0x1b2)](_0x3b361d['extent']);const _0xe7bfc5=this['getTarget']();if(_0xe7bfc5 instanceof HTMLElement)_0xe7bfc5[_0x24d4b5(0x1c4)]=function(_0x10a7bd){return![];};else{const _0x4b3857=document[_0x24d4b5(0x1e0)](_0xe7bfc5);_0x4b3857&&(_0x4b3857[_0x24d4b5(0x1c4)]=function(_0xebefcc){return![];});}this[_0x24d4b5(0x1a8)]=new a65_0x41f7ea(this),this[_0x24d4b5(0x1a0)]=new a65_0x32065f(this),this['_options']=_0x3b361d;}[a65_0x36d1d0(0x1f0)](){const _0x18c91d=a65_0x36d1d0;return super[_0x18c91d(0x1f0)]();}[a65_0x36d1d0(0x1e7)](){const _0x378796=a65_0x36d1d0;let _0x305140=this[_0x378796(0x1f0)]()[_0x378796(0x1ac)]();_0x305140&&this[_0x378796(0x1f0)]()[_0x378796(0x205)](_0x305140-1e-11);}[a65_0x36d1d0(0x1af)](_0x1e8af8){const _0x5390c4=a65_0x36d1d0;var _0x355e44;this[_0x5390c4(0x1f0)]()['fit'](transformExtent(_0x1e8af8[_0x5390c4(0x1d0)],(_0x355e44=_0x1e8af8['projection'])===null||_0x355e44===void 0x0?void 0x0:_0x355e44[_0x5390c4(0x1ea)](),this[_0x5390c4(0x1f0)]()[_0x5390c4(0x1b6)]()[_0x5390c4(0x1ea)]()));}[a65_0x36d1d0(0x1ed)](_0x3b5bd2){const _0x556712=a65_0x36d1d0;let _0x10b373=this[_0x556712(0x1b0)](_0x3b5bd2);_0x10b373&&this[_0x556712(0x1af)](_0x10b373);}async[a65_0x36d1d0(0x1ad)](_0x70a5a,_0x3b3877,_0x3fcaa1=![],_0x232242){const _0x208367=a65_0x36d1d0;var _0x493312;let _0x3a27ed=this[_0x208367(0x1bb)](_0x70a5a);if(!_0x3a27ed||!_0x3a27ed[_0x208367(0x1ab)])return;const _0x6d6e0c=_0x3a27ed[_0x208367(0x1ab)];if(_0x3a27ed[_0x208367(0x1f5)]()==![]||!_0x3a27ed||!_0x6d6e0c['url']||!_0x6d6e0c['selectIndex'])return;const _0x193705=this[_0x208367(0x1f0)]()[_0x208367(0x1ac)]();let _0x543f4f=await selectFeaturesByGeo(undefined,undefined,_0x6d6e0c['url'],_0x6d6e0c[_0x208367(0x1ec)],_0x6d6e0c[_0x208367(0x19e)],_0x3b3877,_0x193705),_0x2d4985=[];if(_0x543f4f[_0x208367(0x1b7)]>0x0){_0x2d4985=_0x543f4f['map'](_0x5c0d55=>_0x5c0d55['getGeometry']());_0x2d4985&&_0x2d4985[_0x208367(0x1b7)]>0x0&&this[_0x208367(0x1d5)](_0x2d4985,undefined,1.2,!![]);let _0x458019=this[_0x208367(0x1cb)](),_0x42f912=getSelectPolygonStyle();switch((_0x493312=_0x543f4f[0x0][_0x208367(0x1dc)]())===null||_0x493312===void 0x0?void 0x0:_0x493312[_0x208367(0x1d9)]()){case _0x208367(0x1c6):case _0x208367(0x1f3):_0x458019=this[_0x208367(0x1d2)](),_0x42f912=getSelectPointStyle();break;case'LineString':case _0x208367(0x19f):_0x458019=this[_0x208367(0x210)](),_0x42f912=getSelectLineStyle();break;default:break;}const _0x1e4a19=_0x458019['getSource']();_0x1e4a19&&_0x3fcaa1&&(_0x543f4f['forEach'](_0x3f8982=>{const _0x4b40cd=_0x208367;_0x3f8982[_0x4b40cd(0x1ae)]=_0x6d6e0c['id'],_0x3f8982['isSelected']=!![],_0x3f8982[_0x4b40cd(0x1bf)]=_0x232242,_0x3f8982[_0x4b40cd(0x1fd)]=_0x458019,_0x3f8982[_0x4b40cd(0x1e2)](_0x42f912);}),_0x1e4a19[_0x208367(0x20b)](_0x543f4f));}}async[a65_0x36d1d0(0x1cf)](_0x5503d3){const _0x5aa988=a65_0x36d1d0;let _0x1413da;switch(_0x5503d3[_0x5aa988(0x19e)]){case'arcgis-feature':_0x1413da=await a65_0x18ed61[_0x5aa988(0x1b9)](_0x5503d3);break;case _0x5aa988(0x19c):_0x1413da=await a65_0x18ed61[_0x5aa988(0x1f7)](_0x5503d3);break;case _0x5aa988(0x1eb):_0x1413da=await a65_0x18ed61['getArcgisTileLayer'](_0x5503d3);break;case _0x5aa988(0x1a3):_0x1413da=await a65_0x18ed61[_0x5aa988(0x1c7)](_0x5503d3);break;case _0x5aa988(0x1ba):_0x1413da=await a65_0x18ed61[_0x5aa988(0x1db)](_0x5503d3);break;case'geoserver-wms':_0x1413da=await a65_0x18ed61[_0x5aa988(0x200)](_0x5503d3);break;case'geoserver-wfs':_0x1413da=await a65_0x18ed61['getGeoserverWFSLayer'](_0x5503d3);break;case _0x5aa988(0x1e6):_0x1413da=await a65_0x18ed61[_0x5aa988(0x1ee)](_0x5503d3);break;case'geoserver-vector-tile':_0x1413da=await a65_0x18ed61[_0x5aa988(0x1de)](_0x5503d3);break;case'tdt-c':_0x1413da=await a65_0x18ed61[_0x5aa988(0x19b)](_0x5503d3);break;case _0x5aa988(0x1c8):_0x1413da=await a65_0x18ed61['getTileLayer'](_0x5503d3);break;default:throw new Error(_0x5aa988(0x1d3)+_0x5503d3[_0x5aa988(0x19e)]+'】服务类型');}return this[_0x5aa988(0x1ff)](_0x1413da),this['dispatchEvent'](new ChangeLayerEvent(_0x5aa988(0x1c2),[_0x5503d3['id']],_0x5aa988(0x19d))),_0x1413da;}async[a65_0x36d1d0(0x20c)](_0x22f3e3){const _0x4238f6=a65_0x36d1d0;let _0x15c4b1=[];const _0x5915a1=[];for(let _0x43a022=0x0;_0x43a022<_0x22f3e3['length'];_0x43a022++){const _0x51dcf5=_0x22f3e3[_0x43a022];_0x5915a1[_0x4238f6(0x1c5)](_0x51dcf5['id']),_0x15c4b1[_0x4238f6(0x1c5)](this[_0x4238f6(0x1cf)](_0x51dcf5));}const _0xded665=await Promise[_0x4238f6(0x20a)](_0x15c4b1);return this[_0x4238f6(0x1f8)](new ChangeLayerEvent(_0x4238f6(0x1c2),_0x5915a1,_0x4238f6(0x19d))),_0xded665;}[a65_0x36d1d0(0x1ff)](_0x327c2b,_0x52219e=![]){const _0xcd2b4f=a65_0x36d1d0,_0x134205=_0x327c2b,_0x9527f3=this['getLayerById'](_0x134205['id']);if(_0x9527f3==null){const _0x16627a=_0x134205[_0xcd2b4f(0x1ab)]==undefined||_0x134205[_0xcd2b4f(0x1ab)][_0xcd2b4f(0x1e4)]==undefined||_0x134205[_0xcd2b4f(0x1ab)][_0xcd2b4f(0x1e4)]<0x0?undefined:calculateResolution(_0x134205['layerInfo']['minScale'],this[_0xcd2b4f(0x1f0)]()[_0xcd2b4f(0x1b6)]()['getMetersPerUnit']()||0x0);_0x327c2b[_0xcd2b4f(0x1d7)](_0x16627a);const _0x5e5b6b=_0x134205['layerInfo']==undefined||_0x134205[_0xcd2b4f(0x1ab)]['maxScale']==undefined||_0x134205['layerInfo'][_0xcd2b4f(0x1b3)]<0x0?undefined:calculateResolution(_0x134205[_0xcd2b4f(0x1ab)]['maxScale'],this[_0xcd2b4f(0x1f0)]()[_0xcd2b4f(0x1b6)]()[_0xcd2b4f(0x19a)]()||0x0);_0x327c2b[_0xcd2b4f(0x1b5)](_0x5e5b6b);const _0x4e0b9a=this[_0xcd2b4f(0x1fb)]()[_0xcd2b4f(0x1ce)]()[_0xcd2b4f(0x1b7)];if(!this['_options']['projection']&&_0x4e0b9a==0x0&&_0x134205['projection']&&_0x134205[_0xcd2b4f(0x197)][_0xcd2b4f(0x1ea)]()!=this[_0xcd2b4f(0x1f0)]()['getProjection']()[_0xcd2b4f(0x1ea)]()){}let _0x26a2f3=_0x327c2b[_0xcd2b4f(0x1a9)]();_0x26a2f3!=undefined&&_0x26a2f3>_0x4e0b9a&&(_0x26a2f3=_0x4e0b9a),this[_0xcd2b4f(0x1fb)]()[_0xcd2b4f(0x1a6)](_0x26a2f3==undefined?_0x4e0b9a:_0x26a2f3,_0x327c2b),_0x52219e&&this[_0xcd2b4f(0x1af)](_0x134205);}}[a65_0x36d1d0(0x1f4)](_0x10f218){const _0x342c47=a65_0x36d1d0,_0x42e057=this[_0x342c47(0x1b0)](_0x10f218);_0x42e057&&(this[_0x342c47(0x1bd)](_0x42e057),this[_0x342c47(0x1f8)](new ChangeLayerEvent(_0x342c47(0x1c2),[_0x10f218],_0x342c47(0x199))));}['removeLayerByIds'](_0x2f7dab){const _0x114197=a65_0x36d1d0,_0x2316c8=this[_0x114197(0x1a1)](_0x2f7dab);_0x2316c8&&_0x2316c8['length']>0x0&&(_0x2316c8[_0x114197(0x208)](_0x24d6fa=>{this['removeLayer'](_0x24d6fa);}),this[_0x114197(0x1f8)](new ChangeLayerEvent('changelayer',_0x2f7dab,'remove')));}[a65_0x36d1d0(0x1b0)](_0x475a79){const _0x5bcea2=a65_0x36d1d0;let _0x55b275,_0x26e7ea=this['getLayers']()[_0x5bcea2(0x1ce)]();for(let _0x111483=0x0;_0x111483<_0x26e7ea[_0x5bcea2(0x1b7)];_0x111483++){let _0x198d8a=_0x26e7ea[_0x111483]['id'];if(_0x475a79==_0x198d8a){_0x55b275=_0x26e7ea[_0x111483];break;}}return _0x55b275;}[a65_0x36d1d0(0x1bb)](_0x14b88b){const _0x1a30be=a65_0x36d1d0;let _0x3deb39,_0x590899=this[_0x1a30be(0x1fb)]()[_0x1a30be(0x1ce)]();for(let _0x2b0661=0x0;_0x2b0661<_0x590899[_0x1a30be(0x1b7)];_0x2b0661++){const _0x5cac48=_0x590899[_0x2b0661][_0x1a30be(0x1ab)];if(!_0x5cac48)continue;let _0x43f57a=_0x5cac48[_0x1a30be(0x1c3)];if(_0x43f57a==_0x14b88b){_0x3deb39=_0x590899[_0x2b0661];break;}}return _0x3deb39;}[a65_0x36d1d0(0x1a1)](_0x155091){const _0x25ff4c=a65_0x36d1d0;let _0x9b78a8=this[_0x25ff4c(0x1fb)]()[_0x25ff4c(0x1ce)]();return _0x9b78a8[_0x25ff4c(0x1b8)](_0x2bcb6c=>_0x155091[_0x25ff4c(0x1f2)](_0x2bcb6c['id']));}[a65_0x36d1d0(0x209)](_0x2cb3d6){const _0x1c1ac5=a65_0x36d1d0;let _0x18080b,_0x55056d=this[_0x1c1ac5(0x1fb)]()[_0x1c1ac5(0x1ce)]();for(let _0x588d20=0x0;_0x588d20<_0x55056d[_0x1c1ac5(0x1b7)];_0x588d20++){const _0x175bfa=_0x55056d[_0x588d20];if(_0x175bfa['id']===_0x2cb3d6){_0x18080b=_0x175bfa;break;}}if(!_0x18080b){_0x18080b=new a65_0x250f24({'zIndex':0x270f,'source':new a65_0x19a38d()}),_0x18080b['id']=_0x2cb3d6;const _0x414916=this[_0x1c1ac5(0x1fb)]()[_0x1c1ac5(0x1d6)]();switch(_0x2cb3d6){case _0x1c1ac5(0x1b4):this[_0x1c1ac5(0x1fb)]()[_0x1c1ac5(0x1a6)](_0x414916-0x1>-0x1?_0x414916-0x1:0x0,_0x18080b);break;case'polygonTempLayer':this[_0x1c1ac5(0x1fb)]()['insertAt'](_0x414916-0x2>-0x1?_0x414916-0x2:0x0,_0x18080b);break;case _0x1c1ac5(0x195):this[_0x1c1ac5(0x1fb)]()[_0x1c1ac5(0x1a6)](_0x414916,_0x18080b);break;default:break;}}return _0x18080b;}[a65_0x36d1d0(0x1d2)](){const _0x55e3fc=a65_0x36d1d0;return this[_0x55e3fc(0x209)]('pointTempLayer');}[a65_0x36d1d0(0x210)](){const _0x2f36b0=a65_0x36d1d0;return this[_0x2f36b0(0x209)]('lineTempLayer');}['getPolygonTempLayer'](){const _0x1f3b42=a65_0x36d1d0;return this[_0x1f3b42(0x209)](_0x1f3b42(0x1f1));}['getTempLayerByGeoType'](_0x2246c2){const _0x1e82d7=a65_0x36d1d0;let _0x12f5a5=this[_0x1e82d7(0x1d2)]();switch(_0x2246c2){case _0x1e82d7(0x1c6):case _0x1e82d7(0x1f3):_0x12f5a5=this[_0x1e82d7(0x1d2)]();case _0x1e82d7(0x1f9):case _0x1e82d7(0x19f):_0x12f5a5=this[_0x1e82d7(0x210)]();case'Polygon':case'MultiPolygon':_0x12f5a5=this[_0x1e82d7(0x1cb)]();}return _0x12f5a5;}[a65_0x36d1d0(0x1fe)](_0x5d80b4){const _0x570299=a65_0x36d1d0;let _0xf186a=this['getView']()[_0x570299(0x206)](),_0x5e2c0d=this[_0x570299(0x1f0)]()['getMaxZoom']();registerProj(_0x5d80b4),this['getView']()[_0x570299(0x1da)](_0x5d80b4);}[a65_0x36d1d0(0x198)](){const _0x1af72f=a65_0x36d1d0;let _0x4a5a44=[];_0x4a5a44['push'](this[_0x1af72f(0x1d2)]()),_0x4a5a44[_0x1af72f(0x1c5)](this[_0x1af72f(0x210)]()),_0x4a5a44[_0x1af72f(0x1c5)](this['getPolygonTempLayer']());const _0x319046=this[_0x1af72f(0x1fb)]()['getArray']()[_0x1af72f(0x1b7)];for(let _0x599b2a=0x0;_0x599b2a<_0x4a5a44[_0x1af72f(0x1b7)];_0x599b2a++){const _0x20c10c=_0x4a5a44[_0x599b2a];this[_0x1af72f(0x1fb)]()[_0x1af72f(0x1a6)](_0x319046-_0x599b2a-0x1,_0x20c10c);}}[a65_0x36d1d0(0x204)](){const _0x4a2e32=a65_0x36d1d0;return this[_0x4a2e32(0x1f0)]()['calculateExtent'](this[_0x4a2e32(0x20d)]());}[a65_0x36d1d0(0x1e5)](_0x810305,_0x5eee05,_0x50aa0c,_0x3b1869=!![],_0x3d7609,_0x24d3fc={'color':a65_0x36d1d0(0x1c1),'opacity':0.2,'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2}){const _0x385f0c=a65_0x36d1d0;var _0x5967c3;const _0x3f7a9c=fromWKT(_0x810305,_0x5eee05,this['getView']()['getProjection']()[_0x385f0c(0x1ea)]());if(!_0x3f7a9c)return;const _0x12575e=this[_0x385f0c(0x1fc)](_0x3f7a9c[_0x385f0c(0x1d9)]()),_0x29c85f=getStyle(_0x24d3fc),_0x157a06=new a65_0x19cb36();return _0x157a06[_0x385f0c(0x1e3)](_0x3f7a9c),_0x157a06[_0x385f0c(0x1e2)](_0x29c85f),_0x3d7609?_0x157a06[_0x385f0c(0x1a2)](_0x3d7609):_0x157a06['setProperties']({}),_0x157a06[_0x385f0c(0x1bf)]=_0x50aa0c,(_0x5967c3=_0x12575e[_0x385f0c(0x1bc)]())===null||_0x5967c3===void 0x0?void 0x0:_0x5967c3['addFeature'](_0x157a06),_0x3b1869&&this[_0x385f0c(0x1ef)](_0x3f7a9c,undefined,1.2,![]),_0x157a06;}['addWKTs'](_0x5d94ad,_0x4baa24,_0x206e0,_0x44534d=!![],_0x231e27={'color':a65_0x36d1d0(0x1c1),'opacity':0.2,'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2},_0xbc1a1f){const _0x2b561a=a65_0x36d1d0;var _0x507a80;const _0x56ea6d=fromWKTs(_0x5d94ad,_0x4baa24,this[_0x2b561a(0x1f0)]()['getProjection']()[_0x2b561a(0x1ea)]());if(!_0x56ea6d||_0x56ea6d[_0x2b561a(0x1b7)]==0x0)return;const _0x482a6d=this['getTempLayerByGeoType'](_0x56ea6d[0x0]['getType']()),_0x51d56f=getStyle(_0x231e27);let _0x66086b=[];for(const _0x4a859a of _0x56ea6d){const _0x1082ba=new a65_0x19cb36();_0x1082ba[_0x2b561a(0x1e3)](_0x4a859a),_0x1082ba[_0x2b561a(0x1e2)](_0x51d56f),_0xbc1a1f?_0x1082ba['setProperties'](_0xbc1a1f):_0x1082ba['setProperties']({}),_0x1082ba['fromType']='import',_0x1082ba['isSelected']=!![],_0x1082ba['tag']=_0x206e0,_0x66086b[_0x2b561a(0x1c5)](_0x1082ba);}return(_0x507a80=_0x482a6d['getSource']())===null||_0x507a80===void 0x0?void 0x0:_0x507a80[_0x2b561a(0x20b)](_0x66086b),_0x44534d&&this[_0x2b561a(0x1d5)](_0x56ea6d,undefined,1.2,![]),_0x66086b;}[a65_0x36d1d0(0x1c0)](_0x207474,_0x43044c,_0x4545bf=1.2,_0xfbdc46=!![]){const _0x3c7b9e=a65_0x36d1d0;if(!_0x207474)return;let _0x4935bb=fromWKT(_0x207474,_0x43044c,this['getView']()['getProjection']()[_0x3c7b9e(0x1ea)]());if(!_0x4935bb)return;this[_0x3c7b9e(0x1ef)](_0x4935bb,_0x43044c,_0x4545bf,_0xfbdc46);}['locationWKTs'](_0x1495e8,_0x3d4855,_0xad3103=1.2,_0x541ef6=!![]){const _0x5a60d1=a65_0x36d1d0;if(!_0x1495e8||_0x1495e8[_0x5a60d1(0x1b7)]===0x0)return;const _0x28373e=[];for(let _0x11eabc=0x0;_0x11eabc<_0x1495e8[_0x5a60d1(0x1b7)];_0x11eabc++){let _0x2fff7e=_0x1495e8[_0x11eabc],_0x5afa21=fromWKT(_0x2fff7e,_0x3d4855,this[_0x5a60d1(0x1f0)]()[_0x5a60d1(0x1b6)]()[_0x5a60d1(0x1ea)]());if(!_0x5afa21)continue;_0x28373e[_0x5a60d1(0x1c5)](_0x5afa21);}this[_0x5a60d1(0x1d5)](_0x28373e,_0x3d4855,_0xad3103,_0x541ef6);}[a65_0x36d1d0(0x1ef)](_0x278742,_0x78f090,_0x33a335=1.2,_0x6d206e=!![]){const _0x50987c=a65_0x36d1d0;if(!_0x278742)return;let _0x2603c0=_0x278742;_0x78f090&&(_0x2603c0=_0x278742[_0x50987c(0x1e1)](_0x78f090,this[_0x50987c(0x1f0)]()[_0x50987c(0x1b6)]()));switch(_0x2603c0[_0x50987c(0x1d9)]()){case _0x50987c(0x1c6):this[_0x50987c(0x1f0)]()[_0x50987c(0x1e9)](_0x2603c0[_0x50987c(0x207)]());break;case _0x50987c(0x1a7):case _0x50987c(0x1f3):case'MultiLineString':case _0x50987c(0x1f9):case _0x50987c(0x1cd):case _0x50987c(0x1d1):this[_0x50987c(0x1f0)]()[_0x50987c(0x1b2)](expandExtent(_0x2603c0[_0x50987c(0x204)](),_0x33a335));break;}if(_0x6d206e){const _0x208fd7=new a65_0x31c58a(this);_0x208fd7[_0x50987c(0x20e)]([_0x2603c0],0x3);}}['locationGeometrys'](_0x5f0768,_0x26ecc9,_0x57dad6=1.2,_0x4031c2=!![]){const _0x96f8fc=a65_0x36d1d0;if(!_0x5f0768||_0x5f0768['length']===0x0)return;let _0x350db7=null;for(const _0x19e2c1 of _0x5f0768){_0x350db7?_0x350db7=union(_0x350db7,_0x19e2c1):_0x350db7=_0x19e2c1;}_0x350db7&&this['locationGeometry'](_0x350db7,_0x26ecc9,_0x57dad6,![]);if(_0x4031c2){const _0x2dd009=new a65_0x31c58a(this);_0x2dd009[_0x96f8fc(0x20e)](_0x5f0768,0x3);}}}
|
|
1
|
+
const a65_0x259787=a65_0x18ba;(function(_0x40c058,_0x301388){const _0x3d99ac=a65_0x18ba,_0x4ee392=_0x40c058();while(!![]){try{const _0x381a5e=parseInt(_0x3d99ac(0xe4))/0x1+-parseInt(_0x3d99ac(0xd9))/0x2*(-parseInt(_0x3d99ac(0x135))/0x3)+-parseInt(_0x3d99ac(0xd7))/0x4+parseInt(_0x3d99ac(0x129))/0x5+parseInt(_0x3d99ac(0xd1))/0x6*(-parseInt(_0x3d99ac(0xc2))/0x7)+-parseInt(_0x3d99ac(0x100))/0x8+-parseInt(_0x3d99ac(0x111))/0x9*(-parseInt(_0x3d99ac(0xee))/0xa);if(_0x381a5e===_0x301388)break;else _0x4ee392['push'](_0x4ee392['shift']());}catch(_0x5f3588){_0x4ee392['push'](_0x4ee392['shift']());}}}(a65_0x2756,0x55b0e));import'ol/ol.css';import'../assets/main.css';import a65_0x72e388 from'ol/Map';function a65_0x2756(){const _0x5c5bb1=['5169880IcIwrP','getMaxZoom','getResolution','getGeoserverVectorTileLayer','push','center','minZoom','getGeoserverWFSLayer','_options','fromType','getLayers','flashGeometrys','maxResolution','fitLayer','arcgis-feature','calculateExtent','arcgis-wmts','9HgWryf','layerInfo','setCenter','layerIds','includes','layerTag','LineString','layerType','addWKTs','dispatchEvent','refresh','changelayer','EPSG:','polygonTempLayer','暂不支持【','remove','fitFilterByLayerTag','transform','MultiPoint','addMapLayer','getCoordinates','addWKT','getType','EPSG:4490','988390EHNNSO','forEach','url','getTempLayerByGeoType','getGeoserverWMTSLayer','getExtent','getTileLayer','maxZoom','tag','getArcgisTileLayer','minResolution','getPointTempLayer','21McTeKB','getLayersByIds','setProperties','getLayerById','setGeometry','getCode','tempLayer','getSource','fit','pointTempLayer','initialExtent','getArcgisWMTSLayer','all','rgba(255,\x200,\x200,\x200.2)','add','insertAt','getVisible','7uUBZkG','getProjection','rgba(255,\x200,\x200,\x201)','setProjection','arcgis-dynamic','GeometryCollection','locationGeometrys','tile','geoserver-vector-tile','getLayerByLayerTag','oncontextmenu','minScale','getArcgisFeatureLayer','MultiLineString','MultiPolygon','3314946sZjyby','getLength','Polygon','lineTempLayer','getGeometry','locationWKTs','612156eMiIed','arcgis-wms','1468BymPti','tdt-c','locationGeometry','isSelected','selectIndex','constrainResolution','getView','removeLayerById','Point','maxScale','removeLayerByIds','135882NwINYw','removeLayer','】服务类型','getPolygonTempLayer','sortTemLayer','getArcgisWmsLayer','getMinZoom','extent','filter','getZIndex','13640570pLoWzW','changetype','addFeatures','controlManager','getTempLayerById','getLineTempLayer','getGeoserverWmsLayer','setStyle','getMetersPerUnit','addLayer','setResolution','setMinResolution','projection','getDynamicLayer','locationWKT','length','zoom','getArray'];a65_0x2756=function(){return _0x5c5bb1;};return a65_0x2756();}import a65_0x59696f from'ol/events/Event';import{defaults as a65_0x2f8ed7}from'ol/control';import{registerProj}from'../utils/RegisterProjUtil';import{transformExtent}from'ol/proj';import a65_0x379138 from'../layers/LayerManager';import a65_0x5a4afb from'ol/layer/Vector';import a65_0x315521 from'ol/source/Vector';import a65_0x518423 from'../controls/ControlManager';import a65_0x51c90f from'../entity/Feature';import a65_0x53f318 from'../interaction/InteractionManager';import a65_0x1c64aa from'./View';import{selectFeaturesByGeo}from'../utils/tasks';import{expandExtent,fromWKT,fromWKTs,union}from'../utils/GeometryUtil';function a65_0x18ba(_0x236d04,_0x41b384){const _0x275618=a65_0x2756();return a65_0x18ba=function(_0x18ba46,_0x40f813){_0x18ba46=_0x18ba46-0xb7;let _0x13c7da=_0x275618[_0x18ba46];return _0x13c7da;},a65_0x18ba(_0x236d04,_0x41b384);}import a65_0xac214 from'../feature/FeatureManager';import{calculateResolution}from'../utils/ResolutionUtil';import{getStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle}from'../style/StyleManager';export class ChangeLayerEvent extends a65_0x59696f{constructor(_0x419601,_0x56e87a,_0x14985d){const _0x43ba01=a65_0x18ba;super(_0x419601),this[_0x43ba01(0x114)]=_0x56e87a,this[_0x43ba01(0xef)]=_0x14985d;}}export default class OLMap extends a65_0x72e388{constructor(_0x18df7e,_0xb99f43,_0x12fc95){const _0x3ea4db=a65_0x18ba;_0xb99f43=_0xb99f43?_0xb99f43:{'projection':0x118a,'center':[117.22718,31.820386],'minZoom':0x0,'maxZoom':0x1c,'constrainResolution':![],'zoom':0xa};const _0x5b271a=_0xb99f43[_0x3ea4db(0xfa)]?_0x3ea4db(0x11d)+_0xb99f43['projection']:_0x3ea4db(0x128);_0xb99f43[_0x3ea4db(0xfe)]=_0xb99f43[_0x3ea4db(0xfe)]?_0xb99f43[_0x3ea4db(0xfe)]:0xa,_0xb99f43[_0x3ea4db(0x106)]=_0xb99f43['minZoom']?_0xb99f43[_0x3ea4db(0x106)]:0x0,_0xb99f43[_0x3ea4db(0x130)]=_0xb99f43[_0x3ea4db(0x130)]?_0xb99f43[_0x3ea4db(0x130)]:0x1c,_0xb99f43[_0x3ea4db(0xde)]=_0xb99f43[_0x3ea4db(0xde)]?_0xb99f43[_0x3ea4db(0xde)]:![],_0xb99f43[_0x3ea4db(0x105)]=_0xb99f43['center']?_0xb99f43[_0x3ea4db(0x105)]:[117.22718,31.820386],registerProj(_0x5b271a);const _0x3c4c0d={'target':_0x18df7e,'view':_0x12fc95?_0x12fc95:new a65_0x1c64aa({'center':_0xb99f43[_0x3ea4db(0x105)],'zoom':_0xb99f43['zoom'],'projection':_0x5b271a,'minZoom':_0xb99f43[_0x3ea4db(0x106)],'maxZoom':_0xb99f43['maxZoom'],'minResolution':_0xb99f43[_0x3ea4db(0x133)],'maxResolution':_0xb99f43[_0x3ea4db(0x10c)],'constrainResolution':_0xb99f43[_0x3ea4db(0xde)]}),'controls':a65_0x2f8ed7({'zoom':![]})};super(_0x3c4c0d);_0xb99f43[_0x3ea4db(0xeb)]&&this[_0x3ea4db(0xdf)]()[_0x3ea4db(0xb9)](_0xb99f43[_0x3ea4db(0xeb)]);const _0x242331=this['getTarget']();if(_0x242331 instanceof HTMLElement)_0x242331[_0x3ea4db(0xcc)]=function(_0x11c316){return![];};else{const _0x179614=document['getElementById'](_0x242331);_0x179614&&(_0x179614[_0x3ea4db(0xcc)]=function(_0x1b95a7){return![];});}this['interactionManager']=new a65_0x53f318(this),this[_0x3ea4db(0xf1)]=new a65_0x518423(this),this[_0x3ea4db(0x108)]=_0xb99f43;}[a65_0x259787(0xdf)](){const _0x4e8d17=a65_0x259787;return super[_0x4e8d17(0xdf)]();}[a65_0x259787(0x11b)](){const _0x274f86=a65_0x259787;let _0x5c6592=this[_0x274f86(0xdf)]()['getResolution']();_0x5c6592&&this[_0x274f86(0xdf)]()[_0x274f86(0xf8)](_0x5c6592-1e-11);}['fitLayer'](_0x114d0d){const _0x8d8796=a65_0x259787;var _0x4a2014;this[_0x8d8796(0xdf)]()['fit'](transformExtent(_0x114d0d[_0x8d8796(0xbb)],(_0x4a2014=_0x114d0d['projection'])===null||_0x4a2014===void 0x0?void 0x0:_0x4a2014[_0x8d8796(0x13a)](),this[_0x8d8796(0xdf)]()[_0x8d8796(0xc3)]()[_0x8d8796(0x13a)]()));}['fitLayerById'](_0x1a9212){const _0x43dc8f=a65_0x259787;let _0x1a0146=this['getLayerById'](_0x1a9212);_0x1a0146&&this[_0x43dc8f(0x10d)](_0x1a0146);}async[a65_0x259787(0x121)](_0x558be6,_0x213e70,_0x5a741b=![],_0x5a96a7){const _0xdec202=a65_0x259787;var _0x29d394;let _0x1cdffa=this[_0xdec202(0xcb)](_0x558be6);if(!_0x1cdffa||!_0x1cdffa['layerInfo'])return;const _0x412828=_0x1cdffa[_0xdec202(0x112)];if(_0x1cdffa[_0xdec202(0xc1)]()==![]||!_0x1cdffa||!_0x412828[_0xdec202(0x12b)]||!_0x412828['selectIndex'])return;const _0x4ec2ab=this[_0xdec202(0xdf)]()[_0xdec202(0x102)]();let _0x2ab89b=await selectFeaturesByGeo(undefined,undefined,_0x412828['url'],_0x412828[_0xdec202(0xdd)],_0x412828[_0xdec202(0x118)],_0x213e70,_0x4ec2ab),_0x11ed70=[];if(_0x2ab89b[_0xdec202(0xfd)]>0x0){_0x11ed70=_0x2ab89b['map'](_0x39d149=>_0x39d149[_0xdec202(0xd5)]());_0x11ed70&&_0x11ed70[_0xdec202(0xfd)]>0x0&&this[_0xdec202(0xc8)](_0x11ed70,undefined,1.2,!![]);let _0x148ef0=this['getPolygonTempLayer'](),_0x542237=getSelectPolygonStyle();switch((_0x29d394=_0x2ab89b[0x0][_0xdec202(0xd5)]())===null||_0x29d394===void 0x0?void 0x0:_0x29d394['getType']()){case'Point':case _0xdec202(0x123):_0x148ef0=this[_0xdec202(0x134)](),_0x542237=getSelectPointStyle();break;case _0xdec202(0x117):case _0xdec202(0xcf):_0x148ef0=this[_0xdec202(0xf3)](),_0x542237=getSelectLineStyle();break;default:break;}const _0x51bf06=_0x148ef0[_0xdec202(0xb8)]();_0x51bf06&&_0x5a741b&&(_0x2ab89b[_0xdec202(0x12a)](_0x613227=>{const _0x4933de=_0xdec202;_0x613227['layerId']=_0x412828['id'],_0x613227[_0x4933de(0xdc)]=!![],_0x613227['tag']=_0x5a96a7,_0x613227[_0x4933de(0xb7)]=_0x148ef0,_0x613227['setStyle'](_0x542237);}),_0x51bf06['addFeatures'](_0x2ab89b));}}async[a65_0x259787(0x124)](_0x616288){const _0x7b59bc=a65_0x259787;let _0x1593fd;switch(_0x616288[_0x7b59bc(0x118)]){case _0x7b59bc(0x10e):_0x1593fd=await a65_0x379138[_0x7b59bc(0xce)](_0x616288);break;case _0x7b59bc(0xc6):_0x1593fd=await a65_0x379138[_0x7b59bc(0xfb)](_0x616288);break;case'arcgis-tile':_0x1593fd=await a65_0x379138[_0x7b59bc(0x132)](_0x616288);break;case _0x7b59bc(0xd8):_0x1593fd=await a65_0x379138[_0x7b59bc(0xe9)](_0x616288);break;case _0x7b59bc(0x110):_0x1593fd=await a65_0x379138[_0x7b59bc(0xbc)](_0x616288);break;case'geoserver-wms':_0x1593fd=await a65_0x379138[_0x7b59bc(0xf4)](_0x616288);break;case'geoserver-wfs':_0x1593fd=await a65_0x379138[_0x7b59bc(0x107)](_0x616288);break;case'geoserver-wmts':_0x1593fd=await a65_0x379138[_0x7b59bc(0x12d)](_0x616288);break;case _0x7b59bc(0xca):_0x1593fd=await a65_0x379138[_0x7b59bc(0x103)](_0x616288);break;case _0x7b59bc(0xda):_0x1593fd=await a65_0x379138['getTDTLayer'](_0x616288);break;case _0x7b59bc(0xc9):_0x1593fd=await a65_0x379138[_0x7b59bc(0x12f)](_0x616288);break;default:throw new Error(_0x7b59bc(0x11f)+_0x616288[_0x7b59bc(0x118)]+_0x7b59bc(0xe6));}return this[_0x7b59bc(0xf7)](_0x1593fd),this[_0x7b59bc(0x11a)](new ChangeLayerEvent(_0x7b59bc(0x11c),[_0x616288['id']],'add')),_0x1593fd;}async['addMapLayers'](_0x13339e){const _0x12dfe4=a65_0x259787;let _0x31c90a=[];const _0x39103e=[];for(let _0x33d962=0x0;_0x33d962<_0x13339e[_0x12dfe4(0xfd)];_0x33d962++){const _0x4d1e5b=_0x13339e[_0x33d962];_0x39103e[_0x12dfe4(0x104)](_0x4d1e5b['id']),_0x31c90a['push'](this[_0x12dfe4(0x124)](_0x4d1e5b));}const _0x33cd87=await Promise[_0x12dfe4(0xbd)](_0x31c90a);return this['dispatchEvent'](new ChangeLayerEvent('changelayer',_0x39103e,_0x12dfe4(0xbf))),_0x33cd87;}[a65_0x259787(0xf7)](_0x26fd95,_0x3c96ea=![]){const _0x4e7b34=a65_0x259787,_0x770caa=_0x26fd95,_0x3bc4f8=this[_0x4e7b34(0x138)](_0x770caa['id']);if(_0x3bc4f8==null){const _0x4c43c1=_0x770caa['layerInfo']==undefined||_0x770caa['layerInfo'][_0x4e7b34(0xcd)]==undefined||_0x770caa[_0x4e7b34(0x112)][_0x4e7b34(0xcd)]<0x0?undefined:calculateResolution(_0x770caa[_0x4e7b34(0x112)][_0x4e7b34(0xcd)],this['getView']()[_0x4e7b34(0xc3)]()[_0x4e7b34(0xf6)]()||0x0);_0x26fd95[_0x4e7b34(0xf9)](_0x4c43c1);const _0x3fa789=_0x770caa[_0x4e7b34(0x112)]==undefined||_0x770caa[_0x4e7b34(0x112)][_0x4e7b34(0xe2)]==undefined||_0x770caa[_0x4e7b34(0x112)][_0x4e7b34(0xe2)]<0x0?undefined:calculateResolution(_0x770caa[_0x4e7b34(0x112)][_0x4e7b34(0xe2)],this[_0x4e7b34(0xdf)]()[_0x4e7b34(0xc3)]()[_0x4e7b34(0xf6)]()||0x0);_0x26fd95['setMaxResolution'](_0x3fa789);const _0x46c52b=this[_0x4e7b34(0x10a)]()['getArray']()[_0x4e7b34(0xfd)];if(!this[_0x4e7b34(0x108)]['projection']&&_0x46c52b==0x0&&_0x770caa[_0x4e7b34(0xfa)]&&_0x770caa[_0x4e7b34(0xfa)][_0x4e7b34(0x13a)]()!=this[_0x4e7b34(0xdf)]()[_0x4e7b34(0xc3)]()[_0x4e7b34(0x13a)]()){}let _0x50fc10=_0x26fd95[_0x4e7b34(0xed)]();_0x50fc10!=undefined&&_0x50fc10>_0x46c52b&&(_0x50fc10=_0x46c52b),this['getLayers']()['insertAt'](_0x50fc10==undefined?_0x46c52b:_0x50fc10,_0x26fd95),_0x3c96ea&&this[_0x4e7b34(0x10d)](_0x770caa);}}[a65_0x259787(0xe0)](_0x2b084a){const _0x2ed4cc=a65_0x259787,_0x47c55f=this[_0x2ed4cc(0x138)](_0x2b084a);_0x47c55f&&(this[_0x2ed4cc(0xe5)](_0x47c55f),this[_0x2ed4cc(0x11a)](new ChangeLayerEvent(_0x2ed4cc(0x11c),[_0x2b084a],_0x2ed4cc(0x120))));}[a65_0x259787(0xe3)](_0x493e61){const _0xc4cbeb=a65_0x259787,_0x3cc4a4=this['getLayersByIds'](_0x493e61);_0x3cc4a4&&_0x3cc4a4[_0xc4cbeb(0xfd)]>0x0&&(_0x3cc4a4[_0xc4cbeb(0x12a)](_0x1dd200=>{const _0x26e5c3=_0xc4cbeb;this[_0x26e5c3(0xe5)](_0x1dd200);}),this[_0xc4cbeb(0x11a)](new ChangeLayerEvent(_0xc4cbeb(0x11c),_0x493e61,_0xc4cbeb(0x120))));}['getLayerById'](_0x3d79b3){const _0x1b5f27=a65_0x259787;let _0x456904,_0x4abda3=this['getLayers']()['getArray']();for(let _0x54e592=0x0;_0x54e592<_0x4abda3[_0x1b5f27(0xfd)];_0x54e592++){let _0x406ab3=_0x4abda3[_0x54e592]['id'];if(_0x3d79b3==_0x406ab3){_0x456904=_0x4abda3[_0x54e592];break;}}return _0x456904;}[a65_0x259787(0xcb)](_0x1edac2){const _0x214ace=a65_0x259787;let _0x156375,_0x3e629d=this[_0x214ace(0x10a)]()[_0x214ace(0xff)]();for(let _0x7f223d=0x0;_0x7f223d<_0x3e629d['length'];_0x7f223d++){const _0x12f2d0=_0x3e629d[_0x7f223d][_0x214ace(0x112)];if(!_0x12f2d0)continue;let _0x4895d5=_0x12f2d0[_0x214ace(0x116)];if(_0x4895d5==_0x1edac2){_0x156375=_0x3e629d[_0x7f223d];break;}}return _0x156375;}[a65_0x259787(0x136)](_0x4060df){const _0x1a9c60=a65_0x259787;let _0x2dd40e=this[_0x1a9c60(0x10a)]()[_0x1a9c60(0xff)]();return _0x2dd40e[_0x1a9c60(0xec)](_0x40b9cf=>_0x4060df[_0x1a9c60(0x115)](_0x40b9cf['id']));}[a65_0x259787(0xf2)](_0x28fdca){const _0x451ac9=a65_0x259787;let _0x3d6960,_0x5dfd52=this[_0x451ac9(0x10a)]()['getArray']();for(let _0x672089=0x0;_0x672089<_0x5dfd52[_0x451ac9(0xfd)];_0x672089++){const _0x342385=_0x5dfd52[_0x672089];if(_0x342385['id']===_0x28fdca){_0x3d6960=_0x342385;break;}}if(!_0x3d6960){_0x3d6960=new a65_0x5a4afb({'zIndex':0x270f,'source':new a65_0x315521()}),_0x3d6960['id']=_0x28fdca;const _0xd19346=this['getLayers']()[_0x451ac9(0xd2)]();switch(_0x28fdca){case _0x451ac9(0xd4):this['getLayers']()['insertAt'](_0xd19346-0x1>-0x1?_0xd19346-0x1:0x0,_0x3d6960);break;case'polygonTempLayer':this['getLayers']()[_0x451ac9(0xc0)](_0xd19346-0x2>-0x1?_0xd19346-0x2:0x0,_0x3d6960);break;case _0x451ac9(0xba):this[_0x451ac9(0x10a)]()[_0x451ac9(0xc0)](_0xd19346,_0x3d6960);break;default:break;}}return _0x3d6960;}[a65_0x259787(0x134)](){const _0xaad488=a65_0x259787;return this['getTempLayerById'](_0xaad488(0xba));}[a65_0x259787(0xf3)](){const _0x1fbd00=a65_0x259787;return this[_0x1fbd00(0xf2)](_0x1fbd00(0xd4));}['getPolygonTempLayer'](){const _0x50cc45=a65_0x259787;return this['getTempLayerById'](_0x50cc45(0x11e));}[a65_0x259787(0x12c)](_0x3f1199){const _0xbd942d=a65_0x259787;let _0x236d70=this[_0xbd942d(0x134)]();switch(_0x3f1199){case'Point':case'MultiPoint':_0x236d70=this[_0xbd942d(0x134)]();case _0xbd942d(0x117):case _0xbd942d(0xcf):_0x236d70=this[_0xbd942d(0xf3)]();case _0xbd942d(0xd3):case _0xbd942d(0xd0):_0x236d70=this[_0xbd942d(0xe7)]();}return _0x236d70;}['resetViewProjection'](_0x436c1a){const _0x3c49ec=a65_0x259787;let _0x190fec=this[_0x3c49ec(0xdf)]()[_0x3c49ec(0xea)](),_0x1c4ed6=this[_0x3c49ec(0xdf)]()[_0x3c49ec(0x101)]();registerProj(_0x436c1a),this['getView']()[_0x3c49ec(0xc5)](_0x436c1a);}[a65_0x259787(0xe8)](){const _0x117658=a65_0x259787;let _0x2c1f6a=[];_0x2c1f6a[_0x117658(0x104)](this[_0x117658(0x134)]()),_0x2c1f6a[_0x117658(0x104)](this[_0x117658(0xf3)]()),_0x2c1f6a['push'](this[_0x117658(0xe7)]());const _0x23f0de=this[_0x117658(0x10a)]()[_0x117658(0xff)]()[_0x117658(0xfd)];for(let _0xd1c663=0x0;_0xd1c663<_0x2c1f6a['length'];_0xd1c663++){const _0x4cd0f6=_0x2c1f6a[_0xd1c663];this['getLayers']()[_0x117658(0xc0)](_0x23f0de-_0xd1c663-0x1,_0x4cd0f6);}}[a65_0x259787(0x12e)](){const _0xaabef=a65_0x259787;return this[_0xaabef(0xdf)]()[_0xaabef(0x10f)](this['getSize']());}[a65_0x259787(0x126)](_0x2dc696,_0x45056f,_0x441c50,_0x5923c6=!![],_0x559b22,_0x14f79d={'color':a65_0x259787(0xbe),'opacity':0.2,'outlineColor':a65_0x259787(0xc4),'outlineWidth':0x2}){const _0x31cf61=a65_0x259787;var _0x58b899;const _0x3182d3=fromWKT(_0x2dc696,_0x45056f,this[_0x31cf61(0xdf)]()[_0x31cf61(0xc3)]()[_0x31cf61(0x13a)]());if(!_0x3182d3)return;const _0x5881a7=this[_0x31cf61(0x12c)](_0x3182d3[_0x31cf61(0x127)]()),_0x595ea8=getStyle(_0x14f79d),_0x4d8544=new a65_0x51c90f();return _0x4d8544[_0x31cf61(0x139)](_0x3182d3),_0x4d8544[_0x31cf61(0xf5)](_0x595ea8),_0x559b22?_0x4d8544[_0x31cf61(0x137)](_0x559b22):_0x4d8544[_0x31cf61(0x137)]({}),_0x4d8544['tag']=_0x441c50,(_0x58b899=_0x5881a7['getSource']())===null||_0x58b899===void 0x0?void 0x0:_0x58b899['addFeature'](_0x4d8544),_0x5923c6&&this['locationGeometry'](_0x3182d3,undefined,1.2,![]),_0x4d8544;}[a65_0x259787(0x119)](_0x1f7196,_0x1bdeff,_0x3a0f97,_0x2c640b=!![],_0x4da571={'color':a65_0x259787(0xbe),'opacity':0.2,'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2},_0x29bf71){const _0x31cd12=a65_0x259787;var _0x686efe;const _0x983832=fromWKTs(_0x1f7196,_0x1bdeff,this[_0x31cd12(0xdf)]()['getProjection']()[_0x31cd12(0x13a)]());if(!_0x983832||_0x983832[_0x31cd12(0xfd)]==0x0)return;const _0x5397d4=this[_0x31cd12(0x12c)](_0x983832[0x0][_0x31cd12(0x127)]()),_0x289715=getStyle(_0x4da571);let _0x257f95=[];for(const _0x3c80ce of _0x983832){const _0x12f581=new a65_0x51c90f();_0x12f581['setGeometry'](_0x3c80ce),_0x12f581[_0x31cd12(0xf5)](_0x289715),_0x29bf71?_0x12f581[_0x31cd12(0x137)](_0x29bf71):_0x12f581[_0x31cd12(0x137)]({}),_0x12f581[_0x31cd12(0x109)]='import',_0x12f581['isSelected']=!![],_0x12f581[_0x31cd12(0x131)]=_0x3a0f97,_0x257f95[_0x31cd12(0x104)](_0x12f581);}return(_0x686efe=_0x5397d4['getSource']())===null||_0x686efe===void 0x0?void 0x0:_0x686efe[_0x31cd12(0xf0)](_0x257f95),_0x2c640b&&this['locationGeometrys'](_0x983832,undefined,1.2,![]),_0x257f95;}[a65_0x259787(0xfc)](_0x453e1d,_0x318a8f,_0x4c6acc=1.2,_0x57eece=!![]){const _0x5a7b3d=a65_0x259787;if(!_0x453e1d)return;let _0x535f4b=fromWKT(_0x453e1d,_0x318a8f,this['getView']()[_0x5a7b3d(0xc3)]()['getCode']());if(!_0x535f4b)return;this[_0x5a7b3d(0xdb)](_0x535f4b,_0x318a8f,_0x4c6acc,_0x57eece);}[a65_0x259787(0xd6)](_0x281415,_0x1a3813,_0x38edf9=1.2,_0x554f25=!![]){const _0x2b4345=a65_0x259787;if(!_0x281415||_0x281415['length']===0x0)return;const _0x2aded9=[];for(let _0x5aae47=0x0;_0x5aae47<_0x281415[_0x2b4345(0xfd)];_0x5aae47++){let _0x2fd86a=_0x281415[_0x5aae47],_0xde1bb8=fromWKT(_0x2fd86a,_0x1a3813,this['getView']()[_0x2b4345(0xc3)]()[_0x2b4345(0x13a)]());if(!_0xde1bb8)continue;_0x2aded9[_0x2b4345(0x104)](_0xde1bb8);}this[_0x2b4345(0xc8)](_0x2aded9,_0x1a3813,_0x38edf9,_0x554f25);}[a65_0x259787(0xdb)](_0x2adaa1,_0xa7259a,_0x568d6=1.2,_0x51acd9=!![]){const _0x55a03b=a65_0x259787;if(!_0x2adaa1)return;let _0x556d6a=_0x2adaa1;_0xa7259a&&(_0x556d6a=_0x2adaa1[_0x55a03b(0x122)](_0xa7259a,this[_0x55a03b(0xdf)]()[_0x55a03b(0xc3)]()));switch(_0x556d6a[_0x55a03b(0x127)]()){case _0x55a03b(0xe1):this[_0x55a03b(0xdf)]()[_0x55a03b(0x113)](_0x556d6a[_0x55a03b(0x125)]());break;case _0x55a03b(0xd3):case _0x55a03b(0x123):case _0x55a03b(0xcf):case'LineString':case _0x55a03b(0xd0):case _0x55a03b(0xc7):this[_0x55a03b(0xdf)]()['fit'](expandExtent(_0x556d6a[_0x55a03b(0x12e)](),_0x568d6));break;}if(_0x51acd9){const _0x26046c=new a65_0xac214(this);_0x26046c[_0x55a03b(0x10b)]([_0x556d6a],0x3);}}[a65_0x259787(0xc8)](_0x562a76,_0x39082e,_0x40a5df=1.2,_0x1f322a=!![]){const _0xb6dc58=a65_0x259787;if(!_0x562a76||_0x562a76['length']===0x0)return;let _0x1b4ee6=null;for(const _0x4131b6 of _0x562a76){_0x1b4ee6?_0x1b4ee6=union(_0x1b4ee6,_0x4131b6):_0x1b4ee6=_0x4131b6;}_0x1b4ee6&&this[_0xb6dc58(0xdb)](_0x1b4ee6,_0x39082e,_0x40a5df,![]);if(_0x1f322a){const _0x586538=new a65_0xac214(this);_0x586538['flashGeometrys'](_0x562a76,0x3);}}}
|
package/mapView/View.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a66_0x429880=a66_0x47e0;function a66_0x16e8(){var _0x4555a4=['setProjection','808ohLfhm','1849941RdNMKq','135YCDPfZ','1896408zfysAh','40302MmsGSW','2612kQulXD','771EdjaIj','400guJNdv','1768718HkfKyE','projection_','3793404HxKhGn'];a66_0x16e8=function(){return _0x4555a4;};return a66_0x16e8();}(function(_0x2494e7,_0x5524b6){var _0x16797e=a66_0x47e0,_0x7270ef=_0x2494e7();while(!![]){try{var _0x52baaf=parseInt(_0x16797e(0x99))/0x1*(-parseInt(_0x16797e(0x93))/0x2)+parseInt(_0x16797e(0x94))/0x3+parseInt(_0x16797e(0x98))/0x4*(-parseInt(_0x16797e(0x95))/0x5)+-parseInt(_0x16797e(0x91))/0x6+parseInt(_0x16797e(0x8f))/0x7+parseInt(_0x16797e(0x96))/0x8+parseInt(_0x16797e(0x97))/0x9*(parseInt(_0x16797e(0x9a))/0xa);if(_0x52baaf===_0x5524b6)break;else _0x7270ef['push'](_0x7270ef['shift']());}catch(_0x85aee4){_0x7270ef['push'](_0x7270ef['shift']());}}}(a66_0x16e8,0x4f22f));import a66_0x524c0c from'ol/View';function a66_0x47e0(_0x416691,_0x381c53){var _0x16e8c8=a66_0x16e8();return a66_0x47e0=function(_0x47e0ae,_0x37d3ec){_0x47e0ae=_0x47e0ae-0x8f;var _0x11c196=_0x16e8c8[_0x47e0ae];return _0x11c196;},a66_0x47e0(_0x416691,_0x381c53);}import{get}from'ol/proj';export default class OLView extends a66_0x524c0c{constructor(_0x776e22){super(_0x776e22);}[a66_0x429880(0x92)](_0x351d95){var _0x320c75=a66_0x429880;this[_0x320c75(0x90)]=get(_0x351d95),this['setProperties']({'projection_':get(_0x351d95)});}}
|
package/package.json
CHANGED
package/plot/Plot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21caa7,_0x432d5c){const _0x2e2c5a=a74_0x6264,_0x98883c=_0x21caa7();while(!![]){try{const _0x53a96d=-parseInt(_0x2e2c5a(0x16e))/0x1*(parseInt(_0x2e2c5a(0x172))/0x2)+-parseInt(_0x2e2c5a(0x174))/0x3*(-parseInt(_0x2e2c5a(0x165))/0x4)+-parseInt(_0x2e2c5a(0x15b))/0x5+-parseInt(_0x2e2c5a(0x163))/0x6+parseInt(_0x2e2c5a(0x166))/0x7+-parseInt(_0x2e2c5a(0x15f))/0x8+parseInt(_0x2e2c5a(0x171))/0x9;if(_0x53a96d===_0x432d5c)break;else _0x98883c['push'](_0x98883c['shift']());}catch(_0xa993f8){_0x98883c['push'](_0x98883c['shift']());}}}(a74_0x2906,0x2a56e));import a74_0x210af1 from'../entity/GeometryType';import a74_0x4e75d6 from'./geometry/polygon/Polygon';import{getPointSingleStyle}from'../style/PointStyleFormat';import{getPolylineStyle}from'../style/PolylineStyleFormat';import{getPolygonStyle}from'../style/PolygonStyleFormat';function a74_0x2906(){const _0x1c7802=['SurfaceClosed','Arrow','243383wWePxL','Ellipsoid','Curve','3140784CKDFvM','2HChbUk','PolyLine','110877vSOpvE','1030650JqIYwr','toLowerCase','Ellipse','text','281640rIjyTj','MAX_VALUE','assign','Point','1735164ZQrWlD','Polygon','28xZsoml','2377515pDHIax','Rectangle','Circle','ArrowAttack','AssemblySite','ArrowPincerlike'];a74_0x2906=function(){return _0x1c7802;};return a74_0x2906();}import a74_0xda4303 from'./geometry/polygon/RectAngle';import a74_0x2b32d1 from'./geometry/polyline/Polyline';import a74_0x3e2b48 from'./geometry/point/Point';import a74_0x241007 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(_0x182aeb,_0x244eff){const _0x459421=a74_0x6264;_0x182aeb=_0x182aeb[_0x459421(0x15c)]();switch(_0x182aeb){case a74_0x210af1[_0x459421(0x162)]:case'pointermove':return new a74_0x3e2b48(_0x244eff);case a74_0x210af1['PolyLine']:return new a74_0x2b32d1(_0x244eff);case a74_0x210af1[_0x459421(0x168)]:return new a74_0x241007(_0x244eff);case a74_0x210af1[_0x459421(0x167)]:return new a74_0xda4303(_0x244eff);case a74_0x210af1[_0x459421(0x164)]:return new a74_0x4e75d6(_0x244eff);}}function a74_0x6264(_0x11c1fb,_0x404467){const _0x290655=a74_0x2906();return a74_0x6264=function(_0x626402,_0x39ade4){_0x626402=_0x626402-0x15b;let _0x480bbc=_0x290655[_0x626402];return _0x480bbc;},a74_0x6264(_0x11c1fb,_0x404467);}export function getPlotCount(_0x462af9){const _0x11741d=a74_0x6264;_0x462af9=_0x462af9[_0x11741d(0x15c)]();let _0x2abf35={'fixPoint':0x0,'minPoint':0x0};switch(_0x462af9){case a74_0x210af1[_0x11741d(0x162)]:_0x2abf35={'fixPoint':0x1,'minPoint':0x0};break;case a74_0x210af1[_0x11741d(0x173)]:_0x2abf35={'fixPoint':Number['MAX_VALUE'],'minPoint':0x1};break;case a74_0x210af1['Polygon']:_0x2abf35={'fixPoint':Number['MAX_VALUE'],'minPoint':0x2};break;case a74_0x210af1['Rectangle']:_0x2abf35={'fixPoint':0x2,'minPoint':0x1};break;case a74_0x210af1[_0x11741d(0x168)]:_0x2abf35={'fixPoint':0x2,'minPoint':0x1};break;case a74_0x210af1['Curve']:_0x2abf35={'fixPoint':Number[_0x11741d(0x160)],'minPoint':0x1};break;case a74_0x210af1[_0x11741d(0x15d)]:case a74_0x210af1[_0x11741d(0x16f)]:_0x2abf35={'fixPoint':0x3,'minPoint':0x1};break;default:break;}return _0x2abf35;}export function getStyle(_0x59f234,_0x4345ae,_0x726c45){const _0x4d405b=a74_0x6264;_0x59f234=_0x59f234['toLowerCase'](),_0x4345ae=Object[_0x4d405b(0x161)](Object[_0x4d405b(0x161)]({},defaultStyle),_0x4345ae);switch(_0x59f234){case a74_0x210af1['Point']:return function(_0x36f3a1,_0x3697a1){return getPointSingleStyle(_0x59f234,_0x4345ae,_0x3697a1,_0x726c45);};case a74_0x210af1[_0x4d405b(0x173)]:case a74_0x210af1[_0x4d405b(0x170)]:return function(_0x1f68e7,_0x257950){return getPolylineStyle(_0x4345ae,'',_0x257950,_0x726c45);};case a74_0x210af1[_0x4d405b(0x168)]:case a74_0x210af1[_0x4d405b(0x167)]:case a74_0x210af1[_0x4d405b(0x15d)]:case a74_0x210af1[_0x4d405b(0x16f)]:case a74_0x210af1[_0x4d405b(0x16c)]:case a74_0x210af1[_0x4d405b(0x164)]:case a74_0x210af1[_0x4d405b(0x169)]:case a74_0x210af1[_0x4d405b(0x16b)]:case a74_0x210af1[_0x4d405b(0x16d)]:case a74_0x210af1[_0x4d405b(0x16a)]:return function(_0x1f0c14,_0x2594f6){const _0x372832=_0x4d405b;return getPolygonStyle(_0x4345ae,_0x4345ae[_0x372832(0x15e)],_0x2594f6,_0x726c45);};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a67_0x18ee(_0x378357,_0x48689f){var _0x2edfc1=a67_0x2edf();return a67_0x18ee=function(_0x18ee67,_0x45726b){_0x18ee67=_0x18ee67-0xf1;var _0x5e4c02=_0x2edfc1[_0x18ee67];return _0x5e4c02;},a67_0x18ee(_0x378357,_0x48689f);}var a67_0x2b85d1=a67_0x18ee;(function(_0x5a9493,_0x2173b1){var _0x109ea2=a67_0x18ee,_0x3a3122=_0x5a9493();while(!![]){try{var _0x5e14f2=parseInt(_0x109ea2(0xff))/0x1+parseInt(_0x109ea2(0xfe))/0x2*(-parseInt(_0x109ea2(0x105))/0x3)+-parseInt(_0x109ea2(0x108))/0x4*(-parseInt(_0x109ea2(0xf7))/0x5)+-parseInt(_0x109ea2(0xf3))/0x6*(parseInt(_0x109ea2(0x102))/0x7)+parseInt(_0x109ea2(0x103))/0x8*(-parseInt(_0x109ea2(0x101))/0x9)+-parseInt(_0x109ea2(0x10b))/0xa+parseInt(_0x109ea2(0x10c))/0xb;if(_0x5e14f2===_0x2173b1)break;else _0x3a3122['push'](_0x3a3122['shift']());}catch(_0x30dbf8){_0x3a3122['push'](_0x3a3122['shift']());}}}(a67_0x2edf,0x1af9a));import{Map}from'ol';import{Point as a67_0x1c6573}from'ol/geom';class Point extends a67_0x1c6573{constructor(_0x38eabe){var _0x55f467=a67_0x18ee;super([]),this[_0x55f467(0x109)]='Point',this[_0x55f467(0xf5)]=_0x38eabe,this['setPoints'](_0x38eabe);}['getPlotType'](){var _0x224e8d=a67_0x18ee;return this[_0x224e8d(0x109)];}[a67_0x2b85d1(0xf1)](){var _0x12b9d7=a67_0x2b85d1;this[_0x12b9d7(0x100)](this[_0x12b9d7(0xf5)][0x0]);}[a67_0x2b85d1(0xfb)](_0x3a3848){var _0x5109d4=a67_0x2b85d1;if(_0x3a3848&&_0x3a3848 instanceof Map)this[_0x5109d4(0xfc)]=_0x3a3848;else throw new Error(_0x5109d4(0xf6));}[a67_0x2b85d1(0xfd)](){var _0x59ebb5=a67_0x2b85d1;return this[_0x59ebb5(0xfc)];}[a67_0x2b85d1(0x106)](){return!![];}[a67_0x2b85d1(0x107)](_0x189b51){var _0x21e884=a67_0x2b85d1;_0x189b51&&_0x189b51[_0x21e884(0xf4)]>=0x1&&(this[_0x21e884(0xf5)]=_0x189b51,this['generate']());}['getPoints'](){var _0xce34b4=a67_0x2b85d1;return this[_0xce34b4(0xf5)];}[a67_0x2b85d1(0xf9)](_0x287627,_0xb36d63){var _0x58a54c=a67_0x2b85d1;_0xb36d63>=0x0&&_0xb36d63<this[_0x58a54c(0xf5)][_0x58a54c(0xf4)]&&(this['points'][_0xb36d63]=_0x287627,this[_0x58a54c(0xf1)]());}[a67_0x2b85d1(0xfa)](_0x2d9b79){var _0x4933b0=a67_0x2b85d1;this[_0x4933b0(0xf9)](_0x2d9b79,this[_0x4933b0(0xf5)]['length']-0x1);}[a67_0x2b85d1(0x104)](){}[a67_0x2b85d1(0x10a)](_0x5cd7d7){var _0x4bdaa4=a67_0x2b85d1;this[_0x4bdaa4(0xf2)]=JSON[_0x4bdaa4(0xf8)](JSON['stringify'](_0x5cd7d7));}}export default Point;function a67_0x2edf(){var _0x528f9a=['14qBYqAb','2888ucvPeL','finishDrawing','57GYzfMM','isPlot','setPoints','1684ooJMYT','type','setStyle','932220bkUvSH','3447675kKXjmJ','generate','style','280188Qouqus','length','points','传入的不是地图对象!','1085wLjCoY','parse','updatePoint','updateLastPoint','setMap','map','getMap','12218LevUBP','163627QTfhvM','setCoordinates','3870DFtIue'];a67_0x2edf=function(){return _0x528f9a;};return a67_0x2edf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a68_0x4ca885=a68_0x4a78;(function(_0x66785a,_0x4185de){var _0x21f708=a68_0x4a78,_0x442651=_0x66785a();while(!![]){try{var _0x8571f9=-parseInt(_0x21f708(0x131))/0x1*(parseInt(_0x21f708(0x146))/0x2)+parseInt(_0x21f708(0x142))/0x3+-parseInt(_0x21f708(0x130))/0x4*(-parseInt(_0x21f708(0x141))/0x5)+parseInt(_0x21f708(0x144))/0x6+-parseInt(_0x21f708(0x12e))/0x7*(-parseInt(_0x21f708(0x13e))/0x8)+parseInt(_0x21f708(0x145))/0x9+-parseInt(_0x21f708(0x135))/0xa;if(_0x8571f9===_0x4185de)break;else _0x442651['push'](_0x442651['shift']());}catch(_0x7efd6){_0x442651['push'](_0x442651['shift']());}}}(a68_0x45f3,0xb82f7));import{Polygon}from'ol/geom';import a68_0x3ad675 from'ol/format/GeoJSON';function a68_0x4a78(_0x506f45,_0x153367){var _0x45f3a2=a68_0x45f3();return a68_0x4a78=function(_0x4a7846,_0x45002b){_0x4a7846=_0x4a7846-0x12e;var _0x126828=_0x45f3a2[_0x4a7846];return _0x126828;},a68_0x4a78(_0x506f45,_0x153367);}import a68_0x2cc0c3 from'../../../mapView/Map';class BasePolygon extends Polygon{constructor(){var _0x2f1011=a68_0x4a78;super([]),this[_0x2f1011(0x13a)]=[];}[a68_0x4ca885(0x139)](){var _0x1f5d00=a68_0x4ca885;return this[_0x1f5d00(0x133)]?this['type']:super[_0x1f5d00(0x139)]();}[a68_0x4ca885(0x134)](){return new a68_0x3ad675()['writeGeometryObject'](this);}[a68_0x4ca885(0x13b)](_0x5a8908){var _0xa91e45=a68_0x4ca885;_0x5a8908&&(this[_0xa91e45(0x13c)]=JSON['parse'](JSON[_0xa91e45(0x132)](_0x5a8908)));}['setMap'](_0x462c93){var _0x149d48=a68_0x4ca885;if(_0x462c93&&_0x462c93 instanceof a68_0x2cc0c3)this['map']=_0x462c93;else throw new Error(_0x149d48(0x140));}[a68_0x4ca885(0x12f)](){var _0x45b3ec=a68_0x4ca885;return this[_0x45b3ec(0x13f)];}[a68_0x4ca885(0x138)](){return!![];}[a68_0x4ca885(0x143)](_0x3916a2){var _0x173860=a68_0x4ca885;this['points']=!_0x3916a2?[]:_0x3916a2,this[_0x173860(0x13a)][_0x173860(0x13d)]>=0x1&&this[_0x173860(0x137)]();}[a68_0x4ca885(0x137)](){}['getPoints'](){var _0x126601=a68_0x4ca885;return this[_0x126601(0x13a)]['slice'](0x0);}[a68_0x4ca885(0x136)](){var _0x3dbbb9=a68_0x4ca885;return this['points'][_0x3dbbb9(0x13d)];}['finishDrawing'](){}}export default BasePolygon;function a68_0x45f3(){var _0x4cb5bd=['279420PfJWVm','1429296qRlDhv','setPoints','3434130lmkneC','9974853Vwfsan','4sRVyPC','2646385XEFomX','getMap','76xnbZIz','105179TwIjvB','stringify','type','getGeoJson','33882840PIODbl','getPointCount','generate','isPlot','getType','points','setStyle','style','length','24jGxjhP','map','传入的不是地图对象!'];a68_0x45f3=function(){return _0x4cb5bd;};return a68_0x45f3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x418950=a69_0x240c;(function(_0x3748ac,_0x21c864){const _0x16f88e=a69_0x240c,_0x111532=_0x3748ac();while(!![]){try{const _0x482c1f=parseInt(_0x16f88e(0x188))/0x1*(parseInt(_0x16f88e(0x18d))/0x2)+-parseInt(_0x16f88e(0x18e))/0x3+parseInt(_0x16f88e(0x185))/0x4*(-parseInt(_0x16f88e(0x186))/0x5)+parseInt(_0x16f88e(0x194))/0x6+parseInt(_0x16f88e(0x193))/0x7+parseInt(_0x16f88e(0x192))/0x8+parseInt(_0x16f88e(0x189))/0x9;if(_0x482c1f===_0x21c864)break;else _0x111532['push'](_0x111532['shift']());}catch(_0x2cdcbe){_0x111532['push'](_0x111532['shift']());}}}(a69_0x4056,0x30139));function a69_0x240c(_0x4d1ffa,_0x29e7bc){const _0x4056b2=a69_0x4056();return a69_0x240c=function(_0x240c9c,_0x5aa7c7){_0x240c9c=_0x240c9c-0x185;let _0xb045e5=_0x4056b2[_0x240c9c];return _0xb045e5;},a69_0x240c(_0x4d1ffa,_0x29e7bc);}import{Circle as a69_0x3ce69f}from'ol/geom';import a69_0x599c0d from'ol/format/GeoJSON';import{offset}from'ol/sphere';import{squaredDistance as a69_0xd98956}from'ol/coordinate';import{fromCircle}from'ol/geom/Polygon';import{compareArray}from'../../../utils/ArrayUtil';class Circle extends a69_0x3ce69f{constructor(_0x37485f){const _0x62222d=a69_0x240c;super([]),this[_0x62222d(0x195)]=_0x37485f,this[_0x62222d(0x18b)]=_0x62222d(0x191),_0x37485f&&_0x37485f[_0x62222d(0x198)]>0x0&&this['setPoints'](_0x37485f);}['setPoints'](_0x9bd70){const _0x31be21=a69_0x240c;var _0x3c4564;((_0x3c4564=this[_0x31be21(0x195)])===null||_0x3c4564===void 0x0?void 0x0:_0x3c4564[_0x31be21(0x198)])>0x0&&(_0x9bd70===null||_0x9bd70===void 0x0?void 0x0:_0x9bd70[_0x31be21(0x198)])>0x0&&!compareArray(this[_0x31be21(0x195)][0x0],_0x9bd70[0x0])?this[_0x31be21(0x187)](_0x9bd70[0x0]):(this[_0x31be21(0x195)]=!_0x9bd70?[]:_0x9bd70,this[_0x31be21(0x195)][_0x31be21(0x198)]>=0x1&&(this[_0x31be21(0x18f)]&&this[_0x31be21(0x18f)]()));}[a69_0x418950(0x18f)](){const _0x2c3112=a69_0x418950;let _0x44539b=this[_0x2c3112(0x195)][_0x2c3112(0x198)];if(_0x44539b<0x2)return![];else{const _0x4a1d75=this[_0x2c3112(0x195)][0x0],_0x541d1d=a69_0xd98956(_0x4a1d75,this['points'][0x1]);this[_0x2c3112(0x18c)](_0x4a1d75,Math['sqrt'](_0x541d1d));}}[a69_0x418950(0x187)](_0x592633){const _0x10ece9=a69_0x418950;this['setCenter'](_0x592633),this[_0x10ece9(0x195)]=[_0x592633,offset(_0x592633,this['getRadius'](),this[_0x10ece9(0x196)](0x5a))],this[_0x10ece9(0x18f)]();}[a69_0x418950(0x196)](_0x2031b9){return _0x2031b9*Math['PI']/0xb4;}[a69_0x418950(0x197)](){return new a69_0x599c0d()['writeGeometryObject'](fromCircle(this));}['updatePoint'](_0x150b63,_0x105193){const _0x1e237f=a69_0x418950;_0x105193>=0x0&&_0x105193<this[_0x1e237f(0x195)][_0x1e237f(0x198)]&&(this[_0x1e237f(0x195)][_0x105193]=_0x150b63,this['generate']());}[a69_0x418950(0x190)](_0x2fc054){const _0x198f47=a69_0x418950;this[_0x198f47(0x18a)](_0x2fc054,this[_0x198f47(0x195)][_0x198f47(0x198)]-0x1);}}function a69_0x4056(){const _0x4e5a60=['1395JQMSoF','setCenter','2HViXtI','2097351VmUIoS','updatePoint','type','setCenterAndRadius','47606aKtfgN','940806AteurK','generate','updateLastPoint','Circle','874608wOuRfQ','421505jXEZiK','1180608NvspHs','points','toRadians','getGeoJson','length','1956YURREj'];a69_0x4056=function(){return _0x4e5a60;};return a69_0x4056();}export default Circle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x362cc3=a70_0x4145;function a70_0x5f06(){const _0x22a88b=['14742gdLJNv','816OVsgej','stringify','Polygon','986210WGKAWm','parse','148785ccwTTI','push','length','setCoordinates','_closed','6469824PwULLr','getPointCount','generate','updatePoint','60GWRTwT','63bUfLuC','399041nMlzWg','isPlot','55415YsnHMt','updateLastPoint','1122700fGMgVw'];a70_0x5f06=function(){return _0x22a88b;};return a70_0x5f06();}(function(_0x201e8a,_0x584331){const _0x324d58=a70_0x4145,_0x5bf2da=_0x201e8a();while(!![]){try{const _0x17b6ee=parseInt(_0x324d58(0x1c9))/0x1+parseInt(_0x324d58(0x1b7))/0x2+-parseInt(_0x324d58(0x1be))/0x3*(-parseInt(_0x324d58(0x1c7))/0x4)+parseInt(_0x324d58(0x1b5))/0x5+parseInt(_0x324d58(0x1b9))/0x6*(parseInt(_0x324d58(0x1b8))/0x7)+-parseInt(_0x324d58(0x1c3))/0x8+-parseInt(_0x324d58(0x1c8))/0x9*(parseInt(_0x324d58(0x1bc))/0xa);if(_0x17b6ee===_0x584331)break;else _0x5bf2da['push'](_0x5bf2da['shift']());}catch(_0x57d879){_0x5bf2da['push'](_0x5bf2da['shift']());}}}(a70_0x5f06,0x7abd4));import a70_0xcd0d7e from'./BasePolygon';function a70_0x4145(_0x13f344,_0x172ac1){const _0x5f0613=a70_0x5f06();return a70_0x4145=function(_0x414517,_0x34a75d){_0x414517=_0x414517-0x1b5;let _0xdb364f=_0x5f0613[_0x414517];return _0xdb364f;},a70_0x4145(_0x13f344,_0x172ac1);}import{getDeepth}from'../../../utils/ArrayUtil';class Polygon extends a70_0xcd0d7e{constructor(_0x2a8a99){const _0x3468a7=a70_0x4145;super(),this['type']=_0x3468a7(0x1bb),_0x2a8a99&&_0x2a8a99['length']>0x0&&getDeepth(_0x2a8a99)==0x2?this['setPoints'](_0x2a8a99):this['setCoordinates'](_0x2a8a99);}[a70_0x362cc3(0x1c2)](_0x885069){const _0x46da57=a70_0x362cc3;let _0x2c89cc=_0x885069[0x0],_0x6e3d11=_0x885069[_0x885069[_0x46da57(0x1c0)]-0x1];return _0x2c89cc[0x0]===_0x6e3d11[0x0]&&_0x2c89cc[0x1]===_0x6e3d11[0x1]&&_0x2c89cc[0x2]===_0x6e3d11[0x2];}[a70_0x362cc3(0x1c5)](){const _0x3d3650=a70_0x362cc3;let _0x4a25d9=this[_0x3d3650(0x1c4)]();if(_0x4a25d9<0x2)return![];else{let _0x46af7f=JSON[_0x3d3650(0x1bd)](JSON[_0x3d3650(0x1ba)](this['points']));_0x4a25d9>=0x3&&(!this['_closed'](_0x46af7f)&&_0x46af7f[_0x3d3650(0x1bf)](_0x46af7f[0x0])),this[_0x3d3650(0x1c1)]([_0x46af7f]);}}[a70_0x362cc3(0x1c6)](_0x313ecd,_0x19ca79){const _0x320070=a70_0x362cc3;_0x19ca79>=0x0&&_0x19ca79<this['points'][_0x320070(0x1c0)]&&(this['points'][_0x19ca79]=_0x313ecd,this[_0x320070(0x1c5)]());}[a70_0x362cc3(0x1ca)](){return![];}[a70_0x362cc3(0x1b6)](_0x3e1b32){const _0x587a60=a70_0x362cc3;this[_0x587a60(0x1c6)](_0x3e1b32,this['points'][_0x587a60(0x1c0)]-0x1);}}export default Polygon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x295235=a71_0x4b83;(function(_0x2c4167,_0x39321e){const _0xf57637=a71_0x4b83,_0xd0f7ba=_0x2c4167();while(!![]){try{const _0x5887fe=parseInt(_0xf57637(0x145))/0x1*(parseInt(_0xf57637(0x144))/0x2)+-parseInt(_0xf57637(0x141))/0x3*(-parseInt(_0xf57637(0x13b))/0x4)+parseInt(_0xf57637(0x149))/0x5*(-parseInt(_0xf57637(0x143))/0x6)+parseInt(_0xf57637(0x14b))/0x7*(parseInt(_0xf57637(0x13a))/0x8)+-parseInt(_0xf57637(0x146))/0x9+parseInt(_0xf57637(0x14c))/0xa+-parseInt(_0xf57637(0x13e))/0xb;if(_0x5887fe===_0x39321e)break;else _0xd0f7ba['push'](_0xd0f7ba['shift']());}catch(_0x4f3b01){_0xd0f7ba['push'](_0xd0f7ba['shift']());}}}(a71_0x2c90,0x3756a));import{fromExtent}from'ol/geom/Polygon';import{boundingExtent}from'ol/extent';import a71_0x474e0f from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';function a71_0x4b83(_0x57de23,_0x13963c){const _0x2c90d0=a71_0x2c90();return a71_0x4b83=function(_0x4b8392,_0x5aab7b){_0x4b8392=_0x4b8392-0x13a;let _0x5a8ece=_0x2c90d0[_0x4b8392];return _0x5a8ece;},a71_0x4b83(_0x57de23,_0x13963c);}function a71_0x2c90(){const _0x344360=['2FniEIm','4035528vWpEyv','length','Polygon','15obUTdH','updateLastPoint','119dXHQsv','4266370aJHUHC','150032WhBWTe','8STJtjj','setCoordinates','points','1358181fkWLmc','updatePoint','generate','240447rsoBeg','type','544836Hrmust','165194gJMFhB'];a71_0x2c90=function(){return _0x344360;};return a71_0x2c90();}class RectAngle extends a71_0x474e0f{constructor(_0x14e046){const _0x4d2832=a71_0x4b83;super(),this[_0x4d2832(0x142)]=_0x4d2832(0x148),_0x14e046&&_0x14e046[_0x4d2832(0x147)]>0x0&&getDeepth(_0x14e046)==0x2?this['setPoints'](_0x14e046):this['setCoordinates'](_0x14e046);}[a71_0x295235(0x140)](){const _0x3a4a08=a71_0x295235;if(this['points'][_0x3a4a08(0x147)]===0x2){let _0x48a96d=[],_0x5e6b1f=boundingExtent(this['points']),_0x420cbd=fromExtent(_0x5e6b1f);_0x48a96d=_0x420cbd['getCoordinates'](),this[_0x3a4a08(0x13c)](_0x48a96d);}}[a71_0x295235(0x13f)](_0x5d01bb,_0x408f2d){const _0x846c7c=a71_0x295235;_0x408f2d>=0x0&&_0x408f2d<this[_0x846c7c(0x13d)]['length']&&(this[_0x846c7c(0x13d)][_0x408f2d]=_0x5d01bb,this[_0x846c7c(0x140)]());}[a71_0x295235(0x14a)](_0x51c71f){const _0x38aec9=a71_0x295235;this['updatePoint'](_0x51c71f,this['points'][_0x38aec9(0x147)]-0x1);}}export default RectAngle;
|