ym-gis-2d 1.0.37 → 1.0.38
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.d.ts +2 -0
- package/controls/SwipeLayerControl.d.ts.map +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/controls/SwipeLayerControl.js.map +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/TDTLayer.js +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a55_0x5b7c(_0x2bc315,_0x512c26){const _0x4f4600=a55_0x4f46();return a55_0x5b7c=function(_0x5b7c28,_0x3089c5){_0x5b7c28=_0x5b7c28-0x8c;let _0x2473ab=_0x4f4600[_0x5b7c28];return _0x2473ab;},a55_0x5b7c(_0x2bc315,_0x512c26);}const a55_0x29d1b2=a55_0x5b7c;function a55_0x4f46(){const _0x77b82f=['1747970RJPzso','opacity','setFilter','3211096cUweoJ','join','sublayers','1.1.0','mapIndex','getSource','layerInfo','anonymous','2012388KkAHvS','updateParams','EPSG:','loadFilter','764110sqxwzA','url','2133708bdICBt','3ySBrDT','wkid','1044000iGjopM','554002lpGFur'];a55_0x4f46=function(){return _0x77b82f;};return a55_0x4f46();}(function(_0x5b250f,_0x4c433d){const _0x32d004=a55_0x5b7c,_0x1fddf2=_0x5b250f();while(!![]){try{const _0x429e8d=parseInt(_0x32d004(0x8d))/0x1+-parseInt(_0x32d004(0x9d))/0x2+parseInt(_0x32d004(0xa0))/0x3*(-parseInt(_0x32d004(0x9f))/0x4)+parseInt(_0x32d004(0x8c))/0x5+parseInt(_0x32d004(0x99))/0x6+-parseInt(_0x32d004(0x8e))/0x7+parseInt(_0x32d004(0x91))/0x8;if(_0x429e8d===_0x4c433d)break;else _0x1fddf2['push'](_0x1fddf2['shift']());}catch(_0x4445fb){_0x1fddf2['push'](_0x1fddf2['shift']());}}}(a55_0x4f46,0x51a3b));import{ImageWMS as a55_0x72acd3}from'ol/source';import{Image as a55_0x19c45b}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisWMSLayer extends a55_0x19c45b{constructor(_0x249b5b,_0x26976c){const _0x26b691=a55_0x5b7c;var _0x2bdad2;let _0x463f00=registerProj(_0x26b691(0x9b)+_0x26976c[_0x26b691(0xa1)],undefined),_0x3a68ba={'LAYERS':(_0x2bdad2=_0x249b5b[_0x26b691(0x93)])===null||_0x2bdad2===void 0x0?void 0x0:_0x2bdad2[_0x26b691(0x92)](','),'VERSION':_0x26b691(0x94)};_0x249b5b[_0x26b691(0x9c)]&&(_0x3a68ba['CQL_FILTER']=_0x249b5b[_0x26b691(0x9c)]),super({'opacity':_0x249b5b[_0x26b691(0x8f)],'zIndex':_0x249b5b[_0x26b691(0x95)],'source':new a55_0x72acd3({'crossOrigin':_0x26b691(0x98),'url':_0x249b5b[_0x26b691(0x9e)],'params':_0x3a68ba})}),this['id']=_0x249b5b['id'],this['initialExtent']=_0x26976c['initExtent'],this['projection']=_0x463f00,this[_0x26b691(0x97)]=_0x249b5b;}['refresh'](){}[a55_0x29d1b2(0x90)](_0x214bd2){const _0x20d92b=a55_0x29d1b2;var _0x24c83;(_0x24c83=this[_0x20d92b(0x96)]())===null||_0x24c83===void 0x0?void 0x0:_0x24c83[_0x20d92b(0x9a)]({'CQL_FILTER':_0x214bd2});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29fece,_0x1974bc){const _0x5abda6=a56_0x2345,_0x3bacc0=_0x29fece();while(!![]){try{const _0x23c514=parseInt(_0x5abda6(0xb1))/0x1*(-parseInt(_0x5abda6(0x98))/0x2)+parseInt(_0x5abda6(0x99))/0x3+parseInt(_0x5abda6(0xa3))/0x4+-parseInt(_0x5abda6(0xa7))/0x5*(-parseInt(_0x5abda6(0x9a))/0x6)+-parseInt(_0x5abda6(0xa6))/0x7+parseInt(_0x5abda6(0x93))/0x8*(-parseInt(_0x5abda6(0xa5))/0x9)+parseInt(_0x5abda6(0xb5))/0xa;if(_0x23c514===_0x1974bc)break;else _0x3bacc0['push'](_0x3bacc0['shift']());}catch(_0x4bc209){_0x3bacc0['push'](_0x3bacc0['shift']());}}}(a56_0xbd8f,0xae85d));import a56_0x166c4c from'ol/layer/Tile';function a56_0xbd8f(){const _0x20f8f6=['396378CdkAEV','4285542QJXIjw','62478zjmAJF','layer','sublayers','indexOf','wkid','name','EPSG:','matrixSet','length','530624TObMcw','getResolutions','261THcQQt','3088176pygGob','120DZPVUh','opacity','tileGrid','mapIndex','url','join','boundingBoxExtent','projection','?http','origins_','5meFBxa','style','src','getImage','14592780IhoimD','initialExtent','309904zgcHlR','urls','layerInfo','tileMatrixSet','requestEncoding'];a56_0xbd8f=function(){return _0x20f8f6;};return a56_0xbd8f();}import a56_0x36ff53,{optionsFromCapabilities}from'ol/source/WMTS.js';import a56_0x34da04 from'ol/tilegrid/WMTS';function a56_0x2345(_0x1d7862,_0x4af29d){const _0xbd8f21=a56_0xbd8f();return a56_0x2345=function(_0x23459d,_0x2f8db0){_0x23459d=_0x23459d-0x93;let _0x22c846=_0xbd8f21[_0x23459d];return _0x22c846;},a56_0x2345(_0x1d7862,_0x4af29d);}import{registerProj}from'../utils/RegisterProjUtil';import{addArgument,getUrlParams}from'../utils/UrlUtil';export default class ArcgisWMTSLayer extends a56_0x166c4c{constructor(_0x2325cb,_0x5c5267){const _0x329cec=a56_0x2345;var _0x247cf8;let _0x501b7b='';_0x2325cb[_0x329cec(0x9c)]&&_0x2325cb[_0x329cec(0x9c)][_0x329cec(0xa2)]>0x0&&(_0x501b7b=_0x2325cb[_0x329cec(0x9c)][_0x329cec(0xac)](','));const _0x1e1cc6=_0x329cec(0xa0)+_0x5c5267[_0x329cec(0x9e)];let _0x3109ad=registerProj(_0x1e1cc6);const _0x5e6027=optionsFromCapabilities(_0x5c5267['sourceXml'],{'layer':(_0x247cf8=_0x2325cb[_0x329cec(0x9c)])===null||_0x247cf8===void 0x0?void 0x0:_0x247cf8[0x0],'matrixSet':_0x5c5267[_0x329cec(0x96)],'format':'image/png'});let _0x4cc44a=_0x5e6027['tileGrid'][_0x329cec(0xb0)][0x0];_0x4cc44a[0x0]===0x5a&&_0x4cc44a[0x1]===-0xb4&&(_0x4cc44a=[_0x4cc44a[0x1],_0x4cc44a[0x0]]),super({'opacity':_0x2325cb[_0x329cec(0xa8)],'zIndex':_0x2325cb[_0x329cec(0xaa)],'source':new a56_0x36ff53({'urls':_0x5e6027[_0x329cec(0x94)],'requestEncoding':_0x5e6027[_0x329cec(0x97)],'layer':_0x5e6027[_0x329cec(0x9b)],'tileLoadFunction':function(_0x5ba73f,_0x1836d9){const _0x1de8fb=_0x329cec,_0x5a2818=_0x2325cb[_0x1de8fb(0xab)]?_0x2325cb[_0x1de8fb(0xab)]:'';let _0xf943a6=getUrlParams(_0x5a2818);if((_0xf943a6===null||_0xf943a6===void 0x0?void 0x0:_0xf943a6[_0x1de8fb(0xa2)])>0x0)for(let _0x46cb3c of _0xf943a6){_0x1836d9=addArgument(_0x1836d9,_0x46cb3c[_0x1de8fb(0x9f)],_0x46cb3c['value']);}let _0x5bc116=_0x1836d9[_0x1de8fb(0x9d)](_0x1de8fb(0xaf));_0x5bc116!==-0x1?_0x1836d9['indexOf']('token')===-0x1&&_0x1836d9[_0x1de8fb(0x9d)]('tk')===-0x1?_0x5ba73f[_0x1de8fb(0xb4)]()[_0x1de8fb(0xb3)]=_0x1836d9['replace']('&','?'):_0x5ba73f[_0x1de8fb(0xb4)]()[_0x1de8fb(0xb3)]=_0x1836d9:_0x5ba73f[_0x1de8fb(0xb4)]()[_0x1de8fb(0xb3)]=_0x1836d9;},'matrixSet':_0x5e6027[_0x329cec(0xa1)],'format':_0x5e6027['format'],'projection':_0x5e6027['projection'],'tileGrid':new a56_0x34da04({'origin':_0x4cc44a,'resolutions':_0x5e6027[_0x329cec(0xa9)][_0x329cec(0xa4)](),'matrixIds':_0x5e6027[_0x329cec(0xa9)]['getMatrixIds'](),'extent':_0x5c5267[_0x329cec(0xad)]}),'style':_0x5c5267[_0x329cec(0xb2)],'wrapX':!![]})}),this['id']=_0x2325cb['id'],this[_0x329cec(0xb6)]=_0x5c5267[_0x329cec(0xad)],this[_0x329cec(0xae)]=_0x3109ad,this[_0x329cec(0x95)]=_0x2325cb;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xba9e75,_0x50ab1e){const _0x5c662b=a57_0x59b4,_0x50eda6=_0xba9e75();while(!![]){try{const _0x5cdbd5=-parseInt(_0x5c662b(0x1f5))/0x1*(parseInt(_0x5c662b(0x1e4))/0x2)+parseInt(_0x5c662b(0x1e8))/0x3+parseInt(_0x5c662b(0x1e1))/0x4+parseInt(_0x5c662b(0x1ef))/0x5*(-parseInt(_0x5c662b(0x1ed))/0x6)+-parseInt(_0x5c662b(0x1ec))/0x7*(-parseInt(_0x5c662b(0x1fb))/0x8)+-parseInt(_0x5c662b(0x1f6))/0x9+-parseInt(_0x5c662b(0x1e0))/0xa*(-parseInt(_0x5c662b(0x1f3))/0xb);if(_0x5cdbd5===_0x50ab1e)break;else _0x50eda6['push'](_0x50eda6['shift']());}catch(_0x334441){_0x50eda6['push'](_0x50eda6['shift']());}}}(a57_0x5ac7,0xe5b45));function a57_0x59b4(_0x149782,_0x26d62d){const _0x5ac7b9=a57_0x5ac7();return a57_0x59b4=function(_0x59b4e9,_0x188599){_0x59b4e9=_0x59b4e9-0x1dc;let _0x3fb370=_0x5ac7b9[_0x59b4e9];return _0x3fb370;},a57_0x59b4(_0x149782,_0x26d62d);}import a57_0x4b0585 from'ol/layer/VectorTile';function a57_0x5ac7(){const _0x97e186=['sourceXml','WMTS','getResolutions','408NfbrIw','sublayers','tileSizes_','url','initialExtent','tileMatrixSet','{x}','origins_',':{z}','280OPmplU','1668440KgKmau','GetTile','layerInfo','2702gHwfJM','1.0.0','{y}','wkid','2207385oFRKeG','mapIndex','boundingBoxExtent','getMatrixIds','110852FIzfcx','162AyJakz','toString','139500OmspWd','EPSG:','tileGrid','image/png','465487dxedLb','length','147peBNRL','11273859vLPKAh','style'];a57_0x5ac7=function(){return _0x97e186;};return a57_0x5ac7();}import a57_0x431006 from'ol/source/VectorTile';import a57_0x48e5fa from'ol/format/MVT';import{registerProj}from'../utils/RegisterProjUtil';import a57_0x4ff1ec from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a57_0x4b0585{constructor(_0x4933a5,_0x20ec34){const _0x47eb39=a57_0x59b4;var _0x2d2074;let _0xfe16a9=registerProj('EPSG:'+_0x20ec34['wkid']);const _0x11aff8=optionsFromCapabilities(_0x20ec34[_0x47eb39(0x1f8)],{'layer':(_0x2d2074=_0x4933a5[_0x47eb39(0x1fc)])===null||_0x2d2074===void 0x0?void 0x0:_0x2d2074[0x0],'matrixSet':_0x20ec34[_0x47eb39(0x1dc)],'format':_0x47eb39(0x1f2)});let _0x19b529=_0x4933a5[_0x47eb39(0x1fc)]&&_0x4933a5[_0x47eb39(0x1fc)][_0x47eb39(0x1f4)]>0x0?_0x4933a5[_0x47eb39(0x1fc)][0x0]:'';const _0x3cc691={'REQUEST':_0x47eb39(0x1e2),'SERVICE':_0x47eb39(0x1f9),'VERSION':_0x47eb39(0x1e5),'LAYER':_0x19b529,'STYLE':_0x20ec34[_0x47eb39(0x1f7)]['toString'](),'TILEMATRIX':_0x20ec34[_0x47eb39(0x1dc)]+_0x47eb39(0x1df),'TILEMATRIXSET':_0x20ec34[_0x47eb39(0x1dc)][_0x47eb39(0x1ee)](),'FORMAT':'application/vnd.mapbox-vector-tile','TILECOL':_0x47eb39(0x1dd),'TILEROW':_0x47eb39(0x1e6)};let _0x3610a1=_0x4933a5[_0x47eb39(0x1fe)]?_0x4933a5[_0x47eb39(0x1fe)]:'';for(const _0x3619e1 in _0x3cc691){_0x3610a1=addArgument(_0x3610a1,_0x3619e1,_0x3cc691[_0x3619e1]);}super({'opacity':_0x4933a5['opacity'],'zIndex':_0x4933a5[_0x47eb39(0x1e9)],'declutter':!![],'source':new a57_0x431006({'projection':_0x47eb39(0x1f0)+_0x20ec34[_0x47eb39(0x1e7)],'format':new a57_0x48e5fa(),'wrapX':!![],'extent':_0x20ec34[_0x47eb39(0x1ea)],'tileGrid':new a57_0x4ff1ec({'tileSize':_0x11aff8[_0x47eb39(0x1f1)][_0x47eb39(0x1fd)][0x0],'origin':_0x11aff8[_0x47eb39(0x1f1)][_0x47eb39(0x1de)][0x0],'resolutions':_0x11aff8[_0x47eb39(0x1f1)][_0x47eb39(0x1fa)](),'matrixIds':_0x11aff8[_0x47eb39(0x1f1)][_0x47eb39(0x1eb)]()}),'url':_0x3610a1})}),this['id']=_0x4933a5['id'],this[_0x47eb39(0x1ff)]=_0x20ec34[_0x47eb39(0x1ea)],this['projection']=_0xfe16a9,this[_0x47eb39(0x1e3)]=_0x4933a5;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a58_0xd1c2(_0x156af1,_0x373a5b){const _0x338305=a58_0x3383();return a58_0xd1c2=function(_0xd1c2f3,_0x2ec4d9){_0xd1c2f3=_0xd1c2f3-0x1c0;let _0x377210=_0x338305[_0xd1c2f3];return _0x377210;},a58_0xd1c2(_0x156af1,_0x373a5b);}const a58_0x2c3125=a58_0xd1c2;function a58_0x3383(){const _0x9e886f=['loadFilter','then','apply','5080361atqnkN','toLowerCase','param','serializeToString','filter','param字段不存在','warn','addFeatures','and','greaterThanOrEqualTo','lessThan','string','greaterThan','60NBqcMb','117208KSKlWl','initialExtent','json','not','168620dPQCkV','261HuvyzO','notEqualTo','!==','equalTo','2062755UWyCpj','read','find','1629087sGkLdZ','getCode','type','258611IWevgx','67018qDjURp','catch','2UepzOi','getSource','push','parseFilter','length','layerFields','mapIndex','lessThanOrEqualTo','type字段不存在','POST','sublayers','readFeatures','between','10vdhwtn','application/json','fieldType'];a58_0x3383=function(){return _0x9e886f;};return a58_0x3383();}(function(_0x1dc845,_0x370c5f){const _0x358d9d=a58_0xd1c2,_0x55ca98=_0x1dc845();while(!![]){try{const _0x5536c0=-parseInt(_0x358d9d(0x1db))/0x1*(-parseInt(_0x358d9d(0x1de))/0x2)+parseInt(_0x358d9d(0x1d8))/0x3+parseInt(_0x358d9d(0x1d0))/0x4+-parseInt(_0x358d9d(0x1d5))/0x5+parseInt(_0x358d9d(0x1cb))/0x6*(-parseInt(_0x358d9d(0x1dc))/0x7)+-parseInt(_0x358d9d(0x1cc))/0x8*(-parseInt(_0x358d9d(0x1d1))/0x9)+parseInt(_0x358d9d(0x1eb))/0xa*(-parseInt(_0x358d9d(0x1f1))/0xb);if(_0x5536c0===_0x370c5f)break;else _0x55ca98['push'](_0x55ca98['shift']());}catch(_0x321143){_0x55ca98['push'](_0x55ca98['shift']());}}}(a58_0x3383,0x48e24));import a58_0x2db2e4 from'ol/source/Vector';import a58_0x2ed394 from'ol/format/GeoJSON';import{Vector as a58_0x5b1ed9}from'ol/layer';import a58_0x1c69c8 from'ol/format/WFS';import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a58_0x18f065 from'../utils/format/CQL';import*as a58_0x54a023 from'ol/format/filter';export default class GeoserverWFSLayer extends a58_0x5b1ed9{constructor(_0x39acc0,_0x107f17){const _0x1ca6bf=a58_0xd1c2;let _0x153ece=registerProj('EPSG:'+_0x107f17['wkid']);const _0x3dbe46=_0x107f17[_0x1ca6bf(0x1e3)][_0x1ca6bf(0x1d7)](_0x164117=>_0x164117[_0x1ca6bf(0x1ed)]==0x6);super({'zIndex':_0x39acc0[_0x1ca6bf(0x1e4)],'source':new a58_0x2db2e4({'format':new a58_0x2ed394(),'loader':(_0x19f9d2,_0x4d9a09,_0x5034b0,_0x2c31d9,_0x242f47)=>{const _0x55b1b1=_0x1ca6bf;let _0x494ec6=_0x39acc0[_0x55b1b1(0x1ee)],_0xc8f7a1={'srsName':_0x5034b0[_0x55b1b1(0x1d9)](),'featureTypes':_0x39acc0[_0x55b1b1(0x1e8)],'bbox':_0x19f9d2,'geometryName':_0x3dbe46?_0x3dbe46['name']:'','outputFormat':_0x55b1b1(0x1ec)};_0x494ec6&&(typeof _0x494ec6===_0x55b1b1(0x1c9)?_0xc8f7a1[_0x55b1b1(0x1c2)]=new a58_0x18f065()[_0x55b1b1(0x1d6)](_0x494ec6):_0xc8f7a1[_0x55b1b1(0x1c2)]=this[_0x55b1b1(0x1e1)](_0x494ec6));var _0x3be6bb=new a58_0x1c69c8()['writeGetFeature'](_0xc8f7a1);let _0x17faf2=_0x39acc0['url']?_0x39acc0['url']:'';fetch(_0x17faf2,{'method':_0x55b1b1(0x1e7),'body':new XMLSerializer()[_0x55b1b1(0x1c1)](_0x3be6bb)})['then'](_0x4714ab=>{const _0x3f8dbe=_0x55b1b1;return _0x4714ab[_0x3f8dbe(0x1ce)]();})[_0x55b1b1(0x1ef)](_0x55a164=>{const _0x259e46=_0x55b1b1,_0x1f9e28=new a58_0x2ed394()[_0x259e46(0x1e9)](_0x55a164);let _0x21a80e=this[_0x259e46(0x1df)]();_0x21a80e&&_0x21a80e[_0x259e46(0x1c5)](_0x1f9e28);if(_0x2c31d9)_0x2c31d9(_0x1f9e28);})[_0x55b1b1(0x1dd)](()=>{const _0x5af313=_0x55b1b1;let _0x32e657=this[_0x5af313(0x1df)]();_0x32e657&&_0x32e657['removeLoadedExtent'](_0x19f9d2);if(_0x242f47)_0x242f47();});},'strategy':bbox})}),this['id']=_0x39acc0['id'],this[_0x1ca6bf(0x1cd)]=_0x107f17['initExtent'],this['projection']=_0x153ece,this['layerInfo']=_0x39acc0;}[a58_0x2c3125(0x1e1)](_0x128a63){const _0x5ee61=a58_0x2c3125;if(!_0x128a63[_0x5ee61(0x1da)]){console['warn'](_0x5ee61(0x1e6));return;}if(!_0x128a63['param']){console[_0x5ee61(0x1c4)](_0x5ee61(0x1c3));return;}let _0x59928a=[];switch(_0x128a63[_0x5ee61(0x1da)][_0x5ee61(0x1f2)]()){case _0x5ee61(0x1c6):for(let _0x1cd496=0x0;_0x1cd496<_0x128a63['param']['length'];_0x1cd496++){let _0x5d9e1d=this['parseFilter'](_0x128a63[_0x5ee61(0x1c0)][_0x1cd496]);_0x59928a[_0x5ee61(0x1e0)](_0x5d9e1d);}return a58_0x54a023[_0x5ee61(0x1c6)]['apply'](null,_0x59928a);case'or':for(let _0x2b57d0=0x0;_0x2b57d0<_0x128a63[_0x5ee61(0x1c0)][_0x5ee61(0x1e2)];_0x2b57d0++){let _0x4ddbf6=this['parseFilter'](_0x128a63[_0x5ee61(0x1c0)][_0x2b57d0]);_0x59928a[_0x5ee61(0x1e0)](_0x4ddbf6);}return a58_0x54a023['or'][_0x5ee61(0x1f0)](null,_0x59928a);case _0x5ee61(0x1cf):for(let _0x34a7dd=0x0;_0x34a7dd<_0x128a63[_0x5ee61(0x1c0)][_0x5ee61(0x1e2)];_0x34a7dd++){let _0x4b52a0=this[_0x5ee61(0x1e1)](_0x128a63[_0x5ee61(0x1c0)][_0x34a7dd]);_0x59928a[_0x5ee61(0x1e0)](_0x4b52a0);}return a58_0x54a023[_0x5ee61(0x1cf)][_0x5ee61(0x1f0)](null,_0x59928a);case'=':return a58_0x54a023[_0x5ee61(0x1d4)](_0x128a63['param'][0x0],_0x128a63['param'][0x1]);case _0x5ee61(0x1d3):return a58_0x54a023[_0x5ee61(0x1d2)](_0x128a63['param'][0x0],_0x128a63[_0x5ee61(0x1c0)][0x1]);case'>':return a58_0x54a023[_0x5ee61(0x1ca)](_0x128a63[_0x5ee61(0x1c0)][0x0],_0x128a63[_0x5ee61(0x1c0)][0x1]);case'<':return a58_0x54a023[_0x5ee61(0x1c8)](_0x128a63[_0x5ee61(0x1c0)][0x0],_0x128a63[_0x5ee61(0x1c0)][0x1]);case'>=':return a58_0x54a023[_0x5ee61(0x1c7)](_0x128a63['param'][0x0],_0x128a63[_0x5ee61(0x1c0)][0x1]);case'<=':return a58_0x54a023[_0x5ee61(0x1e5)](_0x128a63[_0x5ee61(0x1c0)][0x0],_0x128a63[_0x5ee61(0x1c0)][0x1]);case _0x5ee61(0x1ea):return a58_0x54a023['between'](_0x128a63[_0x5ee61(0x1c0)][0x0],_0x128a63[_0x5ee61(0x1c0)][0x1],_0x128a63[_0x5ee61(0x1c0)][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x59329c=a59_0x4b9c;function a59_0x30c1(){const _0x2175f8=['initExtent','anonymous','getSource','loadFilter','sublayers','89112vnzrbC','1.1.0','4710imGeWf','layerInfo','refresh','165DPQJjg','initialExtent','18834rcKGSe','41TrkZOK','mapIndex','120RbfRwp','CQL_FILTER','917950OowmAY','opacity','projection','8523ebGrmT','8wQNFxo','29666zkcjIi','58006dLckrv','77soCNmt','1100667sfQyFh','join'];a59_0x30c1=function(){return _0x2175f8;};return a59_0x30c1();}(function(_0x25bb07,_0x522390){const _0x49a2ed=a59_0x4b9c,_0x4369d0=_0x25bb07();while(!![]){try{const _0x128bed=-parseInt(_0x49a2ed(0x12b))/0x1*(parseInt(_0x49a2ed(0x134))/0x2)+parseInt(_0x49a2ed(0x137))/0x3*(parseInt(_0x49a2ed(0x133))/0x4)+parseInt(_0x49a2ed(0x128))/0x5*(parseInt(_0x49a2ed(0x12a))/0x6)+-parseInt(_0x49a2ed(0x136))/0x7*(parseInt(_0x49a2ed(0x123))/0x8)+parseInt(_0x49a2ed(0x132))/0x9*(-parseInt(_0x49a2ed(0x125))/0xa)+parseInt(_0x49a2ed(0x12f))/0xb*(parseInt(_0x49a2ed(0x12d))/0xc)+-parseInt(_0x49a2ed(0x135))/0xd;if(_0x128bed===_0x522390)break;else _0x4369d0['push'](_0x4369d0['shift']());}catch(_0x3b7678){_0x4369d0['push'](_0x4369d0['shift']());}}}(a59_0x30c1,0x77cbc));function a59_0x4b9c(_0x1b040b,_0x41f8cd){const _0x30c118=a59_0x30c1();return a59_0x4b9c=function(_0x4b9c1d,_0x3376a5){_0x4b9c1d=_0x4b9c1d-0x122;let _0x2b597f=_0x30c118[_0x4b9c1d];return _0x2b597f;},a59_0x4b9c(_0x1b040b,_0x41f8cd);}import{ImageWMS as a59_0x431cd9}from'ol/source';import{Image as a59_0x39c397}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMSLayer extends a59_0x39c397{constructor(_0x20a6eb,_0x2b14f4){const _0x3ee8c5=a59_0x4b9c;var _0x3808e0;let _0x52fadc=registerProj('EPSG:'+_0x2b14f4['wkid']),_0x1dbc20={'LAYERS':(_0x3808e0=_0x20a6eb[_0x3ee8c5(0x122)])===null||_0x3808e0===void 0x0?void 0x0:_0x3808e0[_0x3ee8c5(0x138)](','),'VERSION':_0x3ee8c5(0x124)};_0x20a6eb['loadFilter']&&(_0x1dbc20[_0x3ee8c5(0x12e)]=_0x20a6eb[_0x3ee8c5(0x13c)]),super({'opacity':_0x20a6eb[_0x3ee8c5(0x130)],'zIndex':_0x20a6eb[_0x3ee8c5(0x12c)],'source':new a59_0x431cd9({'crossOrigin':_0x3ee8c5(0x13a),'url':_0x20a6eb['url'],'params':_0x1dbc20})}),this['id']=_0x20a6eb['id'],this[_0x3ee8c5(0x129)]=_0x2b14f4[_0x3ee8c5(0x139)],this[_0x3ee8c5(0x131)]=_0x52fadc,this[_0x3ee8c5(0x126)]=_0x20a6eb;}[a59_0x59329c(0x127)](){}['setFilter'](_0x22a984){const _0x2d3fc0=a59_0x59329c;var _0x51ca58;(_0x51ca58=this[_0x2d3fc0(0x13b)]())===null||_0x51ca58===void 0x0?void 0x0:_0x51ca58['updateParams']({'CQL_FILTER':_0x22a984});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc3bf2d,_0x817930){const _0x104350=a60_0x3466,_0x5f1f80=_0xc3bf2d();while(!![]){try{const _0x10d09f=parseInt(_0x104350(0x15a))/0x1*(-parseInt(_0x104350(0x167))/0x2)+parseInt(_0x104350(0x15c))/0x3+parseInt(_0x104350(0x164))/0x4+parseInt(_0x104350(0x161))/0x5+-parseInt(_0x104350(0x15f))/0x6+parseInt(_0x104350(0x159))/0x7*(parseInt(_0x104350(0x169))/0x8)+-parseInt(_0x104350(0x162))/0x9*(parseInt(_0x104350(0x15e))/0xa);if(_0x10d09f===_0x817930)break;else _0x5f1f80['push'](_0x5f1f80['shift']());}catch(_0x24ba8e){_0x5f1f80['push'](_0x5f1f80['shift']());}}}(a60_0x5691,0x78432));function a60_0x3466(_0xaf05e8,_0x295530){const _0x56911c=a60_0x5691();return a60_0x3466=function(_0x3466fd,_0x5d165b){_0x3466fd=_0x3466fd-0x156;let _0x14eb50=_0x56911c[_0x3466fd];return _0x14eb50;},a60_0x3466(_0xaf05e8,_0x295530);}import a60_0x576d3d from'ol/layer/Tile';import a60_0xe29409,{optionsFromCapabilities}from'ol/source/WMTS.js';import{registerProj}from'../utils/RegisterProjUtil';function a60_0x5691(){const _0xa1b3b8=['EPSG:','initialExtent','779964LokBHw','opacity','48kXZpIH','sublayers','未找到投影信息','mapIndex','wkid','layerInfo','1130171MMMfMe','2ayYWLM','sourceXml','380208AYiHCr','解析元数据失败','4348640sxzpMn','3264696rixYCe','image/png','3619245AkWMhv','9diqkUs','boundingBoxExtent','1728940PMPxqV'];a60_0x5691=function(){return _0xa1b3b8;};return a60_0x5691();}export default class GeoserverWMTSLayer extends a60_0x576d3d{constructor(_0x186487,_0x7aa219){const _0x209061=a60_0x3466;var _0x2c2f3e;const _0x39e010=_0x209061(0x165)+_0x7aa219[_0x209061(0x157)];let _0x36466d=registerProj(_0x39e010);if(!_0x36466d)throw new Error(_0x209061(0x16b));const _0x2aa6b2=optionsFromCapabilities(_0x7aa219[_0x209061(0x15b)],{'layer':(_0x2c2f3e=_0x186487[_0x209061(0x16a)])===null||_0x2c2f3e===void 0x0?void 0x0:_0x2c2f3e[0x0],'matrixSet':_0x7aa219['tileMatrixSet'],'format':_0x209061(0x160)});if(!_0x2aa6b2)throw new Error(_0x209061(0x15d));super({'opacity':_0x186487[_0x209061(0x168)],'zIndex':_0x186487[_0x209061(0x156)],'source':new a60_0xe29409(_0x2aa6b2)}),this['id']=_0x186487['id'],this[_0x209061(0x166)]=_0x7aa219[_0x209061(0x163)],this['projection']=_0x36466d,this[_0x209061(0x158)]=_0x186487;}}
|
package/layers/LayerManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x356dd7=a62_0x48e2;function a62_0x48e2(_0x464d2d,_0x4703dd){const _0xda88b1=a62_0xda88();return a62_0x48e2=function(_0x48e260,_0x3fd44d){_0x48e260=_0x48e260-0x1a6;let _0x4e041a=_0xda88b1[_0x48e260];return _0x4e041a;},a62_0x48e2(_0x464d2d,_0x4703dd);}(function(_0x898d88,_0x44525a){const _0x4c3e8e=a62_0x48e2,_0x1513c4=_0x898d88();while(!![]){try{const _0x570796=-parseInt(_0x4c3e8e(0x1af))/0x1+-parseInt(_0x4c3e8e(0x1a8))/0x2+-parseInt(_0x4c3e8e(0x1ac))/0x3*(parseInt(_0x4c3e8e(0x1b0))/0x4)+parseInt(_0x4c3e8e(0x1aa))/0x5+parseInt(_0x4c3e8e(0x1b4))/0x6+-parseInt(_0x4c3e8e(0x1a7))/0x7+parseInt(_0x4c3e8e(0x1b6))/0x8;if(_0x570796===_0x44525a)break;else _0x1513c4['push'](_0x1513c4['shift']());}catch(_0x4c1009){_0x1513c4['push'](_0x1513c4['shift']());}}}(a62_0xda88,0xc0176));function a62_0xda88(){const _0x1158f5=['1116241TpKmJL','2433558HhfDtY','sublayers','7590135sMwBMI','getGeoserverVectorTileLayer','3jKpwes','length','getGeoserverWmsLayer','361942XijaGd','1278428uLtagC','push','getTDTLayer','getDynamicLayer','2398404AorTUT','url','7414688dnKpVe','getArcgisTileLayer','getArcgisWMTSLayer','getArcgisWmsLayer'];a62_0xda88=function(){return _0x1158f5;};return a62_0xda88();}import a62_0x53d365 from'./ArcgisDynamicLayer';import a62_0x32abbf from'./ArcgisFeatureLayer';import a62_0x5db8a4 from'./TDTLayer';import{getDynamicLayerInfo,getWMTSLayerCapabilities,getFeatureLayerInfo,getWMSLayerCapabilities,getWFSLayerCapabilities}from'../capabilities';import a62_0x2f7132 from'./ArcgisTileLayer';import a62_0xdc315 from'./GeoserverWMSLayer';import a62_0x1bc3bf from'./GeoserverWMTSLayer';import a62_0x4f66ba from'./ArcgisWMSLayer';import a62_0x5e2ae1 from'./ArcgisWMTSLayer';import a62_0x1ae875 from'./GeoserverWFSLayer';import a62_0x402788 from'./GeoserverVectorTile';export default class LayerManagement{static async[a62_0x356dd7(0x1b3)](_0x37a74f){const _0x967fd8=a62_0x356dd7,_0x354df8=await getDynamicLayerInfo(_0x37a74f['url']?_0x37a74f[_0x967fd8(0x1b5)]:'');let _0x2b0bbc=new a62_0x53d365(_0x37a74f,_0x354df8);return _0x2b0bbc;}static async[a62_0x356dd7(0x1b7)](_0x376347){const _0x17c76a=a62_0x356dd7,_0x39e357=await getDynamicLayerInfo(_0x376347[_0x17c76a(0x1b5)]?_0x376347['url']:'');let _0x5e53d5=new a62_0x2f7132(_0x376347,_0x39e357);return _0x5e53d5;}static async['getArcgisFeatureLayer'](_0x17989a){const _0x58ee7e=a62_0x356dd7,_0x3e2c0d=await getDynamicLayerInfo(_0x17989a['url']?_0x17989a[_0x58ee7e(0x1b5)]:'');let _0xe852c6=[];if(_0x17989a['sublayers'])for(let _0x140197=0x0;_0x140197<_0x17989a[_0x58ee7e(0x1a9)][_0x58ee7e(0x1ad)];_0x140197++){const _0x298f3a=_0x17989a[_0x58ee7e(0x1a9)][_0x140197];_0xe852c6[_0x58ee7e(0x1b1)](await getFeatureLayerInfo(_0x17989a['url']?_0x17989a[_0x58ee7e(0x1b5)]:'',_0x298f3a));}let _0x509a56=new a62_0x32abbf(_0x17989a,_0x3e2c0d,_0xe852c6);return _0x509a56;}static async[a62_0x356dd7(0x1a6)](_0x5e9067){const _0x83980c=a62_0x356dd7;var _0x4103a5;const _0x264bee=(_0x4103a5=_0x5e9067[_0x83980c(0x1a9)])===null||_0x4103a5===void 0x0?void 0x0:_0x4103a5[0x0],_0x1aa2c2=await getWMSLayerCapabilities(_0x5e9067[_0x83980c(0x1b5)]?_0x5e9067[_0x83980c(0x1b5)]:'',_0x264bee==null?'':_0x264bee);let _0x1ddd84=new a62_0x4f66ba(_0x5e9067,_0x1aa2c2);return _0x1ddd84;}static async[a62_0x356dd7(0x1b8)](_0x4df267){const _0xc4bbaf=a62_0x356dd7;var _0x5260f0;const _0x4c1b4d=(_0x5260f0=_0x4df267[_0xc4bbaf(0x1a9)])===null||_0x5260f0===void 0x0?void 0x0:_0x5260f0[0x0],_0x588643=await getWMTSLayerCapabilities(_0x4df267['url']?_0x4df267[_0xc4bbaf(0x1b5)]:'',_0x4c1b4d==null?'':_0x4c1b4d);let _0x4ddf37=new a62_0x5e2ae1(_0x4df267,_0x588643);return _0x4ddf37;}static async[a62_0x356dd7(0x1ae)](_0x3f341f){const _0x40c2d1=a62_0x356dd7;var _0x168ece;const _0xb73ba7=(_0x168ece=_0x3f341f[_0x40c2d1(0x1a9)])===null||_0x168ece===void 0x0?void 0x0:_0x168ece[0x0],_0x391c2d=await getWMSLayerCapabilities(_0x3f341f['url']?_0x3f341f[_0x40c2d1(0x1b5)]:'',_0xb73ba7==null?'':_0xb73ba7);let _0x4ac494=new a62_0xdc315(_0x3f341f,_0x391c2d);return _0x4ac494;}static async['getGeoserverWMTSLayer'](_0x12f2ee){const _0x49409b=a62_0x356dd7;var _0x49b5a8;const _0x5f49b1=(_0x49b5a8=_0x12f2ee['sublayers'])===null||_0x49b5a8===void 0x0?void 0x0:_0x49b5a8[0x0],_0x3755f2=await getWMTSLayerCapabilities(_0x12f2ee[_0x49409b(0x1b5)]?_0x12f2ee['url']:'',_0x5f49b1==null?'':_0x5f49b1);let _0x30402e=new a62_0x1bc3bf(_0x12f2ee,_0x3755f2);return _0x30402e;}static async['getGeoserverWFSLayer'](_0x714434){const _0xfebba4=a62_0x356dd7;var _0x4ce59e;const _0x9bfad6=(_0x4ce59e=_0x714434[_0xfebba4(0x1a9)])===null||_0x4ce59e===void 0x0?void 0x0:_0x4ce59e[0x0],_0x459009=await getWFSLayerCapabilities(_0x714434[_0xfebba4(0x1b5)]?_0x714434[_0xfebba4(0x1b5)]:'',_0x9bfad6==null?'':_0x9bfad6);let _0x2e09be=new a62_0x1ae875(_0x714434,_0x459009);return _0x2e09be;}static async[a62_0x356dd7(0x1ab)](_0x3b199c){const _0x1df6bb=a62_0x356dd7;var _0x425e1a;const _0x4ab05d=(_0x425e1a=_0x3b199c['sublayers'])===null||_0x425e1a===void 0x0?void 0x0:_0x425e1a[0x0],_0x48271d=await getWMTSLayerCapabilities(_0x3b199c[_0x1df6bb(0x1b5)]?_0x3b199c[_0x1df6bb(0x1b5)]:'',_0x4ab05d==null?'':_0x4ab05d);let _0x1913e6=new a62_0x402788(_0x3b199c,_0x48271d);return _0x1913e6;}static async[a62_0x356dd7(0x1b2)](_0x5aa536){const _0x546e3d=a62_0x356dd7;var _0x39329b;const _0x14c47b=(_0x39329b=_0x5aa536['sublayers'])===null||_0x39329b===void 0x0?void 0x0:_0x39329b[0x0],_0x30f2c0=await getWMTSLayerCapabilities(_0x5aa536[_0x546e3d(0x1b5)]?_0x5aa536['url']:'',_0x14c47b==null?'':_0x14c47b);let _0x2201f5=new a62_0x5db8a4(_0x5aa536,_0x30f2c0);return _0x2201f5;}}
|
package/layers/TDTLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a63_0x36d3(){const _0x1207df=['9417pDBxsZ','opacity','699528mlURuS','658zwBqlm','32tCYXja','804Pdjufd','1127997ByeaMY','projection','16235450VcNHNB','format','31915FTzSJm','1265084FuVCoB','8796410xksrRl','style','join','tileMatrixSet','layerInfo','mapIndex','EPSG:4490','length','KVP','sublayers'];a63_0x36d3=function(){return _0x1207df;};return a63_0x36d3();}(function(_0x2ab75f,_0x2aeae6){const _0x2a8107=a63_0x4b28,_0x1ed940=_0x2ab75f();while(!![]){try{const _0x4b3e6e=-parseInt(_0x2a8107(0xa3))/0x1+parseInt(_0x2a8107(0xa4))/0x2*(parseInt(_0x2a8107(0xa1))/0x3)+parseInt(_0x2a8107(0x96))/0x4+-parseInt(_0x2a8107(0x95))/0x5*(parseInt(_0x2a8107(0xa6))/0x6)+-parseInt(_0x2a8107(0x97))/0x7+-parseInt(_0x2a8107(0xa5))/0x8*(-parseInt(_0x2a8107(0xa7))/0x9)+parseInt(_0x2a8107(0x93))/0xa;if(_0x4b3e6e===_0x2aeae6)break;else _0x1ed940['push'](_0x1ed940['shift']());}catch(_0x232d45){_0x1ed940['push'](_0x1ed940['shift']());}}}(a63_0x36d3,0xa1b7f));import a63_0x26569d from'ol/layer/Tile';import{WMTS as a63_0x2e0c8f}from'ol/source';function a63_0x4b28(_0x4f5c01,_0x7e5130){const _0x36d34d=a63_0x36d3();return a63_0x4b28=function(_0x4b28fb,_0x4ba82d){_0x4b28fb=_0x4b28fb-0x93;let _0x55585c=_0x36d34d[_0x4b28fb];return _0x55585c;},a63_0x4b28(_0x4f5c01,_0x7e5130);}import a63_0x1b99c0 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{getWidth,getTopLeft}from'ol/extent';export default class TDTLayer extends a63_0x26569d{constructor(_0x25046d,_0x51edab){const _0x350fda=a63_0x4b28;let _0x16c7ba='';_0x25046d['sublayers']&&_0x25046d[_0x350fda(0xa0)][_0x350fda(0x9e)]>0x0&&(_0x16c7ba=_0x25046d[_0x350fda(0xa0)][_0x350fda(0x99)](','));const _0x101833=_0x350fda(0x9d);let _0x13a849=registerProj(_0x101833);const _0x47057f=[],_0x4f6d73=[];for(let _0x22a966=0x1;_0x22a966<0x13;_0x22a966++){_0x47057f[_0x22a966]=getWidth(_0x51edab['boundingBoxExtent'])/(0x100*Math['pow'](0x2,_0x22a966)),_0x4f6d73[_0x22a966]=_0x22a966+'';}super({'opacity':_0x25046d[_0x350fda(0xa2)],'zIndex':_0x25046d[_0x350fda(0x9c)],'source':new a63_0x2e0c8f({'style':_0x51edab[_0x350fda(0x98)],'url':_0x25046d['url'],'tileGrid':new a63_0x1b99c0({'origin':getTopLeft(_0x51edab['boundingBoxExtent']),'resolutions':_0x47057f,'matrixIds':_0x4f6d73}),'layer':_0x16c7ba,'matrixSet':_0x51edab[_0x350fda(0x9a)],'version':'1.0.0','format':_0x51edab[_0x350fda(0x94)][0x0],'projection':_0x101833,'requestEncoding':_0x350fda(0x9f)})}),this['id']=_0x25046d['id'],this['initialExtent']=_0x51edab['boundingBoxExtent'],this[_0x350fda(0xa8)]=_0x13a849,this[_0x350fda(0x9b)]=_0x25046d;}}
|
package/mapView/Map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a64_0x2652b9=a64_0x1ad2;(function(_0x3220d0,_0x239fcc){const _0x295063=a64_0x1ad2,_0x19f64d=_0x3220d0();while(!![]){try{const _0x3f1ddb=parseInt(_0x295063(0x109))/0x1+parseInt(_0x295063(0x143))/0x2+parseInt(_0x295063(0x12c))/0x3*(parseInt(_0x295063(0x11b))/0x4)+-parseInt(_0x295063(0xe9))/0x5*(parseInt(_0x295063(0x104))/0x6)+parseInt(_0x295063(0xf3))/0x7+parseInt(_0x295063(0x13e))/0x8*(parseInt(_0x295063(0x113))/0x9)+-parseInt(_0x295063(0xf6))/0xa*(parseInt(_0x295063(0x10b))/0xb);if(_0x3f1ddb===_0x239fcc)break;else _0x19f64d['push'](_0x19f64d['shift']());}catch(_0x757a82){_0x19f64d['push'](_0x19f64d['shift']());}}}(a64_0x48a4,0x20edd));import'ol/ol.css';import'../assets/main.css';import a64_0x1f9eef from'ol/Map';import a64_0x58f43e from'ol/events/Event';import{defaults as a64_0x55853c}from'ol/control';import{registerProj}from'../utils/RegisterProjUtil';import{transformExtent}from'ol/proj';function a64_0x1ad2(_0x24e1ab,_0x45541e){const _0x48a493=a64_0x48a4();return a64_0x1ad2=function(_0x1ad26d,_0x9f83d5){_0x1ad26d=_0x1ad26d-0xde;let _0x11946e=_0x48a493[_0x1ad26d];return _0x11946e;},a64_0x1ad2(_0x24e1ab,_0x45541e);}import a64_0xe6b48a from'../layers/LayerManager';import a64_0x4a9b89 from'ol/layer/Vector';import a64_0x5c331c from'ol/source/Vector';import a64_0x2b3211 from'../controls/ControlManager';import a64_0x59e83c from'../entity/Feature';import a64_0x4bfcbf from'../interaction/InteractionManager';import a64_0x4bfd97 from'./View';import{expandExtent,fromWKT,fromWKTs,union}from'../utils/GeometryUtil';import a64_0x2d1cd4 from'../feature/FeatureManager';function a64_0x48a4(){const _0x5e88b2=['getSource','all','filter','EPSG:','changelayer','getTDTLayer','rgba(255,\x200,\x200,\x201)','addWKTs','interactionManager','add','getGeoserverWmsLayer','GeometryCollection','maxScale','addFeature','3095uaHzOP','maxZoom','getArcgisFeatureLayer','sortTemLayer','getLayers','setGeometry','center','resetViewProjection','getCoordinates','getTempLayerByGeoType','1708287niaACF','minResolution','polygonTempLayer','1087390jKJzsK','import','Point','addMapLayer','getArcgisTileLayer','暂不支持【','getArcgisWMTSLayer','fitLayer','getGeoserverWMTSLayer','initialExtent','getElementById','push','constrainResolution','extent','66EmpbIf','getGeoserverWFSLayer','locationGeometry','getExtent','layerTag','23790FNeXJY','getProjection','33nsngRj','length','getLineTempLayer','setProjection','locationGeometrys','getCode','controlManager','getGeoserverVectorTileLayer','376983owALAB','getLength','Polygon','layerIds','zoom','layerType','projection','getView','8tlNOnQ','_options','LineString','getMetersPerUnit','getLayerById','getPolygonTempLayer','getTempLayerById','changetype','fitLayerById','refresh','includes','addFeatures','fromType','MultiPolygon','getArray','minScale','getType','105153IVkxkm','minZoom','pointTempLayer','isSelected','tag','getLayerByLayerTag','fit','insertAt','lineTempLayer','oncontextmenu','removeLayerById','addLayer','MultiLineString','rgba(255,\x200,\x200,\x200.2)','getDynamicLayer','geoserver-wmts','getMinZoom','setResolution','16nQdNcK','flashGeometrys','addMapLayers','setStyle','getArcgisWmsLayer','92392pZaIHe','setCenter','getPointTempLayer','】服务类型','dispatchEvent','getSize','MultiPoint','arcgis-tile','layerInfo','arcgis-wms','locationWKTs','setProperties'];a64_0x48a4=function(){return _0x5e88b2;};return a64_0x48a4();}import{calculateResolution}from'../utils/ResolutionUtil';import{getStyle}from'../style/StyleManager';export class ChangeLayerEvent extends a64_0x58f43e{constructor(_0x8db434,_0x45049c,_0x1c2d2a){const _0x2bbaf3=a64_0x1ad2;super(_0x8db434),this[_0x2bbaf3(0x116)]=_0x45049c,this[_0x2bbaf3(0x122)]=_0x1c2d2a;}}export default class OLMap extends a64_0x1f9eef{constructor(_0x27f637,_0x90790c,_0x38d84d){const _0x741458=a64_0x1ad2;_0x90790c=_0x90790c?_0x90790c:{'projection':0x118a,'center':[117.22718,31.820386],'minZoom':0x0,'maxZoom':0x1c,'constrainResolution':![],'zoom':0xa};const _0x34bd21=_0x90790c[_0x741458(0x119)]?_0x741458(0xde)+_0x90790c[_0x741458(0x119)]:'EPSG:4490';_0x90790c[_0x741458(0x117)]=_0x90790c[_0x741458(0x117)]?_0x90790c[_0x741458(0x117)]:0xa,_0x90790c[_0x741458(0x12d)]=_0x90790c[_0x741458(0x12d)]?_0x90790c[_0x741458(0x12d)]:0x0,_0x90790c[_0x741458(0xea)]=_0x90790c[_0x741458(0xea)]?_0x90790c[_0x741458(0xea)]:0x1c,_0x90790c[_0x741458(0x102)]=_0x90790c[_0x741458(0x102)]?_0x90790c[_0x741458(0x102)]:![],_0x90790c[_0x741458(0xef)]=_0x90790c[_0x741458(0xef)]?_0x90790c[_0x741458(0xef)]:[117.22718,31.820386],registerProj(_0x34bd21);const _0x317dc9={'target':_0x27f637,'view':_0x38d84d?_0x38d84d:new a64_0x4bfd97({'center':_0x90790c[_0x741458(0xef)],'zoom':_0x90790c[_0x741458(0x117)],'projection':_0x34bd21,'minZoom':_0x90790c[_0x741458(0x12d)],'maxZoom':_0x90790c[_0x741458(0xea)],'minResolution':_0x90790c[_0x741458(0xf4)],'maxResolution':_0x90790c['maxResolution'],'constrainResolution':_0x90790c[_0x741458(0x102)]}),'controls':a64_0x55853c({'zoom':![]})};super(_0x317dc9);_0x90790c[_0x741458(0x103)]&&this[_0x741458(0x11a)]()[_0x741458(0x132)](_0x90790c[_0x741458(0x103)]);const _0x39a054=this['getTarget']();if(_0x39a054 instanceof HTMLElement)_0x39a054[_0x741458(0x135)]=function(_0x4b2a84){return![];};else{const _0xb23865=document[_0x741458(0x100)](_0x39a054);_0xb23865&&(_0xb23865['oncontextmenu']=function(_0x230c3b){return![];});}this[_0x741458(0xe3)]=new a64_0x4bfcbf(this),this[_0x741458(0x111)]=new a64_0x2b3211(this),this[_0x741458(0x11c)]=_0x90790c;}['getView'](){const _0x36dbc2=a64_0x1ad2;return super[_0x36dbc2(0x11a)]();}[a64_0x2652b9(0x124)](){const _0x7cc56=a64_0x2652b9;let _0x1ce97c=this[_0x7cc56(0x11a)]()['getResolution']();_0x1ce97c&&this[_0x7cc56(0x11a)]()[_0x7cc56(0x13d)](_0x1ce97c-1e-11);}[a64_0x2652b9(0xfd)](_0x317ce5){const _0x38fca1=a64_0x2652b9;var _0x5de355;this[_0x38fca1(0x11a)]()[_0x38fca1(0x132)](transformExtent(_0x317ce5[_0x38fca1(0xff)],(_0x5de355=_0x317ce5[_0x38fca1(0x119)])===null||_0x5de355===void 0x0?void 0x0:_0x5de355[_0x38fca1(0x110)](),this[_0x38fca1(0x11a)]()['getProjection']()['getCode']()));}[a64_0x2652b9(0x123)](_0x25047d){let _0x5225f6=this['getLayerById'](_0x25047d);_0x5225f6&&this['fitLayer'](_0x5225f6);}async[a64_0x2652b9(0xf9)](_0x2b6853){const _0x18c2b1=a64_0x2652b9;let _0x12227a;switch(_0x2b6853[_0x18c2b1(0x118)]){case'arcgis-feature':_0x12227a=await a64_0xe6b48a[_0x18c2b1(0xeb)](_0x2b6853);break;case'arcgis-dynamic':_0x12227a=await a64_0xe6b48a[_0x18c2b1(0x13a)](_0x2b6853);break;case _0x18c2b1(0x14a):_0x12227a=await a64_0xe6b48a[_0x18c2b1(0xfa)](_0x2b6853);break;case _0x18c2b1(0x14c):_0x12227a=await a64_0xe6b48a[_0x18c2b1(0x142)](_0x2b6853);break;case'arcgis-wmts':_0x12227a=await a64_0xe6b48a[_0x18c2b1(0xfc)](_0x2b6853);break;case'geoserver-wms':_0x12227a=await a64_0xe6b48a[_0x18c2b1(0xe5)](_0x2b6853);break;case'geoserver-wfs':_0x12227a=await a64_0xe6b48a[_0x18c2b1(0x105)](_0x2b6853);break;case _0x18c2b1(0x13b):_0x12227a=await a64_0xe6b48a[_0x18c2b1(0xfe)](_0x2b6853);break;case'geoserver-vector-tile':_0x12227a=await a64_0xe6b48a[_0x18c2b1(0x112)](_0x2b6853);break;case'tdt-c':_0x12227a=await a64_0xe6b48a[_0x18c2b1(0xe0)](_0x2b6853);break;default:throw new Error(_0x18c2b1(0xfb)+_0x2b6853[_0x18c2b1(0x118)]+_0x18c2b1(0x146));}return this['addLayer'](_0x12227a),this[_0x18c2b1(0x147)](new ChangeLayerEvent('changelayer',[_0x2b6853['id']],_0x18c2b1(0xe4))),_0x12227a;}async[a64_0x2652b9(0x140)](_0xabc933){const _0x5aa2fc=a64_0x2652b9;let _0x396619=[];const _0x29d89a=[];for(let _0x510313=0x0;_0x510313<_0xabc933[_0x5aa2fc(0x10c)];_0x510313++){const _0x2360bb=_0xabc933[_0x510313];_0x29d89a[_0x5aa2fc(0x101)](_0x2360bb['id']),_0x396619[_0x5aa2fc(0x101)](this['addMapLayer'](_0x2360bb));}const _0x125b74=await Promise[_0x5aa2fc(0x150)](_0x396619);return this['dispatchEvent'](new ChangeLayerEvent('changelayer',_0x29d89a,_0x5aa2fc(0xe4))),_0x125b74;}[a64_0x2652b9(0x137)](_0x12a580,_0x47b759=![]){const _0x4c535a=a64_0x2652b9,_0x313365=_0x12a580,_0x4b0395=this[_0x4c535a(0x11f)](_0x313365['id']);if(_0x4b0395==null){const _0x340af4=_0x313365[_0x4c535a(0x14b)]==undefined||_0x313365[_0x4c535a(0x14b)]['minScale']==undefined||_0x313365[_0x4c535a(0x14b)]['minScale']<0x0?undefined:calculateResolution(_0x313365['layerInfo'][_0x4c535a(0x12a)],this['getView']()['getProjection']()[_0x4c535a(0x11e)]()||0x0);_0x12a580['setMinResolution'](_0x340af4);const _0x2e3748=_0x313365[_0x4c535a(0x14b)]==undefined||_0x313365['layerInfo']['maxScale']==undefined||_0x313365[_0x4c535a(0x14b)][_0x4c535a(0xe7)]<0x0?undefined:calculateResolution(_0x313365[_0x4c535a(0x14b)]['maxScale'],this[_0x4c535a(0x11a)]()[_0x4c535a(0x10a)]()['getMetersPerUnit']()||0x0);_0x12a580['setMaxResolution'](_0x2e3748);const _0x1c6568=this[_0x4c535a(0xed)]()[_0x4c535a(0x129)]()[_0x4c535a(0x10c)];if(!this[_0x4c535a(0x11c)][_0x4c535a(0x119)]&&_0x1c6568==0x0&&_0x313365[_0x4c535a(0x119)]&&_0x313365['projection'][_0x4c535a(0x110)]()!=this[_0x4c535a(0x11a)]()[_0x4c535a(0x10a)]()[_0x4c535a(0x110)]()){}let _0x1f065f=_0x12a580['getZIndex']();_0x1f065f!=undefined&&_0x1f065f>_0x1c6568&&(_0x1f065f=_0x1c6568),this['getLayers']()[_0x4c535a(0x133)](_0x1f065f==undefined?_0x1c6568:_0x1f065f,_0x12a580),_0x47b759&&this[_0x4c535a(0xfd)](_0x313365);}}[a64_0x2652b9(0x136)](_0x2a2cd5){const _0xc3ad08=a64_0x2652b9,_0x41fec3=this[_0xc3ad08(0x11f)](_0x2a2cd5);_0x41fec3&&(this['removeLayer'](_0x41fec3),this[_0xc3ad08(0x147)](new ChangeLayerEvent(_0xc3ad08(0xdf),[_0x2a2cd5],'remove')));}['getLayerById'](_0x2fab2){const _0x4db14a=a64_0x2652b9;let _0xfb7965,_0x241e3c=this[_0x4db14a(0xed)]()['getArray']();for(let _0x1348ea=0x0;_0x1348ea<_0x241e3c['length'];_0x1348ea++){let _0x5b26a9=_0x241e3c[_0x1348ea]['id'];if(_0x2fab2==_0x5b26a9){_0xfb7965=_0x241e3c[_0x1348ea];break;}}return _0xfb7965;}[a64_0x2652b9(0x131)](_0x3c7d93){const _0x599d25=a64_0x2652b9;let _0x2f442d,_0x576f61=this[_0x599d25(0xed)]()[_0x599d25(0x129)]();for(let _0x49ca85=0x0;_0x49ca85<_0x576f61['length'];_0x49ca85++){const _0x166853=_0x576f61[_0x49ca85][_0x599d25(0x14b)];if(!_0x166853)continue;let _0x4603ba=_0x166853[_0x599d25(0x108)];if(_0x4603ba==_0x3c7d93){_0x2f442d=_0x576f61[_0x49ca85];break;}}return _0x2f442d;}['getLayersByIds'](_0x3b7b57){const _0x49c2a7=a64_0x2652b9;let _0x2c8be6=this[_0x49c2a7(0xed)]()[_0x49c2a7(0x129)]();return _0x2c8be6[_0x49c2a7(0x151)](_0x595da7=>_0x3b7b57[_0x49c2a7(0x125)](_0x595da7['id']));}['getTempLayerById'](_0x27653e){const _0x561b0c=a64_0x2652b9;let _0x3cae79,_0x4f39f6=this[_0x561b0c(0xed)]()[_0x561b0c(0x129)]();for(let _0x53f734=0x0;_0x53f734<_0x4f39f6[_0x561b0c(0x10c)];_0x53f734++){const _0x4f9f59=_0x4f39f6[_0x53f734];if(_0x4f9f59['id']===_0x27653e){_0x3cae79=_0x4f9f59;break;}}if(!_0x3cae79){_0x3cae79=new a64_0x4a9b89({'zIndex':0x270f,'source':new a64_0x5c331c()}),_0x3cae79['id']=_0x27653e;const _0x5cf6d4=this[_0x561b0c(0xed)]()[_0x561b0c(0x114)]();switch(_0x27653e){case _0x561b0c(0x134):this[_0x561b0c(0xed)]()[_0x561b0c(0x133)](_0x5cf6d4-0x1>-0x1?_0x5cf6d4-0x1:0x0,_0x3cae79);break;case _0x561b0c(0xf5):this[_0x561b0c(0xed)]()['insertAt'](_0x5cf6d4-0x2>-0x1?_0x5cf6d4-0x2:0x0,_0x3cae79);break;case _0x561b0c(0x12e):this[_0x561b0c(0xed)]()[_0x561b0c(0x133)](_0x5cf6d4,_0x3cae79);break;default:break;}}return _0x3cae79;}[a64_0x2652b9(0x145)](){const _0x3b8c22=a64_0x2652b9;return this[_0x3b8c22(0x121)]('pointTempLayer');}[a64_0x2652b9(0x10d)](){const _0x127268=a64_0x2652b9;return this[_0x127268(0x121)](_0x127268(0x134));}[a64_0x2652b9(0x120)](){const _0x541e36=a64_0x2652b9;return this[_0x541e36(0x121)](_0x541e36(0xf5));}[a64_0x2652b9(0xf2)](_0x5b200b){const _0x12c87e=a64_0x2652b9;let _0x4b7ec7=this['getPointTempLayer']();switch(_0x5b200b){case'Point':case _0x12c87e(0x149):_0x4b7ec7=this[_0x12c87e(0x145)]();case _0x12c87e(0x11d):case _0x12c87e(0x138):_0x4b7ec7=this[_0x12c87e(0x10d)]();case _0x12c87e(0x115):case _0x12c87e(0x128):_0x4b7ec7=this[_0x12c87e(0x120)]();}return _0x4b7ec7;}[a64_0x2652b9(0xf0)](_0x340339){const _0x49b77e=a64_0x2652b9;let _0x32efcb=this[_0x49b77e(0x11a)]()[_0x49b77e(0x13c)](),_0x34e09b=this['getView']()['getMaxZoom']();registerProj(_0x340339),this[_0x49b77e(0x11a)]()[_0x49b77e(0x10e)](_0x340339);}[a64_0x2652b9(0xec)](){const _0x545af1=a64_0x2652b9;let _0x165a14=[];_0x165a14[_0x545af1(0x101)](this[_0x545af1(0x145)]()),_0x165a14[_0x545af1(0x101)](this['getLineTempLayer']()),_0x165a14[_0x545af1(0x101)](this['getPolygonTempLayer']());const _0x4aa23c=this[_0x545af1(0xed)]()[_0x545af1(0x129)]()[_0x545af1(0x10c)];for(let _0x251c24=0x0;_0x251c24<_0x165a14['length'];_0x251c24++){const _0x148869=_0x165a14[_0x251c24];this['getLayers']()[_0x545af1(0x133)](_0x4aa23c-_0x251c24-0x1,_0x148869);}}[a64_0x2652b9(0x107)](){const _0x9c9a86=a64_0x2652b9;return this[_0x9c9a86(0x11a)]()['calculateExtent'](this[_0x9c9a86(0x148)]());}['addWKT'](_0x246509,_0x341dce,_0x4acfda,_0x47509b=!![],_0x3d8470,_0x21ac6c={'color':a64_0x2652b9(0x139),'opacity':0.2,'outlineColor':a64_0x2652b9(0xe1),'outlineWidth':0x2}){const _0x187b76=a64_0x2652b9;var _0x51f340;const _0x1ea8e0=fromWKT(_0x246509,_0x341dce,this[_0x187b76(0x11a)]()['getProjection']()['getCode']());if(!_0x1ea8e0)return;const _0x107176=this[_0x187b76(0xf2)](_0x1ea8e0[_0x187b76(0x12b)]()),_0x40f291=getStyle(_0x21ac6c),_0x25a977=new a64_0x59e83c();return _0x25a977[_0x187b76(0xee)](_0x1ea8e0),_0x25a977[_0x187b76(0x141)](_0x40f291),_0x3d8470?_0x25a977[_0x187b76(0x14e)](_0x3d8470):_0x25a977['setProperties']({}),_0x25a977[_0x187b76(0x130)]=_0x4acfda,(_0x51f340=_0x107176[_0x187b76(0x14f)]())===null||_0x51f340===void 0x0?void 0x0:_0x51f340[_0x187b76(0xe8)](_0x25a977),_0x47509b&&this[_0x187b76(0x106)](_0x1ea8e0,undefined,1.2,![]),_0x25a977;}[a64_0x2652b9(0xe2)](_0xb219eb,_0x112ed0,_0x34ad0b,_0x379163=!![],_0x3de585={'color':'rgba(255,\x200,\x200,\x200.2)','opacity':0.2,'outlineColor':a64_0x2652b9(0xe1),'outlineWidth':0x2},_0x484549){const _0x5803ed=a64_0x2652b9;var _0x501d2c;const _0x31d44c=fromWKTs(_0xb219eb,_0x112ed0,this['getView']()[_0x5803ed(0x10a)]()['getCode']());if(!_0x31d44c||_0x31d44c[_0x5803ed(0x10c)]==0x0)return;const _0x33c344=this[_0x5803ed(0xf2)](_0x31d44c[0x0][_0x5803ed(0x12b)]()),_0x21611b=getStyle(_0x3de585);let _0x229f88=[];for(const _0x4e61a7 of _0x31d44c){const _0x3d5860=new a64_0x59e83c();_0x3d5860[_0x5803ed(0xee)](_0x4e61a7),_0x3d5860[_0x5803ed(0x141)](_0x21611b),_0x484549?_0x3d5860['setProperties'](_0x484549):_0x3d5860['setProperties']({}),_0x3d5860[_0x5803ed(0x127)]=_0x5803ed(0xf7),_0x3d5860[_0x5803ed(0x12f)]=!![],_0x3d5860[_0x5803ed(0x130)]=_0x34ad0b,_0x229f88[_0x5803ed(0x101)](_0x3d5860);}return(_0x501d2c=_0x33c344[_0x5803ed(0x14f)]())===null||_0x501d2c===void 0x0?void 0x0:_0x501d2c[_0x5803ed(0x126)](_0x229f88),_0x379163&&this['locationGeometrys'](_0x31d44c,undefined,1.2,![]),_0x229f88;}['locationWKT'](_0xb2711c,_0x21137a,_0x1b404a=1.2,_0x313347=!![]){const _0x253f71=a64_0x2652b9;if(!_0xb2711c)return;let _0x231a6f=fromWKT(_0xb2711c,_0x21137a,this[_0x253f71(0x11a)]()[_0x253f71(0x10a)]()[_0x253f71(0x110)]());if(!_0x231a6f)return;this[_0x253f71(0x106)](_0x231a6f,_0x21137a,_0x1b404a,_0x313347);}[a64_0x2652b9(0x14d)](_0x147d73,_0x7eb5f9,_0x4f11c1=1.2,_0xb38823=!![]){const _0x2144e9=a64_0x2652b9;if(!_0x147d73||_0x147d73[_0x2144e9(0x10c)]===0x0)return;const _0x32bfc3=[];for(let _0x541341=0x0;_0x541341<_0x147d73[_0x2144e9(0x10c)];_0x541341++){let _0x17a4d8=_0x147d73[_0x541341],_0x849b9b=fromWKT(_0x17a4d8,_0x7eb5f9,this[_0x2144e9(0x11a)]()[_0x2144e9(0x10a)]()[_0x2144e9(0x110)]());if(!_0x849b9b)continue;_0x32bfc3['push'](_0x849b9b);}this[_0x2144e9(0x10f)](_0x32bfc3,_0x7eb5f9,_0x4f11c1,_0xb38823);}[a64_0x2652b9(0x106)](_0x54d2f5,_0x22b81c,_0x336ef6=1.2,_0x4d17e5=!![]){const _0x52e3b0=a64_0x2652b9;if(!_0x54d2f5)return;let _0x5171f4=_0x54d2f5;_0x22b81c&&(_0x5171f4=_0x54d2f5['transform'](_0x22b81c,this['getView']()[_0x52e3b0(0x10a)]()));switch(_0x5171f4[_0x52e3b0(0x12b)]()){case _0x52e3b0(0xf8):this['getView']()[_0x52e3b0(0x144)](_0x5171f4[_0x52e3b0(0xf1)]());break;case _0x52e3b0(0x115):case _0x52e3b0(0x149):case _0x52e3b0(0x138):case _0x52e3b0(0x128):case _0x52e3b0(0xe6):this['getView']()[_0x52e3b0(0x132)](expandExtent(_0x5171f4[_0x52e3b0(0x107)](),_0x336ef6));break;}if(_0x4d17e5){const _0x146e73=new a64_0x2d1cd4(this);_0x146e73[_0x52e3b0(0x13f)]([_0x5171f4],0x3);}}[a64_0x2652b9(0x10f)](_0x36baba,_0x4f1eb2,_0x172d10=1.2,_0xc1ff24=!![]){const _0x4d00a1=a64_0x2652b9;if(!_0x36baba||_0x36baba[_0x4d00a1(0x10c)]===0x0)return;let _0x3fdd89=null;for(const _0x356c7a of _0x36baba){_0x3fdd89?_0x3fdd89=union(_0x3fdd89,_0x356c7a):_0x3fdd89=_0x356c7a;}_0x3fdd89&&this[_0x4d00a1(0x106)](_0x3fdd89,_0x4f1eb2,_0x172d10,![]);if(_0xc1ff24){const _0x32f070=new a64_0x2d1cd4(this);_0x32f070[_0x4d00a1(0x13f)](_0x36baba,0x3);}}}
|
|
1
|
+
const a64_0x872a32=a64_0x413e;(function(_0x16025d,_0x8f036c){const _0x16afdb=a64_0x413e,_0x4d23fe=_0x16025d();while(!![]){try{const _0x2fe6a8=parseInt(_0x16afdb(0x20f))/0x1+-parseInt(_0x16afdb(0x1da))/0x2*(parseInt(_0x16afdb(0x1ee))/0x3)+-parseInt(_0x16afdb(0x1bb))/0x4+-parseInt(_0x16afdb(0x1e8))/0x5+-parseInt(_0x16afdb(0x1d9))/0x6*(-parseInt(_0x16afdb(0x214))/0x7)+parseInt(_0x16afdb(0x1d2))/0x8+parseInt(_0x16afdb(0x21f))/0x9;if(_0x2fe6a8===_0x8f036c)break;else _0x4d23fe['push'](_0x4d23fe['shift']());}catch(_0x1307e2){_0x4d23fe['push'](_0x4d23fe['shift']());}}}(a64_0x4389,0x346c2));import'ol/ol.css';function a64_0x4389(){const _0x40053c=['setProperties','sortTemLayer','tdt-c','371365LaXodg','getSize','arcgis-dynamic','fitLayerById','addWKT','暂不支持【','435wZaFER','LineString','flashGeometrys','fitLayer','addMapLayers','Polygon','center','import','refresh','MultiPoint','add','locationWKTs','layerInfo','geoserver-vector-tile','getProjection','zoom','getArray','fromType','layerIds','geoserver-wmts','setGeometry','getZIndex','getType','getLineTempLayer','arcgis-wmts','rgba(255,\x200,\x200,\x201)','maxZoom','dispatchEvent','filter','addFeature','minResolution','projection','getCode','231571dKRdNF','pointTempLayer','Point','getView','changetype','7TMdPME','lineTempLayer','EPSG:','maxScale','getArcgisWmsLayer','layerType','minZoom','addWKTs','tag','MultiLineString','getExtent','2656656sWGtSn','includes','getPointTempLayer','getResolution','oncontextmenu','insertAt','layerTag','MultiPolygon','getMaxZoom','interactionManager','】服务类型','getGeoserverWmsLayer','getElementById','531712AsoKqF','getTempLayerById','locationGeometrys','arcgis-feature','setMaxResolution','initialExtent','controlManager','setStyle','_options','getGeoserverVectorTileLayer','removeLayer','rgba(255,\x200,\x200,\x200.2)','getArcgisFeatureLayer','locationGeometry','getTempLayerByGeoType','length','minScale','locationWKT','changelayer','getLayerById','all','setMinResolution','addMapLayer','316672fvcrXa','constrainResolution','getSource','getLength','getTDTLayer','extent','getLayers','971814GbVpvX','4226WOblqf','push','transform','addLayer','remove','setResolution','getCoordinates','getPolygonTempLayer','fit','getArcgisWMTSLayer','arcgis-tile'];a64_0x4389=function(){return _0x40053c;};return a64_0x4389();}import'../assets/main.css';import a64_0x4cb56c from'ol/Map';import a64_0x9cdb53 from'ol/events/Event';import{defaults as a64_0x637e67}from'ol/control';function a64_0x413e(_0x3906c7,_0x4a3293){const _0x43896b=a64_0x4389();return a64_0x413e=function(_0x413ed7,_0x138270){_0x413ed7=_0x413ed7-0x1af;let _0x4587d6=_0x43896b[_0x413ed7];return _0x4587d6;},a64_0x413e(_0x3906c7,_0x4a3293);}import{registerProj}from'../utils/RegisterProjUtil';import{transformExtent}from'ol/proj';import a64_0x48c9d0 from'../layers/LayerManager';import a64_0x514183 from'ol/layer/Vector';import a64_0x34edac from'ol/source/Vector';import a64_0x4d8fca from'../controls/ControlManager';import a64_0x1b1905 from'../entity/Feature';import a64_0x64f16b from'../interaction/InteractionManager';import a64_0x10d466 from'./View';import{expandExtent,fromWKT,fromWKTs,union}from'../utils/GeometryUtil';import a64_0x308eab from'../feature/FeatureManager';import{calculateResolution}from'../utils/ResolutionUtil';import{getStyle}from'../style/StyleManager';export class ChangeLayerEvent extends a64_0x9cdb53{constructor(_0x1b1dae,_0x3e5c38,_0x162edd){const _0x3164ec=a64_0x413e;super(_0x1b1dae),this[_0x3164ec(0x200)]=_0x3e5c38,this[_0x3164ec(0x213)]=_0x162edd;}}export default class OLMap extends a64_0x4cb56c{constructor(_0x2282bd,_0x1016f0,_0x9c1f49){const _0x3d78b0=a64_0x413e;_0x1016f0=_0x1016f0?_0x1016f0:{'projection':0x118a,'center':[117.22718,31.820386],'minZoom':0x0,'maxZoom':0x1c,'constrainResolution':![],'zoom':0xa};const _0x761262=_0x1016f0[_0x3d78b0(0x20d)]?_0x3d78b0(0x216)+_0x1016f0[_0x3d78b0(0x20d)]:'EPSG:4490';_0x1016f0[_0x3d78b0(0x1fd)]=_0x1016f0[_0x3d78b0(0x1fd)]?_0x1016f0['zoom']:0xa,_0x1016f0[_0x3d78b0(0x21a)]=_0x1016f0[_0x3d78b0(0x21a)]?_0x1016f0[_0x3d78b0(0x21a)]:0x0,_0x1016f0[_0x3d78b0(0x208)]=_0x1016f0[_0x3d78b0(0x208)]?_0x1016f0[_0x3d78b0(0x208)]:0x1c,_0x1016f0['constrainResolution']=_0x1016f0[_0x3d78b0(0x1d3)]?_0x1016f0[_0x3d78b0(0x1d3)]:![],_0x1016f0[_0x3d78b0(0x1f4)]=_0x1016f0['center']?_0x1016f0[_0x3d78b0(0x1f4)]:[117.22718,31.820386],registerProj(_0x761262);const _0x162378={'target':_0x2282bd,'view':_0x9c1f49?_0x9c1f49:new a64_0x10d466({'center':_0x1016f0[_0x3d78b0(0x1f4)],'zoom':_0x1016f0[_0x3d78b0(0x1fd)],'projection':_0x761262,'minZoom':_0x1016f0[_0x3d78b0(0x21a)],'maxZoom':_0x1016f0['maxZoom'],'minResolution':_0x1016f0[_0x3d78b0(0x20c)],'maxResolution':_0x1016f0['maxResolution'],'constrainResolution':_0x1016f0['constrainResolution']}),'controls':a64_0x637e67({'zoom':![]})};super(_0x162378);_0x1016f0[_0x3d78b0(0x1d7)]&&this[_0x3d78b0(0x212)]()[_0x3d78b0(0x1e2)](_0x1016f0['extent']);const _0xab139e=this['getTarget']();if(_0xab139e instanceof HTMLElement)_0xab139e[_0x3d78b0(0x1b2)]=function(_0x5ef46d){return![];};else{const _0x1428c8=document[_0x3d78b0(0x1ba)](_0xab139e);_0x1428c8&&(_0x1428c8[_0x3d78b0(0x1b2)]=function(_0x4a036f){return![];});}this[_0x3d78b0(0x1b7)]=new a64_0x64f16b(this),this[_0x3d78b0(0x1c1)]=new a64_0x4d8fca(this),this['_options']=_0x1016f0;}[a64_0x872a32(0x212)](){const _0xa8ac5=a64_0x872a32;return super[_0xa8ac5(0x212)]();}[a64_0x872a32(0x1f6)](){const _0x3b33ee=a64_0x872a32;let _0x18d81f=this['getView']()[_0x3b33ee(0x1b1)]();_0x18d81f&&this[_0x3b33ee(0x212)]()[_0x3b33ee(0x1df)](_0x18d81f-1e-11);}[a64_0x872a32(0x1f1)](_0x4823ed){const _0x4922a1=a64_0x872a32;var _0x51014d;this[_0x4922a1(0x212)]()[_0x4922a1(0x1e2)](transformExtent(_0x4823ed[_0x4922a1(0x1c0)],(_0x51014d=_0x4823ed['projection'])===null||_0x51014d===void 0x0?void 0x0:_0x51014d[_0x4922a1(0x20e)](),this['getView']()[_0x4922a1(0x1fc)]()[_0x4922a1(0x20e)]()));}[a64_0x872a32(0x1eb)](_0x3b116b){const _0x18fbc7=a64_0x872a32;let _0x95d628=this['getLayerById'](_0x3b116b);_0x95d628&&this[_0x18fbc7(0x1f1)](_0x95d628);}async[a64_0x872a32(0x1d1)](_0x467f8d){const _0x3d9b51=a64_0x872a32;let _0x18a9c0;switch(_0x467f8d[_0x3d9b51(0x219)]){case _0x3d9b51(0x1be):_0x18a9c0=await a64_0x48c9d0[_0x3d9b51(0x1c7)](_0x467f8d);break;case _0x3d9b51(0x1ea):_0x18a9c0=await a64_0x48c9d0['getDynamicLayer'](_0x467f8d);break;case _0x3d9b51(0x1e4):_0x18a9c0=await a64_0x48c9d0['getArcgisTileLayer'](_0x467f8d);break;case'arcgis-wms':_0x18a9c0=await a64_0x48c9d0[_0x3d9b51(0x218)](_0x467f8d);break;case _0x3d9b51(0x206):_0x18a9c0=await a64_0x48c9d0[_0x3d9b51(0x1e3)](_0x467f8d);break;case'geoserver-wms':_0x18a9c0=await a64_0x48c9d0[_0x3d9b51(0x1b9)](_0x467f8d);break;case'geoserver-wfs':_0x18a9c0=await a64_0x48c9d0['getGeoserverWFSLayer'](_0x467f8d);break;case _0x3d9b51(0x201):_0x18a9c0=await a64_0x48c9d0['getGeoserverWMTSLayer'](_0x467f8d);break;case _0x3d9b51(0x1fb):_0x18a9c0=await a64_0x48c9d0[_0x3d9b51(0x1c4)](_0x467f8d);break;case _0x3d9b51(0x1e7):_0x18a9c0=await a64_0x48c9d0[_0x3d9b51(0x1d6)](_0x467f8d);break;default:throw new Error(_0x3d9b51(0x1ed)+_0x467f8d[_0x3d9b51(0x219)]+_0x3d9b51(0x1b8));}return this['addLayer'](_0x18a9c0),this[_0x3d9b51(0x209)](new ChangeLayerEvent(_0x3d9b51(0x1cd),[_0x467f8d['id']],_0x3d9b51(0x1f8))),_0x18a9c0;}async[a64_0x872a32(0x1f2)](_0x5f06f2){const _0x2c3362=a64_0x872a32;let _0x39b12b=[];const _0x269e5b=[];for(let _0x3d8ec5=0x0;_0x3d8ec5<_0x5f06f2[_0x2c3362(0x1ca)];_0x3d8ec5++){const _0x2d178e=_0x5f06f2[_0x3d8ec5];_0x269e5b[_0x2c3362(0x1db)](_0x2d178e['id']),_0x39b12b[_0x2c3362(0x1db)](this['addMapLayer'](_0x2d178e));}const _0x1f47f1=await Promise[_0x2c3362(0x1cf)](_0x39b12b);return this['dispatchEvent'](new ChangeLayerEvent('changelayer',_0x269e5b,'add')),_0x1f47f1;}[a64_0x872a32(0x1dd)](_0x9ddcc9,_0x2433c6=![]){const _0x486262=a64_0x872a32,_0x3304d6=_0x9ddcc9,_0x44c2d7=this[_0x486262(0x1ce)](_0x3304d6['id']);if(_0x44c2d7==null){const _0x46bf40=_0x3304d6[_0x486262(0x1fa)]==undefined||_0x3304d6[_0x486262(0x1fa)][_0x486262(0x1cb)]==undefined||_0x3304d6[_0x486262(0x1fa)][_0x486262(0x1cb)]<0x0?undefined:calculateResolution(_0x3304d6[_0x486262(0x1fa)][_0x486262(0x1cb)],this['getView']()[_0x486262(0x1fc)]()['getMetersPerUnit']()||0x0);_0x9ddcc9[_0x486262(0x1d0)](_0x46bf40);const _0x3fa47c=_0x3304d6[_0x486262(0x1fa)]==undefined||_0x3304d6[_0x486262(0x1fa)]['maxScale']==undefined||_0x3304d6[_0x486262(0x1fa)][_0x486262(0x217)]<0x0?undefined:calculateResolution(_0x3304d6['layerInfo'][_0x486262(0x217)],this['getView']()[_0x486262(0x1fc)]()['getMetersPerUnit']()||0x0);_0x9ddcc9[_0x486262(0x1bf)](_0x3fa47c);const _0x27b678=this[_0x486262(0x1d8)]()['getArray']()[_0x486262(0x1ca)];if(!this[_0x486262(0x1c3)][_0x486262(0x20d)]&&_0x27b678==0x0&&_0x3304d6['projection']&&_0x3304d6[_0x486262(0x20d)][_0x486262(0x20e)]()!=this[_0x486262(0x212)]()[_0x486262(0x1fc)]()[_0x486262(0x20e)]()){}let _0x293c00=_0x9ddcc9[_0x486262(0x203)]();_0x293c00!=undefined&&_0x293c00>_0x27b678&&(_0x293c00=_0x27b678),this[_0x486262(0x1d8)]()['insertAt'](_0x293c00==undefined?_0x27b678:_0x293c00,_0x9ddcc9),_0x2433c6&&this[_0x486262(0x1f1)](_0x3304d6);}}['removeLayerById'](_0x15f5ce){const _0x3f52a7=a64_0x872a32,_0x59896d=this[_0x3f52a7(0x1ce)](_0x15f5ce);_0x59896d&&(this[_0x3f52a7(0x1c5)](_0x59896d),this[_0x3f52a7(0x209)](new ChangeLayerEvent(_0x3f52a7(0x1cd),[_0x15f5ce],_0x3f52a7(0x1de))));}[a64_0x872a32(0x1ce)](_0x229f7e){const _0x2b18b9=a64_0x872a32;let _0x3a3690,_0x392536=this['getLayers']()[_0x2b18b9(0x1fe)]();for(let _0x140eac=0x0;_0x140eac<_0x392536[_0x2b18b9(0x1ca)];_0x140eac++){let _0x3b3234=_0x392536[_0x140eac]['id'];if(_0x229f7e==_0x3b3234){_0x3a3690=_0x392536[_0x140eac];break;}}return _0x3a3690;}['getLayerByLayerTag'](_0x28f324){const _0x31117e=a64_0x872a32;let _0x351f43,_0x21cdde=this[_0x31117e(0x1d8)]()[_0x31117e(0x1fe)]();for(let _0x31105c=0x0;_0x31105c<_0x21cdde[_0x31117e(0x1ca)];_0x31105c++){const _0x5a90fd=_0x21cdde[_0x31105c][_0x31117e(0x1fa)];if(!_0x5a90fd)continue;let _0x4b5ff9=_0x5a90fd[_0x31117e(0x1b4)];if(_0x4b5ff9==_0x28f324){_0x351f43=_0x21cdde[_0x31105c];break;}}return _0x351f43;}['getLayersByIds'](_0x3bbcad){const _0x3c43b5=a64_0x872a32;let _0x68ec81=this[_0x3c43b5(0x1d8)]()['getArray']();return _0x68ec81[_0x3c43b5(0x20a)](_0x1e7754=>_0x3bbcad[_0x3c43b5(0x1af)](_0x1e7754['id']));}[a64_0x872a32(0x1bc)](_0x73a0c1){const _0x51f231=a64_0x872a32;let _0x18d02a,_0x27d2db=this[_0x51f231(0x1d8)]()[_0x51f231(0x1fe)]();for(let _0x41a7c4=0x0;_0x41a7c4<_0x27d2db[_0x51f231(0x1ca)];_0x41a7c4++){const _0x2375df=_0x27d2db[_0x41a7c4];if(_0x2375df['id']===_0x73a0c1){_0x18d02a=_0x2375df;break;}}if(!_0x18d02a){_0x18d02a=new a64_0x514183({'zIndex':0x270f,'source':new a64_0x34edac()}),_0x18d02a['id']=_0x73a0c1;const _0x59f3fe=this['getLayers']()[_0x51f231(0x1d5)]();switch(_0x73a0c1){case _0x51f231(0x215):this[_0x51f231(0x1d8)]()['insertAt'](_0x59f3fe-0x1>-0x1?_0x59f3fe-0x1:0x0,_0x18d02a);break;case'polygonTempLayer':this[_0x51f231(0x1d8)]()[_0x51f231(0x1b3)](_0x59f3fe-0x2>-0x1?_0x59f3fe-0x2:0x0,_0x18d02a);break;case'pointTempLayer':this[_0x51f231(0x1d8)]()[_0x51f231(0x1b3)](_0x59f3fe,_0x18d02a);break;default:break;}}return _0x18d02a;}[a64_0x872a32(0x1b0)](){const _0x15f30a=a64_0x872a32;return this['getTempLayerById'](_0x15f30a(0x210));}[a64_0x872a32(0x205)](){const _0x43e722=a64_0x872a32;return this[_0x43e722(0x1bc)](_0x43e722(0x215));}['getPolygonTempLayer'](){const _0x2573c0=a64_0x872a32;return this[_0x2573c0(0x1bc)]('polygonTempLayer');}['getTempLayerByGeoType'](_0xca674){const _0x117bad=a64_0x872a32;let _0x296cfa=this[_0x117bad(0x1b0)]();switch(_0xca674){case _0x117bad(0x211):case _0x117bad(0x1f7):_0x296cfa=this[_0x117bad(0x1b0)]();case _0x117bad(0x1ef):case _0x117bad(0x21d):_0x296cfa=this[_0x117bad(0x205)]();case _0x117bad(0x1f3):case _0x117bad(0x1b5):_0x296cfa=this[_0x117bad(0x1e1)]();}return _0x296cfa;}['resetViewProjection'](_0x13dc9d){const _0x232041=a64_0x872a32;let _0x515bc4=this[_0x232041(0x212)]()['getMinZoom'](),_0x1c1e26=this[_0x232041(0x212)]()[_0x232041(0x1b6)]();registerProj(_0x13dc9d),this[_0x232041(0x212)]()['setProjection'](_0x13dc9d);}[a64_0x872a32(0x1e6)](){const _0x4f5394=a64_0x872a32;let _0x10c726=[];_0x10c726['push'](this[_0x4f5394(0x1b0)]()),_0x10c726['push'](this[_0x4f5394(0x205)]()),_0x10c726[_0x4f5394(0x1db)](this['getPolygonTempLayer']());const _0x1c0710=this[_0x4f5394(0x1d8)]()[_0x4f5394(0x1fe)]()[_0x4f5394(0x1ca)];for(let _0x1360cc=0x0;_0x1360cc<_0x10c726['length'];_0x1360cc++){const _0x111b59=_0x10c726[_0x1360cc];this[_0x4f5394(0x1d8)]()[_0x4f5394(0x1b3)](_0x1c0710-_0x1360cc-0x1,_0x111b59);}}[a64_0x872a32(0x21e)](){const _0x19e26d=a64_0x872a32;return this[_0x19e26d(0x212)]()['calculateExtent'](this[_0x19e26d(0x1e9)]());}[a64_0x872a32(0x1ec)](_0x2b5e21,_0x247d97,_0x2e9f2d,_0x360676=!![],_0x390cc1,_0x1246d0={'color':a64_0x872a32(0x1c6),'opacity':0.2,'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2}){const _0x5d7891=a64_0x872a32;var _0x36cf19;const _0x2262f7=fromWKT(_0x2b5e21,_0x247d97,this[_0x5d7891(0x212)]()['getProjection']()[_0x5d7891(0x20e)]());if(!_0x2262f7)return;const _0x442695=this[_0x5d7891(0x1c9)](_0x2262f7[_0x5d7891(0x204)]()),_0x412881=getStyle(_0x1246d0),_0x1fa8c4=new a64_0x1b1905();return _0x1fa8c4[_0x5d7891(0x202)](_0x2262f7),_0x1fa8c4[_0x5d7891(0x1c2)](_0x412881),_0x390cc1?_0x1fa8c4['setProperties'](_0x390cc1):_0x1fa8c4[_0x5d7891(0x1e5)]({}),_0x1fa8c4[_0x5d7891(0x21c)]=_0x2e9f2d,(_0x36cf19=_0x442695[_0x5d7891(0x1d4)]())===null||_0x36cf19===void 0x0?void 0x0:_0x36cf19[_0x5d7891(0x20b)](_0x1fa8c4),_0x360676&&this['locationGeometry'](_0x2262f7,undefined,1.2,![]),_0x1fa8c4;}[a64_0x872a32(0x21b)](_0xc05551,_0x720ab5,_0x7afb4b,_0x109c6f=!![],_0x1e13c2={'color':a64_0x872a32(0x1c6),'opacity':0.2,'outlineColor':a64_0x872a32(0x207),'outlineWidth':0x2},_0x3ec062){const _0x1ba276=a64_0x872a32;var _0x56fa6b;const _0x2f57c9=fromWKTs(_0xc05551,_0x720ab5,this['getView']()['getProjection']()['getCode']());if(!_0x2f57c9||_0x2f57c9['length']==0x0)return;const _0x205aff=this[_0x1ba276(0x1c9)](_0x2f57c9[0x0]['getType']()),_0x114535=getStyle(_0x1e13c2);let _0x12d73d=[];for(const _0x1828cd of _0x2f57c9){const _0x2f73a5=new a64_0x1b1905();_0x2f73a5['setGeometry'](_0x1828cd),_0x2f73a5[_0x1ba276(0x1c2)](_0x114535),_0x3ec062?_0x2f73a5[_0x1ba276(0x1e5)](_0x3ec062):_0x2f73a5[_0x1ba276(0x1e5)]({}),_0x2f73a5[_0x1ba276(0x1ff)]=_0x1ba276(0x1f5),_0x2f73a5['isSelected']=!![],_0x2f73a5['tag']=_0x7afb4b,_0x12d73d['push'](_0x2f73a5);}return(_0x56fa6b=_0x205aff[_0x1ba276(0x1d4)]())===null||_0x56fa6b===void 0x0?void 0x0:_0x56fa6b['addFeatures'](_0x12d73d),_0x109c6f&&this[_0x1ba276(0x1bd)](_0x2f57c9,undefined,1.2,![]),_0x12d73d;}[a64_0x872a32(0x1cc)](_0x585680,_0x222952,_0x57a25f=1.2,_0x416aa7=!![]){const _0x43ed59=a64_0x872a32;if(!_0x585680)return;let _0x401f9c=fromWKT(_0x585680,_0x222952,this[_0x43ed59(0x212)]()[_0x43ed59(0x1fc)]()[_0x43ed59(0x20e)]());if(!_0x401f9c)return;this[_0x43ed59(0x1c8)](_0x401f9c,_0x222952,_0x57a25f,_0x416aa7);}[a64_0x872a32(0x1f9)](_0x43d2b4,_0x105ac6,_0x10d381=1.2,_0x133b1d=!![]){const _0x4665b4=a64_0x872a32;if(!_0x43d2b4||_0x43d2b4[_0x4665b4(0x1ca)]===0x0)return;const _0x3555e0=[];for(let _0x4c42dc=0x0;_0x4c42dc<_0x43d2b4[_0x4665b4(0x1ca)];_0x4c42dc++){let _0x5f33e1=_0x43d2b4[_0x4c42dc],_0xa29300=fromWKT(_0x5f33e1,_0x105ac6,this['getView']()[_0x4665b4(0x1fc)]()[_0x4665b4(0x20e)]());if(!_0xa29300)continue;_0x3555e0[_0x4665b4(0x1db)](_0xa29300);}this[_0x4665b4(0x1bd)](_0x3555e0,_0x105ac6,_0x10d381,_0x133b1d);}[a64_0x872a32(0x1c8)](_0x4778a8,_0x50a36b,_0x36d962=1.2,_0x3c330e=!![]){const _0x348f0d=a64_0x872a32;if(!_0x4778a8)return;let _0x52a34b=_0x4778a8;_0x50a36b&&(_0x52a34b=_0x4778a8[_0x348f0d(0x1dc)](_0x50a36b,this[_0x348f0d(0x212)]()['getProjection']()));switch(_0x52a34b['getType']()){case'Point':this[_0x348f0d(0x212)]()['setCenter'](_0x52a34b[_0x348f0d(0x1e0)]());break;case _0x348f0d(0x1f3):case _0x348f0d(0x1f7):case _0x348f0d(0x21d):case _0x348f0d(0x1b5):case'GeometryCollection':this['getView']()[_0x348f0d(0x1e2)](expandExtent(_0x52a34b[_0x348f0d(0x21e)](),_0x36d962));break;}if(_0x3c330e){const _0xd5d179=new a64_0x308eab(this);_0xd5d179[_0x348f0d(0x1f0)]([_0x52a34b],0x3);}}[a64_0x872a32(0x1bd)](_0x387439,_0x3b8e4a,_0x1b19ca=1.2,_0x482941=!![]){const _0x96b766=a64_0x872a32;if(!_0x387439||_0x387439['length']===0x0)return;let _0x453292=null;for(const _0x443bf9 of _0x387439){_0x453292?_0x453292=union(_0x453292,_0x443bf9):_0x453292=_0x443bf9;}_0x453292&&this['locationGeometry'](_0x453292,_0x3b8e4a,_0x1b19ca,![]);if(_0x482941){const _0x33b690=new a64_0x308eab(this);_0x33b690[_0x96b766(0x1f0)](_0x387439,0x3);}}}
|
package/mapView/View.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a65_0x4a2c(_0x5e67e9,_0x4f4737){var _0x26a187=a65_0x26a1();return a65_0x4a2c=function(_0x4a2c7b,_0x4e674c){_0x4a2c7b=_0x4a2c7b-0xce;var _0x1946cf=_0x26a187[_0x4a2c7b];return _0x1946cf;},a65_0x4a2c(_0x5e67e9,_0x4f4737);}var a65_0x1a676b=a65_0x4a2c;(function(_0x472e5c,_0x55e646){var _0x29d0e0=a65_0x4a2c,_0x4713cc=_0x472e5c();while(!![]){try{var _0x5b34f6=parseInt(_0x29d0e0(0xd3))/0x1+-parseInt(_0x29d0e0(0xda))/0x2+parseInt(_0x29d0e0(0xd9))/0x3+-parseInt(_0x29d0e0(0xd7))/0x4+-parseInt(_0x29d0e0(0xd6))/0x5*(-parseInt(_0x29d0e0(0xd5))/0x6)+parseInt(_0x29d0e0(0xd1))/0x7*(-parseInt(_0x29d0e0(0xd8))/0x8)+parseInt(_0x29d0e0(0xcf))/0x9*(-parseInt(_0x29d0e0(0xd2))/0xa);if(_0x5b34f6===_0x55e646)break;else _0x4713cc['push'](_0x4713cc['shift']());}catch(_0x34acc3){_0x4713cc['push'](_0x4713cc['shift']());}}}(a65_0x26a1,0x963b8));import a65_0x440174 from'ol/View';function a65_0x26a1(){var _0x2fa00a=['1990814gKUixw','setProjection','711opGTiY','projection_','777OLpIue','28430PsPzQR','717963Phiyyk','setProperties','1177884BpGKZx','15BnbYVO','962544JAnNtw','25576ioMFaU','3371862sYAfAx'];a65_0x26a1=function(){return _0x2fa00a;};return a65_0x26a1();}import{get}from'ol/proj';export default class OLView extends a65_0x440174{constructor(_0x369866){super(_0x369866);}[a65_0x1a676b(0xce)](_0x4da93d){var _0x13929a=a65_0x1a676b;this[_0x13929a(0xd0)]=get(_0x4da93d),this[_0x13929a(0xd4)]({'projection_':get(_0x4da93d)});}}
|
package/package.json
CHANGED
package/plot/Plot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1c2ee4,_0x1cd475){const _0x4753cf=a73_0x59b8,_0x101b26=_0x1c2ee4();while(!![]){try{const _0x15e6f0=-parseInt(_0x4753cf(0x108))/0x1*(-parseInt(_0x4753cf(0x119))/0x2)+parseInt(_0x4753cf(0x112))/0x3+parseInt(_0x4753cf(0x105))/0x4+parseInt(_0x4753cf(0x103))/0x5*(parseInt(_0x4753cf(0x117))/0x6)+-parseInt(_0x4753cf(0x10c))/0x7*(parseInt(_0x4753cf(0x109))/0x8)+-parseInt(_0x4753cf(0x110))/0x9*(parseInt(_0x4753cf(0x10e))/0xa)+parseInt(_0x4753cf(0xfe))/0xb;if(_0x15e6f0===_0x1cd475)break;else _0x101b26['push'](_0x101b26['shift']());}catch(_0x2ada89){_0x101b26['push'](_0x101b26['shift']());}}}(a73_0x54fa,0x6d587));import a73_0x20a2b3 from'../entity/GeometryType';import a73_0xa82165 from'./geometry/polygon/Polygon';import{getPointSingleStyle}from'../style/PointStyleFormat';import{getPolylineStyle}from'../style/PolylineStyleFormat';function a73_0x59b8(_0x543f3b,_0x3de8c4){const _0x54fabf=a73_0x54fa();return a73_0x59b8=function(_0x59b861,_0x3cdf96){_0x59b861=_0x59b861-0xfe;let _0x3d3b10=_0x54fabf[_0x59b861];return _0x3d3b10;},a73_0x59b8(_0x543f3b,_0x3de8c4);}import{getPolygonStyle}from'../style/PolygonStyleFormat';function a73_0x54fa(){const _0x28e19d=['AssemblySite','5njOrYA','Polygon','2041968ICJbgV','assign','Curve','1SoTjvL','5064oweLzK','Point','MAX_VALUE','9681RWPPcI','text','8011180ynLDDE','Arrow','9tmXklR','ArrowAttack','2363142hjOcVD','ArrowPincerlike','Circle','Ellipse','Rectangle','116196poGVTS','PolyLine','401770ISfoiN','6665769oXhslI','toLowerCase','pointermove','SurfaceClosed'];a73_0x54fa=function(){return _0x28e19d;};return a73_0x54fa();}import a73_0x56d22b from'./geometry/polygon/RectAngle';import a73_0x34ef9a from'./geometry/polyline/Polyline';import a73_0x281245 from'./geometry/point/Point';import a73_0x896b58 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(_0x1051fb,_0x221e67){const _0xe3c8e7=a73_0x59b8;_0x1051fb=_0x1051fb['toLowerCase']();switch(_0x1051fb){case a73_0x20a2b3[_0xe3c8e7(0x10a)]:case _0xe3c8e7(0x100):return new a73_0x281245(_0x221e67);case a73_0x20a2b3[_0xe3c8e7(0x118)]:return new a73_0x34ef9a(_0x221e67);case a73_0x20a2b3[_0xe3c8e7(0x114)]:return new a73_0x896b58(_0x221e67);case a73_0x20a2b3[_0xe3c8e7(0x116)]:return new a73_0x56d22b(_0x221e67);case a73_0x20a2b3['Polygon']:return new a73_0xa82165(_0x221e67);}}export function getPlotCount(_0x4a29a8){const _0x5b717e=a73_0x59b8;_0x4a29a8=_0x4a29a8[_0x5b717e(0xff)]();let _0x1659b0={'fixPoint':0x0,'minPoint':0x0};switch(_0x4a29a8){case a73_0x20a2b3['Point']:_0x1659b0={'fixPoint':0x1,'minPoint':0x0};break;case a73_0x20a2b3[_0x5b717e(0x118)]:_0x1659b0={'fixPoint':Number[_0x5b717e(0x10b)],'minPoint':0x1};break;case a73_0x20a2b3[_0x5b717e(0x104)]:_0x1659b0={'fixPoint':Number[_0x5b717e(0x10b)],'minPoint':0x2};break;case a73_0x20a2b3[_0x5b717e(0x116)]:_0x1659b0={'fixPoint':0x2,'minPoint':0x1};break;case a73_0x20a2b3['Circle']:_0x1659b0={'fixPoint':0x2,'minPoint':0x1};break;case a73_0x20a2b3[_0x5b717e(0x107)]:_0x1659b0={'fixPoint':Number['MAX_VALUE'],'minPoint':0x1};break;case a73_0x20a2b3['Ellipse']:case a73_0x20a2b3['Ellipsoid']:_0x1659b0={'fixPoint':0x3,'minPoint':0x1};break;default:break;}return _0x1659b0;}export function getStyle(_0x5a8f73,_0x233ac6,_0x4e7432){const _0x34407c=a73_0x59b8;_0x5a8f73=_0x5a8f73['toLowerCase'](),_0x233ac6=Object[_0x34407c(0x106)](Object[_0x34407c(0x106)]({},defaultStyle),_0x233ac6);switch(_0x5a8f73){case a73_0x20a2b3[_0x34407c(0x10a)]:return function(_0x1e157f,_0x193356){return getPointSingleStyle(_0x5a8f73,_0x233ac6,_0x193356,_0x4e7432);};case a73_0x20a2b3[_0x34407c(0x118)]:case a73_0x20a2b3['Curve']:return function(_0x5345aa,_0x7cfd9b){return getPolylineStyle(_0x233ac6,'',_0x7cfd9b,_0x4e7432);};case a73_0x20a2b3[_0x34407c(0x114)]:case a73_0x20a2b3[_0x34407c(0x116)]:case a73_0x20a2b3[_0x34407c(0x115)]:case a73_0x20a2b3['Ellipsoid']:case a73_0x20a2b3[_0x34407c(0x101)]:case a73_0x20a2b3[_0x34407c(0x104)]:case a73_0x20a2b3[_0x34407c(0x111)]:case a73_0x20a2b3[_0x34407c(0x113)]:case a73_0x20a2b3[_0x34407c(0x10f)]:case a73_0x20a2b3[_0x34407c(0x102)]:return function(_0x240404,_0x42edd6){const _0x4cf678=_0x34407c;return getPolygonStyle(_0x233ac6,_0x233ac6[_0x4cf678(0x10d)],_0x42edd6,_0x4e7432);};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a66_0x59cddb=a66_0x3099;function a66_0x1478(){var _0x16caee=['length','231BanJTO','map','setCoordinates','isPlot','parse','1771hOZwtA','updatePoint','finishDrawing','13976NPLurk','points','getPoints','Point','getPlotType','setMap','setStyle','setPoints','259RsdwXy','stringify','style','generate','1769694PGnUon','45270kxDxMm','854757eEjezZ','274360mZRmZq','10CtKiNQ','3466620dtksUi','type','updateLastPoint','4060zyAlsV'];a66_0x1478=function(){return _0x16caee;};return a66_0x1478();}function a66_0x3099(_0x112ad5,_0x3dad7b){var _0x1478fd=a66_0x1478();return a66_0x3099=function(_0x309994,_0x228600){_0x309994=_0x309994-0x8c;var _0x27c25b=_0x1478fd[_0x309994];return _0x27c25b;},a66_0x3099(_0x112ad5,_0x3dad7b);}(function(_0x1a0d46,_0x282bc9){var _0x5f0ba7=a66_0x3099,_0x3ed57a=_0x1a0d46();while(!![]){try{var _0x52d5e0=parseInt(_0x5f0ba7(0x91))/0x1*(parseInt(_0x5f0ba7(0x9d))/0x2)+parseInt(_0x5f0ba7(0x97))/0x3+-parseInt(_0x5f0ba7(0x98))/0x4+parseInt(_0x5f0ba7(0x99))/0x5*(-parseInt(_0x5f0ba7(0x95))/0x6)+-parseInt(_0x5f0ba7(0xa4))/0x7*(-parseInt(_0x5f0ba7(0xa7))/0x8)+-parseInt(_0x5f0ba7(0x9a))/0x9+-parseInt(_0x5f0ba7(0x96))/0xa*(-parseInt(_0x5f0ba7(0x9f))/0xb);if(_0x52d5e0===_0x282bc9)break;else _0x3ed57a['push'](_0x3ed57a['shift']());}catch(_0x44cf2d){_0x3ed57a['push'](_0x3ed57a['shift']());}}}(a66_0x1478,0x4a3cf));import{Map}from'ol';import{Point as a66_0x178e35}from'ol/geom';class Point extends a66_0x178e35{constructor(_0x34b4fd){var _0x362456=a66_0x3099;super([]),this[_0x362456(0x9b)]=_0x362456(0x8c),this['points']=_0x34b4fd,this[_0x362456(0x90)](_0x34b4fd);}[a66_0x59cddb(0x8d)](){return this['type'];}[a66_0x59cddb(0x94)](){var _0x3d7271=a66_0x59cddb;this[_0x3d7271(0xa1)](this[_0x3d7271(0xa8)][0x0]);}[a66_0x59cddb(0x8e)](_0x1c3937){var _0x55513e=a66_0x59cddb;if(_0x1c3937&&_0x1c3937 instanceof Map)this[_0x55513e(0xa0)]=_0x1c3937;else throw new Error('传入的不是地图对象!');}['getMap'](){return this['map'];}[a66_0x59cddb(0xa2)](){return!![];}[a66_0x59cddb(0x90)](_0x54ed90){var _0x3e7005=a66_0x59cddb;_0x54ed90&&_0x54ed90[_0x3e7005(0x9e)]>=0x1&&(this['points']=_0x54ed90,this[_0x3e7005(0x94)]());}[a66_0x59cddb(0xa9)](){var _0x54ee7c=a66_0x59cddb;return this[_0x54ee7c(0xa8)];}['updatePoint'](_0x4954cb,_0x30d70f){var _0x559957=a66_0x59cddb;_0x30d70f>=0x0&&_0x30d70f<this['points'][_0x559957(0x9e)]&&(this[_0x559957(0xa8)][_0x30d70f]=_0x4954cb,this[_0x559957(0x94)]());}[a66_0x59cddb(0x9c)](_0x220f27){var _0x46d47c=a66_0x59cddb;this[_0x46d47c(0xa5)](_0x220f27,this[_0x46d47c(0xa8)][_0x46d47c(0x9e)]-0x1);}[a66_0x59cddb(0xa6)](){}[a66_0x59cddb(0x8f)](_0x482c82){var _0x59dd95=a66_0x59cddb;this[_0x59dd95(0x93)]=JSON[_0x59dd95(0xa3)](JSON[_0x59dd95(0x92)](_0x482c82));}}export default Point;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a67_0x405ecb=a67_0x2478;function a67_0xecbf(){var _0x4f056d=['setMap','7997SaGjLD','finishDrawing','setStyle','map','传入的不是地图对象!','type','8903925LrdZvN','829948DwjFWH','parse','getGeoJson','writeGeometryObject','677NYvUtQ','33430sEDvud','length','setPoints','stringify','4492772mknPgv','88RyMBof','getPoints','generate','getType','5buVTTN','255312GeNUEg','3242nPOmHA','points','slice','2455734LlQHBN'];a67_0xecbf=function(){return _0x4f056d;};return a67_0xecbf();}(function(_0x19e77e,_0x129b50){var _0x770bba=a67_0x2478,_0x41c924=_0x19e77e();while(!![]){try{var _0xef5afc=-parseInt(_0x770bba(0x1cb))/0x1*(parseInt(_0x770bba(0x1bb))/0x2)+parseInt(_0x770bba(0x1be))/0x3+-parseInt(_0x770bba(0x1b4))/0x4*(-parseInt(_0x770bba(0x1b9))/0x5)+-parseInt(_0x770bba(0x1ba))/0x6+parseInt(_0x770bba(0x1c7))/0x7*(parseInt(_0x770bba(0x1b5))/0x8)+parseInt(_0x770bba(0x1c6))/0x9+-parseInt(_0x770bba(0x1cc))/0xa*(parseInt(_0x770bba(0x1c0))/0xb);if(_0xef5afc===_0x129b50)break;else _0x41c924['push'](_0x41c924['shift']());}catch(_0xbc79a9){_0x41c924['push'](_0x41c924['shift']());}}}(a67_0xecbf,0xa258a));import{Polygon}from'ol/geom';import a67_0x11c6d8 from'ol/format/GeoJSON';function a67_0x2478(_0x1f7bd4,_0x44e243){var _0xecbf78=a67_0xecbf();return a67_0x2478=function(_0x2478c8,_0x266d80){_0x2478c8=_0x2478c8-0x1b2;var _0x104a2c=_0xecbf78[_0x2478c8];return _0x104a2c;},a67_0x2478(_0x1f7bd4,_0x44e243);}import a67_0x22f117 from'../../../mapView/Map';class BasePolygon extends Polygon{constructor(){var _0x397c40=a67_0x2478;super([]),this[_0x397c40(0x1bc)]=[];}[a67_0x405ecb(0x1b8)](){var _0x5e4355=a67_0x405ecb;return this[_0x5e4355(0x1c5)]?this[_0x5e4355(0x1c5)]:super[_0x5e4355(0x1b8)]();}[a67_0x405ecb(0x1c9)](){var _0x1826d8=a67_0x405ecb;return new a67_0x11c6d8()[_0x1826d8(0x1ca)](this);}[a67_0x405ecb(0x1c2)](_0x2ea5af){var _0xda4701=a67_0x405ecb;_0x2ea5af&&(this['style']=JSON[_0xda4701(0x1c8)](JSON[_0xda4701(0x1b3)](_0x2ea5af)));}[a67_0x405ecb(0x1bf)](_0x35a233){var _0x3547bf=a67_0x405ecb;if(_0x35a233&&_0x35a233 instanceof a67_0x22f117)this[_0x3547bf(0x1c3)]=_0x35a233;else throw new Error(_0x3547bf(0x1c4));}['getMap'](){var _0x238cb2=a67_0x405ecb;return this[_0x238cb2(0x1c3)];}['isPlot'](){return!![];}[a67_0x405ecb(0x1b2)](_0x34ce75){var _0x203a2e=a67_0x405ecb;this[_0x203a2e(0x1bc)]=!_0x34ce75?[]:_0x34ce75,this[_0x203a2e(0x1bc)][_0x203a2e(0x1cd)]>=0x1&&this[_0x203a2e(0x1b7)]();}[a67_0x405ecb(0x1b7)](){}[a67_0x405ecb(0x1b6)](){var _0x3ea213=a67_0x405ecb;return this['points'][_0x3ea213(0x1bd)](0x0);}['getPointCount'](){var _0x34f018=a67_0x405ecb;return this[_0x34f018(0x1bc)]['length'];}[a67_0x405ecb(0x1c1)](){}}export default BasePolygon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a68_0x4046(_0x3226fa,_0x1d1e51){const _0x4202fa=a68_0x4202();return a68_0x4046=function(_0x4046bf,_0x10f44f){_0x4046bf=_0x4046bf-0x6d;let _0x1d0d2c=_0x4202fa[_0x4046bf];return _0x1d0d2c;},a68_0x4046(_0x3226fa,_0x1d1e51);}const a68_0x4b99af=a68_0x4046;(function(_0x5465d4,_0x5b5003){const _0x14eb6c=a68_0x4046,_0x22fdba=_0x5465d4();while(!![]){try{const _0x41809b=-parseInt(_0x14eb6c(0x7a))/0x1*(parseInt(_0x14eb6c(0x6f))/0x2)+parseInt(_0x14eb6c(0x7b))/0x3+parseInt(_0x14eb6c(0x77))/0x4*(parseInt(_0x14eb6c(0x74))/0x5)+parseInt(_0x14eb6c(0x6d))/0x6+parseInt(_0x14eb6c(0x7d))/0x7+parseInt(_0x14eb6c(0x73))/0x8*(-parseInt(_0x14eb6c(0x75))/0x9)+-parseInt(_0x14eb6c(0x78))/0xa;if(_0x41809b===_0x5b5003)break;else _0x22fdba['push'](_0x22fdba['shift']());}catch(_0x3fc1b7){_0x22fdba['push'](_0x22fdba['shift']());}}}(a68_0x4202,0xd2ecb));import{Circle as a68_0x506e04}from'ol/geom';import a68_0x392e0c from'ol/format/GeoJSON';import{offset}from'ol/sphere';import{squaredDistance as a68_0x5a1d18}from'ol/coordinate';import{fromCircle}from'ol/geom/Polygon';import{compareArray}from'../../../utils/ArrayUtil';function a68_0x4202(){const _0x30aaec=['updatePoint','setPoints','6814818JRVPpN','Circle','2138914OohhwH','setCenterAndRadius','writeGeometryObject','generate','9588488UuTWyZ','17455NAQiZv','9RwLqBT','toRadians','1356EQjLYm','5440800CqQjGt','points','1BnSLXc','2685108hobHAf','setCenter','3232299QFDAzJ','length','updateLastPoint'];a68_0x4202=function(){return _0x30aaec;};return a68_0x4202();}class Circle extends a68_0x506e04{constructor(_0x66e35f){const _0x1f9ab6=a68_0x4046;super([]),this[_0x1f9ab6(0x79)]=_0x66e35f,this['type']=_0x1f9ab6(0x6e),_0x66e35f&&_0x66e35f[_0x1f9ab6(0x7e)]>0x0&&this[_0x1f9ab6(0x81)](_0x66e35f);}[a68_0x4b99af(0x81)](_0x5d6f60){const _0x2969cb=a68_0x4b99af;var _0x332d82;((_0x332d82=this['points'])===null||_0x332d82===void 0x0?void 0x0:_0x332d82['length'])>0x0&&(_0x5d6f60===null||_0x5d6f60===void 0x0?void 0x0:_0x5d6f60[_0x2969cb(0x7e)])>0x0&&!compareArray(this[_0x2969cb(0x79)][0x0],_0x5d6f60[0x0])?this[_0x2969cb(0x7c)](_0x5d6f60[0x0]):(this[_0x2969cb(0x79)]=!_0x5d6f60?[]:_0x5d6f60,this[_0x2969cb(0x79)][_0x2969cb(0x7e)]>=0x1&&(this['generate']&&this['generate']()));}[a68_0x4b99af(0x72)](){const _0x18ac5f=a68_0x4b99af;let _0xfd1b01=this[_0x18ac5f(0x79)]['length'];if(_0xfd1b01<0x2)return![];else{const _0x10ab4d=this[_0x18ac5f(0x79)][0x0],_0x274659=a68_0x5a1d18(_0x10ab4d,this[_0x18ac5f(0x79)][0x1]);this[_0x18ac5f(0x70)](_0x10ab4d,Math['sqrt'](_0x274659));}}[a68_0x4b99af(0x7c)](_0x4f14e7){const _0x357a9a=a68_0x4b99af;this['setCenter'](_0x4f14e7),this['points']=[_0x4f14e7,offset(_0x4f14e7,this['getRadius'](),this[_0x357a9a(0x76)](0x5a))],this[_0x357a9a(0x72)]();}[a68_0x4b99af(0x76)](_0x38d3e6){return _0x38d3e6*Math['PI']/0xb4;}['getGeoJson'](){const _0x44eec6=a68_0x4b99af;return new a68_0x392e0c()[_0x44eec6(0x71)](fromCircle(this));}[a68_0x4b99af(0x80)](_0xa809df,_0x5665f1){const _0x1c6888=a68_0x4b99af;_0x5665f1>=0x0&&_0x5665f1<this['points'][_0x1c6888(0x7e)]&&(this[_0x1c6888(0x79)][_0x5665f1]=_0xa809df,this['generate']());}[a68_0x4b99af(0x7f)](_0x79ccf6){const _0x3d3a68=a68_0x4b99af;this['updatePoint'](_0x79ccf6,this[_0x3d3a68(0x79)][_0x3d3a68(0x7e)]-0x1);}}export default Circle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a69_0x4da7(){const _0x120cbb=['15630hYBtqW','length','4877028uNquuV','10840KpZISB','isPlot','parse','96220ruLHXa','points','generate','1526412AbUWNu','updateLastPoint','_closed','push','18912660WPtoDM','setCoordinates','38FrPSCu','updatePoint','Polygon','3094XJjpdy','40229IqJdXd','9GcUTYe'];a69_0x4da7=function(){return _0x120cbb;};return a69_0x4da7();}const a69_0x83eb07=a69_0x2d6e;(function(_0x2029be,_0x20d7a4){const _0x5ab454=a69_0x2d6e,_0x286361=_0x2029be();while(!![]){try{const _0x24882d=-parseInt(_0x5ab454(0x115))/0x1*(-parseInt(_0x5ab454(0x111))/0x2)+-parseInt(_0x5ab454(0x117))/0x3+-parseInt(_0x5ab454(0x120))/0x4+parseInt(_0x5ab454(0x11d))/0x5+-parseInt(_0x5ab454(0x119))/0x6+parseInt(_0x5ab454(0x114))/0x7*(-parseInt(_0x5ab454(0x11a))/0x8)+-parseInt(_0x5ab454(0x116))/0x9*(-parseInt(_0x5ab454(0x10f))/0xa);if(_0x24882d===_0x20d7a4)break;else _0x286361['push'](_0x286361['shift']());}catch(_0xa2e678){_0x286361['push'](_0x286361['shift']());}}}(a69_0x4da7,0xd5f0c));function a69_0x2d6e(_0x4e5e34,_0x428cd0){const _0x4da770=a69_0x4da7();return a69_0x2d6e=function(_0x2d6e8b,_0x542c52){_0x2d6e8b=_0x2d6e8b-0x10e;let _0x43d19c=_0x4da770[_0x2d6e8b];return _0x43d19c;},a69_0x2d6e(_0x4e5e34,_0x428cd0);}import a69_0x273acf from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';class Polygon extends a69_0x273acf{constructor(_0x503240){const _0x264f43=a69_0x2d6e;super(),this['type']=_0x264f43(0x113),_0x503240&&_0x503240[_0x264f43(0x118)]>0x0&&getDeepth(_0x503240)==0x2?this['setPoints'](_0x503240):this[_0x264f43(0x110)](_0x503240);}[a69_0x83eb07(0x122)](_0x3875b0){const _0x5354d4=a69_0x83eb07;let _0x5c6614=_0x3875b0[0x0],_0x3eef1b=_0x3875b0[_0x3875b0[_0x5354d4(0x118)]-0x1];return _0x5c6614[0x0]===_0x3eef1b[0x0]&&_0x5c6614[0x1]===_0x3eef1b[0x1]&&_0x5c6614[0x2]===_0x3eef1b[0x2];}[a69_0x83eb07(0x11f)](){const _0x4b692f=a69_0x83eb07;let _0x5bddc8=this['getPointCount']();if(_0x5bddc8<0x2)return![];else{let _0x44c65f=JSON[_0x4b692f(0x11c)](JSON['stringify'](this[_0x4b692f(0x11e)]));_0x5bddc8>=0x3&&(!this[_0x4b692f(0x122)](_0x44c65f)&&_0x44c65f[_0x4b692f(0x10e)](_0x44c65f[0x0])),this['setCoordinates']([_0x44c65f]);}}[a69_0x83eb07(0x112)](_0x11d006,_0x355ba8){const _0xcbbfae=a69_0x83eb07;_0x355ba8>=0x0&&_0x355ba8<this[_0xcbbfae(0x11e)]['length']&&(this['points'][_0x355ba8]=_0x11d006,this[_0xcbbfae(0x11f)]());}[a69_0x83eb07(0x11b)](){return![];}[a69_0x83eb07(0x121)](_0x33c408){const _0x14b241=a69_0x83eb07;this[_0x14b241(0x112)](_0x33c408,this[_0x14b241(0x11e)]['length']-0x1);}}export default Polygon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x53f9eb=a70_0x4a28;(function(_0x2ba2f3,_0x1ab152){const _0x42c6f7=a70_0x4a28,_0x2df922=_0x2ba2f3();while(!![]){try{const _0x3516a6=-parseInt(_0x42c6f7(0x190))/0x1*(-parseInt(_0x42c6f7(0x198))/0x2)+-parseInt(_0x42c6f7(0x194))/0x3+-parseInt(_0x42c6f7(0x19f))/0x4*(parseInt(_0x42c6f7(0x18e))/0x5)+-parseInt(_0x42c6f7(0x195))/0x6*(parseInt(_0x42c6f7(0x19a))/0x7)+-parseInt(_0x42c6f7(0x19c))/0x8+-parseInt(_0x42c6f7(0x19e))/0x9+parseInt(_0x42c6f7(0x197))/0xa*(parseInt(_0x42c6f7(0x19b))/0xb);if(_0x3516a6===_0x1ab152)break;else _0x2df922['push'](_0x2df922['shift']());}catch(_0x43c9af){_0x2df922['push'](_0x2df922['shift']());}}}(a70_0x1f4f,0x52da2));function a70_0x4a28(_0x5c3f74,_0x260f68){const _0x1f4f0c=a70_0x1f4f();return a70_0x4a28=function(_0x4a28ed,_0x31a7b4){_0x4a28ed=_0x4a28ed-0x18d;let _0x55b813=_0x1f4f0c[_0x4a28ed];return _0x55b813;},a70_0x4a28(_0x5c3f74,_0x260f68);}import{fromExtent}from'ol/geom/Polygon';import{boundingExtent}from'ol/extent';import a70_0x42bce7 from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';class RectAngle extends a70_0x42bce7{constructor(_0x2752f2){const _0x1d5e14=a70_0x4a28;super(),this[_0x1d5e14(0x191)]='Polygon',_0x2752f2&&_0x2752f2['length']>0x0&&getDeepth(_0x2752f2)==0x2?this[_0x1d5e14(0x193)](_0x2752f2):this[_0x1d5e14(0x196)](_0x2752f2);}['generate'](){const _0xdc6904=a70_0x4a28;if(this['points'][_0xdc6904(0x19d)]===0x2){let _0x3d2d76=[],_0x7a999c=boundingExtent(this[_0xdc6904(0x18f)]),_0x105eb1=fromExtent(_0x7a999c);_0x3d2d76=_0x105eb1[_0xdc6904(0x199)](),this[_0xdc6904(0x196)](_0x3d2d76);}}['updatePoint'](_0xf91f3b,_0x3fab05){const _0x550232=a70_0x4a28;_0x3fab05>=0x0&&_0x3fab05<this[_0x550232(0x18f)][_0x550232(0x19d)]&&(this[_0x550232(0x18f)][_0x3fab05]=_0xf91f3b,this['generate']());}[a70_0x53f9eb(0x192)](_0x397117){const _0x1d312f=a70_0x53f9eb;this[_0x1d312f(0x18d)](_0x397117,this[_0x1d312f(0x18f)][_0x1d312f(0x19d)]-0x1);}}function a70_0x1f4f(){const _0x50f310=['692139bElZnc','21642ESRQJt','setCoordinates','125570qSotMh','565914sTIYgx','getCoordinates','322XeSYqL','1034aWJpII','1482968kBLoXX','length','1587960UwVCZf','4LWlpNh','updatePoint','1827535ufXkzo','points','1KIWxpA','type','updateLastPoint','setPoints'];a70_0x1f4f=function(){return _0x50f310;};return a70_0x1f4f();}export default RectAngle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a71_0x59fc(_0x33d1dd,_0x20f97a){var _0x602278=a71_0x6022();return a71_0x59fc=function(_0x59fc16,_0x10ac29){_0x59fc16=_0x59fc16-0x141;var _0x350714=_0x602278[_0x59fc16];return _0x350714;},a71_0x59fc(_0x33d1dd,_0x20f97a);}function a71_0x6022(){var _0x4fa5bd=['58jMaCuR','getMap','21PZvkCx','generate','points','52349WjeIog','getPlotType','finishDrawing','parse','4313577ZLnDDk','9ELpDoy','4cGyWyQ','getGeoJson','setMap','slice','8925528PsxtIn','getPointCount','28368626yciVFr','5012630HHRAty','style','length','stringify','setStyle','getPoints','17043540bDIIMG','3298098patCSW','传入的不是地图对象!','map'];a71_0x6022=function(){return _0x4fa5bd;};return a71_0x6022();}var a71_0x2b67be=a71_0x59fc;(function(_0x191406,_0x4879c2){var _0x9c09c7=a71_0x59fc,_0x448e28=_0x191406();while(!![]){try{var _0x3ca27b=-parseInt(_0x9c09c7(0x145))/0x1*(-parseInt(_0x9c09c7(0x15c))/0x2)+-parseInt(_0x9c09c7(0x149))/0x3*(parseInt(_0x9c09c7(0x14b))/0x4)+-parseInt(_0x9c09c7(0x152))/0x5+parseInt(_0x9c09c7(0x159))/0x6*(parseInt(_0x9c09c7(0x142))/0x7)+-parseInt(_0x9c09c7(0x14f))/0x8*(-parseInt(_0x9c09c7(0x14a))/0x9)+parseInt(_0x9c09c7(0x158))/0xa+-parseInt(_0x9c09c7(0x151))/0xb;if(_0x3ca27b===_0x4879c2)break;else _0x448e28['push'](_0x448e28['shift']());}catch(_0x4943bb){_0x448e28['push'](_0x448e28['shift']());}}}(a71_0x6022,0xec4b8));import{LineString}from'ol/geom';import a71_0x57eb94 from'ol/format/GeoJSON';import a71_0x151a65 from'../../../mapView/Map';class Plot extends LineString{constructor(){super([]),this['points']=[];}[a71_0x2b67be(0x146)](){return this['type'];}[a71_0x2b67be(0x14c)](){return new a71_0x57eb94()['writeGeometryObject'](this);}[a71_0x2b67be(0x156)](_0x533976){var _0x572254=a71_0x2b67be;this[_0x572254(0x153)]=JSON[_0x572254(0x148)](JSON[_0x572254(0x155)](_0x533976));}[a71_0x2b67be(0x14d)](_0x328240){var _0x32e8bc=a71_0x2b67be;if(_0x328240&&_0x328240 instanceof a71_0x151a65)this[_0x32e8bc(0x15b)]=_0x328240;else throw new Error(_0x32e8bc(0x15a));}[a71_0x2b67be(0x141)](){return this['map'];}['isPlot'](){return!![];}['setPoints'](_0xf45033){var _0x25e6b9=a71_0x2b67be;this[_0x25e6b9(0x144)]=!_0xf45033?[]:_0xf45033,this[_0x25e6b9(0x144)][_0x25e6b9(0x154)]>=0x1&&(this[_0x25e6b9(0x143)]&&this[_0x25e6b9(0x143)]());}[a71_0x2b67be(0x143)](){}[a71_0x2b67be(0x157)](){var _0x58db13=a71_0x2b67be;return this[_0x58db13(0x144)][_0x58db13(0x14e)](0x0);}[a71_0x2b67be(0x150)](){var _0x20775=a71_0x2b67be;return this[_0x20775(0x144)][_0x20775(0x154)];}[a71_0x2b67be(0x147)](){}}export default Plot;
|