ym-gis-2d 1.0.42 → 1.0.43
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/MapTileLayer.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +1 -1
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a43_0x2651(){const _0x532952=['map','1468472xdomZI','1244965IkUnHS','flash_layer','push','getType','getLineTempLayer','getSelectedFeatures','flashGeometrys','layerInfo','tempLayer','getSource','features','setVisible','getPolygonTempLayer','getLayerById','getVisible','geometryType','807384bUMHhi','addLayer','27qPyHBr','setGeometry','getTempEditFeatures','removeFeature','length','getFeatures','currentEditLayer','filter','get','clearTempFeatures','20LFguJa','getPointTempLayer','isSelected','forEach','2758950PeIgGe','removeLayer','12211gkLRmS','kmlImport','14ZRrVci','layerId','4HnWIvK','addFeatures','getTempSelectedFeatures','187ndGyMc','2163030RKPjWa','1889289rxVsvs'];a43_0x2651=function(){return _0x532952;};return a43_0x2651();}const a43_0x4f0b05=a43_0x33e4;(function(_0x54abe0,_0x241088){const _0x4999fc=a43_0x33e4,_0x2c8e11=_0x54abe0();while(!![]){try{const _0x73902d=parseInt(_0x4999fc(0xc4))/0x1*(parseInt(_0x4999fc(0xbe))/0x2)+-parseInt(_0x4999fc(0x9f))/0x3+parseInt(_0x4999fc(0x9a))/0x4*(parseInt(_0x4999fc(0xa2))/0x5)+parseInt(_0x4999fc(0xc2))/0x6+-parseInt(_0x4999fc(0xc6))/0x7*(parseInt(_0x4999fc(0xa1))/0x8)+-parseInt(_0x4999fc(0xb4))/0x9*(parseInt(_0x4999fc(0x9e))/0xa)+parseInt(_0x4999fc(0x9d))/0xb*(parseInt(_0x4999fc(0xb2))/0xc);if(_0x73902d===_0x241088)break;else _0x2c8e11['push'](_0x2c8e11['shift']());}catch(_0x17cf6f){_0x2c8e11['push'](_0x2c8e11['shift']());}}}(a43_0x2651,0x504e4));function a43_0x33e4(_0x203364,_0x34b539){const _0x2651d8=a43_0x2651();return a43_0x33e4=function(_0x33e48d,_0x19ae1b){_0x33e48d=_0x33e48d-0x99;let _0x52e479=_0x2651d8[_0x33e48d];return _0x52e479;},a43_0x33e4(_0x203364,_0x34b539);}import a43_0x44950a from'../entity/Feature';import a43_0x15a463 from'ol/layer/Vector';import a43_0x235c96 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0x3de82 from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x120242){const _0x413f63=a43_0x33e4;this[_0x413f63(0xa0)]=_0x120242;}['getEditFeatures'](_0x18fa98,_0x3f312f){const _0x5e0c71=a43_0x33e4;if(!this[_0x5e0c71(0xa0)][_0x5e0c71(0xba)])return;let _0x4e03f4;const _0x256e38=this[_0x5e0c71(0xa0)][_0x5e0c71(0xaf)](this['map'][_0x5e0c71(0xba)]['id']);if(!_0x256e38||!_0x256e38[_0x5e0c71(0xa9)])return;switch(_0x256e38[_0x5e0c71(0xa9)][_0x5e0c71(0xb1)]){case 0x1:_0x4e03f4=this[_0x5e0c71(0xb6)](this[_0x5e0c71(0xa0)]['getPointTempLayer'](),this[_0x5e0c71(0xa0)]['currentEditLayer']['id'],_0x18fa98,_0x3f312f);break;case 0x2:_0x4e03f4=this[_0x5e0c71(0xb6)](this[_0x5e0c71(0xa0)]['getLineTempLayer'](),this[_0x5e0c71(0xa0)][_0x5e0c71(0xba)]['id'],_0x18fa98,_0x3f312f);break;case 0x3:_0x4e03f4=this['getTempEditFeatures'](this[_0x5e0c71(0xa0)][_0x5e0c71(0xae)](),this[_0x5e0c71(0xa0)]['currentEditLayer']['id'],_0x18fa98,_0x3f312f);break;default:break;}return _0x4e03f4;}[a43_0x4f0b05(0xa7)](_0xb11394,_0x41d49c){const _0x2c43f6=a43_0x4f0b05;if(_0xb11394){const _0x594447=this[_0x2c43f6(0xa0)][_0x2c43f6(0xaf)](_0xb11394);if(!_0x594447||!_0x594447[_0x2c43f6(0xa9)])return;let _0x2241a2;switch(_0x594447[_0x2c43f6(0xa9)][_0x2c43f6(0xb1)]){case 0x1:_0x2241a2=this[_0x2c43f6(0x9c)](this[_0x2c43f6(0xa0)][_0x2c43f6(0xbf)](),_0xb11394,_0x41d49c);break;case 0x2:_0x2241a2=this[_0x2c43f6(0x9c)](this['map'][_0x2c43f6(0xa6)](),_0xb11394,_0x41d49c);break;case 0x3:_0x2241a2=this['getTempSelectedFeatures'](this[_0x2c43f6(0xa0)][_0x2c43f6(0xae)](),_0xb11394,_0x41d49c);break;default:break;}return _0x2241a2;}else{const _0x5be853=this[_0x2c43f6(0x9c)](this[_0x2c43f6(0xa0)][_0x2c43f6(0xbf)](),_0xb11394,_0x41d49c),_0x5ce3df=this[_0x2c43f6(0x9c)](this['map'][_0x2c43f6(0xa6)](),_0xb11394,_0x41d49c),_0xf67448=this[_0x2c43f6(0x9c)](this[_0x2c43f6(0xa0)][_0x2c43f6(0xae)](),_0xb11394,_0x41d49c);let _0x522e07=[];return _0x5be853&&(_0x522e07=[..._0x522e07,..._0x5be853]),_0x5ce3df&&(_0x522e07=[..._0x522e07,..._0x5ce3df]),_0xf67448&&(_0x522e07=[..._0x522e07,..._0xf67448]),_0x522e07;}}[a43_0x4f0b05(0x9c)](_0x520a44,_0x271da3,_0x5c56fa){const _0x15368f=a43_0x4f0b05;var _0x392435;let _0x1a4bb2=(_0x392435=_0x520a44[_0x15368f(0xab)]())===null||_0x392435===void 0x0?void 0x0:_0x392435[_0x15368f(0xb9)]();if(!_0x1a4bb2)return;_0x1a4bb2[_0x15368f(0xc1)]((_0x47f338,_0x3be566,_0x2e29f0)=>{const _0x21081f=_0x15368f;_0x47f338[_0x21081f(0xaa)]=_0x520a44;});_0x5c56fa!=undefined&&(_0x1a4bb2=_0x1a4bb2[_0x15368f(0xbb)](_0x3441cd=>_0x3441cd[_0x15368f(0xc0)]==_0x5c56fa));if(_0x271da3)return _0x1a4bb2[_0x15368f(0xbb)](_0x265bfa=>_0x265bfa[_0x15368f(0x99)]==_0x271da3);return _0x1a4bb2;}[a43_0x4f0b05(0xb6)](_0x19b02a,_0x55e304,_0x3d629a,_0x15d3a7){const _0x21f27c=a43_0x4f0b05;var _0x398752;let _0x57c1ca=(_0x398752=_0x19b02a[_0x21f27c(0xab)]())===null||_0x398752===void 0x0?void 0x0:_0x398752[_0x21f27c(0xb9)]();if(!_0x57c1ca)return;return _0x57c1ca[_0x21f27c(0xc1)]((_0x14bd04,_0x5d6387,_0x5ea0ee)=>{const _0xa5e3ae=_0x21f27c;_0x14bd04[_0xa5e3ae(0xaa)]=_0x19b02a;}),_0x3d629a&&_0x15d3a7&&_0x15d3a7[_0x21f27c(0xb8)]>0x0?_0x57c1ca=_0x57c1ca['filter'](_0x124d3d=>_0x124d3d[_0x21f27c(0xc0)]==!![]&&(_0x124d3d[_0x21f27c(0x99)]==_0x55e304&&(_0x124d3d[_0x21f27c(0xbc)](_0x3d629a)==undefined||_0x15d3a7['indexOf'](_0x124d3d[_0x21f27c(0xbc)](_0x3d629a))>-0x1)||_0x124d3d[_0x21f27c(0x99)]==undefined)):_0x57c1ca=_0x57c1ca=_0x57c1ca[_0x21f27c(0xbb)](_0x5716dd=>_0x5716dd[_0x21f27c(0xc0)]==!![]&&(_0x5716dd['layerId']==_0x55e304||_0x5716dd['layerId']==undefined)),_0x57c1ca;}['flashFeatures'](_0x168cf8,_0x1ffe9c=0x3){const _0x1c3160=a43_0x4f0b05;var _0x27dae8;let _0x284f52=new a43_0x15a463({'zIndex':0x270f,'source':new a43_0x235c96()});_0x284f52['id']=_0x1c3160(0xa3),this[_0x1c3160(0xa0)][_0x1c3160(0xb3)](_0x284f52,![]),(_0x27dae8=_0x284f52[_0x1c3160(0xab)]())===null||_0x27dae8===void 0x0?void 0x0:_0x27dae8[_0x1c3160(0x9b)](_0x168cf8);let _0x12101a=0x0,_0x223d70=setInterval(()=>{const _0x59e1e7=_0x1c3160;if(_0x12101a===_0x1ffe9c){_0x223d70&&clearInterval(_0x223d70);const _0x533b9f=this['map']['getLayerById'](_0x284f52['id']);_0x533b9f&&this[_0x59e1e7(0xa0)][_0x59e1e7(0xc3)](_0x533b9f);return;}if(_0x284f52[_0x59e1e7(0xb0)]())_0x284f52[_0x59e1e7(0xad)](![]);else _0x284f52['setVisible'](!![]);_0x12101a++;},0x190);}[a43_0x4f0b05(0xa8)](_0x2ef98e,_0x2e3487=0x3){const _0x42c538=a43_0x4f0b05;var _0x22c6c6;let _0x4da255=new a43_0x15a463({'zIndex':0x270f,'source':new a43_0x235c96()});_0x4da255['id']='flash_layer',this[_0x42c538(0xa0)][_0x42c538(0xb3)](_0x4da255,![]);let _0x593f9c=[];_0x2ef98e[_0x42c538(0xc1)](_0xed0d7b=>{const _0x32c64e=_0x42c538;let _0x15ccd3=new a43_0x44950a();const _0x1583d2=getSelectStyle(_0xed0d7b[_0x32c64e(0xa5)]());_0x15ccd3['setStyle'](_0x1583d2),_0x15ccd3[_0x32c64e(0xb5)](_0xed0d7b),_0x593f9c[_0x32c64e(0xa4)](_0x15ccd3);}),(_0x22c6c6=_0x4da255[_0x42c538(0xab)]())===null||_0x22c6c6===void 0x0?void 0x0:_0x22c6c6[_0x42c538(0x9b)](_0x593f9c);let _0x4fa607=0x0,_0x14912e=setInterval(()=>{const _0x26e556=_0x42c538;if(_0x4fa607===_0x2e3487){_0x14912e&&clearInterval(_0x14912e);const _0x47654d=this['map']['getLayerById'](_0x4da255['id']);_0x47654d&&this[_0x26e556(0xa0)][_0x26e556(0xc3)](_0x47654d);return;}if(_0x4da255[_0x26e556(0xb0)]())_0x4da255['setVisible'](![]);else _0x4da255[_0x26e556(0xad)](!![]);_0x4fa607++;},0x190);}async[a43_0x4f0b05(0xc5)](_0x178061){const _0x37d686=a43_0x4f0b05;let _0x500d62=await toGeoJSON(_0x178061,null);if(!_0x500d62)return[];let _0x58a32a=[];var _0x2d18b=new a43_0x3de82();return _0x500d62[_0x37d686(0xac)][_0x37d686(0xc1)](_0x162442=>{const _0x4b6056=_0x37d686;_0x58a32a[_0x4b6056(0xa4)](_0x2d18b['readFeature'](_0x162442,null));}),_0x58a32a;}[a43_0x4f0b05(0xbd)](_0x322d1d){const _0x433405=a43_0x4f0b05,_0x3ac153=this[_0x433405(0xa7)]();if(_0x3ac153&&_0x3ac153[_0x433405(0xb8)]>0x0)for(const _0x5af268 of _0x3ac153){if(_0x5af268&&_0x5af268['tempLayer']){const _0x4de884=_0x5af268[_0x433405(0xaa)][_0x433405(0xab)]();_0x4de884&&(_0x322d1d!=undefined?_0x5af268['tag']==_0x322d1d&&_0x4de884[_0x433405(0xb7)](_0x5af268):_0x4de884[_0x433405(0xb7)](_0x5af268));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x161830,_0x4eef04){var _0x2b52e3=a44_0x1eb6,_0x30bb8a=_0x161830();while(!![]){try{var _0x397f10=parseInt(_0x2b52e3(0x1e2))/0x1*(-parseInt(_0x2b52e3(0x1e5))/0x2)+parseInt(_0x2b52e3(0x1e9))/0x3+parseInt(_0x2b52e3(0x1e1))/0x4+-parseInt(_0x2b52e3(0x1e6))/0x5*(parseInt(_0x2b52e3(0x1e0))/0x6)+parseInt(_0x2b52e3(0x1e4))/0x7+-parseInt(_0x2b52e3(0x1e8))/0x8+parseInt(_0x2b52e3(0x1e7))/0x9*(parseInt(_0x2b52e3(0x1e3))/0xa);if(_0x397f10===_0x4eef04)break;else _0x30bb8a['push'](_0x30bb8a['shift']());}catch(_0x2ec68d){_0x30bb8a['push'](_0x30bb8a['shift']());}}}(a44_0x39e6,0x3a1ff));function a44_0x1eb6(_0x2f8f38,_0x33cc98){var _0x39e673=a44_0x39e6();return a44_0x1eb6=function(_0x1eb6eb,_0x36fa97){_0x1eb6eb=_0x1eb6eb-0x1e0;var _0x2fb6f5=_0x39e673[_0x1eb6eb];return _0x2fb6f5;},a44_0x1eb6(_0x2f8f38,_0x33cc98);}function a44_0x39e6(){var _0x4bbf40=['46449KrOuZZ','370GkYCJK','1361108WMWyfi','18XdxpbG','30905qVeVQv','127179NmwNWZ','2017416sWTYmG','214125GGxwgq','102RZFJYZ','898832aWfabG'];a44_0x39e6=function(){return _0x4bbf40;};return a44_0x39e6();}import a44_0xce1bc from'./mapView/Map';export{a44_0xce1bc as Map2D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x561582=a45_0x1b85;(function(_0x15b519,_0x3e9e3e){const _0x4c5bbc=a45_0x1b85,_0xc7f934=_0x15b519();while(!![]){try{const _0x28e8d4=-parseInt(_0x4c5bbc(0xad))/0x1+parseInt(_0x4c5bbc(0x9d))/0x2*(-parseInt(_0x4c5bbc(0xa9))/0x3)+parseInt(_0x4c5bbc(0xa7))/0x4+-parseInt(_0x4c5bbc(0xd0))/0x5*(parseInt(_0x4c5bbc(0xa4))/0x6)+-parseInt(_0x4c5bbc(0xd6))/0x7*(-parseInt(_0x4c5bbc(0xc9))/0x8)+parseInt(_0x4c5bbc(0xd3))/0x9*(-parseInt(_0x4c5bbc(0xcf))/0xa)+-parseInt(_0x4c5bbc(0xc3))/0xb*(-parseInt(_0x4c5bbc(0xcb))/0xc);if(_0x28e8d4===_0x3e9e3e)break;else _0xc7f934['push'](_0xc7f934['shift']());}catch(_0x102ada){_0xc7f934['push'](_0xc7f934['shift']());}}}(a45_0x1faf,0x721c9));import a45_0x58f650 from'./Draw';import a45_0x26f252 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';function a45_0x1b85(_0x4ad2ba,_0xf2d8de){const _0x1fafa0=a45_0x1faf();return a45_0x1b85=function(_0x1b857e,_0x2c9b19){_0x1b857e=_0x1b857e-0x9a;let _0x214f8d=_0x1fafa0[_0x1b857e];return _0x214f8d;},a45_0x1b85(_0x4ad2ba,_0xf2d8de);}import{getStyle}from'../plot/Plot';import a45_0x1afac4 from'../entity/measure/AreaMeasureUnits';import a45_0x21417b from'ol/Collection';function a45_0x1faf(){const _0x306b69=['_features','26808705noIqaZ','feature','length','measureMoving','coordinates','text','1565208dwMbRr','geom','12ZqArwB','precision','getMap','unit','10hViDBs','15WMlStA','getText','drawEnd','4523157DzJXmH','find','assign','7tmoyAC','onInternal','getView','setUnit','forEach','dispatchEvent','2jqJnQC','spheroid','log','setFeatureAreaStyle','drawAddPoint','_precision','_source','1781946mZPdEB','square-kilometers','getSource','1657364woTHah','setMap','1770513hKueeg','toFixed','measureEnd','filter','596029timLKJ','getGeometry','setStyle','点击开始测量,双击结束测量','measure','_spheroid','_unit','_style','_showLabel','getLength','clear','entries','square-meters','hectare','drawMoving','type','polygon','#f03437','label','area','fromEntries'];a45_0x1faf=function(){return _0x306b69;};return a45_0x1faf();}const defaultOptions={'color':a45_0x561582(0xbe),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x561582(0xb9),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':'measureMoving','measureEnd':a45_0x561582(0xab)};export class AreaMeasureEvent extends a45_0x26f252{constructor(_0x2fbc6e,_0x2ab01b,_0x11a0a7){const _0x360585=a45_0x561582;super(_0x2fbc6e),this[_0x360585(0xc0)]=_0x2ab01b,this[_0x360585(0xca)]=_0x11a0a7;}}export default class AreaMeasure extends a45_0x58f650{constructor(_0x2708b1){const _0x30b21a=a45_0x561582;_0x2708b1=_0x2708b1||{},console[_0x30b21a(0x9f)](_0x2708b1);const _0x523ad1=Object[_0x30b21a(0xd5)](Object[_0x30b21a(0xd5)]({},defaultOptions),Object[_0x30b21a(0xc1)](Object[_0x30b21a(0xb8)](_0x2708b1)[_0x30b21a(0xac)](([_0x344e7e,_0x2447c3])=>_0x2447c3!=null)));super(_0x30b21a(0xbd),{'tipText':_0x30b21a(0xb0),'style':_0x523ad1,'features':new a45_0x21417b()}),this[_0x30b21a(0xb4)]=_0x523ad1,this[_0x30b21a(0xb3)]=_0x523ad1[_0x30b21a(0xce)],this[_0x30b21a(0xa2)]=_0x523ad1[_0x30b21a(0xcc)],this[_0x30b21a(0xb5)]=_0x523ad1['showLabel'],this['_spheroid']=_0x523ad1[_0x30b21a(0x9e)],this['on']=this[_0x30b21a(0xd7)],this['on'](_0x30b21a(0xd2),_0x274a01=>{const _0x376a48=_0x30b21a,_0x4c988c=this[_0x376a48(0xcd)]();if(!_0x4c988c)return;if(_0x274a01[_0x376a48(0xc4)]){const _0x101998=this[_0x376a48(0xa0)](_0x274a01[_0x376a48(0xc4)],_0x523ad1);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x376a48(0xab)],_0x101998,_0x274a01['feature'][_0x376a48(0xae)]()));}this['_style'][_0x376a48(0xc8)]='';}),this['on'](_0x30b21a(0xa1),_0x4e7f98=>{const _0x2ea7ad=_0x30b21a,_0x355fbd=this['getMap']();if(!_0x355fbd)return;if(_0x4e7f98[_0x2ea7ad(0xc4)]){const _0x39f5d5=this[_0x2ea7ad(0xa0)](_0x4e7f98[_0x2ea7ad(0xc4)],_0x523ad1);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x2ea7ad(0xc6)],_0x39f5d5,_0x4e7f98[_0x2ea7ad(0xc4)][_0x2ea7ad(0xae)]()));}}),this['on'](_0x30b21a(0xbb),_0x2892d6=>{const _0xee4b5e=_0x30b21a,_0x1c1f9d=this['getMap']();if(!_0x1c1f9d)return;if(!_0x2892d6[_0xee4b5e(0xc7)]||_0x2892d6[_0xee4b5e(0xc7)][_0xee4b5e(0xc5)]<0x2)return;if(_0x2892d6[_0xee4b5e(0xc4)]){const _0x1406cd=this['setFeatureAreaStyle'](_0x2892d6[_0xee4b5e(0xc4)],_0x523ad1);this[_0xee4b5e(0x9c)](new AreaMeasureEvent(MeasureEventType[_0xee4b5e(0xc6)],_0x1406cd,_0x2892d6[_0xee4b5e(0xc4)]['getGeometry']()));}});}[a45_0x561582(0xa8)](_0x435290){const _0x41bb75=a45_0x561582;super[_0x41bb75(0xa8)](_0x435290);if(_0x435290){const _0x4895c0=_0x435290['getPolygonTempLayer'](),_0x28c04d=_0x4895c0===null||_0x4895c0===void 0x0?void 0x0:_0x4895c0[_0x41bb75(0xa6)]();_0x28c04d&&(this[_0x41bb75(0xa3)]=_0x28c04d);}}[a45_0x561582(0xd1)](_0x52c5f9){const _0x52573a=a45_0x561582,_0x370c6b=a45_0x1afac4[_0x52573a(0xd4)](_0x491803=>_0x491803[_0x52573a(0xbc)]===this['_unit']);switch(_0x370c6b===null||_0x370c6b===void 0x0?void 0x0:_0x370c6b[_0x52573a(0xbc)]){case _0x52573a(0xb9):return''+(_0x52c5f9[_0x52573a(0xaa)](this[_0x52573a(0xa2)])+_0x370c6b[_0x52573a(0xbf)]);case _0x52573a(0xa5):return''+((_0x52c5f9*0.000001)[_0x52573a(0xaa)](this[_0x52573a(0xa2)])+_0x370c6b[_0x52573a(0xbf)]);case'mu':return''+((_0x52c5f9*0.0015)['toFixed'](this[_0x52573a(0xa2)])+_0x370c6b['label']);case _0x52573a(0xba):return''+((_0x52c5f9*0.0001)['toFixed'](this['_precision'])+_0x370c6b[_0x52573a(0xbf)]);default:return _0x52c5f9[_0x52573a(0xaa)](this['_precision'])+'平方米';}}[a45_0x561582(0xa0)](_0xabd611,_0x25e880){const _0x156d8b=a45_0x561582,_0x477218=this[_0x156d8b(0xcd)]();if(!_0x477218)return 0x0;const _0x4d3d7a=_0xabd611['getGeometry'](),_0x460e0a=getArea(_0x4d3d7a,_0x477218[_0x156d8b(0xd8)]()['getProjection'](),this[_0x156d8b(0xb2)]);return _0xabd611['fromType']=_0x156d8b(0xb1),this['_showLabel']&&(_0x25e880['text']=this[_0x156d8b(0xd1)](_0x460e0a),_0xabd611[_0x156d8b(0xaf)](getStyle(_0x156d8b(0xbd),_0x25e880,_0x477218))),_0x460e0a;}[a45_0x561582(0x9a)](_0x52b67b){const _0x3dea06=a45_0x561582;this[_0x3dea06(0xb3)]=_0x52b67b,this['_features']&&this[_0x3dea06(0xc2)][_0x3dea06(0xb6)]()>0x0&&this[_0x3dea06(0xc2)][_0x3dea06(0x9b)](_0x4cf565=>{const _0x58baa8=_0x3dea06;this[_0x58baa8(0xa0)](_0x4cf565,this[_0x58baa8(0xb4)]);});}['clearMeasure'](){const _0x23c0b3=a45_0x561582,_0x3421e2=this[_0x23c0b3(0xcd)]();if(!_0x3421e2)return;const _0x1034c1=_0x3421e2['getPolygonTempLayer'](),_0x5896bf=_0x1034c1===null||_0x1034c1===void 0x0?void 0x0:_0x1034c1[_0x23c0b3(0xa6)]();_0x5896bf&&this[_0x23c0b3(0xc2)]&&this[_0x23c0b3(0xc2)][_0x23c0b3(0xb6)]()>0x0&&(this[_0x23c0b3(0xc2)][_0x23c0b3(0x9b)](_0x1b71de=>{_0x5896bf['removeFeature'](_0x1b71de);}),this[_0x23c0b3(0xc2)][_0x23c0b3(0xb7)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a46_0x4c8c46=a46_0x4879;(function(_0x4ea08a,_0x15f5e3){const _0x361539=a46_0x4879,_0x4dc186=_0x4ea08a();while(!![]){try{const _0x3402d4=parseInt(_0x361539(0x17b))/0x1+-parseInt(_0x361539(0x15e))/0x2+-parseInt(_0x361539(0x163))/0x3*(parseInt(_0x361539(0x16b))/0x4)+parseInt(_0x361539(0x164))/0x5*(-parseInt(_0x361539(0x17a))/0x6)+parseInt(_0x361539(0x16e))/0x7*(parseInt(_0x361539(0x168))/0x8)+parseInt(_0x361539(0x165))/0x9+parseInt(_0x361539(0x179))/0xa*(parseInt(_0x361539(0x171))/0xb);if(_0x3402d4===_0x15f5e3)break;else _0x4dc186['push'](_0x4dc186['shift']());}catch(_0x11bcc9){_0x4dc186['push'](_0x4dc186['shift']());}}}(a46_0x5c6f,0x7c732));import a46_0x5cfc99 from'./Draw';import a46_0x1a328b from'ol/events/Event';function a46_0x4879(_0x2b7c2b,_0x3d5b1b){const _0x5c6f41=a46_0x5c6f();return a46_0x4879=function(_0x4879e0,_0x48e14d){_0x4879e0=_0x4879e0-0x15a;let _0x4de7a3=_0x5c6f41[_0x4879e0];return _0x4de7a3;},a46_0x4879(_0x2b7c2b,_0x3d5b1b);}import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x4c8c46(0x160),'HOLED':a46_0x4c8c46(0x167)};export class HoleEvent extends a46_0x1a328b{constructor(_0xfb75f5,_0x41df3e,_0x9c732e,_0x342f02){const _0x2d9962=a46_0x4c8c46;super(_0xfb75f5),this[_0x2d9962(0x175)]=_0x41df3e,this['features']=_0x9c732e,this[_0x2d9962(0x16c)]=_0x342f02;}}function a46_0x5c6f(){const _0x43e42f=['HOLESTART','961247oxgZDZ','addTempLayer','未获取到地图对象','88rKpXtk','message','setGeometry','getMap','holePolygon','onInternal','dispatchEvent','holeFeatures','655800jxhipl','163776wgqixM','244421joNZLh','rgba(255,\x200,\x200,\x201)','getGeometry','未获取到擦除要素','HOLED','1709044LYmPjW','length','splitStart','drawEnd','polygon','12CBHLzE','25xawEDV','3168252rxcCyg','setFeatures','splited','24BxAFCW','feature','features','32304mBHEDV','error'];a46_0x5c6f=function(){return _0x43e42f;};return a46_0x5c6f();}export default class Difference extends a46_0x5cfc99{constructor(_0x393b64,_0x13c323){const _0x2738b4=a46_0x4c8c46,_0x4afad2=(_0x13c323===null||_0x13c323===void 0x0?void 0x0:_0x13c323['holeStyle'])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2,'opacity':0.2,'color':_0x2738b4(0x15a)};super(_0x2738b4(0x162),{'tipText':_0x13c323===null||_0x13c323===void 0x0?void 0x0:_0x13c323['tipText'],'style':_0x4afad2}),this['features']=_0x393b64;const _0x10d8a8=_0x13c323||{};this[_0x2738b4(0x16f)]=_0x10d8a8[_0x2738b4(0x16f)]||![],this['on']=this[_0x2738b4(0x176)],this['on'](_0x2738b4(0x161),async _0x48706e=>{const _0x968694=_0x2738b4;var _0x262faf;const _0x3edb1c=this[_0x968694(0x174)]();let _0x365322=(_0x262faf=_0x48706e[_0x968694(0x169)])===null||_0x262faf===void 0x0?void 0x0:_0x262faf[_0x968694(0x15b)]();!_0x365322&&this[_0x968694(0x177)](new HoleEvent(HoleEventType[_0x968694(0x15d)],undefined,undefined,'未获取到挖除的面'));let _0x27b8e3=_0x365322;!_0x3edb1c&&this['dispatchEvent'](new HoleEvent(HoleEventType[_0x968694(0x15d)],_0x27b8e3,undefined,_0x968694(0x170)));(!this[_0x968694(0x16a)]||this['features']['length']===0x0)&&this['dispatchEvent'](new HoleEvent(HoleEventType['HOLED'],_0x27b8e3,undefined,_0x968694(0x15c)));try{this[_0x968694(0x177)](new HoleEvent(HoleEventType[_0x968694(0x16d)],_0x27b8e3));const _0x2c2fee=this[_0x968694(0x178)](_0x27b8e3);this[_0x968694(0x177)](new HoleEvent(HoleEventType['HOLED'],_0x27b8e3,_0x2c2fee));}catch(_0x59b22f){this[_0x968694(0x177)](new HoleEvent(HoleEventType[_0x968694(0x15d)],_0x27b8e3,undefined,_0x59b22f[_0x968694(0x172)]));}});}['holeFeatures'](_0x4b3430){const _0xa0917f=a46_0x4c8c46,_0x2ee970=[];for(let _0x55e481=0x0;_0x55e481<this[_0xa0917f(0x16a)][_0xa0917f(0x15f)];_0x55e481++){const _0x3834a3=this['features'][_0x55e481],_0x433f52=_0x3834a3['getGeometry']();if(!_0x433f52)continue;const _0x5b861d=difference(_0x433f52,_0x4b3430);_0x3834a3[_0xa0917f(0x173)](_0x5b861d),_0x2ee970['push'](_0x3834a3);}return _0x2ee970;}[a46_0x4c8c46(0x166)](_0xf83db4){const _0x2c55ed=a46_0x4c8c46;this[_0x2c55ed(0x16a)]=_0xf83db4;}}
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47_0x3cf73f=a47_0x4138;(function(_0x37ac9f,_0x2adff4){const _0xe182af=a47_0x4138,_0x1c2189=_0x37ac9f();while(!![]){try{const _0x5b1fa4=parseInt(_0xe182af(0xfa))/0x1+parseInt(_0xe182af(0xef))/0x2*(-parseInt(_0xe182af(0x10d))/0x3)+-parseInt(_0xe182af(0x10b))/0x4+-parseInt(_0xe182af(0x107))/0x5+parseInt(_0xe182af(0xfc))/0x6*(parseInt(_0xe182af(0x14e))/0x7)+parseInt(_0xe182af(0xf9))/0x8*(-parseInt(_0xe182af(0x137))/0x9)+parseInt(_0xe182af(0x105))/0xa*(parseInt(_0xe182af(0xfe))/0xb);if(_0x5b1fa4===_0x2adff4)break;else _0x1c2189['push'](_0x1c2189['shift']());}catch(_0x45ccec){_0x1c2189['push'](_0x1c2189['shift']());}}}(a47_0x36c3,0x62d24));import a47_0x3509c5 from'ol/events/Event';import a47_0x181395 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';function a47_0x36c3(){const _0x4bec16=['preventDefault','_tipOverlay','_fixPoint','pointermove','_tipFeature','getActive','单击拖动绘制','updateSketchFeatures_','originalEvent','addFeature','handleDragEvent','Ellipsoid','18CaYZhV','updateTip_','atFinish_','once','getPixelFromCoordinate','handleUpEvent','addPoint','rgba(255,\x20255,\x20255,\x201)','getType','setGeometry','12px\x20Calibre,sans-serif','drawStart','button','length','getView','source','handleDownEvent','coordinate','Rectangle','DRAWADDPOINT','_isStayDraw','addChangeListener','buildDrawingFeature','441BMQuny','coordinates','_snapTolerance','setText','createMultiPointFeature','单击增加点,右击删除点','_source','292126aczddb','abortDrawing_','单击开始绘制','getMap','updateState_','stopDown','revert','_style','DRAWEND','clear','2418064VNPGrj','802245sIGykl','MAX_VALUE','1578jmwssZ','startDrawing_','7082339cRUwXi','单击增加点,右击删除点双击完成绘制','_features','unInternal','point','_tipStyle','handleMoveEvent','30LEaIyU','_showTip','1873130DCTXBZ','type','getSource','_type','2544528RRgxbH','pixel','15fjZiFm','getText','setMap','getProjection','_sketchFeature','abortDrawing','minPoint','rectangle','DRAWABORT','_minPoints','sqrt','setStyle','wrapX','_drawingCoordinates','rgba(0,\x200,\x200,\x200.4)','dispatchEvent','getOverlay','features','tipText','snapTolerance','finishDrawing','showTip','pop','getGeometry','_overlay','push','getCode','left','indexOf','DRAWMOVING'];a47_0x36c3=function(){return _0x4bec16;};return a47_0x36c3();}import a47_0x3a7721 from'ol/Feature';import a47_0x5ba098,{createEditingStyle}from'ol/style/Style';import a47_0x50a4d1 from'ol/source/Vector';function a47_0x4138(_0x15b9b7,_0x2cda52){const _0x36c3b8=a47_0x36c3();return a47_0x4138=function(_0x4138e8,_0x20ba95){_0x4138e8=_0x4138e8-0xe9;let _0x13e054=_0x36c3b8[_0x4138e8];return _0x13e054;},a47_0x4138(_0x15b9b7,_0x2cda52);}import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x16279f from'ol/style/Text';import a47_0x4cb24e from'ol/style/Fill';import a47_0x58fc25 from'ol/interaction/Property';import a47_0x3bbd7a from'ol/layer/Vector';import a47_0x11b907 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x3cf73f(0x142),'DRAWEND':'drawEnd','DRAWABORT':'drawAbort','DRAWADDPOINT':'drawAddPoint','DRAWMOVING':'drawMoving'};export class DrawEvent extends a47_0x3509c5{constructor(_0x5a68e0,_0x2ad018,_0x5d3160){const _0x19f7ac=a47_0x3cf73f;super(_0x5a68e0),this['feature']=_0x2ad018,this[_0x19f7ac(0xe9)]=_0x5d3160;}}export class ShEvent extends a47_0x3509c5{constructor(_0x1a3211,_0xc21b41,_0x2ccbf7,_0x2354c4,_0x478eec){const _0x1231e6=a47_0x3cf73f;super(_0x1a3211),this['projection']=_0x478eec,this[_0x1231e6(0x108)]=_0xc21b41,this[_0x1231e6(0x148)]=_0x2ccbf7,this[_0x1231e6(0xe9)]=_0x2354c4;}}export default class Draw extends a47_0x181395{constructor(_0x48c4f1,_0x432e65){const _0x3a034f=a47_0x3cf73f,_0x11fff7=_0x432e65?_0x432e65:{};!_0x11fff7[_0x3a034f(0xf4)]&&(_0x11fff7[_0x3a034f(0xf4)]=![]);super(_0x432e65),this['on']=this['onInternal'],this[_0x3a034f(0x13a)]=this['onceInternal'],this['un']=this[_0x3a034f(0x101)],this[_0x3a034f(0x14b)]=![],this[_0x3a034f(0x10a)]=_0x48c4f1,this[_0x3a034f(0xf6)]=_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65['style'],this[_0x3a034f(0xee)]=_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x146)],this[_0x3a034f(0x100)]=_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x11e)];const _0x55f052=getPlotCount(this[_0x3a034f(0x10a)]);this[_0x3a034f(0x116)]=_0x55f052[_0x3a034f(0x113)],this[_0x3a034f(0x12d)]=_0x55f052['fixPoint'],this[_0x3a034f(0x11f)]=_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x11f)],this[_0x3a034f(0x106)]=(_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x122)])==![]?![]:!![],this[_0x3a034f(0xea)]=_0x11fff7['snapTolerance']?_0x11fff7[_0x3a034f(0x120)]:0x6,this['_tipFeature']=new a47_0x3a7721(),this[_0x3a034f(0x103)]=new a47_0x5ba098({'text':new a47_0x16279f({'font':_0x3a034f(0x141),'fill':new a47_0x4cb24e({'color':_0x3a034f(0x13e)}),'backgroundFill':new a47_0x4cb24e({'color':_0x3a034f(0x11b)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x3a034f(0x128),'offsetX':0xf})}),this[_0x3a034f(0x11a)]=[],this[_0x3a034f(0x12c)]=new a47_0x3bbd7a({'source':new a47_0x50a4d1({'useSpatialIndex':![],'wrapX':(_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x119)])?_0x432e65[_0x3a034f(0x119)]:![]})}),this[_0x3a034f(0x125)]=new a47_0x3bbd7a({'source':new a47_0x50a4d1({'useSpatialIndex':![],'wrapX':(_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x119)])?_0x432e65[_0x3a034f(0x119)]:![]}),'updateWhileInteracting':!![]}),this[_0x3a034f(0x14c)](a47_0x58fc25['ACTIVE'],this[_0x3a034f(0xf3)]);}['updateState_'](){const _0x196de0=a47_0x3cf73f,_0x16fc89=this[_0x196de0(0xf2)](),_0x378f48=this[_0x196de0(0x130)]();(!_0x16fc89||!_0x378f48)&&this[_0x196de0(0x112)](),this[_0x196de0(0x125)][_0x196de0(0x10f)](_0x378f48?_0x16fc89:null),this[_0x196de0(0x12c)]['setMap'](_0x378f48?_0x16fc89:null);}[a47_0x3cf73f(0x10f)](_0x55d71f){const _0x37e491=a47_0x3cf73f;super[_0x37e491(0x10f)](_0x55d71f),this[_0x37e491(0xf3)]();}['setStyle'](_0x1d05db){const _0x3c471b=a47_0x3cf73f;this[_0x3c471b(0xf6)]=_0x1d05db?_0x1d05db:{};}[a47_0x3cf73f(0x11d)](){const _0x66a501=a47_0x3cf73f;return this[_0x66a501(0x125)];}[a47_0x3cf73f(0x147)](_0x2684c9){const _0x232e9b=a47_0x3cf73f;if(_0x2684c9['originalEvent'][_0x232e9b(0x143)]===0x2)return _0x2684c9[_0x232e9b(0x133)]['preventDefault'](),this[_0x232e9b(0xf5)](),this[_0x232e9b(0x104)](_0x2684c9),![];return!![];}[a47_0x3cf73f(0x13c)](_0x23d648){const _0x17bdca=a47_0x3cf73f;var _0x1961f5,_0x225027;if(this[_0x17bdca(0x10a)]=='rectangle'&&this[_0x17bdca(0x11a)][_0x17bdca(0x144)]<0x1)return this[_0x17bdca(0x11c)](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x23d648['coordinate']])),![];if(!this[_0x17bdca(0x14b)])this[_0x17bdca(0xfd)](_0x23d648[_0x17bdca(0x148)]),this[_0x17bdca(0x11c)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x17bdca(0x10a)],_0x23d648[_0x17bdca(0x148)],this[_0x17bdca(0x11a)],(_0x1961f5=this['getMap']())===null||_0x1961f5===void 0x0?void 0x0:_0x1961f5[_0x17bdca(0x145)]()['getProjection']()[_0x17bdca(0x127)]())),this[_0x17bdca(0x10a)]==_0x17bdca(0x102)&&this['finishDrawing']();else{if(this['_drawingCoordinates']&&this[_0x17bdca(0x11a)]['length']>0x0){if(this[_0x17bdca(0x139)](_0x23d648[_0x17bdca(0x10c)]))return this[_0x17bdca(0x121)](),_0x23d648[_0x17bdca(0x12b)](),![];let _0x56a903=this['_drawingCoordinates']['length']+0x1;_0x56a903<=this[_0x17bdca(0x12d)]&&this['addPoint'](_0x23d648['coordinate']),this['dispatchEvent'](new ShEvent(DrawEventType[_0x17bdca(0x14a)],this['_type'],_0x23d648['coordinate'],this[_0x17bdca(0x11a)],(_0x225027=this['getMap']())===null||_0x225027===void 0x0?void 0x0:_0x225027[_0x17bdca(0x145)]()['getProjection']()[_0x17bdca(0x127)]())),_0x56a903>=this[_0x17bdca(0x116)]&&this[_0x17bdca(0x14d)](this[_0x17bdca(0x11a)]),_0x56a903===this[_0x17bdca(0x12d)]&&this[_0x17bdca(0x121)]();}}return _0x23d648[_0x17bdca(0x12b)](),![];}[a47_0x3cf73f(0x135)](_0x24d032){const _0x1b8e9d=a47_0x3cf73f;var _0x5bc52a;if(this['_type']==_0x1b8e9d(0x114)&&_0x24d032[_0x1b8e9d(0x133)][_0x1b8e9d(0x108)]=='pointermove'){if(!this[_0x1b8e9d(0x14b)]){this[_0x1b8e9d(0xfd)](_0x24d032[_0x1b8e9d(0x148)]),this[_0x1b8e9d(0x11c)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x1b8e9d(0x10a)],_0x24d032[_0x1b8e9d(0x148)],this[_0x1b8e9d(0x11a)],(_0x5bc52a=this[_0x1b8e9d(0xf2)]())===null||_0x5bc52a===void 0x0?void 0x0:_0x5bc52a['getView']()[_0x1b8e9d(0x110)]()[_0x1b8e9d(0x127)]()));return;}let _0x58aac8=[...this[_0x1b8e9d(0x11a)],_0x24d032[_0x1b8e9d(0x148)]];this[_0x1b8e9d(0x14d)](_0x58aac8),this[_0x1b8e9d(0x11c)](new DrawEvent(DrawEventType[_0x1b8e9d(0x12a)],this['_sketchFeature'],this[_0x1b8e9d(0x11a)]));}}[a47_0x3cf73f(0x104)](_0x361e32){const _0xdb7f2c=a47_0x3cf73f;var _0x121b4c,_0x2a1e9f,_0x3e3bf0;let _0x4e76be='';this[_0xdb7f2c(0x10a)]==_0xdb7f2c(0x12e)&&(this['startDrawing_'](_0x361e32['coordinate']),this[_0xdb7f2c(0x11c)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0xdb7f2c(0x10a)],_0x361e32['coordinate'],this[_0xdb7f2c(0x11a)],(_0x121b4c=this['getMap']())===null||_0x121b4c===void 0x0?void 0x0:_0x121b4c[_0xdb7f2c(0x145)]()['getProjection']()['getCode']())),this['finishDrawing']());!this[_0xdb7f2c(0x14b)]?_0x4e76be=this[_0xdb7f2c(0x10a)]==_0xdb7f2c(0x114)?_0xdb7f2c(0x131):_0xdb7f2c(0xf1):(_0x4e76be=_0xdb7f2c(0xed),((_0x2a1e9f=this[_0xdb7f2c(0x11a)])===null||_0x2a1e9f===void 0x0?void 0x0:_0x2a1e9f[_0xdb7f2c(0x144)])===this[_0xdb7f2c(0x12d)]-0x1&&(_0x4e76be='单击结束绘制,右击删除点'),((_0x3e3bf0=this[_0xdb7f2c(0x11a)])===null||_0x3e3bf0===void 0x0?void 0x0:_0x3e3bf0['length'])>=this['_minPoints']&&this[_0xdb7f2c(0x12d)]===Number[_0xdb7f2c(0xfb)]&&(_0x4e76be=_0xdb7f2c(0xff)));this[_0xdb7f2c(0x11f)]!=undefined&&(_0x4e76be=this[_0xdb7f2c(0x11f)]);this[_0xdb7f2c(0x138)](_0x361e32['coordinate'],_0x4e76be);if(this[_0xdb7f2c(0x14b)]&&this['_type']!=_0xdb7f2c(0x114)){let _0xa9afd3=[...this['_drawingCoordinates'],_0x361e32['coordinate']];this['buildDrawingFeature'](_0xa9afd3);}this['dispatchEvent'](new DrawEvent(DrawEventType[_0xdb7f2c(0x12a)],this[_0xdb7f2c(0x111)],this[_0xdb7f2c(0x11a)]));}[a47_0x3cf73f(0x139)](_0xce6144){const _0x450d7c=a47_0x3cf73f;var _0x1e3d5a;let _0x8bf079=![],_0x65703c=this[_0x450d7c(0x11a)][_0x450d7c(0x144)];if(_0x65703c>this[_0x450d7c(0x116)]&&this[_0x450d7c(0x12d)]===Number[_0x450d7c(0xfb)]){const _0x4608ea=this[_0x450d7c(0x11a)][this['_drawingCoordinates'][_0x450d7c(0x144)]-0x1],_0x314dd0=(_0x1e3d5a=this[_0x450d7c(0xf2)]())===null||_0x1e3d5a===void 0x0?void 0x0:_0x1e3d5a[_0x450d7c(0x13b)](_0x4608ea),_0x2d794b=_0xce6144[0x0]-(_0x314dd0?_0x314dd0[0x0]:0x0),_0x43145c=_0xce6144[0x1]-(_0x314dd0?_0x314dd0[0x1]:0x0);_0x8bf079=Math[_0x450d7c(0x117)](_0x2d794b*_0x2d794b+_0x43145c*_0x43145c)<=this[_0x450d7c(0xea)];}return _0x8bf079;}[a47_0x3cf73f(0xfd)](_0xf97992){const _0x305336=a47_0x3cf73f;this[_0x305336(0x14b)]=!![],this[_0x305336(0x11a)]=[_0xf97992['slice']()],this[_0x305336(0x111)]=this['createMultiPointFeature'](),this[_0x305336(0x132)](),this[_0x305336(0x11c)](new DrawEvent(DrawEventType['DRAWSTART'],this[_0x305336(0x111)],this[_0x305336(0x11a)]));}['finishDrawing'](){const _0x4f5eb6=a47_0x3cf73f;if(this['_drawingCoordinates'][_0x4f5eb6(0x144)]>this[_0x4f5eb6(0x116)]){this['buildDrawingFeature'](this[_0x4f5eb6(0x11a)]);let _0x2811e5=this[_0x4f5eb6(0x11a)];const _0x84438f=this[_0x4f5eb6(0xf0)]();if(!_0x84438f)return;this[_0x4f5eb6(0x11c)](new DrawEvent(DrawEventType[_0x4f5eb6(0xf7)],_0x84438f,_0x2811e5)),this['_features']&&this['_features'][_0x4f5eb6(0x126)](_0x84438f),this[_0x4f5eb6(0xee)]&&this[_0x4f5eb6(0xee)]['addFeature'](_0x84438f);}}[a47_0x3cf73f(0x13d)](_0x39c637){const _0x48cd75=a47_0x3cf73f;this['_drawingCoordinates'][_0x48cd75(0x126)](_0x39c637),this['_sketchFeature']=this[_0x48cd75(0xec)](),this[_0x48cd75(0x132)]();}[a47_0x3cf73f(0xec)](){const _0x577c98=a47_0x3cf73f,_0x456fa0=new MultiPoint(this[_0x577c98(0x11a)]);let _0x345c7c=new a47_0x3a7721();return _0x345c7c[_0x577c98(0x140)](_0x456fa0),_0x345c7c;}[a47_0x3cf73f(0xf0)](){const _0xffd77f=a47_0x3cf73f;var _0x1ef123,_0x420792;this[_0xffd77f(0x14b)]=![];const _0x5a26fc=this[_0xffd77f(0x111)];return this[_0xffd77f(0x111)]=undefined,this[_0xffd77f(0x11a)]=[],(_0x1ef123=this[_0xffd77f(0x125)][_0xffd77f(0x109)]())===null||_0x1ef123===void 0x0?void 0x0:_0x1ef123[_0xffd77f(0xf8)](!![]),(_0x420792=this[_0xffd77f(0x12c)][_0xffd77f(0x109)]())===null||_0x420792===void 0x0?void 0x0:_0x420792[_0xffd77f(0xf8)](!![]),_0x5a26fc;}[a47_0x3cf73f(0x112)](){const _0x24230f=a47_0x3cf73f,_0x30d2ce=this[_0x24230f(0xf0)]();_0x30d2ce&&this[_0x24230f(0x11c)](new DrawEvent(DrawEventType[_0x24230f(0x115)],_0x30d2ce,this[_0x24230f(0x11a)]));}['buildDrawingFeature'](_0x4afd35){const _0x53f7ed=a47_0x3cf73f;this[_0x53f7ed(0x111)]=new a47_0x3a7721();let _0x2c2e05=createPlot(this[_0x53f7ed(0x10a)],_0x4afd35);if(!_0x2c2e05)return;this['_sketchFeature'][_0x53f7ed(0x140)](_0x2c2e05);let _0x51bc18=[a47_0x11b907['Circle'],a47_0x11b907[_0x53f7ed(0x136)],a47_0x11b907['Ellipse']];if(_0x51bc18[_0x53f7ed(0x129)](this[_0x53f7ed(0x10a)])>-0x1&&this[_0x53f7ed(0xf6)]){}const _0x159bc0=this[_0x53f7ed(0xf2)]();this['_sketchFeature']['setStyle'](getStyle(this[_0x53f7ed(0x10a)],this[_0x53f7ed(0xf6)],this[_0x53f7ed(0xf2)]())),this[_0x53f7ed(0x132)]();}[a47_0x3cf73f(0x132)](){const _0x5baf89=a47_0x3cf73f,_0xc2238d=this['_overlay'][_0x5baf89(0x109)]();_0xc2238d&&this[_0x5baf89(0x111)]&&(_0xc2238d[_0x5baf89(0xf8)](!![]),_0xc2238d[_0x5baf89(0x134)](this[_0x5baf89(0x111)]));}[a47_0x3cf73f(0xf5)](){const _0x38ddf5=a47_0x3cf73f;if(this[_0x38ddf5(0x14b)]){if(this[_0x38ddf5(0x11a)]&&this['_drawingCoordinates']['length']>0x0){const _0x2f5e7a=this[_0x38ddf5(0x125)]['getSource']();_0x2f5e7a===null||_0x2f5e7a===void 0x0?void 0x0:_0x2f5e7a[_0x38ddf5(0xf8)](!![]),this['_drawingCoordinates'][_0x38ddf5(0x123)](),this[_0x38ddf5(0x11a)]['length']>=this[_0x38ddf5(0x116)]&&this[_0x38ddf5(0x14d)](this[_0x38ddf5(0x11a)]),this[_0x38ddf5(0x11a)][_0x38ddf5(0x144)]===0x0&&(this['_isStayDraw']=![]);}}}[a47_0x3cf73f(0x138)](_0x2024bf,_0x54d9f9){const _0x2ebe10=a47_0x3cf73f;var _0x52c83a,_0x5ae696,_0x1987a2,_0x295f42;if(!this[_0x2ebe10(0x106)])return;const _0x461f10=this[_0x2ebe10(0x12c)][_0x2ebe10(0x109)]();_0x461f10===null||_0x461f10===void 0x0?void 0x0:_0x461f10[_0x2ebe10(0xf8)](!![]),(_0x52c83a=this[_0x2ebe10(0x12f)])===null||_0x52c83a===void 0x0?void 0x0:_0x52c83a['setGeometry'](new Point(_0x2024bf)),(_0x1987a2=(_0x5ae696=this['_tipStyle'])===null||_0x5ae696===void 0x0?void 0x0:_0x5ae696[_0x2ebe10(0x10e)]())===null||_0x1987a2===void 0x0?void 0x0:_0x1987a2[_0x2ebe10(0xeb)](_0x54d9f9),(_0x295f42=this[_0x2ebe10(0x12f)])===null||_0x295f42===void 0x0?void 0x0:_0x295f42[_0x2ebe10(0x118)](this[_0x2ebe10(0x103)]),this[_0x2ebe10(0x12f)]&&(_0x461f10===null||_0x461f10===void 0x0?void 0x0:_0x461f10[_0x2ebe10(0x134)](this['_tipFeature']));}}function getDefaultStyleFunction(){const _0x658475=createEditingStyle();return function(_0xaecf73,_0x299704){const _0x2120f4=a47_0x4138,_0x584b4b=_0x658475[_0xaecf73[_0x2120f4(0x124)]()[_0x2120f4(0x13f)]()];if(_0x584b4b&&_0x2120f4(0x149)==_0xaecf73[_0x2120f4(0x124)]()[_0x2120f4(0x13f)]()){}};}
|
|
1
|
+
const a47_0x51b7ec=a47_0x355a;(function(_0x434ffc,_0x55f244){const _0x32a759=a47_0x355a,_0x527074=_0x434ffc();while(!![]){try{const _0x2b3f13=parseInt(_0x32a759(0x15f))/0x1*(parseInt(_0x32a759(0x159))/0x2)+parseInt(_0x32a759(0x12a))/0x3+-parseInt(_0x32a759(0x181))/0x4+-parseInt(_0x32a759(0x170))/0x5+-parseInt(_0x32a759(0x13f))/0x6*(parseInt(_0x32a759(0x14b))/0x7)+-parseInt(_0x32a759(0x166))/0x8+parseInt(_0x32a759(0x132))/0x9;if(_0x2b3f13===_0x55f244)break;else _0x527074['push'](_0x527074['shift']());}catch(_0x4e4a2d){_0x527074['push'](_0x527074['shift']());}}}(a47_0x4678,0x734c6));function a47_0x355a(_0x3e4c48,_0x2f66d6){const _0x467813=a47_0x4678();return a47_0x355a=function(_0x355a4c,_0x3d7756){_0x355a4c=_0x355a4c-0x11d;let _0x177762=_0x467813[_0x355a4c];return _0x177762;},a47_0x355a(_0x3e4c48,_0x2f66d6);}import a47_0x4b093e from'ol/events/Event';import a47_0x57c5cf from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a47_0x506bc7 from'ol/Feature';import a47_0x563cb7,{createEditingStyle}from'ol/style/Style';function a47_0x4678(){const _0x5c1b3d=['setText','单击开始绘制','6008776UXloSC','_tipStyle','updateSketchFeatures_','getType','createMultiPointFeature','onceInternal','dispatchEvent','addPoint','getText','setGeometry','4496415pltIUU','单击结束绘制,右击删除点','getActive','snapTolerance','getMap','_sketchFeature','startDrawing_','addFeature','feature','DRAWABORT','push','abortDrawing','finishDrawing','rgba(0,\x200,\x200,\x200.4)','onInternal','drawStart','button','727324qjvwDk','_source','_isStayDraw','DRAWEND','revert','tipText','setMap','_tipOverlay','_minPoints','12px\x20Calibre,sans-serif','fixPoint','showTip','length','getOverlay','pointermove','DRAWMOVING','_style','2525358mpckZc','drawAddPoint','rectangle','单击拖动绘制','abortDrawing_','once','drawEnd','handleMoveEvent','14193045KbvhaM','_snapTolerance','drawAbort','updateTip_','_type','sqrt','单击增加点,右击删除点','_overlay','getSource','getView','buildDrawingFeature','_drawingCoordinates','DRAWADDPOINT','6wOlriL','clear','Ellipsoid','style','MAX_VALUE','updateState_','point','getProjection','getCode','atFinish_','setStyle','preventDefault','3590167arAssx','rgba(255,\x20255,\x20255,\x201)','_features','coordinate','handleDownEvent','slice','_tipFeature','_showTip','wrapX','Rectangle','getPixelFromCoordinate','minPoint','source','projection','3814KscRAU','getGeometry','handleUpEvent','_fixPoint','Ellipse','originalEvent','209TMhnbZ','coordinates','type','DRAWSTART','stopDown'];a47_0x4678=function(){return _0x5c1b3d;};return a47_0x4678();}import a47_0x25376a from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x189e82 from'ol/style/Text';import a47_0x568740 from'ol/style/Fill';import a47_0x594647 from'ol/interaction/Property';import a47_0x1681eb from'ol/layer/Vector';import a47_0x365f18 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x51b7ec(0x17f),'DRAWEND':a47_0x51b7ec(0x130),'DRAWABORT':a47_0x51b7ec(0x134),'DRAWADDPOINT':a47_0x51b7ec(0x12b),'DRAWMOVING':'drawMoving'};export class DrawEvent extends a47_0x4b093e{constructor(_0x1ecf3b,_0x9c6d85,_0x3a02f5){const _0x381c78=a47_0x51b7ec;super(_0x1ecf3b),this[_0x381c78(0x178)]=_0x9c6d85,this[_0x381c78(0x160)]=_0x3a02f5;}}export class ShEvent extends a47_0x4b093e{constructor(_0x1507d6,_0x507f59,_0x1d676e,_0x54d5f5,_0x3f1338){const _0x5d9201=a47_0x51b7ec;super(_0x1507d6),this[_0x5d9201(0x158)]=_0x3f1338,this[_0x5d9201(0x161)]=_0x507f59,this[_0x5d9201(0x14e)]=_0x1d676e,this[_0x5d9201(0x160)]=_0x54d5f5;}}export default class Draw extends a47_0x57c5cf{constructor(_0x4b945b,_0x305fb0){const _0x53accd=a47_0x51b7ec,_0x29c3e9=_0x305fb0?_0x305fb0:{};!_0x29c3e9[_0x53accd(0x163)]&&(_0x29c3e9['stopDown']=![]);super(_0x305fb0),this['on']=this[_0x53accd(0x17e)],this[_0x53accd(0x12f)]=this[_0x53accd(0x16b)],this['un']=this['unInternal'],this[_0x53accd(0x183)]=![],this['_type']=_0x4b945b,this[_0x53accd(0x129)]=_0x305fb0===null||_0x305fb0===void 0x0?void 0x0:_0x305fb0[_0x53accd(0x142)],this[_0x53accd(0x182)]=_0x305fb0===null||_0x305fb0===void 0x0?void 0x0:_0x305fb0[_0x53accd(0x157)],this['_features']=_0x305fb0===null||_0x305fb0===void 0x0?void 0x0:_0x305fb0['features'];const _0x35dfd1=getPlotCount(this[_0x53accd(0x136)]);this['_minPoints']=_0x35dfd1[_0x53accd(0x156)],this[_0x53accd(0x15c)]=_0x35dfd1[_0x53accd(0x123)],this[_0x53accd(0x11e)]=_0x305fb0===null||_0x305fb0===void 0x0?void 0x0:_0x305fb0['tipText'],this['_showTip']=(_0x305fb0===null||_0x305fb0===void 0x0?void 0x0:_0x305fb0[_0x53accd(0x124)])==![]?![]:!![],this[_0x53accd(0x133)]=_0x29c3e9['snapTolerance']?_0x29c3e9[_0x53accd(0x173)]:0x6,this['_tipFeature']=new a47_0x506bc7(),this[_0x53accd(0x167)]=new a47_0x563cb7({'text':new a47_0x189e82({'font':_0x53accd(0x122),'fill':new a47_0x568740({'color':_0x53accd(0x14c)}),'backgroundFill':new a47_0x568740({'color':_0x53accd(0x17d)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this[_0x53accd(0x13d)]=[],this[_0x53accd(0x120)]=new a47_0x1681eb({'source':new a47_0x25376a({'useSpatialIndex':![],'wrapX':(_0x305fb0===null||_0x305fb0===void 0x0?void 0x0:_0x305fb0[_0x53accd(0x153)])?_0x305fb0[_0x53accd(0x153)]:![]})}),this[_0x53accd(0x139)]=new a47_0x1681eb({'source':new a47_0x25376a({'useSpatialIndex':![],'wrapX':(_0x305fb0===null||_0x305fb0===void 0x0?void 0x0:_0x305fb0[_0x53accd(0x153)])?_0x305fb0[_0x53accd(0x153)]:![]}),'updateWhileInteracting':!![]}),this['addChangeListener'](a47_0x594647['ACTIVE'],this[_0x53accd(0x144)]);}[a47_0x51b7ec(0x144)](){const _0x33df10=a47_0x51b7ec,_0x117795=this[_0x33df10(0x174)](),_0x413c28=this[_0x33df10(0x172)]();(!_0x117795||!_0x413c28)&&this[_0x33df10(0x17b)](),this[_0x33df10(0x139)][_0x33df10(0x11f)](_0x413c28?_0x117795:null),this['_tipOverlay']['setMap'](_0x413c28?_0x117795:null);}[a47_0x51b7ec(0x11f)](_0x325440){const _0x5a2b75=a47_0x51b7ec;super[_0x5a2b75(0x11f)](_0x325440),this[_0x5a2b75(0x144)]();}[a47_0x51b7ec(0x149)](_0x196736){const _0xdb449e=a47_0x51b7ec;this[_0xdb449e(0x129)]=_0x196736?_0x196736:{};}[a47_0x51b7ec(0x126)](){const _0x10eb07=a47_0x51b7ec;return this[_0x10eb07(0x139)];}[a47_0x51b7ec(0x14f)](_0x232a9d){const _0x5c3aba=a47_0x51b7ec;if(_0x232a9d[_0x5c3aba(0x15e)][_0x5c3aba(0x180)]===0x2)return _0x232a9d[_0x5c3aba(0x15e)][_0x5c3aba(0x14a)](),this[_0x5c3aba(0x11d)](),this[_0x5c3aba(0x131)](_0x232a9d),![];return!![];}[a47_0x51b7ec(0x15b)](_0x20dbe2){const _0x27938d=a47_0x51b7ec;var _0x5f2ca7,_0x2d1900;if(this[_0x27938d(0x136)]==_0x27938d(0x12c)&&this['_drawingCoordinates'][_0x27938d(0x125)]<0x1)return this[_0x27938d(0x16c)](new DrawEvent(DrawEventType[_0x27938d(0x184)],undefined,[_0x20dbe2[_0x27938d(0x14e)]])),![];if(!this[_0x27938d(0x183)])this['startDrawing_'](_0x20dbe2[_0x27938d(0x14e)]),this[_0x27938d(0x16c)](new ShEvent(DrawEventType[_0x27938d(0x13e)],this[_0x27938d(0x136)],_0x20dbe2[_0x27938d(0x14e)],this[_0x27938d(0x13d)],(_0x5f2ca7=this[_0x27938d(0x174)]())===null||_0x5f2ca7===void 0x0?void 0x0:_0x5f2ca7['getView']()[_0x27938d(0x146)]()[_0x27938d(0x147)]())),this['_type']==_0x27938d(0x145)&&this[_0x27938d(0x17c)]();else{if(this['_drawingCoordinates']&&this[_0x27938d(0x13d)]['length']>0x0){if(this[_0x27938d(0x148)](_0x20dbe2['pixel']))return this[_0x27938d(0x17c)](),_0x20dbe2[_0x27938d(0x14a)](),![];let _0x32713c=this[_0x27938d(0x13d)]['length']+0x1;_0x32713c<=this[_0x27938d(0x15c)]&&this['addPoint'](_0x20dbe2[_0x27938d(0x14e)]),this['dispatchEvent'](new ShEvent(DrawEventType['DRAWADDPOINT'],this['_type'],_0x20dbe2[_0x27938d(0x14e)],this[_0x27938d(0x13d)],(_0x2d1900=this[_0x27938d(0x174)]())===null||_0x2d1900===void 0x0?void 0x0:_0x2d1900[_0x27938d(0x13b)]()[_0x27938d(0x146)]()['getCode']())),_0x32713c>=this['_minPoints']&&this[_0x27938d(0x13c)](this[_0x27938d(0x13d)]),_0x32713c===this['_fixPoint']&&this[_0x27938d(0x17c)]();}}return _0x20dbe2['preventDefault'](),![];}['handleDragEvent'](_0x4a5115){const _0x376885=a47_0x51b7ec;var _0x249a51;if(this[_0x376885(0x136)]==_0x376885(0x12c)&&_0x4a5115['originalEvent']['type']==_0x376885(0x127)){if(!this['_isStayDraw']){this[_0x376885(0x176)](_0x4a5115[_0x376885(0x14e)]),this[_0x376885(0x16c)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x376885(0x136)],_0x4a5115[_0x376885(0x14e)],this[_0x376885(0x13d)],(_0x249a51=this[_0x376885(0x174)]())===null||_0x249a51===void 0x0?void 0x0:_0x249a51[_0x376885(0x13b)]()['getProjection']()[_0x376885(0x147)]()));return;}let _0x3eb4ac=[...this[_0x376885(0x13d)],_0x4a5115[_0x376885(0x14e)]];this[_0x376885(0x13c)](_0x3eb4ac),this[_0x376885(0x16c)](new DrawEvent(DrawEventType[_0x376885(0x128)],this[_0x376885(0x175)],this[_0x376885(0x13d)]));}}[a47_0x51b7ec(0x131)](_0x55a14d){const _0x223aff=a47_0x51b7ec;var _0x51c821,_0x56d108,_0x53ce4c;let _0x2581c8='';this['_type']=='pointermove'&&(this['startDrawing_'](_0x55a14d[_0x223aff(0x14e)]),this[_0x223aff(0x16c)](new ShEvent(DrawEventType[_0x223aff(0x13e)],this[_0x223aff(0x136)],_0x55a14d[_0x223aff(0x14e)],this[_0x223aff(0x13d)],(_0x51c821=this[_0x223aff(0x174)]())===null||_0x51c821===void 0x0?void 0x0:_0x51c821[_0x223aff(0x13b)]()[_0x223aff(0x146)]()[_0x223aff(0x147)]())),this[_0x223aff(0x17c)]());!this[_0x223aff(0x183)]?_0x2581c8=this[_0x223aff(0x136)]=='rectangle'?_0x223aff(0x12d):_0x223aff(0x165):(_0x2581c8=_0x223aff(0x138),((_0x56d108=this[_0x223aff(0x13d)])===null||_0x56d108===void 0x0?void 0x0:_0x56d108[_0x223aff(0x125)])===this[_0x223aff(0x15c)]-0x1&&(_0x2581c8=_0x223aff(0x171)),((_0x53ce4c=this['_drawingCoordinates'])===null||_0x53ce4c===void 0x0?void 0x0:_0x53ce4c[_0x223aff(0x125)])>=this[_0x223aff(0x121)]&&this[_0x223aff(0x15c)]===Number[_0x223aff(0x143)]&&(_0x2581c8='单击增加点,右击删除点双击完成绘制'));this['tipText']!=undefined&&(_0x2581c8=this[_0x223aff(0x11e)]);this[_0x223aff(0x135)](_0x55a14d[_0x223aff(0x14e)],_0x2581c8);if(this['_isStayDraw']&&this[_0x223aff(0x136)]!=_0x223aff(0x12c)){let _0x518905=[...this['_drawingCoordinates'],_0x55a14d[_0x223aff(0x14e)]];this[_0x223aff(0x13c)](_0x518905);}this[_0x223aff(0x16c)](new DrawEvent(DrawEventType['DRAWMOVING'],this['_sketchFeature'],this['_drawingCoordinates']));}[a47_0x51b7ec(0x148)](_0x11437c){const _0x29d9d7=a47_0x51b7ec;var _0x507478;let _0x467fe0=![],_0x1b8230=this['_drawingCoordinates'][_0x29d9d7(0x125)];if(_0x1b8230>this[_0x29d9d7(0x121)]&&this[_0x29d9d7(0x15c)]===Number[_0x29d9d7(0x143)]){const _0x19932d=this[_0x29d9d7(0x13d)][this[_0x29d9d7(0x13d)]['length']-0x1],_0x36036d=(_0x507478=this['getMap']())===null||_0x507478===void 0x0?void 0x0:_0x507478[_0x29d9d7(0x155)](_0x19932d),_0x31c671=_0x11437c[0x0]-(_0x36036d?_0x36036d[0x0]:0x0),_0x17b545=_0x11437c[0x1]-(_0x36036d?_0x36036d[0x1]:0x0);_0x467fe0=Math[_0x29d9d7(0x137)](_0x31c671*_0x31c671+_0x17b545*_0x17b545)<=this[_0x29d9d7(0x133)];}return _0x467fe0;}[a47_0x51b7ec(0x176)](_0x531eaf){const _0x22f078=a47_0x51b7ec;this[_0x22f078(0x183)]=!![],this[_0x22f078(0x13d)]=[_0x531eaf[_0x22f078(0x150)]()],this[_0x22f078(0x175)]=this[_0x22f078(0x16a)](),this[_0x22f078(0x168)](),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x22f078(0x162)],this['_sketchFeature'],this[_0x22f078(0x13d)]));}[a47_0x51b7ec(0x17c)](){const _0x46d2a3=a47_0x51b7ec;if(this[_0x46d2a3(0x13d)]['length']>this['_minPoints']){this[_0x46d2a3(0x13c)](this['_drawingCoordinates']);let _0x2a4ce5=this[_0x46d2a3(0x13d)];const _0x291f63=this[_0x46d2a3(0x12e)]();if(!_0x291f63)return;this[_0x46d2a3(0x16c)](new DrawEvent(DrawEventType['DRAWEND'],_0x291f63,_0x2a4ce5)),this[_0x46d2a3(0x14d)]&&this[_0x46d2a3(0x14d)][_0x46d2a3(0x17a)](_0x291f63),this[_0x46d2a3(0x182)]&&this['_source'][_0x46d2a3(0x177)](_0x291f63);}}[a47_0x51b7ec(0x16d)](_0xaaf3fa){const _0x3c61e0=a47_0x51b7ec;this[_0x3c61e0(0x13d)][_0x3c61e0(0x17a)](_0xaaf3fa),this[_0x3c61e0(0x175)]=this[_0x3c61e0(0x16a)](),this['updateSketchFeatures_']();}[a47_0x51b7ec(0x16a)](){const _0x384be2=a47_0x51b7ec,_0x136f03=new MultiPoint(this[_0x384be2(0x13d)]);let _0x15ebc9=new a47_0x506bc7();return _0x15ebc9[_0x384be2(0x16f)](_0x136f03),_0x15ebc9;}[a47_0x51b7ec(0x12e)](){const _0x275019=a47_0x51b7ec;var _0x2a7aa8,_0x376a2c;this[_0x275019(0x183)]=![];const _0x249012=this[_0x275019(0x175)];return this[_0x275019(0x175)]=undefined,this[_0x275019(0x13d)]=[],(_0x2a7aa8=this[_0x275019(0x139)][_0x275019(0x13a)]())===null||_0x2a7aa8===void 0x0?void 0x0:_0x2a7aa8[_0x275019(0x140)](!![]),(_0x376a2c=this[_0x275019(0x120)]['getSource']())===null||_0x376a2c===void 0x0?void 0x0:_0x376a2c[_0x275019(0x140)](!![]),_0x249012;}['abortDrawing'](){const _0x1ec8b8=a47_0x51b7ec,_0x44403f=this[_0x1ec8b8(0x12e)]();_0x44403f&&this[_0x1ec8b8(0x16c)](new DrawEvent(DrawEventType[_0x1ec8b8(0x179)],_0x44403f,this['_drawingCoordinates']));}['buildDrawingFeature'](_0x15ec24){const _0x32bb0f=a47_0x51b7ec;this[_0x32bb0f(0x175)]=new a47_0x506bc7();let _0x45062e=createPlot(this[_0x32bb0f(0x136)],_0x15ec24);if(!_0x45062e)return;this[_0x32bb0f(0x175)][_0x32bb0f(0x16f)](_0x45062e);let _0x2a9196=[a47_0x365f18['Circle'],a47_0x365f18[_0x32bb0f(0x141)],a47_0x365f18[_0x32bb0f(0x15d)]];if(_0x2a9196['indexOf'](this['_type'])>-0x1&&this[_0x32bb0f(0x129)]){}const _0x12ffed=this[_0x32bb0f(0x174)]();this['_sketchFeature'][_0x32bb0f(0x149)](getStyle(this['_type'],this[_0x32bb0f(0x129)],this[_0x32bb0f(0x174)]())),this['updateSketchFeatures_']();}[a47_0x51b7ec(0x168)](){const _0xad7ff1=a47_0x51b7ec,_0x39b15e=this[_0xad7ff1(0x139)][_0xad7ff1(0x13a)]();_0x39b15e&&this[_0xad7ff1(0x175)]&&(_0x39b15e[_0xad7ff1(0x140)](!![]),_0x39b15e['addFeature'](this[_0xad7ff1(0x175)]));}['revert'](){const _0x4d67dc=a47_0x51b7ec;if(this['_isStayDraw']){if(this[_0x4d67dc(0x13d)]&&this[_0x4d67dc(0x13d)][_0x4d67dc(0x125)]>0x0){const _0x1b5315=this['_overlay'][_0x4d67dc(0x13a)]();_0x1b5315===null||_0x1b5315===void 0x0?void 0x0:_0x1b5315[_0x4d67dc(0x140)](!![]),this[_0x4d67dc(0x13d)]['pop'](),this['_drawingCoordinates'][_0x4d67dc(0x125)]>=this[_0x4d67dc(0x121)]&&this[_0x4d67dc(0x13c)](this['_drawingCoordinates']),this['_drawingCoordinates'][_0x4d67dc(0x125)]===0x0&&(this[_0x4d67dc(0x183)]=![]);}}}[a47_0x51b7ec(0x135)](_0x29b07,_0x7fd7e4){const _0x54f99f=a47_0x51b7ec;var _0x1364aa,_0x2d6b00,_0x32c2b8,_0x359362;if(!this[_0x54f99f(0x152)])return;const _0x4a1619=this[_0x54f99f(0x120)]['getSource']();_0x4a1619===null||_0x4a1619===void 0x0?void 0x0:_0x4a1619[_0x54f99f(0x140)](!![]),(_0x1364aa=this['_tipFeature'])===null||_0x1364aa===void 0x0?void 0x0:_0x1364aa['setGeometry'](new Point(_0x29b07)),(_0x32c2b8=(_0x2d6b00=this[_0x54f99f(0x167)])===null||_0x2d6b00===void 0x0?void 0x0:_0x2d6b00[_0x54f99f(0x16e)]())===null||_0x32c2b8===void 0x0?void 0x0:_0x32c2b8[_0x54f99f(0x164)](_0x7fd7e4),(_0x359362=this[_0x54f99f(0x151)])===null||_0x359362===void 0x0?void 0x0:_0x359362[_0x54f99f(0x149)](this[_0x54f99f(0x167)]),this[_0x54f99f(0x151)]&&(_0x4a1619===null||_0x4a1619===void 0x0?void 0x0:_0x4a1619[_0x54f99f(0x177)](this[_0x54f99f(0x151)]));}}function getDefaultStyleFunction(){const _0x4810ec=createEditingStyle();return function(_0x18be2b,_0x290a8f){const _0x2a4592=a47_0x355a,_0x34fdab=_0x4810ec[_0x18be2b[_0x2a4592(0x15a)]()[_0x2a4592(0x169)]()];if(_0x34fdab&&_0x2a4592(0x154)==_0x18be2b[_0x2a4592(0x15a)]()['getType']()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a48_0x2359(){const _0x35ce99=['map','get','4832LtSpMf','95dSMOKj','getInteraction','removeAllInteractions','name','set','has','14hTvyhu','3727440FkhevB','7385060mfzbgV','362373PAYYOk','738768IEmvgo','19394606mMppRe','9ZyQiCX','forEach','delete','removeInteraction','addInteraction','13086Crlovh','interactions','1383hFGgHs'];a48_0x2359=function(){return _0x35ce99;};return a48_0x2359();}function a48_0x156d(_0x2aefe9,_0x78bf51){const _0x2359ea=a48_0x2359();return a48_0x156d=function(_0x156d18,_0xf32453){_0x156d18=_0x156d18-0x116;let _0xaa6b5b=_0x2359ea[_0x156d18];return _0xaa6b5b;},a48_0x156d(_0x2aefe9,_0x78bf51);}const a48_0x58f467=a48_0x156d;(function(_0x473552,_0x955962){const _0xe8cc7=a48_0x156d,_0x150cb8=_0x473552();while(!![]){try{const _0x260a6a=-parseInt(_0xe8cc7(0x11b))/0x1+-parseInt(_0xe8cc7(0x128))/0x2*(-parseInt(_0xe8cc7(0x125))/0x3)+-parseInt(_0xe8cc7(0x119))/0x4+-parseInt(_0xe8cc7(0x129))/0x5*(parseInt(_0xe8cc7(0x123))/0x6)+-parseInt(_0xe8cc7(0x118))/0x7*(parseInt(_0xe8cc7(0x11c))/0x8)+parseInt(_0xe8cc7(0x11e))/0x9*(-parseInt(_0xe8cc7(0x11a))/0xa)+parseInt(_0xe8cc7(0x11d))/0xb;if(_0x260a6a===_0x955962)break;else _0x150cb8['push'](_0x150cb8['shift']());}catch(_0x1a2238){_0x150cb8['push'](_0x150cb8['shift']());}}}(a48_0x2359,0x96e44));export default class InteractionManager{constructor(_0x4aa29d){const _0x1337ba=a48_0x156d;this[_0x1337ba(0x126)]=_0x4aa29d,this['interactions']=new Map();}[a48_0x58f467(0x122)](_0x3ffdb6,_0x34f782){const _0x13c696=a48_0x58f467;this[_0x13c696(0x124)][_0x13c696(0x117)](_0x3ffdb6)&&this[_0x13c696(0x121)](_0x3ffdb6),_0x34f782['set'](_0x13c696(0x12c),_0x3ffdb6),this['interactions'][_0x13c696(0x116)](_0x3ffdb6,_0x34f782),this[_0x13c696(0x126)][_0x13c696(0x122)](_0x34f782);}[a48_0x58f467(0x121)](_0xd68e7a){const _0x1e5d86=a48_0x58f467,_0x5421cf=this[_0x1e5d86(0x124)][_0x1e5d86(0x127)](_0xd68e7a);_0x5421cf&&(this[_0x1e5d86(0x126)][_0x1e5d86(0x121)](_0x5421cf),this[_0x1e5d86(0x124)][_0x1e5d86(0x120)](_0xd68e7a));}[a48_0x58f467(0x12b)](){const _0x4c4d20=a48_0x58f467;this[_0x4c4d20(0x124)][_0x4c4d20(0x11f)](_0x5df4e9=>{const _0x4b0b3e=_0x4c4d20;this[_0x4b0b3e(0x126)][_0x4b0b3e(0x121)](_0x5df4e9);}),this['interactions']['clear']();}[a48_0x58f467(0x12a)](_0x2bea78){const _0x36f7da=a48_0x58f467;return this[_0x36f7da(0x124)][_0x36f7da(0x127)](_0x2bea78);}}
|
package/interaction/Modify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a49_0x6c01(){var _0x589c21=['getCoordinates','add','refresh','editFeatures','rgba(255,255,255,0.6)','6311097rMXNhg','4103128HmZXju','7394mGbWzi','7OZNAgt','getGeometry','isSelected','602650wRXTvQ','remove','addInteraction','length','8008ErLndZ','getType','rgba(0,255,255,0.6)','954ZLwBdb','rgba(0,255,255,0.2)','LineString','sourceFeatures','getFeatures','translate','some','forEach','getMap','setMap','push','assign','828940CNHAig','removeInteraction','map','getId','filter','1060476UpeXIX','67gewszq','modifyInteraction'];a49_0x6c01=function(){return _0x589c21;};return a49_0x6c01();}var a49_0x30efa9=a49_0x19e2;(function(_0x2ba452,_0x163586){var _0x4b8efb=a49_0x19e2,_0x1bcee6=_0x2ba452();while(!![]){try{var _0x4203a8=parseInt(_0x4b8efb(0xa2))/0x1*(-parseInt(_0x4b8efb(0xab))/0x2)+-parseInt(_0x4b8efb(0xb6))/0x3*(parseInt(_0x4b8efb(0xb3))/0x4)+-parseInt(_0x4b8efb(0x9c))/0x5+parseInt(_0x4b8efb(0xa1))/0x6+-parseInt(_0x4b8efb(0xac))/0x7*(-parseInt(_0x4b8efb(0xaa))/0x8)+parseInt(_0x4b8efb(0xa9))/0x9+parseInt(_0x4b8efb(0xaf))/0xa;if(_0x4203a8===_0x163586)break;else _0x1bcee6['push'](_0x1bcee6['shift']());}catch(_0x99426d){_0x1bcee6['push'](_0x1bcee6['shift']());}}}(a49_0x6c01,0x61e74));import{Modify as a49_0x19fc1,Select,Translate as a49_0x3c36d4}from'ol/interaction';import a49_0x2ba44f from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';import{platformModifierKeyOnly}from'ol/events/condition';function a49_0x19e2(_0x522a97,_0x4425b5){var _0x6c013a=a49_0x6c01();return a49_0x19e2=function(_0x19e242,_0x90352e){_0x19e242=_0x19e242-0x93;var _0x42d0ac=_0x6c013a[_0x19e242];return _0x42d0ac;},a49_0x19e2(_0x522a97,_0x4425b5);}import{Style,Circle,Fill,Stroke}from'ol/style';const selectModifyStyle=new Style({'image':new Circle({'radius':0x5,'fill':new Fill({'color':'rgba(25,25,125,0.8)'}),'stroke':new Stroke({'color':a49_0x30efa9(0xa8),'width':0x2})}),'stroke':new Stroke({'color':a49_0x30efa9(0xb5),'width':0x2}),'fill':new Fill({'color':a49_0x30efa9(0xb7)}),'geometry':_0x1fa6fb=>{var _0x532d4f=a49_0x30efa9,_0x2b0c46,_0x4907e5,_0x458e69,_0x4af6e3,_0x1c1d88;let _0x46e838=[];if(((_0x2b0c46=_0x1fa6fb[_0x532d4f(0xad)]())===null||_0x2b0c46===void 0x0?void 0x0:_0x2b0c46[_0x532d4f(0xb4)]())==='Polygon')(_0x4907e5=_0x1fa6fb['getGeometry']())===null||_0x4907e5===void 0x0?void 0x0:_0x4907e5[_0x532d4f(0xa4)]()[0x0][_0x532d4f(0x97)](_0x72b51=>{var _0x4fd918=_0x532d4f;_0x46e838[_0x4fd918(0x9a)](_0x72b51);});else{if(((_0x458e69=_0x1fa6fb[_0x532d4f(0xad)]())===null||_0x458e69===void 0x0?void 0x0:_0x458e69[_0x532d4f(0xb4)]())==='MultiPolygon')_0x1fa6fb['getGeometry']()[_0x532d4f(0xa4)]()[0x0]['forEach'](_0x390f68=>{var _0xc4e0b1=_0x532d4f;_0x390f68[_0xc4e0b1(0x97)](_0x1080bf=>{_0x46e838['push'](_0x1080bf);}),_0x46e838[_0xc4e0b1(0x9a)](_0x390f68);});else((_0x4af6e3=_0x1fa6fb['getGeometry']())===null||_0x4af6e3===void 0x0?void 0x0:_0x4af6e3[_0x532d4f(0xb4)]())===_0x532d4f(0xb8)?_0x46e838=_0x1fa6fb[_0x532d4f(0xad)]()[_0x532d4f(0xa4)]():_0x46e838=[(_0x1c1d88=_0x1fa6fb[_0x532d4f(0xad)]())===null||_0x1c1d88===void 0x0?void 0x0:_0x1c1d88[_0x532d4f(0xa4)]()];}return new a49_0x2ba44f([_0x1fa6fb[_0x532d4f(0xad)](),new MultiPoint(_0x46e838)]);}});export default class Modify extends Select{constructor(_0x3e648b){var _0x3fffe4=a49_0x30efa9;_0x3e648b=_0x3e648b||{};const _0x471f9b=Object[_0x3fffe4(0x9b)]({},_0x3e648b);_0x471f9b['style']=selectModifyStyle,_0x471f9b[_0x3fffe4(0xa0)]=_0x235ade=>{var _0x32507a=_0x3fffe4;if(!_0x235ade[_0x32507a(0xae)])return![];if(this[_0x32507a(0x93)]==undefined||this[_0x32507a(0x93)][_0x32507a(0xb2)]==0x0)return![];return this[_0x32507a(0x93)][_0x32507a(0x96)](_0x40ffed=>_0x40ffed['getId']()===_0x235ade[_0x32507a(0x9f)]());},super(_0x471f9b),this[_0x3fffe4(0x9e)]=null,this[_0x3fffe4(0x93)]=_0x3e648b[_0x3fffe4(0xa7)],this[_0x3fffe4(0xa3)]=new a49_0x19fc1({'features':this[_0x3fffe4(0x94)]()}),this[_0x3fffe4(0x95)]=new a49_0x3c36d4({'features':this[_0x3fffe4(0x94)](),'condition':platformModifierKeyOnly}),this[_0x3fffe4(0x94)]()['on'](_0x3fffe4(0xa5),_0x5b0bae=>{var _0x30b41e=_0x3fffe4,_0xab29e8,_0xe57242;this[_0x30b41e(0x9e)]=this[_0x30b41e(0x98)](),(_0xab29e8=this['getMap']())===null||_0xab29e8===void 0x0?void 0x0:_0xab29e8[_0x30b41e(0xb1)](this[_0x30b41e(0xa3)]),(_0xe57242=this['getMap']())===null||_0xe57242===void 0x0?void 0x0:_0xe57242['addInteraction'](this[_0x30b41e(0x95)]);}),this[_0x3fffe4(0x94)]()['on'](_0x3fffe4(0xb0),_0xa58275=>{var _0x2f5b9e=_0x3fffe4,_0x45700d,_0x80f0d1;(_0x45700d=this[_0x2f5b9e(0x98)]())===null||_0x45700d===void 0x0?void 0x0:_0x45700d[_0x2f5b9e(0x9d)](this['modifyInteraction']),(_0x80f0d1=this[_0x2f5b9e(0x98)]())===null||_0x80f0d1===void 0x0?void 0x0:_0x80f0d1[_0x2f5b9e(0x9d)](this[_0x2f5b9e(0x95)]),this['getMap']()[_0x2f5b9e(0xa6)]();});}[a49_0x30efa9(0x99)](_0x14ae0f){var _0x4d4694=a49_0x30efa9;super[_0x4d4694(0x99)](_0x14ae0f),!_0x14ae0f&&this['map']&&(this[_0x4d4694(0x9e)][_0x4d4694(0x9d)](this[_0x4d4694(0xa3)]),this[_0x4d4694(0x9e)]['removeInteraction'](this['translate']));}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50_0x350f64=a50_0x424f;(function(_0x4466f6,_0x28d865){const _0x51c904=a50_0x424f,_0x3dd191=_0x4466f6();while(!![]){try{const _0x3c7fb8=-parseInt(_0x51c904(0xce))/0x1+parseInt(_0x51c904(0xc3))/0x2+parseInt(_0x51c904(0xe3))/0x3*(-parseInt(_0x51c904(0xf0))/0x4)+-parseInt(_0x51c904(0xde))/0x5*(-parseInt(_0x51c904(0xb9))/0x6)+parseInt(_0x51c904(0xc4))/0x7+parseInt(_0x51c904(0xe5))/0x8+-parseInt(_0x51c904(0xab))/0x9;if(_0x3c7fb8===_0x28d865)break;else _0x3dd191['push'](_0x3dd191['shift']());}catch(_0x1cb2ca){_0x3dd191['push'](_0x3dd191['shift']());}}}(a50_0x225c,0xd3404));import a50_0x384d63 from'./Draw';import a50_0x3a7285 from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x4b68f4 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';function a50_0x424f(_0x286033,_0xfc65fd){const _0x225c56=a50_0x225c();return a50_0x424f=function(_0x424ff3,_0x6248b0){_0x424ff3=_0x424ff3-0xa1;let _0x235ad6=_0x225c56[_0x424ff3];return _0x235ad6;},a50_0x424f(_0x286033,_0xfc65fd);}import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'SELECTSTART':a50_0x350f64(0xd7),'SELECTED':'selected'};export class SelectEvent extends a50_0x3a7285{constructor(_0x3ea602,_0x4c57cd,_0x192a93,_0x4c15a2,_0x125d70,_0x21a5bb,_0x1fadf2,_0x13bf98,_0x4be979){const _0x4639ab=a50_0x350f64;super(_0x3ea602),this[_0x4639ab(0xf3)]=_0x192a93,this[_0x4639ab(0xee)]=_0x4c15a2,this['pointFeatures']=_0x125d70,this[_0x4639ab(0xaa)]=_0x21a5bb,this[_0x4639ab(0xa6)]=_0x1fadf2,this[_0x4639ab(0xc9)]=_0x13bf98,this[_0x4639ab(0xc7)]=_0x4be979,this[_0x4639ab(0xaf)]=_0x4c57cd;}}export default class Select extends a50_0x384d63{constructor(_0x5ac33a,_0x1e3073){const _0x1868b8=a50_0x350f64;super(_0x5ac33a,{'tipText':_0x1e3073===null||_0x1e3073===void 0x0?void 0x0:_0x1e3073[_0x1868b8(0xcb)]}),this[_0x1868b8(0xdf)]=[],this[_0x1868b8(0xac)]=[],this[_0x1868b8(0xe2)]=[],this[_0x1868b8(0xca)]=[];const _0x4b7b66=_0x1e3073||{};this[_0x1868b8(0xd6)]=_0x4b7b66['addTempLayer']||![],this[_0x1868b8(0xdc)]=_0x4b7b66[_0x1868b8(0xe7)],this['selectTempLayer']=_0x4b7b66[_0x1868b8(0xc1)]===undefined?!![]:_0x4b7b66[_0x1868b8(0xc1)],this[_0x1868b8(0xba)]=_0x4b7b66[_0x1868b8(0xba)]===undefined?0x5:_0x4b7b66[_0x1868b8(0xba)],this[_0x1868b8(0xb0)]=_0x4b7b66['pointStyle']?getStyle(_0x4b7b66['pointStyle']):getSelectPointStyle(),this['cancePointStyle']=_0x4b7b66[_0x1868b8(0xf2)]?getStyle(_0x4b7b66[_0x1868b8(0xf2)]):getSelectCancePointStyle(),this[_0x1868b8(0xe0)]=_0x4b7b66[_0x1868b8(0xe0)]?getStyle(_0x4b7b66[_0x1868b8(0xe0)]):getSelectLineStyle(),this[_0x1868b8(0xdd)]=_0x4b7b66['canceLineStyle']?getStyle(_0x4b7b66[_0x1868b8(0xdd)]):getSelectCancelLineStyle(),this['polygonStyle']=_0x4b7b66[_0x1868b8(0xf4)]?getStyle(_0x4b7b66[_0x1868b8(0xf4)]):getSelectPolygonStyle(),this[_0x1868b8(0xb1)]=_0x4b7b66[_0x1868b8(0xb1)]?getStyle(_0x4b7b66[_0x1868b8(0xb1)]):getSelectCancelPolygonStyle(),this[_0x1868b8(0xaf)]=![];let _0x5b1f21;this['on']=this[_0x1868b8(0xb7)],this['on'](_0x1868b8(0xa1),async _0x453808=>{const _0x5e3da8=_0x1868b8,_0x86ff13=this[_0x5e3da8(0xaf)],_0x3a400e=this[_0x5e3da8(0xd2)]();if(!_0x3a400e)return;try{let _0xaabd02=undefined;if(!_0x453808[_0x5e3da8(0xad)]&&_0x453808[_0x5e3da8(0xee)]&&_0x453808[_0x5e3da8(0xee)][_0x5e3da8(0xb5)]==0x1)_0xaabd02=bufferPixel(new Point(_0x453808[_0x5e3da8(0xee)][0x0]),this[_0x5e3da8(0xba)],_0x3a400e);else _0x453808[_0x5e3da8(0xad)]&&(_0xaabd02=_0x453808[_0x5e3da8(0xad)][_0x5e3da8(0xef)]());if(!_0xaabd02)throw new Error(_0x5e3da8(0xd4));this['dispatchEvent'](new SelectEvent(SelectEventType['SELECTSTART'],_0x86ff13,_0xaabd02)),this[_0x5e3da8(0xdf)]=[],this['selectedLineFeatures']=[],this[_0x5e3da8(0xe2)]=[],this['allSelectedFeatures']=[],this['selectTempLayer']&&this[_0x5e3da8(0xa2)](_0xaabd02),_0x5b1f21&&clearTimeout(_0x5b1f21),_0x5b1f21=setTimeout(async()=>{const _0x269168=_0x5e3da8;await this['selectLayer'](_0xaabd02),this['dispatchEvent'](new SelectEvent(SelectEventType[_0x269168(0xb4)],_0x86ff13,_0xaabd02,_0x453808['coordinates'],this[_0x269168(0xdf)],this[_0x269168(0xac)],this['selectedPolygonFeatures'],this['allSelectedFeatures']));},0x46);}catch(_0x1464e2){this[_0x5e3da8(0xd1)](new SelectEvent(SelectEventType[_0x5e3da8(0xb4)],_0x86ff13,undefined,_0x453808[_0x5e3da8(0xee)],this['selectedPointFeatures'],this['selectedLineFeatures'],this[_0x5e3da8(0xe2)],this[_0x5e3da8(0xca)],_0x1464e2[_0x5e3da8(0xae)]));}}),window[_0x1868b8(0xcc)](_0x1868b8(0xda),_0x37ff82=>{const _0xef873b=_0x1868b8;_0x37ff82[_0xef873b(0xe1)]&&(this[_0xef873b(0xaf)]=!![]);}),window['addEventListener']('keyup',_0x208323=>{const _0x5b3ec7=_0x1868b8;this[_0x5b3ec7(0xaf)]=![];});}[a50_0x350f64(0xa8)](_0x3db037){this['currentLayers']=_0x3db037;}async[a50_0x350f64(0xf1)](_0x8d8a53){const _0x20e7df=a50_0x350f64;var _0x404fb4;const _0x28a3d1=this['getMap']();let _0x16c183=[];if(this[_0x20e7df(0xdc)]&&this[_0x20e7df(0xdc)][_0x20e7df(0xb5)]>0x0)_0x16c183=this[_0x20e7df(0xdc)];else{let _0x2ae1a9=_0x28a3d1[_0x20e7df(0xe8)]()['getArray']();_0x2ae1a9=_0x2ae1a9[_0x20e7df(0xbd)](_0x50c5da=>{const _0x2e76d1=_0x20e7df,_0x448207=_0x50c5da[_0x2e76d1(0xb6)];if(!_0x448207)return![];return _0x50c5da[_0x2e76d1(0xc6)]()==!![]&&_0x448207['selectIndex']!=undefined&&_0x448207[_0x2e76d1(0xe4)]!='';}),_0x16c183=_0x2ae1a9[_0x20e7df(0xed)](_0x104927=>{return _0x104927['layerInfo'];});}if(!_0x16c183||_0x16c183[_0x20e7df(0xb5)]==0x0)return;const _0x57579c=_0x28a3d1['getView']()[_0x20e7df(0xd5)]()[_0x20e7df(0xcf)](),_0x1e88fa=_0x28a3d1[_0x20e7df(0xd8)]()[_0x20e7df(0xa7)]();for(let _0x48d92e=0x0,_0x5881ee=_0x16c183[_0x20e7df(0xb5)];_0x48d92e<_0x5881ee;_0x48d92e++){const _0x17b605=_0x16c183[_0x48d92e],_0x22806=_0x28a3d1[_0x20e7df(0xc8)](_0x17b605['id']);if(!_0x22806||_0x22806['getVisible']()==![]||!_0x17b605||!_0x17b605[_0x20e7df(0xb3)]||!_0x17b605[_0x20e7df(0xe4)])continue;let _0x4cf975=await selectFeaturesByGeo(_0x8d8a53,_0x57579c,_0x17b605[_0x20e7df(0xb3)],_0x17b605['selectIndex'],_0x17b605['layerType'],_0x17b605[_0x20e7df(0xc0)],_0x1e88fa);if(_0x4cf975[_0x20e7df(0xb5)]>0x0){this[_0x20e7df(0xca)][_0x20e7df(0xa5)](..._0x4cf975);let _0x1de192=_0x28a3d1[_0x20e7df(0xec)](),_0x1f875e=this['polygonStyle'];switch((_0x404fb4=_0x4cf975[0x0][_0x20e7df(0xef)]())===null||_0x404fb4===void 0x0?void 0x0:_0x404fb4['getType']()){case _0x20e7df(0xbe):case _0x20e7df(0xa9):this['selectedPointFeatures'][_0x20e7df(0xa5)](..._0x4cf975),_0x1de192=_0x28a3d1[_0x20e7df(0xb2)](),_0x1f875e=this[_0x20e7df(0xb0)];break;case _0x20e7df(0xd0):case _0x20e7df(0xbb):this[_0x20e7df(0xac)][_0x20e7df(0xa5)](..._0x4cf975),_0x1de192=_0x28a3d1[_0x20e7df(0xc2)](),_0x1f875e=this[_0x20e7df(0xe0)];break;case _0x20e7df(0xe6):case _0x20e7df(0xa4):this[_0x20e7df(0xe2)]['push'](..._0x4cf975),_0x1de192=_0x28a3d1[_0x20e7df(0xec)](),_0x1f875e=this[_0x20e7df(0xf4)];break;default:break;}const _0x26eb7f=_0x1de192[_0x20e7df(0xe9)]();_0x26eb7f&&(_0x4cf975[_0x20e7df(0xbc)](_0x5b59f7=>{const _0xf09e6=_0x20e7df;_0x5b59f7[_0xf09e6(0xeb)]=_0x17b605['id'],_0x5b59f7[_0xf09e6(0xcd)]=_0x1de192,_0x5b59f7[_0xf09e6(0xbf)](_0x1f875e);}),this[_0x20e7df(0xd6)]&&_0x26eb7f['addFeatures'](_0x4cf975));}}}[a50_0x350f64(0xa2)](_0x4dd54e){const _0x1aa33d=a50_0x350f64,_0x5ef750=new a50_0x4b68f4(this[_0x1aa33d(0xd2)]()),_0x2d2044=_0x5ef750[_0x1aa33d(0xb8)]();if(!_0x2d2044||_0x2d2044[_0x1aa33d(0xb5)]===0x0)return[];const _0x4e5496=[_0x1aa33d(0xea),'cut',_0x1aa33d(0xc5),_0x1aa33d(0xa3),'union'],_0x5cb39e=[];for(const _0x35ab48 of _0x2d2044){if(!_0x35ab48||!_0x35ab48['fromType']||!_0x4e5496[_0x1aa33d(0xd9)](_0x35ab48[_0x1aa33d(0xd3)]))continue;const _0x2564bd=_0x35ab48[_0x1aa33d(0xef)]();if(!_0x2564bd)continue;if(!intersects(_0x2564bd,_0x4dd54e))continue;let _0x1b3ab8=this[_0x1aa33d(0xf4)];this['allSelectedFeatures']['push'](_0x35ab48);switch(_0x2564bd[_0x1aa33d(0xdb)]()){case'Point':case _0x1aa33d(0xa9):this[_0x1aa33d(0xdf)][_0x1aa33d(0xa5)](_0x35ab48),_0x1b3ab8=this[_0x1aa33d(0xb0)];break;case'LineString':case _0x1aa33d(0xbb):this[_0x1aa33d(0xac)][_0x1aa33d(0xa5)](_0x35ab48),_0x1b3ab8=this[_0x1aa33d(0xe0)];break;case _0x1aa33d(0xe6):case _0x1aa33d(0xa4):this['selectedPolygonFeatures']['push'](_0x35ab48),_0x1b3ab8=this[_0x1aa33d(0xf4)];break;default:break;}_0x35ab48['setStyle'](_0x1b3ab8);}return _0x5cb39e;}}function a50_0x225c(){const _0x40a077=['LineString','dispatchEvent','getMap','fromType','未获取到几何','getProjection','addTempLayer','selectStart','getView','includes','keydown','getType','currentLayers','canceLineStyle','156235KQHYVZ','selectedPointFeatures','lineStyle','ctrlKey','selectedPolygonFeatures','51777CQtlDt','selectIndex','268672xzEdHS','Polygon','selectLayers','getLayers','getSource','copy','layerId','getPolygonTempLayer','map','coordinates','getGeometry','92BNUFTp','selectLayer','cancePointStyle','selectGeom','polygonStyle','drawEnd','seletctEditeFeature','import','MultiPolygon','push','polygonFeatures','getResolution','setSelectLayers','MultiPoint','lineFeatures','3334509PSJVwM','selectedLineFeatures','feature','message','holdCtrl','pointStyle','cancePolygonStyle','getPointTempLayer','url','SELECTED','length','layerInfo','onInternal','getSelectedFeatures','186wEExoh','pixelDistance','MultiLineString','forEach','filter','Point','setStyle','loadFilter','selectTempLayer','getLineTempLayer','2347486TVBttA','4422327hNqTVG','draw','getVisible','error','getLayerById','allFeatures','allSelectedFeatures','tipText','addEventListener','tempLayer','1175003TspddQ','getCode'];a50_0x225c=function(){return _0x40a077;};return a50_0x225c();}
|
package/interaction/Split.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x33d98f=a51_0x510f;(function(_0x433d75,_0x56dcbf){const _0x39ec6c=a51_0x510f,_0x308bc7=_0x433d75();while(!![]){try{const _0x38ff9b=-parseInt(_0x39ec6c(0x174))/0x1*(-parseInt(_0x39ec6c(0x18e))/0x2)+-parseInt(_0x39ec6c(0x190))/0x3+parseInt(_0x39ec6c(0x18f))/0x4*(parseInt(_0x39ec6c(0x176))/0x5)+parseInt(_0x39ec6c(0x179))/0x6+parseInt(_0x39ec6c(0x182))/0x7+-parseInt(_0x39ec6c(0x17a))/0x8*(-parseInt(_0x39ec6c(0x197))/0x9)+-parseInt(_0x39ec6c(0x19a))/0xa*(parseInt(_0x39ec6c(0x177))/0xb);if(_0x38ff9b===_0x56dcbf)break;else _0x308bc7['push'](_0x308bc7['shift']());}catch(_0x138897){_0x308bc7['push'](_0x308bc7['shift']());}}}(a51_0x54cc,0x71970));function a51_0x510f(_0x183244,_0x19416c){const _0x54cc94=a51_0x54cc();return a51_0x510f=function(_0x510f8e,_0x5bd71c){_0x510f8e=_0x510f8e-0x171;let _0x213128=_0x54cc94[_0x510f8e];return _0x213128;},a51_0x510f(_0x183244,_0x19416c);}import a51_0x2ec1c4 from'./Draw';import a51_0x40eece from'ol/events/Event';import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';function a51_0x54cc(){const _0x269073=['splitFeatures','length','fromType','error','237206vAyPSl','12436QPqhIh','2754852YTruZl','splitStart','dispatchEvent','setGeometry','未获取到绘制的分割线','getGeometry','onInternal','990pyHEdQ','SPLITSTART','addTempLayer','90PNkHfC','tempLayer','getMap','clone','polyline','getSource','1tmZXFZ','SPLITED','640RBeRBl','1306811EogyWg','sourceFeatures','2839200dWXbMA','41512icYIFw','tipText','未获取到地图对象','setFeatures','push','layerId','cut','addFeature','6245484BluPRa','rgba(255,\x200,\x200,\x201)','splitLineStyle','drawEnd','splited','splitLine','features','message'];a51_0x54cc=function(){return _0x269073;};return a51_0x54cc();}import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':a51_0x33d98f(0x191),'SPLITED':a51_0x33d98f(0x186)};export class SplitEvent extends a51_0x40eece{constructor(_0xa2d524,_0x4e4919,_0x365c67,_0x8c0627){const _0x43d7b2=a51_0x33d98f;super(_0xa2d524),this[_0x43d7b2(0x187)]=_0x4e4919,this[_0x43d7b2(0x188)]=_0x365c67,this[_0x43d7b2(0x18d)]=_0x8c0627;}}export default class Split extends a51_0x2ec1c4{constructor(_0x48c6b0,_0x360f32){const _0x2051b4=a51_0x33d98f,_0x25bd75=(_0x360f32===null||_0x360f32===void 0x0?void 0x0:_0x360f32[_0x2051b4(0x184)])||{'outlineColor':_0x2051b4(0x183),'outlineWidth':0x2};super(_0x2051b4(0x172),{'tipText':_0x360f32===null||_0x360f32===void 0x0?void 0x0:_0x360f32[_0x2051b4(0x17b)],'style':_0x25bd75}),this[_0x2051b4(0x178)]=_0x48c6b0;const _0x4d0d5b=_0x360f32||{};this[_0x2051b4(0x199)]=_0x4d0d5b[_0x2051b4(0x199)]||![],this['on']=this[_0x2051b4(0x196)],this['on'](_0x2051b4(0x185),async _0xf2c125=>{const _0x4bb526=_0x2051b4;var _0x513018;const _0x4bd400=this[_0x4bb526(0x19c)]();let _0x237064=(_0x513018=_0xf2c125['feature'])===null||_0x513018===void 0x0?void 0x0:_0x513018[_0x4bb526(0x195)]();!_0x237064&&this[_0x4bb526(0x192)](new SplitEvent(SplitEventType[_0x4bb526(0x175)],undefined,undefined,_0x4bb526(0x194)));let _0x226d56=_0x237064;!_0x4bd400&&this[_0x4bb526(0x192)](new SplitEvent(SplitEventType['SPLITED'],_0x226d56,undefined,_0x4bb526(0x17c)));(!this['sourceFeatures']||this['sourceFeatures'][_0x4bb526(0x18b)]===0x0)&&this['dispatchEvent'](new SplitEvent(SplitEventType[_0x4bb526(0x175)],_0x226d56,undefined,'未获取到分割要素'));try{this[_0x4bb526(0x192)](new SplitEvent(SplitEventType[_0x4bb526(0x198)],_0x226d56));const _0x45fb61=this[_0x4bb526(0x18a)](_0x226d56);this[_0x4bb526(0x192)](new SplitEvent(SplitEventType[_0x4bb526(0x175)],_0x226d56,_0x45fb61));}catch(_0x29122f){this[_0x4bb526(0x192)](new SplitEvent(SplitEventType['SPLITED'],_0x226d56,undefined,_0x29122f[_0x4bb526(0x189)]));}});}[a51_0x33d98f(0x18a)](_0x3b6344){const _0x492fa2=a51_0x33d98f;var _0x484e0d;const _0x23a8c3=[],_0x21f665=(_0x484e0d=this[_0x492fa2(0x178)][0x0][_0x492fa2(0x19b)])===null||_0x484e0d===void 0x0?void 0x0:_0x484e0d[_0x492fa2(0x173)]();for(let _0x29c15c=0x0;_0x29c15c<this[_0x492fa2(0x178)][_0x492fa2(0x18b)];_0x29c15c++){const _0x480cdb=this[_0x492fa2(0x178)][_0x29c15c],_0x93d649=_0x480cdb[_0x492fa2(0x195)]();let _0x3365d1=[];if(_0x93d649 instanceof Polygon||_0x93d649 instanceof MultiPolygon)_0x3365d1=jstlSplit(_0x93d649,_0x3b6344);else(_0x93d649 instanceof LineString||_0x93d649 instanceof MultiLineString)&&(_0x3365d1=splitLineByLine(_0x93d649,_0x3b6344));if(_0x3365d1[_0x492fa2(0x18b)]>0x1){_0x480cdb[_0x492fa2(0x193)](_0x3365d1[0x0]),_0x23a8c3[_0x492fa2(0x17e)](_0x480cdb);for(let _0x5f1691=0x1;_0x5f1691<_0x3365d1[_0x492fa2(0x18b)];_0x5f1691++){const _0x22416f=_0x480cdb[_0x492fa2(0x171)]();_0x22416f[_0x492fa2(0x17f)]=undefined,_0x22416f[_0x492fa2(0x18c)]=_0x492fa2(0x180),_0x22416f[_0x492fa2(0x19b)]=_0x480cdb[_0x492fa2(0x19b)],_0x22416f['setGeometry'](_0x3365d1[_0x5f1691]),this[_0x492fa2(0x199)]&&(_0x21f665===null||_0x21f665===void 0x0?void 0x0:_0x21f665[_0x492fa2(0x181)](_0x22416f)),_0x23a8c3[_0x492fa2(0x17e)](_0x22416f);}}}return _0x23a8c3;}[a51_0x33d98f(0x17d)](_0x4e20c2){const _0x5008a9=a51_0x33d98f;this[_0x5008a9(0x178)]=_0x4e20c2;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a52_0x79dd(){const _0x3ea492=['xmax','layerInfo','2owKcgy','xmin','opacity','selectIndex','13223VwIHdO','9882747KBLAzP','17865ZrByaS','url','540SWLjqT','spatialReference','initialExtent','40SblLfT','show:','2073291YAJTGi','66116592ARIENh','anonymous','EPSG:','loadFilter','setFilter','stringify','6128uecYaE','40975onxzgD','mapIndex','ymax','fullExtent','layerDefs','123619lcaCba','520frIiqm'];a52_0x79dd=function(){return _0x3ea492;};return a52_0x79dd();}function a52_0x17fe(_0x2e7d1b,_0x9e5834){const _0x79ddf=a52_0x79dd();return a52_0x17fe=function(_0x17fe58,_0x3d4061){_0x17fe58=_0x17fe58-0x132;let _0x16071e=_0x79ddf[_0x17fe58];return _0x16071e;},a52_0x17fe(_0x2e7d1b,_0x9e5834);}const a52_0x10ee40=a52_0x17fe;(function(_0x1003fa,_0x44fb42){const _0x3eeed5=a52_0x17fe,_0x1f6d46=_0x1003fa();while(!![]){try{const _0x42cadc=parseInt(_0x3eeed5(0x142))/0x1*(parseInt(_0x3eeed5(0x146))/0x2)+-parseInt(_0x3eeed5(0x14c))/0x3*(parseInt(_0x3eeed5(0x143))/0x4)+parseInt(_0x3eeed5(0x13d))/0x5*(-parseInt(_0x3eeed5(0x14e))/0x6)+parseInt(_0x3eeed5(0x14a))/0x7*(-parseInt(_0x3eeed5(0x13c))/0x8)+-parseInt(_0x3eeed5(0x14b))/0x9+parseInt(_0x3eeed5(0x133))/0xa*(-parseInt(_0x3eeed5(0x135))/0xb)+parseInt(_0x3eeed5(0x136))/0xc;if(_0x42cadc===_0x44fb42)break;else _0x1f6d46['push'](_0x1f6d46['shift']());}catch(_0x165583){_0x1f6d46['push'](_0x1f6d46['shift']());}}}(a52_0x79dd,0xc8d7e));import a52_0x165a73 from'ol/source/ImageArcGISRest';import{Image as a52_0x5de75c}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a52_0x5de75c{constructor(_0xbbc169,_0x54cdbd){const _0x4a1555=a52_0x17fe;var _0x32c3a8;let _0x5bb8f5={'LAYERS':_0x4a1555(0x134)+((_0x32c3a8=_0xbbc169['sublayers'])===null||_0x32c3a8===void 0x0?void 0x0:_0x32c3a8['join'](','))};if(_0xbbc169[_0x4a1555(0x139)]&&_0xbbc169[_0x4a1555(0x149)]){const _0x14d3c8={};_0x14d3c8[_0xbbc169[_0x4a1555(0x149)]]=_0xbbc169['loadFilter'],_0x5bb8f5[_0x4a1555(0x141)]=JSON[_0x4a1555(0x13b)](_0x14d3c8);}const _0x1bd4dc=[_0x54cdbd[_0x4a1555(0x132)]['xmin'],_0x54cdbd['initialExtent']['ymin'],_0x54cdbd[_0x4a1555(0x132)][_0x4a1555(0x144)],_0x54cdbd['initialExtent'][_0x4a1555(0x13f)]],_0x369363=[_0x54cdbd[_0x4a1555(0x140)][_0x4a1555(0x147)],_0x54cdbd['fullExtent']['ymin'],_0x54cdbd[_0x4a1555(0x140)][_0x4a1555(0x144)],_0x54cdbd['fullExtent'][_0x4a1555(0x13f)]];let _0xa0e9b4;_0x54cdbd['spatialReference']['wkid']?_0xa0e9b4=registerProj(_0x4a1555(0x138)+_0x54cdbd[_0x4a1555(0x14f)]['wkid'],_0x369363):_0xa0e9b4=registerProj(_0x54cdbd[_0x4a1555(0x14f)]['wkt'],_0x369363),super({'opacity':_0xbbc169[_0x4a1555(0x148)],'zIndex':_0xbbc169[_0x4a1555(0x13e)],'source':new a52_0x165a73({'crossOrigin':_0x4a1555(0x137),'projection':_0xa0e9b4,'ratio':0x1,'url':_0xbbc169[_0x4a1555(0x14d)],'params':_0x5bb8f5})}),this['id']=_0xbbc169['id'],this[_0x4a1555(0x132)]=_0x1bd4dc,this['projection']=_0xa0e9b4,this[_0x4a1555(0x145)]=_0xbbc169;}[a52_0x10ee40(0x13a)](_0x573433){const _0x15a96f=a52_0x10ee40;var _0x3dbbef;const _0x1dd9a3={};this[_0x15a96f(0x145)][_0x15a96f(0x149)]&&(_0x1dd9a3[this['layerInfo'][_0x15a96f(0x149)]]=_0x573433),(_0x3dbbef=this['getSource']())===null||_0x3dbbef===void 0x0?void 0x0:_0x3dbbef['updateParams']({'layerDefs':JSON[_0x15a96f(0x13b)](_0x573433)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x214cf9=a53_0x50fd;(function(_0x391d5f,_0x22f8b2){const _0x30bf96=a53_0x50fd,_0x24cfb3=_0x391d5f();while(!![]){try{const _0x568a1f=-parseInt(_0x30bf96(0xa8))/0x1+-parseInt(_0x30bf96(0xa6))/0x2*(parseInt(_0x30bf96(0xcd))/0x3)+parseInt(_0x30bf96(0xb5))/0x4*(-parseInt(_0x30bf96(0xcf))/0x5)+parseInt(_0x30bf96(0xc7))/0x6*(-parseInt(_0x30bf96(0xad))/0x7)+-parseInt(_0x30bf96(0x9e))/0x8+parseInt(_0x30bf96(0xa9))/0x9*(-parseInt(_0x30bf96(0x98))/0xa)+-parseInt(_0x30bf96(0xb1))/0xb*(-parseInt(_0x30bf96(0xae))/0xc);if(_0x568a1f===_0x22f8b2)break;else _0x24cfb3['push'](_0x24cfb3['shift']());}catch(_0x1b115f){_0x24cfb3['push'](_0x24cfb3['shift']());}}}(a53_0x3419,0xc0773));import a53_0x2b35ec from'ol/format/EsriJSON';import a53_0x194797 from'ol/source/Vector';import{Vector as a53_0x132632}from'ol/layer';function a53_0x50fd(_0x42c984,_0x5801b3){const _0x3419bd=a53_0x3419();return a53_0x50fd=function(_0x50fd74,_0x3c25f0){_0x50fd74=_0x50fd74-0x95;let _0x5390e6=_0x3419bd[_0x50fd74];return _0x5390e6;},a53_0x50fd(_0x42c984,_0x5801b3);}import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x3132bf}from'ol/loadingstrategy';import a53_0x12c9c1 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';function a53_0x3419(){const _0x2e9c16=[',\x22xmax\x22:','uniqueValue','renderer','simple','find','wkt','setStyle','2736oZDXzI','readFeatures','spatialReference','&outFields=*','string','value','244302grBYRa','log','41645GqfLzE','defaultSymbol',',\x22ymin\x22:','&geometryType=esriGeometryEnvelope&inSR=','initialExtent','push','186170jmOznS','split','showIndex','forEach','length','setFilter','3813608qLlRLr','where=','field1',',\x22ymax\x22:','getCode','uniqueValueInfos','ymax',',\x22spatialReference\x22:{\x22wkid\x22:','10LMcuXf','symbol','1472040fflpRf','135ZQWrtU','addFeatures','drawingInfo','mapIndex','12460AwgjbB','22668GgErEI','/query','setLayers','32956KsEQWY','xmin','url','xmax','684pELHBM','fullExtent','type','error','&outSR=','{\x22xmin\x22:','loadFilter','get','createArcGISFeatureLayer','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','wkid'];a53_0x3419=function(){return _0x2e9c16;};return a53_0x3419();}import a53_0x3515e2 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x12c9c1{constructor(_0x41bbfa,_0x27825c,_0x77e801){const _0x288687=a53_0x50fd,_0x5bdbbf=[_0x27825c[_0x288687(0x96)]['xmin'],_0x27825c[_0x288687(0x96)]['ymin'],_0x27825c[_0x288687(0x96)][_0x288687(0xb4)],_0x27825c['initialExtent'][_0x288687(0xa4)]],_0x2ea1ad=[_0x27825c[_0x288687(0xb6)][_0x288687(0xb2)],_0x27825c['fullExtent']['ymin'],_0x27825c[_0x288687(0xb6)][_0x288687(0xb4)],_0x27825c[_0x288687(0xb6)][_0x288687(0xa4)]];let _0x240efc;_0x27825c[_0x288687(0xc9)][_0x288687(0xbf)]?_0x240efc=registerProj('EPSG:'+_0x27825c['spatialReference'][_0x288687(0xbf)],_0x2ea1ad):_0x240efc=registerProj(_0x27825c[_0x288687(0xc9)][_0x288687(0xc5)],_0x2ea1ad);let _0x4df139=[];super({'zIndex':_0x41bbfa[_0x288687(0xac)]});for(let _0x3d99ad of _0x77e801){let _0x9b982a=this[_0x288687(0xbd)](_0x41bbfa,_0x3d99ad);_0x4df139[_0x288687(0x97)](_0x9b982a);}this[_0x288687(0xb0)](new a53_0x3515e2(_0x4df139)),this['id']=_0x41bbfa['id'],this[_0x288687(0x96)]=_0x5bdbbf,this['projection']=_0x240efc,this['layerInfo']=_0x41bbfa;}[a53_0x214cf9(0xbd)](_0x487fab,_0x44c77f){const _0x428e04=a53_0x214cf9;var _0x3e8245=new a53_0x2b35ec();let _0x23f61f=new a53_0x194797({'loader':function(_0x5dbcf0,_0x57b519,_0x2716a2){const _0x40fe22=a53_0x50fd;let _0x5ea8fc='1=1';_0x487fab[_0x40fe22(0xbb)]&&(_0x5ea8fc=typeof _0x487fab[_0x40fe22(0xbb)]===_0x40fe22(0xcb)?_0x487fab[_0x40fe22(0xbb)]:JSON['stringify'](_0x487fab[_0x40fe22(0xbb)]));let _0x5646eb=_0x2716a2[_0x40fe22(0xa2)](),_0x448a55=_0x5646eb[_0x40fe22(0x99)](':')[0x1];var _0x10806e=appendPath(_0x44c77f[_0x40fe22(0xb3)],_0x40fe22(0xaf));_0x10806e=appendParam(_0x10806e,'f\x20=\x20json\x20&\x20'+_0x40fe22(0x9f)+encodeURIComponent(_0x5ea8fc)+_0x40fe22(0xbe)+encodeURIComponent(_0x40fe22(0xba)+_0x5dbcf0[0x0]+_0x40fe22(0xd1)+_0x5dbcf0[0x1]+_0x40fe22(0xc0)+_0x5dbcf0[0x2]+_0x40fe22(0xa1)+_0x5dbcf0[0x3]+_0x40fe22(0xa5)+_0x448a55+'}}')+_0x40fe22(0x95)+_0x448a55+_0x40fe22(0xca)+_0x40fe22(0xb9)+_0x448a55),jsonp(_0x10806e)['then'](_0x262401=>{const _0x550f77=_0x40fe22;if(_0x262401[_0x550f77(0xb8)])console[_0x550f77(0xce)](_0x262401);else{var _0x127ff1=_0x3e8245[_0x550f77(0xc8)](_0x262401,{'featureProjection':_0x2716a2});_0x127ff1[_0x550f77(0x9c)]>0x0&&(_0x44c77f[_0x550f77(0xab)][_0x550f77(0xc2)]['type']==_0x550f77(0xc1)&&_0x127ff1[_0x550f77(0x9b)](function(_0x16cb8f){const _0xa0960=_0x550f77;var _0xe59c99=_0x16cb8f[_0xa0960(0xbc)](_0x44c77f[_0xa0960(0xab)][_0xa0960(0xc2)][_0xa0960(0xa0)]);const _0x4c6a46=_0x44c77f[_0xa0960(0xab)][_0xa0960(0xc2)][_0xa0960(0xa3)][_0xa0960(0xc4)](_0x1503f1=>_0x1503f1[_0xa0960(0xcc)]==_0xe59c99);let _0x3510b4;_0x4c6a46?_0x3510b4=transformedEsriStyle(_0x4c6a46[_0xa0960(0xa7)]):_0x3510b4=transformedEsriStyle(_0x44c77f['drawingInfo'][_0xa0960(0xc2)][_0xa0960(0xd0)]),_0x16cb8f[_0xa0960(0xc6)](_0x3510b4);}),_0x23f61f[_0x550f77(0xaa)](_0x127ff1));}});},'strategy':a53_0x3132bf(createXYZ({'tileSize':0x200}))}),_0x18a30a=new a53_0x132632({'source':_0x23f61f,'zIndex':_0x487fab[_0x428e04(0x9a)]});if(_0x44c77f[_0x428e04(0xab)][_0x428e04(0xc2)][_0x428e04(0xb7)]==_0x428e04(0xc3)&&_0x44c77f['drawingInfo'][_0x428e04(0xc2)][_0x428e04(0xa7)]){let _0x5ead79=transformedEsriStyle(_0x44c77f['drawingInfo'][_0x428e04(0xc2)][_0x428e04(0xa7)]);_0x18a30a[_0x428e04(0xc6)](_0x5ead79);}return _0x18a30a;}[a53_0x214cf9(0x9d)](_0x17377a){const _0x53090a=a53_0x214cf9;this['layerInfo'][_0x53090a(0xbb)]=_0x17377a;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4de718,_0x374edb){const _0x4b20ba=a54_0x1884,_0x1612be=_0x4de718();while(!![]){try{const _0x537181=-parseInt(_0x4b20ba(0x118))/0x1*(-parseInt(_0x4b20ba(0x12f))/0x2)+-parseInt(_0x4b20ba(0x12c))/0x3+-parseInt(_0x4b20ba(0x130))/0x4+-parseInt(_0x4b20ba(0x123))/0x5+-parseInt(_0x4b20ba(0x120))/0x6+parseInt(_0x4b20ba(0x116))/0x7*(-parseInt(_0x4b20ba(0x11e))/0x8)+parseInt(_0x4b20ba(0x126))/0x9;if(_0x537181===_0x374edb)break;else _0x1612be['push'](_0x1612be['shift']());}catch(_0x4b7df3){_0x1612be['push'](_0x1612be['shift']());}}}(a54_0xd4a9,0xaa7ea));import a54_0x27fa7e from'ol/layer/Tile';import a54_0x5b1279 from'ol/source/XYZ';import a54_0x59a020 from'ol/tilegrid/TileGrid';function a54_0x1884(_0x3b225c,_0x1083a5){const _0xd4a99f=a54_0xd4a9();return a54_0x1884=function(_0x1884ef,_0x5a6d1c){_0x1884ef=_0x1884ef-0x111;let _0x3b7872=_0xd4a99f[_0x1884ef];return _0x3b7872;},a54_0x1884(_0x3b225c,_0x1083a5);}function a54_0xd4a9(){const _0x3967c8=['push','initialExtent','lods','url','fullExtent','35ugNThD','length','3911QbRiol','cols','mapIndex','wkt','spatialReference','EPSG:','1659608bseqhw','projection','1623234uovfBN','rows','wkid','3739670Bzslwn','ymin','ymax','36627075DHNrgZ','/tile/{z}/{y}/{x}','xmin','xmax','layerInfo','tileInfo','3540639hFQhQE','opacity','resolution','332XPfslI','3138456jHmvUS','origin'];a54_0xd4a9=function(){return _0x3967c8;};return a54_0xd4a9();}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x27fa7e{constructor(_0x293a33,_0x4f1f48){const _0x4f6950=a54_0x1884,_0x5531c9=_0x293a33[_0x4f6950(0x114)]?_0x293a33[_0x4f6950(0x114)]:'',_0x2500e9=appendPath(_0x5531c9,_0x4f6950(0x127)),_0x5c0ea7=[_0x4f1f48[_0x4f6950(0x112)][_0x4f6950(0x128)],_0x4f1f48[_0x4f6950(0x112)][_0x4f6950(0x124)],_0x4f1f48[_0x4f6950(0x112)]['xmax'],_0x4f1f48[_0x4f6950(0x112)][_0x4f6950(0x125)]],_0x587952=[_0x4f1f48['fullExtent'][_0x4f6950(0x128)],_0x4f1f48[_0x4f6950(0x115)][_0x4f6950(0x124)],_0x4f1f48[_0x4f6950(0x115)][_0x4f6950(0x129)],_0x4f1f48[_0x4f6950(0x115)][_0x4f6950(0x125)]];let _0x4c902a;_0x4f1f48['spatialReference'][_0x4f6950(0x122)]?_0x4c902a=registerProj(_0x4f6950(0x11d)+_0x4f1f48[_0x4f6950(0x11c)][_0x4f6950(0x122)],_0x587952):_0x4c902a=registerProj(_0x4f1f48[_0x4f6950(0x11c)][_0x4f6950(0x11b)],_0x587952);let _0xd32847=[];for(let _0xc7f137=0x0,_0x64bafa=_0x4f1f48[_0x4f6950(0x12b)]['lods'][_0x4f6950(0x117)];_0xc7f137<_0x64bafa;_0xc7f137++){_0xd32847[_0x4f6950(0x111)](_0x4f1f48[_0x4f6950(0x12b)][_0x4f6950(0x113)][_0xc7f137][_0x4f6950(0x12e)]);}super({'opacity':_0x293a33[_0x4f6950(0x12d)],'zIndex':_0x293a33[_0x4f6950(0x11a)],'maxResolution':_0xd32847[0x0]*0x2,'source':new a54_0x5b1279({'url':_0x2500e9,'projection':_0x4c902a,'crossOrigin':'anonymous','tileGrid':new a54_0x59a020({'extent':_0x587952,'origin':[_0x4f1f48['tileInfo'][_0x4f6950(0x131)]['x'],_0x4f1f48['tileInfo'][_0x4f6950(0x131)]['y']],'resolutions':_0xd32847,'tileSize':[_0x4f1f48[_0x4f6950(0x12b)][_0x4f6950(0x121)],_0x4f1f48[_0x4f6950(0x12b)][_0x4f6950(0x119)]]})})}),this['id']=_0x293a33['id'],this[_0x4f6950(0x112)]=_0x5c0ea7,this[_0x4f6950(0x11f)]=_0x4c902a,this[_0x4f6950(0x12a)]=_0x293a33;}}
|