ym-gis-2d 1.0.38 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Difference.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Modify.js +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Split.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +4 -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.d.ts.map +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Query.js.map +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.d.ts +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
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a43_0x47d5(_0x3f0307,_0x283036){const _0x1f20ad=a43_0x1f20();return a43_0x47d5=function(_0x47d565,_0x5a839f){_0x47d565=_0x47d565-0xad;let _0xd3cd10=_0x1f20ad[_0x47d565];return _0xd3cd10;},a43_0x47d5(_0x3f0307,_0x283036);}const a43_0x819f29=a43_0x47d5;(function(_0x5f3bd7,_0x12c26b){const _0x353c14=a43_0x47d5,_0x1539db=_0x5f3bd7();while(!![]){try{const _0x20f96c=parseInt(_0x353c14(0xdb))/0x1+parseInt(_0x353c14(0xca))/0x2+-parseInt(_0x353c14(0xc8))/0x3*(-parseInt(_0x353c14(0xbd))/0x4)+parseInt(_0x353c14(0xb7))/0x5*(-parseInt(_0x353c14(0xcd))/0x6)+parseInt(_0x353c14(0xb6))/0x7*(-parseInt(_0x353c14(0xaf))/0x8)+-parseInt(_0x353c14(0xbb))/0x9+parseInt(_0x353c14(0xce))/0xa*(parseInt(_0x353c14(0xbf))/0xb);if(_0x20f96c===_0x12c26b)break;else _0x1539db['push'](_0x1539db['shift']());}catch(_0x3294c1){_0x1539db['push'](_0x1539db['shift']());}}}(a43_0x1f20,0xaab26));import a43_0x612137 from'../entity/Feature';import a43_0x2e56d6 from'ol/layer/Vector';import a43_0xfae07f from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0x58a810 from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';function a43_0x1f20(){const _0x1de208=['getFeatures','2266254ChXmCV','setGeometry','getTempEditFeatures','44610hONrcu','320BdBqrd','tag','getTempSelectedFeatures','addFeatures','indexOf','flashGeometrys','kmlImport','removeFeature','length','getLineTempLayer','flashFeatures','setVisible','getSelectedFeatures','323913vIgTfa','layerInfo','push','geometryType','getVisible','5752LogIjk','features','tempLayer','setStyle','forEach','get','getLayerById','11683JTBsEs','220migTWo','flash_layer','isSelected','clearTempFeatures','6692625AyGDUw','filter','910684KWDYjj','map','363539qRSAWK','currentEditLayer','getPointTempLayer','getSource','removeLayer','getPolygonTempLayer','addLayer','getEditFeatures','layerId','6EjcKdI'];a43_0x1f20=function(){return _0x1de208;};return a43_0x1f20();}export default class FeatureManager{constructor(_0x45e33f){const _0x12e8d5=a43_0x47d5;this[_0x12e8d5(0xbe)]=_0x45e33f;}[a43_0x819f29(0xc6)](_0x364e4e,_0x46069a){const _0x227266=a43_0x819f29;if(!this[_0x227266(0xbe)][_0x227266(0xc0)])return;let _0x5e5bf0;const _0x5780b5=this['map'][_0x227266(0xb5)](this[_0x227266(0xbe)][_0x227266(0xc0)]['id']);if(!_0x5780b5||!_0x5780b5[_0x227266(0xdc)])return;switch(_0x5780b5[_0x227266(0xdc)]['geometryType']){case 0x1:_0x5e5bf0=this[_0x227266(0xcc)](this[_0x227266(0xbe)][_0x227266(0xc1)](),this['map'][_0x227266(0xc0)]['id'],_0x364e4e,_0x46069a);break;case 0x2:_0x5e5bf0=this[_0x227266(0xcc)](this[_0x227266(0xbe)][_0x227266(0xd7)](),this[_0x227266(0xbe)][_0x227266(0xc0)]['id'],_0x364e4e,_0x46069a);break;case 0x3:_0x5e5bf0=this[_0x227266(0xcc)](this['map'][_0x227266(0xc4)](),this[_0x227266(0xbe)]['currentEditLayer']['id'],_0x364e4e,_0x46069a);break;default:break;}return _0x5e5bf0;}['getSelectedFeatures'](_0x29a2a6,_0x41b99a){const _0x601e85=a43_0x819f29;if(_0x29a2a6){const _0x4adc82=this['map'][_0x601e85(0xb5)](_0x29a2a6);if(!_0x4adc82||!_0x4adc82['layerInfo'])return;let _0x47c880;switch(_0x4adc82['layerInfo'][_0x601e85(0xad)]){case 0x1:_0x47c880=this['getTempSelectedFeatures'](this[_0x601e85(0xbe)][_0x601e85(0xc1)](),_0x29a2a6,_0x41b99a);break;case 0x2:_0x47c880=this[_0x601e85(0xd0)](this['map'][_0x601e85(0xd7)](),_0x29a2a6,_0x41b99a);break;case 0x3:_0x47c880=this['getTempSelectedFeatures'](this[_0x601e85(0xbe)]['getPolygonTempLayer'](),_0x29a2a6,_0x41b99a);break;default:break;}return _0x47c880;}else{const _0xd8f4b3=this['getTempSelectedFeatures'](this[_0x601e85(0xbe)]['getPointTempLayer'](),_0x29a2a6,_0x41b99a),_0x4e083e=this[_0x601e85(0xd0)](this['map']['getLineTempLayer'](),_0x29a2a6,_0x41b99a),_0x3c9b12=this['getTempSelectedFeatures'](this['map'][_0x601e85(0xc4)](),_0x29a2a6,_0x41b99a);let _0x317f5=[];return _0xd8f4b3&&(_0x317f5=[..._0x317f5,..._0xd8f4b3]),_0x4e083e&&(_0x317f5=[..._0x317f5,..._0x4e083e]),_0x3c9b12&&(_0x317f5=[..._0x317f5,..._0x3c9b12]),_0x317f5;}}['getTempSelectedFeatures'](_0x3bfd99,_0x5dabfd,_0x2bb523){const _0x2e4101=a43_0x819f29;var _0x3c4277;let _0x5b142f=(_0x3c4277=_0x3bfd99[_0x2e4101(0xc2)]())===null||_0x3c4277===void 0x0?void 0x0:_0x3c4277[_0x2e4101(0xc9)]();if(!_0x5b142f)return;_0x5b142f[_0x2e4101(0xb3)]((_0x39dbf7,_0x3edbff,_0x1abad0)=>{const _0x2626a2=_0x2e4101;_0x39dbf7[_0x2626a2(0xb1)]=_0x3bfd99;});_0x2bb523!=undefined&&(_0x5b142f=_0x5b142f[_0x2e4101(0xbc)](_0xa3875f=>_0xa3875f[_0x2e4101(0xb9)]==_0x2bb523));if(_0x5dabfd)return _0x5b142f['filter'](_0x96f5a=>_0x96f5a[_0x2e4101(0xc7)]==_0x5dabfd);return _0x5b142f;}[a43_0x819f29(0xcc)](_0x3eccd2,_0x1c28d7,_0x39133a,_0x376519){const _0xe00f61=a43_0x819f29;var _0x26984a;let _0x4f7a7f=(_0x26984a=_0x3eccd2[_0xe00f61(0xc2)]())===null||_0x26984a===void 0x0?void 0x0:_0x26984a['getFeatures']();if(!_0x4f7a7f)return;return _0x4f7a7f['forEach']((_0xc94d81,_0x313f4b,_0x5a32bf)=>{const _0x330654=_0xe00f61;_0xc94d81[_0x330654(0xb1)]=_0x3eccd2;}),_0x39133a&&_0x376519&&_0x376519[_0xe00f61(0xd6)]>0x0?_0x4f7a7f=_0x4f7a7f[_0xe00f61(0xbc)](_0x26e41d=>_0x26e41d[_0xe00f61(0xb9)]==!![]&&(_0x26e41d['layerId']==_0x1c28d7&&(_0x26e41d[_0xe00f61(0xb4)](_0x39133a)==undefined||_0x376519[_0xe00f61(0xd2)](_0x26e41d[_0xe00f61(0xb4)](_0x39133a))>-0x1)||_0x26e41d[_0xe00f61(0xc7)]==undefined)):_0x4f7a7f=_0x4f7a7f=_0x4f7a7f[_0xe00f61(0xbc)](_0x375718=>_0x375718['isSelected']==!![]&&(_0x375718[_0xe00f61(0xc7)]==_0x1c28d7||_0x375718[_0xe00f61(0xc7)]==undefined)),_0x4f7a7f;}[a43_0x819f29(0xd8)](_0x2d8e6f,_0x2aac1e=0x3){const _0x8b6741=a43_0x819f29;var _0x193bfe;let _0x2edb03=new a43_0x2e56d6({'zIndex':0x270f,'source':new a43_0xfae07f()});_0x2edb03['id']='flash_layer',this['map'][_0x8b6741(0xc5)](_0x2edb03,![]),(_0x193bfe=_0x2edb03[_0x8b6741(0xc2)]())===null||_0x193bfe===void 0x0?void 0x0:_0x193bfe[_0x8b6741(0xd1)](_0x2d8e6f);let _0x2ab3c3=0x0,_0x516f61=setInterval(()=>{const _0x3002a5=_0x8b6741;if(_0x2ab3c3===_0x2aac1e){_0x516f61&&clearInterval(_0x516f61);const _0x2800f9=this[_0x3002a5(0xbe)][_0x3002a5(0xb5)](_0x2edb03['id']);_0x2800f9&&this['map'][_0x3002a5(0xc3)](_0x2800f9);return;}if(_0x2edb03[_0x3002a5(0xae)]())_0x2edb03[_0x3002a5(0xd9)](![]);else _0x2edb03[_0x3002a5(0xd9)](!![]);_0x2ab3c3++;},0x190);}[a43_0x819f29(0xd3)](_0x1dc168,_0x3afab0=0x3){const _0x395617=a43_0x819f29;var _0x1a7fb3;let _0x45e410=new a43_0x2e56d6({'zIndex':0x270f,'source':new a43_0xfae07f()});_0x45e410['id']=_0x395617(0xb8),this[_0x395617(0xbe)][_0x395617(0xc5)](_0x45e410,![]);let _0x17d77f=[];_0x1dc168[_0x395617(0xb3)](_0x5ad2ae=>{const _0x5b7743=_0x395617;let _0x1090b2=new a43_0x612137();const _0x3e6920=getSelectStyle(_0x5ad2ae['getType']());_0x1090b2[_0x5b7743(0xb2)](_0x3e6920),_0x1090b2[_0x5b7743(0xcb)](_0x5ad2ae),_0x17d77f[_0x5b7743(0xdd)](_0x1090b2);}),(_0x1a7fb3=_0x45e410[_0x395617(0xc2)]())===null||_0x1a7fb3===void 0x0?void 0x0:_0x1a7fb3[_0x395617(0xd1)](_0x17d77f);let _0x35ee0b=0x0,_0x2c5acc=setInterval(()=>{const _0x48f520=_0x395617;if(_0x35ee0b===_0x3afab0){_0x2c5acc&&clearInterval(_0x2c5acc);const _0x1784e3=this['map'][_0x48f520(0xb5)](_0x45e410['id']);_0x1784e3&&this['map'][_0x48f520(0xc3)](_0x1784e3);return;}if(_0x45e410['getVisible']())_0x45e410[_0x48f520(0xd9)](![]);else _0x45e410['setVisible'](!![]);_0x35ee0b++;},0x190);}async[a43_0x819f29(0xd4)](_0x38568d){const _0x402ee3=a43_0x819f29;let _0x42ce1e=await toGeoJSON(_0x38568d,null);if(!_0x42ce1e)return[];let _0x5ae8de=[];var _0x1c4607=new a43_0x58a810();return _0x42ce1e[_0x402ee3(0xb0)][_0x402ee3(0xb3)](_0x46bc64=>{const _0x59ee61=_0x402ee3;_0x5ae8de[_0x59ee61(0xdd)](_0x1c4607['readFeature'](_0x46bc64,null));}),_0x5ae8de;}[a43_0x819f29(0xba)](_0x5cdb4c){const _0x552260=a43_0x819f29,_0x6dfad4=this[_0x552260(0xda)]();if(_0x6dfad4&&_0x6dfad4['length']>0x0)for(const _0xb2607c of _0x6dfad4){if(_0xb2607c&&_0xb2607c[_0x552260(0xb1)]){const _0x4670ee=_0xb2607c['tempLayer']['getSource']();_0x4670ee&&(_0x5cdb4c!=undefined?_0xb2607c[_0x552260(0xcf)]==_0x5cdb4c&&_0x4670ee['removeFeature'](_0xb2607c):_0x4670ee[_0x552260(0xd5)](_0xb2607c));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57618e,_0x41a76e){var _0xf0a9e2=a44_0x3d8b,_0x5d9fa5=_0x57618e();while(!![]){try{var _0x38857f=parseInt(_0xf0a9e2(0x13a))/0x1*(-parseInt(_0xf0a9e2(0x136))/0x2)+-parseInt(_0xf0a9e2(0x139))/0x3*(-parseInt(_0xf0a9e2(0x131))/0x4)+-parseInt(_0xf0a9e2(0x133))/0x5*(parseInt(_0xf0a9e2(0x138))/0x6)+parseInt(_0xf0a9e2(0x134))/0x7+parseInt(_0xf0a9e2(0x132))/0x8+parseInt(_0xf0a9e2(0x135))/0x9*(-parseInt(_0xf0a9e2(0x137))/0xa)+parseInt(_0xf0a9e2(0x130))/0xb;if(_0x38857f===_0x41a76e)break;else _0x5d9fa5['push'](_0x5d9fa5['shift']());}catch(_0x11965b){_0x5d9fa5['push'](_0x5d9fa5['shift']());}}}(a44_0x1fef,0xd33ae));function a44_0x3d8b(_0x52bf8b,_0x32018e){var _0x1fefd8=a44_0x1fef();return a44_0x3d8b=function(_0x3d8b27,_0x1da03a){_0x3d8b27=_0x3d8b27-0x130;var _0x64281d=_0x1fefd8[_0x3d8b27];return _0x64281d;},a44_0x3d8b(_0x52bf8b,_0x32018e);}import a44_0x4ef824 from'./mapView/Map';export{a44_0x4ef824 as Map2D};function a44_0x1fef(){var _0x13468a=['192246fEYHNo','373KMwxVr','28994075aUSENc','76wJkrvq','561168NWoDOg','100420ltkUls','3755997xPlnqW','2349DOERZg','9074xBcQit','36730UHkcav','282cmgpwr'];a44_0x1fef=function(){return _0x13468a;};return a44_0x1fef();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x1d20c9=a45_0x4444;(function(_0x320fc8,_0x58ebcf){const _0x32c02c=a45_0x4444,_0x229080=_0x320fc8();while(!![]){try{const _0x115e53=-parseInt(_0x32c02c(0x19a))/0x1+-parseInt(_0x32c02c(0x188))/0x2+-parseInt(_0x32c02c(0x1ba))/0x3*(parseInt(_0x32c02c(0x18e))/0x4)+parseInt(_0x32c02c(0x196))/0x5*(parseInt(_0x32c02c(0x189))/0x6)+-parseInt(_0x32c02c(0x180))/0x7+parseInt(_0x32c02c(0x192))/0x8*(parseInt(_0x32c02c(0x18b))/0x9)+parseInt(_0x32c02c(0x1b6))/0xa;if(_0x115e53===_0x58ebcf)break;else _0x229080['push'](_0x229080['shift']());}catch(_0x50cb5f){_0x229080['push'](_0x229080['shift']());}}}(a45_0x10da,0x8146b));import a45_0x30b747 from'./Draw';import a45_0x4b8d2c from'ol/events/Event';function a45_0x4444(_0x325e87,_0x258a2c){const _0x10dae2=a45_0x10da();return a45_0x4444=function(_0x4444f8,_0x1fa87d){_0x4444f8=_0x4444f8-0x17f;let _0x584b19=_0x10dae2[_0x4444f8];return _0x584b19;},a45_0x4444(_0x325e87,_0x258a2c);}import{getArea}from'../utils/GeometryUtil';function a45_0x10da(){const _0x2062ee=['1835300uVUNmJ','24KHeXgQ','unit','3123774AUgnFT','setFeatureAreaStyle','dispatchEvent','372CHTrUL','measure','getPolygonTempLayer','forEach','8ZqhbPk','clearMeasure','平方米','_source','1164380RIEUVZ','_style','getText','precision','839278YZAPmD','drawAddPoint','clear','measureMoving','polygon','getGeometry','find','#f03437','getLength','setUnit','feature','toFixed','square-kilometers','removeFeature','drawEnd','onInternal','点击开始测量,双击结束测量','assign','_unit','getProjection','_spheroid','_precision','drawMoving','geom','getSource','length','measureEnd','fromType','14618620xJhOXX','label','setMap','text','2082eWzweN','setStyle','area','log','entries','2726269BrJomA','_features','getMap','square-meters','coordinates','_showLabel','type','getView'];a45_0x10da=function(){return _0x2062ee;};return a45_0x10da();}import{getStyle}from'../plot/Plot';import a45_0x73c06c from'../entity/measure/AreaMeasureUnits';import a45_0x117129 from'ol/Collection';const defaultOptions={'color':a45_0x1d20c9(0x1a1),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x1d20c9(0x183),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':'measureMoving','measureEnd':a45_0x1d20c9(0x1b4)};export class AreaMeasureEvent extends a45_0x4b8d2c{constructor(_0xd94887,_0x270a29,_0x1cfcf3){const _0x49000e=a45_0x1d20c9;super(_0xd94887),this[_0x49000e(0x1bc)]=_0x270a29,this[_0x49000e(0x1b1)]=_0x1cfcf3;}}export default class AreaMeasure extends a45_0x30b747{constructor(_0x1a4f8a){const _0x148252=a45_0x1d20c9;_0x1a4f8a=_0x1a4f8a||{},console[_0x148252(0x1bd)](_0x1a4f8a);const _0x296457=Object[_0x148252(0x1ab)](Object[_0x148252(0x1ab)]({},defaultOptions),Object['fromEntries'](Object[_0x148252(0x17f)](_0x1a4f8a)['filter'](([_0x1651c2,_0x432f59])=>_0x432f59!=null)));super(_0x148252(0x19e),{'tipText':_0x148252(0x1aa),'style':_0x296457,'features':new a45_0x117129()}),this[_0x148252(0x197)]=_0x296457,this[_0x148252(0x1ac)]=_0x296457[_0x148252(0x18a)],this[_0x148252(0x1af)]=_0x296457[_0x148252(0x199)],this[_0x148252(0x185)]=_0x296457['showLabel'],this[_0x148252(0x1ae)]=_0x296457['spheroid'],this['on']=this[_0x148252(0x1a9)],this['on'](_0x148252(0x1a8),_0x2b559a=>{const _0x1794ab=_0x148252,_0x5e1790=this[_0x1794ab(0x182)]();if(!_0x5e1790)return;if(_0x2b559a['feature']){const _0x3f19ae=this[_0x1794ab(0x18c)](_0x2b559a[_0x1794ab(0x1a4)],_0x296457);this[_0x1794ab(0x18d)](new AreaMeasureEvent(MeasureEventType[_0x1794ab(0x1b4)],_0x3f19ae,_0x2b559a[_0x1794ab(0x1a4)][_0x1794ab(0x19f)]()));}this[_0x1794ab(0x197)][_0x1794ab(0x1b9)]='';}),this['on'](_0x148252(0x19b),_0x2de954=>{const _0xe02bf8=_0x148252,_0x4e9a8c=this[_0xe02bf8(0x182)]();if(!_0x4e9a8c)return;if(_0x2de954[_0xe02bf8(0x1a4)]){const _0x977f3c=this[_0xe02bf8(0x18c)](_0x2de954[_0xe02bf8(0x1a4)],_0x296457);this[_0xe02bf8(0x18d)](new AreaMeasureEvent(MeasureEventType[_0xe02bf8(0x19d)],_0x977f3c,_0x2de954['feature'][_0xe02bf8(0x19f)]()));}}),this['on'](_0x148252(0x1b0),_0x3078da=>{const _0x457f88=_0x148252,_0x95396a=this[_0x457f88(0x182)]();if(!_0x95396a)return;if(!_0x3078da[_0x457f88(0x184)]||_0x3078da[_0x457f88(0x184)][_0x457f88(0x1b3)]<0x2)return;if(_0x3078da['feature']){const _0x4f28b2=this[_0x457f88(0x18c)](_0x3078da[_0x457f88(0x1a4)],_0x296457);this[_0x457f88(0x18d)](new AreaMeasureEvent(MeasureEventType['measureMoving'],_0x4f28b2,_0x3078da[_0x457f88(0x1a4)]['getGeometry']()));}});}[a45_0x1d20c9(0x1b8)](_0x5f4a70){const _0x5366f5=a45_0x1d20c9;super[_0x5366f5(0x1b8)](_0x5f4a70);if(_0x5f4a70){const _0x4eba82=_0x5f4a70[_0x5366f5(0x190)](),_0x2e6ace=_0x4eba82===null||_0x4eba82===void 0x0?void 0x0:_0x4eba82[_0x5366f5(0x1b2)]();_0x2e6ace&&(this[_0x5366f5(0x195)]=_0x2e6ace);}}[a45_0x1d20c9(0x198)](_0x534a6b){const _0x518184=a45_0x1d20c9,_0xee14e=a45_0x73c06c[_0x518184(0x1a0)](_0x5d6e18=>_0x5d6e18[_0x518184(0x186)]===this[_0x518184(0x1ac)]);switch(_0xee14e===null||_0xee14e===void 0x0?void 0x0:_0xee14e['type']){case'square-meters':return''+(_0x534a6b['toFixed'](this[_0x518184(0x1af)])+_0xee14e['label']);case _0x518184(0x1a6):return''+((_0x534a6b*0.000001)['toFixed'](this[_0x518184(0x1af)])+_0xee14e[_0x518184(0x1b7)]);case'mu':return''+((_0x534a6b*0.0015)['toFixed'](this['_precision'])+_0xee14e['label']);case'hectare':return''+((_0x534a6b*0.0001)[_0x518184(0x1a5)](this['_precision'])+_0xee14e[_0x518184(0x1b7)]);default:return _0x534a6b[_0x518184(0x1a5)](this[_0x518184(0x1af)])+_0x518184(0x194);}}[a45_0x1d20c9(0x18c)](_0x377673,_0x1858f6){const _0x46399f=a45_0x1d20c9,_0x3a2623=this['getMap']();if(!_0x3a2623)return 0x0;const _0x5b13a6=_0x377673[_0x46399f(0x19f)](),_0x474823=getArea(_0x5b13a6,_0x3a2623[_0x46399f(0x187)]()[_0x46399f(0x1ad)](),this['_spheroid']);return _0x377673[_0x46399f(0x1b5)]=_0x46399f(0x18f),this[_0x46399f(0x185)]&&(_0x1858f6['text']=this[_0x46399f(0x198)](_0x474823),_0x377673[_0x46399f(0x1bb)](getStyle(_0x46399f(0x19e),_0x1858f6,_0x3a2623))),_0x474823;}[a45_0x1d20c9(0x1a3)](_0x3fc630){const _0xd7be10=a45_0x1d20c9;this['_unit']=_0x3fc630,this[_0xd7be10(0x181)]&&this['_features'][_0xd7be10(0x1a2)]()>0x0&&this['_features'][_0xd7be10(0x191)](_0x58d821=>{const _0x1b3254=_0xd7be10;this[_0x1b3254(0x18c)](_0x58d821,this['_style']);});}[a45_0x1d20c9(0x193)](){const _0x505373=a45_0x1d20c9,_0x2bcabf=this[_0x505373(0x182)]();if(!_0x2bcabf)return;const _0x558e73=_0x2bcabf[_0x505373(0x190)](),_0x4b984f=_0x558e73===null||_0x558e73===void 0x0?void 0x0:_0x558e73[_0x505373(0x1b2)]();_0x4b984f&&this[_0x505373(0x181)]&&this[_0x505373(0x181)][_0x505373(0x1a2)]()>0x0&&(this['_features'][_0x505373(0x191)](_0x5cd3fa=>{const _0x455854=_0x505373;_0x4b984f[_0x455854(0x1a7)](_0x5cd3fa);}),this[_0x505373(0x181)][_0x505373(0x19c)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a46_0x10ef(){const _0x629177=['未获取到挖除的面','holeStyle','5tDTzVh','setGeometry','getGeometry','HOLESTART','push','onInternal','splited','HOLED','holePolygon','1695454QxNjUW','polygon','2329332lRvlGv','14856000CZbiXj','getMap','6579RgAtOI','feature','holeFeatures','9611173XZeiqQ','dispatchEvent','rgba(255,\x200,\x200,\x201)','1RHmSWw','未获取到地图对象','3441424spwKkG','addTempLayer','setFeatures','length','splitStart','message','12010qzWLki','7YxROry','9oAKBBw','features','drawEnd','1158772piswqf'];a46_0x10ef=function(){return _0x629177;};return a46_0x10ef();}const a46_0x3e7d2c=a46_0x1f7c;(function(_0x1ad3e4,_0x44746c){const _0x1939ee=a46_0x1f7c,_0x4f99ef=_0x1ad3e4();while(!![]){try{const _0x32eb3c=parseInt(_0x1939ee(0x184))/0x1*(parseInt(_0x1939ee(0x19d))/0x2)+parseInt(_0x1939ee(0x18e))/0x3*(-parseInt(_0x1939ee(0x191))/0x4)+-parseInt(_0x1939ee(0x194))/0x5*(parseInt(_0x1939ee(0x19f))/0x6)+parseInt(_0x1939ee(0x18d))/0x7*(parseInt(_0x1939ee(0x186))/0x8)+-parseInt(_0x1939ee(0x1a2))/0x9*(-parseInt(_0x1939ee(0x18c))/0xa)+parseInt(_0x1939ee(0x1a5))/0xb+-parseInt(_0x1939ee(0x1a0))/0xc;if(_0x32eb3c===_0x44746c)break;else _0x4f99ef['push'](_0x4f99ef['shift']());}catch(_0x391272){_0x4f99ef['push'](_0x4f99ef['shift']());}}}(a46_0x10ef,0x82706));import a46_0x975c68 from'./Draw';import a46_0x1fd57e from'ol/events/Event';import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x3e7d2c(0x18a),'HOLED':a46_0x3e7d2c(0x19a)};function a46_0x1f7c(_0x9ac79f,_0x3b6493){const _0x10ef74=a46_0x10ef();return a46_0x1f7c=function(_0x1f7c6e,_0x3bc995){_0x1f7c6e=_0x1f7c6e-0x184;let _0x1eaaef=_0x10ef74[_0x1f7c6e];return _0x1eaaef;},a46_0x1f7c(_0x9ac79f,_0x3b6493);}export class HoleEvent extends a46_0x1fd57e{constructor(_0x2fa11c,_0x661e0f,_0x3aed5b,_0x38ed26){const _0x232047=a46_0x3e7d2c;super(_0x2fa11c),this[_0x232047(0x19c)]=_0x661e0f,this[_0x232047(0x18f)]=_0x3aed5b,this['error']=_0x38ed26;}}export default class Difference extends a46_0x975c68{constructor(_0x430dcc,_0x324fc4){const _0x33e896=a46_0x3e7d2c,_0x42ce0e=(_0x324fc4===null||_0x324fc4===void 0x0?void 0x0:_0x324fc4[_0x33e896(0x193)])||{'outlineColor':_0x33e896(0x1a7),'outlineWidth':0x2,'opacity':0.2,'color':'rgba(255,\x200,\x200,\x201)'};super(_0x33e896(0x19e),{'tipText':_0x324fc4===null||_0x324fc4===void 0x0?void 0x0:_0x324fc4['tipText'],'style':_0x42ce0e}),this['features']=_0x430dcc;const _0x53c266=_0x324fc4||{};this['addTempLayer']=_0x53c266[_0x33e896(0x187)]||![],this['on']=this[_0x33e896(0x199)],this['on'](_0x33e896(0x190),async _0x220d44=>{const _0x23884c=_0x33e896;var _0x12ec48;const _0x4d8b4f=this[_0x23884c(0x1a1)]();let _0x465946=(_0x12ec48=_0x220d44[_0x23884c(0x1a3)])===null||_0x12ec48===void 0x0?void 0x0:_0x12ec48[_0x23884c(0x196)]();!_0x465946&&this[_0x23884c(0x1a6)](new HoleEvent(HoleEventType['HOLED'],undefined,undefined,_0x23884c(0x192)));let _0x13246b=_0x465946;!_0x4d8b4f&&this['dispatchEvent'](new HoleEvent(HoleEventType[_0x23884c(0x19b)],_0x13246b,undefined,_0x23884c(0x185)));(!this[_0x23884c(0x18f)]||this['features'][_0x23884c(0x189)]===0x0)&&this[_0x23884c(0x1a6)](new HoleEvent(HoleEventType[_0x23884c(0x19b)],_0x13246b,undefined,'未获取到擦除要素'));try{this['dispatchEvent'](new HoleEvent(HoleEventType[_0x23884c(0x197)],_0x13246b));const _0x3db5da=this['holeFeatures'](_0x13246b);this[_0x23884c(0x1a6)](new HoleEvent(HoleEventType[_0x23884c(0x19b)],_0x13246b,_0x3db5da));}catch(_0xc6d25a){this['dispatchEvent'](new HoleEvent(HoleEventType[_0x23884c(0x19b)],_0x13246b,undefined,_0xc6d25a[_0x23884c(0x18b)]));}});}[a46_0x3e7d2c(0x1a4)](_0x3184c8){const _0x553e2d=a46_0x3e7d2c,_0x56d953=[];for(let _0xef8791=0x0;_0xef8791<this['features'][_0x553e2d(0x189)];_0xef8791++){const _0x5a85a6=this[_0x553e2d(0x18f)][_0xef8791],_0xf90b70=_0x5a85a6[_0x553e2d(0x196)]();if(!_0xf90b70)continue;const _0x3741f3=difference(_0xf90b70,_0x3184c8);_0x5a85a6[_0x553e2d(0x195)](_0x3741f3),_0x56d953[_0x553e2d(0x198)](_0x5a85a6);}return _0x56d953;}[a46_0x3e7d2c(0x188)](_0x2a1d5c){const _0x211b65=a46_0x3e7d2c;this[_0x211b65(0x18f)]=_0x2a1d5c;}}
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47_0x385dad=a47_0x26ab;(function(_0x59b211,_0x147639){const _0x44e184=a47_0x26ab,_0x3cce51=_0x59b211();while(!![]){try{const _0xf59834=-parseInt(_0x44e184(0x10c))/0x1+-parseInt(_0x44e184(0x134))/0x2*(parseInt(_0x44e184(0x110))/0x3)+parseInt(_0x44e184(0xee))/0x4*(parseInt(_0x44e184(0x124))/0x5)+-parseInt(_0x44e184(0x120))/0x6+-parseInt(_0x44e184(0x11e))/0x7+parseInt(_0x44e184(0x132))/0x8*(parseInt(_0x44e184(0x131))/0x9)+parseInt(_0x44e184(0xff))/0xa*(parseInt(_0x44e184(0x12b))/0xb);if(_0xf59834===_0x147639)break;else _0x3cce51['push'](_0x3cce51['shift']());}catch(_0x1e0729){_0x3cce51['push'](_0x3cce51['shift']());}}}(a47_0x570c,0xdc7d9));function a47_0x26ab(_0x23e28e,_0x25084d){const _0x570cc2=a47_0x570c();return a47_0x26ab=function(_0x26ab05,_0x46634d){_0x26ab05=_0x26ab05-0xe2;let _0x421440=_0x570cc2[_0x26ab05];return _0x421440;},a47_0x26ab(_0x23e28e,_0x25084d);}function a47_0x570c(){const _0x3f999d=['单击结束绘制,右击删除点','pointermove','189CLASqn','216472GzIKzh','buildDrawingFeature','2fIlWVp','startDrawing_','MAX_VALUE','_type','getMap','_minPoints','type','drawStart','handleMoveEvent','_sketchFeature','_tipOverlay','handleDownEvent','coordinate','finishDrawing','setGeometry','_fixPoint','单击拖动绘制','rgba(0,\x200,\x200,\x200.4)','Ellipse','_showTip','12px\x20Calibre,sans-serif','feature','clear','getText','_overlay','setText','getActive','drawMoving','stopDown','_style','_snapTolerance','handleUpEvent','updateState_','push','pixel','单击增加点,右击删除点','getOverlay','4488VspQiO','unInternal','addChangeListener','button','left','onInternal','DRAWADDPOINT','_features','_source','preventDefault','snapTolerance','wrapX','dispatchEvent','minPoint','getProjection','drawEnd','updateSketchFeatures_','20bGqxoD','DRAWEND','once','setStyle','getGeometry','tipText','point','abortDrawing','length','_tipFeature','setMap','drawAddPoint','addFeature','1267177gItpfc','revert','indexOf','getSource','5322849nTFPKv','DRAWSTART','updateTip_','style','coordinates','DRAWMOVING','slice','onceInternal','单击增加点,右击删除点双击完成绘制','projection','source','getPixelFromCoordinate','getType','addPoint','7929348IAyQyI','getCode','6230184JSodFa','createMultiPointFeature','originalEvent','getView','3790BMukXO','handleDragEvent','DRAWABORT','drawAbort','_drawingCoordinates','abortDrawing_','rectangle','25833511NHOJxM','pop','_isStayDraw','_tipStyle'];a47_0x570c=function(){return _0x3f999d;};return a47_0x570c();}import a47_0x25281a from'ol/events/Event';import a47_0x3bbea4 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a47_0x5ea314 from'ol/Feature';import a47_0x497403,{createEditingStyle}from'ol/style/Style';import a47_0x1cac20 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x3fe3e9 from'ol/style/Text';import a47_0x50a70c from'ol/style/Fill';import a47_0x1b562e from'ol/interaction/Property';import a47_0x2f7ce1 from'ol/layer/Vector';import a47_0x4a6d59 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x385dad(0x13b),'DRAWEND':a47_0x385dad(0xfd),'DRAWABORT':a47_0x385dad(0x127),'DRAWADDPOINT':a47_0x385dad(0x10a),'DRAWMOVING':a47_0x385dad(0xe4)};export class DrawEvent extends a47_0x25281a{constructor(_0x3e3752,_0x188eb6,_0x3788bf){const _0x2a2192=a47_0x385dad;super(_0x3e3752),this[_0x2a2192(0x149)]=_0x188eb6,this[_0x2a2192(0x114)]=_0x3788bf;}}export class ShEvent extends a47_0x25281a{constructor(_0x5f989e,_0xf6083c,_0x58ed7b,_0x4fc918,_0x5ee207){const _0x5d7493=a47_0x385dad;super(_0x5f989e),this[_0x5d7493(0x119)]=_0x5ee207,this['type']=_0xf6083c,this[_0x5d7493(0x140)]=_0x58ed7b,this['coordinates']=_0x4fc918;}}export default class Draw extends a47_0x3bbea4{constructor(_0x4b803b,_0x2ffd78){const _0x5633a5=a47_0x385dad,_0xcd05f2=_0x2ffd78?_0x2ffd78:{};!_0xcd05f2[_0x5633a5(0xe5)]&&(_0xcd05f2['stopDown']=![]);super(_0x2ffd78),this['on']=this[_0x5633a5(0xf3)],this[_0x5633a5(0x101)]=this[_0x5633a5(0x117)],this['un']=this[_0x5633a5(0xef)],this['_isStayDraw']=![],this['_type']=_0x4b803b,this[_0x5633a5(0xe6)]=_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0x113)],this[_0x5633a5(0xf6)]=_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0x11a)],this[_0x5633a5(0xf5)]=_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78['features'];const _0x7fa835=getPlotCount(this[_0x5633a5(0x137)]);this[_0x5633a5(0x139)]=_0x7fa835[_0x5633a5(0xfb)],this[_0x5633a5(0x143)]=_0x7fa835['fixPoint'],this[_0x5633a5(0x104)]=_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0x104)],this[_0x5633a5(0x147)]=(_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78['showTip'])==![]?![]:!![],this['_snapTolerance']=_0xcd05f2[_0x5633a5(0xf8)]?_0xcd05f2['snapTolerance']:0x6,this[_0x5633a5(0x108)]=new a47_0x5ea314(),this[_0x5633a5(0x12e)]=new a47_0x497403({'text':new a47_0x3fe3e9({'font':_0x5633a5(0x148),'fill':new a47_0x50a70c({'color':'rgba(255,\x20255,\x20255,\x201)'}),'backgroundFill':new a47_0x50a70c({'color':_0x5633a5(0x145)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x5633a5(0xf2),'offsetX':0xf})}),this['_drawingCoordinates']=[],this[_0x5633a5(0x13e)]=new a47_0x2f7ce1({'source':new a47_0x1cac20({'useSpatialIndex':![],'wrapX':(_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0xf9)])?_0x2ffd78[_0x5633a5(0xf9)]:![]})}),this[_0x5633a5(0x14c)]=new a47_0x2f7ce1({'source':new a47_0x1cac20({'useSpatialIndex':![],'wrapX':(_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0xf9)])?_0x2ffd78['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0x5633a5(0xf0)](a47_0x1b562e['ACTIVE'],this[_0x5633a5(0xe9)]);}['updateState_'](){const _0x614079=a47_0x385dad,_0x4374e8=this['getMap'](),_0x8ba4d6=this[_0x614079(0xe3)]();(!_0x4374e8||!_0x8ba4d6)&&this[_0x614079(0x106)](),this[_0x614079(0x14c)][_0x614079(0x109)](_0x8ba4d6?_0x4374e8:null),this['_tipOverlay']['setMap'](_0x8ba4d6?_0x4374e8:null);}[a47_0x385dad(0x109)](_0xc85b42){super['setMap'](_0xc85b42),this['updateState_']();}['setStyle'](_0x4de499){const _0x1eff10=a47_0x385dad;this[_0x1eff10(0xe6)]=_0x4de499?_0x4de499:{};}[a47_0x385dad(0xed)](){const _0x4c1174=a47_0x385dad;return this[_0x4c1174(0x14c)];}[a47_0x385dad(0x13f)](_0x5d10de){const _0x2f78f0=a47_0x385dad;if(_0x5d10de[_0x2f78f0(0x122)][_0x2f78f0(0xf1)]===0x2)return _0x5d10de[_0x2f78f0(0x122)]['preventDefault'](),this[_0x2f78f0(0x10d)](),this[_0x2f78f0(0x13c)](_0x5d10de),![];return!![];}[a47_0x385dad(0xe8)](_0x3b9445){const _0x36d9fe=a47_0x385dad;var _0x1cf7f3,_0xbf2e58;if(this['_type']==_0x36d9fe(0x12a)&&this[_0x36d9fe(0x128)][_0x36d9fe(0x107)]<0x1)return this['dispatchEvent'](new DrawEvent(DrawEventType[_0x36d9fe(0x100)],undefined,[_0x3b9445[_0x36d9fe(0x140)]])),![];if(!this[_0x36d9fe(0x12d)])this[_0x36d9fe(0x135)](_0x3b9445['coordinate']),this[_0x36d9fe(0xfa)](new ShEvent(DrawEventType[_0x36d9fe(0xf4)],this[_0x36d9fe(0x137)],_0x3b9445[_0x36d9fe(0x140)],this[_0x36d9fe(0x128)],(_0x1cf7f3=this[_0x36d9fe(0x138)]())===null||_0x1cf7f3===void 0x0?void 0x0:_0x1cf7f3[_0x36d9fe(0x123)]()['getProjection']()[_0x36d9fe(0x11f)]())),this[_0x36d9fe(0x137)]==_0x36d9fe(0x105)&&this[_0x36d9fe(0x141)]();else{if(this[_0x36d9fe(0x128)]&&this[_0x36d9fe(0x128)][_0x36d9fe(0x107)]>0x0){if(this['atFinish_'](_0x3b9445[_0x36d9fe(0xeb)]))return this[_0x36d9fe(0x141)](),_0x3b9445[_0x36d9fe(0xf7)](),![];let _0x56e9c6=this[_0x36d9fe(0x128)][_0x36d9fe(0x107)]+0x1;_0x56e9c6<=this[_0x36d9fe(0x143)]&&this['addPoint'](_0x3b9445['coordinate']),this[_0x36d9fe(0xfa)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x36d9fe(0x137)],_0x3b9445[_0x36d9fe(0x140)],this['_drawingCoordinates'],(_0xbf2e58=this[_0x36d9fe(0x138)]())===null||_0xbf2e58===void 0x0?void 0x0:_0xbf2e58['getView']()[_0x36d9fe(0xfc)]()[_0x36d9fe(0x11f)]())),_0x56e9c6>=this[_0x36d9fe(0x139)]&&this[_0x36d9fe(0x133)](this['_drawingCoordinates']),_0x56e9c6===this[_0x36d9fe(0x143)]&&this['finishDrawing']();}}return _0x3b9445[_0x36d9fe(0xf7)](),![];}[a47_0x385dad(0x125)](_0x4d7b91){const _0x21d606=a47_0x385dad;var _0x24682b;if(this[_0x21d606(0x137)]==_0x21d606(0x12a)&&_0x4d7b91[_0x21d606(0x122)][_0x21d606(0x13a)]==_0x21d606(0x130)){if(!this[_0x21d606(0x12d)]){this['startDrawing_'](_0x4d7b91['coordinate']),this[_0x21d606(0xfa)](new ShEvent(DrawEventType[_0x21d606(0xf4)],this['_type'],_0x4d7b91[_0x21d606(0x140)],this[_0x21d606(0x128)],(_0x24682b=this[_0x21d606(0x138)]())===null||_0x24682b===void 0x0?void 0x0:_0x24682b['getView']()[_0x21d606(0xfc)]()[_0x21d606(0x11f)]()));return;}let _0x2abfb7=[...this[_0x21d606(0x128)],_0x4d7b91[_0x21d606(0x140)]];this[_0x21d606(0x133)](_0x2abfb7),this[_0x21d606(0xfa)](new DrawEvent(DrawEventType[_0x21d606(0x115)],this[_0x21d606(0x13d)],this[_0x21d606(0x128)]));}}[a47_0x385dad(0x13c)](_0x9955ef){const _0x7ab948=a47_0x385dad;var _0x3dced1,_0x32772b,_0x473da5;let _0x1e4cbf='';this['_type']==_0x7ab948(0x130)&&(this['startDrawing_'](_0x9955ef[_0x7ab948(0x140)]),this[_0x7ab948(0xfa)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x7ab948(0x137)],_0x9955ef[_0x7ab948(0x140)],this[_0x7ab948(0x128)],(_0x3dced1=this['getMap']())===null||_0x3dced1===void 0x0?void 0x0:_0x3dced1[_0x7ab948(0x123)]()[_0x7ab948(0xfc)]()[_0x7ab948(0x11f)]())),this[_0x7ab948(0x141)]());!this[_0x7ab948(0x12d)]?_0x1e4cbf=this[_0x7ab948(0x137)]==_0x7ab948(0x12a)?_0x7ab948(0x144):'单击开始绘制':(_0x1e4cbf=_0x7ab948(0xec),((_0x32772b=this[_0x7ab948(0x128)])===null||_0x32772b===void 0x0?void 0x0:_0x32772b[_0x7ab948(0x107)])===this[_0x7ab948(0x143)]-0x1&&(_0x1e4cbf=_0x7ab948(0x12f)),((_0x473da5=this['_drawingCoordinates'])===null||_0x473da5===void 0x0?void 0x0:_0x473da5[_0x7ab948(0x107)])>=this[_0x7ab948(0x139)]&&this['_fixPoint']===Number['MAX_VALUE']&&(_0x1e4cbf=_0x7ab948(0x118)));this['tipText']!=undefined&&(_0x1e4cbf=this[_0x7ab948(0x104)]);this[_0x7ab948(0x112)](_0x9955ef[_0x7ab948(0x140)],_0x1e4cbf);if(this[_0x7ab948(0x12d)]&&this['_type']!='rectangle'){let _0x5d4451=[...this[_0x7ab948(0x128)],_0x9955ef['coordinate']];this['buildDrawingFeature'](_0x5d4451);}this['dispatchEvent'](new DrawEvent(DrawEventType[_0x7ab948(0x115)],this[_0x7ab948(0x13d)],this['_drawingCoordinates']));}['atFinish_'](_0x4f413e){const _0x76e4c9=a47_0x385dad;var _0x4e984c;let _0x1a5b49=![],_0x4be299=this[_0x76e4c9(0x128)][_0x76e4c9(0x107)];if(_0x4be299>this[_0x76e4c9(0x139)]&&this[_0x76e4c9(0x143)]===Number[_0x76e4c9(0x136)]){const _0x598152=this['_drawingCoordinates'][this[_0x76e4c9(0x128)]['length']-0x1],_0x226f46=(_0x4e984c=this[_0x76e4c9(0x138)]())===null||_0x4e984c===void 0x0?void 0x0:_0x4e984c[_0x76e4c9(0x11b)](_0x598152),_0x202ce6=_0x4f413e[0x0]-(_0x226f46?_0x226f46[0x0]:0x0),_0x1538e3=_0x4f413e[0x1]-(_0x226f46?_0x226f46[0x1]:0x0);_0x1a5b49=Math['sqrt'](_0x202ce6*_0x202ce6+_0x1538e3*_0x1538e3)<=this[_0x76e4c9(0xe7)];}return _0x1a5b49;}[a47_0x385dad(0x135)](_0x47d899){const _0x40bf5e=a47_0x385dad;this[_0x40bf5e(0x12d)]=!![],this[_0x40bf5e(0x128)]=[_0x47d899[_0x40bf5e(0x116)]()],this['_sketchFeature']=this['createMultiPointFeature'](),this[_0x40bf5e(0xfe)](),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x40bf5e(0x111)],this[_0x40bf5e(0x13d)],this[_0x40bf5e(0x128)]));}[a47_0x385dad(0x141)](){const _0x2fd53e=a47_0x385dad;if(this['_drawingCoordinates']['length']>this[_0x2fd53e(0x139)]){this[_0x2fd53e(0x133)](this['_drawingCoordinates']);let _0x2e63b4=this[_0x2fd53e(0x128)];const _0x250d3e=this[_0x2fd53e(0x129)]();if(!_0x250d3e)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x2fd53e(0x100)],_0x250d3e,_0x2e63b4)),this[_0x2fd53e(0xf5)]&&this[_0x2fd53e(0xf5)]['push'](_0x250d3e),this['_source']&&this[_0x2fd53e(0xf6)]['addFeature'](_0x250d3e);}}[a47_0x385dad(0x11d)](_0x8996f3){const _0x2f5393=a47_0x385dad;this[_0x2f5393(0x128)][_0x2f5393(0xea)](_0x8996f3),this[_0x2f5393(0x13d)]=this[_0x2f5393(0x121)](),this['updateSketchFeatures_']();}[a47_0x385dad(0x121)](){const _0x268ac8=a47_0x385dad,_0x247f4f=new MultiPoint(this['_drawingCoordinates']);let _0x15e6f5=new a47_0x5ea314();return _0x15e6f5[_0x268ac8(0x142)](_0x247f4f),_0x15e6f5;}[a47_0x385dad(0x129)](){const _0x318021=a47_0x385dad;var _0x2ef566,_0x25c450;this[_0x318021(0x12d)]=![];const _0x5b02f5=this[_0x318021(0x13d)];return this['_sketchFeature']=undefined,this[_0x318021(0x128)]=[],(_0x2ef566=this[_0x318021(0x14c)][_0x318021(0x10f)]())===null||_0x2ef566===void 0x0?void 0x0:_0x2ef566[_0x318021(0x14a)](!![]),(_0x25c450=this['_tipOverlay'][_0x318021(0x10f)]())===null||_0x25c450===void 0x0?void 0x0:_0x25c450[_0x318021(0x14a)](!![]),_0x5b02f5;}[a47_0x385dad(0x106)](){const _0x1e77ca=a47_0x385dad,_0x119cb8=this['abortDrawing_']();_0x119cb8&&this[_0x1e77ca(0xfa)](new DrawEvent(DrawEventType[_0x1e77ca(0x126)],_0x119cb8,this[_0x1e77ca(0x128)]));}['buildDrawingFeature'](_0x32f59a){const _0x5cff6d=a47_0x385dad;this[_0x5cff6d(0x13d)]=new a47_0x5ea314();let _0x1727c1=createPlot(this[_0x5cff6d(0x137)],_0x32f59a);if(!_0x1727c1)return;this[_0x5cff6d(0x13d)]['setGeometry'](_0x1727c1);let _0x574636=[a47_0x4a6d59['Circle'],a47_0x4a6d59['Ellipsoid'],a47_0x4a6d59[_0x5cff6d(0x146)]];if(_0x574636[_0x5cff6d(0x10e)](this[_0x5cff6d(0x137)])>-0x1&&this['_style']){}const _0x191171=this[_0x5cff6d(0x138)]();this['_sketchFeature'][_0x5cff6d(0x102)](getStyle(this[_0x5cff6d(0x137)],this[_0x5cff6d(0xe6)],this[_0x5cff6d(0x138)]())),this[_0x5cff6d(0xfe)]();}[a47_0x385dad(0xfe)](){const _0x44aa5f=a47_0x385dad,_0x56bef2=this[_0x44aa5f(0x14c)][_0x44aa5f(0x10f)]();_0x56bef2&&this[_0x44aa5f(0x13d)]&&(_0x56bef2[_0x44aa5f(0x14a)](!![]),_0x56bef2[_0x44aa5f(0x10b)](this['_sketchFeature']));}['revert'](){const _0x56c30e=a47_0x385dad;if(this['_isStayDraw']){if(this[_0x56c30e(0x128)]&&this['_drawingCoordinates']['length']>0x0){const _0x2c9c05=this['_overlay']['getSource']();_0x2c9c05===null||_0x2c9c05===void 0x0?void 0x0:_0x2c9c05[_0x56c30e(0x14a)](!![]),this[_0x56c30e(0x128)][_0x56c30e(0x12c)](),this[_0x56c30e(0x128)][_0x56c30e(0x107)]>=this[_0x56c30e(0x139)]&&this['buildDrawingFeature'](this[_0x56c30e(0x128)]),this['_drawingCoordinates'][_0x56c30e(0x107)]===0x0&&(this[_0x56c30e(0x12d)]=![]);}}}[a47_0x385dad(0x112)](_0x51b32c,_0x1147d6){const _0x5a2443=a47_0x385dad;var _0x4f9426,_0x5744f1,_0x11e700,_0x3f4db2;if(!this[_0x5a2443(0x147)])return;const _0x2bef94=this[_0x5a2443(0x13e)][_0x5a2443(0x10f)]();_0x2bef94===null||_0x2bef94===void 0x0?void 0x0:_0x2bef94[_0x5a2443(0x14a)](!![]),(_0x4f9426=this[_0x5a2443(0x108)])===null||_0x4f9426===void 0x0?void 0x0:_0x4f9426[_0x5a2443(0x142)](new Point(_0x51b32c)),(_0x11e700=(_0x5744f1=this[_0x5a2443(0x12e)])===null||_0x5744f1===void 0x0?void 0x0:_0x5744f1[_0x5a2443(0x14b)]())===null||_0x11e700===void 0x0?void 0x0:_0x11e700[_0x5a2443(0xe2)](_0x1147d6),(_0x3f4db2=this[_0x5a2443(0x108)])===null||_0x3f4db2===void 0x0?void 0x0:_0x3f4db2[_0x5a2443(0x102)](this[_0x5a2443(0x12e)]),this[_0x5a2443(0x108)]&&(_0x2bef94===null||_0x2bef94===void 0x0?void 0x0:_0x2bef94[_0x5a2443(0x10b)](this['_tipFeature']));}}function getDefaultStyleFunction(){const _0x58a709=createEditingStyle();return function(_0x3a3817,_0x53795e){const _0x7b5ec8=a47_0x26ab,_0x2ec2d2=_0x58a709[_0x3a3817['getGeometry']()[_0x7b5ec8(0x11c)]()];if(_0x2ec2d2&&'Rectangle'==_0x3a3817[_0x7b5ec8(0x103)]()['getType']()){}};}
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x4ae047=a48_0x206c;(function(_0x1c4f8e,_0x325eba){const _0x2ee3ed=a48_0x206c,_0x34cbc5=_0x1c4f8e();while(!![]){try{const _0x5e277c=-parseInt(_0x2ee3ed(0x13f))/0x1*(-parseInt(_0x2ee3ed(0x136))/0x2)+parseInt(_0x2ee3ed(0x134))/0x3*(-parseInt(_0x2ee3ed(0x137))/0x4)+parseInt(_0x2ee3ed(0x13e))/0x5*(parseInt(_0x2ee3ed(0x12b))/0x6)+parseInt(_0x2ee3ed(0x12f))/0x7*(-parseInt(_0x2ee3ed(0x12d))/0x8)+-parseInt(_0x2ee3ed(0x13c))/0x9+-parseInt(_0x2ee3ed(0x13b))/0xa*(-parseInt(_0x2ee3ed(0x12e))/0xb)+parseInt(_0x2ee3ed(0x12a))/0xc;if(_0x5e277c===_0x325eba)break;else _0x34cbc5['push'](_0x34cbc5['shift']());}catch(_0x2c6cc5){_0x34cbc5['push'](_0x34cbc5['shift']());}}}(a48_0x5beb,0x58053));function a48_0x206c(_0x4179b1,_0x4c6d13){const _0x5beb7d=a48_0x5beb();return a48_0x206c=function(_0x206c97,_0x4a596e){_0x206c97=_0x206c97-0x12a;let _0x5c5ab7=_0x5beb7d[_0x206c97];return _0x5c5ab7;},a48_0x206c(_0x4179b1,_0x4c6d13);}export default class InteractionManager{constructor(_0x404164){const _0x167767=a48_0x206c;this[_0x167767(0x135)]=_0x404164,this[_0x167767(0x138)]=new Map();}[a48_0x4ae047(0x139)](_0x2fc8bc,_0x1d857b){const _0x38a14d=a48_0x4ae047;this[_0x38a14d(0x138)][_0x38a14d(0x133)](_0x2fc8bc)&&this[_0x38a14d(0x130)](_0x2fc8bc),_0x1d857b[_0x38a14d(0x12c)](_0x38a14d(0x132),_0x2fc8bc),this[_0x38a14d(0x138)][_0x38a14d(0x12c)](_0x2fc8bc,_0x1d857b),this[_0x38a14d(0x135)][_0x38a14d(0x139)](_0x1d857b);}['removeInteraction'](_0x4ce8ec){const _0x3cbde1=a48_0x4ae047,_0x4f9d0e=this['interactions']['get'](_0x4ce8ec);_0x4f9d0e&&(this[_0x3cbde1(0x135)][_0x3cbde1(0x130)](_0x4f9d0e),this[_0x3cbde1(0x138)][_0x3cbde1(0x131)](_0x4ce8ec));}['removeAllInteractions'](){const _0x334c4e=a48_0x4ae047;this[_0x334c4e(0x138)][_0x334c4e(0x13d)](_0x25dea7=>{const _0xcf7748=_0x334c4e;this[_0xcf7748(0x135)][_0xcf7748(0x130)](_0x25dea7);}),this['interactions'][_0x334c4e(0x140)]();}[a48_0x4ae047(0x13a)](_0x256933){return this['interactions']['get'](_0x256933);}}function a48_0x5beb(){const _0x3fa89f=['7KWXZoK','removeInteraction','delete','name','has','6315mEUAmu','map','28UNtxzm','1008ChfxeB','interactions','addInteraction','getInteraction','10JmDgip','2038275TALGOH','forEach','2604515KAqMWo','39446IlDieW','clear','2572296xOkXsQ','6BtSEci','set','1382624KhZsRc','30679yoVonS'];a48_0x5beb=function(){return _0x3fa89f;};return a48_0x5beb();}
|
package/interaction/Modify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a49_0x405964=a49_0x3e71;(function(_0x221c10,_0xd3b741){var _0x8f774d=a49_0x3e71,_0x1c4d39=_0x221c10();while(!![]){try{var _0x460531=parseInt(_0x8f774d(0x154))/0x1+parseInt(_0x8f774d(0x165))/0x2*(-parseInt(_0x8f774d(0x162))/0x3)+-parseInt(_0x8f774d(0x152))/0x4+-parseInt(_0x8f774d(0x166))/0x5*(parseInt(_0x8f774d(0x14c))/0x6)+parseInt(_0x8f774d(0x15f))/0x7*(-parseInt(_0x8f774d(0x160))/0x8)+parseInt(_0x8f774d(0x14d))/0x9*(parseInt(_0x8f774d(0x161))/0xa)+parseInt(_0x8f774d(0x15a))/0xb;if(_0x460531===_0xd3b741)break;else _0x1c4d39['push'](_0x1c4d39['shift']());}catch(_0x37b136){_0x1c4d39['push'](_0x1c4d39['shift']());}}}(a49_0x22a8,0xbe517));import{Modify as a49_0x46c2fd,Select,Translate as a49_0x1c5767}from'ol/interaction';import a49_0x5a638a from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';import{platformModifierKeyOnly}from'ol/events/condition';import{Style,Circle,Fill,Stroke}from'ol/style';function a49_0x3e71(_0x2f85bd,_0x4a2e5b){var _0x22a894=a49_0x22a8();return a49_0x3e71=function(_0x3e71ed,_0x536631){_0x3e71ed=_0x3e71ed-0x145;var _0x139694=_0x22a894[_0x3e71ed];return _0x139694;},a49_0x3e71(_0x2f85bd,_0x4a2e5b);}const selectModifyStyle=new Style({'image':new Circle({'radius':0x5,'fill':new Fill({'color':'rgba(25,25,125,0.8)'}),'stroke':new Stroke({'color':a49_0x405964(0x164),'width':0x2})}),'stroke':new Stroke({'color':a49_0x405964(0x15e),'width':0x2}),'fill':new Fill({'color':a49_0x405964(0x150)}),'geometry':_0x4e4bf9=>{var _0x3235f8=a49_0x405964,_0x258402,_0x2c34fe,_0x24a3e3,_0x32d0b1,_0x29da8a;let _0x30fc01=[];if(((_0x258402=_0x4e4bf9[_0x3235f8(0x14a)]())===null||_0x258402===void 0x0?void 0x0:_0x258402[_0x3235f8(0x153)]())===_0x3235f8(0x159))(_0x2c34fe=_0x4e4bf9[_0x3235f8(0x14a)]())===null||_0x2c34fe===void 0x0?void 0x0:_0x2c34fe['getCoordinates']()[0x0][_0x3235f8(0x15b)](_0xc5d2bf=>{var _0x1de28d=_0x3235f8;_0x30fc01[_0x1de28d(0x151)](_0xc5d2bf);});else{if(((_0x24a3e3=_0x4e4bf9[_0x3235f8(0x14a)]())===null||_0x24a3e3===void 0x0?void 0x0:_0x24a3e3[_0x3235f8(0x153)]())===_0x3235f8(0x167))_0x4e4bf9[_0x3235f8(0x14a)]()['getCoordinates']()[0x0][_0x3235f8(0x15b)](_0x2eef0f=>{var _0x52dcb9=_0x3235f8;_0x2eef0f['forEach'](_0x24457b=>{var _0x91755e=a49_0x3e71;_0x30fc01[_0x91755e(0x151)](_0x24457b);}),_0x30fc01[_0x52dcb9(0x151)](_0x2eef0f);});else((_0x32d0b1=_0x4e4bf9[_0x3235f8(0x14a)]())===null||_0x32d0b1===void 0x0?void 0x0:_0x32d0b1[_0x3235f8(0x153)]())==='LineString'?_0x30fc01=_0x4e4bf9['getGeometry']()['getCoordinates']():_0x30fc01=[(_0x29da8a=_0x4e4bf9[_0x3235f8(0x14a)]())===null||_0x29da8a===void 0x0?void 0x0:_0x29da8a[_0x3235f8(0x163)]()];}return new a49_0x5a638a([_0x4e4bf9[_0x3235f8(0x14a)](),new MultiPoint(_0x30fc01)]);}});export default class Modify extends Select{constructor(_0x571455){var _0x4619c1=a49_0x405964;_0x571455=_0x571455||{};const _0x1d0911=Object[_0x4619c1(0x16a)]({},_0x571455);_0x1d0911[_0x4619c1(0x155)]=selectModifyStyle,_0x1d0911[_0x4619c1(0x158)]=_0x533dfc=>{var _0x3f27d5=_0x4619c1;if(!_0x533dfc[_0x3f27d5(0x156)])return![];if(this[_0x3f27d5(0x14b)]==undefined||this[_0x3f27d5(0x14b)][_0x3f27d5(0x169)]==0x0)return![];return this['sourceFeatures'][_0x3f27d5(0x168)](_0x3e8b4b=>_0x3e8b4b[_0x3f27d5(0x145)]()===_0x533dfc[_0x3f27d5(0x145)]());},super(_0x1d0911),this['map']=null,this['sourceFeatures']=_0x571455['editFeatures'],this[_0x4619c1(0x146)]=new a49_0x46c2fd({'features':this[_0x4619c1(0x15d)]()}),this[_0x4619c1(0x148)]=new a49_0x1c5767({'features':this['getFeatures'](),'condition':platformModifierKeyOnly}),this[_0x4619c1(0x15d)]()['on'](_0x4619c1(0x14f),_0x9f81b9=>{var _0x1ba88f=_0x4619c1,_0x960918,_0x9c593f;this[_0x1ba88f(0x147)]=this['getMap'](),(_0x960918=this[_0x1ba88f(0x14e)]())===null||_0x960918===void 0x0?void 0x0:_0x960918[_0x1ba88f(0x149)](this['modifyInteraction']),(_0x9c593f=this[_0x1ba88f(0x14e)]())===null||_0x9c593f===void 0x0?void 0x0:_0x9c593f[_0x1ba88f(0x149)](this['translate']);}),this['getFeatures']()['on']('remove',_0x459a1c=>{var _0x3c4553=_0x4619c1,_0x29815a,_0x3a9f49;(_0x29815a=this[_0x3c4553(0x14e)]())===null||_0x29815a===void 0x0?void 0x0:_0x29815a['removeInteraction'](this['modifyInteraction']),(_0x3a9f49=this['getMap']())===null||_0x3a9f49===void 0x0?void 0x0:_0x3a9f49[_0x3c4553(0x15c)](this[_0x3c4553(0x148)]),this['getMap']()['refresh']();});}[a49_0x405964(0x157)](_0x13cf43){var _0x40de1b=a49_0x405964;super[_0x40de1b(0x157)](_0x13cf43),!_0x13cf43&&this['map']&&(this[_0x40de1b(0x147)][_0x40de1b(0x15c)](this['modifyInteraction']),this[_0x40de1b(0x147)]['removeInteraction'](this[_0x40de1b(0x148)]));}}function a49_0x22a8(){var _0x4ba88b=['filter','Polygon','56068639ZohdSf','forEach','removeInteraction','getFeatures','rgba(0,255,255,0.6)','4814985RUqdxb','8rXauNK','7020ElOvbR','315ntPfEP','getCoordinates','rgba(255,255,255,0.6)','29554kotPuG','3568205BlTfXE','MultiPolygon','some','length','assign','getId','modifyInteraction','map','translate','addInteraction','getGeometry','sourceFeatures','12cVqhyT','5238nufVIs','getMap','add','rgba(0,255,255,0.2)','push','5822136sVvNwb','getType','396086MlRFbF','style','isSelected','setMap'];a49_0x22a8=function(){return _0x4ba88b;};return a49_0x22a8();}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x2b2ee3=a50_0x2e7c;(function(_0x5661ad,_0x2c8559){const _0x4b7c4c=a50_0x2e7c,_0x3897cd=_0x5661ad();while(!![]){try{const _0x741bc=-parseInt(_0x4b7c4c(0x1b2))/0x1*(-parseInt(_0x4b7c4c(0x1b7))/0x2)+parseInt(_0x4b7c4c(0x1ce))/0x3+parseInt(_0x4b7c4c(0x1b9))/0x4+parseInt(_0x4b7c4c(0x1b5))/0x5+parseInt(_0x4b7c4c(0x1eb))/0x6*(parseInt(_0x4b7c4c(0x1f5))/0x7)+-parseInt(_0x4b7c4c(0x1d7))/0x8+parseInt(_0x4b7c4c(0x1c6))/0x9*(-parseInt(_0x4b7c4c(0x1b6))/0xa);if(_0x741bc===_0x2c8559)break;else _0x3897cd['push'](_0x3897cd['shift']());}catch(_0x283289){_0x3897cd['push'](_0x3897cd['shift']());}}}(a50_0x1399,0x9e242));import a50_0x3f06dd from'./Draw';import a50_0x17aa4a from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x2ef043 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';function a50_0x1399(){const _0x3ab4ee=['SELECTED','cancePointStyle','copy','seletctEditeFeature','2696320WNcsGC','未获取到几何','url','lineStyle','selectStart','polygonFeatures','MultiPolygon','MultiPoint','allSelectedFeatures','selectLayer','canceLineStyle','selected','lineFeatures','push','currentLayers','getGeometry','getCode','getSource','getType','getProjection','2826PkyAYw','getArray','getVisible','coordinates','cancePolygonStyle','getLineTempLayer','error','getLayerById','layerId','getPointTempLayer','10059oHqDSh','addEventListener','feature','holdCtrl','layerInfo','Point','import','getPolygonTempLayer','selectTempLayer','length','getLayers','addFeatures','getView','23IpDfYE','pointStyle','filter','6424730LmkUSv','71930UOPpsX','92118QKAwna','fromType','2944108NjMYIe','selectLayers','ctrlKey','MultiLineString','setStyle','tipText','selectedPointFeatures','getMap','selectIndex','selectedPolygonFeatures','selectedLineFeatures','pixelDistance','setSelectLayers','4311PVuvQO','polygonStyle','pointFeatures','Polygon','onInternal','keyup','selectGeom','map','2019228ZZAfLh','addTempLayer','SELECTSTART','allFeatures','includes'];a50_0x1399=function(){return _0x3ab4ee;};return a50_0x1399();}function a50_0x2e7c(_0x4a9fa3,_0xea0cbe){const _0x139961=a50_0x1399();return a50_0x2e7c=function(_0x2e7ca0,_0x2e10a3){_0x2e7ca0=_0x2e7ca0-0x1b1;let _0x1d1a77=_0x139961[_0x2e7ca0];return _0x1d1a77;},a50_0x2e7c(_0x4a9fa3,_0xea0cbe);}import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'SELECTSTART':a50_0x2b2ee3(0x1db),'SELECTED':a50_0x2b2ee3(0x1e2)};export class SelectEvent extends a50_0x17aa4a{constructor(_0xa49c6d,_0xc9c700,_0x5096f7,_0x151cd1,_0x197f08,_0x2781bc,_0x2e35b9,_0x3e881d,_0x1d1a9b){const _0x28143b=a50_0x2b2ee3;super(_0xa49c6d),this[_0x28143b(0x1cc)]=_0x5096f7,this[_0x28143b(0x1ee)]=_0x151cd1,this[_0x28143b(0x1c8)]=_0x197f08,this[_0x28143b(0x1e3)]=_0x2781bc,this[_0x28143b(0x1dc)]=_0x2e35b9,this[_0x28143b(0x1d1)]=_0x3e881d,this[_0x28143b(0x1f1)]=_0x1d1a9b,this[_0x28143b(0x1f8)]=_0xc9c700;}}export default class Select extends a50_0x3f06dd{constructor(_0xada825,_0x538e9d){const _0x195f6b=a50_0x2b2ee3;super(_0xada825,{'tipText':_0x538e9d===null||_0x538e9d===void 0x0?void 0x0:_0x538e9d[_0x195f6b(0x1be)]}),this[_0x195f6b(0x1bf)]=[],this['selectedLineFeatures']=[],this['selectedPolygonFeatures']=[],this['allSelectedFeatures']=[];const _0x37dddf=_0x538e9d||{};this[_0x195f6b(0x1cf)]=_0x37dddf[_0x195f6b(0x1cf)]||![],this[_0x195f6b(0x1e5)]=_0x37dddf[_0x195f6b(0x1ba)],this[_0x195f6b(0x1fd)]=_0x37dddf[_0x195f6b(0x1fd)]===undefined?!![]:_0x37dddf[_0x195f6b(0x1fd)],this[_0x195f6b(0x1c4)]=_0x37dddf[_0x195f6b(0x1c4)]===undefined?0x5:_0x37dddf[_0x195f6b(0x1c4)],this[_0x195f6b(0x1b3)]=_0x37dddf[_0x195f6b(0x1b3)]?getStyle(_0x37dddf[_0x195f6b(0x1b3)]):getSelectPointStyle(),this['cancePointStyle']=_0x37dddf['cancePointStyle']?getStyle(_0x37dddf[_0x195f6b(0x1d4)]):getSelectCancePointStyle(),this['lineStyle']=_0x37dddf[_0x195f6b(0x1da)]?getStyle(_0x37dddf[_0x195f6b(0x1da)]):getSelectLineStyle(),this[_0x195f6b(0x1e1)]=_0x37dddf['canceLineStyle']?getStyle(_0x37dddf[_0x195f6b(0x1e1)]):getSelectCancelLineStyle(),this[_0x195f6b(0x1c7)]=_0x37dddf['polygonStyle']?getStyle(_0x37dddf[_0x195f6b(0x1c7)]):getSelectPolygonStyle(),this[_0x195f6b(0x1ef)]=_0x37dddf[_0x195f6b(0x1ef)]?getStyle(_0x37dddf[_0x195f6b(0x1ef)]):getSelectCancelPolygonStyle(),this[_0x195f6b(0x1f8)]=![];let _0x1a3765;this['on']=this[_0x195f6b(0x1ca)],this['on']('drawEnd',async _0x1f2111=>{const _0x272552=_0x195f6b,_0x1696a1=this[_0x272552(0x1f8)],_0x7c192f=this[_0x272552(0x1c0)]();if(!_0x7c192f)return;try{let _0x511ebf=undefined;if(!_0x1f2111['feature']&&_0x1f2111['coordinates']&&_0x1f2111[_0x272552(0x1ee)][_0x272552(0x1fe)]==0x1)_0x511ebf=bufferPixel(new Point(_0x1f2111['coordinates'][0x0]),this[_0x272552(0x1c4)],_0x7c192f);else _0x1f2111[_0x272552(0x1f7)]&&(_0x511ebf=_0x1f2111[_0x272552(0x1f7)][_0x272552(0x1e6)]());if(!_0x511ebf)throw new Error(_0x272552(0x1d8));this['dispatchEvent'](new SelectEvent(SelectEventType[_0x272552(0x1d0)],_0x1696a1,_0x511ebf)),this['selectedPointFeatures']=[],this[_0x272552(0x1c3)]=[],this['selectedPolygonFeatures']=[],this[_0x272552(0x1df)]=[],this[_0x272552(0x1fd)]&&this[_0x272552(0x1d6)](_0x511ebf),_0x1a3765&&clearTimeout(_0x1a3765),_0x1a3765=setTimeout(async()=>{const _0x2e9adf=_0x272552;await this[_0x2e9adf(0x1e0)](_0x511ebf),this['dispatchEvent'](new SelectEvent(SelectEventType[_0x2e9adf(0x1d3)],_0x1696a1,_0x511ebf,_0x1f2111['coordinates'],this[_0x2e9adf(0x1bf)],this[_0x2e9adf(0x1c3)],this['selectedPolygonFeatures'],this['allSelectedFeatures']));},0x46);}catch(_0x45f1eb){this['dispatchEvent'](new SelectEvent(SelectEventType[_0x272552(0x1d3)],_0x1696a1,undefined,_0x1f2111[_0x272552(0x1ee)],this[_0x272552(0x1bf)],this[_0x272552(0x1c3)],this[_0x272552(0x1c2)],this[_0x272552(0x1df)],_0x45f1eb['message']));}}),window[_0x195f6b(0x1f6)]('keydown',_0x3867a6=>{const _0x22a27b=_0x195f6b;_0x3867a6[_0x22a27b(0x1bb)]&&(this['holdCtrl']=!![]);}),window[_0x195f6b(0x1f6)](_0x195f6b(0x1cb),_0x2fd201=>{const _0x4345b3=_0x195f6b;this[_0x4345b3(0x1f8)]=![];});}[a50_0x2b2ee3(0x1c5)](_0x40c50c){const _0x993350=a50_0x2b2ee3;this[_0x993350(0x1e5)]=_0x40c50c;}async[a50_0x2b2ee3(0x1e0)](_0xb54dd8){const _0x1dddb8=a50_0x2b2ee3;var _0x48768e;const _0x10abc5=this[_0x1dddb8(0x1c0)]();let _0x57d88d=[];if(this['currentLayers']&&this[_0x1dddb8(0x1e5)][_0x1dddb8(0x1fe)]>0x0)_0x57d88d=this[_0x1dddb8(0x1e5)];else{let _0x2551c4=_0x10abc5[_0x1dddb8(0x1ff)]()[_0x1dddb8(0x1ec)]();_0x2551c4=_0x2551c4[_0x1dddb8(0x1b4)](_0x1afcf2=>{const _0x35708b=_0x1dddb8,_0x10ad48=_0x1afcf2['layerInfo'];if(!_0x10ad48)return![];return _0x1afcf2[_0x35708b(0x1ed)]()==!![]&&_0x10ad48[_0x35708b(0x1c1)]!=undefined&&_0x10ad48[_0x35708b(0x1c1)]!='';}),_0x57d88d=_0x2551c4[_0x1dddb8(0x1cd)](_0x379a15=>{const _0x5ee6ea=_0x1dddb8;return _0x379a15[_0x5ee6ea(0x1f9)];});}if(!_0x57d88d||_0x57d88d['length']==0x0)return;const _0x6aa63a=_0x10abc5[_0x1dddb8(0x1b1)]()[_0x1dddb8(0x1ea)]()[_0x1dddb8(0x1e7)](),_0x4d67d6=_0x10abc5[_0x1dddb8(0x1b1)]()['getResolution']();for(let _0x1b3639=0x0,_0x1caac5=_0x57d88d[_0x1dddb8(0x1fe)];_0x1b3639<_0x1caac5;_0x1b3639++){const _0x1f3272=_0x57d88d[_0x1b3639],_0x116ce6=_0x10abc5[_0x1dddb8(0x1f2)](_0x1f3272['id']);if(!_0x116ce6||_0x116ce6[_0x1dddb8(0x1ed)]()==![]||!_0x1f3272||!_0x1f3272[_0x1dddb8(0x1d9)]||!_0x1f3272['selectIndex'])continue;let _0x44919e=await selectFeaturesByGeo(_0xb54dd8,_0x6aa63a,_0x1f3272['url'],_0x1f3272[_0x1dddb8(0x1c1)],_0x1f3272['layerType'],_0x1f3272['loadFilter'],_0x4d67d6);if(_0x44919e[_0x1dddb8(0x1fe)]>0x0){this[_0x1dddb8(0x1df)][_0x1dddb8(0x1e4)](..._0x44919e);let _0x52c9be=_0x10abc5[_0x1dddb8(0x1fc)](),_0xe3bbd3=this['polygonStyle'];switch((_0x48768e=_0x44919e[0x0][_0x1dddb8(0x1e6)]())===null||_0x48768e===void 0x0?void 0x0:_0x48768e['getType']()){case _0x1dddb8(0x1fa):case _0x1dddb8(0x1de):this[_0x1dddb8(0x1bf)][_0x1dddb8(0x1e4)](..._0x44919e),_0x52c9be=_0x10abc5[_0x1dddb8(0x1f4)](),_0xe3bbd3=this['pointStyle'];break;case'LineString':case _0x1dddb8(0x1bc):this[_0x1dddb8(0x1c3)][_0x1dddb8(0x1e4)](..._0x44919e),_0x52c9be=_0x10abc5[_0x1dddb8(0x1f0)](),_0xe3bbd3=this[_0x1dddb8(0x1da)];break;case _0x1dddb8(0x1c9):case _0x1dddb8(0x1dd):this[_0x1dddb8(0x1c2)][_0x1dddb8(0x1e4)](..._0x44919e),_0x52c9be=_0x10abc5[_0x1dddb8(0x1fc)](),_0xe3bbd3=this['polygonStyle'];break;default:break;}const _0x4be632=_0x52c9be[_0x1dddb8(0x1e8)]();_0x4be632&&(_0x44919e['forEach'](_0x260436=>{const _0x2fb991=_0x1dddb8;_0x260436[_0x2fb991(0x1f3)]=_0x1f3272['id'],_0x260436['tempLayer']=_0x52c9be,_0x260436[_0x2fb991(0x1bd)](_0xe3bbd3);}),this['addTempLayer']&&_0x4be632[_0x1dddb8(0x200)](_0x44919e));}}}['seletctEditeFeature'](_0x44a5bb){const _0xdcf5c7=a50_0x2b2ee3,_0x118fbb=new a50_0x2ef043(this[_0xdcf5c7(0x1c0)]()),_0x3819b2=_0x118fbb['getSelectedFeatures']();if(!_0x3819b2||_0x3819b2[_0xdcf5c7(0x1fe)]===0x0)return[];const _0x2a8971=[_0xdcf5c7(0x1d5),'cut','draw',_0xdcf5c7(0x1fb),'union'],_0x2172b7=[];for(const _0x3e485a of _0x3819b2){if(!_0x3e485a||!_0x3e485a['fromType']||!_0x2a8971[_0xdcf5c7(0x1d2)](_0x3e485a[_0xdcf5c7(0x1b8)]))continue;const _0x27b4fa=_0x3e485a['getGeometry']();if(!_0x27b4fa)continue;if(!intersects(_0x27b4fa,_0x44a5bb))continue;let _0x8ad17c=this[_0xdcf5c7(0x1c7)];this[_0xdcf5c7(0x1df)]['push'](_0x3e485a);switch(_0x27b4fa[_0xdcf5c7(0x1e9)]()){case _0xdcf5c7(0x1fa):case _0xdcf5c7(0x1de):this['selectedPointFeatures'][_0xdcf5c7(0x1e4)](_0x3e485a),_0x8ad17c=this[_0xdcf5c7(0x1b3)];break;case'LineString':case _0xdcf5c7(0x1bc):this[_0xdcf5c7(0x1c3)][_0xdcf5c7(0x1e4)](_0x3e485a),_0x8ad17c=this['lineStyle'];break;case _0xdcf5c7(0x1c9):case _0xdcf5c7(0x1dd):this[_0xdcf5c7(0x1c2)][_0xdcf5c7(0x1e4)](_0x3e485a),_0x8ad17c=this[_0xdcf5c7(0x1c7)];break;default:break;}_0x3e485a[_0xdcf5c7(0x1bd)](_0x8ad17c);}return _0x2172b7;}}
|
package/interaction/Split.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a51_0x4c57(){const _0x5ede7e=['8CrWgzu','message','polyline','push','getSource','addTempLayer','splitFeatures','getGeometry','getMap','21HCdKfA','length','feature','tempLayer','SPLITSTART','cut','未获取到绘制的分割线','2017639Nipclp','253008XqtaOx','drawEnd','clone','13160RBImps','onInternal','setGeometry','layerId','12oiHWjx','addFeature','SPLITED','rgba(255,\x200,\x200,\x201)','373pMNzFR','未获取到地图对象','splitLine','928301TYFBac','sourceFeatures','139348QzLhgS','678IWLbVX','setFeatures','4813407hqJtnr','10tHfMRp','splited','1454HOyXSs','dispatchEvent'];a51_0x4c57=function(){return _0x5ede7e;};return a51_0x4c57();}const a51_0x36c3ef=a51_0x181c;(function(_0x3e0e69,_0x260aff){const _0x403b03=a51_0x181c,_0x2f0300=_0x3e0e69();while(!![]){try{const _0x2d0296=-parseInt(_0x403b03(0x1bd))/0x1*(parseInt(_0x403b03(0x19f))/0x2)+parseInt(_0x403b03(0x1aa))/0x3*(-parseInt(_0x403b03(0x199))/0x4)+-parseInt(_0x403b03(0x1b5))/0x5*(-parseInt(_0x403b03(0x19a))/0x6)+-parseInt(_0x403b03(0x1b2))/0x7+-parseInt(_0x403b03(0x1a1))/0x8*(-parseInt(_0x403b03(0x19c))/0x9)+parseInt(_0x403b03(0x19d))/0xa*(-parseInt(_0x403b03(0x197))/0xb)+-parseInt(_0x403b03(0x1b9))/0xc*(-parseInt(_0x403b03(0x1b1))/0xd);if(_0x2d0296===_0x260aff)break;else _0x2f0300['push'](_0x2f0300['shift']());}catch(_0x57fcaa){_0x2f0300['push'](_0x2f0300['shift']());}}}(a51_0x4c57,0x55e85));function a51_0x181c(_0x2a952c,_0x571e71){const _0x4c5771=a51_0x4c57();return a51_0x181c=function(_0x181ca2,_0x17f36a){_0x181ca2=_0x181ca2-0x196;let _0x51ef88=_0x4c5771[_0x181ca2];return _0x51ef88;},a51_0x181c(_0x2a952c,_0x571e71);}import a51_0x2a1038 from'./Draw';import a51_0x4cbeda from'ol/events/Event';import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':'splitStart','SPLITED':a51_0x36c3ef(0x19e)};export class SplitEvent extends a51_0x4cbeda{constructor(_0x17e616,_0x3c283b,_0x506125,_0x314a22){const _0x105d3b=a51_0x36c3ef;super(_0x17e616),this[_0x105d3b(0x196)]=_0x3c283b,this['features']=_0x506125,this['error']=_0x314a22;}}export default class Split extends a51_0x2a1038{constructor(_0x273e54,_0xe7fcc4){const _0x43dcf8=a51_0x36c3ef,_0x84eb29=(_0xe7fcc4===null||_0xe7fcc4===void 0x0?void 0x0:_0xe7fcc4['splitLineStyle'])||{'outlineColor':_0x43dcf8(0x1bc),'outlineWidth':0x2};super(_0x43dcf8(0x1a3),{'tipText':_0xe7fcc4===null||_0xe7fcc4===void 0x0?void 0x0:_0xe7fcc4['tipText'],'style':_0x84eb29}),this['sourceFeatures']=_0x273e54;const _0x1a32af=_0xe7fcc4||{};this[_0x43dcf8(0x1a6)]=_0x1a32af[_0x43dcf8(0x1a6)]||![],this['on']=this[_0x43dcf8(0x1b6)],this['on'](_0x43dcf8(0x1b3),async _0x451a85=>{const _0x4c9086=_0x43dcf8;var _0xa107ad;const _0x24e487=this[_0x4c9086(0x1a9)]();let _0x4d2554=(_0xa107ad=_0x451a85[_0x4c9086(0x1ac)])===null||_0xa107ad===void 0x0?void 0x0:_0xa107ad[_0x4c9086(0x1a8)]();!_0x4d2554&&this[_0x4c9086(0x1a0)](new SplitEvent(SplitEventType[_0x4c9086(0x1bb)],undefined,undefined,_0x4c9086(0x1b0)));let _0x4ba503=_0x4d2554;!_0x24e487&&this[_0x4c9086(0x1a0)](new SplitEvent(SplitEventType[_0x4c9086(0x1bb)],_0x4ba503,undefined,_0x4c9086(0x1be)));(!this[_0x4c9086(0x198)]||this[_0x4c9086(0x198)][_0x4c9086(0x1ab)]===0x0)&&this[_0x4c9086(0x1a0)](new SplitEvent(SplitEventType[_0x4c9086(0x1bb)],_0x4ba503,undefined,'未获取到分割要素'));try{this[_0x4c9086(0x1a0)](new SplitEvent(SplitEventType[_0x4c9086(0x1ae)],_0x4ba503));const _0x56ea8e=this[_0x4c9086(0x1a7)](_0x4ba503);this[_0x4c9086(0x1a0)](new SplitEvent(SplitEventType['SPLITED'],_0x4ba503,_0x56ea8e));}catch(_0x6f8a2f){this[_0x4c9086(0x1a0)](new SplitEvent(SplitEventType['SPLITED'],_0x4ba503,undefined,_0x6f8a2f[_0x4c9086(0x1a2)]));}});}[a51_0x36c3ef(0x1a7)](_0x320132){const _0x5bf276=a51_0x36c3ef;var _0x34ed6d;const _0x16205a=[],_0x14c24b=(_0x34ed6d=this[_0x5bf276(0x198)][0x0][_0x5bf276(0x1ad)])===null||_0x34ed6d===void 0x0?void 0x0:_0x34ed6d[_0x5bf276(0x1a5)]();for(let _0x5a6e3c=0x0;_0x5a6e3c<this[_0x5bf276(0x198)][_0x5bf276(0x1ab)];_0x5a6e3c++){const _0x1bc63c=this[_0x5bf276(0x198)][_0x5a6e3c],_0x3012b3=_0x1bc63c[_0x5bf276(0x1a8)]();let _0x3dd3a8=[];if(_0x3012b3 instanceof Polygon||_0x3012b3 instanceof MultiPolygon)_0x3dd3a8=jstlSplit(_0x3012b3,_0x320132);else(_0x3012b3 instanceof LineString||_0x3012b3 instanceof MultiLineString)&&(_0x3dd3a8=splitLineByLine(_0x3012b3,_0x320132));if(_0x3dd3a8['length']>0x1){_0x1bc63c[_0x5bf276(0x1b7)](_0x3dd3a8[0x0]),_0x16205a['push'](_0x1bc63c);for(let _0x2f72a5=0x1;_0x2f72a5<_0x3dd3a8['length'];_0x2f72a5++){const _0x498cc2=_0x1bc63c[_0x5bf276(0x1b4)]();_0x498cc2[_0x5bf276(0x1b8)]=undefined,_0x498cc2['fromType']=_0x5bf276(0x1af),_0x498cc2[_0x5bf276(0x1ad)]=_0x1bc63c[_0x5bf276(0x1ad)],_0x498cc2[_0x5bf276(0x1b7)](_0x3dd3a8[_0x2f72a5]),this[_0x5bf276(0x1a6)]&&(_0x14c24b===null||_0x14c24b===void 0x0?void 0x0:_0x14c24b[_0x5bf276(0x1ba)](_0x498cc2)),_0x16205a[_0x5bf276(0x1a4)](_0x498cc2);}}}return _0x16205a;}[a51_0x36c3ef(0x19b)](_0x12aab9){const _0x459843=a51_0x36c3ef;this[_0x459843(0x198)]=_0x12aab9;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a52_0x3e95(_0x4c2cf9,_0x117eef){const _0x16b62d=a52_0x16b6();return a52_0x3e95=function(_0x3e955a,_0xea55cc){_0x3e955a=_0x3e955a-0x17a;let _0x376323=_0x16b62d[_0x3e955a];return _0x376323;},a52_0x3e95(_0x4c2cf9,_0x117eef);}function a52_0x16b6(){const _0x2aaffc=['wkt','7350580znZkZc','43788JnUIso','mapIndex','1623853WYNJjO','ymax','fullExtent','420tehGZF','projection','spatialReference','getSource','layerInfo','stringify','loadFilter','url','ymin','10356MlOESD','xmin','9YmMMcs','join','selectIndex','8kGFmSO','xmax','sublayers','403064syOrgj','wkid','1233070GPHNuF','7544680CURQsI','initialExtent','setFilter','428yaDAyg'];a52_0x16b6=function(){return _0x2aaffc;};return a52_0x16b6();}const a52_0x1ef126=a52_0x3e95;(function(_0x2c3bdc,_0x4aeb6e){const _0x48eaff=a52_0x3e95,_0x282887=_0x2c3bdc();while(!![]){try{const _0x42cac2=-parseInt(_0x48eaff(0x17e))/0x1+-parseInt(_0x48eaff(0x180))/0x2+-parseInt(_0x48eaff(0x195))/0x3*(-parseInt(_0x48eaff(0x184))/0x4)+parseInt(_0x48eaff(0x18c))/0x5*(-parseInt(_0x48eaff(0x187))/0x6)+-parseInt(_0x48eaff(0x189))/0x7*(-parseInt(_0x48eaff(0x17b))/0x8)+parseInt(_0x48eaff(0x197))/0x9*(parseInt(_0x48eaff(0x186))/0xa)+parseInt(_0x48eaff(0x181))/0xb;if(_0x42cac2===_0x4aeb6e)break;else _0x282887['push'](_0x282887['shift']());}catch(_0x3b90dd){_0x282887['push'](_0x282887['shift']());}}}(a52_0x16b6,0x5f212));import a52_0x4e20e1 from'ol/source/ImageArcGISRest';import{Image as a52_0x1745ef}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a52_0x1745ef{constructor(_0x57577a,_0x2c6ca5){const _0x3be0ef=a52_0x3e95;var _0x26e6a4;let _0x5d1d7a={'LAYERS':'show:'+((_0x26e6a4=_0x57577a[_0x3be0ef(0x17d)])===null||_0x26e6a4===void 0x0?void 0x0:_0x26e6a4[_0x3be0ef(0x198)](','))};if(_0x57577a[_0x3be0ef(0x192)]&&_0x57577a['selectIndex']){const _0x265e79={};_0x265e79[_0x57577a[_0x3be0ef(0x17a)]]=_0x57577a[_0x3be0ef(0x192)],_0x5d1d7a['layerDefs']=JSON[_0x3be0ef(0x191)](_0x265e79);}const _0x3983fc=[_0x2c6ca5[_0x3be0ef(0x182)][_0x3be0ef(0x196)],_0x2c6ca5[_0x3be0ef(0x182)][_0x3be0ef(0x194)],_0x2c6ca5[_0x3be0ef(0x182)][_0x3be0ef(0x17c)],_0x2c6ca5[_0x3be0ef(0x182)][_0x3be0ef(0x18a)]],_0x1a9ed7=[_0x2c6ca5[_0x3be0ef(0x18b)]['xmin'],_0x2c6ca5['fullExtent'][_0x3be0ef(0x194)],_0x2c6ca5[_0x3be0ef(0x18b)]['xmax'],_0x2c6ca5[_0x3be0ef(0x18b)][_0x3be0ef(0x18a)]];let _0x8f9770;_0x2c6ca5[_0x3be0ef(0x18e)]['wkid']?_0x8f9770=registerProj('EPSG:'+_0x2c6ca5[_0x3be0ef(0x18e)][_0x3be0ef(0x17f)],_0x1a9ed7):_0x8f9770=registerProj(_0x2c6ca5[_0x3be0ef(0x18e)][_0x3be0ef(0x185)],_0x1a9ed7),super({'opacity':_0x57577a['opacity'],'zIndex':_0x57577a[_0x3be0ef(0x188)],'source':new a52_0x4e20e1({'crossOrigin':'anonymous','projection':_0x8f9770,'ratio':0x1,'url':_0x57577a[_0x3be0ef(0x193)],'params':_0x5d1d7a})}),this['id']=_0x57577a['id'],this['initialExtent']=_0x3983fc,this[_0x3be0ef(0x18d)]=_0x8f9770,this[_0x3be0ef(0x190)]=_0x57577a;}[a52_0x1ef126(0x183)](_0x2aff68){const _0x159092=a52_0x1ef126;var _0x2f80a5;const _0x3ff7ca={};this[_0x159092(0x190)][_0x159092(0x17a)]&&(_0x3ff7ca[this[_0x159092(0x190)][_0x159092(0x17a)]]=_0x2aff68),(_0x2f80a5=this[_0x159092(0x18f)]())===null||_0x2f80a5===void 0x0?void 0x0:_0x2f80a5['updateParams']({'layerDefs':JSON[_0x159092(0x191)](_0x2aff68)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x3ba2ec,_0xa4d27b){const _0x114085=a53_0x3a21,_0x59fcaf=_0x3ba2ec();while(!![]){try{const _0x2b72c4=-parseInt(_0x114085(0x107))/0x1+parseInt(_0x114085(0x10b))/0x2*(parseInt(_0x114085(0x123))/0x3)+-parseInt(_0x114085(0x11b))/0x4+parseInt(_0x114085(0xf2))/0x5*(parseInt(_0x114085(0x109))/0x6)+parseInt(_0x114085(0x103))/0x7*(-parseInt(_0x114085(0x110))/0x8)+parseInt(_0x114085(0x119))/0x9*(parseInt(_0x114085(0x116))/0xa)+parseInt(_0x114085(0xf5))/0xb;if(_0x2b72c4===_0xa4d27b)break;else _0x59fcaf['push'](_0x59fcaf['shift']());}catch(_0xf7c6da){_0x59fcaf['push'](_0x59fcaf['shift']());}}}(a53_0x1452,0x51c24));import a53_0x8ce9d from'ol/format/EsriJSON';import a53_0x4a8e1e from'ol/source/Vector';function a53_0x1452(){const _0x446999=['1633472DQUMOl','renderer','{\x22xmin\x22:','xmax','getCode','projection',',\x22ymin\x22:','&outFields=*','3zIUYZs','mapIndex','forEach','then','loadFilter','length','symbol','642745CWlVdF','ymax','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','7610625uoHAzv','log','showIndex','defaultSymbol','type','url','string','uniqueValue','error','split','setLayers','field1','xmin','drawingInfo','16702dLciyD','initialExtent','ymin','uniqueValueInfos','520998XUYBhn','fullExtent','24OOYqmr','&outSR=','677276ShGbLl','f\x20=\x20json\x20&\x20','push','wkid','&geometryType=esriGeometryEnvelope&inSR=','1472bvqHHi','readFeatures','wkt',',\x22spatialReference\x22:{\x22wkid\x22:','simple','where=','9610xwRfPo','layerInfo','setStyle','1485VlGVVg','createArcGISFeatureLayer'];a53_0x1452=function(){return _0x446999;};return a53_0x1452();}import{Vector as a53_0x3324ca}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x2d424a}from'ol/loadingstrategy';import a53_0x1b90a0 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0x34e8f0 from'ol/Collection';function a53_0x3a21(_0xd23dce,_0x3f22a6){const _0x145230=a53_0x1452();return a53_0x3a21=function(_0x3a21a6,_0x5dc399){_0x3a21a6=_0x3a21a6-0xf1;let _0x13cfa1=_0x145230[_0x3a21a6];return _0x13cfa1;},a53_0x3a21(_0xd23dce,_0x3f22a6);}import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x1b90a0{constructor(_0xb7b566,_0x427333,_0x40fb94){const _0x2160a7=a53_0x3a21,_0x1f8c2d=[_0x427333[_0x2160a7(0x104)][_0x2160a7(0x101)],_0x427333[_0x2160a7(0x104)]['ymin'],_0x427333[_0x2160a7(0x104)][_0x2160a7(0x11e)],_0x427333[_0x2160a7(0x104)][_0x2160a7(0xf3)]],_0xe4ad57=[_0x427333[_0x2160a7(0x108)]['xmin'],_0x427333[_0x2160a7(0x108)][_0x2160a7(0x105)],_0x427333[_0x2160a7(0x108)][_0x2160a7(0x11e)],_0x427333['fullExtent'][_0x2160a7(0xf3)]];let _0x58a236;_0x427333['spatialReference'][_0x2160a7(0x10e)]?_0x58a236=registerProj('EPSG:'+_0x427333['spatialReference'][_0x2160a7(0x10e)],_0xe4ad57):_0x58a236=registerProj(_0x427333['spatialReference'][_0x2160a7(0x112)],_0xe4ad57);let _0x4d05dc=[];super({'zIndex':_0xb7b566[_0x2160a7(0x124)]});for(let _0x529843 of _0x40fb94){let _0x2719e6=this[_0x2160a7(0x11a)](_0xb7b566,_0x529843);_0x4d05dc[_0x2160a7(0x10d)](_0x2719e6);}this[_0x2160a7(0xff)](new a53_0x34e8f0(_0x4d05dc)),this['id']=_0xb7b566['id'],this[_0x2160a7(0x104)]=_0x1f8c2d,this[_0x2160a7(0x120)]=_0x58a236,this['layerInfo']=_0xb7b566;}['createArcGISFeatureLayer'](_0x568a00,_0x4639e6){const _0x25dcfc=a53_0x3a21;var _0x4549d9=new a53_0x8ce9d();let _0x19f4b9=new a53_0x4a8e1e({'loader':function(_0x48ceec,_0x243add,_0x1abdfb){const _0x117537=a53_0x3a21;let _0x1fd849='1=1';_0x568a00[_0x117537(0x127)]&&(_0x1fd849=typeof _0x568a00[_0x117537(0x127)]===_0x117537(0xfb)?_0x568a00[_0x117537(0x127)]:JSON['stringify'](_0x568a00[_0x117537(0x127)]));let _0x2df4ad=_0x1abdfb[_0x117537(0x11f)](),_0x9c477=_0x2df4ad[_0x117537(0xfe)](':')[0x1];var _0x1454b3=appendPath(_0x4639e6[_0x117537(0xfa)],'/query');_0x1454b3=appendParam(_0x1454b3,_0x117537(0x10c)+_0x117537(0x115)+encodeURIComponent(_0x1fd849)+_0x117537(0xf4)+encodeURIComponent(_0x117537(0x11d)+_0x48ceec[0x0]+_0x117537(0x121)+_0x48ceec[0x1]+',\x22xmax\x22:'+_0x48ceec[0x2]+',\x22ymax\x22:'+_0x48ceec[0x3]+_0x117537(0x113)+_0x9c477+'}}')+_0x117537(0x10f)+_0x9c477+_0x117537(0x122)+_0x117537(0x10a)+_0x9c477),jsonp(_0x1454b3)[_0x117537(0x126)](_0x562ef4=>{const _0x129641=_0x117537;if(_0x562ef4[_0x129641(0xfd)])console[_0x129641(0xf6)](_0x562ef4);else{var _0x1e9901=_0x4549d9[_0x129641(0x111)](_0x562ef4,{'featureProjection':_0x1abdfb});_0x1e9901[_0x129641(0x128)]>0x0&&(_0x4639e6[_0x129641(0x102)][_0x129641(0x11c)][_0x129641(0xf9)]==_0x129641(0xfc)&&_0x1e9901[_0x129641(0x125)](function(_0x6a39f5){const _0x52ee4e=_0x129641;var _0x157e85=_0x6a39f5['get'](_0x4639e6[_0x52ee4e(0x102)][_0x52ee4e(0x11c)][_0x52ee4e(0x100)]);const _0x5d4ea7=_0x4639e6[_0x52ee4e(0x102)]['renderer'][_0x52ee4e(0x106)]['find'](_0x1063bb=>_0x1063bb['value']==_0x157e85);let _0x387a3a;_0x5d4ea7?_0x387a3a=transformedEsriStyle(_0x5d4ea7['symbol']):_0x387a3a=transformedEsriStyle(_0x4639e6[_0x52ee4e(0x102)]['renderer'][_0x52ee4e(0xf8)]),_0x6a39f5[_0x52ee4e(0x118)](_0x387a3a);}),_0x19f4b9['addFeatures'](_0x1e9901));}});},'strategy':a53_0x2d424a(createXYZ({'tileSize':0x200}))}),_0x57f8c3=new a53_0x3324ca({'source':_0x19f4b9,'zIndex':_0x568a00[_0x25dcfc(0xf7)]});if(_0x4639e6[_0x25dcfc(0x102)][_0x25dcfc(0x11c)]['type']==_0x25dcfc(0x114)&&_0x4639e6[_0x25dcfc(0x102)][_0x25dcfc(0x11c)][_0x25dcfc(0xf1)]){let _0x597c4e=transformedEsriStyle(_0x4639e6[_0x25dcfc(0x102)][_0x25dcfc(0x11c)][_0x25dcfc(0xf1)]);_0x57f8c3[_0x25dcfc(0x118)](_0x597c4e);}return _0x57f8c3;}['setFilter'](_0x275632){const _0x4a24d8=a53_0x3a21;this[_0x4a24d8(0x117)]['loadFilter']=_0x275632;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x43a6f9,_0x497a6f){const _0x317ed8=a54_0x1314,_0x242465=_0x43a6f9();while(!![]){try{const _0x515214=parseInt(_0x317ed8(0x161))/0x1*(-parseInt(_0x317ed8(0x158))/0x2)+parseInt(_0x317ed8(0x15d))/0x3*(parseInt(_0x317ed8(0x146))/0x4)+-parseInt(_0x317ed8(0x148))/0x5*(parseInt(_0x317ed8(0x162))/0x6)+-parseInt(_0x317ed8(0x14d))/0x7*(-parseInt(_0x317ed8(0x159))/0x8)+-parseInt(_0x317ed8(0x14a))/0x9+-parseInt(_0x317ed8(0x15c))/0xa+parseInt(_0x317ed8(0x150))/0xb;if(_0x515214===_0x497a6f)break;else _0x242465['push'](_0x242465['shift']());}catch(_0x5971e9){_0x242465['push'](_0x242465['shift']());}}}(a54_0x2da9,0xf1c24));function a54_0x1314(_0xe5632f,_0x25655c){const _0x2da92d=a54_0x2da9();return a54_0x1314=function(_0x131442,_0x5defc2){_0x131442=_0x131442-0x146;let _0x38a693=_0x2da92d[_0x131442];return _0x38a693;},a54_0x1314(_0xe5632f,_0x25655c);}import a54_0x384b6e from'ol/layer/Tile';import a54_0x611b19 from'ol/source/XYZ';import a54_0x108bbc from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';function a54_0x2da9(){const _0x35519e=['length','fullExtent','/tile/{z}/{y}/{x}','147304moBvin','wkid','1945ZAquAN','mapIndex','16555716MPySuB','spatialReference','ymax','8248142TfLZXc','layerInfo','cols','41026315wZvKAM','lods','tileInfo','initialExtent','xmax','EPSG:','opacity','origin','162014YkHbSK','8WJexuU','url','projection','14715970FpVPDo','111fUQqAj','ymin','wkt','push','21rAvryY','4134JjdAMG'];a54_0x2da9=function(){return _0x35519e;};return a54_0x2da9();}import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x384b6e{constructor(_0x366d38,_0x4b5e2f){const _0x3675ec=a54_0x1314,_0x58192d=_0x366d38['url']?_0x366d38[_0x3675ec(0x15a)]:'',_0x403567=appendPath(_0x58192d,_0x3675ec(0x165)),_0x5dc847=[_0x4b5e2f['initialExtent']['xmin'],_0x4b5e2f[_0x3675ec(0x153)][_0x3675ec(0x15e)],_0x4b5e2f[_0x3675ec(0x153)]['xmax'],_0x4b5e2f[_0x3675ec(0x153)][_0x3675ec(0x14c)]],_0x2af662=[_0x4b5e2f['fullExtent']['xmin'],_0x4b5e2f[_0x3675ec(0x164)][_0x3675ec(0x15e)],_0x4b5e2f[_0x3675ec(0x164)][_0x3675ec(0x154)],_0x4b5e2f[_0x3675ec(0x164)][_0x3675ec(0x14c)]];let _0x1b9ede;_0x4b5e2f[_0x3675ec(0x14b)][_0x3675ec(0x147)]?_0x1b9ede=registerProj(_0x3675ec(0x155)+_0x4b5e2f[_0x3675ec(0x14b)]['wkid'],_0x2af662):_0x1b9ede=registerProj(_0x4b5e2f['spatialReference'][_0x3675ec(0x15f)],_0x2af662);let _0x1d2749=[];for(let _0xa3665d=0x0,_0x3dacc0=_0x4b5e2f[_0x3675ec(0x152)][_0x3675ec(0x151)][_0x3675ec(0x163)];_0xa3665d<_0x3dacc0;_0xa3665d++){_0x1d2749[_0x3675ec(0x160)](_0x4b5e2f[_0x3675ec(0x152)][_0x3675ec(0x151)][_0xa3665d]['resolution']);}super({'opacity':_0x366d38[_0x3675ec(0x156)],'zIndex':_0x366d38[_0x3675ec(0x149)],'maxResolution':_0x1d2749[0x0]*0x2,'source':new a54_0x611b19({'url':_0x403567,'projection':_0x1b9ede,'crossOrigin':'anonymous','tileGrid':new a54_0x108bbc({'extent':_0x2af662,'origin':[_0x4b5e2f['tileInfo'][_0x3675ec(0x157)]['x'],_0x4b5e2f[_0x3675ec(0x152)][_0x3675ec(0x157)]['y']],'resolutions':_0x1d2749,'tileSize':[_0x4b5e2f[_0x3675ec(0x152)]['rows'],_0x4b5e2f['tileInfo'][_0x3675ec(0x14f)]]})})}),this['id']=_0x366d38['id'],this[_0x3675ec(0x153)]=_0x5dc847,this[_0x3675ec(0x15b)]=_0x1b9ede,this[_0x3675ec(0x14e)]=_0x366d38;}}
|