ym-gis-2d 1.0.38 → 1.0.40
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 +9 -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
|
-
|
|
1
|
+
const a43_0x10ec5c=a43_0x150f;(function(_0x27b606,_0x49be99){const _0x5e3603=a43_0x150f,_0x50a28c=_0x27b606();while(!![]){try{const _0x332fba=parseInt(_0x5e3603(0x19c))/0x1*(parseInt(_0x5e3603(0x1a7))/0x2)+-parseInt(_0x5e3603(0x19e))/0x3+parseInt(_0x5e3603(0x1c4))/0x4+parseInt(_0x5e3603(0x1c5))/0x5+-parseInt(_0x5e3603(0x1ad))/0x6+-parseInt(_0x5e3603(0x1b8))/0x7+parseInt(_0x5e3603(0x19a))/0x8*(parseInt(_0x5e3603(0x1c6))/0x9);if(_0x332fba===_0x49be99)break;else _0x50a28c['push'](_0x50a28c['shift']());}catch(_0x1f35a2){_0x50a28c['push'](_0x50a28c['shift']());}}}(a43_0x1d72,0x2c7b6));import a43_0x344a3f from'../entity/Feature';function a43_0x1d72(){const _0x135bae=['getPointTempLayer','filter','flash_layer','isSelected','indexOf','529552ZIRQYR','279395rcQNFI','4059ZArgJY','features','getTempSelectedFeatures','length','currentEditLayer','7144XcJlVg','getTempEditFeatures','581AMpgsY','geometryType','544500ETetCZ','getFeatures','getEditFeatures','getSource','getVisible','readFeature','push','setVisible','layerInfo','98dyYhNV','getPolygonTempLayer','forEach','getSelectedFeatures','tempLayer','clearTempFeatures','1317426LyAoOL','removeLayer','layerId','addFeatures','addLayer','setGeometry','map','getLayerById','getLineTempLayer','getType','get','253470IDUiOl','kmlImport','tag','setStyle','removeFeature','flashFeatures','flashGeometrys'];a43_0x1d72=function(){return _0x135bae;};return a43_0x1d72();}import a43_0x1fba26 from'ol/layer/Vector';function a43_0x150f(_0x918585,_0xdb216c){const _0x1d7285=a43_0x1d72();return a43_0x150f=function(_0x150f33,_0x556d70){_0x150f33=_0x150f33-0x198;let _0x2508ac=_0x1d7285[_0x150f33];return _0x2508ac;},a43_0x150f(_0x918585,_0xdb216c);}import a43_0x25b4b5 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0x200e47 from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x272535){const _0x35e5d5=a43_0x150f;this[_0x35e5d5(0x1b3)]=_0x272535;}[a43_0x10ec5c(0x1a0)](_0x19e461,_0x26f7d4){const _0x2b5716=a43_0x10ec5c;if(!this['map'][_0x2b5716(0x199)])return;let _0x5b46d0;const _0x470d20=this['map'][_0x2b5716(0x1b4)](this[_0x2b5716(0x1b3)][_0x2b5716(0x199)]['id']);if(!_0x470d20||!_0x470d20['layerInfo'])return;switch(_0x470d20['layerInfo'][_0x2b5716(0x19d)]){case 0x1:_0x5b46d0=this['getTempEditFeatures'](this[_0x2b5716(0x1b3)][_0x2b5716(0x1bf)](),this[_0x2b5716(0x1b3)][_0x2b5716(0x199)]['id'],_0x19e461,_0x26f7d4);break;case 0x2:_0x5b46d0=this[_0x2b5716(0x19b)](this[_0x2b5716(0x1b3)]['getLineTempLayer'](),this[_0x2b5716(0x1b3)]['currentEditLayer']['id'],_0x19e461,_0x26f7d4);break;case 0x3:_0x5b46d0=this['getTempEditFeatures'](this[_0x2b5716(0x1b3)][_0x2b5716(0x1a8)](),this[_0x2b5716(0x1b3)]['currentEditLayer']['id'],_0x19e461,_0x26f7d4);break;default:break;}return _0x5b46d0;}[a43_0x10ec5c(0x1aa)](_0x267bd1,_0x132c5d){const _0x1225dc=a43_0x10ec5c;if(_0x267bd1){const _0x258c9e=this[_0x1225dc(0x1b3)][_0x1225dc(0x1b4)](_0x267bd1);if(!_0x258c9e||!_0x258c9e[_0x1225dc(0x1a6)])return;let _0x42bc73;switch(_0x258c9e['layerInfo'][_0x1225dc(0x19d)]){case 0x1:_0x42bc73=this[_0x1225dc(0x1c8)](this['map'][_0x1225dc(0x1bf)](),_0x267bd1,_0x132c5d);break;case 0x2:_0x42bc73=this[_0x1225dc(0x1c8)](this[_0x1225dc(0x1b3)][_0x1225dc(0x1b5)](),_0x267bd1,_0x132c5d);break;case 0x3:_0x42bc73=this[_0x1225dc(0x1c8)](this[_0x1225dc(0x1b3)]['getPolygonTempLayer'](),_0x267bd1,_0x132c5d);break;default:break;}return _0x42bc73;}else{const _0x28faec=this[_0x1225dc(0x1c8)](this[_0x1225dc(0x1b3)][_0x1225dc(0x1bf)](),_0x267bd1,_0x132c5d),_0x227a0c=this[_0x1225dc(0x1c8)](this[_0x1225dc(0x1b3)][_0x1225dc(0x1b5)](),_0x267bd1,_0x132c5d),_0x367adc=this[_0x1225dc(0x1c8)](this['map']['getPolygonTempLayer'](),_0x267bd1,_0x132c5d);let _0x1d6637=[];return _0x28faec&&(_0x1d6637=[..._0x1d6637,..._0x28faec]),_0x227a0c&&(_0x1d6637=[..._0x1d6637,..._0x227a0c]),_0x367adc&&(_0x1d6637=[..._0x1d6637,..._0x367adc]),_0x1d6637;}}[a43_0x10ec5c(0x1c8)](_0x5e2709,_0x50d97f,_0x533c24){const _0x36b817=a43_0x10ec5c;var _0x544d8d;let _0x399d3a=(_0x544d8d=_0x5e2709[_0x36b817(0x1a1)]())===null||_0x544d8d===void 0x0?void 0x0:_0x544d8d[_0x36b817(0x19f)]();if(!_0x399d3a)return;_0x399d3a[_0x36b817(0x1a9)]((_0x11ba80,_0x3b6349,_0x37bc99)=>{_0x11ba80['tempLayer']=_0x5e2709;});_0x533c24!=undefined&&(_0x399d3a=_0x399d3a[_0x36b817(0x1c0)](_0xa1da73=>_0xa1da73[_0x36b817(0x1c2)]==_0x533c24));if(_0x50d97f)return _0x399d3a[_0x36b817(0x1c0)](_0x532e14=>_0x532e14[_0x36b817(0x1af)]==_0x50d97f);return _0x399d3a;}['getTempEditFeatures'](_0x11e1f8,_0x414296,_0x12fa71,_0x5ec2b4){const _0x5c8650=a43_0x10ec5c;var _0x2480a9;let _0x1cf860=(_0x2480a9=_0x11e1f8[_0x5c8650(0x1a1)]())===null||_0x2480a9===void 0x0?void 0x0:_0x2480a9[_0x5c8650(0x19f)]();if(!_0x1cf860)return;return _0x1cf860[_0x5c8650(0x1a9)]((_0x1aae0a,_0x19cafc,_0x617805)=>{const _0x3d4eee=_0x5c8650;_0x1aae0a[_0x3d4eee(0x1ab)]=_0x11e1f8;}),_0x12fa71&&_0x5ec2b4&&_0x5ec2b4[_0x5c8650(0x198)]>0x0?_0x1cf860=_0x1cf860[_0x5c8650(0x1c0)](_0x456a24=>_0x456a24[_0x5c8650(0x1c2)]==!![]&&(_0x456a24[_0x5c8650(0x1af)]==_0x414296&&(_0x456a24['get'](_0x12fa71)==undefined||_0x5ec2b4[_0x5c8650(0x1c3)](_0x456a24[_0x5c8650(0x1b7)](_0x12fa71))>-0x1)||_0x456a24[_0x5c8650(0x1af)]==undefined)):_0x1cf860=_0x1cf860=_0x1cf860['filter'](_0xfeb72a=>_0xfeb72a['isSelected']==!![]&&(_0xfeb72a[_0x5c8650(0x1af)]==_0x414296||_0xfeb72a[_0x5c8650(0x1af)]==undefined)),_0x1cf860;}[a43_0x10ec5c(0x1bd)](_0x578aa7,_0x135c5b=0x3){const _0x5bf812=a43_0x10ec5c;var _0x4d4b46;let _0x55d6fe=new a43_0x1fba26({'zIndex':0x270f,'source':new a43_0x25b4b5()});_0x55d6fe['id']=_0x5bf812(0x1c1),this['map'][_0x5bf812(0x1b1)](_0x55d6fe,![]),(_0x4d4b46=_0x55d6fe[_0x5bf812(0x1a1)]())===null||_0x4d4b46===void 0x0?void 0x0:_0x4d4b46[_0x5bf812(0x1b0)](_0x578aa7);let _0x105280=0x0,_0x18039d=setInterval(()=>{const _0x531146=_0x5bf812;if(_0x105280===_0x135c5b){_0x18039d&&clearInterval(_0x18039d);const _0x5444fd=this[_0x531146(0x1b3)][_0x531146(0x1b4)](_0x55d6fe['id']);_0x5444fd&&this['map'][_0x531146(0x1ae)](_0x5444fd);return;}if(_0x55d6fe[_0x531146(0x1a2)]())_0x55d6fe[_0x531146(0x1a5)](![]);else _0x55d6fe[_0x531146(0x1a5)](!![]);_0x105280++;},0x190);}[a43_0x10ec5c(0x1be)](_0x222a7c,_0x24685b=0x3){const _0x18b0c2=a43_0x10ec5c;var _0x235041;let _0x34a6af=new a43_0x1fba26({'zIndex':0x270f,'source':new a43_0x25b4b5()});_0x34a6af['id']='flash_layer',this[_0x18b0c2(0x1b3)][_0x18b0c2(0x1b1)](_0x34a6af,![]);let _0x103b5c=[];_0x222a7c['forEach'](_0x2046e2=>{const _0x74bf4a=_0x18b0c2;let _0x30ba8a=new a43_0x344a3f();const _0xa95445=getSelectStyle(_0x2046e2[_0x74bf4a(0x1b6)]());_0x30ba8a[_0x74bf4a(0x1bb)](_0xa95445),_0x30ba8a[_0x74bf4a(0x1b2)](_0x2046e2),_0x103b5c[_0x74bf4a(0x1a4)](_0x30ba8a);}),(_0x235041=_0x34a6af['getSource']())===null||_0x235041===void 0x0?void 0x0:_0x235041['addFeatures'](_0x103b5c);let _0x1cf1e1=0x0,_0x15429e=setInterval(()=>{const _0x36415f=_0x18b0c2;if(_0x1cf1e1===_0x24685b){_0x15429e&&clearInterval(_0x15429e);const _0xd8d830=this[_0x36415f(0x1b3)][_0x36415f(0x1b4)](_0x34a6af['id']);_0xd8d830&&this[_0x36415f(0x1b3)]['removeLayer'](_0xd8d830);return;}if(_0x34a6af[_0x36415f(0x1a2)]())_0x34a6af[_0x36415f(0x1a5)](![]);else _0x34a6af[_0x36415f(0x1a5)](!![]);_0x1cf1e1++;},0x190);}async[a43_0x10ec5c(0x1b9)](_0x1c9a4d){const _0x1a914a=a43_0x10ec5c;let _0x59062c=await toGeoJSON(_0x1c9a4d,null);if(!_0x59062c)return[];let _0x377bee=[];var _0x11e8b5=new a43_0x200e47();return _0x59062c[_0x1a914a(0x1c7)][_0x1a914a(0x1a9)](_0x3d98e7=>{const _0x5a365e=_0x1a914a;_0x377bee['push'](_0x11e8b5[_0x5a365e(0x1a3)](_0x3d98e7,null));}),_0x377bee;}[a43_0x10ec5c(0x1ac)](_0x2e29bd){const _0x3255c5=a43_0x10ec5c,_0x34c90c=this[_0x3255c5(0x1aa)]();if(_0x34c90c&&_0x34c90c[_0x3255c5(0x198)]>0x0)for(const _0x37be27 of _0x34c90c){if(_0x37be27&&_0x37be27[_0x3255c5(0x1ab)]){const _0x49410c=_0x37be27['tempLayer'][_0x3255c5(0x1a1)]();_0x49410c&&(_0x2e29bd!=undefined?_0x37be27[_0x3255c5(0x1ba)]==_0x2e29bd&&_0x49410c[_0x3255c5(0x1bc)](_0x37be27):_0x49410c['removeFeature'](_0x37be27));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a44_0xba0e(){var _0x5191ac=['472yvwhAc','3738504viymKt','516450EMpnQj','6660950schCOM','64840bkIlAH','809524ztsfLs','1063086sOwCRE','39851lscWGD'];a44_0xba0e=function(){return _0x5191ac;};return a44_0xba0e();}function a44_0x5807(_0x437098,_0x13625c){var _0xba0e9a=a44_0xba0e();return a44_0x5807=function(_0x580788,_0x385260){_0x580788=_0x580788-0xfc;var _0x585b54=_0xba0e9a[_0x580788];return _0x585b54;},a44_0x5807(_0x437098,_0x13625c);}(function(_0x1875db,_0x28d0ef){var _0x474a1f=a44_0x5807,_0x56389c=_0x1875db();while(!![]){try{var _0x3b9c70=parseInt(_0x474a1f(0xff))/0x1+-parseInt(_0x474a1f(0xfe))/0x2+-parseInt(_0x474a1f(0xfc))/0x3+-parseInt(_0x474a1f(0x103))/0x4+parseInt(_0x474a1f(0xfd))/0x5+parseInt(_0x474a1f(0x100))/0x6+-parseInt(_0x474a1f(0x101))/0x7*(parseInt(_0x474a1f(0x102))/0x8);if(_0x3b9c70===_0x28d0ef)break;else _0x56389c['push'](_0x56389c['shift']());}catch(_0x394522){_0x56389c['push'](_0x56389c['shift']());}}}(a44_0xba0e,0xce024));import a44_0xba671e from'./mapView/Map';export{a44_0xba671e as Map2D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x5aad08=a45_0xddb0;(function(_0x2b5ec2,_0x4bb8d5){const _0x3d91b5=a45_0xddb0,_0x3fb1b5=_0x2b5ec2();while(!![]){try{const _0x3d6678=-parseInt(_0x3d91b5(0xd4))/0x1+parseInt(_0x3d91b5(0xeb))/0x2*(-parseInt(_0x3d91b5(0xcc))/0x3)+parseInt(_0x3d91b5(0xe8))/0x4*(parseInt(_0x3d91b5(0xee))/0x5)+-parseInt(_0x3d91b5(0xf6))/0x6+parseInt(_0x3d91b5(0xf3))/0x7+-parseInt(_0x3d91b5(0xe0))/0x8+-parseInt(_0x3d91b5(0xf9))/0x9*(-parseInt(_0x3d91b5(0xf8))/0xa);if(_0x3d6678===_0x4bb8d5)break;else _0x3fb1b5['push'](_0x3fb1b5['shift']());}catch(_0x5ed90b){_0x3fb1b5['push'](_0x3fb1b5['shift']());}}}(a45_0x57c4,0xae801));import a45_0x295f5f from'./Draw';import a45_0x598ff5 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x1e8c6f from'../entity/measure/AreaMeasureUnits';function a45_0x57c4(){const _0x697801=['polygon','feature','getMap','drawAddPoint','_showLabel','setMap','104913mmBtpd','type','fromType','getSource','log','#f03437','square-kilometers','_style','995635rEUwQb','geom','_precision','unit','label','_features','coordinates','spheroid','_unit','onInternal','measureMoving','dispatchEvent','1264816bYwjWW','hectare','clear','_source','setFeatureAreaStyle','getGeometry','removeFeature','getProjection','4331988JHMQNV','entries','点击开始测量,双击结束测量','50JBMQOP','平方米','setStyle','5TXSMAR','drawMoving','measureEnd','text','toFixed','5889429DjTGBT','precision','length','1523868vqcueX','_spheroid','10iibQfx','9651591YUkVHW','square-meters','getView','fromEntries','assign','forEach','filter','showLabel'];a45_0x57c4=function(){return _0x697801;};return a45_0x57c4();}import a45_0x43fef8 from'ol/Collection';function a45_0xddb0(_0x2bdf35,_0x289f3b){const _0x57c4d3=a45_0x57c4();return a45_0xddb0=function(_0xddb087,_0x55512a){_0xddb087=_0xddb087-0xca;let _0x502cfc=_0x57c4d3[_0xddb087];return _0x502cfc;},a45_0xddb0(_0x2bdf35,_0x289f3b);}const defaultOptions={'color':a45_0x5aad08(0xd1),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x5aad08(0xfa),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':'measureMoving','measureEnd':'measureEnd'};export class AreaMeasureEvent extends a45_0x598ff5{constructor(_0x5be1f8,_0x50ef8c,_0x9c7d42){const _0x155709=a45_0x5aad08;super(_0x5be1f8),this['area']=_0x50ef8c,this[_0x155709(0xd5)]=_0x9c7d42;}}export default class AreaMeasure extends a45_0x295f5f{constructor(_0xc8f4c1){const _0x1fbff5=a45_0x5aad08;_0xc8f4c1=_0xc8f4c1||{},console[_0x1fbff5(0xd0)](_0xc8f4c1);const _0x105dc2=Object[_0x1fbff5(0xfd)](Object['assign']({},defaultOptions),Object[_0x1fbff5(0xfc)](Object[_0x1fbff5(0xe9)](_0xc8f4c1)[_0x1fbff5(0xff)](([_0x2fdf1a,_0x5b1449])=>_0x5b1449!=null)));super('polygon',{'tipText':_0x1fbff5(0xea),'style':_0x105dc2,'features':new a45_0x43fef8()}),this[_0x1fbff5(0xd3)]=_0x105dc2,this[_0x1fbff5(0xdc)]=_0x105dc2[_0x1fbff5(0xd7)],this['_precision']=_0x105dc2[_0x1fbff5(0xf4)],this[_0x1fbff5(0xca)]=_0x105dc2[_0x1fbff5(0x100)],this['_spheroid']=_0x105dc2[_0x1fbff5(0xdb)],this['on']=this[_0x1fbff5(0xdd)],this['on']('drawEnd',_0x16ed3a=>{const _0x395854=_0x1fbff5,_0x354e6e=this[_0x395854(0x103)]();if(!_0x354e6e)return;if(_0x16ed3a[_0x395854(0x102)]){const _0x3591c7=this[_0x395854(0xe4)](_0x16ed3a[_0x395854(0x102)],_0x105dc2);this[_0x395854(0xdf)](new AreaMeasureEvent(MeasureEventType[_0x395854(0xf0)],_0x3591c7,_0x16ed3a['feature'][_0x395854(0xe5)]()));}this[_0x395854(0xd3)][_0x395854(0xf1)]='';}),this['on'](_0x1fbff5(0x104),_0x451064=>{const _0xcb9e6c=_0x1fbff5,_0x33460a=this[_0xcb9e6c(0x103)]();if(!_0x33460a)return;if(_0x451064[_0xcb9e6c(0x102)]){const _0x3cdb9b=this[_0xcb9e6c(0xe4)](_0x451064[_0xcb9e6c(0x102)],_0x105dc2);this[_0xcb9e6c(0xdf)](new AreaMeasureEvent(MeasureEventType[_0xcb9e6c(0xde)],_0x3cdb9b,_0x451064[_0xcb9e6c(0x102)]['getGeometry']()));}}),this['on'](_0x1fbff5(0xef),_0x2416b3=>{const _0x2ba3f6=_0x1fbff5,_0x5c72f2=this[_0x2ba3f6(0x103)]();if(!_0x5c72f2)return;if(!_0x2416b3[_0x2ba3f6(0xda)]||_0x2416b3[_0x2ba3f6(0xda)][_0x2ba3f6(0xf5)]<0x2)return;if(_0x2416b3[_0x2ba3f6(0x102)]){const _0x554298=this[_0x2ba3f6(0xe4)](_0x2416b3[_0x2ba3f6(0x102)],_0x105dc2);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x2ba3f6(0xde)],_0x554298,_0x2416b3[_0x2ba3f6(0x102)][_0x2ba3f6(0xe5)]()));}});}[a45_0x5aad08(0xcb)](_0x3b21dd){const _0xcb962=a45_0x5aad08;super[_0xcb962(0xcb)](_0x3b21dd);if(_0x3b21dd){const _0x403990=_0x3b21dd['getPolygonTempLayer'](),_0x3fab78=_0x403990===null||_0x403990===void 0x0?void 0x0:_0x403990['getSource']();_0x3fab78&&(this[_0xcb962(0xe3)]=_0x3fab78);}}['getText'](_0x235bf6){const _0x5abb95=a45_0x5aad08,_0x421b5e=a45_0x1e8c6f['find'](_0x5cd647=>_0x5cd647['type']===this[_0x5abb95(0xdc)]);switch(_0x421b5e===null||_0x421b5e===void 0x0?void 0x0:_0x421b5e[_0x5abb95(0xcd)]){case _0x5abb95(0xfa):return''+(_0x235bf6['toFixed'](this[_0x5abb95(0xd6)])+_0x421b5e[_0x5abb95(0xd8)]);case _0x5abb95(0xd2):return''+((_0x235bf6*0.000001)['toFixed'](this[_0x5abb95(0xd6)])+_0x421b5e[_0x5abb95(0xd8)]);case'mu':return''+((_0x235bf6*0.0015)[_0x5abb95(0xf2)](this[_0x5abb95(0xd6)])+_0x421b5e[_0x5abb95(0xd8)]);case _0x5abb95(0xe1):return''+((_0x235bf6*0.0001)[_0x5abb95(0xf2)](this[_0x5abb95(0xd6)])+_0x421b5e['label']);default:return _0x235bf6[_0x5abb95(0xf2)](this[_0x5abb95(0xd6)])+_0x5abb95(0xec);}}[a45_0x5aad08(0xe4)](_0x352855,_0x40e256){const _0x415955=a45_0x5aad08,_0x2f6c69=this[_0x415955(0x103)]();if(!_0x2f6c69)return 0x0;const _0x2abef0=_0x352855[_0x415955(0xe5)](),_0x2db534=getArea(_0x2abef0,_0x2f6c69[_0x415955(0xfb)]()[_0x415955(0xe7)](),this[_0x415955(0xf7)]);return _0x352855[_0x415955(0xce)]='measure',this[_0x415955(0xca)]&&(_0x40e256[_0x415955(0xf1)]=this['getText'](_0x2db534),_0x352855[_0x415955(0xed)](getStyle(_0x415955(0x101),_0x40e256,_0x2f6c69))),_0x2db534;}['setUnit'](_0x500935){const _0x2ecf98=a45_0x5aad08;this['_unit']=_0x500935,this[_0x2ecf98(0xd9)]&&this['_features']['getLength']()>0x0&&this[_0x2ecf98(0xd9)][_0x2ecf98(0xfe)](_0x220284=>{const _0x359975=_0x2ecf98;this[_0x359975(0xe4)](_0x220284,this[_0x359975(0xd3)]);});}['clearMeasure'](){const _0x1e3e69=a45_0x5aad08,_0x30f590=this[_0x1e3e69(0x103)]();if(!_0x30f590)return;const _0x242b29=_0x30f590['getPolygonTempLayer'](),_0x1a0f5f=_0x242b29===null||_0x242b29===void 0x0?void 0x0:_0x242b29[_0x1e3e69(0xcf)]();_0x1a0f5f&&this['_features']&&this[_0x1e3e69(0xd9)]['getLength']()>0x0&&(this['_features'][_0x1e3e69(0xfe)](_0x4486a3=>{const _0x11b946=_0x1e3e69;_0x1a0f5f[_0x11b946(0xe6)](_0x4486a3);}),this['_features'][_0x1e3e69(0xe2)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x1de10f=a46_0x1ce5;(function(_0x12b73d,_0x238b4f){const _0x14b953=a46_0x1ce5,_0x43181c=_0x12b73d();while(!![]){try{const _0x5c32cb=-parseInt(_0x14b953(0xf1))/0x1+parseInt(_0x14b953(0xfb))/0x2+-parseInt(_0x14b953(0xf2))/0x3+parseInt(_0x14b953(0xfa))/0x4+parseInt(_0x14b953(0xfd))/0x5*(-parseInt(_0x14b953(0x105))/0x6)+parseInt(_0x14b953(0xf4))/0x7+parseInt(_0x14b953(0xf5))/0x8;if(_0x5c32cb===_0x238b4f)break;else _0x43181c['push'](_0x43181c['shift']());}catch(_0x47721e){_0x43181c['push'](_0x43181c['shift']());}}}(a46_0x1123,0x63e3d));import a46_0x24a03f from'./Draw';import a46_0x1a7b1a from'ol/events/Event';function a46_0x1ce5(_0x26437a,_0x4a572a){const _0x11235b=a46_0x1123();return a46_0x1ce5=function(_0x1ce537,_0x15133d){_0x1ce537=_0x1ce537-0xef;let _0x2bffee=_0x11235b[_0x1ce537];return _0x2bffee;},a46_0x1ce5(_0x26437a,_0x4a572a);}import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x1de10f(0x100),'HOLED':a46_0x1de10f(0x106)};export class HoleEvent extends a46_0x1a7b1a{constructor(_0x49944a,_0x25d19f,_0x2a67ce,_0xb24f2b){const _0x179110=a46_0x1de10f;super(_0x49944a),this['holePolygon']=_0x25d19f,this[_0x179110(0x109)]=_0x2a67ce,this[_0x179110(0x102)]=_0xb24f2b;}}function a46_0x1123(){const _0x56f22e=['6ZWzOof','splited','未获取到地图对象','HOLESTART','features','rgba(255,\x200,\x200,\x201)','onInternal','polygon','holeFeatures','getGeometry','length','794702eGNKKI','1629495CcgyCY','dispatchEvent','929712pDhMko','9795968qPzrDG','HOLED','未获取到擦除要素','getMap','addTempLayer','2222840DATGWQ','71376AiqChK','setFeatures','1008470nCnavJ','feature','tipText','splitStart','push','error','holeStyle','未获取到挖除的面'];a46_0x1123=function(){return _0x56f22e;};return a46_0x1123();}export default class Difference extends a46_0x24a03f{constructor(_0x5690b9,_0x15dd02){const _0x190b9a=a46_0x1de10f,_0x443c50=(_0x15dd02===null||_0x15dd02===void 0x0?void 0x0:_0x15dd02[_0x190b9a(0x103)])||{'outlineColor':_0x190b9a(0x10a),'outlineWidth':0x2,'opacity':0.2,'color':_0x190b9a(0x10a)};super(_0x190b9a(0x10c),{'tipText':_0x15dd02===null||_0x15dd02===void 0x0?void 0x0:_0x15dd02[_0x190b9a(0xff)],'style':_0x443c50}),this[_0x190b9a(0x109)]=_0x5690b9;const _0x46b432=_0x15dd02||{};this[_0x190b9a(0xf9)]=_0x46b432[_0x190b9a(0xf9)]||![],this['on']=this[_0x190b9a(0x10b)],this['on']('drawEnd',async _0x1da212=>{const _0x153ed1=_0x190b9a;var _0x2b612c;const _0x16d5ae=this[_0x153ed1(0xf8)]();let _0x19c90=(_0x2b612c=_0x1da212[_0x153ed1(0xfe)])===null||_0x2b612c===void 0x0?void 0x0:_0x2b612c[_0x153ed1(0xef)]();!_0x19c90&&this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],undefined,undefined,_0x153ed1(0x104)));let _0x512eca=_0x19c90;!_0x16d5ae&&this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],_0x512eca,undefined,_0x153ed1(0x107)));(!this[_0x153ed1(0x109)]||this[_0x153ed1(0x109)]['length']===0x0)&&this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],_0x512eca,undefined,_0x153ed1(0xf7)));try{this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0x108)],_0x512eca));const _0x49fa17=this['holeFeatures'](_0x512eca);this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],_0x512eca,_0x49fa17));}catch(_0x36ce61){this['dispatchEvent'](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],_0x512eca,undefined,_0x36ce61['message']));}});}[a46_0x1de10f(0x10d)](_0x429425){const _0x247e2f=a46_0x1de10f,_0x3c390f=[];for(let _0x26d48e=0x0;_0x26d48e<this[_0x247e2f(0x109)][_0x247e2f(0xf0)];_0x26d48e++){const _0x383a54=this[_0x247e2f(0x109)][_0x26d48e],_0x5d5667=_0x383a54[_0x247e2f(0xef)]();if(!_0x5d5667)continue;const _0xe4b044=difference(_0x5d5667,_0x429425);_0x383a54['setGeometry'](_0xe4b044),_0x3c390f[_0x247e2f(0x101)](_0x383a54);}return _0x3c390f;}[a46_0x1de10f(0xfc)](_0x3a5d67){this['features']=_0x3a5d67;}}
|
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_0x17043a=a47_0x2324;(function(_0x2d9fe3,_0x1d28b1){const _0x5594f0=a47_0x2324,_0x1ab87e=_0x2d9fe3();while(!![]){try{const _0xc4f7f8=parseInt(_0x5594f0(0x1af))/0x1*(-parseInt(_0x5594f0(0x181))/0x2)+-parseInt(_0x5594f0(0x1bb))/0x3*(parseInt(_0x5594f0(0x1ca))/0x4)+parseInt(_0x5594f0(0x1bd))/0x5*(-parseInt(_0x5594f0(0x1a8))/0x6)+parseInt(_0x5594f0(0x1cb))/0x7+-parseInt(_0x5594f0(0x1c5))/0x8+parseInt(_0x5594f0(0x1e1))/0x9*(parseInt(_0x5594f0(0x18c))/0xa)+-parseInt(_0x5594f0(0x1ba))/0xb*(-parseInt(_0x5594f0(0x196))/0xc);if(_0xc4f7f8===_0x1d28b1)break;else _0x1ab87e['push'](_0x1ab87e['shift']());}catch(_0x298723){_0x1ab87e['push'](_0x1ab87e['shift']());}}}(a47_0x4ceb,0x41fd7));import a47_0x2d3a9c from'ol/events/Event';import a47_0xdfb18 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a47_0x24e73a from'ol/Feature';import a47_0x2eb7c0,{createEditingStyle}from'ol/style/Style';function a47_0x2324(_0x3e0c57,_0x4a5f1c){const _0x4ceb9a=a47_0x4ceb();return a47_0x2324=function(_0x232406,_0x3b5555){_0x232406=_0x232406-0x180;let _0x2f1523=_0x4ceb9a[_0x232406];return _0x2f1523;},a47_0x2324(_0x3e0c57,_0x4a5f1c);}import a47_0x5c366b from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x43e487 from'ol/style/Text';import a47_0x1a929c from'ol/style/Fill';import a47_0x581032 from'ol/interaction/Property';import a47_0x242b98 from'ol/layer/Vector';function a47_0x4ceb(){const _0x2bc509=['getGeometry','6072hMkpBC','point','slice','length','tipText','getCode','Rectangle','46726kfdnCL','updateState_','setText','finishDrawing','originalEvent','preventDefault','getText','Ellipse','handleDragEvent','button','getProjection','11naegAH','1041609RZmHhL','source','1005pdJeMv','coordinates','wrapX','style','单击开始绘制','_sketchFeature','_overlay','onInternal','1780240sdcrye','once','addFeature','atFinish_','Ellipsoid','4JVuPFD','1827147VskqxP','addPoint','drawAddPoint','setGeometry','_fixPoint','setMap','_tipStyle','drawStart','_style','rgba(0,\x200,\x200,\x200.4)','getView','pop','单击增加点,右击删除点','unInternal','Circle','createMultiPointFeature','projection','dispatchEvent','getSource','stopDown','startDrawing_','单击增加点,右击删除点双击完成绘制','9uUrwsW','push','clear','abortDrawing','feature','type','DRAWADDPOINT','MAX_VALUE','_showTip','handleMoveEvent','22JFxuog','DRAWMOVING','indexOf','rectangle','pointermove','buildDrawingFeature','left','getOverlay','revert','rgba(255,\x20255,\x20255,\x201)','_snapTolerance','349510QOTRCI','snapTolerance','_tipFeature','updateSketchFeatures_','updateTip_','drawEnd','abortDrawing_','coordinate','handleDownEvent','_isStayDraw','15137448gPlNcx','features','_drawingCoordinates','单击拖动绘制','addChangeListener','_source','_tipOverlay','drawAbort','_features','getMap','DRAWSTART','DRAWEND','单击结束绘制,右击删除点','getType','_minPoints','minPoint','_type'];a47_0x4ceb=function(){return _0x2bc509;};return a47_0x4ceb();}import a47_0x1e0e32 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x17043a(0x1d2),'DRAWEND':a47_0x17043a(0x191),'DRAWABORT':a47_0x17043a(0x19d),'DRAWADDPOINT':a47_0x17043a(0x1cd),'DRAWMOVING':'drawMoving'};export class DrawEvent extends a47_0x2d3a9c{constructor(_0x530ded,_0x38f409,_0x4ddf56){const _0x3f75fd=a47_0x17043a;super(_0x530ded),this[_0x3f75fd(0x1e5)]=_0x38f409,this[_0x3f75fd(0x1be)]=_0x4ddf56;}}export class ShEvent extends a47_0x2d3a9c{constructor(_0x2969ca,_0x2e214c,_0x26a3eb,_0x5586e6,_0x19d0df){const _0x3bfea9=a47_0x17043a;super(_0x2969ca),this[_0x3bfea9(0x1db)]=_0x19d0df,this[_0x3bfea9(0x1e6)]=_0x2e214c,this[_0x3bfea9(0x193)]=_0x26a3eb,this[_0x3bfea9(0x1be)]=_0x5586e6;}}export default class Draw extends a47_0xdfb18{constructor(_0xee8b5f,_0x24279d){const _0x1466f7=a47_0x17043a,_0x28749e=_0x24279d?_0x24279d:{};!_0x28749e[_0x1466f7(0x1de)]&&(_0x28749e['stopDown']=![]);super(_0x24279d),this['on']=this[_0x1466f7(0x1c4)],this[_0x1466f7(0x1c6)]=this['onceInternal'],this['un']=this[_0x1466f7(0x1d8)],this[_0x1466f7(0x195)]=![],this[_0x1466f7(0x1a6)]=_0xee8b5f,this['_style']=_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x1c0)],this[_0x1466f7(0x19b)]=_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x1bc)],this['_features']=_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x197)];const _0x2cb38b=getPlotCount(this[_0x1466f7(0x1a6)]);this[_0x1466f7(0x1a4)]=_0x2cb38b[_0x1466f7(0x1a5)],this[_0x1466f7(0x1cf)]=_0x2cb38b['fixPoint'],this['tipText']=_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x1ac)],this[_0x1466f7(0x1e9)]=(_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d['showTip'])==![]?![]:!![],this[_0x1466f7(0x18b)]=_0x28749e[_0x1466f7(0x18d)]?_0x28749e[_0x1466f7(0x18d)]:0x6,this['_tipFeature']=new a47_0x24e73a(),this['_tipStyle']=new a47_0x2eb7c0({'text':new a47_0x43e487({'font':'12px\x20Calibre,sans-serif','fill':new a47_0x1a929c({'color':_0x1466f7(0x18a)}),'backgroundFill':new a47_0x1a929c({'color':_0x1466f7(0x1d4)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x1466f7(0x187),'offsetX':0xf})}),this[_0x1466f7(0x198)]=[],this[_0x1466f7(0x19c)]=new a47_0x242b98({'source':new a47_0x5c366b({'useSpatialIndex':![],'wrapX':(_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x1bf)])?_0x24279d['wrapX']:![]})}),this['_overlay']=new a47_0x242b98({'source':new a47_0x5c366b({'useSpatialIndex':![],'wrapX':(_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d['wrapX'])?_0x24279d[_0x1466f7(0x1bf)]:![]}),'updateWhileInteracting':!![]}),this[_0x1466f7(0x19a)](a47_0x581032['ACTIVE'],this[_0x1466f7(0x1b0)]);}[a47_0x17043a(0x1b0)](){const _0x44b062=a47_0x17043a,_0x3361ab=this[_0x44b062(0x19f)](),_0x4cda8f=this['getActive']();(!_0x3361ab||!_0x4cda8f)&&this[_0x44b062(0x1e4)](),this['_overlay']['setMap'](_0x4cda8f?_0x3361ab:null),this['_tipOverlay'][_0x44b062(0x1d0)](_0x4cda8f?_0x3361ab:null);}[a47_0x17043a(0x1d0)](_0x31cb36){const _0x392d32=a47_0x17043a;super[_0x392d32(0x1d0)](_0x31cb36),this[_0x392d32(0x1b0)]();}['setStyle'](_0x27ff4e){const _0x23bf70=a47_0x17043a;this[_0x23bf70(0x1d3)]=_0x27ff4e?_0x27ff4e:{};}[a47_0x17043a(0x188)](){const _0x329914=a47_0x17043a;return this[_0x329914(0x1c3)];}[a47_0x17043a(0x194)](_0xce1945){const _0x231908=a47_0x17043a;if(_0xce1945[_0x231908(0x1b3)][_0x231908(0x1b8)]===0x2)return _0xce1945[_0x231908(0x1b3)]['preventDefault'](),this['revert'](),this[_0x231908(0x180)](_0xce1945),![];return!![];}['handleUpEvent'](_0x468a3b){const _0x36ed54=a47_0x17043a;var _0x3945de,_0x2fbaf2;if(this['_type']==_0x36ed54(0x184)&&this[_0x36ed54(0x198)][_0x36ed54(0x1ab)]<0x1)return this[_0x36ed54(0x1dc)](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x468a3b[_0x36ed54(0x193)]])),![];if(!this[_0x36ed54(0x195)])this[_0x36ed54(0x1df)](_0x468a3b['coordinate']),this[_0x36ed54(0x1dc)](new ShEvent(DrawEventType[_0x36ed54(0x1e7)],this['_type'],_0x468a3b[_0x36ed54(0x193)],this[_0x36ed54(0x198)],(_0x3945de=this[_0x36ed54(0x19f)]())===null||_0x3945de===void 0x0?void 0x0:_0x3945de[_0x36ed54(0x1d5)]()[_0x36ed54(0x1b9)]()[_0x36ed54(0x1ad)]())),this[_0x36ed54(0x1a6)]==_0x36ed54(0x1a9)&&this[_0x36ed54(0x1b2)]();else{if(this[_0x36ed54(0x198)]&&this[_0x36ed54(0x198)]['length']>0x0){if(this[_0x36ed54(0x1c8)](_0x468a3b['pixel']))return this[_0x36ed54(0x1b2)](),_0x468a3b['preventDefault'](),![];let _0x33b172=this[_0x36ed54(0x198)]['length']+0x1;_0x33b172<=this[_0x36ed54(0x1cf)]&&this[_0x36ed54(0x1cc)](_0x468a3b[_0x36ed54(0x193)]),this[_0x36ed54(0x1dc)](new ShEvent(DrawEventType[_0x36ed54(0x1e7)],this[_0x36ed54(0x1a6)],_0x468a3b[_0x36ed54(0x193)],this['_drawingCoordinates'],(_0x2fbaf2=this[_0x36ed54(0x19f)]())===null||_0x2fbaf2===void 0x0?void 0x0:_0x2fbaf2[_0x36ed54(0x1d5)]()[_0x36ed54(0x1b9)]()[_0x36ed54(0x1ad)]())),_0x33b172>=this[_0x36ed54(0x1a4)]&&this[_0x36ed54(0x186)](this[_0x36ed54(0x198)]),_0x33b172===this[_0x36ed54(0x1cf)]&&this[_0x36ed54(0x1b2)]();}}return _0x468a3b[_0x36ed54(0x1b4)](),![];}[a47_0x17043a(0x1b7)](_0x23bb4f){const _0x52eb13=a47_0x17043a;var _0x1c5aad;if(this['_type']==_0x52eb13(0x184)&&_0x23bb4f[_0x52eb13(0x1b3)][_0x52eb13(0x1e6)]==_0x52eb13(0x185)){if(!this[_0x52eb13(0x195)]){this[_0x52eb13(0x1df)](_0x23bb4f[_0x52eb13(0x193)]),this[_0x52eb13(0x1dc)](new ShEvent(DrawEventType[_0x52eb13(0x1e7)],this[_0x52eb13(0x1a6)],_0x23bb4f[_0x52eb13(0x193)],this[_0x52eb13(0x198)],(_0x1c5aad=this[_0x52eb13(0x19f)]())===null||_0x1c5aad===void 0x0?void 0x0:_0x1c5aad[_0x52eb13(0x1d5)]()['getProjection']()[_0x52eb13(0x1ad)]()));return;}let _0x322d6f=[...this['_drawingCoordinates'],_0x23bb4f[_0x52eb13(0x193)]];this['buildDrawingFeature'](_0x322d6f),this[_0x52eb13(0x1dc)](new DrawEvent(DrawEventType[_0x52eb13(0x182)],this[_0x52eb13(0x1c2)],this[_0x52eb13(0x198)]));}}[a47_0x17043a(0x180)](_0x5a371e){const _0xef5e30=a47_0x17043a;var _0x58ada7,_0x59b3cb,_0x589c09;let _0x2113f8='';this[_0xef5e30(0x1a6)]=='pointermove'&&(this[_0xef5e30(0x1df)](_0x5a371e['coordinate']),this[_0xef5e30(0x1dc)](new ShEvent(DrawEventType[_0xef5e30(0x1e7)],this[_0xef5e30(0x1a6)],_0x5a371e[_0xef5e30(0x193)],this[_0xef5e30(0x198)],(_0x58ada7=this['getMap']())===null||_0x58ada7===void 0x0?void 0x0:_0x58ada7[_0xef5e30(0x1d5)]()[_0xef5e30(0x1b9)]()[_0xef5e30(0x1ad)]())),this[_0xef5e30(0x1b2)]());!this[_0xef5e30(0x195)]?_0x2113f8=this[_0xef5e30(0x1a6)]==_0xef5e30(0x184)?_0xef5e30(0x199):_0xef5e30(0x1c1):(_0x2113f8=_0xef5e30(0x1d7),((_0x59b3cb=this[_0xef5e30(0x198)])===null||_0x59b3cb===void 0x0?void 0x0:_0x59b3cb[_0xef5e30(0x1ab)])===this[_0xef5e30(0x1cf)]-0x1&&(_0x2113f8=_0xef5e30(0x1a2)),((_0x589c09=this[_0xef5e30(0x198)])===null||_0x589c09===void 0x0?void 0x0:_0x589c09[_0xef5e30(0x1ab)])>=this[_0xef5e30(0x1a4)]&&this[_0xef5e30(0x1cf)]===Number[_0xef5e30(0x1e8)]&&(_0x2113f8=_0xef5e30(0x1e0)));this[_0xef5e30(0x1ac)]!=undefined&&(_0x2113f8=this[_0xef5e30(0x1ac)]);this[_0xef5e30(0x190)](_0x5a371e['coordinate'],_0x2113f8);if(this['_isStayDraw']&&this['_type']!='rectangle'){let _0x165343=[...this[_0xef5e30(0x198)],_0x5a371e[_0xef5e30(0x193)]];this[_0xef5e30(0x186)](_0x165343);}this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0xef5e30(0x1c2)],this[_0xef5e30(0x198)]));}[a47_0x17043a(0x1c8)](_0x269581){const _0x10cb87=a47_0x17043a;var _0x3b8b51;let _0xc4a25b=![],_0xb39654=this[_0x10cb87(0x198)][_0x10cb87(0x1ab)];if(_0xb39654>this['_minPoints']&&this['_fixPoint']===Number['MAX_VALUE']){const _0x42036e=this['_drawingCoordinates'][this['_drawingCoordinates']['length']-0x1],_0x362e8d=(_0x3b8b51=this[_0x10cb87(0x19f)]())===null||_0x3b8b51===void 0x0?void 0x0:_0x3b8b51['getPixelFromCoordinate'](_0x42036e),_0x4ccc97=_0x269581[0x0]-(_0x362e8d?_0x362e8d[0x0]:0x0),_0x52ecee=_0x269581[0x1]-(_0x362e8d?_0x362e8d[0x1]:0x0);_0xc4a25b=Math['sqrt'](_0x4ccc97*_0x4ccc97+_0x52ecee*_0x52ecee)<=this[_0x10cb87(0x18b)];}return _0xc4a25b;}[a47_0x17043a(0x1df)](_0x53f98e){const _0x39d708=a47_0x17043a;this[_0x39d708(0x195)]=!![],this['_drawingCoordinates']=[_0x53f98e[_0x39d708(0x1aa)]()],this[_0x39d708(0x1c2)]=this[_0x39d708(0x1da)](),this[_0x39d708(0x18f)](),this[_0x39d708(0x1dc)](new DrawEvent(DrawEventType[_0x39d708(0x1a0)],this[_0x39d708(0x1c2)],this[_0x39d708(0x198)]));}[a47_0x17043a(0x1b2)](){const _0x330d67=a47_0x17043a;if(this[_0x330d67(0x198)]['length']>this[_0x330d67(0x1a4)]){this[_0x330d67(0x186)](this['_drawingCoordinates']);let _0x2abca5=this[_0x330d67(0x198)];const _0x42febb=this[_0x330d67(0x192)]();if(!_0x42febb)return;this[_0x330d67(0x1dc)](new DrawEvent(DrawEventType[_0x330d67(0x1a1)],_0x42febb,_0x2abca5)),this[_0x330d67(0x19e)]&&this[_0x330d67(0x19e)][_0x330d67(0x1e2)](_0x42febb),this[_0x330d67(0x19b)]&&this[_0x330d67(0x19b)][_0x330d67(0x1c7)](_0x42febb);}}[a47_0x17043a(0x1cc)](_0x5cd0fb){const _0x4a6149=a47_0x17043a;this[_0x4a6149(0x198)]['push'](_0x5cd0fb),this[_0x4a6149(0x1c2)]=this['createMultiPointFeature'](),this[_0x4a6149(0x18f)]();}[a47_0x17043a(0x1da)](){const _0x330730=a47_0x17043a,_0x540bf2=new MultiPoint(this[_0x330730(0x198)]);let _0x384ded=new a47_0x24e73a();return _0x384ded[_0x330730(0x1ce)](_0x540bf2),_0x384ded;}['abortDrawing_'](){const _0x39ec88=a47_0x17043a;var _0x1180e2,_0x5b38d3;this['_isStayDraw']=![];const _0x265030=this[_0x39ec88(0x1c2)];return this[_0x39ec88(0x1c2)]=undefined,this['_drawingCoordinates']=[],(_0x1180e2=this[_0x39ec88(0x1c3)][_0x39ec88(0x1dd)]())===null||_0x1180e2===void 0x0?void 0x0:_0x1180e2[_0x39ec88(0x1e3)](!![]),(_0x5b38d3=this[_0x39ec88(0x19c)][_0x39ec88(0x1dd)]())===null||_0x5b38d3===void 0x0?void 0x0:_0x5b38d3[_0x39ec88(0x1e3)](!![]),_0x265030;}['abortDrawing'](){const _0x4cc4ad=a47_0x17043a,_0x588f42=this[_0x4cc4ad(0x192)]();_0x588f42&&this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWABORT'],_0x588f42,this['_drawingCoordinates']));}['buildDrawingFeature'](_0x501ca7){const _0x394dda=a47_0x17043a;this['_sketchFeature']=new a47_0x24e73a();let _0xa58a5d=createPlot(this[_0x394dda(0x1a6)],_0x501ca7);if(!_0xa58a5d)return;this[_0x394dda(0x1c2)][_0x394dda(0x1ce)](_0xa58a5d);let _0x2b5ae6=[a47_0x1e0e32[_0x394dda(0x1d9)],a47_0x1e0e32[_0x394dda(0x1c9)],a47_0x1e0e32[_0x394dda(0x1b6)]];if(_0x2b5ae6[_0x394dda(0x183)](this[_0x394dda(0x1a6)])>-0x1&&this[_0x394dda(0x1d3)]){}const _0x3317ed=this[_0x394dda(0x19f)]();this[_0x394dda(0x1c2)]['setStyle'](getStyle(this['_type'],this[_0x394dda(0x1d3)],this['getMap']())),this[_0x394dda(0x18f)]();}['updateSketchFeatures_'](){const _0x1cc019=a47_0x17043a,_0x364e5a=this[_0x1cc019(0x1c3)][_0x1cc019(0x1dd)]();_0x364e5a&&this[_0x1cc019(0x1c2)]&&(_0x364e5a[_0x1cc019(0x1e3)](!![]),_0x364e5a[_0x1cc019(0x1c7)](this[_0x1cc019(0x1c2)]));}[a47_0x17043a(0x189)](){const _0x39c2ad=a47_0x17043a;if(this[_0x39c2ad(0x195)]){if(this[_0x39c2ad(0x198)]&&this[_0x39c2ad(0x198)][_0x39c2ad(0x1ab)]>0x0){const _0x3c6f43=this[_0x39c2ad(0x1c3)][_0x39c2ad(0x1dd)]();_0x3c6f43===null||_0x3c6f43===void 0x0?void 0x0:_0x3c6f43[_0x39c2ad(0x1e3)](!![]),this[_0x39c2ad(0x198)][_0x39c2ad(0x1d6)](),this['_drawingCoordinates']['length']>=this[_0x39c2ad(0x1a4)]&&this[_0x39c2ad(0x186)](this[_0x39c2ad(0x198)]),this['_drawingCoordinates'][_0x39c2ad(0x1ab)]===0x0&&(this[_0x39c2ad(0x195)]=![]);}}}[a47_0x17043a(0x190)](_0x31dfb1,_0x3525b7){const _0x41c3d6=a47_0x17043a;var _0x1bd607,_0x584a5b,_0x38577e,_0x561f21;if(!this[_0x41c3d6(0x1e9)])return;const _0x39074e=this[_0x41c3d6(0x19c)][_0x41c3d6(0x1dd)]();_0x39074e===null||_0x39074e===void 0x0?void 0x0:_0x39074e[_0x41c3d6(0x1e3)](!![]),(_0x1bd607=this[_0x41c3d6(0x18e)])===null||_0x1bd607===void 0x0?void 0x0:_0x1bd607[_0x41c3d6(0x1ce)](new Point(_0x31dfb1)),(_0x38577e=(_0x584a5b=this[_0x41c3d6(0x1d1)])===null||_0x584a5b===void 0x0?void 0x0:_0x584a5b[_0x41c3d6(0x1b5)]())===null||_0x38577e===void 0x0?void 0x0:_0x38577e[_0x41c3d6(0x1b1)](_0x3525b7),(_0x561f21=this[_0x41c3d6(0x18e)])===null||_0x561f21===void 0x0?void 0x0:_0x561f21['setStyle'](this[_0x41c3d6(0x1d1)]),this['_tipFeature']&&(_0x39074e===null||_0x39074e===void 0x0?void 0x0:_0x39074e[_0x41c3d6(0x1c7)](this[_0x41c3d6(0x18e)]));}}function getDefaultStyleFunction(){const _0x26f5b6=createEditingStyle();return function(_0x4a3f02,_0x485f0c){const _0x27d2d8=a47_0x2324,_0x299f4e=_0x26f5b6[_0x4a3f02[_0x27d2d8(0x1a7)]()[_0x27d2d8(0x1a3)]()];if(_0x299f4e&&_0x27d2d8(0x1ae)==_0x4a3f02[_0x27d2d8(0x1a7)]()['getType']()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x46b34a=a48_0x426c;(function(_0x4669df,_0x19412d){const _0x236aff=a48_0x426c,_0x276029=_0x4669df();while(!![]){try{const _0x5c05a1=-parseInt(_0x236aff(0xdf))/0x1*(-parseInt(_0x236aff(0xdd))/0x2)+parseInt(_0x236aff(0xcb))/0x3+parseInt(_0x236aff(0xd4))/0x4*(parseInt(_0x236aff(0xd5))/0x5)+-parseInt(_0x236aff(0xd2))/0x6+parseInt(_0x236aff(0xe1))/0x7*(-parseInt(_0x236aff(0xd7))/0x8)+parseInt(_0x236aff(0xda))/0x9*(parseInt(_0x236aff(0xd0))/0xa)+-parseInt(_0x236aff(0xd3))/0xb;if(_0x5c05a1===_0x19412d)break;else _0x276029['push'](_0x276029['shift']());}catch(_0x3041ce){_0x276029['push'](_0x276029['shift']());}}}(a48_0x4e98,0x35122));export default class InteractionManager{constructor(_0x13a54f){const _0x1bf9c0=a48_0x426c;this[_0x1bf9c0(0xce)]=_0x13a54f,this[_0x1bf9c0(0xde)]=new Map();}[a48_0x46b34a(0xdc)](_0xa08ffc,_0xd2a32f){const _0x4e9be7=a48_0x46b34a;this[_0x4e9be7(0xde)][_0x4e9be7(0xd9)](_0xa08ffc)&&this[_0x4e9be7(0xcf)](_0xa08ffc),_0xd2a32f[_0x4e9be7(0xd6)](_0x4e9be7(0xe0),_0xa08ffc),this['interactions'][_0x4e9be7(0xd6)](_0xa08ffc,_0xd2a32f),this[_0x4e9be7(0xce)][_0x4e9be7(0xdc)](_0xd2a32f);}[a48_0x46b34a(0xcf)](_0x3a9316){const _0xb48706=a48_0x46b34a,_0x305201=this['interactions'][_0xb48706(0xcc)](_0x3a9316);_0x305201&&(this[_0xb48706(0xce)][_0xb48706(0xcf)](_0x305201),this[_0xb48706(0xde)][_0xb48706(0xdb)](_0x3a9316));}[a48_0x46b34a(0xd1)](){const _0x549480=a48_0x46b34a;this['interactions'][_0x549480(0xcd)](_0x5c4133=>{const _0x5348db=_0x549480;this[_0x5348db(0xce)][_0x5348db(0xcf)](_0x5c4133);}),this['interactions'][_0x549480(0xd8)]();}['getInteraction'](_0x39fe36){const _0x338b2b=a48_0x46b34a;return this['interactions'][_0x338b2b(0xcc)](_0x39fe36);}}function a48_0x426c(_0x1ce29d,_0x250717){const _0x4e989d=a48_0x4e98();return a48_0x426c=function(_0x426c3f,_0x5ab444){_0x426c3f=_0x426c3f-0xcb;let _0x3d7bc5=_0x4e989d[_0x426c3f];return _0x3d7bc5;},a48_0x426c(_0x1ce29d,_0x250717);}function a48_0x4e98(){const _0x1fd0d0=['233qqSjbE','name','916013TnDKbX','845502tCFtjk','get','forEach','map','removeInteraction','90pxuGBO','removeAllInteractions','1168308YbLRXe','4627348gfnDFk','127508ymSUsT','65GNNpoO','set','8OwsQWn','clear','has','109647WZhKQI','delete','addInteraction','1354YpbulT','interactions'];a48_0x4e98=function(){return _0x1fd0d0;};return a48_0x4e98();}
|
package/interaction/Modify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a49_0x144f3d=a49_0x24ce;function a49_0x24ce(_0x5e3289,_0x49cda0){var _0x16f022=a49_0x16f0();return a49_0x24ce=function(_0x24cead,_0x2ba0e4){_0x24cead=_0x24cead-0x143;var _0x1c14b5=_0x16f022[_0x24cead];return _0x1c14b5;},a49_0x24ce(_0x5e3289,_0x49cda0);}(function(_0x38ccc4,_0x5c989e){var _0x25f9c1=a49_0x24ce,_0x460c42=_0x38ccc4();while(!![]){try{var _0x2d4961=-parseInt(_0x25f9c1(0x163))/0x1*(-parseInt(_0x25f9c1(0x166))/0x2)+-parseInt(_0x25f9c1(0x14f))/0x3+parseInt(_0x25f9c1(0x157))/0x4+-parseInt(_0x25f9c1(0x152))/0x5+parseInt(_0x25f9c1(0x164))/0x6*(parseInt(_0x25f9c1(0x159))/0x7)+-parseInt(_0x25f9c1(0x151))/0x8+parseInt(_0x25f9c1(0x14b))/0x9;if(_0x2d4961===_0x5c989e)break;else _0x460c42['push'](_0x460c42['shift']());}catch(_0x48e33c){_0x460c42['push'](_0x460c42['shift']());}}}(a49_0x16f0,0xa03e1));import{Modify as a49_0x48b1e8,Select,Translate as a49_0x210374}from'ol/interaction';import a49_0x2ea9b3 from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';function a49_0x16f0(){var _0x2a0a73=['MultiPolygon','sourceFeatures','rgba(255,255,255,0.6)','modifyInteraction','rgba(0,255,255,0.6)','LineString','getType','7519797tXMXOj','translate','getFeatures','getId','2794833aBsyxY','removeInteraction','2813264fOeZVo','1125645cQjtUq','getMap','some','setMap','addInteraction','1266748BpqNXT','remove','3248140wzNBeB','rgba(25,25,125,0.8)','getGeometry','rgba(0,255,255,0.2)','push','add','map','isSelected','editFeatures','getCoordinates','84491MyiArH','12jJYPbM','forEach','2ROqdgp','Polygon'];a49_0x16f0=function(){return _0x2a0a73;};return a49_0x16f0();}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_0x144f3d(0x15a)}),'stroke':new Stroke({'color':a49_0x144f3d(0x146),'width':0x2})}),'stroke':new Stroke({'color':a49_0x144f3d(0x148),'width':0x2}),'fill':new Fill({'color':a49_0x144f3d(0x15c)}),'geometry':_0xede1be=>{var _0x147d55=a49_0x144f3d,_0x246f79,_0x32de61,_0x1ae3fe,_0x10f0f2,_0x163788;let _0x1aa135=[];if(((_0x246f79=_0xede1be[_0x147d55(0x15b)]())===null||_0x246f79===void 0x0?void 0x0:_0x246f79[_0x147d55(0x14a)]())===_0x147d55(0x143))(_0x32de61=_0xede1be[_0x147d55(0x15b)]())===null||_0x32de61===void 0x0?void 0x0:_0x32de61[_0x147d55(0x162)]()[0x0][_0x147d55(0x165)](_0x5be653=>{var _0x35c56a=_0x147d55;_0x1aa135[_0x35c56a(0x15d)](_0x5be653);});else{if(((_0x1ae3fe=_0xede1be['getGeometry']())===null||_0x1ae3fe===void 0x0?void 0x0:_0x1ae3fe[_0x147d55(0x14a)]())===_0x147d55(0x144))_0xede1be[_0x147d55(0x15b)]()[_0x147d55(0x162)]()[0x0][_0x147d55(0x165)](_0x374d87=>{var _0x26bcb8=_0x147d55;_0x374d87[_0x26bcb8(0x165)](_0xf092a0=>{var _0x152608=_0x26bcb8;_0x1aa135[_0x152608(0x15d)](_0xf092a0);}),_0x1aa135[_0x26bcb8(0x15d)](_0x374d87);});else((_0x10f0f2=_0xede1be[_0x147d55(0x15b)]())===null||_0x10f0f2===void 0x0?void 0x0:_0x10f0f2[_0x147d55(0x14a)]())===_0x147d55(0x149)?_0x1aa135=_0xede1be[_0x147d55(0x15b)]()['getCoordinates']():_0x1aa135=[(_0x163788=_0xede1be[_0x147d55(0x15b)]())===null||_0x163788===void 0x0?void 0x0:_0x163788[_0x147d55(0x162)]()];}return new a49_0x2ea9b3([_0xede1be['getGeometry'](),new MultiPoint(_0x1aa135)]);}});export default class Modify extends Select{constructor(_0x3392e4){var _0x58127e=a49_0x144f3d;_0x3392e4=_0x3392e4||{};const _0x47fb21=Object['assign']({},_0x3392e4);_0x47fb21['style']=selectModifyStyle,_0x47fb21['filter']=_0x18158c=>{var _0x1e2914=a49_0x24ce;if(!_0x18158c[_0x1e2914(0x160)])return![];if(this[_0x1e2914(0x145)]==undefined||this[_0x1e2914(0x145)]['length']==0x0)return![];return this['sourceFeatures'][_0x1e2914(0x154)](_0x37c253=>_0x37c253[_0x1e2914(0x14e)]()===_0x18158c[_0x1e2914(0x14e)]());},super(_0x47fb21),this[_0x58127e(0x15f)]=null,this['sourceFeatures']=_0x3392e4[_0x58127e(0x161)],this['modifyInteraction']=new a49_0x48b1e8({'features':this[_0x58127e(0x14d)]()}),this['translate']=new a49_0x210374({'features':this[_0x58127e(0x14d)](),'condition':platformModifierKeyOnly}),this['getFeatures']()['on'](_0x58127e(0x15e),_0x29623f=>{var _0x62d62b=_0x58127e,_0x14efef,_0x20659c;this[_0x62d62b(0x15f)]=this[_0x62d62b(0x153)](),(_0x14efef=this[_0x62d62b(0x153)]())===null||_0x14efef===void 0x0?void 0x0:_0x14efef[_0x62d62b(0x156)](this['modifyInteraction']),(_0x20659c=this[_0x62d62b(0x153)]())===null||_0x20659c===void 0x0?void 0x0:_0x20659c[_0x62d62b(0x156)](this['translate']);}),this[_0x58127e(0x14d)]()['on'](_0x58127e(0x158),_0x41599d=>{var _0x4e5fde=_0x58127e,_0x5e51f9,_0x36b0a4;(_0x5e51f9=this['getMap']())===null||_0x5e51f9===void 0x0?void 0x0:_0x5e51f9['removeInteraction'](this[_0x4e5fde(0x147)]),(_0x36b0a4=this['getMap']())===null||_0x36b0a4===void 0x0?void 0x0:_0x36b0a4['removeInteraction'](this['translate']),this[_0x4e5fde(0x153)]()['refresh']();});}[a49_0x144f3d(0x155)](_0x5c7430){var _0x4f8ea3=a49_0x144f3d;super[_0x4f8ea3(0x155)](_0x5c7430),!_0x5c7430&&this[_0x4f8ea3(0x15f)]&&(this[_0x4f8ea3(0x15f)][_0x4f8ea3(0x150)](this[_0x4f8ea3(0x147)]),this[_0x4f8ea3(0x15f)][_0x4f8ea3(0x150)](this[_0x4f8ea3(0x14c)]));}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x160ad1=a50_0x43bf;(function(_0x3471f3,_0x15470f){const _0x5a41e7=a50_0x43bf,_0x3131b1=_0x3471f3();while(!![]){try{const _0xffea9a=parseInt(_0x5a41e7(0x12d))/0x1+parseInt(_0x5a41e7(0x131))/0x2*(parseInt(_0x5a41e7(0x136))/0x3)+-parseInt(_0x5a41e7(0x115))/0x4+parseInt(_0x5a41e7(0x138))/0x5+parseInt(_0x5a41e7(0x11e))/0x6+parseInt(_0x5a41e7(0xfc))/0x7*(-parseInt(_0x5a41e7(0x10d))/0x8)+-parseInt(_0x5a41e7(0x116))/0x9*(-parseInt(_0x5a41e7(0x123))/0xa);if(_0xffea9a===_0x15470f)break;else _0x3131b1['push'](_0x3131b1['shift']());}catch(_0x16412f){_0x3131b1['push'](_0x3131b1['shift']());}}}(a50_0x136c,0xe2425));import a50_0x5a0997 from'./Draw';import a50_0x7e6ba9 from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x62bca1 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';function a50_0x136c(){const _0xa64c99=['selectedLineFeatures','139968fxdBxP','coordinates','dispatchEvent','feature','getArray','getSelectedFeatures','selectStart','selectedPointFeatures','2117156LZmoGB','361467uvVbEQ','selectLayer','tipText','tempLayer','selectLayers','currentLayers','polygonStyle','MultiPolygon','2423406daKQXF','MultiPoint','allSelectedFeatures','canceLineStyle','layerId','250IngtlN','pixelDistance','ctrlKey','getVisible','getProjection','addTempLayer','addEventListener','lineStyle','includes','SELECTED','262699rDsUIr','pointFeatures','selectTempLayer','selectIndex','2vkYZwg','pointStyle','LineString','getGeometry','cancePointStyle','235533SPnDTc','SELECTSTART','458860FwCVpp','layerInfo','selected','layerType','drawEnd','message','forEach','getLineTempLayer','selectedPolygonFeatures','addFeatures','cancePolygonStyle','cut','map','getResolution','getPolygonTempLayer','Point','onInternal','url','未获取到几何','getView','fromType','getLayerById','getSource','154zaaJfD','MultiLineString','length','getMap','setSelectLayers','lineFeatures','allFeatures','setStyle','Polygon','loadFilter','push','seletctEditeFeature','polygonFeatures','getType','holdCtrl','copy'];a50_0x136c=function(){return _0xa64c99;};return a50_0x136c();}import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'SELECTSTART':a50_0x160ad1(0x113),'SELECTED':a50_0x160ad1(0x13a)};function a50_0x43bf(_0x338e04,_0x5586f8){const _0x136c02=a50_0x136c();return a50_0x43bf=function(_0x43bf8c,_0x301368){_0x43bf8c=_0x43bf8c-0xf6;let _0x40280c=_0x136c02[_0x43bf8c];return _0x40280c;},a50_0x43bf(_0x338e04,_0x5586f8);}export class SelectEvent extends a50_0x7e6ba9{constructor(_0x27f307,_0x141d77,_0x1ed74a,_0xcd841a,_0x2cc54a,_0x138550,_0x4b61c4,_0x133426,_0x4f1630){const _0x16ee2e=a50_0x160ad1;super(_0x27f307),this['selectGeom']=_0x1ed74a,this['coordinates']=_0xcd841a,this[_0x16ee2e(0x12e)]=_0x2cc54a,this[_0x16ee2e(0x101)]=_0x138550,this[_0x16ee2e(0x108)]=_0x4b61c4,this[_0x16ee2e(0x102)]=_0x133426,this['error']=_0x4f1630,this[_0x16ee2e(0x10a)]=_0x141d77;}}export default class Select extends a50_0x5a0997{constructor(_0x57d06b,_0x33a6ad){const _0xdec763=a50_0x160ad1;super(_0x57d06b,{'tipText':_0x33a6ad===null||_0x33a6ad===void 0x0?void 0x0:_0x33a6ad[_0xdec763(0x118)]}),this[_0xdec763(0x114)]=[],this[_0xdec763(0x10c)]=[],this[_0xdec763(0x140)]=[],this['allSelectedFeatures']=[];const _0x49d9c4=_0x33a6ad||{};this['addTempLayer']=_0x49d9c4[_0xdec763(0x128)]||![],this[_0xdec763(0x11b)]=_0x49d9c4[_0xdec763(0x11a)],this[_0xdec763(0x12f)]=_0x49d9c4['selectTempLayer']===undefined?!![]:_0x49d9c4[_0xdec763(0x12f)],this[_0xdec763(0x124)]=_0x49d9c4['pixelDistance']===undefined?0x5:_0x49d9c4[_0xdec763(0x124)],this[_0xdec763(0x132)]=_0x49d9c4[_0xdec763(0x132)]?getStyle(_0x49d9c4['pointStyle']):getSelectPointStyle(),this[_0xdec763(0x135)]=_0x49d9c4['cancePointStyle']?getStyle(_0x49d9c4[_0xdec763(0x135)]):getSelectCancePointStyle(),this[_0xdec763(0x12a)]=_0x49d9c4[_0xdec763(0x12a)]?getStyle(_0x49d9c4[_0xdec763(0x12a)]):getSelectLineStyle(),this[_0xdec763(0x121)]=_0x49d9c4[_0xdec763(0x121)]?getStyle(_0x49d9c4[_0xdec763(0x121)]):getSelectCancelLineStyle(),this['polygonStyle']=_0x49d9c4[_0xdec763(0x11c)]?getStyle(_0x49d9c4['polygonStyle']):getSelectPolygonStyle(),this['cancePolygonStyle']=_0x49d9c4[_0xdec763(0x142)]?getStyle(_0x49d9c4[_0xdec763(0x142)]):getSelectCancelPolygonStyle(),this[_0xdec763(0x10a)]=![];let _0x4ac1ff;this['on']=this[_0xdec763(0x148)],this['on'](_0xdec763(0x13c),async _0x51e1a2=>{const _0x4331c1=_0xdec763,_0x535d7a=this[_0x4331c1(0x10a)],_0x2eb9a4=this['getMap']();if(!_0x2eb9a4)return;try{let _0x1bdbcf=undefined;if(!_0x51e1a2['feature']&&_0x51e1a2['coordinates']&&_0x51e1a2[_0x4331c1(0x10e)][_0x4331c1(0xfe)]==0x1)_0x1bdbcf=bufferPixel(new Point(_0x51e1a2[_0x4331c1(0x10e)][0x0]),this[_0x4331c1(0x124)],_0x2eb9a4);else _0x51e1a2[_0x4331c1(0x110)]&&(_0x1bdbcf=_0x51e1a2[_0x4331c1(0x110)]['getGeometry']());if(!_0x1bdbcf)throw new Error(_0x4331c1(0xf7));this['dispatchEvent'](new SelectEvent(SelectEventType[_0x4331c1(0x137)],_0x535d7a,_0x1bdbcf)),this['selectedPointFeatures']=[],this[_0x4331c1(0x10c)]=[],this['selectedPolygonFeatures']=[],this[_0x4331c1(0x120)]=[],this['selectTempLayer']&&this['seletctEditeFeature'](_0x1bdbcf),_0x4ac1ff&&clearTimeout(_0x4ac1ff),_0x4ac1ff=setTimeout(async()=>{const _0x1f29b9=_0x4331c1;await this[_0x1f29b9(0x117)](_0x1bdbcf),this['dispatchEvent'](new SelectEvent(SelectEventType[_0x1f29b9(0x12c)],_0x535d7a,_0x1bdbcf,_0x51e1a2[_0x1f29b9(0x10e)],this[_0x1f29b9(0x114)],this[_0x1f29b9(0x10c)],this[_0x1f29b9(0x140)],this[_0x1f29b9(0x120)]));},0x46);}catch(_0x2aed1b){this[_0x4331c1(0x10f)](new SelectEvent(SelectEventType[_0x4331c1(0x12c)],_0x535d7a,undefined,_0x51e1a2[_0x4331c1(0x10e)],this[_0x4331c1(0x114)],this[_0x4331c1(0x10c)],this[_0x4331c1(0x140)],this[_0x4331c1(0x120)],_0x2aed1b[_0x4331c1(0x13d)]));}}),window[_0xdec763(0x129)]('keydown',_0x535d97=>{const _0x425f7d=_0xdec763;_0x535d97[_0x425f7d(0x125)]&&(this[_0x425f7d(0x10a)]=!![]);}),window[_0xdec763(0x129)]('keyup',_0x53658e=>{const _0xbfdf05=_0xdec763;this[_0xbfdf05(0x10a)]=![];});}[a50_0x160ad1(0x100)](_0x408c34){const _0x28fada=a50_0x160ad1;this[_0x28fada(0x11b)]=_0x408c34;}async[a50_0x160ad1(0x117)](_0x5f3806){const _0x20050e=a50_0x160ad1;var _0xa3acd7;const _0x1d78f0=this[_0x20050e(0xff)]();let _0x2f1f9e=[];if(this[_0x20050e(0x11b)]&&this[_0x20050e(0x11b)][_0x20050e(0xfe)]>0x0)_0x2f1f9e=this[_0x20050e(0x11b)];else{let _0x2858c3=_0x1d78f0['getLayers']()[_0x20050e(0x111)]();_0x2858c3=_0x2858c3['filter'](_0x283066=>{const _0x3a3b68=_0x20050e,_0x197113=_0x283066[_0x3a3b68(0x139)];if(!_0x197113)return![];return _0x283066[_0x3a3b68(0x126)]()==!![]&&_0x197113['selectIndex']!=undefined&&_0x197113[_0x3a3b68(0x130)]!='';}),_0x2f1f9e=_0x2858c3[_0x20050e(0x144)](_0x557a7a=>{const _0x44ffab=_0x20050e;return _0x557a7a[_0x44ffab(0x139)];});}if(!_0x2f1f9e||_0x2f1f9e[_0x20050e(0xfe)]==0x0)return;const _0x511fb8=_0x1d78f0[_0x20050e(0xf8)]()[_0x20050e(0x127)]()['getCode'](),_0x11b92f=_0x1d78f0['getView']()[_0x20050e(0x145)]();for(let _0x54ed85=0x0,_0x1ea757=_0x2f1f9e[_0x20050e(0xfe)];_0x54ed85<_0x1ea757;_0x54ed85++){const _0xbc50be=_0x2f1f9e[_0x54ed85],_0x1ed70d=_0x1d78f0[_0x20050e(0xfa)](_0xbc50be['id']);if(!_0x1ed70d||_0x1ed70d[_0x20050e(0x126)]()==![]||!_0xbc50be||!_0xbc50be['url']||!_0xbc50be['selectIndex'])continue;let _0x3d1694=await selectFeaturesByGeo(_0x5f3806,_0x511fb8,_0xbc50be[_0x20050e(0xf6)],_0xbc50be[_0x20050e(0x130)],_0xbc50be[_0x20050e(0x13b)],_0xbc50be[_0x20050e(0x105)],_0x11b92f);if(_0x3d1694[_0x20050e(0xfe)]>0x0){this[_0x20050e(0x120)][_0x20050e(0x106)](..._0x3d1694);let _0x404f05=_0x1d78f0[_0x20050e(0x146)](),_0x2349db=this[_0x20050e(0x11c)];switch((_0xa3acd7=_0x3d1694[0x0][_0x20050e(0x134)]())===null||_0xa3acd7===void 0x0?void 0x0:_0xa3acd7[_0x20050e(0x109)]()){case _0x20050e(0x147):case'MultiPoint':this['selectedPointFeatures'][_0x20050e(0x106)](..._0x3d1694),_0x404f05=_0x1d78f0['getPointTempLayer'](),_0x2349db=this[_0x20050e(0x132)];break;case _0x20050e(0x133):case _0x20050e(0xfd):this[_0x20050e(0x10c)][_0x20050e(0x106)](..._0x3d1694),_0x404f05=_0x1d78f0[_0x20050e(0x13f)](),_0x2349db=this[_0x20050e(0x12a)];break;case _0x20050e(0x104):case _0x20050e(0x11d):this[_0x20050e(0x140)][_0x20050e(0x106)](..._0x3d1694),_0x404f05=_0x1d78f0[_0x20050e(0x146)](),_0x2349db=this['polygonStyle'];break;default:break;}const _0x389eeb=_0x404f05[_0x20050e(0xfb)]();_0x389eeb&&(_0x3d1694[_0x20050e(0x13e)](_0xa651d=>{const _0x509224=_0x20050e;_0xa651d[_0x509224(0x122)]=_0xbc50be['id'],_0xa651d[_0x509224(0x119)]=_0x404f05,_0xa651d[_0x509224(0x103)](_0x2349db);}),this[_0x20050e(0x128)]&&_0x389eeb[_0x20050e(0x141)](_0x3d1694));}}}[a50_0x160ad1(0x107)](_0x6a64e9){const _0x1decb7=a50_0x160ad1,_0x59a449=new a50_0x62bca1(this['getMap']()),_0xf0a438=_0x59a449[_0x1decb7(0x112)]();if(!_0xf0a438||_0xf0a438[_0x1decb7(0xfe)]===0x0)return[];const _0x31465b=[_0x1decb7(0x10b),_0x1decb7(0x143),'draw','import','union'],_0x532648=[];for(const _0x2e410a of _0xf0a438){if(!_0x2e410a||!_0x2e410a['fromType']||!_0x31465b[_0x1decb7(0x12b)](_0x2e410a[_0x1decb7(0xf9)]))continue;const _0x393bb5=_0x2e410a['getGeometry']();if(!_0x393bb5)continue;if(!intersects(_0x393bb5,_0x6a64e9))continue;let _0x7edf14=this['polygonStyle'];this[_0x1decb7(0x120)][_0x1decb7(0x106)](_0x2e410a);switch(_0x393bb5['getType']()){case _0x1decb7(0x147):case _0x1decb7(0x11f):this[_0x1decb7(0x114)][_0x1decb7(0x106)](_0x2e410a),_0x7edf14=this[_0x1decb7(0x132)];break;case _0x1decb7(0x133):case'MultiLineString':this[_0x1decb7(0x10c)][_0x1decb7(0x106)](_0x2e410a),_0x7edf14=this['lineStyle'];break;case _0x1decb7(0x104):case _0x1decb7(0x11d):this[_0x1decb7(0x140)][_0x1decb7(0x106)](_0x2e410a),_0x7edf14=this['polygonStyle'];break;default:break;}_0x2e410a['setStyle'](_0x7edf14);}return _0x532648;}}
|
package/interaction/Split.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0xfabc93=a51_0xecc1;function a51_0xecc1(_0x45b4e1,_0x28d40d){const _0x1a2641=a51_0x1a26();return a51_0xecc1=function(_0xecc119,_0x3949be){_0xecc119=_0xecc119-0x133;let _0x4abdb2=_0x1a2641[_0xecc119];return _0x4abdb2;},a51_0xecc1(_0x45b4e1,_0x28d40d);}(function(_0x54a89c,_0x2d33b9){const _0x10923c=a51_0xecc1,_0x40cfa6=_0x54a89c();while(!![]){try{const _0x11359b=-parseInt(_0x10923c(0x150))/0x1*(-parseInt(_0x10923c(0x145))/0x2)+parseInt(_0x10923c(0x152))/0x3+-parseInt(_0x10923c(0x13b))/0x4*(-parseInt(_0x10923c(0x14d))/0x5)+-parseInt(_0x10923c(0x149))/0x6+parseInt(_0x10923c(0x13a))/0x7+parseInt(_0x10923c(0x143))/0x8+-parseInt(_0x10923c(0x155))/0x9;if(_0x11359b===_0x2d33b9)break;else _0x40cfa6['push'](_0x40cfa6['shift']());}catch(_0x2a1040){_0x40cfa6['push'](_0x40cfa6['shift']());}}}(a51_0x1a26,0xc33f7));import a51_0x3fe464 from'./Draw';import a51_0x583b27 from'ol/events/Event';import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';function a51_0x1a26(){const _0x5ed111=['SPLITSTART','clone','790015BaHRFU','getGeometry','features','8929CVEsTO','dispatchEvent','4239144UqEema','splitFeatures','sourceFeatures','27197847IYhJbX','length','addTempLayer','fromType','rgba(255,\x200,\x200,\x201)','未获取到分割要素','feature','cut','addFeature','未获取到绘制的分割线','6994197QHoldr','8MmRyZa','onInternal','splitStart','SPLITED','setGeometry','tipText','setFeatures','getSource','9117248VwUspl','polyline','114TbIWox','push','drawEnd','getMap','3330696BrqHDc','tempLayer'];a51_0x1a26=function(){return _0x5ed111;};return a51_0x1a26();}import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':a51_0xfabc93(0x13d),'SPLITED':'splited'};export class SplitEvent extends a51_0x583b27{constructor(_0x17c8e9,_0x3aaf7f,_0x3f761e,_0x10ad3d){const _0x5eacef=a51_0xfabc93;super(_0x17c8e9),this['splitLine']=_0x3aaf7f,this[_0x5eacef(0x14f)]=_0x3f761e,this['error']=_0x10ad3d;}}export default class Split extends a51_0x3fe464{constructor(_0x331a49,_0xc1881b){const _0x2e0a1a=a51_0xfabc93,_0x32f53a=(_0xc1881b===null||_0xc1881b===void 0x0?void 0x0:_0xc1881b['splitLineStyle'])||{'outlineColor':_0x2e0a1a(0x134),'outlineWidth':0x2};super(_0x2e0a1a(0x144),{'tipText':_0xc1881b===null||_0xc1881b===void 0x0?void 0x0:_0xc1881b[_0x2e0a1a(0x140)],'style':_0x32f53a}),this[_0x2e0a1a(0x154)]=_0x331a49;const _0x2b217e=_0xc1881b||{};this[_0x2e0a1a(0x157)]=_0x2b217e[_0x2e0a1a(0x157)]||![],this['on']=this[_0x2e0a1a(0x13c)],this['on'](_0x2e0a1a(0x147),async _0x273dd4=>{const _0x15c230=_0x2e0a1a;var _0x35d315;const _0x51e1d2=this[_0x15c230(0x148)]();let _0x219bf5=(_0x35d315=_0x273dd4[_0x15c230(0x136)])===null||_0x35d315===void 0x0?void 0x0:_0x35d315[_0x15c230(0x14e)]();!_0x219bf5&&this['dispatchEvent'](new SplitEvent(SplitEventType['SPLITED'],undefined,undefined,_0x15c230(0x139)));let _0x28f25d=_0x219bf5;!_0x51e1d2&&this[_0x15c230(0x151)](new SplitEvent(SplitEventType[_0x15c230(0x13e)],_0x28f25d,undefined,'未获取到地图对象'));(!this[_0x15c230(0x154)]||this[_0x15c230(0x154)][_0x15c230(0x156)]===0x0)&&this[_0x15c230(0x151)](new SplitEvent(SplitEventType[_0x15c230(0x13e)],_0x28f25d,undefined,_0x15c230(0x135)));try{this['dispatchEvent'](new SplitEvent(SplitEventType[_0x15c230(0x14b)],_0x28f25d));const _0x5dcd7=this[_0x15c230(0x153)](_0x28f25d);this[_0x15c230(0x151)](new SplitEvent(SplitEventType['SPLITED'],_0x28f25d,_0x5dcd7));}catch(_0x537124){this[_0x15c230(0x151)](new SplitEvent(SplitEventType[_0x15c230(0x13e)],_0x28f25d,undefined,_0x537124['message']));}});}[a51_0xfabc93(0x153)](_0x254aa2){const _0x2ba784=a51_0xfabc93;var _0xfec755;const _0x2b64e4=[],_0x1dc874=(_0xfec755=this[_0x2ba784(0x154)][0x0]['tempLayer'])===null||_0xfec755===void 0x0?void 0x0:_0xfec755[_0x2ba784(0x142)]();for(let _0x3f147e=0x0;_0x3f147e<this[_0x2ba784(0x154)]['length'];_0x3f147e++){const _0x14c1b3=this['sourceFeatures'][_0x3f147e],_0x1ba9be=_0x14c1b3[_0x2ba784(0x14e)]();let _0x61449c=[];if(_0x1ba9be instanceof Polygon||_0x1ba9be instanceof MultiPolygon)_0x61449c=jstlSplit(_0x1ba9be,_0x254aa2);else(_0x1ba9be instanceof LineString||_0x1ba9be instanceof MultiLineString)&&(_0x61449c=splitLineByLine(_0x1ba9be,_0x254aa2));if(_0x61449c[_0x2ba784(0x156)]>0x1){_0x14c1b3[_0x2ba784(0x13f)](_0x61449c[0x0]),_0x2b64e4[_0x2ba784(0x146)](_0x14c1b3);for(let _0x13c073=0x1;_0x13c073<_0x61449c[_0x2ba784(0x156)];_0x13c073++){const _0x5a6ea1=_0x14c1b3[_0x2ba784(0x14c)]();_0x5a6ea1['layerId']=undefined,_0x5a6ea1[_0x2ba784(0x133)]=_0x2ba784(0x137),_0x5a6ea1[_0x2ba784(0x14a)]=_0x14c1b3['tempLayer'],_0x5a6ea1[_0x2ba784(0x13f)](_0x61449c[_0x13c073]),this[_0x2ba784(0x157)]&&(_0x1dc874===null||_0x1dc874===void 0x0?void 0x0:_0x1dc874[_0x2ba784(0x138)](_0x5a6ea1)),_0x2b64e4[_0x2ba784(0x146)](_0x5a6ea1);}}}return _0x2b64e4;}[a51_0xfabc93(0x141)](_0x193510){const _0x3016e5=a51_0xfabc93;this[_0x3016e5(0x154)]=_0x193510;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a52_0x1c86(){const _0x42414b=['url','76370zPbJAT','EPSG:','projection','spatialReference','723600UeIalC','mapIndex','show:','xmin','stringify','loadFilter','anonymous','400770SmPWaG','251695cNEdhN','wkid','layerDefs','1715796VkRpdW','fullExtent','119917aGpewi','layerInfo','selectIndex','ymin','setFilter','ymax','xmax','434938BlAgOG','136vpMVJJ','opacity','initialExtent'];a52_0x1c86=function(){return _0x42414b;};return a52_0x1c86();}const a52_0x247d28=a52_0x1711;(function(_0x4029fc,_0x12df3f){const _0x2a03ad=a52_0x1711,_0x10e497=_0x4029fc();while(!![]){try{const _0x4f9ca5=-parseInt(_0x2a03ad(0x1fc))/0x1+parseInt(_0x2a03ad(0x1f7))/0x2+-parseInt(_0x2a03ad(0x1ea))/0x3+parseInt(_0x2a03ad(0x200))/0x4+-parseInt(_0x2a03ad(0x1eb))/0x5+-parseInt(_0x2a03ad(0x1ee))/0x6+-parseInt(_0x2a03ad(0x1f0))/0x7*(-parseInt(_0x2a03ad(0x1f8))/0x8);if(_0x4f9ca5===_0x12df3f)break;else _0x10e497['push'](_0x10e497['shift']());}catch(_0x3d5e52){_0x10e497['push'](_0x10e497['shift']());}}}(a52_0x1c86,0x22fe3));function a52_0x1711(_0x510574,_0x3b67f9){const _0x1c86d2=a52_0x1c86();return a52_0x1711=function(_0x17110c,_0x4a9922){_0x17110c=_0x17110c-0x1e7;let _0x30eef5=_0x1c86d2[_0x17110c];return _0x30eef5;},a52_0x1711(_0x510574,_0x3b67f9);}import a52_0x549786 from'ol/source/ImageArcGISRest';import{Image as a52_0x57795f}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a52_0x57795f{constructor(_0x13acf8,_0x482340){const _0x41683e=a52_0x1711;var _0x53637d;let _0x1304c9={'LAYERS':_0x41683e(0x202)+((_0x53637d=_0x13acf8['sublayers'])===null||_0x53637d===void 0x0?void 0x0:_0x53637d['join'](','))};if(_0x13acf8[_0x41683e(0x1e8)]&&_0x13acf8[_0x41683e(0x1f2)]){const _0x18fde5={};_0x18fde5[_0x13acf8[_0x41683e(0x1f2)]]=_0x13acf8[_0x41683e(0x1e8)],_0x1304c9[_0x41683e(0x1ed)]=JSON['stringify'](_0x18fde5);}const _0xee66d3=[_0x482340[_0x41683e(0x1fa)][_0x41683e(0x203)],_0x482340[_0x41683e(0x1fa)][_0x41683e(0x1f3)],_0x482340[_0x41683e(0x1fa)][_0x41683e(0x1f6)],_0x482340[_0x41683e(0x1fa)][_0x41683e(0x1f5)]],_0x50e42a=[_0x482340[_0x41683e(0x1ef)][_0x41683e(0x203)],_0x482340[_0x41683e(0x1ef)][_0x41683e(0x1f3)],_0x482340[_0x41683e(0x1ef)][_0x41683e(0x1f6)],_0x482340[_0x41683e(0x1ef)][_0x41683e(0x1f5)]];let _0x499248;_0x482340[_0x41683e(0x1ff)]['wkid']?_0x499248=registerProj(_0x41683e(0x1fd)+_0x482340[_0x41683e(0x1ff)][_0x41683e(0x1ec)],_0x50e42a):_0x499248=registerProj(_0x482340[_0x41683e(0x1ff)]['wkt'],_0x50e42a),super({'opacity':_0x13acf8[_0x41683e(0x1f9)],'zIndex':_0x13acf8[_0x41683e(0x201)],'source':new a52_0x549786({'crossOrigin':_0x41683e(0x1e9),'projection':_0x499248,'ratio':0x1,'url':_0x13acf8[_0x41683e(0x1fb)],'params':_0x1304c9})}),this['id']=_0x13acf8['id'],this[_0x41683e(0x1fa)]=_0xee66d3,this[_0x41683e(0x1fe)]=_0x499248,this[_0x41683e(0x1f1)]=_0x13acf8;}[a52_0x247d28(0x1f4)](_0x46ee89){const _0x4c4d3d=a52_0x247d28;var _0x533076;const _0x52a99a={};this[_0x4c4d3d(0x1f1)][_0x4c4d3d(0x1f2)]&&(_0x52a99a[this[_0x4c4d3d(0x1f1)][_0x4c4d3d(0x1f2)]]=_0x46ee89),(_0x533076=this['getSource']())===null||_0x533076===void 0x0?void 0x0:_0x533076['updateParams']({'layerDefs':JSON[_0x4c4d3d(0x1e7)](_0x46ee89)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a53_0x23eaac=a53_0x4d57;(function(_0x5134db,_0x37f34c){const _0x5d9fe7=a53_0x4d57,_0x160905=_0x5134db();while(!![]){try{const _0x554255=-parseInt(_0x5d9fe7(0x20f))/0x1*(parseInt(_0x5d9fe7(0x1d7))/0x2)+parseInt(_0x5d9fe7(0x1f6))/0x3+-parseInt(_0x5d9fe7(0x208))/0x4*(-parseInt(_0x5d9fe7(0x200))/0x5)+parseInt(_0x5d9fe7(0x1e2))/0x6*(-parseInt(_0x5d9fe7(0x204))/0x7)+-parseInt(_0x5d9fe7(0x209))/0x8+parseInt(_0x5d9fe7(0x203))/0x9+-parseInt(_0x5d9fe7(0x1eb))/0xa*(-parseInt(_0x5d9fe7(0x1f0))/0xb);if(_0x554255===_0x37f34c)break;else _0x160905['push'](_0x160905['shift']());}catch(_0x127860){_0x160905['push'](_0x160905['shift']());}}}(a53_0x156a,0x8393d));function a53_0x4d57(_0x5b03fa,_0x427ca7){const _0x156a3c=a53_0x156a();return a53_0x4d57=function(_0x4d573e,_0xced61b){_0x4d573e=_0x4d573e-0x1d4;let _0x5e329d=_0x156a3c[_0x4d573e];return _0x5e329d;},a53_0x4d57(_0x5b03fa,_0x427ca7);}import a53_0x521b56 from'ol/format/EsriJSON';function a53_0x156a(){const _0x58de2d=[',\x22ymin\x22:',',\x22spatialReference\x22:{\x22wkid\x22:','renderer','wkt','simple','then','loadFilter','3867025LvWYug',',\x22ymax\x22:','setFilter','8292384UZlcng','371Otvoxl','where=','mapIndex','wkid','4dTxLkW','6496640QfCXSt','drawingInfo','length','setLayers','&outSR=','readFeatures','1tkuXob','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','find','uniqueValue','1829298IfoxUl','log','push','{\x22xmin\x22:','createArcGISFeatureLayer','error','1=1','xmin','addFeatures','ymin','f\x20=\x20json\x20&\x20','47238sRBqmL','initialExtent','value','xmax','showIndex','uniqueValueInfos','EPSG:','fullExtent','field1','10FICcVo','forEach','split','setStyle','projection','10744547SMezFE','ymax','get','stringify','type','spatialReference','34143TKsaaF','layerInfo','symbol'];a53_0x156a=function(){return _0x58de2d;};return a53_0x156a();}import a53_0x416bce from'ol/source/Vector';import{Vector as a53_0x26cef7}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x1f3edf}from'ol/loadingstrategy';import a53_0x2ccec9 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0xcb738d from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x2ccec9{constructor(_0x16055a,_0x265381,_0x93db5e){const _0x26b11e=a53_0x4d57,_0x1a75d3=[_0x265381[_0x26b11e(0x1e3)]['xmin'],_0x265381[_0x26b11e(0x1e3)][_0x26b11e(0x1e0)],_0x265381[_0x26b11e(0x1e3)][_0x26b11e(0x1e5)],_0x265381[_0x26b11e(0x1e3)][_0x26b11e(0x1f1)]],_0x153345=[_0x265381['fullExtent'][_0x26b11e(0x1de)],_0x265381['fullExtent'][_0x26b11e(0x1e0)],_0x265381[_0x26b11e(0x1e9)][_0x26b11e(0x1e5)],_0x265381[_0x26b11e(0x1e9)][_0x26b11e(0x1f1)]];let _0x434e8f;_0x265381[_0x26b11e(0x1f5)][_0x26b11e(0x207)]?_0x434e8f=registerProj(_0x26b11e(0x1e8)+_0x265381[_0x26b11e(0x1f5)][_0x26b11e(0x207)],_0x153345):_0x434e8f=registerProj(_0x265381[_0x26b11e(0x1f5)][_0x26b11e(0x1fc)],_0x153345);let _0x1b1cd2=[];super({'zIndex':_0x16055a[_0x26b11e(0x206)]});for(let _0x50d15a of _0x93db5e){let _0x4c2ca7=this[_0x26b11e(0x1db)](_0x16055a,_0x50d15a);_0x1b1cd2[_0x26b11e(0x1d9)](_0x4c2ca7);}this[_0x26b11e(0x20c)](new a53_0xcb738d(_0x1b1cd2)),this['id']=_0x16055a['id'],this[_0x26b11e(0x1e3)]=_0x1a75d3,this[_0x26b11e(0x1ef)]=_0x434e8f,this[_0x26b11e(0x1f7)]=_0x16055a;}['createArcGISFeatureLayer'](_0x4462a4,_0x4e3122){const _0x35e991=a53_0x4d57;var _0x199c10=new a53_0x521b56();let _0x1a45f9=new a53_0x416bce({'loader':function(_0x1fe86f,_0x555130,_0x5a719b){const _0x3b2faf=a53_0x4d57;let _0x69600c=_0x3b2faf(0x1dd);_0x4462a4[_0x3b2faf(0x1ff)]&&(_0x69600c=typeof _0x4462a4[_0x3b2faf(0x1ff)]==='string'?_0x4462a4[_0x3b2faf(0x1ff)]:JSON[_0x3b2faf(0x1f3)](_0x4462a4[_0x3b2faf(0x1ff)]));let _0x5bb6ae=_0x5a719b['getCode'](),_0x3c81bd=_0x5bb6ae[_0x3b2faf(0x1ed)](':')[0x1];var _0x18eaa2=appendPath(_0x4e3122['url'],'/query');_0x18eaa2=appendParam(_0x18eaa2,_0x3b2faf(0x1e1)+_0x3b2faf(0x205)+encodeURIComponent(_0x69600c)+_0x3b2faf(0x1d4)+encodeURIComponent(_0x3b2faf(0x1da)+_0x1fe86f[0x0]+_0x3b2faf(0x1f9)+_0x1fe86f[0x1]+',\x22xmax\x22:'+_0x1fe86f[0x2]+_0x3b2faf(0x201)+_0x1fe86f[0x3]+_0x3b2faf(0x1fa)+_0x3c81bd+'}}')+'&geometryType=esriGeometryEnvelope&inSR='+_0x3c81bd+'&outFields=*'+_0x3b2faf(0x20d)+_0x3c81bd),jsonp(_0x18eaa2)[_0x3b2faf(0x1fe)](_0x5b06e9=>{const _0xe73f71=_0x3b2faf;if(_0x5b06e9[_0xe73f71(0x1dc)])console[_0xe73f71(0x1d8)](_0x5b06e9);else{var _0x14ae4f=_0x199c10[_0xe73f71(0x20e)](_0x5b06e9,{'featureProjection':_0x5a719b});_0x14ae4f[_0xe73f71(0x20b)]>0x0&&(_0x4e3122['drawingInfo'][_0xe73f71(0x1fb)]['type']==_0xe73f71(0x1d6)&&_0x14ae4f[_0xe73f71(0x1ec)](function(_0x2e2bb4){const _0x12018a=_0xe73f71;var _0x486644=_0x2e2bb4[_0x12018a(0x1f2)](_0x4e3122[_0x12018a(0x20a)][_0x12018a(0x1fb)][_0x12018a(0x1ea)]);const _0x36ea2e=_0x4e3122[_0x12018a(0x20a)]['renderer'][_0x12018a(0x1e7)][_0x12018a(0x1d5)](_0x2a0604=>_0x2a0604[_0x12018a(0x1e4)]==_0x486644);let _0x4e9045;_0x36ea2e?_0x4e9045=transformedEsriStyle(_0x36ea2e[_0x12018a(0x1f8)]):_0x4e9045=transformedEsriStyle(_0x4e3122[_0x12018a(0x20a)][_0x12018a(0x1fb)]['defaultSymbol']),_0x2e2bb4['setStyle'](_0x4e9045);}),_0x1a45f9[_0xe73f71(0x1df)](_0x14ae4f));}});},'strategy':a53_0x1f3edf(createXYZ({'tileSize':0x200}))}),_0x10e933=new a53_0x26cef7({'source':_0x1a45f9,'zIndex':_0x4462a4[_0x35e991(0x1e6)]});if(_0x4e3122[_0x35e991(0x20a)]['renderer'][_0x35e991(0x1f4)]==_0x35e991(0x1fd)&&_0x4e3122[_0x35e991(0x20a)][_0x35e991(0x1fb)][_0x35e991(0x1f8)]){let _0x2ab213=transformedEsriStyle(_0x4e3122[_0x35e991(0x20a)][_0x35e991(0x1fb)]['symbol']);_0x10e933[_0x35e991(0x1ee)](_0x2ab213);}return _0x10e933;}[a53_0x23eaac(0x202)](_0x530049){const _0x358193=a53_0x23eaac;this[_0x358193(0x1f7)]['loadFilter']=_0x530049;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x58509,_0x2582bd){const _0x5a76d3=a54_0x5421,_0x17fc58=_0x58509();while(!![]){try{const _0x1def67=-parseInt(_0x5a76d3(0x186))/0x1+-parseInt(_0x5a76d3(0x199))/0x2+-parseInt(_0x5a76d3(0x182))/0x3+-parseInt(_0x5a76d3(0x19a))/0x4+parseInt(_0x5a76d3(0x189))/0x5+-parseInt(_0x5a76d3(0x187))/0x6*(-parseInt(_0x5a76d3(0x194))/0x7)+parseInt(_0x5a76d3(0x18d))/0x8*(parseInt(_0x5a76d3(0x19c))/0x9);if(_0x1def67===_0x2582bd)break;else _0x17fc58['push'](_0x17fc58['shift']());}catch(_0x585881){_0x17fc58['push'](_0x17fc58['shift']());}}}(a54_0x2870,0xa9ab2));import a54_0x1aeb0b from'ol/layer/Tile';import a54_0xe1fa4a from'ol/source/XYZ';import a54_0x9507fa from'ol/tilegrid/TileGrid';function a54_0x5421(_0x32e6c4,_0x13fdae){const _0x2870a9=a54_0x2870();return a54_0x5421=function(_0x5421b8,_0x5e1fd8){_0x5421b8=_0x5421b8-0x180;let _0x5a1171=_0x2870a9[_0x5421b8];return _0x5a1171;},a54_0x5421(_0x32e6c4,_0x13fdae);}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x1aeb0b{constructor(_0x551ecd,_0x19fe4c){const _0x6f43d0=a54_0x5421,_0x2324a8=_0x551ecd['url']?_0x551ecd[_0x6f43d0(0x185)]:'',_0x29e8a0=appendPath(_0x2324a8,'/tile/{z}/{y}/{x}'),_0x23c218=[_0x19fe4c[_0x6f43d0(0x196)][_0x6f43d0(0x192)],_0x19fe4c['initialExtent'][_0x6f43d0(0x190)],_0x19fe4c['initialExtent'][_0x6f43d0(0x19b)],_0x19fe4c[_0x6f43d0(0x196)][_0x6f43d0(0x198)]],_0x37b96c=[_0x19fe4c[_0x6f43d0(0x18e)][_0x6f43d0(0x192)],_0x19fe4c[_0x6f43d0(0x18e)]['ymin'],_0x19fe4c[_0x6f43d0(0x18e)][_0x6f43d0(0x19b)],_0x19fe4c['fullExtent']['ymax']];let _0x411456;_0x19fe4c[_0x6f43d0(0x180)][_0x6f43d0(0x18b)]?_0x411456=registerProj(_0x6f43d0(0x188)+_0x19fe4c[_0x6f43d0(0x180)]['wkid'],_0x37b96c):_0x411456=registerProj(_0x19fe4c[_0x6f43d0(0x180)][_0x6f43d0(0x191)],_0x37b96c);let _0x309881=[];for(let _0x4390d3=0x0,_0x2507ec=_0x19fe4c[_0x6f43d0(0x183)][_0x6f43d0(0x181)]['length'];_0x4390d3<_0x2507ec;_0x4390d3++){_0x309881[_0x6f43d0(0x18f)](_0x19fe4c['tileInfo'][_0x6f43d0(0x181)][_0x4390d3]['resolution']);}super({'opacity':_0x551ecd[_0x6f43d0(0x184)],'zIndex':_0x551ecd[_0x6f43d0(0x197)],'maxResolution':_0x309881[0x0]*0x2,'source':new a54_0xe1fa4a({'url':_0x29e8a0,'projection':_0x411456,'crossOrigin':_0x6f43d0(0x19d),'tileGrid':new a54_0x9507fa({'extent':_0x37b96c,'origin':[_0x19fe4c[_0x6f43d0(0x183)]['origin']['x'],_0x19fe4c[_0x6f43d0(0x183)][_0x6f43d0(0x18a)]['y']],'resolutions':_0x309881,'tileSize':[_0x19fe4c['tileInfo'][_0x6f43d0(0x18c)],_0x19fe4c['tileInfo']['cols']]})})}),this['id']=_0x551ecd['id'],this[_0x6f43d0(0x196)]=_0x23c218,this[_0x6f43d0(0x195)]=_0x411456,this[_0x6f43d0(0x193)]=_0x551ecd;}}function a54_0x2870(){const _0x2308f8=['url','676583VyYhXa','1392978uLIQoL','EPSG:','5859215cqRDGZ','origin','wkid','rows','4776nQnzSQ','fullExtent','push','ymin','wkt','xmin','layerInfo','21mzgNxR','projection','initialExtent','mapIndex','ymax','1099502kyCfwp','347228oRdwhn','xmax','6777OpouVo','anonymous','spatialReference','lods','929310TwjabI','tileInfo','opacity'];a54_0x2870=function(){return _0x2308f8;};return a54_0x2870();}
|