ym-gis-2d 1.0.29 → 1.0.30
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/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.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.d.ts.map +1 -1
- package/utils/tasks/index.js +1 -1
- package/utils/tasks/index.js.map +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a44_0x3d96(_0x4e8658,_0x204349){var _0x36f00a=a44_0x36f0();return a44_0x3d96=function(_0x3d968a,_0x10dc05){_0x3d968a=_0x3d968a-0x179;var _0x49278c=_0x36f00a[_0x3d968a];return _0x49278c;},a44_0x3d96(_0x4e8658,_0x204349);}(function(_0x32f375,_0x3aaecb){var _0x209477=a44_0x3d96,_0x79c7a6=_0x32f375();while(!![]){try{var _0x1034fb=parseInt(_0x209477(0x17e))/0x1+-parseInt(_0x209477(0x181))/0x2*(parseInt(_0x209477(0x182))/0x3)+-parseInt(_0x209477(0x17f))/0x4+-parseInt(_0x209477(0x17a))/0x5*(parseInt(_0x209477(0x17c))/0x6)+parseInt(_0x209477(0x179))/0x7+-parseInt(_0x209477(0x17b))/0x8*(parseInt(_0x209477(0x17d))/0x9)+parseInt(_0x209477(0x180))/0xa;if(_0x1034fb===_0x3aaecb)break;else _0x79c7a6['push'](_0x79c7a6['shift']());}catch(_0x5f1899){_0x79c7a6['push'](_0x79c7a6['shift']());}}}(a44_0x36f0,0x85ffa));import a44_0x7803f7 from'./mapView/Map';export{a44_0x7803f7 as Map2D};function a44_0x36f0(){var _0x4eb054=['4084588CsnkLJ','8449680wgZgIp','102716gULoAg','3ZFzHpu','5136691qTqAOO','10YcoEjw','16OSbJKj','76434OwtTWm','1505799yoInjU','402682iwsGCU'];a44_0x36f0=function(){return _0x4eb054;};return a44_0x36f0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x176b1a=a45_0x5057;(function(_0x4e0aed,_0x33645e){const _0x384d00=a45_0x5057,_0x3f3e3b=_0x4e0aed();while(!![]){try{const _0x422af2=parseInt(_0x384d00(0x1cd))/0x1*(-parseInt(_0x384d00(0x1c1))/0x2)+-parseInt(_0x384d00(0x1b0))/0x3*(parseInt(_0x384d00(0x1b8))/0x4)+-parseInt(_0x384d00(0x1ac))/0x5*(-parseInt(_0x384d00(0x1c3))/0x6)+-parseInt(_0x384d00(0x1a1))/0x7+parseInt(_0x384d00(0x1a9))/0x8*(parseInt(_0x384d00(0x1bf))/0x9)+-parseInt(_0x384d00(0x197))/0xa+parseInt(_0x384d00(0x198))/0xb*(parseInt(_0x384d00(0x1a0))/0xc);if(_0x422af2===_0x33645e)break;else _0x3f3e3b['push'](_0x3f3e3b['shift']());}catch(_0xf3be78){_0x3f3e3b['push'](_0x3f3e3b['shift']());}}}(a45_0x1cff,0x6e46a));import a45_0x1583ec from'./Draw';function a45_0x1cff(){const _0x4edaef=['getSource','3068kfsNVq','clear','setMap','find','polygon','square-meters','getMap','72HqYiEo','length','692078gZNbDK','feature','6dCFMvF','geom','_precision','coordinates','_features','drawEnd','forEach','square-kilometers','_showLabel','toFixed','1mzFuAv','getLength','#f03437','measure','dispatchEvent','log','setFeatureAreaStyle','getGeometry','_spheroid','4280600ssSZCQ','10044023hlixvc','setUnit','_source','getProjection','removeFeature','setStyle','precision','fromType','12QNbDOu','3996237gKFSPy','entries','clearMeasure','type','showLabel','_style','unit','label','615544ipxTxw','area','filter','4277825OMfoVG','drawMoving','_unit','fromEntries','2298slLRxC','点击开始测量,双击结束测量','getView','text','getPolygonTempLayer','measureMoving','getText'];a45_0x1cff=function(){return _0x4edaef;};return a45_0x1cff();}import a45_0x4b2590 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';function a45_0x5057(_0x3e2fbe,_0x1eefb8){const _0x1cff75=a45_0x1cff();return a45_0x5057=function(_0x50572b,_0x376d26){_0x50572b=_0x50572b-0x195;let _0x14b46b=_0x1cff75[_0x50572b];return _0x14b46b;},a45_0x5057(_0x3e2fbe,_0x1eefb8);}import a45_0x848a1 from'../entity/measure/AreaMeasureUnits';import a45_0x410f23 from'ol/Collection';const defaultOptions={'color':a45_0x176b1a(0x1cf),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x176b1a(0x1bd),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':'measureMoving','measureEnd':'measureEnd'};export class AreaMeasureEvent extends a45_0x4b2590{constructor(_0x1f4e53,_0x5b0752,_0x134d4c){const _0x50a13c=a45_0x176b1a;super(_0x1f4e53),this[_0x50a13c(0x1aa)]=_0x5b0752,this[_0x50a13c(0x1c4)]=_0x134d4c;}}export default class AreaMeasure extends a45_0x1583ec{constructor(_0x215350){const _0xa78f13=a45_0x176b1a;_0x215350=_0x215350||{},console[_0xa78f13(0x1d2)](_0x215350);const _0x481d4c=Object['assign'](Object['assign']({},defaultOptions),Object[_0xa78f13(0x1af)](Object[_0xa78f13(0x1a2)](_0x215350)[_0xa78f13(0x1ab)](([_0x30dd3d,_0x2f6833])=>_0x2f6833!=null)));super(_0xa78f13(0x1bc),{'tipText':_0xa78f13(0x1b1),'style':_0x481d4c,'features':new a45_0x410f23()}),this[_0xa78f13(0x1a6)]=_0x481d4c,this[_0xa78f13(0x1ae)]=_0x481d4c[_0xa78f13(0x1a7)],this[_0xa78f13(0x1c5)]=_0x481d4c[_0xa78f13(0x19e)],this[_0xa78f13(0x1cb)]=_0x481d4c[_0xa78f13(0x1a5)],this[_0xa78f13(0x196)]=_0x481d4c['spheroid'],this['on']=this['onInternal'],this['on'](_0xa78f13(0x1c8),_0x6ed313=>{const _0x4ff811=_0xa78f13,_0x10c9fe=this['getMap']();if(!_0x10c9fe)return;if(_0x6ed313[_0x4ff811(0x1c2)]){const _0x257e37=this[_0x4ff811(0x1d3)](_0x6ed313[_0x4ff811(0x1c2)],_0x481d4c);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType['measureEnd'],_0x257e37,_0x6ed313['feature'][_0x4ff811(0x195)]()));}this[_0x4ff811(0x1a6)][_0x4ff811(0x1b3)]='';}),this['on']('drawAddPoint',_0x37f617=>{const _0x49c167=_0xa78f13,_0x423d55=this[_0x49c167(0x1be)]();if(!_0x423d55)return;if(_0x37f617[_0x49c167(0x1c2)]){const _0x21c97b=this['setFeatureAreaStyle'](_0x37f617[_0x49c167(0x1c2)],_0x481d4c);this[_0x49c167(0x1d1)](new AreaMeasureEvent(MeasureEventType[_0x49c167(0x1b5)],_0x21c97b,_0x37f617[_0x49c167(0x1c2)][_0x49c167(0x195)]()));}}),this['on'](_0xa78f13(0x1ad),_0x4b9b9a=>{const _0x55df41=_0xa78f13,_0x533ca1=this[_0x55df41(0x1be)]();if(!_0x533ca1)return;if(!_0x4b9b9a[_0x55df41(0x1c6)]||_0x4b9b9a['coordinates'][_0x55df41(0x1c0)]<0x2)return;if(_0x4b9b9a[_0x55df41(0x1c2)]){const _0x552908=this[_0x55df41(0x1d3)](_0x4b9b9a[_0x55df41(0x1c2)],_0x481d4c);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType['measureMoving'],_0x552908,_0x4b9b9a[_0x55df41(0x1c2)][_0x55df41(0x195)]()));}});}[a45_0x176b1a(0x1ba)](_0x2a3d40){const _0x290da4=a45_0x176b1a;super[_0x290da4(0x1ba)](_0x2a3d40);if(_0x2a3d40){const _0x25732f=_0x2a3d40[_0x290da4(0x1b4)](),_0x1e8d1a=_0x25732f===null||_0x25732f===void 0x0?void 0x0:_0x25732f[_0x290da4(0x1b7)]();_0x1e8d1a&&(this[_0x290da4(0x19a)]=_0x1e8d1a);}}[a45_0x176b1a(0x1b6)](_0x192bfc){const _0x3ddbbe=a45_0x176b1a,_0x3f0978=a45_0x848a1[_0x3ddbbe(0x1bb)](_0xf71b5f=>_0xf71b5f[_0x3ddbbe(0x1a4)]===this[_0x3ddbbe(0x1ae)]);switch(_0x3f0978===null||_0x3f0978===void 0x0?void 0x0:_0x3f0978[_0x3ddbbe(0x1a4)]){case'square-meters':return''+(_0x192bfc[_0x3ddbbe(0x1cc)](this[_0x3ddbbe(0x1c5)])+_0x3f0978[_0x3ddbbe(0x1a8)]);case _0x3ddbbe(0x1ca):return''+((_0x192bfc*0.000001)[_0x3ddbbe(0x1cc)](this[_0x3ddbbe(0x1c5)])+_0x3f0978[_0x3ddbbe(0x1a8)]);case'mu':return''+((_0x192bfc*0.0015)[_0x3ddbbe(0x1cc)](this[_0x3ddbbe(0x1c5)])+_0x3f0978['label']);case'hectare':return''+((_0x192bfc*0.0001)[_0x3ddbbe(0x1cc)](this[_0x3ddbbe(0x1c5)])+_0x3f0978['label']);default:return _0x192bfc[_0x3ddbbe(0x1cc)](this[_0x3ddbbe(0x1c5)])+'平方米';}}[a45_0x176b1a(0x1d3)](_0x56b518,_0x13136e){const _0x567900=a45_0x176b1a,_0x50e8b7=this[_0x567900(0x1be)]();if(!_0x50e8b7)return 0x0;const _0x48b35f=_0x56b518['getGeometry'](),_0x4713be=getArea(_0x48b35f,_0x50e8b7[_0x567900(0x1b2)]()[_0x567900(0x19b)](),this[_0x567900(0x196)]);return _0x56b518[_0x567900(0x19f)]=_0x567900(0x1d0),this[_0x567900(0x1cb)]&&(_0x13136e[_0x567900(0x1b3)]=this[_0x567900(0x1b6)](_0x4713be),_0x56b518[_0x567900(0x19d)](getStyle(_0x567900(0x1bc),_0x13136e,_0x50e8b7))),_0x4713be;}[a45_0x176b1a(0x199)](_0x1dbcc9){const _0x3f419c=a45_0x176b1a;this[_0x3f419c(0x1ae)]=_0x1dbcc9,this[_0x3f419c(0x1c7)]&&this[_0x3f419c(0x1c7)]['getLength']()>0x0&&this[_0x3f419c(0x1c7)][_0x3f419c(0x1c9)](_0x463814=>{const _0x5a79b8=_0x3f419c;this[_0x5a79b8(0x1d3)](_0x463814,this[_0x5a79b8(0x1a6)]);});}[a45_0x176b1a(0x1a3)](){const _0x9e49f7=a45_0x176b1a,_0x1e85ac=this[_0x9e49f7(0x1be)]();if(!_0x1e85ac)return;const _0x5ce456=_0x1e85ac[_0x9e49f7(0x1b4)](),_0x1f581b=_0x5ce456===null||_0x5ce456===void 0x0?void 0x0:_0x5ce456[_0x9e49f7(0x1b7)]();_0x1f581b&&this[_0x9e49f7(0x1c7)]&&this[_0x9e49f7(0x1c7)][_0x9e49f7(0x1ce)]()>0x0&&(this[_0x9e49f7(0x1c7)][_0x9e49f7(0x1c9)](_0x248658=>{const _0x5327c5=_0x9e49f7;_0x1f581b[_0x5327c5(0x19c)](_0x248658);}),this[_0x9e49f7(0x1c7)][_0x9e49f7(0x1b9)]());}}
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46_0x288d77=a46_0x4adf;(function(_0x12c1b7,_0x395fa7){const _0x2eab77=a46_0x4adf,_0x2f3266=_0x12c1b7();while(!![]){try{const _0x3500a6=parseInt(_0x2eab77(0x22e))/0x1+parseInt(_0x2eab77(0x240))/0x2+-parseInt(_0x2eab77(0x216))/0x3+-parseInt(_0x2eab77(0x20b))/0x4*(parseInt(_0x2eab77(0x238))/0x5)+parseInt(_0x2eab77(0x222))/0x6+parseInt(_0x2eab77(0x1ee))/0x7*(-parseInt(_0x2eab77(0x21e))/0x8)+-parseInt(_0x2eab77(0x213))/0x9*(-parseInt(_0x2eab77(0x20f))/0xa);if(_0x3500a6===_0x395fa7)break;else _0x2f3266['push'](_0x2f3266['shift']());}catch(_0x421361){_0x2f3266['push'](_0x2f3266['shift']());}}}(a46_0x5dcb,0x250f1));import a46_0x495bde from'ol/events/Event';import a46_0x19cdbf from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a46_0x57869a from'ol/Feature';import a46_0x3ed346,{createEditingStyle}from'ol/style/Style';import a46_0x59dea7 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';function a46_0x4adf(_0x2abb3c,_0x59f311){const _0x5dcb7b=a46_0x5dcb();return a46_0x4adf=function(_0x4adf63,_0x4e2d19){_0x4adf63=_0x4adf63-0x1d9;let _0x46b581=_0x5dcb7b[_0x4adf63];return _0x46b581;},a46_0x4adf(_0x2abb3c,_0x59f311);}import a46_0x3c890a from'ol/style/Text';import a46_0x3c81e0 from'ol/style/Fill';import a46_0x857958 from'ol/interaction/Property';function a46_0x5dcb(){const _0x9e0e57=['dispatchEvent','setStyle','_overlay','9ZQUELo','_fixPoint','pixel','446580CCTjOZ','indexOf','fixPoint','单击增加点,右击删除点双击完成绘制','drawStart','getView','_drawingCoordinates','features','8KTAylQ','getMap','updateState_','DRAWMOVING','854754XuWEMG','setText','preventDefault','DRAWADDPOINT','addChangeListener','setMap','_tipFeature','getType','rectangle','finishDrawing','tipText','unInternal','232214hQsJIN','handleMoveEvent','rgba(0,\x200,\x200,\x200.4)','setGeometry','onInternal','originalEvent','_snapTolerance','getCode','_sketchFeature','getProjection','1905XGmizV','_isStayDraw','getSource','addPoint','onceInternal','Rectangle','addFeature','updateSketchFeatures_','322570Dhutqz','getGeometry','abortDrawing_','DRAWEND','Ellipse','sqrt','revert','minPoint','_minPoints','createMultiPointFeature','point','单击结束绘制,右击删除点','_style','单击增加点,右击删除点','drawMoving','_showTip','_features','wrapX','单击拖动绘制','feature','clear','abortDrawing','coordinates','rgba(255,\x20255,\x20255,\x201)','1797698YyEkxd','getActive','MAX_VALUE','atFinish_','drawAbort','DRAWSTART','once','getText','_tipStyle','_type','getPixelFromCoordinate','drawEnd','ACTIVE','buildDrawingFeature','stopDown','_source','source','push','startDrawing_','length','showTip','projection','_tipOverlay','snapTolerance','handleDownEvent','handleDragEvent','button','Ellipsoid','left','2552SYkdav','type','pointermove','coordinate','2645870fBixrm'];a46_0x5dcb=function(){return _0x9e0e57;};return a46_0x5dcb();}import a46_0x5d8113 from'ol/layer/Vector';import a46_0x2c23bf from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a46_0x288d77(0x21a),'DRAWEND':a46_0x288d77(0x1f9),'DRAWABORT':a46_0x288d77(0x1f2),'DRAWADDPOINT':'drawAddPoint','DRAWMOVING':a46_0x288d77(0x1e4)};export class DrawEvent extends a46_0x495bde{constructor(_0x4e233f,_0x2bf503,_0x201124){const _0x4287d1=a46_0x288d77;super(_0x4e233f),this[_0x4287d1(0x1e9)]=_0x2bf503,this[_0x4287d1(0x1ec)]=_0x201124;}}export class ShEvent extends a46_0x495bde{constructor(_0x32399b,_0x864af1,_0x1baea1,_0x280843,_0x25cf23){const _0x6ebaf=a46_0x288d77;super(_0x32399b),this[_0x6ebaf(0x203)]=_0x25cf23,this[_0x6ebaf(0x20c)]=_0x864af1,this[_0x6ebaf(0x20e)]=_0x1baea1,this['coordinates']=_0x280843;}}export default class Draw extends a46_0x19cdbf{constructor(_0x22acf0,_0xc77aee){const _0x345a71=a46_0x288d77,_0x205822=_0xc77aee?_0xc77aee:{};!_0x205822['stopDown']&&(_0x205822[_0x345a71(0x1fc)]=![]);super(_0xc77aee),this['on']=this[_0x345a71(0x232)],this[_0x345a71(0x1f4)]=this[_0x345a71(0x23c)],this['un']=this[_0x345a71(0x22d)],this[_0x345a71(0x239)]=![],this['_type']=_0x22acf0,this[_0x345a71(0x1e2)]=_0xc77aee===null||_0xc77aee===void 0x0?void 0x0:_0xc77aee['style'],this[_0x345a71(0x1fd)]=_0xc77aee===null||_0xc77aee===void 0x0?void 0x0:_0xc77aee[_0x345a71(0x1fe)],this[_0x345a71(0x1e6)]=_0xc77aee===null||_0xc77aee===void 0x0?void 0x0:_0xc77aee[_0x345a71(0x21d)];const _0x85912e=getPlotCount(this[_0x345a71(0x1f7)]);this[_0x345a71(0x1de)]=_0x85912e[_0x345a71(0x1dd)],this[_0x345a71(0x214)]=_0x85912e[_0x345a71(0x218)],this['tipText']=_0xc77aee===null||_0xc77aee===void 0x0?void 0x0:_0xc77aee[_0x345a71(0x22c)],this[_0x345a71(0x1e5)]=(_0xc77aee===null||_0xc77aee===void 0x0?void 0x0:_0xc77aee[_0x345a71(0x202)])==![]?![]:!![],this['_snapTolerance']=_0x205822[_0x345a71(0x205)]?_0x205822['snapTolerance']:0x6,this[_0x345a71(0x228)]=new a46_0x57869a(),this['_tipStyle']=new a46_0x3ed346({'text':new a46_0x3c890a({'font':'12px\x20Calibre,sans-serif','fill':new a46_0x3c81e0({'color':_0x345a71(0x1ed)}),'backgroundFill':new a46_0x3c81e0({'color':_0x345a71(0x230)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x345a71(0x20a),'offsetX':0xf})}),this[_0x345a71(0x21c)]=[],this[_0x345a71(0x204)]=new a46_0x5d8113({'source':new a46_0x59dea7({'useSpatialIndex':![],'wrapX':(_0xc77aee===null||_0xc77aee===void 0x0?void 0x0:_0xc77aee[_0x345a71(0x1e7)])?_0xc77aee[_0x345a71(0x1e7)]:![]})}),this[_0x345a71(0x212)]=new a46_0x5d8113({'source':new a46_0x59dea7({'useSpatialIndex':![],'wrapX':(_0xc77aee===null||_0xc77aee===void 0x0?void 0x0:_0xc77aee[_0x345a71(0x1e7)])?_0xc77aee[_0x345a71(0x1e7)]:![]}),'updateWhileInteracting':!![]}),this[_0x345a71(0x226)](a46_0x857958[_0x345a71(0x1fa)],this[_0x345a71(0x220)]);}[a46_0x288d77(0x220)](){const _0x261f86=a46_0x288d77,_0x15d1c4=this['getMap'](),_0x288115=this[_0x261f86(0x1ef)]();(!_0x15d1c4||!_0x288115)&&this[_0x261f86(0x1eb)](),this[_0x261f86(0x212)][_0x261f86(0x227)](_0x288115?_0x15d1c4:null),this[_0x261f86(0x204)][_0x261f86(0x227)](_0x288115?_0x15d1c4:null);}['setMap'](_0x247bc9){super['setMap'](_0x247bc9),this['updateState_']();}[a46_0x288d77(0x211)](_0x4b87de){const _0x1be65a=a46_0x288d77;this[_0x1be65a(0x1e2)]=_0x4b87de?_0x4b87de:{};}['getOverlay'](){return this['_overlay'];}[a46_0x288d77(0x206)](_0x83e50f){const _0x4fba1b=a46_0x288d77;if(_0x83e50f[_0x4fba1b(0x233)][_0x4fba1b(0x208)]===0x2)return _0x83e50f[_0x4fba1b(0x233)][_0x4fba1b(0x224)](),this[_0x4fba1b(0x1dc)](),this[_0x4fba1b(0x22f)](_0x83e50f),![];return!![];}['handleUpEvent'](_0x4a0067){const _0x2ff0b6=a46_0x288d77;var _0xc4cb00,_0x26a35b;if(this[_0x2ff0b6(0x1f7)]==_0x2ff0b6(0x22a)&&this[_0x2ff0b6(0x21c)][_0x2ff0b6(0x201)]<0x1)return this[_0x2ff0b6(0x210)](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x4a0067[_0x2ff0b6(0x20e)]])),![];if(!this['_isStayDraw'])this['startDrawing_'](_0x4a0067[_0x2ff0b6(0x20e)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x2ff0b6(0x225)],this[_0x2ff0b6(0x1f7)],_0x4a0067['coordinate'],this[_0x2ff0b6(0x21c)],(_0xc4cb00=this[_0x2ff0b6(0x21f)]())===null||_0xc4cb00===void 0x0?void 0x0:_0xc4cb00[_0x2ff0b6(0x21b)]()[_0x2ff0b6(0x237)]()['getCode']())),this[_0x2ff0b6(0x1f7)]==_0x2ff0b6(0x1e0)&&this['finishDrawing']();else{if(this['_drawingCoordinates']&&this[_0x2ff0b6(0x21c)][_0x2ff0b6(0x201)]>0x0){if(this[_0x2ff0b6(0x1f1)](_0x4a0067[_0x2ff0b6(0x215)]))return this['finishDrawing'](),_0x4a0067[_0x2ff0b6(0x224)](),![];let _0x21c768=this['_drawingCoordinates'][_0x2ff0b6(0x201)]+0x1;_0x21c768<=this['_fixPoint']&&this[_0x2ff0b6(0x23b)](_0x4a0067[_0x2ff0b6(0x20e)]),this[_0x2ff0b6(0x210)](new ShEvent(DrawEventType[_0x2ff0b6(0x225)],this[_0x2ff0b6(0x1f7)],_0x4a0067[_0x2ff0b6(0x20e)],this[_0x2ff0b6(0x21c)],(_0x26a35b=this[_0x2ff0b6(0x21f)]())===null||_0x26a35b===void 0x0?void 0x0:_0x26a35b[_0x2ff0b6(0x21b)]()[_0x2ff0b6(0x237)]()[_0x2ff0b6(0x235)]())),_0x21c768>=this[_0x2ff0b6(0x1de)]&&this[_0x2ff0b6(0x1fb)](this['_drawingCoordinates']),_0x21c768===this['_fixPoint']&&this[_0x2ff0b6(0x22b)]();}}return _0x4a0067[_0x2ff0b6(0x224)](),![];}[a46_0x288d77(0x207)](_0x215451){const _0x421ba3=a46_0x288d77;var _0x313f51;if(this[_0x421ba3(0x1f7)]==_0x421ba3(0x22a)&&_0x215451[_0x421ba3(0x233)]['type']==_0x421ba3(0x20d)){if(!this[_0x421ba3(0x239)]){this[_0x421ba3(0x200)](_0x215451[_0x421ba3(0x20e)]),this[_0x421ba3(0x210)](new ShEvent(DrawEventType[_0x421ba3(0x225)],this[_0x421ba3(0x1f7)],_0x215451['coordinate'],this[_0x421ba3(0x21c)],(_0x313f51=this[_0x421ba3(0x21f)]())===null||_0x313f51===void 0x0?void 0x0:_0x313f51[_0x421ba3(0x21b)]()[_0x421ba3(0x237)]()[_0x421ba3(0x235)]()));return;}let _0x27e4bb=[...this[_0x421ba3(0x21c)],_0x215451[_0x421ba3(0x20e)]];this[_0x421ba3(0x1fb)](_0x27e4bb),this[_0x421ba3(0x210)](new DrawEvent(DrawEventType[_0x421ba3(0x221)],this[_0x421ba3(0x236)],this[_0x421ba3(0x21c)]));}}[a46_0x288d77(0x22f)](_0x4631bb){const _0x461fcf=a46_0x288d77;var _0x31f1d6,_0x52adf3,_0x270df2;let _0x3a1ef6='';this[_0x461fcf(0x1f7)]==_0x461fcf(0x20d)&&(this[_0x461fcf(0x200)](_0x4631bb[_0x461fcf(0x20e)]),this[_0x461fcf(0x210)](new ShEvent(DrawEventType[_0x461fcf(0x225)],this[_0x461fcf(0x1f7)],_0x4631bb[_0x461fcf(0x20e)],this[_0x461fcf(0x21c)],(_0x31f1d6=this['getMap']())===null||_0x31f1d6===void 0x0?void 0x0:_0x31f1d6[_0x461fcf(0x21b)]()['getProjection']()[_0x461fcf(0x235)]())),this['finishDrawing']());!this[_0x461fcf(0x239)]?_0x3a1ef6=this['_type']==_0x461fcf(0x22a)?_0x461fcf(0x1e8):'单击开始绘制':(_0x3a1ef6=_0x461fcf(0x1e3),((_0x52adf3=this[_0x461fcf(0x21c)])===null||_0x52adf3===void 0x0?void 0x0:_0x52adf3[_0x461fcf(0x201)])===this[_0x461fcf(0x214)]-0x1&&(_0x3a1ef6=_0x461fcf(0x1e1)),((_0x270df2=this[_0x461fcf(0x21c)])===null||_0x270df2===void 0x0?void 0x0:_0x270df2[_0x461fcf(0x201)])>=this[_0x461fcf(0x1de)]&&this[_0x461fcf(0x214)]===Number[_0x461fcf(0x1f0)]&&(_0x3a1ef6=_0x461fcf(0x219)));this['tipText']!=undefined&&(_0x3a1ef6=this[_0x461fcf(0x22c)]);this['updateTip_'](_0x4631bb[_0x461fcf(0x20e)],_0x3a1ef6);if(this[_0x461fcf(0x239)]&&this['_type']!='rectangle'){let _0xc8d697=[...this[_0x461fcf(0x21c)],_0x4631bb[_0x461fcf(0x20e)]];this['buildDrawingFeature'](_0xc8d697);}this[_0x461fcf(0x210)](new DrawEvent(DrawEventType[_0x461fcf(0x221)],this[_0x461fcf(0x236)],this[_0x461fcf(0x21c)]));}['atFinish_'](_0x250c0c){const _0x344cd4=a46_0x288d77;var _0x4032c9;let _0x55c876=![],_0x2d430a=this['_drawingCoordinates'][_0x344cd4(0x201)];if(_0x2d430a>this[_0x344cd4(0x1de)]&&this[_0x344cd4(0x214)]===Number['MAX_VALUE']){const _0x4a71e7=this[_0x344cd4(0x21c)][this['_drawingCoordinates'][_0x344cd4(0x201)]-0x1],_0x5c0299=(_0x4032c9=this[_0x344cd4(0x21f)]())===null||_0x4032c9===void 0x0?void 0x0:_0x4032c9[_0x344cd4(0x1f8)](_0x4a71e7),_0x3c62bf=_0x250c0c[0x0]-(_0x5c0299?_0x5c0299[0x0]:0x0),_0x276502=_0x250c0c[0x1]-(_0x5c0299?_0x5c0299[0x1]:0x0);_0x55c876=Math[_0x344cd4(0x1db)](_0x3c62bf*_0x3c62bf+_0x276502*_0x276502)<=this[_0x344cd4(0x234)];}return _0x55c876;}[a46_0x288d77(0x200)](_0x47c832){const _0xef04b1=a46_0x288d77;this['_isStayDraw']=!![],this[_0xef04b1(0x21c)]=[_0x47c832['slice']()],this[_0xef04b1(0x236)]=this['createMultiPointFeature'](),this[_0xef04b1(0x23f)](),this[_0xef04b1(0x210)](new DrawEvent(DrawEventType[_0xef04b1(0x1f3)],this[_0xef04b1(0x236)],this[_0xef04b1(0x21c)]));}[a46_0x288d77(0x22b)](){const _0x5d7853=a46_0x288d77;if(this['_drawingCoordinates']['length']>this[_0x5d7853(0x1de)]){this[_0x5d7853(0x1fb)](this[_0x5d7853(0x21c)]);let _0x37836e=this['_drawingCoordinates'];const _0x26a2d7=this[_0x5d7853(0x242)]();if(!_0x26a2d7)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x5d7853(0x1d9)],_0x26a2d7,_0x37836e)),this['_features']&&this[_0x5d7853(0x1e6)][_0x5d7853(0x1ff)](_0x26a2d7),this[_0x5d7853(0x1fd)]&&this[_0x5d7853(0x1fd)][_0x5d7853(0x23e)](_0x26a2d7);}}['addPoint'](_0x49b4e0){const _0x13375c=a46_0x288d77;this[_0x13375c(0x21c)][_0x13375c(0x1ff)](_0x49b4e0),this[_0x13375c(0x236)]=this[_0x13375c(0x1df)](),this[_0x13375c(0x23f)]();}[a46_0x288d77(0x1df)](){const _0x2a40fc=a46_0x288d77,_0x3a6e7f=new MultiPoint(this['_drawingCoordinates']);let _0x3b7870=new a46_0x57869a();return _0x3b7870[_0x2a40fc(0x231)](_0x3a6e7f),_0x3b7870;}[a46_0x288d77(0x242)](){const _0x2b4ede=a46_0x288d77;var _0x34c865,_0xac5cfc;this[_0x2b4ede(0x239)]=![];const _0x1f260c=this[_0x2b4ede(0x236)];return this[_0x2b4ede(0x236)]=undefined,this['_drawingCoordinates']=[],(_0x34c865=this['_overlay'][_0x2b4ede(0x23a)]())===null||_0x34c865===void 0x0?void 0x0:_0x34c865[_0x2b4ede(0x1ea)](!![]),(_0xac5cfc=this[_0x2b4ede(0x204)]['getSource']())===null||_0xac5cfc===void 0x0?void 0x0:_0xac5cfc[_0x2b4ede(0x1ea)](!![]),_0x1f260c;}[a46_0x288d77(0x1eb)](){const _0x397e8c=a46_0x288d77,_0x5039f0=this['abortDrawing_']();_0x5039f0&&this[_0x397e8c(0x210)](new DrawEvent(DrawEventType['DRAWABORT'],_0x5039f0,this['_drawingCoordinates']));}['buildDrawingFeature'](_0x49e7cd){const _0x1a2c16=a46_0x288d77;this[_0x1a2c16(0x236)]=new a46_0x57869a();let _0x3d7f69=createPlot(this[_0x1a2c16(0x1f7)],_0x49e7cd);if(!_0x3d7f69)return;this[_0x1a2c16(0x236)][_0x1a2c16(0x231)](_0x3d7f69);let _0x3dd629=[a46_0x2c23bf['Circle'],a46_0x2c23bf[_0x1a2c16(0x209)],a46_0x2c23bf[_0x1a2c16(0x1da)]];if(_0x3dd629[_0x1a2c16(0x217)](this[_0x1a2c16(0x1f7)])>-0x1&&this['_style']){}const _0x30bdfa=this['getMap']();this['_sketchFeature']['setStyle'](getStyle(this[_0x1a2c16(0x1f7)],this[_0x1a2c16(0x1e2)],this[_0x1a2c16(0x21f)]())),this[_0x1a2c16(0x23f)]();}[a46_0x288d77(0x23f)](){const _0x4d9726=a46_0x288d77,_0x1b19e0=this['_overlay'][_0x4d9726(0x23a)]();_0x1b19e0&&this['_sketchFeature']&&(_0x1b19e0[_0x4d9726(0x1ea)](!![]),_0x1b19e0[_0x4d9726(0x23e)](this[_0x4d9726(0x236)]));}['revert'](){const _0x5eb56a=a46_0x288d77;if(this[_0x5eb56a(0x239)]){if(this[_0x5eb56a(0x21c)]&&this[_0x5eb56a(0x21c)]['length']>0x0){const _0x257d6b=this[_0x5eb56a(0x212)][_0x5eb56a(0x23a)]();_0x257d6b===null||_0x257d6b===void 0x0?void 0x0:_0x257d6b[_0x5eb56a(0x1ea)](!![]),this[_0x5eb56a(0x21c)]['pop'](),this[_0x5eb56a(0x21c)][_0x5eb56a(0x201)]>=this['_minPoints']&&this[_0x5eb56a(0x1fb)](this[_0x5eb56a(0x21c)]),this[_0x5eb56a(0x21c)][_0x5eb56a(0x201)]===0x0&&(this[_0x5eb56a(0x239)]=![]);}}}['updateTip_'](_0x12fdcb,_0x1b855a){const _0x4d3087=a46_0x288d77;var _0x4c5519,_0x4634c7,_0x10565c,_0x595a7b;if(!this[_0x4d3087(0x1e5)])return;const _0x1fc96b=this['_tipOverlay']['getSource']();_0x1fc96b===null||_0x1fc96b===void 0x0?void 0x0:_0x1fc96b[_0x4d3087(0x1ea)](!![]),(_0x4c5519=this[_0x4d3087(0x228)])===null||_0x4c5519===void 0x0?void 0x0:_0x4c5519[_0x4d3087(0x231)](new Point(_0x12fdcb)),(_0x10565c=(_0x4634c7=this['_tipStyle'])===null||_0x4634c7===void 0x0?void 0x0:_0x4634c7[_0x4d3087(0x1f5)]())===null||_0x10565c===void 0x0?void 0x0:_0x10565c[_0x4d3087(0x223)](_0x1b855a),(_0x595a7b=this[_0x4d3087(0x228)])===null||_0x595a7b===void 0x0?void 0x0:_0x595a7b['setStyle'](this[_0x4d3087(0x1f6)]),this['_tipFeature']&&(_0x1fc96b===null||_0x1fc96b===void 0x0?void 0x0:_0x1fc96b[_0x4d3087(0x23e)](this[_0x4d3087(0x228)]));}}function getDefaultStyleFunction(){const _0x363d98=createEditingStyle();return function(_0x144b80,_0x3f31f2){const _0xeac03b=a46_0x4adf,_0xb6b289=_0x363d98[_0x144b80[_0xeac03b(0x241)]()[_0xeac03b(0x229)]()];if(_0xb6b289&&_0xeac03b(0x23d)==_0x144b80[_0xeac03b(0x241)]()[_0xeac03b(0x229)]()){}};}
|
|
1
|
+
const a46_0x5c324d=a46_0x2eab;(function(_0x150822,_0x4e8024){const _0x206807=a46_0x2eab,_0x3a7850=_0x150822();while(!![]){try{const _0x223f71=-parseInt(_0x206807(0xf4))/0x1*(parseInt(_0x206807(0xea))/0x2)+parseInt(_0x206807(0x107))/0x3+parseInt(_0x206807(0xd8))/0x4*(-parseInt(_0x206807(0xf8))/0x5)+parseInt(_0x206807(0xed))/0x6*(parseInt(_0x206807(0xe9))/0x7)+-parseInt(_0x206807(0x111))/0x8+-parseInt(_0x206807(0x128))/0x9*(parseInt(_0x206807(0xd7))/0xa)+parseInt(_0x206807(0x10c))/0xb;if(_0x223f71===_0x4e8024)break;else _0x3a7850['push'](_0x3a7850['shift']());}catch(_0x15a103){_0x3a7850['push'](_0x3a7850['shift']());}}}(a46_0x3e9a,0x40622));import a46_0x381e9f from'ol/events/Event';function a46_0x2eab(_0x51f26a,_0xcd9d32){const _0x3e9ad0=a46_0x3e9a();return a46_0x2eab=function(_0x2eab65,_0x2d4be4){_0x2eab65=_0x2eab65-0xc9;let _0x490e6c=_0x3e9ad0[_0x2eab65];return _0x490e6c;},a46_0x2eab(_0x51f26a,_0xcd9d32);}import a46_0x5dc8e6 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a46_0x14f3e6 from'ol/Feature';import a46_0x16d458,{createEditingStyle}from'ol/style/Style';import a46_0x1306e2 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a46_0x521f51 from'ol/style/Text';import a46_0x1e4429 from'ol/style/Fill';import a46_0x46e586 from'ol/interaction/Property';import a46_0x2a16da from'ol/layer/Vector';import a46_0x2ee6fb from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a46_0x5c324d(0xcc),'DRAWEND':a46_0x5c324d(0x101),'DRAWABORT':a46_0x5c324d(0xd5),'DRAWADDPOINT':a46_0x5c324d(0xfe),'DRAWMOVING':a46_0x5c324d(0xc9)};export class DrawEvent extends a46_0x381e9f{constructor(_0x25481d,_0x226da4,_0xa8c151){const _0x480ac3=a46_0x5c324d;super(_0x25481d),this[_0x480ac3(0xf6)]=_0x226da4,this[_0x480ac3(0xe8)]=_0xa8c151;}}export class ShEvent extends a46_0x381e9f{constructor(_0x2502d5,_0x22ca47,_0x59ea63,_0x447962,_0x20b8c5){const _0x52fb33=a46_0x5c324d;super(_0x2502d5),this[_0x52fb33(0x116)]=_0x20b8c5,this[_0x52fb33(0x100)]=_0x22ca47,this[_0x52fb33(0xcd)]=_0x59ea63,this['coordinates']=_0x447962;}}export default class Draw extends a46_0x5dc8e6{constructor(_0x7af06b,_0x1e2aab){const _0x2c6558=a46_0x5c324d,_0x458ba9=_0x1e2aab?_0x1e2aab:{};!_0x458ba9[_0x2c6558(0xd1)]&&(_0x458ba9[_0x2c6558(0xd1)]=![]);super(_0x1e2aab),this['on']=this[_0x2c6558(0x118)],this['once']=this[_0x2c6558(0x12c)],this['un']=this[_0x2c6558(0x12f)],this['_isStayDraw']=![],this[_0x2c6558(0x108)]=_0x7af06b,this[_0x2c6558(0xce)]=_0x1e2aab===null||_0x1e2aab===void 0x0?void 0x0:_0x1e2aab[_0x2c6558(0x11a)],this[_0x2c6558(0xe4)]=_0x1e2aab===null||_0x1e2aab===void 0x0?void 0x0:_0x1e2aab['source'],this['_features']=_0x1e2aab===null||_0x1e2aab===void 0x0?void 0x0:_0x1e2aab[_0x2c6558(0xdd)];const _0x380eeb=getPlotCount(this[_0x2c6558(0x108)]);this[_0x2c6558(0x12e)]=_0x380eeb[_0x2c6558(0xef)],this['_fixPoint']=_0x380eeb[_0x2c6558(0xe3)],this['tipText']=_0x1e2aab===null||_0x1e2aab===void 0x0?void 0x0:_0x1e2aab[_0x2c6558(0xe1)],this[_0x2c6558(0x12a)]=(_0x1e2aab===null||_0x1e2aab===void 0x0?void 0x0:_0x1e2aab['showTip'])==![]?![]:!![],this['_snapTolerance']=_0x458ba9[_0x2c6558(0x104)]?_0x458ba9[_0x2c6558(0x104)]:0x6,this['_tipFeature']=new a46_0x14f3e6(),this[_0x2c6558(0xeb)]=new a46_0x16d458({'text':new a46_0x521f51({'font':'12px\x20Calibre,sans-serif','fill':new a46_0x1e4429({'color':_0x2c6558(0xfd)}),'backgroundFill':new a46_0x1e4429({'color':_0x2c6558(0x131)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x2c6558(0xe6),'offsetX':0xf})}),this[_0x2c6558(0xd9)]=[],this['_tipOverlay']=new a46_0x2a16da({'source':new a46_0x1306e2({'useSpatialIndex':![],'wrapX':(_0x1e2aab===null||_0x1e2aab===void 0x0?void 0x0:_0x1e2aab[_0x2c6558(0x11e)])?_0x1e2aab[_0x2c6558(0x11e)]:![]})}),this['_overlay']=new a46_0x2a16da({'source':new a46_0x1306e2({'useSpatialIndex':![],'wrapX':(_0x1e2aab===null||_0x1e2aab===void 0x0?void 0x0:_0x1e2aab[_0x2c6558(0x11e)])?_0x1e2aab[_0x2c6558(0x11e)]:![]}),'updateWhileInteracting':!![]}),this[_0x2c6558(0xe5)](a46_0x46e586[_0x2c6558(0x125)],this[_0x2c6558(0xff)]);}[a46_0x5c324d(0xff)](){const _0x25c765=a46_0x5c324d,_0x2d0394=this[_0x25c765(0x109)](),_0x1b6851=this[_0x25c765(0xf5)]();(!_0x2d0394||!_0x1b6851)&&this[_0x25c765(0xe7)](),this['_overlay'][_0x25c765(0xd2)](_0x1b6851?_0x2d0394:null),this['_tipOverlay'][_0x25c765(0xd2)](_0x1b6851?_0x2d0394:null);}[a46_0x5c324d(0xd2)](_0x19145e){const _0x193386=a46_0x5c324d;super[_0x193386(0xd2)](_0x19145e),this[_0x193386(0xff)]();}['setStyle'](_0x2f2566){const _0x3b70c8=a46_0x5c324d;this[_0x3b70c8(0xce)]=_0x2f2566?_0x2f2566:{};}[a46_0x5c324d(0xd3)](){const _0x431b1b=a46_0x5c324d;return this[_0x431b1b(0x102)];}['handleDownEvent'](_0x503184){const _0x56e47f=a46_0x5c324d;if(_0x503184[_0x56e47f(0x129)]['button']===0x2)return _0x503184[_0x56e47f(0x129)][_0x56e47f(0x10f)](),this['revert'](),this[_0x56e47f(0xca)](_0x503184),![];return!![];}['handleUpEvent'](_0x241a2b){const _0x2db674=a46_0x5c324d;var _0x1ed881,_0x47cfc5;if(this[_0x2db674(0x108)]==_0x2db674(0xdb)&&this[_0x2db674(0xd9)][_0x2db674(0x121)]<0x1)return this[_0x2db674(0xfa)](new DrawEvent(DrawEventType[_0x2db674(0xda)],undefined,[_0x241a2b['coordinate']])),![];if(!this[_0x2db674(0xcb)])this[_0x2db674(0xf0)](_0x241a2b['coordinate']),this[_0x2db674(0xfa)](new ShEvent(DrawEventType[_0x2db674(0x126)],this[_0x2db674(0x108)],_0x241a2b[_0x2db674(0xcd)],this[_0x2db674(0xd9)],(_0x1ed881=this[_0x2db674(0x109)]())===null||_0x1ed881===void 0x0?void 0x0:_0x1ed881[_0x2db674(0x124)]()[_0x2db674(0x115)]()['getCode']())),this[_0x2db674(0x108)]==_0x2db674(0xd0)&&this[_0x2db674(0xfb)]();else{if(this[_0x2db674(0xd9)]&&this[_0x2db674(0xd9)][_0x2db674(0x121)]>0x0){if(this[_0x2db674(0xe2)](_0x241a2b[_0x2db674(0xe0)]))return this[_0x2db674(0xfb)](),_0x241a2b['preventDefault'](),![];let _0x475da6=this['_drawingCoordinates'][_0x2db674(0x121)]+0x1;_0x475da6<=this['_fixPoint']&&this[_0x2db674(0x106)](_0x241a2b['coordinate']),this['dispatchEvent'](new ShEvent(DrawEventType[_0x2db674(0x126)],this[_0x2db674(0x108)],_0x241a2b[_0x2db674(0xcd)],this[_0x2db674(0xd9)],(_0x47cfc5=this['getMap']())===null||_0x47cfc5===void 0x0?void 0x0:_0x47cfc5[_0x2db674(0x124)]()['getProjection']()[_0x2db674(0x103)]())),_0x475da6>=this['_minPoints']&&this['buildDrawingFeature'](this[_0x2db674(0xd9)]),_0x475da6===this['_fixPoint']&&this[_0x2db674(0xfb)]();}}return _0x241a2b[_0x2db674(0x10f)](),![];}[a46_0x5c324d(0x11c)](_0x473d1b){const _0x20e966=a46_0x5c324d;var _0x5cb146;if(this[_0x20e966(0x108)]==_0x20e966(0xdb)&&_0x473d1b[_0x20e966(0x129)][_0x20e966(0x100)]==_0x20e966(0x12b)){if(!this[_0x20e966(0xcb)]){this[_0x20e966(0xf0)](_0x473d1b[_0x20e966(0xcd)]),this[_0x20e966(0xfa)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x20e966(0x108)],_0x473d1b[_0x20e966(0xcd)],this[_0x20e966(0xd9)],(_0x5cb146=this[_0x20e966(0x109)]())===null||_0x5cb146===void 0x0?void 0x0:_0x5cb146[_0x20e966(0x124)]()[_0x20e966(0x115)]()[_0x20e966(0x103)]()));return;}let _0x4e9e99=[...this[_0x20e966(0xd9)],_0x473d1b['coordinate']];this[_0x20e966(0x12d)](_0x4e9e99),this[_0x20e966(0xfa)](new DrawEvent(DrawEventType[_0x20e966(0xf3)],this[_0x20e966(0xf9)],this[_0x20e966(0xd9)]));}}[a46_0x5c324d(0xca)](_0x506abf){const _0x3991d5=a46_0x5c324d;var _0x139461,_0x51eece,_0x49581a;let _0x4e6b5c='';this[_0x3991d5(0x108)]==_0x3991d5(0x12b)&&(this[_0x3991d5(0xf0)](_0x506abf[_0x3991d5(0xcd)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x3991d5(0x126)],this[_0x3991d5(0x108)],_0x506abf[_0x3991d5(0xcd)],this['_drawingCoordinates'],(_0x139461=this[_0x3991d5(0x109)]())===null||_0x139461===void 0x0?void 0x0:_0x139461[_0x3991d5(0x124)]()[_0x3991d5(0x115)]()[_0x3991d5(0x103)]())),this[_0x3991d5(0xfb)]());!this[_0x3991d5(0xcb)]?_0x4e6b5c=this[_0x3991d5(0x108)]==_0x3991d5(0xdb)?_0x3991d5(0xdc):'单击开始绘制':(_0x4e6b5c=_0x3991d5(0x112),((_0x51eece=this[_0x3991d5(0xd9)])===null||_0x51eece===void 0x0?void 0x0:_0x51eece[_0x3991d5(0x121)])===this[_0x3991d5(0x105)]-0x1&&(_0x4e6b5c=_0x3991d5(0x119)),((_0x49581a=this[_0x3991d5(0xd9)])===null||_0x49581a===void 0x0?void 0x0:_0x49581a[_0x3991d5(0x121)])>=this[_0x3991d5(0x12e)]&&this['_fixPoint']===Number[_0x3991d5(0x10a)]&&(_0x4e6b5c=_0x3991d5(0x120)));this[_0x3991d5(0xe1)]!=undefined&&(_0x4e6b5c=this[_0x3991d5(0xe1)]);this[_0x3991d5(0x110)](_0x506abf['coordinate'],_0x4e6b5c);if(this[_0x3991d5(0xcb)]&&this[_0x3991d5(0x108)]!=_0x3991d5(0xdb)){let _0x555f68=[...this['_drawingCoordinates'],_0x506abf[_0x3991d5(0xcd)]];this['buildDrawingFeature'](_0x555f68);}this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x3991d5(0xf9)],this[_0x3991d5(0xd9)]));}[a46_0x5c324d(0xe2)](_0x2a5376){const _0x5d9c46=a46_0x5c324d;var _0x44790c;let _0xe6677=![],_0x212d75=this[_0x5d9c46(0xd9)]['length'];if(_0x212d75>this[_0x5d9c46(0x12e)]&&this[_0x5d9c46(0x105)]===Number[_0x5d9c46(0x10a)]){const _0x3abe98=this[_0x5d9c46(0xd9)][this[_0x5d9c46(0xd9)][_0x5d9c46(0x121)]-0x1],_0x5eb6a0=(_0x44790c=this['getMap']())===null||_0x44790c===void 0x0?void 0x0:_0x44790c[_0x5d9c46(0x10d)](_0x3abe98),_0x4079a7=_0x2a5376[0x0]-(_0x5eb6a0?_0x5eb6a0[0x0]:0x0),_0x38cdcf=_0x2a5376[0x1]-(_0x5eb6a0?_0x5eb6a0[0x1]:0x0);_0xe6677=Math[_0x5d9c46(0xd4)](_0x4079a7*_0x4079a7+_0x38cdcf*_0x38cdcf)<=this['_snapTolerance'];}return _0xe6677;}[a46_0x5c324d(0xf0)](_0x4a414d){const _0x13c3d2=a46_0x5c324d;this[_0x13c3d2(0xcb)]=!![],this['_drawingCoordinates']=[_0x4a414d[_0x13c3d2(0x127)]()],this[_0x13c3d2(0xf9)]=this[_0x13c3d2(0x10e)](),this[_0x13c3d2(0x11d)](),this[_0x13c3d2(0xfa)](new DrawEvent(DrawEventType[_0x13c3d2(0xd6)],this['_sketchFeature'],this[_0x13c3d2(0xd9)]));}[a46_0x5c324d(0xfb)](){const _0xdbdf17=a46_0x5c324d;if(this['_drawingCoordinates'][_0xdbdf17(0x121)]>this[_0xdbdf17(0x12e)]){this[_0xdbdf17(0x12d)](this[_0xdbdf17(0xd9)]);let _0x1a83f1=this[_0xdbdf17(0xd9)];const _0xb4b847=this[_0xdbdf17(0xde)]();if(!_0xb4b847)return;this[_0xdbdf17(0xfa)](new DrawEvent(DrawEventType[_0xdbdf17(0xda)],_0xb4b847,_0x1a83f1)),this[_0xdbdf17(0x10b)]&&this[_0xdbdf17(0x10b)]['push'](_0xb4b847),this[_0xdbdf17(0xe4)]&&this['_source']['addFeature'](_0xb4b847);}}[a46_0x5c324d(0x106)](_0x21b67a){const _0x29ad3e=a46_0x5c324d;this[_0x29ad3e(0xd9)]['push'](_0x21b67a),this[_0x29ad3e(0xf9)]=this[_0x29ad3e(0x10e)](),this[_0x29ad3e(0x11d)]();}[a46_0x5c324d(0x10e)](){const _0x5e2183=a46_0x5c324d,_0x3409b9=new MultiPoint(this[_0x5e2183(0xd9)]);let _0x301b10=new a46_0x14f3e6();return _0x301b10[_0x5e2183(0xf1)](_0x3409b9),_0x301b10;}[a46_0x5c324d(0xde)](){const _0x333da7=a46_0x5c324d;var _0xd0d2b4,_0x53902f;this[_0x333da7(0xcb)]=![];const _0x22f621=this[_0x333da7(0xf9)];return this[_0x333da7(0xf9)]=undefined,this[_0x333da7(0xd9)]=[],(_0xd0d2b4=this[_0x333da7(0x102)][_0x333da7(0x113)]())===null||_0xd0d2b4===void 0x0?void 0x0:_0xd0d2b4[_0x333da7(0x130)](!![]),(_0x53902f=this[_0x333da7(0x114)][_0x333da7(0x113)]())===null||_0x53902f===void 0x0?void 0x0:_0x53902f[_0x333da7(0x130)](!![]),_0x22f621;}[a46_0x5c324d(0xe7)](){const _0x564032=a46_0x5c324d,_0x3f8be4=this[_0x564032(0xde)]();_0x3f8be4&&this[_0x564032(0xfa)](new DrawEvent(DrawEventType[_0x564032(0xec)],_0x3f8be4,this[_0x564032(0xd9)]));}['buildDrawingFeature'](_0x2cb3f5){const _0x44bf84=a46_0x5c324d;this['_sketchFeature']=new a46_0x14f3e6();let _0x247828=createPlot(this[_0x44bf84(0x108)],_0x2cb3f5);if(!_0x247828)return;this[_0x44bf84(0xf9)]['setGeometry'](_0x247828);let _0x2c3279=[a46_0x2ee6fb['Circle'],a46_0x2ee6fb[_0x44bf84(0x123)],a46_0x2ee6fb[_0x44bf84(0xee)]];if(_0x2c3279[_0x44bf84(0xfc)](this[_0x44bf84(0x108)])>-0x1&&this['_style']){}const _0x17a298=this[_0x44bf84(0x109)]();this[_0x44bf84(0xf9)][_0x44bf84(0x11f)](getStyle(this[_0x44bf84(0x108)],this[_0x44bf84(0xce)],this['getMap']())),this[_0x44bf84(0x11d)]();}[a46_0x5c324d(0x11d)](){const _0x2d11a5=a46_0x5c324d,_0x4adac2=this[_0x2d11a5(0x102)][_0x2d11a5(0x113)]();_0x4adac2&&this[_0x2d11a5(0xf9)]&&(_0x4adac2['clear'](!![]),_0x4adac2['addFeature'](this['_sketchFeature']));}[a46_0x5c324d(0xcf)](){const _0x3bc99f=a46_0x5c324d;if(this[_0x3bc99f(0xcb)]){if(this[_0x3bc99f(0xd9)]&&this[_0x3bc99f(0xd9)][_0x3bc99f(0x121)]>0x0){const _0x45481e=this['_overlay']['getSource']();_0x45481e===null||_0x45481e===void 0x0?void 0x0:_0x45481e[_0x3bc99f(0x130)](!![]),this[_0x3bc99f(0xd9)]['pop'](),this[_0x3bc99f(0xd9)][_0x3bc99f(0x121)]>=this[_0x3bc99f(0x12e)]&&this[_0x3bc99f(0x12d)](this[_0x3bc99f(0xd9)]),this[_0x3bc99f(0xd9)][_0x3bc99f(0x121)]===0x0&&(this[_0x3bc99f(0xcb)]=![]);}}}[a46_0x5c324d(0x110)](_0x1bd6fb,_0x12eabc){const _0xa33731=a46_0x5c324d;var _0x59f39f,_0x3fec46,_0x1a7768,_0x37efa4;if(!this[_0xa33731(0x12a)])return;const _0x515d3e=this['_tipOverlay'][_0xa33731(0x113)]();_0x515d3e===null||_0x515d3e===void 0x0?void 0x0:_0x515d3e[_0xa33731(0x130)](!![]),(_0x59f39f=this[_0xa33731(0xf2)])===null||_0x59f39f===void 0x0?void 0x0:_0x59f39f['setGeometry'](new Point(_0x1bd6fb)),(_0x1a7768=(_0x3fec46=this[_0xa33731(0xeb)])===null||_0x3fec46===void 0x0?void 0x0:_0x3fec46[_0xa33731(0x122)]())===null||_0x1a7768===void 0x0?void 0x0:_0x1a7768[_0xa33731(0xf7)](_0x12eabc),(_0x37efa4=this[_0xa33731(0xf2)])===null||_0x37efa4===void 0x0?void 0x0:_0x37efa4['setStyle'](this['_tipStyle']),this[_0xa33731(0xf2)]&&(_0x515d3e===null||_0x515d3e===void 0x0?void 0x0:_0x515d3e[_0xa33731(0x117)](this[_0xa33731(0xf2)]));}}function getDefaultStyleFunction(){const _0xa8e8f4=createEditingStyle();return function(_0x59bea7,_0xa7838e){const _0x97e270=a46_0x2eab,_0x481088=_0xa8e8f4[_0x59bea7['getGeometry']()['getType']()];if(_0x481088&&_0x97e270(0x11b)==_0x59bea7['getGeometry']()[_0x97e270(0xdf)]()){}};}function a46_0x3e9a(){const _0x8761d8=['coordinates','35IcGWUA','8266WxMjNz','_tipStyle','DRAWABORT','47394YzIZJS','Ellipse','minPoint','startDrawing_','setGeometry','_tipFeature','DRAWMOVING','18rcAWuW','getActive','feature','setText','15KxCzaU','_sketchFeature','dispatchEvent','finishDrawing','indexOf','rgba(255,\x20255,\x20255,\x201)','drawAddPoint','updateState_','type','drawEnd','_overlay','getCode','snapTolerance','_fixPoint','addPoint','706017DRUZRd','_type','getMap','MAX_VALUE','_features','10980354atkZOn','getPixelFromCoordinate','createMultiPointFeature','preventDefault','updateTip_','3894968LrHBhe','单击增加点,右击删除点','getSource','_tipOverlay','getProjection','projection','addFeature','onInternal','单击结束绘制,右击删除点','style','Rectangle','handleDragEvent','updateSketchFeatures_','wrapX','setStyle','单击增加点,右击删除点双击完成绘制','length','getText','Ellipsoid','getView','ACTIVE','DRAWADDPOINT','slice','9nYlyCg','originalEvent','_showTip','pointermove','onceInternal','buildDrawingFeature','_minPoints','unInternal','clear','rgba(0,\x200,\x200,\x200.4)','drawMoving','handleMoveEvent','_isStayDraw','drawStart','coordinate','_style','revert','point','stopDown','setMap','getOverlay','sqrt','drawAbort','DRAWSTART','1818220QkPSER','354996AdGByW','_drawingCoordinates','DRAWEND','rectangle','单击拖动绘制','features','abortDrawing_','getType','pixel','tipText','atFinish_','fixPoint','_source','addChangeListener','left','abortDrawing'];a46_0x3e9a=function(){return _0x8761d8;};return a46_0x3e9a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x3311e2=a47_0x5229;function a47_0x5229(_0xca5a6e,_0x376e62){const _0x1ac2ce=a47_0x1ac2();return a47_0x5229=function(_0x522989,_0x5e8aae){_0x522989=_0x522989-0x1c8;let _0x408e28=_0x1ac2ce[_0x522989];return _0x408e28;},a47_0x5229(_0xca5a6e,_0x376e62);}(function(_0x19a8f1,_0x205ec7){const _0x431c60=a47_0x5229,_0x1c2ca7=_0x19a8f1();while(!![]){try{const _0x10b78c=parseInt(_0x431c60(0x1d5))/0x1*(-parseInt(_0x431c60(0x1c9))/0x2)+parseInt(_0x431c60(0x1d6))/0x3*(parseInt(_0x431c60(0x1dc))/0x4)+parseInt(_0x431c60(0x1d3))/0x5*(-parseInt(_0x431c60(0x1dd))/0x6)+parseInt(_0x431c60(0x1d1))/0x7*(-parseInt(_0x431c60(0x1cb))/0x8)+parseInt(_0x431c60(0x1cf))/0x9+-parseInt(_0x431c60(0x1d7))/0xa*(-parseInt(_0x431c60(0x1db))/0xb)+parseInt(_0x431c60(0x1cd))/0xc;if(_0x10b78c===_0x205ec7)break;else _0x1c2ca7['push'](_0x1c2ca7['shift']());}catch(_0x5eaa53){_0x1c2ca7['push'](_0x1c2ca7['shift']());}}}(a47_0x1ac2,0x4fb04));function a47_0x1ac2(){const _0x531120=['33596nHcDQR','189SliMvj','2145610wQNKyQ','addInteraction','delete','has','22ZqdkIj','2260XEMPLW','12SJlaZQ','removeInteraction','get','14CrYYWX','removeAllInteractions','108384FPXrIp','interactions','4525236pyQWuV','forEach','5012766LHuIAv','name','259FYQkrz','map','839855VPXbOT','set'];a47_0x1ac2=function(){return _0x531120;};return a47_0x1ac2();}export default class InteractionManager{constructor(_0x176584){const _0x1daa3d=a47_0x5229;this[_0x1daa3d(0x1d2)]=_0x176584,this[_0x1daa3d(0x1cc)]=new Map();}['addInteraction'](_0x1a955f,_0x1bc17e){const _0x3af798=a47_0x5229;this[_0x3af798(0x1cc)][_0x3af798(0x1da)](_0x1a955f)&&this[_0x3af798(0x1de)](_0x1a955f),_0x1bc17e[_0x3af798(0x1d4)](_0x3af798(0x1d0),_0x1a955f),this[_0x3af798(0x1cc)][_0x3af798(0x1d4)](_0x1a955f,_0x1bc17e),this[_0x3af798(0x1d2)][_0x3af798(0x1d8)](_0x1bc17e);}[a47_0x3311e2(0x1de)](_0x5d3044){const _0x1435f6=a47_0x3311e2,_0x64f06c=this[_0x1435f6(0x1cc)][_0x1435f6(0x1c8)](_0x5d3044);_0x64f06c&&(this[_0x1435f6(0x1d2)]['removeInteraction'](_0x64f06c),this[_0x1435f6(0x1cc)][_0x1435f6(0x1d9)](_0x5d3044));}[a47_0x3311e2(0x1ca)](){const _0x1eea10=a47_0x3311e2;this['interactions'][_0x1eea10(0x1ce)](_0x509d1f=>{const _0x32fd67=_0x1eea10;this[_0x32fd67(0x1d2)]['removeInteraction'](_0x509d1f);}),this[_0x1eea10(0x1cc)]['clear']();}['getInteraction'](_0x3ef521){const _0x4d227a=a47_0x3311e2;return this[_0x4d227a(0x1cc)][_0x4d227a(0x1c8)](_0x3ef521);}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x452aca=a48_0x2809;(function(_0xb5b444,_0x1c4153){const _0x337bc1=a48_0x2809,_0x2d4e42=_0xb5b444();while(!![]){try{const _0x59500d=-parseInt(_0x337bc1(0xc6))/0x1*(parseInt(_0x337bc1(0xa6))/0x2)+-parseInt(_0x337bc1(0xb8))/0x3+-parseInt(_0x337bc1(0x8f))/0x4+parseInt(_0x337bc1(0xc1))/0x5+-parseInt(_0x337bc1(0x9c))/0x6+-parseInt(_0x337bc1(0x87))/0x7+parseInt(_0x337bc1(0x88))/0x8*(parseInt(_0x337bc1(0xad))/0x9);if(_0x59500d===_0x1c4153)break;else _0x2d4e42['push'](_0x2d4e42['shift']());}catch(_0x5beb84){_0x2d4e42['push'](_0x2d4e42['shift']());}}}(a48_0x79fa,0xaef5d));import a48_0x282c7b from'./Draw';function a48_0x2809(_0x538334,_0x2370f1){const _0x79fa9b=a48_0x79fa();return a48_0x2809=function(_0x280907,_0x4ec1bf){_0x280907=_0x280907-0x87;let _0xa62c6d=_0x79fa9b[_0x280907];return _0xa62c6d;},a48_0x2809(_0x538334,_0x2370f1);}import a48_0x12ea9a from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a48_0x276904 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'SELECTSTART':a48_0x452aca(0xaa),'SELECTED':a48_0x452aca(0xd0)};export class SelectEvent extends a48_0x12ea9a{constructor(_0x3437e5,_0x33bd8a,_0x3daa67,_0x5dab6f,_0x4e04dc,_0x5a1b62,_0xceef83,_0x198403,_0x572063){const _0x270519=a48_0x452aca;super(_0x3437e5),this[_0x270519(0xba)]=_0x3daa67,this[_0x270519(0x9e)]=_0x5dab6f,this[_0x270519(0x91)]=_0x4e04dc,this[_0x270519(0xb1)]=_0x5a1b62,this['polygonFeatures']=_0xceef83,this['allFeatures']=_0x198403,this[_0x270519(0x94)]=_0x572063,this[_0x270519(0x9f)]=_0x33bd8a;}}function a48_0x79fa(){const _0x361adf=['layerInfo','keyup','selectLayers','getGeometry','addEventListener','95148WisLfY','tempLayer','getType','canceLineStyle','selectStart','getLineTempLayer','layerType','27EWjNlC','polygonStyle','currentLayers','addFeatures','lineFeatures','allSelectedFeatures','selectedLineFeatures','addTempLayer','url','message','LineString','770799WXnqMK','setSelectLayers','selectGeom','Polygon','MultiPolygon','getSource','selectLayer','getLayerById','MultiPoint','653670XhsHtL','SELECTED','未获取到几何','getPolygonTempLayer','seletctEditeFeature','11uPaRiX','includes','getCode','map','cancePointStyle','getProjection','filter','push','forEach','feature','selected','getView','draw','MultiLineString','length','getLayers','8450925TOepgN','12574312NJhaAO','drawEnd','selectedPolygonFeatures','Point','getVisible','pixelDistance','ctrlKey','3673984ylbzju','cancePolygonStyle','pointFeatures','fromType','setStyle','error','lineStyle','dispatchEvent','selectedPointFeatures','getMap','pointStyle','selectTempLayer','layerId','7340676ekADOL','keydown','coordinates','holdCtrl','selectIndex'];a48_0x79fa=function(){return _0x361adf;};return a48_0x79fa();}export default class Select extends a48_0x282c7b{constructor(_0xc491f9,_0x3394e0){const _0x5a069c=a48_0x452aca;super(_0xc491f9,{'tipText':_0x3394e0===null||_0x3394e0===void 0x0?void 0x0:_0x3394e0['tipText']}),this['selectedPointFeatures']=[],this['selectedLineFeatures']=[],this['selectedPolygonFeatures']=[],this[_0x5a069c(0xb2)]=[];const _0x13c34f=_0x3394e0||{};this[_0x5a069c(0xb4)]=_0x13c34f['addTempLayer']||![],this[_0x5a069c(0xaf)]=_0x13c34f[_0x5a069c(0xa3)],this[_0x5a069c(0x9a)]=_0x13c34f[_0x5a069c(0x9a)]===undefined?!![]:_0x13c34f[_0x5a069c(0x9a)],this[_0x5a069c(0x8d)]=_0x13c34f[_0x5a069c(0x8d)]===undefined?0x5:_0x13c34f[_0x5a069c(0x8d)],this['pointStyle']=_0x13c34f[_0x5a069c(0x99)]?getStyle(_0x13c34f[_0x5a069c(0x99)]):getSelectPointStyle(),this['cancePointStyle']=_0x13c34f['cancePointStyle']?getStyle(_0x13c34f[_0x5a069c(0xca)]):getSelectCancePointStyle(),this['lineStyle']=_0x13c34f[_0x5a069c(0x95)]?getStyle(_0x13c34f[_0x5a069c(0x95)]):getSelectLineStyle(),this[_0x5a069c(0xa9)]=_0x13c34f[_0x5a069c(0xa9)]?getStyle(_0x13c34f[_0x5a069c(0xa9)]):getSelectCancelLineStyle(),this[_0x5a069c(0xae)]=_0x13c34f[_0x5a069c(0xae)]?getStyle(_0x13c34f[_0x5a069c(0xae)]):getSelectPolygonStyle(),this[_0x5a069c(0x90)]=_0x13c34f['cancePolygonStyle']?getStyle(_0x13c34f['cancePolygonStyle']):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x25dd60;this['on']=this['onInternal'],this['on'](_0x5a069c(0x89),async _0x6c048b=>{const _0x3102a=_0x5a069c,_0x53e7f5=this[_0x3102a(0x9f)],_0x3df006=this['getMap']();if(!_0x3df006)return;try{let _0x1bc6c9=undefined;if(!_0x6c048b[_0x3102a(0xcf)]&&_0x6c048b[_0x3102a(0x9e)]&&_0x6c048b[_0x3102a(0x9e)]['length']==0x1)_0x1bc6c9=bufferPixel(new Point(_0x6c048b[_0x3102a(0x9e)][0x0]),this['pixelDistance'],_0x3df006);else _0x6c048b['feature']&&(_0x1bc6c9=_0x6c048b[_0x3102a(0xcf)][_0x3102a(0xa4)]());if(!_0x1bc6c9)throw new Error(_0x3102a(0xc3));this['dispatchEvent'](new SelectEvent(SelectEventType['SELECTSTART'],_0x53e7f5,_0x1bc6c9)),this[_0x3102a(0x97)]=[],this[_0x3102a(0xb3)]=[],this[_0x3102a(0x8a)]=[],this[_0x3102a(0xb2)]=[],this[_0x3102a(0x9a)]&&this[_0x3102a(0xc5)](_0x1bc6c9),_0x25dd60&&clearTimeout(_0x25dd60),_0x25dd60=setTimeout(async()=>{const _0x43fbe0=_0x3102a;await this[_0x43fbe0(0xbe)](_0x1bc6c9),this['dispatchEvent'](new SelectEvent(SelectEventType[_0x43fbe0(0xc2)],_0x53e7f5,_0x1bc6c9,_0x6c048b[_0x43fbe0(0x9e)],this['selectedPointFeatures'],this[_0x43fbe0(0xb3)],this[_0x43fbe0(0x8a)],this[_0x43fbe0(0xb2)]));},0x46);}catch(_0x5cb89c){this[_0x3102a(0x96)](new SelectEvent(SelectEventType[_0x3102a(0xc2)],_0x53e7f5,undefined,_0x6c048b[_0x3102a(0x9e)],this[_0x3102a(0x97)],this[_0x3102a(0xb3)],this[_0x3102a(0x8a)],this[_0x3102a(0xb2)],_0x5cb89c[_0x3102a(0xb6)]));}}),window['addEventListener'](_0x5a069c(0x9d),_0x46668c=>{const _0xae2d99=_0x5a069c;_0x46668c[_0xae2d99(0x8e)]&&(this[_0xae2d99(0x9f)]=!![]);}),window[_0x5a069c(0xa5)](_0x5a069c(0xa2),_0x3ad47d=>{const _0x4d2b15=_0x5a069c;this[_0x4d2b15(0x9f)]=![];});}[a48_0x452aca(0xb9)](_0x5c818e){const _0x51fb43=a48_0x452aca;this[_0x51fb43(0xaf)]=_0x5c818e;}async[a48_0x452aca(0xbe)](_0x5608b2){const _0x2cec8c=a48_0x452aca;var _0x581602;const _0x16858d=this[_0x2cec8c(0x98)]();let _0x282625=[];if(this[_0x2cec8c(0xaf)]&&this[_0x2cec8c(0xaf)][_0x2cec8c(0xd4)]>0x0)_0x282625=this[_0x2cec8c(0xaf)];else{let _0x1ed538=_0x16858d[_0x2cec8c(0xd5)]()['getArray']();_0x1ed538=_0x1ed538[_0x2cec8c(0xcc)](_0x3cc80e=>{const _0x6bf27a=_0x2cec8c,_0x32ff85=_0x3cc80e[_0x6bf27a(0xa1)];if(!_0x32ff85)return![];return _0x3cc80e[_0x6bf27a(0x8c)]()==!![]&&_0x32ff85[_0x6bf27a(0xa0)]!=undefined&&_0x32ff85['selectIndex']!='';}),_0x282625=_0x1ed538[_0x2cec8c(0xc9)](_0x44b364=>{const _0x567ebc=_0x2cec8c;return _0x44b364[_0x567ebc(0xa1)];});}if(!_0x282625||_0x282625[_0x2cec8c(0xd4)]==0x0)return;const _0x28e67c=_0x16858d[_0x2cec8c(0xd1)]()[_0x2cec8c(0xcb)]()[_0x2cec8c(0xc8)](),_0x5108af=_0x16858d['getView']()['getResolution']();for(let _0x4fa299=0x0,_0x2d85a7=_0x282625[_0x2cec8c(0xd4)];_0x4fa299<_0x2d85a7;_0x4fa299++){const _0x446ced=_0x282625[_0x4fa299],_0x2daeb9=_0x16858d[_0x2cec8c(0xbf)](_0x446ced['id']);if(!_0x2daeb9||_0x2daeb9[_0x2cec8c(0x8c)]()==![]||!_0x446ced||!_0x446ced['url']||!_0x446ced[_0x2cec8c(0xa0)])continue;let _0x450cd3=await selectFeaturesByGeo(_0x5608b2,_0x28e67c,_0x446ced[_0x2cec8c(0xb5)],_0x446ced[_0x2cec8c(0xa0)],_0x446ced[_0x2cec8c(0xac)],_0x446ced['loadFilter'],_0x5108af);if(_0x450cd3['length']>0x0){this[_0x2cec8c(0xb2)]['push'](..._0x450cd3);let _0xe97a84=_0x16858d[_0x2cec8c(0xc4)](),_0x146c3a=this[_0x2cec8c(0xae)];switch((_0x581602=_0x450cd3[0x0]['getGeometry']())===null||_0x581602===void 0x0?void 0x0:_0x581602['getType']()){case _0x2cec8c(0x8b):case'MultiPoint':this['selectedPointFeatures'][_0x2cec8c(0xcd)](..._0x450cd3),_0xe97a84=_0x16858d['getPointTempLayer'](),_0x146c3a=this[_0x2cec8c(0x99)];break;case _0x2cec8c(0xb7):case _0x2cec8c(0xd3):this[_0x2cec8c(0xb3)][_0x2cec8c(0xcd)](..._0x450cd3),_0xe97a84=_0x16858d[_0x2cec8c(0xab)](),_0x146c3a=this[_0x2cec8c(0x95)];break;case _0x2cec8c(0xbb):case _0x2cec8c(0xbc):this[_0x2cec8c(0x8a)][_0x2cec8c(0xcd)](..._0x450cd3),_0xe97a84=_0x16858d[_0x2cec8c(0xc4)](),_0x146c3a=this['polygonStyle'];break;default:break;}const _0x44bec4=_0xe97a84[_0x2cec8c(0xbd)]();_0x44bec4&&(_0x450cd3[_0x2cec8c(0xce)](_0x5c5661=>{const _0x55b95b=_0x2cec8c;_0x5c5661[_0x55b95b(0x9b)]=_0x446ced['id'],_0x5c5661[_0x55b95b(0xa7)]=_0xe97a84,_0x5c5661[_0x55b95b(0x93)](_0x146c3a);}),this['addTempLayer']&&_0x44bec4[_0x2cec8c(0xb0)](_0x450cd3));}}}[a48_0x452aca(0xc5)](_0x237af6){const _0x10bd2a=a48_0x452aca,_0x48ab42=new a48_0x276904(this[_0x10bd2a(0x98)]()),_0x4ccee2=_0x48ab42['getSelectedFeatures']();if(!_0x4ccee2||_0x4ccee2[_0x10bd2a(0xd4)]===0x0)return[];const _0x2cb1c3=['copy','cut',_0x10bd2a(0xd2),'import','union'],_0x29639f=[];for(const _0x399c78 of _0x4ccee2){if(!_0x399c78||!_0x399c78[_0x10bd2a(0x92)]||!_0x2cb1c3[_0x10bd2a(0xc7)](_0x399c78[_0x10bd2a(0x92)]))continue;const _0x30f673=_0x399c78['getGeometry']();if(!_0x30f673)continue;if(!intersects(_0x30f673,_0x237af6))continue;let _0x359fed=this[_0x10bd2a(0xae)];this[_0x10bd2a(0xb2)][_0x10bd2a(0xcd)](_0x399c78);switch(_0x30f673[_0x10bd2a(0xa8)]()){case _0x10bd2a(0x8b):case _0x10bd2a(0xc0):this[_0x10bd2a(0x97)][_0x10bd2a(0xcd)](_0x399c78),_0x359fed=this['pointStyle'];break;case _0x10bd2a(0xb7):case'MultiLineString':this[_0x10bd2a(0xb3)][_0x10bd2a(0xcd)](_0x399c78),_0x359fed=this[_0x10bd2a(0x95)];break;case'Polygon':case _0x10bd2a(0xbc):this[_0x10bd2a(0x8a)][_0x10bd2a(0xcd)](_0x399c78),_0x359fed=this['polygonStyle'];break;default:break;}_0x399c78[_0x10bd2a(0x93)](_0x359fed);}return _0x29639f;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a49_0x1c09(_0x182674,_0xcffd83){const _0x408233=a49_0x4082();return a49_0x1c09=function(_0x1c0916,_0x1c6a36){_0x1c0916=_0x1c0916-0x156;let _0x2c3593=_0x408233[_0x1c0916];return _0x2c3593;},a49_0x1c09(_0x182674,_0xcffd83);}const a49_0x973fcb=a49_0x1c09;(function(_0x107a09,_0x1d159f){const _0x1b31f9=a49_0x1c09,_0x440d55=_0x107a09();while(!![]){try{const _0x446f93=-parseInt(_0x1b31f9(0x15d))/0x1*(-parseInt(_0x1b31f9(0x174))/0x2)+-parseInt(_0x1b31f9(0x168))/0x3*(-parseInt(_0x1b31f9(0x16c))/0x4)+parseInt(_0x1b31f9(0x178))/0x5+parseInt(_0x1b31f9(0x15c))/0x6*(parseInt(_0x1b31f9(0x166))/0x7)+parseInt(_0x1b31f9(0x164))/0x8+-parseInt(_0x1b31f9(0x15a))/0x9*(parseInt(_0x1b31f9(0x179))/0xa)+-parseInt(_0x1b31f9(0x15e))/0xb*(parseInt(_0x1b31f9(0x16f))/0xc);if(_0x446f93===_0x1d159f)break;else _0x440d55['push'](_0x440d55['shift']());}catch(_0x59c51e){_0x440d55['push'](_0x440d55['shift']());}}}(a49_0x4082,0xe63ce));import a49_0x36fa94 from'ol/source/ImageArcGISRest';import{Image as a49_0x17b014}from'ol/layer';function a49_0x4082(){const _0x326807=['308YoGKzc','mapIndex','sublayers','spatialReference','join','setFilter','5851136ANlXwi','url','1308104DLevcL','stringify','770652WtfcTq','selectIndex','getSource','layerDefs','12DicJwY','wkid','wkt','980112dMEahP','opacity','fullExtent','ymin','initialExtent','3790ZKLkYj','xmax','EPSG:','show:','4676505RAzvJQ','11154490ojkkaM','layerInfo','xmin','anonymous','ymax','9nSxQeN','loadFilter','48zdjDLS','218Ehkdja'];a49_0x4082=function(){return _0x326807;};return a49_0x4082();}import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a49_0x17b014{constructor(_0x37eb51,_0x57ee6d){const _0x1da28a=a49_0x1c09;var _0x3f6570;let _0x42a745={'LAYERS':_0x1da28a(0x177)+((_0x3f6570=_0x37eb51[_0x1da28a(0x160)])===null||_0x3f6570===void 0x0?void 0x0:_0x3f6570[_0x1da28a(0x162)](','))};if(_0x37eb51[_0x1da28a(0x15b)]&&_0x37eb51['selectIndex']){const _0x16648e={};_0x16648e[_0x37eb51[_0x1da28a(0x169)]]=_0x37eb51[_0x1da28a(0x15b)],_0x42a745[_0x1da28a(0x16b)]=JSON[_0x1da28a(0x167)](_0x16648e);}const _0x393b05=[_0x57ee6d[_0x1da28a(0x173)][_0x1da28a(0x157)],_0x57ee6d[_0x1da28a(0x173)]['ymin'],_0x57ee6d['initialExtent'][_0x1da28a(0x175)],_0x57ee6d[_0x1da28a(0x173)][_0x1da28a(0x159)]],_0x5c1d0c=[_0x57ee6d['fullExtent']['xmin'],_0x57ee6d['fullExtent'][_0x1da28a(0x172)],_0x57ee6d[_0x1da28a(0x171)][_0x1da28a(0x175)],_0x57ee6d[_0x1da28a(0x171)][_0x1da28a(0x159)]];let _0x506f7b;_0x57ee6d[_0x1da28a(0x161)][_0x1da28a(0x16d)]?_0x506f7b=registerProj(_0x1da28a(0x176)+_0x57ee6d[_0x1da28a(0x161)]['wkid'],_0x5c1d0c):_0x506f7b=registerProj(_0x57ee6d[_0x1da28a(0x161)][_0x1da28a(0x16e)],_0x5c1d0c),super({'opacity':_0x37eb51[_0x1da28a(0x170)],'zIndex':_0x37eb51[_0x1da28a(0x15f)],'source':new a49_0x36fa94({'crossOrigin':_0x1da28a(0x158),'projection':_0x506f7b,'ratio':0x1,'url':_0x37eb51[_0x1da28a(0x165)],'params':_0x42a745})}),this['id']=_0x37eb51['id'],this[_0x1da28a(0x173)]=_0x393b05,this['projection']=_0x506f7b,this[_0x1da28a(0x156)]=_0x37eb51;}[a49_0x973fcb(0x163)](_0x4cf093){const _0x1f7bb5=a49_0x973fcb;var _0x431543;const _0x445f0e={};this[_0x1f7bb5(0x156)][_0x1f7bb5(0x169)]&&(_0x445f0e[this[_0x1f7bb5(0x156)][_0x1f7bb5(0x169)]]=_0x4cf093),(_0x431543=this[_0x1f7bb5(0x16a)]())===null||_0x431543===void 0x0?void 0x0:_0x431543['updateParams']({'layerDefs':JSON[_0x1f7bb5(0x167)](_0x4cf093)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x5a0697=a50_0x4633;(function(_0x7a255b,_0x444c55){const _0x36c368=a50_0x4633,_0x5bb7ff=_0x7a255b();while(!![]){try{const _0x1e7849=parseInt(_0x36c368(0xd3))/0x1+-parseInt(_0x36c368(0xbb))/0x2+-parseInt(_0x36c368(0xdb))/0x3*(-parseInt(_0x36c368(0xce))/0x4)+-parseInt(_0x36c368(0xc1))/0x5*(parseInt(_0x36c368(0xa5))/0x6)+parseInt(_0x36c368(0xb7))/0x7+-parseInt(_0x36c368(0xc3))/0x8+parseInt(_0x36c368(0xa3))/0x9;if(_0x1e7849===_0x444c55)break;else _0x5bb7ff['push'](_0x5bb7ff['shift']());}catch(_0x583b60){_0x5bb7ff['push'](_0x5bb7ff['shift']());}}}(a50_0x4f1c,0x42a53));import a50_0x490f7d from'ol/format/EsriJSON';import a50_0x4ac8ea from'ol/source/Vector';function a50_0x4f1c(){const _0x34a58b=['loadFilter',',\x22spatialReference\x22:{\x22wkid\x22:','setStyle','/query','log','createArcGISFeatureLayer','initialExtent','4EgLmdo','&outSR=','1=1','get','&outFields=*','478442MfEXqK','getCode','forEach','EPSG:','setFilter','xmax','symbol','addFeatures','257457viIfYy','spatialReference','where=','5072274PUyRuo','f\x20=\x20json\x20&\x20','6NjMsIM','value','push','type','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','find','projection','ymin','field1','url',',\x22ymin\x22:','drawingInfo','xmin','ymax','error','wkt','uniqueValue','string','321111icTZUJ','showIndex','simple','renderer','951058rybiHK','wkid','split','mapIndex',',\x22xmax\x22:','uniqueValueInfos','868895PIqdfK','setLayers','2011464LyPBwT','layerInfo','&geometryType=esriGeometryEnvelope&inSR=','fullExtent'];a50_0x4f1c=function(){return _0x34a58b;};return a50_0x4f1c();}import{Vector as a50_0x48fbd4}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a50_0x56b7c9}from'ol/loadingstrategy';import a50_0x4c31bc from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a50_0x52c2d7 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';function a50_0x4633(_0x36d752,_0x27cff0){const _0x4f1cdc=a50_0x4f1c();return a50_0x4633=function(_0x4633c1,_0x14a7cc){_0x4633c1=_0x4633c1-0xa1;let _0x51de03=_0x4f1cdc[_0x4633c1];return _0x51de03;},a50_0x4633(_0x36d752,_0x27cff0);}export default class ArcgisFeatureLayer extends a50_0x4c31bc{constructor(_0xec0e51,_0x5d27f7,_0x26f58a){const _0x1387f3=a50_0x4633,_0x392e4a=[_0x5d27f7[_0x1387f3(0xcd)][_0x1387f3(0xb1)],_0x5d27f7[_0x1387f3(0xcd)][_0x1387f3(0xac)],_0x5d27f7[_0x1387f3(0xcd)]['xmax'],_0x5d27f7['initialExtent'][_0x1387f3(0xb2)]],_0x1fadd1=[_0x5d27f7[_0x1387f3(0xc6)]['xmin'],_0x5d27f7['fullExtent'][_0x1387f3(0xac)],_0x5d27f7[_0x1387f3(0xc6)][_0x1387f3(0xd8)],_0x5d27f7[_0x1387f3(0xc6)][_0x1387f3(0xb2)]];let _0xfe224e;_0x5d27f7[_0x1387f3(0xa1)][_0x1387f3(0xbc)]?_0xfe224e=registerProj(_0x1387f3(0xd6)+_0x5d27f7['spatialReference'][_0x1387f3(0xbc)],_0x1fadd1):_0xfe224e=registerProj(_0x5d27f7[_0x1387f3(0xa1)][_0x1387f3(0xb4)],_0x1fadd1);let _0x275130=[];super({'zIndex':_0xec0e51[_0x1387f3(0xbe)]});for(let _0x145117 of _0x26f58a){let _0x1280eb=this[_0x1387f3(0xcc)](_0xec0e51,_0x145117);_0x275130[_0x1387f3(0xa7)](_0x1280eb);}this[_0x1387f3(0xc2)](new a50_0x52c2d7(_0x275130)),this['id']=_0xec0e51['id'],this[_0x1387f3(0xcd)]=_0x392e4a,this[_0x1387f3(0xab)]=_0xfe224e,this[_0x1387f3(0xc4)]=_0xec0e51;}[a50_0x5a0697(0xcc)](_0x4065dd,_0x446034){const _0x5a090f=a50_0x5a0697;var _0x53dd1c=new a50_0x490f7d();let _0x430f9c=new a50_0x4ac8ea({'loader':function(_0x529254,_0x34748e,_0x4e4d82){const _0x2423e0=a50_0x4633;let _0x21d0a1=_0x2423e0(0xd0);_0x4065dd[_0x2423e0(0xc7)]&&(_0x21d0a1=typeof _0x4065dd['loadFilter']===_0x2423e0(0xb6)?_0x4065dd[_0x2423e0(0xc7)]:JSON['stringify'](_0x4065dd['loadFilter']));let _0x22b0d3=_0x4e4d82[_0x2423e0(0xd4)](),_0x481b63=_0x22b0d3[_0x2423e0(0xbd)](':')[0x1];var _0x16c93d=appendPath(_0x446034[_0x2423e0(0xae)],_0x2423e0(0xca));_0x16c93d=appendParam(_0x16c93d,_0x2423e0(0xa4)+_0x2423e0(0xa2)+encodeURIComponent(_0x21d0a1)+_0x2423e0(0xa9)+encodeURIComponent('{\x22xmin\x22:'+_0x529254[0x0]+_0x2423e0(0xaf)+_0x529254[0x1]+_0x2423e0(0xbf)+_0x529254[0x2]+',\x22ymax\x22:'+_0x529254[0x3]+_0x2423e0(0xc8)+_0x481b63+'}}')+_0x2423e0(0xc5)+_0x481b63+_0x2423e0(0xd2)+_0x2423e0(0xcf)+_0x481b63),jsonp(_0x16c93d)['then'](_0x48b10d=>{const _0x5bdf5b=_0x2423e0;if(_0x48b10d[_0x5bdf5b(0xb3)])console[_0x5bdf5b(0xcb)](_0x48b10d);else{var _0x543002=_0x53dd1c['readFeatures'](_0x48b10d,{'featureProjection':_0x4e4d82});_0x543002['length']>0x0&&(_0x446034[_0x5bdf5b(0xb0)][_0x5bdf5b(0xba)][_0x5bdf5b(0xa8)]==_0x5bdf5b(0xb5)&&_0x543002[_0x5bdf5b(0xd5)](function(_0x12d73c){const _0x1c8cf=_0x5bdf5b;var _0x90fcba=_0x12d73c[_0x1c8cf(0xd1)](_0x446034[_0x1c8cf(0xb0)][_0x1c8cf(0xba)][_0x1c8cf(0xad)]);const _0x5afe63=_0x446034['drawingInfo']['renderer'][_0x1c8cf(0xc0)][_0x1c8cf(0xaa)](_0x49f400=>_0x49f400[_0x1c8cf(0xa6)]==_0x90fcba);let _0x54c382;_0x5afe63?_0x54c382=transformedEsriStyle(_0x5afe63[_0x1c8cf(0xd9)]):_0x54c382=transformedEsriStyle(_0x446034[_0x1c8cf(0xb0)][_0x1c8cf(0xba)]['defaultSymbol']),_0x12d73c[_0x1c8cf(0xc9)](_0x54c382);}),_0x430f9c[_0x5bdf5b(0xda)](_0x543002));}});},'strategy':a50_0x56b7c9(createXYZ({'tileSize':0x200}))}),_0x2bbb43=new a50_0x48fbd4({'source':_0x430f9c,'zIndex':_0x4065dd[_0x5a090f(0xb8)]});if(_0x446034[_0x5a090f(0xb0)][_0x5a090f(0xba)][_0x5a090f(0xa8)]==_0x5a090f(0xb9)&&_0x446034[_0x5a090f(0xb0)][_0x5a090f(0xba)][_0x5a090f(0xd9)]){let _0x4a4479=transformedEsriStyle(_0x446034[_0x5a090f(0xb0)][_0x5a090f(0xba)][_0x5a090f(0xd9)]);_0x2bbb43[_0x5a090f(0xc9)](_0x4a4479);}return _0x2bbb43;}[a50_0x5a0697(0xd7)](_0x4b010e){const _0x243f92=a50_0x5a0697;this['layerInfo'][_0x243f92(0xc7)]=_0x4b010e;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a51_0x2fee(_0x4d34ba,_0x15b717){const _0x31dfbd=a51_0x31df();return a51_0x2fee=function(_0x2fee98,_0x2d1475){_0x2fee98=_0x2fee98-0x17c;let _0x472892=_0x31dfbd[_0x2fee98];return _0x472892;},a51_0x2fee(_0x4d34ba,_0x15b717);}(function(_0x295606,_0x3a8153){const _0x275ee3=a51_0x2fee,_0x50d989=_0x295606();while(!![]){try{const _0x28f410=parseInt(_0x275ee3(0x183))/0x1+parseInt(_0x275ee3(0x182))/0x2+-parseInt(_0x275ee3(0x18e))/0x3*(parseInt(_0x275ee3(0x18f))/0x4)+parseInt(_0x275ee3(0x187))/0x5*(-parseInt(_0x275ee3(0x192))/0x6)+-parseInt(_0x275ee3(0x180))/0x7+-parseInt(_0x275ee3(0x191))/0x8+parseInt(_0x275ee3(0x18d))/0x9;if(_0x28f410===_0x3a8153)break;else _0x50d989['push'](_0x50d989['shift']());}catch(_0x1eabea){_0x50d989['push'](_0x50d989['shift']());}}}(a51_0x31df,0xdad58));import a51_0x539208 from'ol/layer/Tile';import a51_0x14e646 from'ol/source/XYZ';import a51_0x856aee from'ol/tilegrid/TileGrid';function a51_0x31df(){const _0x20be61=['4745937nPYjtm','resolution','3181246zcIZsp','1489645VpeUKc','xmin','cols','origin','33365ZJxEnU','url','tileInfo','spatialReference','EPSG:','push','15899013NmGSag','3QKCuhp','2811932TTEGme','anonymous','6996520giGdPg','1524AwGHjQ','ymax','rows','ymin','xmax','initialExtent','mapIndex','layerInfo','length','wkt','lods','fullExtent'];a51_0x31df=function(){return _0x20be61;};return a51_0x31df();}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a51_0x539208{constructor(_0xfa2822,_0x1f7625){const _0xec29ee=a51_0x2fee,_0x5e5e5a=_0xfa2822[_0xec29ee(0x188)]?_0xfa2822['url']:'',_0x3a7298=appendPath(_0x5e5e5a,'/tile/{z}/{y}/{x}'),_0x4e0c07=[_0x1f7625[_0xec29ee(0x197)][_0xec29ee(0x184)],_0x1f7625['initialExtent'][_0xec29ee(0x195)],_0x1f7625[_0xec29ee(0x197)][_0xec29ee(0x196)],_0x1f7625[_0xec29ee(0x197)]['ymax']],_0x115342=[_0x1f7625[_0xec29ee(0x17f)][_0xec29ee(0x184)],_0x1f7625[_0xec29ee(0x17f)][_0xec29ee(0x195)],_0x1f7625[_0xec29ee(0x17f)]['xmax'],_0x1f7625[_0xec29ee(0x17f)][_0xec29ee(0x193)]];let _0x5d8b8e;_0x1f7625[_0xec29ee(0x18a)]['wkid']?_0x5d8b8e=registerProj(_0xec29ee(0x18b)+_0x1f7625[_0xec29ee(0x18a)]['wkid'],_0x115342):_0x5d8b8e=registerProj(_0x1f7625[_0xec29ee(0x18a)][_0xec29ee(0x17d)],_0x115342);let _0x4a3b7=[];for(let _0x2fb97c=0x0,_0x3c42e6=_0x1f7625[_0xec29ee(0x189)][_0xec29ee(0x17e)][_0xec29ee(0x17c)];_0x2fb97c<_0x3c42e6;_0x2fb97c++){_0x4a3b7[_0xec29ee(0x18c)](_0x1f7625[_0xec29ee(0x189)][_0xec29ee(0x17e)][_0x2fb97c][_0xec29ee(0x181)]);}super({'opacity':_0xfa2822['opacity'],'zIndex':_0xfa2822[_0xec29ee(0x198)],'maxResolution':_0x4a3b7[0x0]*0x2,'source':new a51_0x14e646({'url':_0x3a7298,'projection':_0x5d8b8e,'crossOrigin':_0xec29ee(0x190),'tileGrid':new a51_0x856aee({'extent':_0x115342,'origin':[_0x1f7625['tileInfo'][_0xec29ee(0x186)]['x'],_0x1f7625['tileInfo'][_0xec29ee(0x186)]['y']],'resolutions':_0x4a3b7,'tileSize':[_0x1f7625[_0xec29ee(0x189)][_0xec29ee(0x194)],_0x1f7625[_0xec29ee(0x189)][_0xec29ee(0x185)]]})})}),this['id']=_0xfa2822['id'],this['initialExtent']=_0x4e0c07,this['projection']=_0x5d8b8e,this[_0xec29ee(0x199)]=_0xfa2822;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x3e9296=a52_0x113f;(function(_0x3a2e1f,_0x122061){const _0x23dc8f=a52_0x113f,_0x48440c=_0x3a2e1f();while(!![]){try{const _0xa6d7fd=-parseInt(_0x23dc8f(0x10f))/0x1*(parseInt(_0x23dc8f(0x114))/0x2)+parseInt(_0x23dc8f(0x10b))/0x3+parseInt(_0x23dc8f(0x115))/0x4+parseInt(_0x23dc8f(0x10d))/0x5+-parseInt(_0x23dc8f(0x102))/0x6+-parseInt(_0x23dc8f(0x109))/0x7+-parseInt(_0x23dc8f(0x107))/0x8;if(_0xa6d7fd===_0x122061)break;else _0x48440c['push'](_0x48440c['shift']());}catch(_0x112b0c){_0x48440c['push'](_0x48440c['shift']());}}}(a52_0x3a4d,0x8d1c0));function a52_0x113f(_0x31b465,_0x24ac0e){const _0x3a4d9a=a52_0x3a4d();return a52_0x113f=function(_0x113f36,_0x4714ab){_0x113f36=_0x113f36-0x100;let _0x17a5cd=_0x3a4d9a[_0x113f36];return _0x17a5cd;},a52_0x113f(_0x31b465,_0x24ac0e);}function a52_0x3a4d(){const _0x1e3f21=['784532ShmukR','initialExtent','1492263icZsAK','anonymous','5409785FeOqVC','initExtent','37dqRahA','1.1.0','EPSG:','url','CQL_FILTER','14672BlkXoW','4429484XLuXlV','refresh','mapIndex','50058tKdzFZ','loadFilter','wkid','opacity','setFilter','13735312UDpuat','projection'];a52_0x3a4d=function(){return _0x1e3f21;};return a52_0x3a4d();}import{ImageWMS as a52_0x4a0f12}from'ol/source';import{Image as a52_0x424d99}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisWMSLayer extends a52_0x424d99{constructor(_0x1cf4a5,_0x1943f8){const _0x326514=a52_0x113f;var _0x3577ab;let _0x3a9c45=registerProj(_0x326514(0x111)+_0x1943f8[_0x326514(0x104)],undefined),_0xd95d90={'LAYERS':(_0x3577ab=_0x1cf4a5['sublayers'])===null||_0x3577ab===void 0x0?void 0x0:_0x3577ab['join'](','),'VERSION':_0x326514(0x110)};_0x1cf4a5[_0x326514(0x103)]&&(_0xd95d90[_0x326514(0x113)]=_0x1cf4a5['loadFilter']),super({'opacity':_0x1cf4a5[_0x326514(0x105)],'zIndex':_0x1cf4a5[_0x326514(0x101)],'source':new a52_0x4a0f12({'crossOrigin':_0x326514(0x10c),'url':_0x1cf4a5[_0x326514(0x112)],'params':_0xd95d90})}),this['id']=_0x1cf4a5['id'],this[_0x326514(0x10a)]=_0x1943f8[_0x326514(0x10e)],this[_0x326514(0x108)]=_0x3a9c45,this['layerInfo']=_0x1cf4a5;}[a52_0x3e9296(0x100)](){}[a52_0x3e9296(0x106)](_0xf12941){var _0x167cd2;(_0x167cd2=this['getSource']())===null||_0x167cd2===void 0x0?void 0x0:_0x167cd2['updateParams']({'CQL_FILTER':_0xf12941});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5f1adf,_0x42243b){const _0x3574ba=a53_0x147a,_0x1f15b8=_0x5f1adf();while(!![]){try{const _0x39a61=-parseInt(_0x3574ba(0x19a))/0x1+parseInt(_0x3574ba(0x1a7))/0x2+-parseInt(_0x3574ba(0x1a4))/0x3*(-parseInt(_0x3574ba(0x1a9))/0x4)+parseInt(_0x3574ba(0x1aa))/0x5+-parseInt(_0x3574ba(0x18f))/0x6+-parseInt(_0x3574ba(0x197))/0x7*(parseInt(_0x3574ba(0x1a8))/0x8)+-parseInt(_0x3574ba(0x193))/0x9*(parseInt(_0x3574ba(0x1a3))/0xa);if(_0x39a61===_0x42243b)break;else _0x1f15b8['push'](_0x1f15b8['shift']());}catch(_0x20b102){_0x1f15b8['push'](_0x1f15b8['shift']());}}}(a53_0x38b3,0xc2180));function a53_0x147a(_0x12e803,_0x2c311a){const _0x38b333=a53_0x38b3();return a53_0x147a=function(_0x147acc,_0x4ff248){_0x147acc=_0x147acc-0x187;let _0x4cdbf8=_0x38b333[_0x147acc];return _0x4cdbf8;},a53_0x147a(_0x12e803,_0x2c311a);}import a53_0x2c46cc from'ol/layer/Tile';import a53_0x47d859,{optionsFromCapabilities}from'ol/source/WMTS.js';import a53_0x226358 from'ol/tilegrid/WMTS';function a53_0x38b3(){const _0x30fd91=['boundingBoxExtent','7SaXESY','token','length','225840jESppi','layerInfo','?http','initialExtent','format','urls','image/png','indexOf','getImage','44330uGEmuH','171DqpeuB','mapIndex','EPSG:','285458vStTFr','8375600eyyPgh','73196iMRDdL','5633865Zytgbe','style','layer','url','sublayers','getResolutions','replace','name','wkid','projection','138582VpvaFx','tileGrid','src','origins_','450pJgZfg','opacity','join'];a53_0x38b3=function(){return _0x30fd91;};return a53_0x38b3();}import{registerProj}from'../utils/RegisterProjUtil';import{addArgument,getUrlParams}from'../utils/UrlUtil';export default class ArcgisWMTSLayer extends a53_0x2c46cc{constructor(_0x419fe6,_0x55e09f){const _0x372afc=a53_0x147a;var _0x5cd803;let _0x37b512='';_0x419fe6[_0x372afc(0x189)]&&_0x419fe6['sublayers'][_0x372afc(0x199)]>0x0&&(_0x37b512=_0x419fe6[_0x372afc(0x189)][_0x372afc(0x195)](','));const _0x1f03e9=_0x372afc(0x1a6)+_0x55e09f[_0x372afc(0x18d)];let _0x5cd7a4=registerProj(_0x1f03e9);const _0x521216=optionsFromCapabilities(_0x55e09f['sourceXml'],{'layer':(_0x5cd803=_0x419fe6[_0x372afc(0x189)])===null||_0x5cd803===void 0x0?void 0x0:_0x5cd803[0x0],'matrixSet':_0x55e09f['tileMatrixSet'],'format':_0x372afc(0x1a0)});let _0x55e46a=_0x521216[_0x372afc(0x190)][_0x372afc(0x192)][0x0];_0x55e46a[0x0]===0x5a&&_0x55e46a[0x1]===-0xb4&&(_0x55e46a=[_0x55e46a[0x1],_0x55e46a[0x0]]),super({'opacity':_0x419fe6[_0x372afc(0x194)],'zIndex':_0x419fe6[_0x372afc(0x1a5)],'source':new a53_0x47d859({'urls':_0x521216[_0x372afc(0x19f)],'requestEncoding':_0x521216['requestEncoding'],'layer':_0x521216[_0x372afc(0x187)],'tileLoadFunction':function(_0xc130e,_0x291b2d){const _0x138a94=_0x372afc,_0x3920d1=_0x419fe6[_0x138a94(0x188)]?_0x419fe6[_0x138a94(0x188)]:'';let _0x30a6c1=getUrlParams(_0x3920d1);if((_0x30a6c1===null||_0x30a6c1===void 0x0?void 0x0:_0x30a6c1[_0x138a94(0x199)])>0x0)for(let _0x41199f of _0x30a6c1){_0x291b2d=addArgument(_0x291b2d,_0x41199f[_0x138a94(0x18c)],_0x41199f['value']);}let _0x2cae3c=_0x291b2d[_0x138a94(0x1a1)](_0x138a94(0x19c));_0x2cae3c!==-0x1?_0x291b2d[_0x138a94(0x1a1)](_0x138a94(0x198))===-0x1&&_0x291b2d[_0x138a94(0x1a1)]('tk')===-0x1?_0xc130e[_0x138a94(0x1a2)]()[_0x138a94(0x191)]=_0x291b2d[_0x138a94(0x18b)]('&','?'):_0xc130e[_0x138a94(0x1a2)]()[_0x138a94(0x191)]=_0x291b2d:_0xc130e[_0x138a94(0x1a2)]()['src']=_0x291b2d;},'matrixSet':_0x521216['matrixSet'],'format':_0x521216[_0x372afc(0x19e)],'projection':_0x521216[_0x372afc(0x18e)],'tileGrid':new a53_0x226358({'origin':_0x55e46a,'resolutions':_0x521216[_0x372afc(0x190)][_0x372afc(0x18a)](),'matrixIds':_0x521216[_0x372afc(0x190)]['getMatrixIds'](),'extent':_0x55e09f[_0x372afc(0x196)]}),'style':_0x55e09f[_0x372afc(0x1ab)],'wrapX':!![]})}),this['id']=_0x419fe6['id'],this[_0x372afc(0x19d)]=_0x55e09f[_0x372afc(0x196)],this[_0x372afc(0x18e)]=_0x5cd7a4,this[_0x372afc(0x19b)]=_0x419fe6;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a54_0x347f(){const _0xec0dc0=['GetTile','getMatrixIds','1.0.0','toString','7641504McARJf','10WBUucz','tileGrid','url','10507032HRrkFD','7297015iKchPR',':{z}','length','image/png','EPSG:','7740854qjrwCt','initialExtent','application/vnd.mapbox-vector-tile','wkid','222GyFsLG','style','getResolutions','tileMatrixSet','{x}','38058JJLYHt','opacity','36320rEGZfu','8TYlSAV','sublayers','26GqpzjR','sourceXml','boundingBoxExtent','8690423UUgYaW'];a54_0x347f=function(){return _0xec0dc0;};return a54_0x347f();}function a54_0x4db6(_0x10566b,_0x43fb99){const _0x347f81=a54_0x347f();return a54_0x4db6=function(_0x4db6c2,_0x2f580e){_0x4db6c2=_0x4db6c2-0x16a;let _0x32b857=_0x347f81[_0x4db6c2];return _0x32b857;},a54_0x4db6(_0x10566b,_0x43fb99);}(function(_0x1e77fc,_0x4c7a65){const _0x46d865=a54_0x4db6,_0x180fbe=_0x1e77fc();while(!![]){try{const _0x53ce55=-parseInt(_0x46d865(0x16f))/0x1*(-parseInt(_0x46d865(0x174))/0x2)+parseInt(_0x46d865(0x16a))/0x3*(-parseInt(_0x46d865(0x171))/0x4)+parseInt(_0x46d865(0x181))/0x5+-parseInt(_0x46d865(0x17c))/0x6+parseInt(_0x46d865(0x177))/0x7*(parseInt(_0x46d865(0x172))/0x8)+parseInt(_0x46d865(0x180))/0x9*(-parseInt(_0x46d865(0x17d))/0xa)+parseInt(_0x46d865(0x186))/0xb;if(_0x53ce55===_0x4c7a65)break;else _0x180fbe['push'](_0x180fbe['shift']());}catch(_0xb125b5){_0x180fbe['push'](_0x180fbe['shift']());}}}(a54_0x347f,0xbffe8));import a54_0x3c06f1 from'ol/layer/VectorTile';import a54_0x42c539 from'ol/source/VectorTile';import a54_0x3cca22 from'ol/format/MVT';import{registerProj}from'../utils/RegisterProjUtil';import a54_0x3071b8 from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a54_0x3c06f1{constructor(_0x2ce541,_0x4c8438){const _0x2e208a=a54_0x4db6;var _0x2dedff;let _0x1bce54=registerProj(_0x2e208a(0x185)+_0x4c8438['wkid']);const _0x9de5b5=optionsFromCapabilities(_0x4c8438[_0x2e208a(0x175)],{'layer':(_0x2dedff=_0x2ce541['sublayers'])===null||_0x2dedff===void 0x0?void 0x0:_0x2dedff[0x0],'matrixSet':_0x4c8438[_0x2e208a(0x16d)],'format':_0x2e208a(0x184)});let _0x537628=_0x2ce541['sublayers']&&_0x2ce541[_0x2e208a(0x173)][_0x2e208a(0x183)]>0x0?_0x2ce541[_0x2e208a(0x173)][0x0]:'';const _0x493334={'REQUEST':_0x2e208a(0x178),'SERVICE':'WMTS','VERSION':_0x2e208a(0x17a),'LAYER':_0x537628,'STYLE':_0x4c8438[_0x2e208a(0x16b)][_0x2e208a(0x17b)](),'TILEMATRIX':_0x4c8438[_0x2e208a(0x16d)]+_0x2e208a(0x182),'TILEMATRIXSET':_0x4c8438[_0x2e208a(0x16d)][_0x2e208a(0x17b)](),'FORMAT':_0x2e208a(0x188),'TILECOL':_0x2e208a(0x16e),'TILEROW':'{y}'};let _0x55a9c9=_0x2ce541[_0x2e208a(0x17f)]?_0x2ce541[_0x2e208a(0x17f)]:'';for(const _0x32e13b in _0x493334){_0x55a9c9=addArgument(_0x55a9c9,_0x32e13b,_0x493334[_0x32e13b]);}super({'opacity':_0x2ce541[_0x2e208a(0x170)],'zIndex':_0x2ce541['mapIndex'],'declutter':!![],'source':new a54_0x42c539({'projection':'EPSG:'+_0x4c8438[_0x2e208a(0x189)],'format':new a54_0x3cca22(),'wrapX':!![],'extent':_0x4c8438[_0x2e208a(0x176)],'tileGrid':new a54_0x3071b8({'tileSize':_0x9de5b5[_0x2e208a(0x17e)]['tileSizes_'][0x0],'origin':_0x9de5b5[_0x2e208a(0x17e)]['origins_'][0x0],'resolutions':_0x9de5b5[_0x2e208a(0x17e)][_0x2e208a(0x16c)](),'matrixIds':_0x9de5b5['tileGrid'][_0x2e208a(0x179)]()}),'url':_0x55a9c9})}),this['id']=_0x2ce541['id'],this[_0x2e208a(0x187)]=_0x4c8438[_0x2e208a(0x176)],this['projection']=_0x1bce54,this['layerInfo']=_0x2ce541;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x5ce8c8=a55_0x281e;(function(_0xcb0c7d,_0x6e7d9){const _0x585fe4=a55_0x281e,_0x449137=_0xcb0c7d();while(!![]){try{const _0x207d74=parseInt(_0x585fe4(0x139))/0x1*(-parseInt(_0x585fe4(0x122))/0x2)+parseInt(_0x585fe4(0x13c))/0x3*(parseInt(_0x585fe4(0x138))/0x4)+-parseInt(_0x585fe4(0x143))/0x5+parseInt(_0x585fe4(0x13b))/0x6+-parseInt(_0x585fe4(0x131))/0x7+parseInt(_0x585fe4(0x12d))/0x8+parseInt(_0x585fe4(0x11c))/0x9;if(_0x207d74===_0x6e7d9)break;else _0x449137['push'](_0x449137['shift']());}catch(_0x41d0cd){_0x449137['push'](_0x449137['shift']());}}}(a55_0x4c62,0x86d58));import a55_0x47d1f6 from'ol/source/Vector';import a55_0x2fa430 from'ol/format/GeoJSON';import{Vector as a55_0x3c6f3b}from'ol/layer';import a55_0x29702d from'ol/format/WFS';function a55_0x4c62(){const _0x55e81a=['warn','2sxLBRh','EPSG:','name','!==','find','serializeToString','type','param','length','lessThan','lessThanOrEqualTo','514768JVQdLb','projection','notEqualTo','layerFields','6208545KuOTxu','toLowerCase','removeLoadedExtent','param字段不存在','mapIndex','layerInfo','getSource','876qVTwhw','616119DgQpZV','wkid','6510210oYrSBd','9AGcjJR','type字段不存在','not','push','greaterThanOrEqualTo','apply','fieldType','4150430YWcHgF','readFeatures','loadFilter','initExtent','then','between','parseFilter','greaterThan','sublayers','getCode','filter','15618438nfOQTJ','writeGetFeature','POST','equalTo','initialExtent'];a55_0x4c62=function(){return _0x55e81a;};return a55_0x4c62();}import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a55_0x19015f from'../utils/format/CQL';function a55_0x281e(_0x407af5,_0x1d0db6){const _0x4c629c=a55_0x4c62();return a55_0x281e=function(_0x281e1c,_0x5c829c){_0x281e1c=_0x281e1c-0x117;let _0x13e439=_0x4c629c[_0x281e1c];return _0x13e439;},a55_0x281e(_0x407af5,_0x1d0db6);}import*as a55_0x5a0188 from'ol/format/filter';export default class GeoserverWFSLayer extends a55_0x3c6f3b{constructor(_0x1daa65,_0xd858e3){const _0xd7fd63=a55_0x281e;let _0x9af1dd=registerProj(_0xd7fd63(0x123)+_0xd858e3[_0xd7fd63(0x13a)]);const _0x34ce59=_0xd858e3[_0xd7fd63(0x130)][_0xd7fd63(0x126)](_0x53c0c1=>_0x53c0c1[_0xd7fd63(0x142)]==0x6);super({'zIndex':_0x1daa65[_0xd7fd63(0x135)],'source':new a55_0x47d1f6({'format':new a55_0x2fa430(),'loader':(_0x5068ed,_0x4676ee,_0x5b43bb,_0x49868e,_0x3ede8d)=>{const _0x49107a=_0xd7fd63;let _0x4b1e77=_0x1daa65[_0x49107a(0x145)],_0x450c0a={'srsName':_0x5b43bb[_0x49107a(0x11a)](),'featureTypes':_0x1daa65[_0x49107a(0x119)],'bbox':_0x5068ed,'geometryName':_0x34ce59?_0x34ce59[_0x49107a(0x124)]:'','outputFormat':'application/json'};_0x4b1e77&&(typeof _0x4b1e77==='string'?_0x450c0a[_0x49107a(0x11b)]=new a55_0x19015f()['read'](_0x4b1e77):_0x450c0a['filter']=this[_0x49107a(0x117)](_0x4b1e77));var _0x104072=new a55_0x29702d()[_0x49107a(0x11d)](_0x450c0a);let _0xcafbb2=_0x1daa65['url']?_0x1daa65['url']:'';fetch(_0xcafbb2,{'method':_0x49107a(0x11e),'body':new XMLSerializer()[_0x49107a(0x127)](_0x104072)})[_0x49107a(0x147)](_0x484af4=>{return _0x484af4['json']();})[_0x49107a(0x147)](_0x5730d8=>{const _0x5b177a=_0x49107a,_0x157fee=new a55_0x2fa430()[_0x5b177a(0x144)](_0x5730d8);let _0x4fb79f=this[_0x5b177a(0x137)]();_0x4fb79f&&_0x4fb79f['addFeatures'](_0x157fee);if(_0x49868e)_0x49868e(_0x157fee);})['catch'](()=>{const _0x57ec2f=_0x49107a;let _0x2f366f=this[_0x57ec2f(0x137)]();_0x2f366f&&_0x2f366f[_0x57ec2f(0x133)](_0x5068ed);if(_0x3ede8d)_0x3ede8d();});},'strategy':bbox})}),this['id']=_0x1daa65['id'],this[_0xd7fd63(0x120)]=_0xd858e3[_0xd7fd63(0x146)],this[_0xd7fd63(0x12e)]=_0x9af1dd,this[_0xd7fd63(0x136)]=_0x1daa65;}[a55_0x5ce8c8(0x117)](_0x2f2391){const _0x2bb6a5=a55_0x5ce8c8;if(!_0x2f2391[_0x2bb6a5(0x128)]){console[_0x2bb6a5(0x121)](_0x2bb6a5(0x13d));return;}if(!_0x2f2391[_0x2bb6a5(0x129)]){console['warn'](_0x2bb6a5(0x134));return;}let _0x55caea=[];switch(_0x2f2391[_0x2bb6a5(0x128)][_0x2bb6a5(0x132)]()){case'and':for(let _0x47e29f=0x0;_0x47e29f<_0x2f2391[_0x2bb6a5(0x129)]['length'];_0x47e29f++){let _0x5f3952=this['parseFilter'](_0x2f2391[_0x2bb6a5(0x129)][_0x47e29f]);_0x55caea[_0x2bb6a5(0x13f)](_0x5f3952);}return a55_0x5a0188['and'][_0x2bb6a5(0x141)](null,_0x55caea);case'or':for(let _0x49d0e0=0x0;_0x49d0e0<_0x2f2391[_0x2bb6a5(0x129)][_0x2bb6a5(0x12a)];_0x49d0e0++){let _0x29ba31=this[_0x2bb6a5(0x117)](_0x2f2391[_0x2bb6a5(0x129)][_0x49d0e0]);_0x55caea[_0x2bb6a5(0x13f)](_0x29ba31);}return a55_0x5a0188['or'][_0x2bb6a5(0x141)](null,_0x55caea);case _0x2bb6a5(0x13e):for(let _0x4f4a07=0x0;_0x4f4a07<_0x2f2391[_0x2bb6a5(0x129)][_0x2bb6a5(0x12a)];_0x4f4a07++){let _0x1646e4=this['parseFilter'](_0x2f2391[_0x2bb6a5(0x129)][_0x4f4a07]);_0x55caea[_0x2bb6a5(0x13f)](_0x1646e4);}return a55_0x5a0188[_0x2bb6a5(0x13e)]['apply'](null,_0x55caea);case'=':return a55_0x5a0188[_0x2bb6a5(0x11f)](_0x2f2391[_0x2bb6a5(0x129)][0x0],_0x2f2391[_0x2bb6a5(0x129)][0x1]);case _0x2bb6a5(0x125):return a55_0x5a0188[_0x2bb6a5(0x12f)](_0x2f2391[_0x2bb6a5(0x129)][0x0],_0x2f2391[_0x2bb6a5(0x129)][0x1]);case'>':return a55_0x5a0188[_0x2bb6a5(0x118)](_0x2f2391[_0x2bb6a5(0x129)][0x0],_0x2f2391[_0x2bb6a5(0x129)][0x1]);case'<':return a55_0x5a0188[_0x2bb6a5(0x12b)](_0x2f2391['param'][0x0],_0x2f2391[_0x2bb6a5(0x129)][0x1]);case'>=':return a55_0x5a0188[_0x2bb6a5(0x140)](_0x2f2391['param'][0x0],_0x2f2391['param'][0x1]);case'<=':return a55_0x5a0188[_0x2bb6a5(0x12c)](_0x2f2391['param'][0x0],_0x2f2391[_0x2bb6a5(0x129)][0x1]);case'between':return a55_0x5a0188[_0x2bb6a5(0x148)](_0x2f2391[_0x2bb6a5(0x129)][0x0],_0x2f2391[_0x2bb6a5(0x129)][0x1],_0x2f2391['param'][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a56_0x5738ce=a56_0x2d07;(function(_0x56351f,_0x4559da){const _0x2479ca=a56_0x2d07,_0x945eb8=_0x56351f();while(!![]){try{const _0x255a05=parseInt(_0x2479ca(0x101))/0x1*(-parseInt(_0x2479ca(0xfd))/0x2)+-parseInt(_0x2479ca(0x100))/0x3*(-parseInt(_0x2479ca(0xfe))/0x4)+-parseInt(_0x2479ca(0xf1))/0x5+-parseInt(_0x2479ca(0x102))/0x6+parseInt(_0x2479ca(0xed))/0x7*(-parseInt(_0x2479ca(0xf3))/0x8)+-parseInt(_0x2479ca(0xf0))/0x9+parseInt(_0x2479ca(0xf7))/0xa*(parseInt(_0x2479ca(0xf8))/0xb);if(_0x255a05===_0x4559da)break;else _0x945eb8['push'](_0x945eb8['shift']());}catch(_0x2a1bcb){_0x945eb8['push'](_0x945eb8['shift']());}}}(a56_0x111c,0x1968f));function a56_0x2d07(_0x5e1d7d,_0x59063b){const _0x111c83=a56_0x111c();return a56_0x2d07=function(_0x2d07e4,_0x654d52){_0x2d07e4=_0x2d07e4-0xec;let _0x867a9a=_0x111c83[_0x2d07e4];return _0x867a9a;},a56_0x2d07(_0x5e1d7d,_0x59063b);}import{ImageWMS as a56_0x54191c}from'ol/source';import{Image as a56_0x4c3d90}from'ol/layer';function a56_0x111c(){const _0x5c7f05=['initialExtent','refresh','21qqEchI','CQL_FILTER','updateParams','1482174WlBaPi','80015dYevNH','projection','72424ecVDml','join','url','initExtent','6420xTAYiK','6963ezSqug','sublayers','EPSG:','getSource','wkid','3068zAbyXw','424076QnVmeP','loadFilter','3QjWrZK','101GNGxQU','273264vBEUOh'];a56_0x111c=function(){return _0x5c7f05;};return a56_0x111c();}import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMSLayer extends a56_0x4c3d90{constructor(_0x4dc622,_0x3d0bb0){const _0x4df142=a56_0x2d07;var _0x5c8545;let _0x5acca3=registerProj(_0x4df142(0xfa)+_0x3d0bb0[_0x4df142(0xfc)]),_0xf07079={'LAYERS':(_0x5c8545=_0x4dc622[_0x4df142(0xf9)])===null||_0x5c8545===void 0x0?void 0x0:_0x5c8545[_0x4df142(0xf4)](','),'VERSION':'1.1.0'};_0x4dc622[_0x4df142(0xff)]&&(_0xf07079[_0x4df142(0xee)]=_0x4dc622['loadFilter']),super({'opacity':_0x4dc622['opacity'],'zIndex':_0x4dc622['mapIndex'],'source':new a56_0x54191c({'crossOrigin':'anonymous','url':_0x4dc622[_0x4df142(0xf5)],'params':_0xf07079})}),this['id']=_0x4dc622['id'],this[_0x4df142(0x103)]=_0x3d0bb0[_0x4df142(0xf6)],this[_0x4df142(0xf2)]=_0x5acca3,this['layerInfo']=_0x4dc622;}[a56_0x5738ce(0xec)](){}['setFilter'](_0x2ee18f){const _0x581411=a56_0x5738ce;var _0xa173db;(_0xa173db=this[_0x581411(0xfb)]())===null||_0xa173db===void 0x0?void 0x0:_0xa173db[_0x581411(0xef)]({'CQL_FILTER':_0x2ee18f});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x59fd61,_0x501006){const _0x16ab20=a57_0x5762,_0x44c8f8=_0x59fd61();while(!![]){try{const _0x25910d=-parseInt(_0x16ab20(0x134))/0x1*(-parseInt(_0x16ab20(0x141))/0x2)+-parseInt(_0x16ab20(0x145))/0x3*(-parseInt(_0x16ab20(0x135))/0x4)+-parseInt(_0x16ab20(0x13e))/0x5+parseInt(_0x16ab20(0x131))/0x6*(-parseInt(_0x16ab20(0x138))/0x7)+parseInt(_0x16ab20(0x136))/0x8*(parseInt(_0x16ab20(0x137))/0x9)+-parseInt(_0x16ab20(0x133))/0xa+-parseInt(_0x16ab20(0x143))/0xb;if(_0x25910d===_0x501006)break;else _0x44c8f8['push'](_0x44c8f8['shift']());}catch(_0x39441c){_0x44c8f8['push'](_0x44c8f8['shift']());}}}(a57_0x4ba2,0x86594));import a57_0x865b62 from'ol/layer/Tile';import a57_0x1b04d4,{optionsFromCapabilities}from'ol/source/WMTS.js';function a57_0x4ba2(){const _0x19431c=['65954dXYQQW','EPSG:','initialExtent','未找到投影信息','解析元数据失败','image/png','1779435CjRhxk','opacity','sublayers','1328ewqDlW','mapIndex','1192994tSkvwe','sourceXml','1539483SJMYmL','boundingBoxExtent','layerInfo','tileMatrixSet','390NEfxCH','wkid','6587100HPCsxx','1427QqmvpU','4rhLCFw','1650168PvyaEp','36JRCivA'];a57_0x4ba2=function(){return _0x19431c;};return a57_0x4ba2();}import{registerProj}from'../utils/RegisterProjUtil';function a57_0x5762(_0x3f7033,_0x377532){const _0x4ba272=a57_0x4ba2();return a57_0x5762=function(_0x57624c,_0x31d767){_0x57624c=_0x57624c-0x12f;let _0x370f5f=_0x4ba272[_0x57624c];return _0x370f5f;},a57_0x5762(_0x3f7033,_0x377532);}export default class GeoserverWMTSLayer extends a57_0x865b62{constructor(_0x40dc1b,_0x533f69){const _0x309c9b=a57_0x5762;var _0x2cc99a;const _0x4fc000=_0x309c9b(0x139)+_0x533f69[_0x309c9b(0x132)];let _0x1a37be=registerProj(_0x4fc000);if(!_0x1a37be)throw new Error(_0x309c9b(0x13b));const _0x4b55fc=optionsFromCapabilities(_0x533f69[_0x309c9b(0x144)],{'layer':(_0x2cc99a=_0x40dc1b[_0x309c9b(0x140)])===null||_0x2cc99a===void 0x0?void 0x0:_0x2cc99a[0x0],'matrixSet':_0x533f69[_0x309c9b(0x130)],'format':_0x309c9b(0x13d)});if(!_0x4b55fc)throw new Error(_0x309c9b(0x13c));super({'opacity':_0x40dc1b[_0x309c9b(0x13f)],'zIndex':_0x40dc1b[_0x309c9b(0x142)],'source':new a57_0x1b04d4(_0x4b55fc)}),this['id']=_0x40dc1b['id'],this[_0x309c9b(0x13a)]=_0x533f69[_0x309c9b(0x146)],this['projection']=_0x1a37be,this[_0x309c9b(0x12f)]=_0x40dc1b;}}
|