ym-gis-2d 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Difference.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Modify.js +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Split.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.d.ts +2 -0
- package/layers/LayerManager.d.ts.map +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/LayerManager.js.map +1 -1
- package/layers/MapTileLayer.d.ts +17 -0
- package/layers/MapTileLayer.d.ts.map +1 -0
- package/layers/MapTileLayer.js +1 -0
- package/layers/MapTileLayer.js.map +1 -0
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +5 -0
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a43_0x3d6b7a=a43_0x2a66;(function(_0x227295,_0x109edb){const _0x19687e=a43_0x2a66,_0x499722=_0x227295();while(!![]){try{const _0x391f11=parseInt(_0x19687e(0xdc))/0x1+parseInt(_0x19687e(0xd9))/0x2+-parseInt(_0x19687e(0xcc))/0x3*(parseInt(_0x19687e(0xbc))/0x4)+parseInt(_0x19687e(0xc5))/0x5*(parseInt(_0x19687e(0xbb))/0x6)+-parseInt(_0x19687e(0xe3))/0x7*(parseInt(_0x19687e(0xe6))/0x8)+parseInt(_0x19687e(0xc2))/0x9+-parseInt(_0x19687e(0xce))/0xa;if(_0x391f11===_0x109edb)break;else _0x499722['push'](_0x499722['shift']());}catch(_0x5025c5){_0x499722['push'](_0x499722['shift']());}}}(a43_0x45b9,0x38aef));function a43_0x2a66(_0x32f281,_0x41a3f1){const _0x45b99c=a43_0x45b9();return a43_0x2a66=function(_0x2a66d8,_0x44b8b5){_0x2a66d8=_0x2a66d8-0xba;let _0x2984d8=_0x45b99c[_0x2a66d8];return _0x2984d8;},a43_0x2a66(_0x32f281,_0x41a3f1);}import a43_0x542818 from'../entity/Feature';import a43_0x13b513 from'ol/layer/Vector';import a43_0x16afe4 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0x18f1c6 from'ol/format/GeoJSON';function a43_0x45b9(){const _0x43dd72=['addFeatures','setGeometry','235999QLjOUm','getTempEditFeatures','features','getSelectedFeatures','readFeature','getPolygonTempLayer','get','3199fQLmrb','tag','flash_layer','3344jVIvwl','getLineTempLayer','getTempSelectedFeatures','setStyle','currentEditLayer','1360674ijZoxr','4KNpZqs','isSelected','getFeatures','clearTempFeatures','flashGeometrys','forEach','1783953XXJvvf','removeLayer','getEditFeatures','5KJbWuR','layerId','geometryType','getVisible','layerInfo','indexOf','addLayer','915894BbdUpH','length','997130biMTkp','tempLayer','kmlImport','getType','getSource','removeFeature','map','getLayerById','setVisible','push','filter','334434Bxmioi'];a43_0x45b9=function(){return _0x43dd72;};return a43_0x45b9();}import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x1b2993){const _0x55cfd7=a43_0x2a66;this[_0x55cfd7(0xd4)]=_0x1b2993;}[a43_0x3d6b7a(0xc4)](_0x480efb,_0x1fc6e5){const _0x444195=a43_0x3d6b7a;if(!this['map'][_0x444195(0xba)])return;let _0x773cb1;const _0xd05039=this[_0x444195(0xd4)][_0x444195(0xd5)](this['map']['currentEditLayer']['id']);if(!_0xd05039||!_0xd05039[_0x444195(0xc9)])return;switch(_0xd05039[_0x444195(0xc9)][_0x444195(0xc7)]){case 0x1:_0x773cb1=this[_0x444195(0xdd)](this[_0x444195(0xd4)]['getPointTempLayer'](),this['map'][_0x444195(0xba)]['id'],_0x480efb,_0x1fc6e5);break;case 0x2:_0x773cb1=this[_0x444195(0xdd)](this['map'][_0x444195(0xe7)](),this[_0x444195(0xd4)][_0x444195(0xba)]['id'],_0x480efb,_0x1fc6e5);break;case 0x3:_0x773cb1=this[_0x444195(0xdd)](this[_0x444195(0xd4)][_0x444195(0xe1)](),this[_0x444195(0xd4)][_0x444195(0xba)]['id'],_0x480efb,_0x1fc6e5);break;default:break;}return _0x773cb1;}[a43_0x3d6b7a(0xdf)](_0x117710,_0x5c293f){const _0x5d06ec=a43_0x3d6b7a;if(_0x117710){const _0x5b2d9f=this[_0x5d06ec(0xd4)][_0x5d06ec(0xd5)](_0x117710);if(!_0x5b2d9f||!_0x5b2d9f[_0x5d06ec(0xc9)])return;let _0x47db14;switch(_0x5b2d9f[_0x5d06ec(0xc9)]['geometryType']){case 0x1:_0x47db14=this[_0x5d06ec(0xe8)](this[_0x5d06ec(0xd4)]['getPointTempLayer'](),_0x117710,_0x5c293f);break;case 0x2:_0x47db14=this['getTempSelectedFeatures'](this[_0x5d06ec(0xd4)]['getLineTempLayer'](),_0x117710,_0x5c293f);break;case 0x3:_0x47db14=this[_0x5d06ec(0xe8)](this[_0x5d06ec(0xd4)][_0x5d06ec(0xe1)](),_0x117710,_0x5c293f);break;default:break;}return _0x47db14;}else{const _0x1c106c=this[_0x5d06ec(0xe8)](this[_0x5d06ec(0xd4)]['getPointTempLayer'](),_0x117710,_0x5c293f),_0x4a28fc=this[_0x5d06ec(0xe8)](this[_0x5d06ec(0xd4)][_0x5d06ec(0xe7)](),_0x117710,_0x5c293f),_0x2406bb=this[_0x5d06ec(0xe8)](this['map'][_0x5d06ec(0xe1)](),_0x117710,_0x5c293f);let _0x2c7d0d=[];return _0x1c106c&&(_0x2c7d0d=[..._0x2c7d0d,..._0x1c106c]),_0x4a28fc&&(_0x2c7d0d=[..._0x2c7d0d,..._0x4a28fc]),_0x2406bb&&(_0x2c7d0d=[..._0x2c7d0d,..._0x2406bb]),_0x2c7d0d;}}[a43_0x3d6b7a(0xe8)](_0x5ce9ce,_0x7ed5d3,_0x4656d1){const _0x138b87=a43_0x3d6b7a;var _0x31db77;let _0x10beb3=(_0x31db77=_0x5ce9ce[_0x138b87(0xd2)]())===null||_0x31db77===void 0x0?void 0x0:_0x31db77[_0x138b87(0xbe)]();if(!_0x10beb3)return;_0x10beb3[_0x138b87(0xc1)]((_0x28d082,_0x3af9d6,_0x424060)=>{const _0x543d04=_0x138b87;_0x28d082[_0x543d04(0xcf)]=_0x5ce9ce;});_0x4656d1!=undefined&&(_0x10beb3=_0x10beb3[_0x138b87(0xd8)](_0x1c1c7e=>_0x1c1c7e[_0x138b87(0xbd)]==_0x4656d1));if(_0x7ed5d3)return _0x10beb3['filter'](_0x21fe4e=>_0x21fe4e[_0x138b87(0xc6)]==_0x7ed5d3);return _0x10beb3;}[a43_0x3d6b7a(0xdd)](_0x3dc53a,_0x23a5cf,_0x39a868,_0x1ba99d){const _0x1947c5=a43_0x3d6b7a;var _0x14db95;let _0x535d20=(_0x14db95=_0x3dc53a[_0x1947c5(0xd2)]())===null||_0x14db95===void 0x0?void 0x0:_0x14db95[_0x1947c5(0xbe)]();if(!_0x535d20)return;return _0x535d20[_0x1947c5(0xc1)]((_0x2b2710,_0x25736f,_0x13353f)=>{const _0x2716b4=_0x1947c5;_0x2b2710[_0x2716b4(0xcf)]=_0x3dc53a;}),_0x39a868&&_0x1ba99d&&_0x1ba99d['length']>0x0?_0x535d20=_0x535d20['filter'](_0x592033=>_0x592033[_0x1947c5(0xbd)]==!![]&&(_0x592033['layerId']==_0x23a5cf&&(_0x592033[_0x1947c5(0xe2)](_0x39a868)==undefined||_0x1ba99d[_0x1947c5(0xca)](_0x592033[_0x1947c5(0xe2)](_0x39a868))>-0x1)||_0x592033[_0x1947c5(0xc6)]==undefined)):_0x535d20=_0x535d20=_0x535d20[_0x1947c5(0xd8)](_0x3a3859=>_0x3a3859[_0x1947c5(0xbd)]==!![]&&(_0x3a3859['layerId']==_0x23a5cf||_0x3a3859[_0x1947c5(0xc6)]==undefined)),_0x535d20;}['flashFeatures'](_0x2b8fef,_0x3452c9=0x3){const _0x314ad7=a43_0x3d6b7a;var _0x3512ac;let _0x4e0afb=new a43_0x13b513({'zIndex':0x270f,'source':new a43_0x16afe4()});_0x4e0afb['id']=_0x314ad7(0xe5),this['map'][_0x314ad7(0xcb)](_0x4e0afb,![]),(_0x3512ac=_0x4e0afb[_0x314ad7(0xd2)]())===null||_0x3512ac===void 0x0?void 0x0:_0x3512ac[_0x314ad7(0xda)](_0x2b8fef);let _0x2400f1=0x0,_0x3d3425=setInterval(()=>{const _0x3ebb60=_0x314ad7;if(_0x2400f1===_0x3452c9){_0x3d3425&&clearInterval(_0x3d3425);const _0x5377ae=this[_0x3ebb60(0xd4)][_0x3ebb60(0xd5)](_0x4e0afb['id']);_0x5377ae&&this[_0x3ebb60(0xd4)][_0x3ebb60(0xc3)](_0x5377ae);return;}if(_0x4e0afb[_0x3ebb60(0xc8)]())_0x4e0afb[_0x3ebb60(0xd6)](![]);else _0x4e0afb[_0x3ebb60(0xd6)](!![]);_0x2400f1++;},0x190);}[a43_0x3d6b7a(0xc0)](_0x5e55d8,_0x476364=0x3){const _0x1eb73f=a43_0x3d6b7a;var _0x2dc575;let _0x33fb33=new a43_0x13b513({'zIndex':0x270f,'source':new a43_0x16afe4()});_0x33fb33['id']='flash_layer',this['map']['addLayer'](_0x33fb33,![]);let _0x2fa21b=[];_0x5e55d8[_0x1eb73f(0xc1)](_0x3326dd=>{const _0x47f9de=_0x1eb73f;let _0x1ccc80=new a43_0x542818();const _0x32a1f1=getSelectStyle(_0x3326dd[_0x47f9de(0xd1)]());_0x1ccc80[_0x47f9de(0xe9)](_0x32a1f1),_0x1ccc80[_0x47f9de(0xdb)](_0x3326dd),_0x2fa21b['push'](_0x1ccc80);}),(_0x2dc575=_0x33fb33['getSource']())===null||_0x2dc575===void 0x0?void 0x0:_0x2dc575[_0x1eb73f(0xda)](_0x2fa21b);let _0x1ea7a0=0x0,_0x7c745d=setInterval(()=>{const _0x5a1ca6=_0x1eb73f;if(_0x1ea7a0===_0x476364){_0x7c745d&&clearInterval(_0x7c745d);const _0x2d0b75=this['map']['getLayerById'](_0x33fb33['id']);_0x2d0b75&&this[_0x5a1ca6(0xd4)][_0x5a1ca6(0xc3)](_0x2d0b75);return;}if(_0x33fb33[_0x5a1ca6(0xc8)]())_0x33fb33['setVisible'](![]);else _0x33fb33[_0x5a1ca6(0xd6)](!![]);_0x1ea7a0++;},0x190);}async[a43_0x3d6b7a(0xd0)](_0x3f3638){const _0x18a05d=a43_0x3d6b7a;let _0xee3a4=await toGeoJSON(_0x3f3638,null);if(!_0xee3a4)return[];let _0x102a16=[];var _0x2ceab8=new a43_0x18f1c6();return _0xee3a4[_0x18a05d(0xde)]['forEach'](_0x2c8e69=>{const _0x3eeed0=_0x18a05d;_0x102a16[_0x3eeed0(0xd7)](_0x2ceab8[_0x3eeed0(0xe0)](_0x2c8e69,null));}),_0x102a16;}[a43_0x3d6b7a(0xbf)](_0x216a31){const _0x165fcd=a43_0x3d6b7a,_0x4e15f6=this[_0x165fcd(0xdf)]();if(_0x4e15f6&&_0x4e15f6[_0x165fcd(0xcd)]>0x0)for(const _0xebf0d0 of _0x4e15f6){if(_0xebf0d0&&_0xebf0d0[_0x165fcd(0xcf)]){const _0x3c84c4=_0xebf0d0[_0x165fcd(0xcf)]['getSource']();_0x3c84c4&&(_0x216a31!=undefined?_0xebf0d0[_0x165fcd(0xe4)]==_0x216a31&&_0x3c84c4[_0x165fcd(0xd3)](_0xebf0d0):_0x3c84c4[_0x165fcd(0xd3)](_0xebf0d0));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e5c63,_0xb8a26a){var _0x1de53c=a44_0x5665,_0x58e774=_0x5e5c63();while(!![]){try{var _0x124f1c=parseInt(_0x1de53c(0x113))/0x1*(parseInt(_0x1de53c(0x112))/0x2)+-parseInt(_0x1de53c(0x10f))/0x3*(-parseInt(_0x1de53c(0x111))/0x4)+-parseInt(_0x1de53c(0x114))/0x5+parseInt(_0x1de53c(0x116))/0x6+-parseInt(_0x1de53c(0x115))/0x7*(parseInt(_0x1de53c(0x10e))/0x8)+-parseInt(_0x1de53c(0x10c))/0x9+-parseInt(_0x1de53c(0x110))/0xa*(-parseInt(_0x1de53c(0x10d))/0xb);if(_0x124f1c===_0xb8a26a)break;else _0x58e774['push'](_0x58e774['shift']());}catch(_0x3726e3){_0x58e774['push'](_0x58e774['shift']());}}}(a44_0x3fd3,0x72a7b));function a44_0x5665(_0x125b71,_0x3aa3a1){var _0x3fd311=a44_0x3fd3();return a44_0x5665=function(_0x5665a6,_0x51e9dc){_0x5665a6=_0x5665a6-0x10c;var _0x1b15e8=_0x3fd311[_0x5665a6];return _0x1b15e8;},a44_0x5665(_0x125b71,_0x3aa3a1);}import a44_0x2b147a from'./mapView/Map';function a44_0x3fd3(){var _0xccfdb=['1768IQrkcT','298434TMTaJh','134720DPdAHO','4XckCkw','9600taaHEB','87iUeUXA','329080vQuXxs','21588UZcCyc','698352pMahhe','6994215REwIwi','1111FUhzYh'];a44_0x3fd3=function(){return _0xccfdb;};return a44_0x3fd3();}export{a44_0x2b147a as Map2D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x82e3dc=a45_0x51c4;function a45_0x1904(){const _0x577e99=['8lcYUit','_showLabel','drawMoving','polygon','_source','text','4NHUDCy','drawAddPoint','530AbVFAT','spheroid','label','toFixed','63363qREeJo','fromType','measure','getLength','clear','find','square-kilometers','entries','getView','563666vcJZnq','dispatchEvent','_features','setMap','_spheroid','getGeometry','28503GabmlS','clearMeasure','feature','_style','measureMoving','log','showLabel','57958527gSTHYO','setStyle','_precision','点击开始测量,双击结束测量','5206998wiPkWy','3270635jQWfjd','forEach','getSource','_unit','setFeatureAreaStyle','onInternal','square-meters','assign','unit','measureEnd','drawEnd','area','212bKActb','getMap','precision','7408681uTebhz','geom','getText','getProjection','#f03437'];a45_0x1904=function(){return _0x577e99;};return a45_0x1904();}(function(_0x387560,_0x8e9fdf){const _0x3175cb=a45_0x51c4,_0x18d2c2=_0x387560();while(!![]){try{const _0xc5ee51=parseInt(_0x3175cb(0x16f))/0x1*(-parseInt(_0x3175cb(0x17e))/0x2)+parseInt(_0x3175cb(0x175))/0x3*(-parseInt(_0x3175cb(0x161))/0x4)+-parseInt(_0x3175cb(0x190))/0x5+-parseInt(_0x3175cb(0x18f))/0x6+parseInt(_0x3175cb(0x164))/0x7*(-parseInt(_0x3175cb(0x169))/0x8)+parseInt(_0x3175cb(0x184))/0x9*(parseInt(_0x3175cb(0x171))/0xa)+parseInt(_0x3175cb(0x18b))/0xb;if(_0xc5ee51===_0x8e9fdf)break;else _0x18d2c2['push'](_0x18d2c2['shift']());}catch(_0x493e2d){_0x18d2c2['push'](_0x18d2c2['shift']());}}}(a45_0x1904,0x94db8));import a45_0x43df2a from'./Draw';import a45_0x55d508 from'ol/events/Event';function a45_0x51c4(_0x3a6469,_0x2f934d){const _0x1904d1=a45_0x1904();return a45_0x51c4=function(_0x51c44c,_0x513859){_0x51c44c=_0x51c44c-0x15e;let _0xefeaea=_0x1904d1[_0x51c44c];return _0xefeaea;},a45_0x51c4(_0x3a6469,_0x2f934d);}import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x577491 from'../entity/measure/AreaMeasureUnits';import a45_0xdfd1a from'ol/Collection';const defaultOptions={'color':a45_0x82e3dc(0x168),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x82e3dc(0x196),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':a45_0x82e3dc(0x188),'measureEnd':a45_0x82e3dc(0x15e)};export class AreaMeasureEvent extends a45_0x55d508{constructor(_0x3950bb,_0x254df9,_0x13a7ea){const _0x581de6=a45_0x82e3dc;super(_0x3950bb),this[_0x581de6(0x160)]=_0x254df9,this[_0x581de6(0x165)]=_0x13a7ea;}}export default class AreaMeasure extends a45_0x43df2a{constructor(_0x17e1e9){const _0x478c54=a45_0x82e3dc;_0x17e1e9=_0x17e1e9||{},console[_0x478c54(0x189)](_0x17e1e9);const _0x57209a=Object[_0x478c54(0x197)](Object[_0x478c54(0x197)]({},defaultOptions),Object['fromEntries'](Object[_0x478c54(0x17c)](_0x17e1e9)['filter'](([_0x2f6e5f,_0x54e85e])=>_0x54e85e!=null)));super(_0x478c54(0x16c),{'tipText':_0x478c54(0x18e),'style':_0x57209a,'features':new a45_0xdfd1a()}),this[_0x478c54(0x187)]=_0x57209a,this[_0x478c54(0x193)]=_0x57209a[_0x478c54(0x198)],this[_0x478c54(0x18d)]=_0x57209a[_0x478c54(0x163)],this['_showLabel']=_0x57209a[_0x478c54(0x18a)],this[_0x478c54(0x182)]=_0x57209a[_0x478c54(0x172)],this['on']=this[_0x478c54(0x195)],this['on'](_0x478c54(0x15f),_0x4c7e8=>{const _0x213a38=_0x478c54,_0x4f55f4=this['getMap']();if(!_0x4f55f4)return;if(_0x4c7e8[_0x213a38(0x186)]){const _0x5753d6=this[_0x213a38(0x194)](_0x4c7e8[_0x213a38(0x186)],_0x57209a);this[_0x213a38(0x17f)](new AreaMeasureEvent(MeasureEventType[_0x213a38(0x15e)],_0x5753d6,_0x4c7e8[_0x213a38(0x186)][_0x213a38(0x183)]()));}this[_0x213a38(0x187)][_0x213a38(0x16e)]='';}),this['on'](_0x478c54(0x170),_0x2c12c4=>{const _0x49d361=_0x478c54,_0x25b815=this[_0x49d361(0x162)]();if(!_0x25b815)return;if(_0x2c12c4[_0x49d361(0x186)]){const _0x319f9e=this[_0x49d361(0x194)](_0x2c12c4[_0x49d361(0x186)],_0x57209a);this[_0x49d361(0x17f)](new AreaMeasureEvent(MeasureEventType[_0x49d361(0x188)],_0x319f9e,_0x2c12c4[_0x49d361(0x186)][_0x49d361(0x183)]()));}}),this['on'](_0x478c54(0x16b),_0x21c828=>{const _0x4a8e6a=_0x478c54,_0xe6152a=this[_0x4a8e6a(0x162)]();if(!_0xe6152a)return;if(!_0x21c828['coordinates']||_0x21c828['coordinates']['length']<0x2)return;if(_0x21c828[_0x4a8e6a(0x186)]){const _0x27ca60=this[_0x4a8e6a(0x194)](_0x21c828['feature'],_0x57209a);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x4a8e6a(0x188)],_0x27ca60,_0x21c828[_0x4a8e6a(0x186)]['getGeometry']()));}});}['setMap'](_0x43c938){const _0x26eaf9=a45_0x82e3dc;super[_0x26eaf9(0x181)](_0x43c938);if(_0x43c938){const _0x2232d9=_0x43c938['getPolygonTempLayer'](),_0x4a5b09=_0x2232d9===null||_0x2232d9===void 0x0?void 0x0:_0x2232d9[_0x26eaf9(0x192)]();_0x4a5b09&&(this[_0x26eaf9(0x16d)]=_0x4a5b09);}}[a45_0x82e3dc(0x166)](_0x101163){const _0x4a2dce=a45_0x82e3dc,_0xbc75e5=a45_0x577491[_0x4a2dce(0x17a)](_0x23a047=>_0x23a047['type']===this['_unit']);switch(_0xbc75e5===null||_0xbc75e5===void 0x0?void 0x0:_0xbc75e5['type']){case _0x4a2dce(0x196):return''+(_0x101163['toFixed'](this[_0x4a2dce(0x18d)])+_0xbc75e5['label']);case _0x4a2dce(0x17b):return''+((_0x101163*0.000001)[_0x4a2dce(0x174)](this[_0x4a2dce(0x18d)])+_0xbc75e5[_0x4a2dce(0x173)]);case'mu':return''+((_0x101163*0.0015)[_0x4a2dce(0x174)](this[_0x4a2dce(0x18d)])+_0xbc75e5[_0x4a2dce(0x173)]);case'hectare':return''+((_0x101163*0.0001)[_0x4a2dce(0x174)](this[_0x4a2dce(0x18d)])+_0xbc75e5['label']);default:return _0x101163[_0x4a2dce(0x174)](this[_0x4a2dce(0x18d)])+'平方米';}}[a45_0x82e3dc(0x194)](_0x76f2be,_0x50b23c){const _0x5ecafc=a45_0x82e3dc,_0x2edbc4=this['getMap']();if(!_0x2edbc4)return 0x0;const _0x43d72b=_0x76f2be[_0x5ecafc(0x183)](),_0xa824bc=getArea(_0x43d72b,_0x2edbc4[_0x5ecafc(0x17d)]()[_0x5ecafc(0x167)](),this[_0x5ecafc(0x182)]);return _0x76f2be[_0x5ecafc(0x176)]=_0x5ecafc(0x177),this[_0x5ecafc(0x16a)]&&(_0x50b23c[_0x5ecafc(0x16e)]=this[_0x5ecafc(0x166)](_0xa824bc),_0x76f2be[_0x5ecafc(0x18c)](getStyle(_0x5ecafc(0x16c),_0x50b23c,_0x2edbc4))),_0xa824bc;}['setUnit'](_0x2d58f3){const _0x1b30c0=a45_0x82e3dc;this['_unit']=_0x2d58f3,this['_features']&&this[_0x1b30c0(0x180)][_0x1b30c0(0x178)]()>0x0&&this['_features'][_0x1b30c0(0x191)](_0x1c05c3=>{const _0x5e9943=_0x1b30c0;this[_0x5e9943(0x194)](_0x1c05c3,this[_0x5e9943(0x187)]);});}[a45_0x82e3dc(0x185)](){const _0x5134ec=a45_0x82e3dc,_0x5e9f1d=this[_0x5134ec(0x162)]();if(!_0x5e9f1d)return;const _0x2d2bc2=_0x5e9f1d['getPolygonTempLayer'](),_0x19dfdd=_0x2d2bc2===null||_0x2d2bc2===void 0x0?void 0x0:_0x2d2bc2[_0x5134ec(0x192)]();_0x19dfdd&&this[_0x5134ec(0x180)]&&this[_0x5134ec(0x180)][_0x5134ec(0x178)]()>0x0&&(this[_0x5134ec(0x180)][_0x5134ec(0x191)](_0x5c53d1=>{_0x19dfdd['removeFeature'](_0x5c53d1);}),this[_0x5134ec(0x180)][_0x5134ec(0x179)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a46_0x20cb(_0x322b03,_0x114798){const _0x1aba97=a46_0x1aba();return a46_0x20cb=function(_0x20cbd2,_0x5d99d6){_0x20cbd2=_0x20cbd2-0x15b;let _0x36e49f=_0x1aba97[_0x20cbd2];return _0x36e49f;},a46_0x20cb(_0x322b03,_0x114798);}const a46_0x31f7f8=a46_0x20cb;(function(_0x5c59e4,_0x4e64e3){const _0x4232bd=a46_0x20cb,_0x358485=_0x5c59e4();while(!![]){try{const _0x7606e=-parseInt(_0x4232bd(0x15c))/0x1*(parseInt(_0x4232bd(0x17b))/0x2)+parseInt(_0x4232bd(0x161))/0x3+-parseInt(_0x4232bd(0x162))/0x4*(-parseInt(_0x4232bd(0x165))/0x5)+parseInt(_0x4232bd(0x168))/0x6+parseInt(_0x4232bd(0x178))/0x7*(parseInt(_0x4232bd(0x164))/0x8)+-parseInt(_0x4232bd(0x166))/0x9+parseInt(_0x4232bd(0x176))/0xa*(-parseInt(_0x4232bd(0x16e))/0xb);if(_0x7606e===_0x4e64e3)break;else _0x358485['push'](_0x358485['shift']());}catch(_0x34b450){_0x358485['push'](_0x358485['shift']());}}}(a46_0x1aba,0xb2a2e));import a46_0x43b23a from'./Draw';import a46_0x152d40 from'ol/events/Event';import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x31f7f8(0x17d),'HOLED':a46_0x31f7f8(0x17c)};export class HoleEvent extends a46_0x152d40{constructor(_0x5a40d4,_0x27832d,_0x41f49c,_0x3adba8){const _0x3d48c9=a46_0x31f7f8;super(_0x5a40d4),this[_0x3d48c9(0x174)]=_0x27832d,this[_0x3d48c9(0x167)]=_0x41f49c,this[_0x3d48c9(0x175)]=_0x3adba8;}}export default class Difference extends a46_0x43b23a{constructor(_0x17c62c,_0x13a899){const _0x10f67d=a46_0x31f7f8,_0x382273=(_0x13a899===null||_0x13a899===void 0x0?void 0x0:_0x13a899[_0x10f67d(0x163)])||{'outlineColor':_0x10f67d(0x15f),'outlineWidth':0x2,'opacity':0.2,'color':_0x10f67d(0x15f)};super(_0x10f67d(0x15d),{'tipText':_0x13a899===null||_0x13a899===void 0x0?void 0x0:_0x13a899[_0x10f67d(0x179)],'style':_0x382273}),this[_0x10f67d(0x167)]=_0x17c62c;const _0x753825=_0x13a899||{};this[_0x10f67d(0x16d)]=_0x753825[_0x10f67d(0x16d)]||![],this['on']=this[_0x10f67d(0x16a)],this['on'](_0x10f67d(0x160),async _0x10d017=>{const _0x5445e3=_0x10f67d;var _0x20822a;const _0xc2bb06=this[_0x5445e3(0x17e)]();let _0x30bf00=(_0x20822a=_0x10d017[_0x5445e3(0x171)])===null||_0x20822a===void 0x0?void 0x0:_0x20822a[_0x5445e3(0x172)]();!_0x30bf00&&this[_0x5445e3(0x169)](new HoleEvent(HoleEventType[_0x5445e3(0x170)],undefined,undefined,_0x5445e3(0x177)));let _0x1e4602=_0x30bf00;!_0xc2bb06&&this['dispatchEvent'](new HoleEvent(HoleEventType[_0x5445e3(0x170)],_0x1e4602,undefined,_0x5445e3(0x16f)));(!this[_0x5445e3(0x167)]||this['features'][_0x5445e3(0x173)]===0x0)&&this['dispatchEvent'](new HoleEvent(HoleEventType['HOLED'],_0x1e4602,undefined,'未获取到擦除要素'));try{this[_0x5445e3(0x169)](new HoleEvent(HoleEventType[_0x5445e3(0x15b)],_0x1e4602));const _0x2cbbfc=this[_0x5445e3(0x16b)](_0x1e4602);this['dispatchEvent'](new HoleEvent(HoleEventType['HOLED'],_0x1e4602,_0x2cbbfc));}catch(_0xb34cf8){this['dispatchEvent'](new HoleEvent(HoleEventType[_0x5445e3(0x170)],_0x1e4602,undefined,_0xb34cf8['message']));}});}[a46_0x31f7f8(0x16b)](_0x2df27f){const _0xb8e9dc=a46_0x31f7f8,_0x4fe252=[];for(let _0x543886=0x0;_0x543886<this[_0xb8e9dc(0x167)][_0xb8e9dc(0x173)];_0x543886++){const _0x4f6e86=this['features'][_0x543886],_0x133b74=_0x4f6e86[_0xb8e9dc(0x172)]();if(!_0x133b74)continue;const _0x3a9f7a=difference(_0x133b74,_0x2df27f);_0x4f6e86[_0xb8e9dc(0x17a)](_0x3a9f7a),_0x4fe252[_0xb8e9dc(0x16c)](_0x4f6e86);}return _0x4fe252;}[a46_0x31f7f8(0x15e)](_0x503dbd){this['features']=_0x503dbd;}}function a46_0x1aba(){const _0x3118a5=['8490672OFWoVv','features','3295296ufXblE','dispatchEvent','onInternal','holeFeatures','push','addTempLayer','39017hsApDg','未获取到地图对象','HOLED','feature','getGeometry','length','holePolygon','error','2770lJVWCf','未获取到挖除的面','4725BngFku','tipText','setGeometry','330702zHiSNP','splited','splitStart','getMap','HOLESTART','1oTFWAk','polygon','setFeatures','rgba(255,\x200,\x200,\x201)','drawEnd','4157166TPVDvh','3268636oLwJcJ','holeStyle','840dIWxRm','5OPVmwy'];a46_0x1aba=function(){return _0x3118a5;};return a46_0x1aba();}
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47_0xbb85b9=a47_0x14f5;(function(_0x4e47fb,_0xce16fe){const _0x2caf6e=a47_0x14f5,_0x1d4848=_0x4e47fb();while(!![]){try{const _0x1efed2=-parseInt(_0x2caf6e(0x1cb))/0x1+parseInt(_0x2caf6e(0x1fa))/0x2+-parseInt(_0x2caf6e(0x1d6))/0x3*(-parseInt(_0x2caf6e(0x1c8))/0x4)+-parseInt(_0x2caf6e(0x21d))/0x5*(parseInt(_0x2caf6e(0x1e8))/0x6)+-parseInt(_0x2caf6e(0x1dc))/0x7*(parseInt(_0x2caf6e(0x1d9))/0x8)+parseInt(_0x2caf6e(0x1e1))/0x9+parseInt(_0x2caf6e(0x1cd))/0xa*(parseInt(_0x2caf6e(0x21e))/0xb);if(_0x1efed2===_0xce16fe)break;else _0x1d4848['push'](_0x1d4848['shift']());}catch(_0x3c4d81){_0x1d4848['push'](_0x1d4848['shift']());}}}(a47_0x48c1,0x3c87d));import a47_0xcdc1f3 from'ol/events/Event';import a47_0x335450 from'ol/interaction/Pointer';function a47_0x48c1(){const _0x218174=['getView','1353215vlmpjz','309749iFKIHZ','MAX_VALUE','wrapX','getGeometry','addChangeListener','DRAWABORT','updateTip_','setStyle','_fixPoint','单击结束绘制,右击删除点','source','setMap','_tipStyle','onceInternal','startDrawing_','32140WdsYaO','pixel','_isStayDraw','442296SDfcMw','_sketchFeature','40krgBoM','atFinish_','addPoint','drawMoving','preventDefault','_type','单击开始绘制','handleDragEvent','DRAWEND','51zBjZpC','buildDrawingFeature','getProjection','366728ffWZQg','rgba(0,\x200,\x200,\x200.4)','once','21uUpgLA','clear','Ellipsoid','_minPoints','revert','4132413gpaJZj','Ellipse','style','unInternal','DRAWADDPOINT','drawStart','handleMoveEvent','6BgEJLX','getType','setGeometry','coordinates','_features','getCode','getMap','snapTolerance','handleUpEvent','finishDrawing','stopDown','getActive','updateState_','left','type','push','rectangle','abortDrawing','780014zyIqwg','getPixelFromCoordinate','abortDrawing_','_tipFeature','_tipOverlay','sqrt','originalEvent','updateSketchFeatures_','drawEnd','Circle','pointermove','pop','length','feature','_source','单击拖动绘制','_showTip','button','_overlay','drawAddPoint','_style','minPoint','projection','DRAWMOVING','coordinate','getSource','dispatchEvent','drawAbort','_drawingCoordinates','fixPoint','getOverlay','tipText','createMultiPointFeature','addFeature'];a47_0x48c1=function(){return _0x218174;};return a47_0x48c1();}import{MultiPoint,Point}from'ol/geom';import a47_0x14ac14 from'ol/Feature';function a47_0x14f5(_0x7c987,_0x4f9384){const _0x48c15a=a47_0x48c1();return a47_0x14f5=function(_0x14f564,_0x5d39b9){_0x14f564=_0x14f564-0x1c5;let _0x168f3c=_0x48c15a[_0x14f564];return _0x168f3c;},a47_0x14f5(_0x7c987,_0x4f9384);}import a47_0x230780,{createEditingStyle}from'ol/style/Style';import a47_0x3f5f31 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x37b8a1 from'ol/style/Text';import a47_0x2e74e6 from'ol/style/Fill';import a47_0x45a5f3 from'ol/interaction/Property';import a47_0x54bda8 from'ol/layer/Vector';import a47_0x2658a4 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0xbb85b9(0x1e6),'DRAWEND':a47_0xbb85b9(0x202),'DRAWABORT':a47_0xbb85b9(0x215),'DRAWADDPOINT':a47_0xbb85b9(0x20d),'DRAWMOVING':a47_0xbb85b9(0x1d0)};export class DrawEvent extends a47_0xcdc1f3{constructor(_0x47f0db,_0x5ea06c,_0x40033c){const _0x333a63=a47_0xbb85b9;super(_0x47f0db),this[_0x333a63(0x207)]=_0x5ea06c,this[_0x333a63(0x1eb)]=_0x40033c;}}export class ShEvent extends a47_0xcdc1f3{constructor(_0x1dc003,_0x145dac,_0x9b1483,_0x353462,_0x4f4af0){const _0x3da6ab=a47_0xbb85b9;super(_0x1dc003),this[_0x3da6ab(0x210)]=_0x4f4af0,this[_0x3da6ab(0x1f6)]=_0x145dac,this[_0x3da6ab(0x212)]=_0x9b1483,this['coordinates']=_0x353462;}}export default class Draw extends a47_0x335450{constructor(_0x511fc2,_0x28aac2){const _0x3d0969=a47_0xbb85b9,_0x24f78d=_0x28aac2?_0x28aac2:{};!_0x24f78d[_0x3d0969(0x1f2)]&&(_0x24f78d[_0x3d0969(0x1f2)]=![]);super(_0x28aac2),this['on']=this['onInternal'],this[_0x3d0969(0x1db)]=this[_0x3d0969(0x1c6)],this['un']=this[_0x3d0969(0x1e4)],this[_0x3d0969(0x1ca)]=![],this['_type']=_0x511fc2,this[_0x3d0969(0x20e)]=_0x28aac2===null||_0x28aac2===void 0x0?void 0x0:_0x28aac2[_0x3d0969(0x1e3)],this[_0x3d0969(0x208)]=_0x28aac2===null||_0x28aac2===void 0x0?void 0x0:_0x28aac2[_0x3d0969(0x228)],this[_0x3d0969(0x1ec)]=_0x28aac2===null||_0x28aac2===void 0x0?void 0x0:_0x28aac2['features'];const _0x43e620=getPlotCount(this['_type']);this[_0x3d0969(0x1df)]=_0x43e620[_0x3d0969(0x20f)],this[_0x3d0969(0x226)]=_0x43e620[_0x3d0969(0x217)],this[_0x3d0969(0x219)]=_0x28aac2===null||_0x28aac2===void 0x0?void 0x0:_0x28aac2[_0x3d0969(0x219)],this['_showTip']=(_0x28aac2===null||_0x28aac2===void 0x0?void 0x0:_0x28aac2['showTip'])==![]?![]:!![],this['_snapTolerance']=_0x24f78d[_0x3d0969(0x1ef)]?_0x24f78d[_0x3d0969(0x1ef)]:0x6,this[_0x3d0969(0x1fd)]=new a47_0x14ac14(),this[_0x3d0969(0x1c5)]=new a47_0x230780({'text':new a47_0x37b8a1({'font':'12px\x20Calibre,sans-serif','fill':new a47_0x2e74e6({'color':'rgba(255,\x20255,\x20255,\x201)'}),'backgroundFill':new a47_0x2e74e6({'color':_0x3d0969(0x1da)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x3d0969(0x1f5),'offsetX':0xf})}),this[_0x3d0969(0x216)]=[],this[_0x3d0969(0x1fe)]=new a47_0x54bda8({'source':new a47_0x3f5f31({'useSpatialIndex':![],'wrapX':(_0x28aac2===null||_0x28aac2===void 0x0?void 0x0:_0x28aac2[_0x3d0969(0x220)])?_0x28aac2[_0x3d0969(0x220)]:![]})}),this['_overlay']=new a47_0x54bda8({'source':new a47_0x3f5f31({'useSpatialIndex':![],'wrapX':(_0x28aac2===null||_0x28aac2===void 0x0?void 0x0:_0x28aac2[_0x3d0969(0x220)])?_0x28aac2['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0x3d0969(0x222)](a47_0x45a5f3['ACTIVE'],this[_0x3d0969(0x1f4)]);}[a47_0xbb85b9(0x1f4)](){const _0x1c2123=a47_0xbb85b9,_0x3c8525=this[_0x1c2123(0x1ee)](),_0x5aea87=this[_0x1c2123(0x1f3)]();(!_0x3c8525||!_0x5aea87)&&this[_0x1c2123(0x1f9)](),this['_overlay']['setMap'](_0x5aea87?_0x3c8525:null),this[_0x1c2123(0x1fe)][_0x1c2123(0x229)](_0x5aea87?_0x3c8525:null);}['setMap'](_0x401c89){const _0x1cc20d=a47_0xbb85b9;super[_0x1cc20d(0x229)](_0x401c89),this[_0x1cc20d(0x1f4)]();}['setStyle'](_0xed4c5e){const _0x1c09b1=a47_0xbb85b9;this[_0x1c09b1(0x20e)]=_0xed4c5e?_0xed4c5e:{};}[a47_0xbb85b9(0x218)](){return this['_overlay'];}['handleDownEvent'](_0x3ec5b2){const _0x8d76de=a47_0xbb85b9;if(_0x3ec5b2[_0x8d76de(0x200)][_0x8d76de(0x20b)]===0x2)return _0x3ec5b2[_0x8d76de(0x200)][_0x8d76de(0x1d1)](),this[_0x8d76de(0x1e0)](),this[_0x8d76de(0x1e7)](_0x3ec5b2),![];return!![];}[a47_0xbb85b9(0x1f0)](_0x489ac8){const _0x5673bd=a47_0xbb85b9;var _0x2f7e22,_0x2f4ed9;if(this[_0x5673bd(0x1d2)]==_0x5673bd(0x1f8)&&this[_0x5673bd(0x216)][_0x5673bd(0x206)]<0x1)return this[_0x5673bd(0x214)](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x489ac8['coordinate']])),![];if(!this[_0x5673bd(0x1ca)])this[_0x5673bd(0x1c7)](_0x489ac8[_0x5673bd(0x212)]),this[_0x5673bd(0x214)](new ShEvent(DrawEventType[_0x5673bd(0x1e5)],this[_0x5673bd(0x1d2)],_0x489ac8['coordinate'],this['_drawingCoordinates'],(_0x2f7e22=this[_0x5673bd(0x1ee)]())===null||_0x2f7e22===void 0x0?void 0x0:_0x2f7e22[_0x5673bd(0x21c)]()[_0x5673bd(0x1d8)]()[_0x5673bd(0x1ed)]())),this[_0x5673bd(0x1d2)]=='point'&&this[_0x5673bd(0x1f1)]();else{if(this[_0x5673bd(0x216)]&&this[_0x5673bd(0x216)]['length']>0x0){if(this[_0x5673bd(0x1ce)](_0x489ac8[_0x5673bd(0x1c9)]))return this[_0x5673bd(0x1f1)](),_0x489ac8['preventDefault'](),![];let _0xce0605=this[_0x5673bd(0x216)]['length']+0x1;_0xce0605<=this['_fixPoint']&&this[_0x5673bd(0x1cf)](_0x489ac8[_0x5673bd(0x212)]),this[_0x5673bd(0x214)](new ShEvent(DrawEventType[_0x5673bd(0x1e5)],this[_0x5673bd(0x1d2)],_0x489ac8['coordinate'],this[_0x5673bd(0x216)],(_0x2f4ed9=this[_0x5673bd(0x1ee)]())===null||_0x2f4ed9===void 0x0?void 0x0:_0x2f4ed9[_0x5673bd(0x21c)]()['getProjection']()[_0x5673bd(0x1ed)]())),_0xce0605>=this[_0x5673bd(0x1df)]&&this['buildDrawingFeature'](this['_drawingCoordinates']),_0xce0605===this[_0x5673bd(0x226)]&&this[_0x5673bd(0x1f1)]();}}return _0x489ac8[_0x5673bd(0x1d1)](),![];}[a47_0xbb85b9(0x1d4)](_0x413d90){const _0x4a6f8b=a47_0xbb85b9;var _0x2d0d93;if(this['_type']=='rectangle'&&_0x413d90[_0x4a6f8b(0x200)][_0x4a6f8b(0x1f6)]==_0x4a6f8b(0x204)){if(!this[_0x4a6f8b(0x1ca)]){this['startDrawing_'](_0x413d90['coordinate']),this[_0x4a6f8b(0x214)](new ShEvent(DrawEventType[_0x4a6f8b(0x1e5)],this[_0x4a6f8b(0x1d2)],_0x413d90[_0x4a6f8b(0x212)],this['_drawingCoordinates'],(_0x2d0d93=this['getMap']())===null||_0x2d0d93===void 0x0?void 0x0:_0x2d0d93['getView']()[_0x4a6f8b(0x1d8)]()[_0x4a6f8b(0x1ed)]()));return;}let _0x5a3774=[...this[_0x4a6f8b(0x216)],_0x413d90[_0x4a6f8b(0x212)]];this['buildDrawingFeature'](_0x5a3774),this[_0x4a6f8b(0x214)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x4a6f8b(0x1cc)],this[_0x4a6f8b(0x216)]));}}['handleMoveEvent'](_0x54843e){const _0x31cd44=a47_0xbb85b9;var _0x465f2e,_0x3547bd,_0x178d30;let _0x45caa3='';this[_0x31cd44(0x1d2)]==_0x31cd44(0x204)&&(this[_0x31cd44(0x1c7)](_0x54843e[_0x31cd44(0x212)]),this[_0x31cd44(0x214)](new ShEvent(DrawEventType[_0x31cd44(0x1e5)],this[_0x31cd44(0x1d2)],_0x54843e[_0x31cd44(0x212)],this[_0x31cd44(0x216)],(_0x465f2e=this['getMap']())===null||_0x465f2e===void 0x0?void 0x0:_0x465f2e[_0x31cd44(0x21c)]()[_0x31cd44(0x1d8)]()[_0x31cd44(0x1ed)]())),this[_0x31cd44(0x1f1)]());!this['_isStayDraw']?_0x45caa3=this[_0x31cd44(0x1d2)]=='rectangle'?_0x31cd44(0x209):_0x31cd44(0x1d3):(_0x45caa3='单击增加点,右击删除点',((_0x3547bd=this[_0x31cd44(0x216)])===null||_0x3547bd===void 0x0?void 0x0:_0x3547bd['length'])===this[_0x31cd44(0x226)]-0x1&&(_0x45caa3=_0x31cd44(0x227)),((_0x178d30=this[_0x31cd44(0x216)])===null||_0x178d30===void 0x0?void 0x0:_0x178d30[_0x31cd44(0x206)])>=this[_0x31cd44(0x1df)]&&this[_0x31cd44(0x226)]===Number[_0x31cd44(0x21f)]&&(_0x45caa3='单击增加点,右击删除点双击完成绘制'));this['tipText']!=undefined&&(_0x45caa3=this[_0x31cd44(0x219)]);this[_0x31cd44(0x224)](_0x54843e[_0x31cd44(0x212)],_0x45caa3);if(this[_0x31cd44(0x1ca)]&&this[_0x31cd44(0x1d2)]!=_0x31cd44(0x1f8)){let _0x38ac00=[...this['_drawingCoordinates'],_0x54843e[_0x31cd44(0x212)]];this[_0x31cd44(0x1d7)](_0x38ac00);}this['dispatchEvent'](new DrawEvent(DrawEventType[_0x31cd44(0x211)],this[_0x31cd44(0x1cc)],this[_0x31cd44(0x216)]));}[a47_0xbb85b9(0x1ce)](_0x4a4524){const _0x13342e=a47_0xbb85b9;var _0x5cffa2;let _0x2f6851=![],_0x736f31=this[_0x13342e(0x216)]['length'];if(_0x736f31>this[_0x13342e(0x1df)]&&this[_0x13342e(0x226)]===Number[_0x13342e(0x21f)]){const _0x369bb1=this[_0x13342e(0x216)][this['_drawingCoordinates'][_0x13342e(0x206)]-0x1],_0x2dcf72=(_0x5cffa2=this[_0x13342e(0x1ee)]())===null||_0x5cffa2===void 0x0?void 0x0:_0x5cffa2[_0x13342e(0x1fb)](_0x369bb1),_0x361eb5=_0x4a4524[0x0]-(_0x2dcf72?_0x2dcf72[0x0]:0x0),_0x376de6=_0x4a4524[0x1]-(_0x2dcf72?_0x2dcf72[0x1]:0x0);_0x2f6851=Math[_0x13342e(0x1ff)](_0x361eb5*_0x361eb5+_0x376de6*_0x376de6)<=this['_snapTolerance'];}return _0x2f6851;}['startDrawing_'](_0x3647a9){const _0x11b223=a47_0xbb85b9;this[_0x11b223(0x1ca)]=!![],this[_0x11b223(0x216)]=[_0x3647a9['slice']()],this['_sketchFeature']=this[_0x11b223(0x21a)](),this['updateSketchFeatures_'](),this[_0x11b223(0x214)](new DrawEvent(DrawEventType['DRAWSTART'],this[_0x11b223(0x1cc)],this[_0x11b223(0x216)]));}[a47_0xbb85b9(0x1f1)](){const _0x81a03f=a47_0xbb85b9;if(this['_drawingCoordinates'][_0x81a03f(0x206)]>this['_minPoints']){this[_0x81a03f(0x1d7)](this[_0x81a03f(0x216)]);let _0x10754e=this[_0x81a03f(0x216)];const _0x4f7e99=this[_0x81a03f(0x1fc)]();if(!_0x4f7e99)return;this[_0x81a03f(0x214)](new DrawEvent(DrawEventType[_0x81a03f(0x1d5)],_0x4f7e99,_0x10754e)),this['_features']&&this[_0x81a03f(0x1ec)]['push'](_0x4f7e99),this[_0x81a03f(0x208)]&&this[_0x81a03f(0x208)][_0x81a03f(0x21b)](_0x4f7e99);}}[a47_0xbb85b9(0x1cf)](_0x40a8bd){const _0x26bb02=a47_0xbb85b9;this[_0x26bb02(0x216)][_0x26bb02(0x1f7)](_0x40a8bd),this[_0x26bb02(0x1cc)]=this[_0x26bb02(0x21a)](),this[_0x26bb02(0x201)]();}[a47_0xbb85b9(0x21a)](){const _0x1f1192=a47_0xbb85b9,_0x4d8453=new MultiPoint(this['_drawingCoordinates']);let _0x1d34ec=new a47_0x14ac14();return _0x1d34ec[_0x1f1192(0x1ea)](_0x4d8453),_0x1d34ec;}['abortDrawing_'](){const _0x4a3a48=a47_0xbb85b9;var _0x56d563,_0x2a3986;this[_0x4a3a48(0x1ca)]=![];const _0x3528eb=this[_0x4a3a48(0x1cc)];return this[_0x4a3a48(0x1cc)]=undefined,this[_0x4a3a48(0x216)]=[],(_0x56d563=this[_0x4a3a48(0x20c)][_0x4a3a48(0x213)]())===null||_0x56d563===void 0x0?void 0x0:_0x56d563[_0x4a3a48(0x1dd)](!![]),(_0x2a3986=this[_0x4a3a48(0x1fe)][_0x4a3a48(0x213)]())===null||_0x2a3986===void 0x0?void 0x0:_0x2a3986[_0x4a3a48(0x1dd)](!![]),_0x3528eb;}[a47_0xbb85b9(0x1f9)](){const _0x4be656=a47_0xbb85b9,_0x517d8a=this[_0x4be656(0x1fc)]();_0x517d8a&&this[_0x4be656(0x214)](new DrawEvent(DrawEventType[_0x4be656(0x223)],_0x517d8a,this['_drawingCoordinates']));}[a47_0xbb85b9(0x1d7)](_0x3eecbb){const _0x22666f=a47_0xbb85b9;this['_sketchFeature']=new a47_0x14ac14();let _0x3b1e8d=createPlot(this[_0x22666f(0x1d2)],_0x3eecbb);if(!_0x3b1e8d)return;this['_sketchFeature'][_0x22666f(0x1ea)](_0x3b1e8d);let _0x183acd=[a47_0x2658a4[_0x22666f(0x203)],a47_0x2658a4[_0x22666f(0x1de)],a47_0x2658a4[_0x22666f(0x1e2)]];if(_0x183acd['indexOf'](this[_0x22666f(0x1d2)])>-0x1&&this[_0x22666f(0x20e)]){}const _0x5e3617=this['getMap']();this['_sketchFeature']['setStyle'](getStyle(this[_0x22666f(0x1d2)],this[_0x22666f(0x20e)],this['getMap']())),this[_0x22666f(0x201)]();}['updateSketchFeatures_'](){const _0x2667b1=a47_0xbb85b9,_0x500d76=this[_0x2667b1(0x20c)][_0x2667b1(0x213)]();_0x500d76&&this[_0x2667b1(0x1cc)]&&(_0x500d76['clear'](!![]),_0x500d76[_0x2667b1(0x21b)](this[_0x2667b1(0x1cc)]));}[a47_0xbb85b9(0x1e0)](){const _0xc229fb=a47_0xbb85b9;if(this['_isStayDraw']){if(this[_0xc229fb(0x216)]&&this['_drawingCoordinates']['length']>0x0){const _0x1d1925=this['_overlay']['getSource']();_0x1d1925===null||_0x1d1925===void 0x0?void 0x0:_0x1d1925['clear'](!![]),this['_drawingCoordinates'][_0xc229fb(0x205)](),this[_0xc229fb(0x216)][_0xc229fb(0x206)]>=this[_0xc229fb(0x1df)]&&this['buildDrawingFeature'](this['_drawingCoordinates']),this[_0xc229fb(0x216)]['length']===0x0&&(this['_isStayDraw']=![]);}}}[a47_0xbb85b9(0x224)](_0x67e19,_0x49aa36){const _0x524e44=a47_0xbb85b9;var _0x4c45d0,_0x34a520,_0x45ea81,_0x47bc61;if(!this[_0x524e44(0x20a)])return;const _0x480575=this['_tipOverlay'][_0x524e44(0x213)]();_0x480575===null||_0x480575===void 0x0?void 0x0:_0x480575[_0x524e44(0x1dd)](!![]),(_0x4c45d0=this[_0x524e44(0x1fd)])===null||_0x4c45d0===void 0x0?void 0x0:_0x4c45d0[_0x524e44(0x1ea)](new Point(_0x67e19)),(_0x45ea81=(_0x34a520=this[_0x524e44(0x1c5)])===null||_0x34a520===void 0x0?void 0x0:_0x34a520['getText']())===null||_0x45ea81===void 0x0?void 0x0:_0x45ea81['setText'](_0x49aa36),(_0x47bc61=this[_0x524e44(0x1fd)])===null||_0x47bc61===void 0x0?void 0x0:_0x47bc61[_0x524e44(0x225)](this[_0x524e44(0x1c5)]),this[_0x524e44(0x1fd)]&&(_0x480575===null||_0x480575===void 0x0?void 0x0:_0x480575[_0x524e44(0x21b)](this[_0x524e44(0x1fd)]));}}function getDefaultStyleFunction(){const _0x10dab=createEditingStyle();return function(_0x1cfabe,_0x307249){const _0x1ffa52=a47_0x14f5,_0x261d27=_0x10dab[_0x1cfabe[_0x1ffa52(0x221)]()['getType']()];if(_0x261d27&&'Rectangle'==_0x1cfabe[_0x1ffa52(0x221)]()[_0x1ffa52(0x1e9)]()){}};}
|
|
1
|
+
const a47_0x2cfb12=a47_0x1ed1;(function(_0x28510e,_0x532191){const _0x52b951=a47_0x1ed1,_0xfde828=_0x28510e();while(!![]){try{const _0x2281a9=parseInt(_0x52b951(0x201))/0x1+parseInt(_0x52b951(0x1fd))/0x2+parseInt(_0x52b951(0x1de))/0x3*(parseInt(_0x52b951(0x1d0))/0x4)+parseInt(_0x52b951(0x1f4))/0x5+parseInt(_0x52b951(0x1fb))/0x6*(parseInt(_0x52b951(0x1df))/0x7)+parseInt(_0x52b951(0x1f9))/0x8*(-parseInt(_0x52b951(0x208))/0x9)+-parseInt(_0x52b951(0x1e4))/0xa*(parseInt(_0x52b951(0x214))/0xb);if(_0x2281a9===_0x532191)break;else _0xfde828['push'](_0xfde828['shift']());}catch(_0x1c5c56){_0xfde828['push'](_0xfde828['shift']());}}}(a47_0x4482,0x73b0d));import a47_0x28554a from'ol/events/Event';import a47_0x438db5 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a47_0x1b9494 from'ol/Feature';import a47_0x3e4c86,{createEditingStyle}from'ol/style/Style';import a47_0x373ad1 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x51a380 from'ol/style/Text';import a47_0x28ee5c from'ol/style/Fill';import a47_0x27ede0 from'ol/interaction/Property';import a47_0x4af810 from'ol/layer/Vector';function a47_0x4482(){const _0x933fb8=['Rectangle','_sketchFeature','projection','pop','finishDrawing','Ellipsoid','setStyle','590788fDdyZg','_tipStyle','单击增加点,右击删除点双击完成绘制','Ellipse','wrapX','getProjection','push','drawMoving','getMap','type','style','handleUpEvent','snapTolerance','drawEnd','buildDrawingFeature','onceInternal','setMap','_drawingCoordinates','pointermove','getCode','getPixelFromCoordinate','abortDrawing_','MAX_VALUE','DRAWMOVING','originalEvent','rgba(0,\x200,\x200,\x200.4)','drawStart','source','_type','_tipOverlay','stopDown','DRAWABORT','handleMoveEvent','_style','_minPoints','setGeometry','rgba(255,\x20255,\x20255,\x201)','Circle','单击拖动绘制','addPoint','_fixPoint','1028452cMKRCZ','atFinish_','getView','_tipFeature','updateSketchFeatures_','getActive','_isStayDraw','coordinates','revert','sqrt','DRAWEND','单击开始绘制','tipText','coordinate','3bQjXzw','1071833FgpJIh','once','getType','length','preventDefault','260vyyXFG','dispatchEvent','slice','addFeature','_features','clear','showTip','单击增加点,右击删除点','handleDragEvent','feature','updateState_','setText','getSource','updateTip_','_showTip','_source','1418950HHsViF','fixPoint','DRAWSTART','_snapTolerance','indexOf','8DHeJrl','_overlay','36xFSwlc','单击结束绘制,右击删除点','1273402frfYoM','startDrawing_','DRAWADDPOINT','button','205660KgvLPb','onInternal','features','point','getOverlay','minPoint','getGeometry','3885309XlgUQn','createMultiPointFeature','abortDrawing','rectangle','ACTIVE'];a47_0x4482=function(){return _0x933fb8;};return a47_0x4482();}import a47_0x17b3cc from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x2cfb12(0x1c1),'DRAWEND':a47_0x2cfb12(0x221),'DRAWABORT':'drawAbort','DRAWADDPOINT':'drawAddPoint','DRAWMOVING':a47_0x2cfb12(0x21b)};export class DrawEvent extends a47_0x28554a{constructor(_0x5187b8,_0x28618f,_0x2a2c49){const _0x4debcc=a47_0x2cfb12;super(_0x5187b8),this[_0x4debcc(0x1ed)]=_0x28618f,this[_0x4debcc(0x1d7)]=_0x2a2c49;}}function a47_0x1ed1(_0x30b5a2,_0x388801){const _0x44828d=a47_0x4482();return a47_0x1ed1=function(_0x1ed16f,_0x30a7c1){_0x1ed16f=_0x1ed16f-0x1b6;let _0x86412b=_0x44828d[_0x1ed16f];return _0x86412b;},a47_0x1ed1(_0x30b5a2,_0x388801);}export class ShEvent extends a47_0x28554a{constructor(_0x19a3d9,_0x2366cc,_0x5e5018,_0x2a9669,_0x404152){const _0x4a8c3f=a47_0x2cfb12;super(_0x19a3d9),this[_0x4a8c3f(0x20f)]=_0x404152,this[_0x4a8c3f(0x21d)]=_0x2366cc,this[_0x4a8c3f(0x1dd)]=_0x5e5018,this[_0x4a8c3f(0x1d7)]=_0x2a9669;}}export default class Draw extends a47_0x438db5{constructor(_0x34809e,_0x1d08c3){const _0x588a4a=a47_0x2cfb12,_0x3b8278=_0x1d08c3?_0x1d08c3:{};!_0x3b8278['stopDown']&&(_0x3b8278[_0x588a4a(0x1c5)]=![]);super(_0x1d08c3),this['on']=this[_0x588a4a(0x202)],this[_0x588a4a(0x1e0)]=this[_0x588a4a(0x1b6)],this['un']=this['unInternal'],this['_isStayDraw']=![],this[_0x588a4a(0x1c3)]=_0x34809e,this[_0x588a4a(0x1c8)]=_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x21e)],this[_0x588a4a(0x1f3)]=_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x1c2)],this[_0x588a4a(0x1e8)]=_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x203)];const _0x289d66=getPlotCount(this[_0x588a4a(0x1c3)]);this[_0x588a4a(0x1c9)]=_0x289d66[_0x588a4a(0x206)],this[_0x588a4a(0x1cf)]=_0x289d66[_0x588a4a(0x1f5)],this['tipText']=_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x1dc)],this[_0x588a4a(0x1f2)]=(_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x1ea)])==![]?![]:!![],this[_0x588a4a(0x1f7)]=_0x3b8278['snapTolerance']?_0x3b8278[_0x588a4a(0x220)]:0x6,this[_0x588a4a(0x1d3)]=new a47_0x1b9494(),this[_0x588a4a(0x215)]=new a47_0x3e4c86({'text':new a47_0x51a380({'font':'12px\x20Calibre,sans-serif','fill':new a47_0x28ee5c({'color':_0x588a4a(0x1cb)}),'backgroundFill':new a47_0x28ee5c({'color':_0x588a4a(0x1c0)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this[_0x588a4a(0x1b8)]=[],this['_tipOverlay']=new a47_0x4af810({'source':new a47_0x373ad1({'useSpatialIndex':![],'wrapX':(_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3['wrapX'])?_0x1d08c3[_0x588a4a(0x218)]:![]})}),this[_0x588a4a(0x1fa)]=new a47_0x4af810({'source':new a47_0x373ad1({'useSpatialIndex':![],'wrapX':(_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3['wrapX'])?_0x1d08c3[_0x588a4a(0x218)]:![]}),'updateWhileInteracting':!![]}),this['addChangeListener'](a47_0x27ede0[_0x588a4a(0x20c)],this[_0x588a4a(0x1ee)]);}['updateState_'](){const _0xec4fdd=a47_0x2cfb12,_0x8bbff5=this[_0xec4fdd(0x21c)](),_0x960f3a=this[_0xec4fdd(0x1d5)]();(!_0x8bbff5||!_0x960f3a)&&this[_0xec4fdd(0x20a)](),this[_0xec4fdd(0x1fa)][_0xec4fdd(0x1b7)](_0x960f3a?_0x8bbff5:null),this[_0xec4fdd(0x1c4)][_0xec4fdd(0x1b7)](_0x960f3a?_0x8bbff5:null);}[a47_0x2cfb12(0x1b7)](_0x98f002){super['setMap'](_0x98f002),this['updateState_']();}[a47_0x2cfb12(0x213)](_0x97c492){const _0x51acb9=a47_0x2cfb12;this[_0x51acb9(0x1c8)]=_0x97c492?_0x97c492:{};}[a47_0x2cfb12(0x205)](){return this['_overlay'];}['handleDownEvent'](_0x5da0dc){const _0x57d5dd=a47_0x2cfb12;if(_0x5da0dc[_0x57d5dd(0x1bf)][_0x57d5dd(0x200)]===0x2)return _0x5da0dc[_0x57d5dd(0x1bf)][_0x57d5dd(0x1e3)](),this[_0x57d5dd(0x1d8)](),this[_0x57d5dd(0x1c7)](_0x5da0dc),![];return!![];}[a47_0x2cfb12(0x21f)](_0x1297b9){const _0x2f018d=a47_0x2cfb12;var _0x4e8f9d,_0x33b95a;if(this[_0x2f018d(0x1c3)]==_0x2f018d(0x20b)&&this['_drawingCoordinates'][_0x2f018d(0x1e2)]<0x1)return this[_0x2f018d(0x1e5)](new DrawEvent(DrawEventType[_0x2f018d(0x1da)],undefined,[_0x1297b9[_0x2f018d(0x1dd)]])),![];if(!this[_0x2f018d(0x1d6)])this[_0x2f018d(0x1fe)](_0x1297b9[_0x2f018d(0x1dd)]),this[_0x2f018d(0x1e5)](new ShEvent(DrawEventType[_0x2f018d(0x1ff)],this[_0x2f018d(0x1c3)],_0x1297b9['coordinate'],this['_drawingCoordinates'],(_0x4e8f9d=this[_0x2f018d(0x21c)]())===null||_0x4e8f9d===void 0x0?void 0x0:_0x4e8f9d['getView']()[_0x2f018d(0x219)]()[_0x2f018d(0x1ba)]())),this['_type']==_0x2f018d(0x204)&&this['finishDrawing']();else{if(this[_0x2f018d(0x1b8)]&&this[_0x2f018d(0x1b8)]['length']>0x0){if(this['atFinish_'](_0x1297b9['pixel']))return this[_0x2f018d(0x211)](),_0x1297b9[_0x2f018d(0x1e3)](),![];let _0x578fce=this[_0x2f018d(0x1b8)][_0x2f018d(0x1e2)]+0x1;_0x578fce<=this[_0x2f018d(0x1cf)]&&this[_0x2f018d(0x1ce)](_0x1297b9['coordinate']),this[_0x2f018d(0x1e5)](new ShEvent(DrawEventType[_0x2f018d(0x1ff)],this[_0x2f018d(0x1c3)],_0x1297b9[_0x2f018d(0x1dd)],this[_0x2f018d(0x1b8)],(_0x33b95a=this['getMap']())===null||_0x33b95a===void 0x0?void 0x0:_0x33b95a[_0x2f018d(0x1d2)]()['getProjection']()[_0x2f018d(0x1ba)]())),_0x578fce>=this[_0x2f018d(0x1c9)]&&this[_0x2f018d(0x222)](this[_0x2f018d(0x1b8)]),_0x578fce===this['_fixPoint']&&this[_0x2f018d(0x211)]();}}return _0x1297b9['preventDefault'](),![];}[a47_0x2cfb12(0x1ec)](_0x3a4bad){const _0x149a98=a47_0x2cfb12;var _0x1322b9;if(this[_0x149a98(0x1c3)]=='rectangle'&&_0x3a4bad[_0x149a98(0x1bf)][_0x149a98(0x21d)]=='pointermove'){if(!this[_0x149a98(0x1d6)]){this[_0x149a98(0x1fe)](_0x3a4bad[_0x149a98(0x1dd)]),this[_0x149a98(0x1e5)](new ShEvent(DrawEventType[_0x149a98(0x1ff)],this[_0x149a98(0x1c3)],_0x3a4bad[_0x149a98(0x1dd)],this[_0x149a98(0x1b8)],(_0x1322b9=this[_0x149a98(0x21c)]())===null||_0x1322b9===void 0x0?void 0x0:_0x1322b9[_0x149a98(0x1d2)]()[_0x149a98(0x219)]()[_0x149a98(0x1ba)]()));return;}let _0x22e4a1=[...this[_0x149a98(0x1b8)],_0x3a4bad['coordinate']];this['buildDrawingFeature'](_0x22e4a1),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x149a98(0x1be)],this[_0x149a98(0x20e)],this['_drawingCoordinates']));}}[a47_0x2cfb12(0x1c7)](_0xb7c8bd){const _0x3b5902=a47_0x2cfb12;var _0x13f3b5,_0x5bc225,_0xb381d4;let _0x342702='';this[_0x3b5902(0x1c3)]==_0x3b5902(0x1b9)&&(this['startDrawing_'](_0xb7c8bd['coordinate']),this['dispatchEvent'](new ShEvent(DrawEventType[_0x3b5902(0x1ff)],this[_0x3b5902(0x1c3)],_0xb7c8bd[_0x3b5902(0x1dd)],this['_drawingCoordinates'],(_0x13f3b5=this['getMap']())===null||_0x13f3b5===void 0x0?void 0x0:_0x13f3b5['getView']()[_0x3b5902(0x219)]()[_0x3b5902(0x1ba)]())),this[_0x3b5902(0x211)]());!this[_0x3b5902(0x1d6)]?_0x342702=this[_0x3b5902(0x1c3)]==_0x3b5902(0x20b)?_0x3b5902(0x1cd):_0x3b5902(0x1db):(_0x342702=_0x3b5902(0x1eb),((_0x5bc225=this[_0x3b5902(0x1b8)])===null||_0x5bc225===void 0x0?void 0x0:_0x5bc225[_0x3b5902(0x1e2)])===this[_0x3b5902(0x1cf)]-0x1&&(_0x342702=_0x3b5902(0x1fc)),((_0xb381d4=this[_0x3b5902(0x1b8)])===null||_0xb381d4===void 0x0?void 0x0:_0xb381d4[_0x3b5902(0x1e2)])>=this[_0x3b5902(0x1c9)]&&this[_0x3b5902(0x1cf)]===Number[_0x3b5902(0x1bd)]&&(_0x342702=_0x3b5902(0x216)));this['tipText']!=undefined&&(_0x342702=this[_0x3b5902(0x1dc)]);this[_0x3b5902(0x1f1)](_0xb7c8bd[_0x3b5902(0x1dd)],_0x342702);if(this[_0x3b5902(0x1d6)]&&this['_type']!=_0x3b5902(0x20b)){let _0x11ee63=[...this['_drawingCoordinates'],_0xb7c8bd[_0x3b5902(0x1dd)]];this[_0x3b5902(0x222)](_0x11ee63);}this[_0x3b5902(0x1e5)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x3b5902(0x20e)],this[_0x3b5902(0x1b8)]));}[a47_0x2cfb12(0x1d1)](_0x1db815){const _0x159e13=a47_0x2cfb12;var _0x5cd4a1;let _0x31a94c=![],_0x4fb0bd=this[_0x159e13(0x1b8)][_0x159e13(0x1e2)];if(_0x4fb0bd>this['_minPoints']&&this[_0x159e13(0x1cf)]===Number[_0x159e13(0x1bd)]){const _0x3fd553=this['_drawingCoordinates'][this[_0x159e13(0x1b8)][_0x159e13(0x1e2)]-0x1],_0x492674=(_0x5cd4a1=this[_0x159e13(0x21c)]())===null||_0x5cd4a1===void 0x0?void 0x0:_0x5cd4a1[_0x159e13(0x1bb)](_0x3fd553),_0x5efaf1=_0x1db815[0x0]-(_0x492674?_0x492674[0x0]:0x0),_0x184e86=_0x1db815[0x1]-(_0x492674?_0x492674[0x1]:0x0);_0x31a94c=Math[_0x159e13(0x1d9)](_0x5efaf1*_0x5efaf1+_0x184e86*_0x184e86)<=this[_0x159e13(0x1f7)];}return _0x31a94c;}[a47_0x2cfb12(0x1fe)](_0x5a6e45){const _0x497bb5=a47_0x2cfb12;this[_0x497bb5(0x1d6)]=!![],this[_0x497bb5(0x1b8)]=[_0x5a6e45[_0x497bb5(0x1e6)]()],this[_0x497bb5(0x20e)]=this[_0x497bb5(0x209)](),this[_0x497bb5(0x1d4)](),this[_0x497bb5(0x1e5)](new DrawEvent(DrawEventType[_0x497bb5(0x1f6)],this[_0x497bb5(0x20e)],this['_drawingCoordinates']));}[a47_0x2cfb12(0x211)](){const _0x43879f=a47_0x2cfb12;if(this[_0x43879f(0x1b8)][_0x43879f(0x1e2)]>this[_0x43879f(0x1c9)]){this['buildDrawingFeature'](this[_0x43879f(0x1b8)]);let _0x5e0468=this[_0x43879f(0x1b8)];const _0xc69d49=this['abortDrawing_']();if(!_0xc69d49)return;this[_0x43879f(0x1e5)](new DrawEvent(DrawEventType[_0x43879f(0x1da)],_0xc69d49,_0x5e0468)),this[_0x43879f(0x1e8)]&&this[_0x43879f(0x1e8)][_0x43879f(0x21a)](_0xc69d49),this[_0x43879f(0x1f3)]&&this[_0x43879f(0x1f3)][_0x43879f(0x1e7)](_0xc69d49);}}[a47_0x2cfb12(0x1ce)](_0xd428d7){const _0x4e2314=a47_0x2cfb12;this['_drawingCoordinates'][_0x4e2314(0x21a)](_0xd428d7),this[_0x4e2314(0x20e)]=this[_0x4e2314(0x209)](),this['updateSketchFeatures_']();}[a47_0x2cfb12(0x209)](){const _0x4975ee=a47_0x2cfb12,_0x31fc19=new MultiPoint(this[_0x4975ee(0x1b8)]);let _0x4ea2de=new a47_0x1b9494();return _0x4ea2de[_0x4975ee(0x1ca)](_0x31fc19),_0x4ea2de;}[a47_0x2cfb12(0x1bc)](){const _0x5078be=a47_0x2cfb12;var _0x467ace,_0x4777e7;this['_isStayDraw']=![];const _0x3fab04=this[_0x5078be(0x20e)];return this['_sketchFeature']=undefined,this[_0x5078be(0x1b8)]=[],(_0x467ace=this['_overlay']['getSource']())===null||_0x467ace===void 0x0?void 0x0:_0x467ace[_0x5078be(0x1e9)](!![]),(_0x4777e7=this[_0x5078be(0x1c4)][_0x5078be(0x1f0)]())===null||_0x4777e7===void 0x0?void 0x0:_0x4777e7['clear'](!![]),_0x3fab04;}[a47_0x2cfb12(0x20a)](){const _0x468c6a=a47_0x2cfb12,_0x1a4691=this['abortDrawing_']();_0x1a4691&&this['dispatchEvent'](new DrawEvent(DrawEventType[_0x468c6a(0x1c6)],_0x1a4691,this['_drawingCoordinates']));}[a47_0x2cfb12(0x222)](_0x162c83){const _0x397bb3=a47_0x2cfb12;this['_sketchFeature']=new a47_0x1b9494();let _0x2d89f2=createPlot(this[_0x397bb3(0x1c3)],_0x162c83);if(!_0x2d89f2)return;this['_sketchFeature'][_0x397bb3(0x1ca)](_0x2d89f2);let _0x128d78=[a47_0x17b3cc[_0x397bb3(0x1cc)],a47_0x17b3cc[_0x397bb3(0x212)],a47_0x17b3cc[_0x397bb3(0x217)]];if(_0x128d78[_0x397bb3(0x1f8)](this[_0x397bb3(0x1c3)])>-0x1&&this[_0x397bb3(0x1c8)]){}const _0x2fadbc=this[_0x397bb3(0x21c)]();this[_0x397bb3(0x20e)][_0x397bb3(0x213)](getStyle(this[_0x397bb3(0x1c3)],this[_0x397bb3(0x1c8)],this[_0x397bb3(0x21c)]())),this['updateSketchFeatures_']();}[a47_0x2cfb12(0x1d4)](){const _0x5716cb=a47_0x2cfb12,_0x1d63fa=this[_0x5716cb(0x1fa)][_0x5716cb(0x1f0)]();_0x1d63fa&&this[_0x5716cb(0x20e)]&&(_0x1d63fa['clear'](!![]),_0x1d63fa[_0x5716cb(0x1e7)](this[_0x5716cb(0x20e)]));}[a47_0x2cfb12(0x1d8)](){const _0x4d3064=a47_0x2cfb12;if(this[_0x4d3064(0x1d6)]){if(this[_0x4d3064(0x1b8)]&&this[_0x4d3064(0x1b8)][_0x4d3064(0x1e2)]>0x0){const _0x332d2a=this[_0x4d3064(0x1fa)]['getSource']();_0x332d2a===null||_0x332d2a===void 0x0?void 0x0:_0x332d2a[_0x4d3064(0x1e9)](!![]),this['_drawingCoordinates'][_0x4d3064(0x210)](),this[_0x4d3064(0x1b8)][_0x4d3064(0x1e2)]>=this[_0x4d3064(0x1c9)]&&this[_0x4d3064(0x222)](this['_drawingCoordinates']),this[_0x4d3064(0x1b8)][_0x4d3064(0x1e2)]===0x0&&(this[_0x4d3064(0x1d6)]=![]);}}}[a47_0x2cfb12(0x1f1)](_0x6e2620,_0x912c93){const _0x196933=a47_0x2cfb12;var _0x37de39,_0x2a31d3,_0x56d496,_0x48864b;if(!this['_showTip'])return;const _0x4f8c7c=this['_tipOverlay'][_0x196933(0x1f0)]();_0x4f8c7c===null||_0x4f8c7c===void 0x0?void 0x0:_0x4f8c7c['clear'](!![]),(_0x37de39=this[_0x196933(0x1d3)])===null||_0x37de39===void 0x0?void 0x0:_0x37de39[_0x196933(0x1ca)](new Point(_0x6e2620)),(_0x56d496=(_0x2a31d3=this[_0x196933(0x215)])===null||_0x2a31d3===void 0x0?void 0x0:_0x2a31d3['getText']())===null||_0x56d496===void 0x0?void 0x0:_0x56d496[_0x196933(0x1ef)](_0x912c93),(_0x48864b=this[_0x196933(0x1d3)])===null||_0x48864b===void 0x0?void 0x0:_0x48864b[_0x196933(0x213)](this['_tipStyle']),this[_0x196933(0x1d3)]&&(_0x4f8c7c===null||_0x4f8c7c===void 0x0?void 0x0:_0x4f8c7c[_0x196933(0x1e7)](this[_0x196933(0x1d3)]));}}function getDefaultStyleFunction(){const _0x50643f=createEditingStyle();return function(_0x46687a,_0x4e1a41){const _0x27a81d=a47_0x1ed1,_0x5116eb=_0x50643f[_0x46687a[_0x27a81d(0x207)]()[_0x27a81d(0x1e1)]()];if(_0x5116eb&&_0x27a81d(0x20d)==_0x46687a[_0x27a81d(0x207)]()[_0x27a81d(0x1e1)]()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a48_0x4ce6(_0x4928f9,_0x534e01){const _0xe9d3d=a48_0xe9d3();return a48_0x4ce6=function(_0x4ce60f,_0x229d28){_0x4ce60f=_0x4ce60f-0x125;let _0x289bde=_0xe9d3d[_0x4ce60f];return _0x289bde;},a48_0x4ce6(_0x4928f9,_0x534e01);}const a48_0x3d3e4a=a48_0x4ce6;function a48_0xe9d3(){const _0xb73c57=['has','name','removeInteraction','get','addInteraction','clear','map','641376yWfJmK','3330840kEtidg','863608hczEhv','1679478IEAolF','1193436PDoNDG','249017qTmeRw','7dCRIfx','interactions','3007095pTuLNV','removeAllInteractions','40kgBggP','delete','6pQEsjy','set'];a48_0xe9d3=function(){return _0xb73c57;};return a48_0xe9d3();}(function(_0x55aeb4,_0x3a4027){const _0x1d6b92=a48_0x4ce6,_0x56d0dc=_0x55aeb4();while(!![]){try{const _0x22b5d5=-parseInt(_0x1d6b92(0x12f))/0x1*(-parseInt(_0x1d6b92(0x136))/0x2)+parseInt(_0x1d6b92(0x12d))/0x3+-parseInt(_0x1d6b92(0x12b))/0x4+parseInt(_0x1d6b92(0x132))/0x5+parseInt(_0x1d6b92(0x12a))/0x6+parseInt(_0x1d6b92(0x130))/0x7*(-parseInt(_0x1d6b92(0x12c))/0x8)+parseInt(_0x1d6b92(0x12e))/0x9*(-parseInt(_0x1d6b92(0x134))/0xa);if(_0x22b5d5===_0x3a4027)break;else _0x56d0dc['push'](_0x56d0dc['shift']());}catch(_0x5bb819){_0x56d0dc['push'](_0x56d0dc['shift']());}}}(a48_0xe9d3,0x84d73));export default class InteractionManager{constructor(_0xd1ea5c){const _0x4ec868=a48_0x4ce6;this[_0x4ec868(0x129)]=_0xd1ea5c,this[_0x4ec868(0x131)]=new Map();}[a48_0x3d3e4a(0x127)](_0x33b7c5,_0x32f6fe){const _0x51bc3a=a48_0x3d3e4a;this[_0x51bc3a(0x131)][_0x51bc3a(0x138)](_0x33b7c5)&&this['removeInteraction'](_0x33b7c5),_0x32f6fe[_0x51bc3a(0x137)](_0x51bc3a(0x139),_0x33b7c5),this[_0x51bc3a(0x131)][_0x51bc3a(0x137)](_0x33b7c5,_0x32f6fe),this[_0x51bc3a(0x129)]['addInteraction'](_0x32f6fe);}[a48_0x3d3e4a(0x125)](_0x35d9ba){const _0x22acf5=a48_0x3d3e4a,_0x41f3d7=this[_0x22acf5(0x131)][_0x22acf5(0x126)](_0x35d9ba);_0x41f3d7&&(this[_0x22acf5(0x129)][_0x22acf5(0x125)](_0x41f3d7),this[_0x22acf5(0x131)][_0x22acf5(0x135)](_0x35d9ba));}[a48_0x3d3e4a(0x133)](){const _0x28b166=a48_0x3d3e4a;this[_0x28b166(0x131)]['forEach'](_0x33ab13=>{const _0x3fce22=_0x28b166;this[_0x3fce22(0x129)][_0x3fce22(0x125)](_0x33ab13);}),this[_0x28b166(0x131)][_0x28b166(0x128)]();}['getInteraction'](_0x31d832){const _0x54eb98=a48_0x3d3e4a;return this['interactions'][_0x54eb98(0x126)](_0x31d832);}}
|
package/interaction/Modify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a49_0x29e26c=a49_0x26a0;(function(_0x5cf41f,_0x70f8d6){var _0x362c3b=a49_0x26a0,_0x51c498=_0x5cf41f();while(!![]){try{var _0x31fd61=-parseInt(_0x362c3b(0x189))/0x1+parseInt(_0x362c3b(0x190))/0x2*(-parseInt(_0x362c3b(0x19a))/0x3)+-parseInt(_0x362c3b(0x183))/0x4*(-parseInt(_0x362c3b(0x19b))/0x5)+-parseInt(_0x362c3b(0x196))/0x6+parseInt(_0x362c3b(0x199))/0x7+-parseInt(_0x362c3b(0x18d))/0x8+parseInt(_0x362c3b(0x180))/0x9*(parseInt(_0x362c3b(0x185))/0xa);if(_0x31fd61===_0x70f8d6)break;else _0x51c498['push'](_0x51c498['shift']());}catch(_0x59058a){_0x51c498['push'](_0x51c498['shift']());}}}(a49_0x4562,0x1b24d));import{Modify as a49_0x4036a,Select,Translate as a49_0x1a9879}from'ol/interaction';import a49_0x7be173 from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';function a49_0x26a0(_0x1fbb61,_0x2849bc){var _0x456267=a49_0x4562();return a49_0x26a0=function(_0x26a0f2,_0xc820fc){_0x26a0f2=_0x26a0f2-0x17a;var _0x57b855=_0x456267[_0x26a0f2];return _0x57b855;},a49_0x26a0(_0x1fbb61,_0x2849bc);}import{platformModifierKeyOnly}from'ol/events/condition';import{Style,Circle,Fill,Stroke}from'ol/style';const selectModifyStyle=new Style({'image':new Circle({'radius':0x5,'fill':new Fill({'color':a49_0x29e26c(0x187)}),'stroke':new Stroke({'color':a49_0x29e26c(0x195),'width':0x2})}),'stroke':new Stroke({'color':'rgba(0,255,255,0.6)','width':0x2}),'fill':new Fill({'color':'rgba(0,255,255,0.2)'}),'geometry':_0x52a00f=>{var _0x535c53=a49_0x29e26c,_0x72c1a1,_0x443fc0,_0x3c4797,_0x4d95f3,_0x321c73;let _0x2e0df9=[];if(((_0x72c1a1=_0x52a00f[_0x535c53(0x186)]())===null||_0x72c1a1===void 0x0?void 0x0:_0x72c1a1[_0x535c53(0x17c)]())===_0x535c53(0x194))(_0x443fc0=_0x52a00f[_0x535c53(0x186)]())===null||_0x443fc0===void 0x0?void 0x0:_0x443fc0[_0x535c53(0x198)]()[0x0]['forEach'](_0x3f3a02=>{var _0xaa321d=_0x535c53;_0x2e0df9[_0xaa321d(0x17b)](_0x3f3a02);});else{if(((_0x3c4797=_0x52a00f[_0x535c53(0x186)]())===null||_0x3c4797===void 0x0?void 0x0:_0x3c4797[_0x535c53(0x17c)]())===_0x535c53(0x18f))_0x52a00f[_0x535c53(0x186)]()['getCoordinates']()[0x0][_0x535c53(0x19d)](_0x29e77a=>{var _0x4cdf0b=_0x535c53;_0x29e77a['forEach'](_0x3508f4=>{var _0x498e47=a49_0x26a0;_0x2e0df9[_0x498e47(0x17b)](_0x3508f4);}),_0x2e0df9[_0x4cdf0b(0x17b)](_0x29e77a);});else((_0x4d95f3=_0x52a00f[_0x535c53(0x186)]())===null||_0x4d95f3===void 0x0?void 0x0:_0x4d95f3[_0x535c53(0x17c)]())===_0x535c53(0x193)?_0x2e0df9=_0x52a00f['getGeometry']()[_0x535c53(0x198)]():_0x2e0df9=[(_0x321c73=_0x52a00f['getGeometry']())===null||_0x321c73===void 0x0?void 0x0:_0x321c73['getCoordinates']()];}return new a49_0x7be173([_0x52a00f[_0x535c53(0x186)](),new MultiPoint(_0x2e0df9)]);}});function a49_0x4562(){var _0x25faa2=['map','push','getType','some','isSelected','translate','9JvjqmK','filter','modifyInteraction','1376tQqJyF','assign','6356920iezYOK','getGeometry','rgba(25,25,125,0.8)','getMap','112712GgpPIC','addInteraction','length','setMap','1503808CFJInk','removeInteraction','MultiPolygon','2XIWsdo','getFeatures','refresh','LineString','Polygon','rgba(255,255,255,0.6)','730560oVKrkw','remove','getCoordinates','150416YoRThP','633813JgzCnY','1275hbBTrA','getId','forEach'];a49_0x4562=function(){return _0x25faa2;};return a49_0x4562();}export default class Modify extends Select{constructor(_0x1a385d){var _0x3f8839=a49_0x29e26c;_0x1a385d=_0x1a385d||{};const _0xbd4d1d=Object[_0x3f8839(0x184)]({},_0x1a385d);_0xbd4d1d['style']=selectModifyStyle,_0xbd4d1d[_0x3f8839(0x181)]=_0x1866eb=>{var _0x4f8c46=_0x3f8839;if(!_0x1866eb[_0x4f8c46(0x17e)])return![];if(this['sourceFeatures']==undefined||this['sourceFeatures'][_0x4f8c46(0x18b)]==0x0)return![];return this['sourceFeatures'][_0x4f8c46(0x17d)](_0x43e8fc=>_0x43e8fc[_0x4f8c46(0x19c)]()===_0x1866eb[_0x4f8c46(0x19c)]());},super(_0xbd4d1d),this['map']=null,this['sourceFeatures']=_0x1a385d['editFeatures'],this[_0x3f8839(0x182)]=new a49_0x4036a({'features':this[_0x3f8839(0x191)]()}),this['translate']=new a49_0x1a9879({'features':this[_0x3f8839(0x191)](),'condition':platformModifierKeyOnly}),this[_0x3f8839(0x191)]()['on']('add',_0x8a9f00=>{var _0x444fc7=_0x3f8839,_0x5eba0c,_0x14106b;this[_0x444fc7(0x17a)]=this[_0x444fc7(0x188)](),(_0x5eba0c=this['getMap']())===null||_0x5eba0c===void 0x0?void 0x0:_0x5eba0c[_0x444fc7(0x18a)](this[_0x444fc7(0x182)]),(_0x14106b=this[_0x444fc7(0x188)]())===null||_0x14106b===void 0x0?void 0x0:_0x14106b['addInteraction'](this['translate']);}),this[_0x3f8839(0x191)]()['on'](_0x3f8839(0x197),_0x47807c=>{var _0x3d4576=_0x3f8839,_0x15ad7e,_0x469dac;(_0x15ad7e=this[_0x3d4576(0x188)]())===null||_0x15ad7e===void 0x0?void 0x0:_0x15ad7e['removeInteraction'](this[_0x3d4576(0x182)]),(_0x469dac=this[_0x3d4576(0x188)]())===null||_0x469dac===void 0x0?void 0x0:_0x469dac[_0x3d4576(0x18e)](this[_0x3d4576(0x17f)]),this[_0x3d4576(0x188)]()[_0x3d4576(0x192)]();});}['setMap'](_0x4fc2c8){var _0x50f4b5=a49_0x29e26c;super[_0x50f4b5(0x18c)](_0x4fc2c8),!_0x4fc2c8&&this[_0x50f4b5(0x17a)]&&(this['map']['removeInteraction'](this[_0x50f4b5(0x182)]),this[_0x50f4b5(0x17a)][_0x50f4b5(0x18e)](this[_0x50f4b5(0x17f)]));}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x1dda2c=a50_0x524f;(function(_0x115b7f,_0x7d9ff0){const _0x294cc6=a50_0x524f,_0x588c3b=_0x115b7f();while(!![]){try{const _0x4b13ae=parseInt(_0x294cc6(0xd4))/0x1+-parseInt(_0x294cc6(0xf6))/0x2*(parseInt(_0x294cc6(0xe3))/0x3)+parseInt(_0x294cc6(0x114))/0x4+parseInt(_0x294cc6(0x106))/0x5*(parseInt(_0x294cc6(0xf2))/0x6)+parseInt(_0x294cc6(0x107))/0x7+parseInt(_0x294cc6(0x109))/0x8+-parseInt(_0x294cc6(0x10e))/0x9;if(_0x4b13ae===_0x7d9ff0)break;else _0x588c3b['push'](_0x588c3b['shift']());}catch(_0x1e1c24){_0x588c3b['push'](_0x588c3b['shift']());}}}(a50_0x21a8,0xc441a));import a50_0x43335e from'./Draw';import a50_0x2353e2 from'ol/events/Event';function a50_0x21a8(){const _0x1596fc=['getType','602755tMpQgp','8491623sLelFB','selectedPointFeatures','5459808dOpxPL','Point','MultiPolygon','getMap','selectLayer','17651196DKIUbg','holdCtrl','map','pixelDistance','onInternal','MultiLineString','6084456GXqohU','import','selectedPolygonFeatures','seletctEditeFeature','keydown','cancePointStyle','pointFeatures','pointStyle','allFeatures','getSource','selectedLineFeatures','currentLayers','layerType','draw','allSelectedFeatures','getLineTempLayer','selectLayers','getResolution','selectIndex','59018nBHmtp','addTempLayer','length','url','lineStyle','selectGeom','SELECTED','SELECTSTART','layerInfo','Polygon','getArray','setSelectLayers','coordinates','includes','push','12372xWnBRa','LineString','addEventListener','getLayers','setStyle','dispatchEvent','selected','addFeatures','getPolygonTempLayer','getLayerById','forEach','union','canceLineStyle','polygonStyle','cut','18tqWDXM','getProjection','getGeometry','ctrlKey','520NWBWPc','message','cancePolygonStyle','未获取到几何','lineFeatures','getView','getVisible','getSelectedFeatures','fromType','keyup','polygonFeatures','error','selectStart','feature','selectTempLayer'];a50_0x21a8=function(){return _0x1596fc;};return a50_0x21a8();}import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x13e76d from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';function a50_0x524f(_0x15c4a6,_0x21a58e){const _0x21a8e5=a50_0x21a8();return a50_0x524f=function(_0x524ff9,_0x10be8d){_0x524ff9=_0x524ff9-0xc4;let _0x37d2be=_0x21a8e5[_0x524ff9];return _0x37d2be;},a50_0x524f(_0x15c4a6,_0x21a58e);}const SelectEventType={'SELECTSTART':a50_0x1dda2c(0x102),'SELECTED':a50_0x1dda2c(0xe9)};export class SelectEvent extends a50_0x2353e2{constructor(_0x522f2f,_0x174fbf,_0x28384b,_0x1e7bfe,_0x138b29,_0x5977dd,_0x4d0c29,_0x262b6e,_0x726d96){const _0x5c35cb=a50_0x1dda2c;super(_0x522f2f),this[_0x5c35cb(0xd9)]=_0x28384b,this['coordinates']=_0x1e7bfe,this[_0x5c35cb(0xc7)]=_0x138b29,this[_0x5c35cb(0xfa)]=_0x5977dd,this[_0x5c35cb(0x100)]=_0x4d0c29,this[_0x5c35cb(0xc9)]=_0x262b6e,this[_0x5c35cb(0x101)]=_0x726d96,this[_0x5c35cb(0x10f)]=_0x174fbf;}}export default class Select extends a50_0x43335e{constructor(_0x32ba15,_0x402865){const _0x1a1b9f=a50_0x1dda2c;super(_0x32ba15,{'tipText':_0x402865===null||_0x402865===void 0x0?void 0x0:_0x402865['tipText']}),this['selectedPointFeatures']=[],this[_0x1a1b9f(0xcb)]=[],this[_0x1a1b9f(0x116)]=[],this['allSelectedFeatures']=[];const _0x2847a7=_0x402865||{};this[_0x1a1b9f(0xd5)]=_0x2847a7[_0x1a1b9f(0xd5)]||![],this[_0x1a1b9f(0xcc)]=_0x2847a7[_0x1a1b9f(0xd1)],this[_0x1a1b9f(0x104)]=_0x2847a7[_0x1a1b9f(0x104)]===undefined?!![]:_0x2847a7[_0x1a1b9f(0x104)],this[_0x1a1b9f(0x111)]=_0x2847a7[_0x1a1b9f(0x111)]===undefined?0x5:_0x2847a7['pixelDistance'],this[_0x1a1b9f(0xc8)]=_0x2847a7['pointStyle']?getStyle(_0x2847a7['pointStyle']):getSelectPointStyle(),this[_0x1a1b9f(0xc6)]=_0x2847a7[_0x1a1b9f(0xc6)]?getStyle(_0x2847a7['cancePointStyle']):getSelectCancePointStyle(),this['lineStyle']=_0x2847a7['lineStyle']?getStyle(_0x2847a7[_0x1a1b9f(0xd8)]):getSelectLineStyle(),this['canceLineStyle']=_0x2847a7[_0x1a1b9f(0xef)]?getStyle(_0x2847a7[_0x1a1b9f(0xef)]):getSelectCancelLineStyle(),this[_0x1a1b9f(0xf0)]=_0x2847a7['polygonStyle']?getStyle(_0x2847a7[_0x1a1b9f(0xf0)]):getSelectPolygonStyle(),this[_0x1a1b9f(0xf8)]=_0x2847a7['cancePolygonStyle']?getStyle(_0x2847a7[_0x1a1b9f(0xf8)]):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x57beb5;this['on']=this[_0x1a1b9f(0x112)],this['on']('drawEnd',async _0x15e374=>{const _0x5ec7ed=_0x1a1b9f,_0x1e7fcf=this[_0x5ec7ed(0x10f)],_0x53af32=this[_0x5ec7ed(0x10c)]();if(!_0x53af32)return;try{let _0x26df9d=undefined;if(!_0x15e374[_0x5ec7ed(0x103)]&&_0x15e374['coordinates']&&_0x15e374['coordinates'][_0x5ec7ed(0xd6)]==0x1)_0x26df9d=bufferPixel(new Point(_0x15e374[_0x5ec7ed(0xe0)][0x0]),this[_0x5ec7ed(0x111)],_0x53af32);else _0x15e374[_0x5ec7ed(0x103)]&&(_0x26df9d=_0x15e374[_0x5ec7ed(0x103)][_0x5ec7ed(0xf4)]());if(!_0x26df9d)throw new Error(_0x5ec7ed(0xf9));this['dispatchEvent'](new SelectEvent(SelectEventType[_0x5ec7ed(0xdb)],_0x1e7fcf,_0x26df9d)),this[_0x5ec7ed(0x108)]=[],this[_0x5ec7ed(0xcb)]=[],this['selectedPolygonFeatures']=[],this[_0x5ec7ed(0xcf)]=[],this[_0x5ec7ed(0x104)]&&this[_0x5ec7ed(0xc4)](_0x26df9d),_0x57beb5&&clearTimeout(_0x57beb5),_0x57beb5=setTimeout(async()=>{const _0x1612d1=_0x5ec7ed;await this[_0x1612d1(0x10d)](_0x26df9d),this[_0x1612d1(0xe8)](new SelectEvent(SelectEventType['SELECTED'],_0x1e7fcf,_0x26df9d,_0x15e374[_0x1612d1(0xe0)],this['selectedPointFeatures'],this[_0x1612d1(0xcb)],this[_0x1612d1(0x116)],this[_0x1612d1(0xcf)]));},0x46);}catch(_0x4fa07a){this[_0x5ec7ed(0xe8)](new SelectEvent(SelectEventType[_0x5ec7ed(0xda)],_0x1e7fcf,undefined,_0x15e374[_0x5ec7ed(0xe0)],this[_0x5ec7ed(0x108)],this[_0x5ec7ed(0xcb)],this[_0x5ec7ed(0x116)],this[_0x5ec7ed(0xcf)],_0x4fa07a[_0x5ec7ed(0xf7)]));}}),window[_0x1a1b9f(0xe5)](_0x1a1b9f(0xc5),_0x1ef363=>{const _0x2dbba5=_0x1a1b9f;_0x1ef363[_0x2dbba5(0xf5)]&&(this[_0x2dbba5(0x10f)]=!![]);}),window[_0x1a1b9f(0xe5)](_0x1a1b9f(0xff),_0x338fb6=>{const _0x13ac46=_0x1a1b9f;this[_0x13ac46(0x10f)]=![];});}[a50_0x1dda2c(0xdf)](_0x36c021){const _0x322548=a50_0x1dda2c;this[_0x322548(0xcc)]=_0x36c021;}async[a50_0x1dda2c(0x10d)](_0x3d86d7){const _0x1afec8=a50_0x1dda2c;var _0x503dda;const _0x3fe7d0=this['getMap']();let _0x57a959=[];if(this[_0x1afec8(0xcc)]&&this[_0x1afec8(0xcc)][_0x1afec8(0xd6)]>0x0)_0x57a959=this[_0x1afec8(0xcc)];else{let _0x41bf47=_0x3fe7d0[_0x1afec8(0xe6)]()[_0x1afec8(0xde)]();_0x41bf47=_0x41bf47['filter'](_0x2f11b7=>{const _0x1a3f7a=_0x1afec8,_0x546738=_0x2f11b7[_0x1a3f7a(0xdc)];if(!_0x546738)return![];return _0x2f11b7['getVisible']()==!![]&&_0x546738['selectIndex']!=undefined&&_0x546738['selectIndex']!='';}),_0x57a959=_0x41bf47[_0x1afec8(0x110)](_0x568c5b=>{const _0x4496c0=_0x1afec8;return _0x568c5b[_0x4496c0(0xdc)];});}if(!_0x57a959||_0x57a959[_0x1afec8(0xd6)]==0x0)return;const _0x46a7e7=_0x3fe7d0[_0x1afec8(0xfb)]()[_0x1afec8(0xf3)]()['getCode'](),_0x53d2de=_0x3fe7d0[_0x1afec8(0xfb)]()[_0x1afec8(0xd2)]();for(let _0x51d163=0x0,_0xae179e=_0x57a959[_0x1afec8(0xd6)];_0x51d163<_0xae179e;_0x51d163++){const _0x2cc9a5=_0x57a959[_0x51d163],_0x24b803=_0x3fe7d0[_0x1afec8(0xec)](_0x2cc9a5['id']);if(!_0x24b803||_0x24b803[_0x1afec8(0xfc)]()==![]||!_0x2cc9a5||!_0x2cc9a5['url']||!_0x2cc9a5['selectIndex'])continue;let _0x1bdc3a=await selectFeaturesByGeo(_0x3d86d7,_0x46a7e7,_0x2cc9a5[_0x1afec8(0xd7)],_0x2cc9a5[_0x1afec8(0xd3)],_0x2cc9a5[_0x1afec8(0xcd)],_0x2cc9a5['loadFilter'],_0x53d2de);if(_0x1bdc3a['length']>0x0){this[_0x1afec8(0xcf)][_0x1afec8(0xe2)](..._0x1bdc3a);let _0x4a4e9a=_0x3fe7d0[_0x1afec8(0xeb)](),_0x3743be=this[_0x1afec8(0xf0)];switch((_0x503dda=_0x1bdc3a[0x0]['getGeometry']())===null||_0x503dda===void 0x0?void 0x0:_0x503dda[_0x1afec8(0x105)]()){case _0x1afec8(0x10a):case'MultiPoint':this[_0x1afec8(0x108)]['push'](..._0x1bdc3a),_0x4a4e9a=_0x3fe7d0['getPointTempLayer'](),_0x3743be=this[_0x1afec8(0xc8)];break;case'LineString':case _0x1afec8(0x113):this[_0x1afec8(0xcb)][_0x1afec8(0xe2)](..._0x1bdc3a),_0x4a4e9a=_0x3fe7d0[_0x1afec8(0xd0)](),_0x3743be=this[_0x1afec8(0xd8)];break;case _0x1afec8(0xdd):case _0x1afec8(0x10b):this['selectedPolygonFeatures'][_0x1afec8(0xe2)](..._0x1bdc3a),_0x4a4e9a=_0x3fe7d0[_0x1afec8(0xeb)](),_0x3743be=this['polygonStyle'];break;default:break;}const _0x43301b=_0x4a4e9a[_0x1afec8(0xca)]();_0x43301b&&(_0x1bdc3a[_0x1afec8(0xed)](_0x13ff0b=>{const _0x351881=_0x1afec8;_0x13ff0b['layerId']=_0x2cc9a5['id'],_0x13ff0b['tempLayer']=_0x4a4e9a,_0x13ff0b[_0x351881(0xe7)](_0x3743be);}),this[_0x1afec8(0xd5)]&&_0x43301b[_0x1afec8(0xea)](_0x1bdc3a));}}}[a50_0x1dda2c(0xc4)](_0x5cf34f){const _0x5abf3f=a50_0x1dda2c,_0x1abf18=new a50_0x13e76d(this[_0x5abf3f(0x10c)]()),_0x8d1ec7=_0x1abf18[_0x5abf3f(0xfd)]();if(!_0x8d1ec7||_0x8d1ec7['length']===0x0)return[];const _0x57493b=['copy',_0x5abf3f(0xf1),_0x5abf3f(0xce),_0x5abf3f(0x115),_0x5abf3f(0xee)],_0xd1b8ac=[];for(const _0x235829 of _0x8d1ec7){if(!_0x235829||!_0x235829['fromType']||!_0x57493b[_0x5abf3f(0xe1)](_0x235829[_0x5abf3f(0xfe)]))continue;const _0x31aebf=_0x235829[_0x5abf3f(0xf4)]();if(!_0x31aebf)continue;if(!intersects(_0x31aebf,_0x5cf34f))continue;let _0x2b2577=this[_0x5abf3f(0xf0)];this[_0x5abf3f(0xcf)]['push'](_0x235829);switch(_0x31aebf['getType']()){case _0x5abf3f(0x10a):case'MultiPoint':this[_0x5abf3f(0x108)][_0x5abf3f(0xe2)](_0x235829),_0x2b2577=this[_0x5abf3f(0xc8)];break;case _0x5abf3f(0xe4):case'MultiLineString':this['selectedLineFeatures']['push'](_0x235829),_0x2b2577=this[_0x5abf3f(0xd8)];break;case _0x5abf3f(0xdd):case _0x5abf3f(0x10b):this[_0x5abf3f(0x116)][_0x5abf3f(0xe2)](_0x235829),_0x2b2577=this['polygonStyle'];break;default:break;}_0x235829['setStyle'](_0x2b2577);}return _0xd1b8ac;}}
|
package/interaction/Split.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a51_0x9b35a5=a51_0xa8c7;function a51_0x1d47(){const _0x534c92=['message','9ppsRGC','features','40kTkFHR','push','length','295768halraD','tempLayer','SPLITED','2353576nxGmZY','7chCsUq','error','sourceFeatures','未获取到地图对象','clone','9kUXFzH','splitStart','SPLITSTART','67230CJAgWy','feature','layerId','dispatchEvent','polyline','onInternal','未获取到绘制的分割线','未获取到分割要素','3293358VWtiKe','setGeometry','splitLine','addTempLayer','78990NXKYCG','485336jYgqzB','tipText','drawEnd','315776ZwyEbO','cut','splited','setFeatures','getGeometry'];a51_0x1d47=function(){return _0x534c92;};return a51_0x1d47();}(function(_0x514ff0,_0x193b9b){const _0x1a4950=a51_0xa8c7,_0x5c3094=_0x514ff0();while(!![]){try{const _0x4714e4=parseInt(_0x1a4950(0x80))/0x1+parseInt(_0x1a4950(0x7c))/0x2*(-parseInt(_0x1a4950(0x94))/0x3)+-parseInt(_0x1a4950(0x7d))/0x4+parseInt(_0x1a4950(0x70))/0x5+-parseInt(_0x1a4950(0x78))/0x6*(-parseInt(_0x1a4950(0x8f))/0x7)+parseInt(_0x1a4950(0x8e))/0x8*(-parseInt(_0x1a4950(0x86))/0x9)+-parseInt(_0x1a4950(0x88))/0xa*(-parseInt(_0x1a4950(0x8b))/0xb);if(_0x4714e4===_0x193b9b)break;else _0x5c3094['push'](_0x5c3094['shift']());}catch(_0x5364d1){_0x5c3094['push'](_0x5c3094['shift']());}}}(a51_0x1d47,0x6e443));import a51_0x12e108 from'./Draw';import a51_0x1e95c4 from'ol/events/Event';function a51_0xa8c7(_0x3eb48d,_0x5aaff0){const _0x1d4787=a51_0x1d47();return a51_0xa8c7=function(_0xa8c730,_0x58f3eb){_0xa8c730=_0xa8c730-0x6e;let _0x3dd23=_0x1d4787[_0xa8c730];return _0x3dd23;},a51_0xa8c7(_0x3eb48d,_0x5aaff0);}import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':a51_0x9b35a5(0x6e),'SPLITED':a51_0x9b35a5(0x82)};export class SplitEvent extends a51_0x1e95c4{constructor(_0x521e79,_0x13000c,_0x4eaa,_0x9a3b76){const _0x56b4f3=a51_0x9b35a5;super(_0x521e79),this[_0x56b4f3(0x7a)]=_0x13000c,this[_0x56b4f3(0x87)]=_0x4eaa,this[_0x56b4f3(0x90)]=_0x9a3b76;}}export default class Split extends a51_0x12e108{constructor(_0x4cb654,_0x10b0e3){const _0xb1ffb5=a51_0x9b35a5,_0x42d75e=(_0x10b0e3===null||_0x10b0e3===void 0x0?void 0x0:_0x10b0e3['splitLineStyle'])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2};super(_0xb1ffb5(0x74),{'tipText':_0x10b0e3===null||_0x10b0e3===void 0x0?void 0x0:_0x10b0e3[_0xb1ffb5(0x7e)],'style':_0x42d75e}),this[_0xb1ffb5(0x91)]=_0x4cb654;const _0x5814c6=_0x10b0e3||{};this[_0xb1ffb5(0x7b)]=_0x5814c6[_0xb1ffb5(0x7b)]||![],this['on']=this[_0xb1ffb5(0x75)],this['on'](_0xb1ffb5(0x7f),async _0x208ade=>{const _0x39de2c=_0xb1ffb5;var _0x305328;const _0x1e3744=this['getMap']();let _0x302cfe=(_0x305328=_0x208ade[_0x39de2c(0x71)])===null||_0x305328===void 0x0?void 0x0:_0x305328[_0x39de2c(0x84)]();!_0x302cfe&&this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],undefined,undefined,_0x39de2c(0x76)));let _0x4d9d71=_0x302cfe;!_0x1e3744&&this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],_0x4d9d71,undefined,_0x39de2c(0x92)));(!this[_0x39de2c(0x91)]||this[_0x39de2c(0x91)][_0x39de2c(0x8a)]===0x0)&&this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],_0x4d9d71,undefined,_0x39de2c(0x77)));try{this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x6f)],_0x4d9d71));const _0xd77b33=this['splitFeatures'](_0x4d9d71);this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],_0x4d9d71,_0xd77b33));}catch(_0xe7d801){this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],_0x4d9d71,undefined,_0xe7d801[_0x39de2c(0x85)]));}});}['splitFeatures'](_0xa8d246){const _0x1fa937=a51_0x9b35a5;var _0x1c7da6;const _0xe5c52e=[],_0x39e065=(_0x1c7da6=this[_0x1fa937(0x91)][0x0][_0x1fa937(0x8c)])===null||_0x1c7da6===void 0x0?void 0x0:_0x1c7da6['getSource']();for(let _0x36fb9f=0x0;_0x36fb9f<this['sourceFeatures']['length'];_0x36fb9f++){const _0x470d9b=this['sourceFeatures'][_0x36fb9f],_0x59b0e2=_0x470d9b[_0x1fa937(0x84)]();let _0x189572=[];if(_0x59b0e2 instanceof Polygon||_0x59b0e2 instanceof MultiPolygon)_0x189572=jstlSplit(_0x59b0e2,_0xa8d246);else(_0x59b0e2 instanceof LineString||_0x59b0e2 instanceof MultiLineString)&&(_0x189572=splitLineByLine(_0x59b0e2,_0xa8d246));if(_0x189572[_0x1fa937(0x8a)]>0x1){_0x470d9b[_0x1fa937(0x79)](_0x189572[0x0]),_0xe5c52e[_0x1fa937(0x89)](_0x470d9b);for(let _0x22be89=0x1;_0x22be89<_0x189572[_0x1fa937(0x8a)];_0x22be89++){const _0x55ee85=_0x470d9b[_0x1fa937(0x93)]();_0x55ee85[_0x1fa937(0x72)]=undefined,_0x55ee85['fromType']=_0x1fa937(0x81),_0x55ee85[_0x1fa937(0x8c)]=_0x470d9b['tempLayer'],_0x55ee85[_0x1fa937(0x79)](_0x189572[_0x22be89]),this[_0x1fa937(0x7b)]&&(_0x39e065===null||_0x39e065===void 0x0?void 0x0:_0x39e065['addFeature'](_0x55ee85)),_0xe5c52e['push'](_0x55ee85);}}}return _0xe5c52e;}[a51_0x9b35a5(0x83)](_0x1e3b4a){const _0xbadd36=a51_0x9b35a5;this[_0xbadd36(0x91)]=_0x1e3b4a;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x563574,_0x5e0e59){const _0x2fe3cc=a52_0x8fd2,_0x210968=_0x563574();while(!![]){try{const _0x44abdd=parseInt(_0x2fe3cc(0xaa))/0x1+parseInt(_0x2fe3cc(0xa9))/0x2+-parseInt(_0x2fe3cc(0x97))/0x3+parseInt(_0x2fe3cc(0x9e))/0x4+parseInt(_0x2fe3cc(0x9d))/0x5*(-parseInt(_0x2fe3cc(0x8d))/0x6)+-parseInt(_0x2fe3cc(0x93))/0x7*(parseInt(_0x2fe3cc(0x94))/0x8)+parseInt(_0x2fe3cc(0x95))/0x9;if(_0x44abdd===_0x5e0e59)break;else _0x210968['push'](_0x210968['shift']());}catch(_0x4f7e7e){_0x210968['push'](_0x210968['shift']());}}}(a52_0x7d6f,0x2cbea));function a52_0x8fd2(_0x6de312,_0x49cb5e){const _0x7d6fb3=a52_0x7d6f();return a52_0x8fd2=function(_0x8fd253,_0x197661){_0x8fd253=_0x8fd253-0x8d;let _0x330e49=_0x7d6fb3[_0x8fd253];return _0x330e49;},a52_0x8fd2(_0x6de312,_0x49cb5e);}import a52_0x1b9475 from'ol/source/ImageArcGISRest';import{Image as a52_0x221edc}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a52_0x7d6f(){const _0x3f5fc1=['ymin','sublayers','stringify','mapIndex','layerDefs','url','opacity','EPSG:','loadFilter','initialExtent','57730siLpOC','139856zQwKtn','wkid','1767834clBaAg','layerInfo','xmax','projection','ymax','join','26271VknXcU','304hWWoqv','6331410fkfejB','updateParams','972990EYRnQG','selectIndex','spatialReference','xmin','show:','fullExtent','5yOtXsW','290584uOIcdZ'];a52_0x7d6f=function(){return _0x3f5fc1;};return a52_0x7d6f();}export default class ArcgisDynamicLayer extends a52_0x221edc{constructor(_0x210779,_0x2c6801){const _0x3b3cbe=a52_0x8fd2;var _0x31a2ac;let _0x4e6f69={'LAYERS':_0x3b3cbe(0x9b)+((_0x31a2ac=_0x210779[_0x3b3cbe(0xa0)])===null||_0x31a2ac===void 0x0?void 0x0:_0x31a2ac[_0x3b3cbe(0x92)](','))};if(_0x210779['loadFilter']&&_0x210779[_0x3b3cbe(0x98)]){const _0x57bfc0={};_0x57bfc0[_0x210779[_0x3b3cbe(0x98)]]=_0x210779[_0x3b3cbe(0xa7)],_0x4e6f69[_0x3b3cbe(0xa3)]=JSON[_0x3b3cbe(0xa1)](_0x57bfc0);}const _0x54dc74=[_0x2c6801[_0x3b3cbe(0xa8)][_0x3b3cbe(0x9a)],_0x2c6801[_0x3b3cbe(0xa8)][_0x3b3cbe(0x9f)],_0x2c6801['initialExtent'][_0x3b3cbe(0x8f)],_0x2c6801['initialExtent'][_0x3b3cbe(0x91)]],_0x573bfb=[_0x2c6801[_0x3b3cbe(0x9c)][_0x3b3cbe(0x9a)],_0x2c6801[_0x3b3cbe(0x9c)]['ymin'],_0x2c6801[_0x3b3cbe(0x9c)]['xmax'],_0x2c6801[_0x3b3cbe(0x9c)][_0x3b3cbe(0x91)]];let _0x4693b9;_0x2c6801[_0x3b3cbe(0x99)][_0x3b3cbe(0xab)]?_0x4693b9=registerProj(_0x3b3cbe(0xa6)+_0x2c6801[_0x3b3cbe(0x99)][_0x3b3cbe(0xab)],_0x573bfb):_0x4693b9=registerProj(_0x2c6801['spatialReference']['wkt'],_0x573bfb),super({'opacity':_0x210779[_0x3b3cbe(0xa5)],'zIndex':_0x210779[_0x3b3cbe(0xa2)],'source':new a52_0x1b9475({'crossOrigin':'anonymous','projection':_0x4693b9,'ratio':0x1,'url':_0x210779[_0x3b3cbe(0xa4)],'params':_0x4e6f69})}),this['id']=_0x210779['id'],this[_0x3b3cbe(0xa8)]=_0x54dc74,this[_0x3b3cbe(0x90)]=_0x4693b9,this[_0x3b3cbe(0x8e)]=_0x210779;}['setFilter'](_0x3d5260){const _0x3900c7=a52_0x8fd2;var _0x753085;const _0x3ae984={};this[_0x3900c7(0x8e)][_0x3900c7(0x98)]&&(_0x3ae984[this[_0x3900c7(0x8e)][_0x3900c7(0x98)]]=_0x3d5260),(_0x753085=this['getSource']())===null||_0x753085===void 0x0?void 0x0:_0x753085[_0x3900c7(0x96)]({'layerDefs':JSON[_0x3900c7(0xa1)](_0x3d5260)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a53_0xf88b(_0x15867e,_0x430c75){const _0x2922e8=a53_0x2922();return a53_0xf88b=function(_0xf88b28,_0x357895){_0xf88b28=_0xf88b28-0x18e;let _0x4a16ee=_0x2922e8[_0xf88b28];return _0x4a16ee;},a53_0xf88b(_0x15867e,_0x430c75);}function a53_0x2922(){const _0x55d1f1=['uniqueValueInfos','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','EPSG:',',\x22ymax\x22:','get','xmax','989757cxrACa','symbol','8JsuppU','f\x20=\x20json\x20&\x20','then',',\x22xmax\x22:','projection','type','drawingInfo','loadFilter','fullExtent','defaultSymbol','wkt','simple','56FNSuNE','ymin',',\x22ymin\x22:','where=','295620fxAiTw','10CaZyhv','setStyle','xmin','value','&geometryType=esriGeometryEnvelope&inSR=','length','showIndex','forEach',',\x22spatialReference\x22:{\x22wkid\x22:','readFeatures','wkid','push','mapIndex','98441LryOxa','uniqueValue','initialExtent','1=1','renderer','spatialReference','stringify','error','{\x22xmin\x22:','ymax','addFeatures','657724pxKLPn','616632LYYOyZ','5HWGFLc','find','split','setFilter','&outSR=','1685yBJZSK','createArcGISFeatureLayer','log','layerInfo','3171729SSWAsZ'];a53_0x2922=function(){return _0x55d1f1;};return a53_0x2922();}const a53_0x519609=a53_0xf88b;(function(_0x197e5e,_0x5d1806){const _0x54bfbd=a53_0xf88b,_0x333a03=_0x197e5e();while(!![]){try{const _0x3a0370=parseInt(_0x54bfbd(0x1c0))/0x1*(-parseInt(_0x54bfbd(0x19c))/0x2)+-parseInt(_0x54bfbd(0x1ba))/0x3+-parseInt(_0x54bfbd(0x1b9))/0x4*(-parseInt(_0x54bfbd(0x1bb))/0x5)+parseInt(_0x54bfbd(0x1a0))/0x6+parseInt(_0x54bfbd(0x1ae))/0x7*(-parseInt(_0x54bfbd(0x190))/0x8)+parseInt(_0x54bfbd(0x18e))/0x9*(-parseInt(_0x54bfbd(0x1a1))/0xa)+parseInt(_0x54bfbd(0x1c4))/0xb;if(_0x3a0370===_0x5d1806)break;else _0x333a03['push'](_0x333a03['shift']());}catch(_0x30c82d){_0x333a03['push'](_0x333a03['shift']());}}}(a53_0x2922,0x1e960));import a53_0x44c7c5 from'ol/format/EsriJSON';import a53_0x5a9ac3 from'ol/source/Vector';import{Vector as a53_0xc6f2ae}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x9e2bea}from'ol/loadingstrategy';import a53_0x3b0f4d from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0x383e17 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x3b0f4d{constructor(_0x3b3008,_0x108a5b,_0xf7e23d){const _0x5e1fa4=a53_0xf88b,_0x4bcaf9=[_0x108a5b[_0x5e1fa4(0x1b0)][_0x5e1fa4(0x1a3)],_0x108a5b[_0x5e1fa4(0x1b0)][_0x5e1fa4(0x19d)],_0x108a5b[_0x5e1fa4(0x1b0)][_0x5e1fa4(0x1ca)],_0x108a5b[_0x5e1fa4(0x1b0)][_0x5e1fa4(0x1b7)]],_0x1c6092=[_0x108a5b[_0x5e1fa4(0x198)][_0x5e1fa4(0x1a3)],_0x108a5b['fullExtent']['ymin'],_0x108a5b[_0x5e1fa4(0x198)][_0x5e1fa4(0x1ca)],_0x108a5b[_0x5e1fa4(0x198)][_0x5e1fa4(0x1b7)]];let _0x4ef485;_0x108a5b[_0x5e1fa4(0x1b3)][_0x5e1fa4(0x1ab)]?_0x4ef485=registerProj(_0x5e1fa4(0x1c7)+_0x108a5b[_0x5e1fa4(0x1b3)][_0x5e1fa4(0x1ab)],_0x1c6092):_0x4ef485=registerProj(_0x108a5b['spatialReference'][_0x5e1fa4(0x19a)],_0x1c6092);let _0x34e83b=[];super({'zIndex':_0x3b3008[_0x5e1fa4(0x1ad)]});for(let _0x17647b of _0xf7e23d){let _0x9ab3f0=this[_0x5e1fa4(0x1c1)](_0x3b3008,_0x17647b);_0x34e83b[_0x5e1fa4(0x1ac)](_0x9ab3f0);}this['setLayers'](new a53_0x383e17(_0x34e83b)),this['id']=_0x3b3008['id'],this[_0x5e1fa4(0x1b0)]=_0x4bcaf9,this[_0x5e1fa4(0x194)]=_0x4ef485,this[_0x5e1fa4(0x1c3)]=_0x3b3008;}[a53_0x519609(0x1c1)](_0x4d9065,_0x316aba){const _0x1553a2=a53_0x519609;var _0x22dc1b=new a53_0x44c7c5();let _0x91aa39=new a53_0x5a9ac3({'loader':function(_0x26dbe5,_0x5072dd,_0x57990f){const _0xa57ba0=a53_0xf88b;let _0x215fcd=_0xa57ba0(0x1b1);_0x4d9065[_0xa57ba0(0x197)]&&(_0x215fcd=typeof _0x4d9065[_0xa57ba0(0x197)]==='string'?_0x4d9065['loadFilter']:JSON[_0xa57ba0(0x1b4)](_0x4d9065['loadFilter']));let _0x3368f9=_0x57990f['getCode'](),_0x3ec96b=_0x3368f9[_0xa57ba0(0x1bd)](':')[0x1];var _0xa07252=appendPath(_0x316aba['url'],'/query');_0xa07252=appendParam(_0xa07252,_0xa57ba0(0x191)+_0xa57ba0(0x19f)+encodeURIComponent(_0x215fcd)+_0xa57ba0(0x1c6)+encodeURIComponent(_0xa57ba0(0x1b6)+_0x26dbe5[0x0]+_0xa57ba0(0x19e)+_0x26dbe5[0x1]+_0xa57ba0(0x193)+_0x26dbe5[0x2]+_0xa57ba0(0x1c8)+_0x26dbe5[0x3]+_0xa57ba0(0x1a9)+_0x3ec96b+'}}')+_0xa57ba0(0x1a5)+_0x3ec96b+'&outFields=*'+_0xa57ba0(0x1bf)+_0x3ec96b),jsonp(_0xa07252)[_0xa57ba0(0x192)](_0x39a92d=>{const _0x519766=_0xa57ba0;if(_0x39a92d[_0x519766(0x1b5)])console[_0x519766(0x1c2)](_0x39a92d);else{var _0x46ae16=_0x22dc1b[_0x519766(0x1aa)](_0x39a92d,{'featureProjection':_0x57990f});_0x46ae16[_0x519766(0x1a6)]>0x0&&(_0x316aba[_0x519766(0x196)]['renderer'][_0x519766(0x195)]==_0x519766(0x1af)&&_0x46ae16[_0x519766(0x1a8)](function(_0x38b70b){const _0x37e09f=_0x519766;var _0x25f2f2=_0x38b70b[_0x37e09f(0x1c9)](_0x316aba[_0x37e09f(0x196)]['renderer']['field1']);const _0x922dc6=_0x316aba[_0x37e09f(0x196)][_0x37e09f(0x1b2)][_0x37e09f(0x1c5)][_0x37e09f(0x1bc)](_0x1e9f99=>_0x1e9f99[_0x37e09f(0x1a4)]==_0x25f2f2);let _0x17c7f6;_0x922dc6?_0x17c7f6=transformedEsriStyle(_0x922dc6['symbol']):_0x17c7f6=transformedEsriStyle(_0x316aba[_0x37e09f(0x196)][_0x37e09f(0x1b2)][_0x37e09f(0x199)]),_0x38b70b[_0x37e09f(0x1a2)](_0x17c7f6);}),_0x91aa39[_0x519766(0x1b8)](_0x46ae16));}});},'strategy':a53_0x9e2bea(createXYZ({'tileSize':0x200}))}),_0x423cae=new a53_0xc6f2ae({'source':_0x91aa39,'zIndex':_0x4d9065[_0x1553a2(0x1a7)]});if(_0x316aba['drawingInfo'][_0x1553a2(0x1b2)][_0x1553a2(0x195)]==_0x1553a2(0x19b)&&_0x316aba[_0x1553a2(0x196)]['renderer'][_0x1553a2(0x18f)]){let _0x6b7471=transformedEsriStyle(_0x316aba[_0x1553a2(0x196)]['renderer']['symbol']);_0x423cae['setStyle'](_0x6b7471);}return _0x423cae;}[a53_0x519609(0x1be)](_0x4374ad){const _0x312f9f=a53_0x519609;this[_0x312f9f(0x1c3)][_0x312f9f(0x197)]=_0x4374ad;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2aa793,_0x271134){const _0x45cb42=a54_0x3f3d,_0x580495=_0x2aa793();while(!![]){try{const _0xdebf61=-parseInt(_0x45cb42(0x165))/0x1*(-parseInt(_0x45cb42(0x163))/0x2)+parseInt(_0x45cb42(0x152))/0x3+-parseInt(_0x45cb42(0x153))/0x4+-parseInt(_0x45cb42(0x150))/0x5+-parseInt(_0x45cb42(0x15d))/0x6*(-parseInt(_0x45cb42(0x166))/0x7)+parseInt(_0x45cb42(0x14e))/0x8*(-parseInt(_0x45cb42(0x14f))/0x9)+-parseInt(_0x45cb42(0x14a))/0xa*(parseInt(_0x45cb42(0x15b))/0xb);if(_0xdebf61===_0x271134)break;else _0x580495['push'](_0x580495['shift']());}catch(_0xdb6423){_0x580495['push'](_0x580495['shift']());}}}(a54_0xecbb,0x79bb2));import a54_0x4325b6 from'ol/layer/Tile';import a54_0x56b6db from'ol/source/XYZ';function a54_0x3f3d(_0x473bed,_0x3d67e9){const _0xecbb81=a54_0xecbb();return a54_0x3f3d=function(_0x3f3d8b,_0xc7ffa0){_0x3f3d8b=_0x3f3d8b-0x148;let _0x441d8c=_0xecbb81[_0x3f3d8b];return _0x441d8c;},a54_0x3f3d(_0x473bed,_0x3d67e9);}import a54_0x59f958 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';function a54_0xecbb(){const _0x3ba079=['ymax','ymin','763898BGVjDb','rows','1hJsBMh','1197MzZGWX','tileInfo','wkid','push','layerInfo','80DuAOAE','EPSG:','initialExtent','mapIndex','917912CVsPuV','9EqshSF','700860zogTQV','url','763074HxDWlw','714588yqOZav','resolution','xmin','/tile/{z}/{y}/{x}','spatialReference','wkt','fullExtent','opacity','463859wSkPZi','origin','22218LtgzyB','lods','xmax','length'];a54_0xecbb=function(){return _0x3ba079;};return a54_0xecbb();}import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x4325b6{constructor(_0x1d7cee,_0xfd5590){const _0x52f69c=a54_0x3f3d,_0x1b562d=_0x1d7cee[_0x52f69c(0x151)]?_0x1d7cee[_0x52f69c(0x151)]:'',_0x4e676f=appendPath(_0x1b562d,_0x52f69c(0x156)),_0x26d418=[_0xfd5590['initialExtent']['xmin'],_0xfd5590[_0x52f69c(0x14c)]['ymin'],_0xfd5590[_0x52f69c(0x14c)][_0x52f69c(0x15f)],_0xfd5590['initialExtent'][_0x52f69c(0x161)]],_0x165c86=[_0xfd5590[_0x52f69c(0x159)][_0x52f69c(0x155)],_0xfd5590[_0x52f69c(0x159)][_0x52f69c(0x162)],_0xfd5590[_0x52f69c(0x159)][_0x52f69c(0x15f)],_0xfd5590[_0x52f69c(0x159)][_0x52f69c(0x161)]];let _0x1011e4;_0xfd5590[_0x52f69c(0x157)][_0x52f69c(0x168)]?_0x1011e4=registerProj(_0x52f69c(0x14b)+_0xfd5590[_0x52f69c(0x157)][_0x52f69c(0x168)],_0x165c86):_0x1011e4=registerProj(_0xfd5590['spatialReference'][_0x52f69c(0x158)],_0x165c86);let _0x46bdea=[];for(let _0x58aaa2=0x0,_0xd2d0e0=_0xfd5590[_0x52f69c(0x167)][_0x52f69c(0x15e)][_0x52f69c(0x160)];_0x58aaa2<_0xd2d0e0;_0x58aaa2++){_0x46bdea[_0x52f69c(0x148)](_0xfd5590['tileInfo'][_0x52f69c(0x15e)][_0x58aaa2][_0x52f69c(0x154)]);}super({'opacity':_0x1d7cee[_0x52f69c(0x15a)],'zIndex':_0x1d7cee[_0x52f69c(0x14d)],'maxResolution':_0x46bdea[0x0]*0x2,'source':new a54_0x56b6db({'url':_0x4e676f,'projection':_0x1011e4,'crossOrigin':'anonymous','tileGrid':new a54_0x59f958({'extent':_0x165c86,'origin':[_0xfd5590['tileInfo'][_0x52f69c(0x15c)]['x'],_0xfd5590['tileInfo'][_0x52f69c(0x15c)]['y']],'resolutions':_0x46bdea,'tileSize':[_0xfd5590[_0x52f69c(0x167)][_0x52f69c(0x164)],_0xfd5590[_0x52f69c(0x167)]['cols']]})})}),this['id']=_0x1d7cee['id'],this[_0x52f69c(0x14c)]=_0x26d418,this['projection']=_0x1011e4,this[_0x52f69c(0x149)]=_0x1d7cee;}}
|