ym-gis-2d 1.0.40 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Difference.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Modify.js +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Split.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.d.ts +2 -0
- package/layers/LayerManager.d.ts.map +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/LayerManager.js.map +1 -1
- package/layers/MapTileLayer.d.ts +17 -0
- package/layers/MapTileLayer.d.ts.map +1 -0
- package/layers/MapTileLayer.js +1 -0
- package/layers/MapTileLayer.js.map +1 -0
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts.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/PointStyleFormat.js.map +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
|
-
const
|
|
1
|
+
const a43_0x207870=a43_0x2f1c;function a43_0x2f1c(_0x17ba7d,_0x4d8748){const _0x40176a=a43_0x4017();return a43_0x2f1c=function(_0x2f1c91,_0x58d28e){_0x2f1c91=_0x2f1c91-0xcd;let _0x1f21e4=_0x40176a[_0x2f1c91];return _0x1f21e4;},a43_0x2f1c(_0x17ba7d,_0x4d8748);}(function(_0x4b8f9c,_0x38c3ac){const _0x102041=a43_0x2f1c,_0x3cd032=_0x4b8f9c();while(!![]){try{const _0x51d13b=-parseInt(_0x102041(0xe2))/0x1*(-parseInt(_0x102041(0xed))/0x2)+-parseInt(_0x102041(0xdd))/0x3*(-parseInt(_0x102041(0xfb))/0x4)+-parseInt(_0x102041(0xf9))/0x5*(-parseInt(_0x102041(0xd1))/0x6)+parseInt(_0x102041(0xec))/0x7+parseInt(_0x102041(0xf4))/0x8*(parseInt(_0x102041(0xe5))/0x9)+parseInt(_0x102041(0xf3))/0xa*(parseInt(_0x102041(0xeb))/0xb)+-parseInt(_0x102041(0xdb))/0xc*(parseInt(_0x102041(0xde))/0xd);if(_0x51d13b===_0x38c3ac)break;else _0x3cd032['push'](_0x3cd032['shift']());}catch(_0xf199ea){_0x3cd032['push'](_0x3cd032['shift']());}}}(a43_0x4017,0x68444));import a43_0x342369 from'../entity/Feature';import a43_0x1522b2 from'ol/layer/Vector';import a43_0x343b4 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0xd6329f from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';function a43_0x4017(){const _0x35181e=['24622481RtvTgj','getTempEditFeatures','isSelected','map','479dDXdPq','get','getLineTempLayer','2363778ajCWhE','flashGeometrys','getTempSelectedFeatures','getPointTempLayer','getLayerById','getSource','2625491yIWNvE','550585amwLCH','1306tPmRDR','getPolygonTempLayer','flashFeatures','setStyle','indexOf','forEach','20nmqRes','8OYDAmv','layerId','push','tempLayer','addLayer','690punUTa','tag','4532rKLoaA','currentEditLayer','kmlImport','filter','getType','addFeatures','setVisible','22710oaPPdI','getSelectedFeatures','length','getVisible','clearTempFeatures','removeFeature','geometryType','getEditFeatures','layerInfo','readFeature','12cBqOmR','flash_layer','1767BrVqDt'];a43_0x4017=function(){return _0x35181e;};return a43_0x4017();}export default class FeatureManager{constructor(_0x384363){this['map']=_0x384363;}[a43_0x207870(0xd8)](_0x303ff7,_0x243f90){const _0x53c203=a43_0x207870;if(!this['map']['currentEditLayer'])return;let _0x5ad4d2;const _0x5c5252=this['map']['getLayerById'](this[_0x53c203(0xe1)][_0x53c203(0xfc)]['id']);if(!_0x5c5252||!_0x5c5252['layerInfo'])return;switch(_0x5c5252['layerInfo'][_0x53c203(0xd7)]){case 0x1:_0x5ad4d2=this[_0x53c203(0xdf)](this[_0x53c203(0xe1)][_0x53c203(0xe8)](),this[_0x53c203(0xe1)][_0x53c203(0xfc)]['id'],_0x303ff7,_0x243f90);break;case 0x2:_0x5ad4d2=this[_0x53c203(0xdf)](this['map'][_0x53c203(0xe4)](),this['map'][_0x53c203(0xfc)]['id'],_0x303ff7,_0x243f90);break;case 0x3:_0x5ad4d2=this['getTempEditFeatures'](this[_0x53c203(0xe1)][_0x53c203(0xee)](),this[_0x53c203(0xe1)][_0x53c203(0xfc)]['id'],_0x303ff7,_0x243f90);break;default:break;}return _0x5ad4d2;}[a43_0x207870(0xd2)](_0x2d26ae,_0x3e429d){const _0x42813d=a43_0x207870;if(_0x2d26ae){const _0x2333f7=this[_0x42813d(0xe1)][_0x42813d(0xe9)](_0x2d26ae);if(!_0x2333f7||!_0x2333f7[_0x42813d(0xd9)])return;let _0xd4f82c;switch(_0x2333f7[_0x42813d(0xd9)][_0x42813d(0xd7)]){case 0x1:_0xd4f82c=this['getTempSelectedFeatures'](this[_0x42813d(0xe1)][_0x42813d(0xe8)](),_0x2d26ae,_0x3e429d);break;case 0x2:_0xd4f82c=this[_0x42813d(0xe7)](this['map'][_0x42813d(0xe4)](),_0x2d26ae,_0x3e429d);break;case 0x3:_0xd4f82c=this[_0x42813d(0xe7)](this[_0x42813d(0xe1)][_0x42813d(0xee)](),_0x2d26ae,_0x3e429d);break;default:break;}return _0xd4f82c;}else{const _0x37b298=this[_0x42813d(0xe7)](this[_0x42813d(0xe1)][_0x42813d(0xe8)](),_0x2d26ae,_0x3e429d),_0x15da94=this[_0x42813d(0xe7)](this[_0x42813d(0xe1)][_0x42813d(0xe4)](),_0x2d26ae,_0x3e429d),_0x804d7=this[_0x42813d(0xe7)](this[_0x42813d(0xe1)][_0x42813d(0xee)](),_0x2d26ae,_0x3e429d);let _0x5073a5=[];return _0x37b298&&(_0x5073a5=[..._0x5073a5,..._0x37b298]),_0x15da94&&(_0x5073a5=[..._0x5073a5,..._0x15da94]),_0x804d7&&(_0x5073a5=[..._0x5073a5,..._0x804d7]),_0x5073a5;}}[a43_0x207870(0xe7)](_0x1fd718,_0x59f589,_0x30246d){const _0x411cfb=a43_0x207870;var _0x530811;let _0x4c68f0=(_0x530811=_0x1fd718[_0x411cfb(0xea)]())===null||_0x530811===void 0x0?void 0x0:_0x530811['getFeatures']();if(!_0x4c68f0)return;_0x4c68f0[_0x411cfb(0xf2)]((_0xb5d959,_0x21dee2,_0x37ce4c)=>{const _0x21c6a3=_0x411cfb;_0xb5d959[_0x21c6a3(0xf7)]=_0x1fd718;});_0x30246d!=undefined&&(_0x4c68f0=_0x4c68f0['filter'](_0x41c608=>_0x41c608[_0x411cfb(0xe0)]==_0x30246d));if(_0x59f589)return _0x4c68f0[_0x411cfb(0xcd)](_0x167bd6=>_0x167bd6[_0x411cfb(0xf5)]==_0x59f589);return _0x4c68f0;}[a43_0x207870(0xdf)](_0x5c213c,_0x23e0b7,_0x28092f,_0x452d27){const _0x4ed09b=a43_0x207870;var _0x283e88;let _0x5a021e=(_0x283e88=_0x5c213c[_0x4ed09b(0xea)]())===null||_0x283e88===void 0x0?void 0x0:_0x283e88['getFeatures']();if(!_0x5a021e)return;return _0x5a021e['forEach']((_0x56149b,_0x17e834,_0x1c37cd)=>{_0x56149b['tempLayer']=_0x5c213c;}),_0x28092f&&_0x452d27&&_0x452d27[_0x4ed09b(0xd3)]>0x0?_0x5a021e=_0x5a021e[_0x4ed09b(0xcd)](_0x5cbb7c=>_0x5cbb7c[_0x4ed09b(0xe0)]==!![]&&(_0x5cbb7c[_0x4ed09b(0xf5)]==_0x23e0b7&&(_0x5cbb7c[_0x4ed09b(0xe3)](_0x28092f)==undefined||_0x452d27[_0x4ed09b(0xf1)](_0x5cbb7c[_0x4ed09b(0xe3)](_0x28092f))>-0x1)||_0x5cbb7c[_0x4ed09b(0xf5)]==undefined)):_0x5a021e=_0x5a021e=_0x5a021e[_0x4ed09b(0xcd)](_0x1637b6=>_0x1637b6[_0x4ed09b(0xe0)]==!![]&&(_0x1637b6[_0x4ed09b(0xf5)]==_0x23e0b7||_0x1637b6[_0x4ed09b(0xf5)]==undefined)),_0x5a021e;}[a43_0x207870(0xef)](_0x3a7012,_0x4a7610=0x3){const _0x9ead93=a43_0x207870;var _0x5a5886;let _0x515cce=new a43_0x1522b2({'zIndex':0x270f,'source':new a43_0x343b4()});_0x515cce['id']=_0x9ead93(0xdc),this[_0x9ead93(0xe1)][_0x9ead93(0xf8)](_0x515cce,![]),(_0x5a5886=_0x515cce['getSource']())===null||_0x5a5886===void 0x0?void 0x0:_0x5a5886[_0x9ead93(0xcf)](_0x3a7012);let _0x7c45ab=0x0,_0x6300c0=setInterval(()=>{const _0x329f34=_0x9ead93;if(_0x7c45ab===_0x4a7610){_0x6300c0&&clearInterval(_0x6300c0);const _0x1c4427=this[_0x329f34(0xe1)][_0x329f34(0xe9)](_0x515cce['id']);_0x1c4427&&this[_0x329f34(0xe1)]['removeLayer'](_0x1c4427);return;}if(_0x515cce[_0x329f34(0xd4)]())_0x515cce['setVisible'](![]);else _0x515cce[_0x329f34(0xd0)](!![]);_0x7c45ab++;},0x190);}[a43_0x207870(0xe6)](_0x1b7e8d,_0x5aac76=0x3){const _0x36f754=a43_0x207870;var _0x5c436b;let _0xbd33bc=new a43_0x1522b2({'zIndex':0x270f,'source':new a43_0x343b4()});_0xbd33bc['id']='flash_layer',this[_0x36f754(0xe1)][_0x36f754(0xf8)](_0xbd33bc,![]);let _0x4d2774=[];_0x1b7e8d[_0x36f754(0xf2)](_0x4da268=>{const _0x4b77c5=_0x36f754;let _0x21f326=new a43_0x342369();const _0x13956b=getSelectStyle(_0x4da268[_0x4b77c5(0xce)]());_0x21f326[_0x4b77c5(0xf0)](_0x13956b),_0x21f326['setGeometry'](_0x4da268),_0x4d2774[_0x4b77c5(0xf6)](_0x21f326);}),(_0x5c436b=_0xbd33bc[_0x36f754(0xea)]())===null||_0x5c436b===void 0x0?void 0x0:_0x5c436b[_0x36f754(0xcf)](_0x4d2774);let _0x58a190=0x0,_0x358955=setInterval(()=>{const _0x237a5c=_0x36f754;if(_0x58a190===_0x5aac76){_0x358955&&clearInterval(_0x358955);const _0x569631=this['map'][_0x237a5c(0xe9)](_0xbd33bc['id']);_0x569631&&this[_0x237a5c(0xe1)]['removeLayer'](_0x569631);return;}if(_0xbd33bc[_0x237a5c(0xd4)]())_0xbd33bc[_0x237a5c(0xd0)](![]);else _0xbd33bc[_0x237a5c(0xd0)](!![]);_0x58a190++;},0x190);}async[a43_0x207870(0xfd)](_0x120831){const _0x13bd8a=a43_0x207870;let _0x1a5b4a=await toGeoJSON(_0x120831,null);if(!_0x1a5b4a)return[];let _0x1a4393=[];var _0x263a8b=new a43_0xd6329f();return _0x1a5b4a['features'][_0x13bd8a(0xf2)](_0x2200f5=>{const _0x3a7e62=_0x13bd8a;_0x1a4393['push'](_0x263a8b[_0x3a7e62(0xda)](_0x2200f5,null));}),_0x1a4393;}[a43_0x207870(0xd5)](_0x55af25){const _0x5d1883=a43_0x207870,_0x4d6303=this[_0x5d1883(0xd2)]();if(_0x4d6303&&_0x4d6303['length']>0x0)for(const _0x3dbb8a of _0x4d6303){if(_0x3dbb8a&&_0x3dbb8a[_0x5d1883(0xf7)]){const _0x405630=_0x3dbb8a[_0x5d1883(0xf7)][_0x5d1883(0xea)]();_0x405630&&(_0x55af25!=undefined?_0x3dbb8a[_0x5d1883(0xfa)]==_0x55af25&&_0x405630[_0x5d1883(0xd6)](_0x3dbb8a):_0x405630[_0x5d1883(0xd6)](_0x3dbb8a));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a44_0x176d(){var _0x1be7f5=['14194587ChjSnM','1247469wsyWvJ','1086398Ybnmnr','156780RRleQO','30nKIpaY','8LIrAJO','1043664ZtfYur','4LgLjFp','6xeLEWR','5532885lsNgiv','151928ONjxaP','24dzzDJm'];a44_0x176d=function(){return _0x1be7f5;};return a44_0x176d();}(function(_0x1d56e3,_0x3a9d88){var _0x47dfe7=a44_0x3248,_0x387b89=_0x1d56e3();while(!![]){try{var _0x550360=parseInt(_0x47dfe7(0x1cb))/0x1+parseInt(_0x47dfe7(0x1d1))/0x2*(parseInt(_0x47dfe7(0x1ca))/0x3)+-parseInt(_0x47dfe7(0x1d0))/0x4*(-parseInt(_0x47dfe7(0x1d2))/0x5)+-parseInt(_0x47dfe7(0x1cf))/0x6+-parseInt(_0x47dfe7(0x1c7))/0x7*(-parseInt(_0x47dfe7(0x1ce))/0x8)+parseInt(_0x47dfe7(0x1cc))/0x9*(-parseInt(_0x47dfe7(0x1cd))/0xa)+-parseInt(_0x47dfe7(0x1c9))/0xb*(parseInt(_0x47dfe7(0x1c8))/0xc);if(_0x550360===_0x3a9d88)break;else _0x387b89['push'](_0x387b89['shift']());}catch(_0x47a5cc){_0x387b89['push'](_0x387b89['shift']());}}}(a44_0x176d,0x9ff06));function a44_0x3248(_0xcc7b75,_0x267247){var _0x176de5=a44_0x176d();return a44_0x3248=function(_0x324893,_0x5678f5){_0x324893=_0x324893-0x1c7;var _0x1ac199=_0x176de5[_0x324893];return _0x1ac199;},a44_0x3248(_0xcc7b75,_0x267247);}import a44_0x493e00 from'./mapView/Map';export{a44_0x493e00 as Map2D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x5ed744=a45_0x4661;(function(_0x7d8d3e,_0x3d682a){const _0x496d9a=a45_0x4661,_0x492389=_0x7d8d3e();while(!![]){try{const _0xbc4f42=-parseInt(_0x496d9a(0xf0))/0x1+-parseInt(_0x496d9a(0xd3))/0x2+-parseInt(_0x496d9a(0xe8))/0x3+parseInt(_0x496d9a(0xc9))/0x4*(-parseInt(_0x496d9a(0xe5))/0x5)+-parseInt(_0x496d9a(0xf4))/0x6+parseInt(_0x496d9a(0xe1))/0x7+parseInt(_0x496d9a(0xea))/0x8;if(_0xbc4f42===_0x3d682a)break;else _0x492389['push'](_0x492389['shift']());}catch(_0x3c9839){_0x492389['push'](_0x492389['shift']());}}}(a45_0x5007,0x1e3ab));import a45_0x255090 from'./Draw';import a45_0x405eb2 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x366248 from'../entity/measure/AreaMeasureUnits';import a45_0x4246ba from'ol/Collection';function a45_0x5007(){const _0x2f265c=['area','measure','483644pgdgfY','forEach','length','getMap','_spheroid','type','getSource','square-meters','clearMeasure','filter','setFeatureAreaStyle','toFixed','dispatchEvent','unit','17339UhyDKH','measureEnd','coordinates','polygon','115PTulFM','feature','label','224622yGeDoQ','fromEntries','6992656OyntRX','geom','find','entries','#f03437','setStyle','149614khCGik','_style','getText','setMap','792048wiSZgp','measureMoving','text','log','点击开始测量,双击结束测量','_showLabel','_precision','_features','hectare','getLength','26856YrSoYs','getGeometry','clear','getPolygonTempLayer','assign','onInternal','_unit','drawMoving'];a45_0x5007=function(){return _0x2f265c;};return a45_0x5007();}const defaultOptions={'color':a45_0x5ed744(0xee),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x5ed744(0xda),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':a45_0x5ed744(0xf5),'measureEnd':a45_0x5ed744(0xe2)};export class AreaMeasureEvent extends a45_0x405eb2{constructor(_0x135099,_0x26f7c1,_0x5c1e77){const _0x5ae3e8=a45_0x5ed744;super(_0x135099),this[_0x5ae3e8(0xd1)]=_0x26f7c1,this[_0x5ae3e8(0xeb)]=_0x5c1e77;}}function a45_0x4661(_0x4b18fe,_0x576761){const _0x5007b4=a45_0x5007();return a45_0x4661=function(_0x466141,_0x136559){_0x466141=_0x466141-0xc1;let _0x314d15=_0x5007b4[_0x466141];return _0x314d15;},a45_0x4661(_0x4b18fe,_0x576761);}export default class AreaMeasure extends a45_0x255090{constructor(_0x5797eb){const _0x30adda=a45_0x5ed744;_0x5797eb=_0x5797eb||{},console[_0x30adda(0xc2)](_0x5797eb);const _0x5b45d4=Object[_0x30adda(0xcd)](Object['assign']({},defaultOptions),Object[_0x30adda(0xe9)](Object[_0x30adda(0xed)](_0x5797eb)[_0x30adda(0xdc)](([_0x5b2291,_0x5b3855])=>_0x5b3855!=null)));super(_0x30adda(0xe4),{'tipText':_0x30adda(0xc3),'style':_0x5b45d4,'features':new a45_0x4246ba()}),this['_style']=_0x5b45d4,this[_0x30adda(0xcf)]=_0x5b45d4[_0x30adda(0xe0)],this['_precision']=_0x5b45d4['precision'],this[_0x30adda(0xc4)]=_0x5b45d4['showLabel'],this['_spheroid']=_0x5b45d4['spheroid'],this['on']=this[_0x30adda(0xce)],this['on']('drawEnd',_0x3712b0=>{const _0x157175=_0x30adda,_0x575663=this[_0x157175(0xd6)]();if(!_0x575663)return;if(_0x3712b0[_0x157175(0xe6)]){const _0x5786aa=this['setFeatureAreaStyle'](_0x3712b0[_0x157175(0xe6)],_0x5b45d4);this[_0x157175(0xdf)](new AreaMeasureEvent(MeasureEventType[_0x157175(0xe2)],_0x5786aa,_0x3712b0['feature'][_0x157175(0xca)]()));}this[_0x157175(0xf1)]['text']='';}),this['on']('drawAddPoint',_0x491619=>{const _0x1e40d5=_0x30adda,_0xbfd610=this[_0x1e40d5(0xd6)]();if(!_0xbfd610)return;if(_0x491619[_0x1e40d5(0xe6)]){const _0x3187b2=this[_0x1e40d5(0xdd)](_0x491619[_0x1e40d5(0xe6)],_0x5b45d4);this[_0x1e40d5(0xdf)](new AreaMeasureEvent(MeasureEventType[_0x1e40d5(0xf5)],_0x3187b2,_0x491619[_0x1e40d5(0xe6)]['getGeometry']()));}}),this['on'](_0x30adda(0xd0),_0x97bdfc=>{const _0x4b3418=_0x30adda,_0x3459b4=this['getMap']();if(!_0x3459b4)return;if(!_0x97bdfc[_0x4b3418(0xe3)]||_0x97bdfc[_0x4b3418(0xe3)][_0x4b3418(0xd5)]<0x2)return;if(_0x97bdfc[_0x4b3418(0xe6)]){const _0x58483a=this[_0x4b3418(0xdd)](_0x97bdfc[_0x4b3418(0xe6)],_0x5b45d4);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x4b3418(0xf5)],_0x58483a,_0x97bdfc[_0x4b3418(0xe6)]['getGeometry']()));}});}[a45_0x5ed744(0xf3)](_0x3b74ac){const _0x41150c=a45_0x5ed744;super['setMap'](_0x3b74ac);if(_0x3b74ac){const _0x5c50d0=_0x3b74ac[_0x41150c(0xcc)](),_0x2a0315=_0x5c50d0===null||_0x5c50d0===void 0x0?void 0x0:_0x5c50d0[_0x41150c(0xd9)]();_0x2a0315&&(this['_source']=_0x2a0315);}}[a45_0x5ed744(0xf2)](_0x2cdcd9){const _0x1c2036=a45_0x5ed744,_0x1cb0da=a45_0x366248[_0x1c2036(0xec)](_0x1f5496=>_0x1f5496[_0x1c2036(0xd8)]===this[_0x1c2036(0xcf)]);switch(_0x1cb0da===null||_0x1cb0da===void 0x0?void 0x0:_0x1cb0da[_0x1c2036(0xd8)]){case _0x1c2036(0xda):return''+(_0x2cdcd9['toFixed'](this[_0x1c2036(0xc5)])+_0x1cb0da[_0x1c2036(0xe7)]);case'square-kilometers':return''+((_0x2cdcd9*0.000001)['toFixed'](this[_0x1c2036(0xc5)])+_0x1cb0da[_0x1c2036(0xe7)]);case'mu':return''+((_0x2cdcd9*0.0015)[_0x1c2036(0xde)](this[_0x1c2036(0xc5)])+_0x1cb0da['label']);case _0x1c2036(0xc7):return''+((_0x2cdcd9*0.0001)['toFixed'](this[_0x1c2036(0xc5)])+_0x1cb0da[_0x1c2036(0xe7)]);default:return _0x2cdcd9[_0x1c2036(0xde)](this['_precision'])+'平方米';}}[a45_0x5ed744(0xdd)](_0x343c41,_0x332244){const _0x3eb6b0=a45_0x5ed744,_0x2c4a31=this[_0x3eb6b0(0xd6)]();if(!_0x2c4a31)return 0x0;const _0x2368ff=_0x343c41[_0x3eb6b0(0xca)](),_0x1ec6cc=getArea(_0x2368ff,_0x2c4a31['getView']()['getProjection'](),this[_0x3eb6b0(0xd7)]);return _0x343c41['fromType']=_0x3eb6b0(0xd2),this[_0x3eb6b0(0xc4)]&&(_0x332244[_0x3eb6b0(0xc1)]=this['getText'](_0x1ec6cc),_0x343c41[_0x3eb6b0(0xef)](getStyle(_0x3eb6b0(0xe4),_0x332244,_0x2c4a31))),_0x1ec6cc;}['setUnit'](_0xf548c3){const _0x4a5d64=a45_0x5ed744;this['_unit']=_0xf548c3,this['_features']&&this['_features'][_0x4a5d64(0xc8)]()>0x0&&this[_0x4a5d64(0xc6)]['forEach'](_0x5d3926=>{const _0x272308=_0x4a5d64;this[_0x272308(0xdd)](_0x5d3926,this[_0x272308(0xf1)]);});}[a45_0x5ed744(0xdb)](){const _0x7ad88f=a45_0x5ed744,_0x33cc71=this['getMap']();if(!_0x33cc71)return;const _0x48254a=_0x33cc71[_0x7ad88f(0xcc)](),_0x1b9329=_0x48254a===null||_0x48254a===void 0x0?void 0x0:_0x48254a[_0x7ad88f(0xd9)]();_0x1b9329&&this[_0x7ad88f(0xc6)]&&this[_0x7ad88f(0xc6)]['getLength']()>0x0&&(this[_0x7ad88f(0xc6)][_0x7ad88f(0xd4)](_0x4e93df=>{_0x1b9329['removeFeature'](_0x4e93df);}),this[_0x7ad88f(0xc6)][_0x7ad88f(0xcb)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a46_0x57b0(_0x5b6e47,_0x25dc02){const _0x13fc23=a46_0x13fc();return a46_0x57b0=function(_0x57b0e2,_0x345ed8){_0x57b0e2=_0x57b0e2-0xfb;let _0x1cb5ed=_0x13fc23[_0x57b0e2];return _0x1cb5ed;},a46_0x57b0(_0x5b6e47,_0x25dc02);}function a46_0x13fc(){const _0x4da898=['getMap','2232jGcQZe','120339CZoWIW','58586YvyqFH','2020UyVfOq','61MDoDAe','features','未获取到地图对象','2268336NYjOJh','dispatchEvent','516922ICIGNx','drawEnd','261qzvBTQ','HOLED','setGeometry','addTempLayer','error','rgba(255,\x200,\x200,\x201)','10PXtYUD','onInternal','getGeometry','未获取到擦除要素','holeStyle','length','holePolygon','24148TyHguY','setFeatures','holeFeatures','splitStart','2480628TXyxfi','splited'];a46_0x13fc=function(){return _0x4da898;};return a46_0x13fc();}const a46_0x46ac31=a46_0x57b0;(function(_0x1aacbd,_0x360520){const _0x4d64ec=a46_0x57b0,_0x539e51=_0x1aacbd();while(!![]){try{const _0x5dbcf3=parseInt(_0x4d64ec(0x10a))/0x1*(parseInt(_0x4d64ec(0xff))/0x2)+-parseInt(_0x4d64ec(0x107))/0x3+-parseInt(_0x4d64ec(0x103))/0x4+parseInt(_0x4d64ec(0x117))/0x5*(-parseInt(_0x4d64ec(0x10d))/0x6)+parseInt(_0x4d64ec(0x10f))/0x7+-parseInt(_0x4d64ec(0x106))/0x8*(-parseInt(_0x4d64ec(0x111))/0x9)+-parseInt(_0x4d64ec(0x109))/0xa*(-parseInt(_0x4d64ec(0x108))/0xb);if(_0x5dbcf3===_0x360520)break;else _0x539e51['push'](_0x539e51['shift']());}catch(_0x5826d9){_0x539e51['push'](_0x539e51['shift']());}}}(a46_0x13fc,0x74ae1));import a46_0x41952d from'./Draw';import a46_0x3a2770 from'ol/events/Event';import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x46ac31(0x102),'HOLED':a46_0x46ac31(0x104)};export class HoleEvent extends a46_0x3a2770{constructor(_0x4b2ee3,_0x13df13,_0x343060,_0x3da4a9){const _0x20ae0f=a46_0x46ac31;super(_0x4b2ee3),this[_0x20ae0f(0xfe)]=_0x13df13,this[_0x20ae0f(0x10b)]=_0x343060,this[_0x20ae0f(0x115)]=_0x3da4a9;}}export default class Difference extends a46_0x41952d{constructor(_0x138b3b,_0x22b893){const _0x2f592a=a46_0x46ac31,_0x47c5e7=(_0x22b893===null||_0x22b893===void 0x0?void 0x0:_0x22b893[_0x2f592a(0xfc)])||{'outlineColor':_0x2f592a(0x116),'outlineWidth':0x2,'opacity':0.2,'color':'rgba(255,\x200,\x200,\x201)'};super('polygon',{'tipText':_0x22b893===null||_0x22b893===void 0x0?void 0x0:_0x22b893['tipText'],'style':_0x47c5e7}),this[_0x2f592a(0x10b)]=_0x138b3b;const _0x53ab19=_0x22b893||{};this['addTempLayer']=_0x53ab19[_0x2f592a(0x114)]||![],this['on']=this[_0x2f592a(0x118)],this['on'](_0x2f592a(0x110),async _0xb7f02a=>{const _0x159632=_0x2f592a;var _0x7666e;const _0x2a326f=this[_0x159632(0x105)]();let _0x29eece=(_0x7666e=_0xb7f02a['feature'])===null||_0x7666e===void 0x0?void 0x0:_0x7666e['getGeometry']();!_0x29eece&&this[_0x159632(0x10e)](new HoleEvent(HoleEventType[_0x159632(0x112)],undefined,undefined,'未获取到挖除的面'));let _0xa6d9f8=_0x29eece;!_0x2a326f&&this[_0x159632(0x10e)](new HoleEvent(HoleEventType[_0x159632(0x112)],_0xa6d9f8,undefined,_0x159632(0x10c)));(!this[_0x159632(0x10b)]||this[_0x159632(0x10b)][_0x159632(0xfd)]===0x0)&&this['dispatchEvent'](new HoleEvent(HoleEventType[_0x159632(0x112)],_0xa6d9f8,undefined,_0x159632(0xfb)));try{this['dispatchEvent'](new HoleEvent(HoleEventType['HOLESTART'],_0xa6d9f8));const _0x527750=this[_0x159632(0x101)](_0xa6d9f8);this[_0x159632(0x10e)](new HoleEvent(HoleEventType[_0x159632(0x112)],_0xa6d9f8,_0x527750));}catch(_0x31d5a7){this[_0x159632(0x10e)](new HoleEvent(HoleEventType[_0x159632(0x112)],_0xa6d9f8,undefined,_0x31d5a7['message']));}});}[a46_0x46ac31(0x101)](_0x1706c2){const _0x49f714=a46_0x46ac31,_0x3bfa70=[];for(let _0x53b51d=0x0;_0x53b51d<this[_0x49f714(0x10b)][_0x49f714(0xfd)];_0x53b51d++){const _0x27eba1=this['features'][_0x53b51d],_0x4168c2=_0x27eba1[_0x49f714(0x119)]();if(!_0x4168c2)continue;const _0x18b8ec=difference(_0x4168c2,_0x1706c2);_0x27eba1[_0x49f714(0x113)](_0x18b8ec),_0x3bfa70['push'](_0x27eba1);}return _0x3bfa70;}[a46_0x46ac31(0x100)](_0x5f1b65){this['features']=_0x5f1b65;}}
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x1011fd=a48_0x43ee;(function(_0x2413ea,_0xa29e51){const _0x3e9db3=a48_0x43ee,_0x468e32=_0x2413ea();while(!![]){try{const _0x4d9a7b=-parseInt(_0x3e9db3(0x91))/0x1*(-parseInt(_0x3e9db3(0x88))/0x2)+-parseInt(_0x3e9db3(0x87))/0x3+-parseInt(_0x3e9db3(0x82))/0x4+-parseInt(_0x3e9db3(0x93))/0x5*(-parseInt(_0x3e9db3(0x8f))/0x6)+-parseInt(_0x3e9db3(0x85))/0x7+parseInt(_0x3e9db3(0x8b))/0x8+parseInt(_0x3e9db3(0x94))/0x9*(-parseInt(_0x3e9db3(0x89))/0xa);if(_0x4d9a7b===_0xa29e51)break;else _0x468e32['push'](_0x468e32['shift']());}catch(_0x5d9e5a){_0x468e32['push'](_0x468e32['shift']());}}}(a48_0x47a8,0xb25bd));function a48_0x47a8(){const _0x551712=['map','4831664izuSwV','clear','set','6770120sqnLHr','removeAllInteractions','1768500NumfWt','217590EtPRcv','140XmFJow','interactions','10587024vILqXF','name','removeInteraction','get','914142dFQERJ','has','12FXcUDC','delete','35QqLHJx','128754pVzdIm','addInteraction'];a48_0x47a8=function(){return _0x551712;};return a48_0x47a8();}function a48_0x43ee(_0x1a6128,_0x383bd8){const _0x47a814=a48_0x47a8();return a48_0x43ee=function(_0x43ee3f,_0x366d37){_0x43ee3f=_0x43ee3f-0x80;let _0x38d7c4=_0x47a814[_0x43ee3f];return _0x38d7c4;},a48_0x43ee(_0x1a6128,_0x383bd8);}export default class InteractionManager{constructor(_0x4d85e3){const _0x3e2d09=a48_0x43ee;this[_0x3e2d09(0x81)]=_0x4d85e3,this['interactions']=new Map();}[a48_0x1011fd(0x80)](_0x24c01f,_0xba714d){const _0x320ff2=a48_0x1011fd;this[_0x320ff2(0x8a)][_0x320ff2(0x90)](_0x24c01f)&&this['removeInteraction'](_0x24c01f),_0xba714d['set'](_0x320ff2(0x8c),_0x24c01f),this['interactions'][_0x320ff2(0x84)](_0x24c01f,_0xba714d),this['map'][_0x320ff2(0x80)](_0xba714d);}['removeInteraction'](_0x4a989e){const _0x49ee4e=a48_0x1011fd,_0x56decf=this[_0x49ee4e(0x8a)][_0x49ee4e(0x8e)](_0x4a989e);_0x56decf&&(this[_0x49ee4e(0x81)][_0x49ee4e(0x8d)](_0x56decf),this[_0x49ee4e(0x8a)][_0x49ee4e(0x92)](_0x4a989e));}[a48_0x1011fd(0x86)](){const _0x7098b=a48_0x1011fd;this[_0x7098b(0x8a)]['forEach'](_0x1c777d=>{const _0x589aa1=_0x7098b;this[_0x589aa1(0x81)]['removeInteraction'](_0x1c777d);}),this[_0x7098b(0x8a)][_0x7098b(0x83)]();}['getInteraction'](_0x40f853){const _0x1d6b70=a48_0x1011fd;return this['interactions'][_0x1d6b70(0x8e)](_0x40f853);}}
|
package/interaction/Modify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a49_0x5cf7(){var _0x2015f=['push','sourceFeatures','rgba(0,255,255,0.2)','length','19212ojkiYE','modifyInteraction','removeInteraction','15146397KzIMNn','getFeatures','map','some','11aQlWsM','assign','740aPzWVk','MultiPolygon','43045QBNiFB','getId','10019884ADeEqu','getCoordinates','42959130OTftuU','1346576WQoDdv','getType','310PfYHeI','refresh','getMap','rgba(255,255,255,0.6)','editFeatures','translate','6056394miqykL','setMap','LineString','getGeometry','8kGjorT','addInteraction','forEach'];a49_0x5cf7=function(){return _0x2015f;};return a49_0x5cf7();}function a49_0xac8c(_0xaaa1e3,_0x49a3ea){var _0x5cf7b4=a49_0x5cf7();return a49_0xac8c=function(_0xac8cf4,_0x468961){_0xac8cf4=_0xac8cf4-0x158;var _0x500a0a=_0x5cf7b4[_0xac8cf4];return _0x500a0a;},a49_0xac8c(_0xaaa1e3,_0x49a3ea);}var a49_0x168d5c=a49_0xac8c;(function(_0x35eb4f,_0xe3d26e){var _0x453724=a49_0xac8c,_0x4266b5=_0x35eb4f();while(!![]){try{var _0x5cfcfc=parseInt(_0x453724(0x15b))/0x1+-parseInt(_0x453724(0x15d))/0x2*(-parseInt(_0x453724(0x16e))/0x3)+-parseInt(_0x453724(0x177))/0x4*(parseInt(_0x453724(0x179))/0x5)+-parseInt(_0x453724(0x163))/0x6+-parseInt(_0x453724(0x158))/0x7+-parseInt(_0x453724(0x167))/0x8*(parseInt(_0x453724(0x171))/0x9)+-parseInt(_0x453724(0x15a))/0xa*(-parseInt(_0x453724(0x175))/0xb);if(_0x5cfcfc===_0xe3d26e)break;else _0x4266b5['push'](_0x4266b5['shift']());}catch(_0x35f29d){_0x4266b5['push'](_0x4266b5['shift']());}}}(a49_0x5cf7,0xe04ac));import{Modify as a49_0xc3f0f0,Select,Translate as a49_0x21c70b}from'ol/interaction';import a49_0xc10320 from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';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':'rgba(25,25,125,0.8)'}),'stroke':new Stroke({'color':a49_0x168d5c(0x160),'width':0x2})}),'stroke':new Stroke({'color':'rgba(0,255,255,0.6)','width':0x2}),'fill':new Fill({'color':a49_0x168d5c(0x16c)}),'geometry':_0x4f76ec=>{var _0x372ead=a49_0x168d5c,_0x41e6b5,_0x4eadfc,_0x1250a8,_0x25f7f8,_0x54fffd;let _0x339718=[];if(((_0x41e6b5=_0x4f76ec['getGeometry']())===null||_0x41e6b5===void 0x0?void 0x0:_0x41e6b5[_0x372ead(0x15c)]())==='Polygon')(_0x4eadfc=_0x4f76ec['getGeometry']())===null||_0x4eadfc===void 0x0?void 0x0:_0x4eadfc['getCoordinates']()[0x0][_0x372ead(0x169)](_0x239ad4=>{var _0x9e3b54=_0x372ead;_0x339718[_0x9e3b54(0x16a)](_0x239ad4);});else{if(((_0x1250a8=_0x4f76ec['getGeometry']())===null||_0x1250a8===void 0x0?void 0x0:_0x1250a8[_0x372ead(0x15c)]())===_0x372ead(0x178))_0x4f76ec['getGeometry']()[_0x372ead(0x159)]()[0x0]['forEach'](_0x2e7c58=>{var _0x1bdb02=_0x372ead;_0x2e7c58[_0x1bdb02(0x169)](_0x43042f=>{_0x339718['push'](_0x43042f);}),_0x339718['push'](_0x2e7c58);});else((_0x25f7f8=_0x4f76ec[_0x372ead(0x166)]())===null||_0x25f7f8===void 0x0?void 0x0:_0x25f7f8['getType']())===_0x372ead(0x165)?_0x339718=_0x4f76ec[_0x372ead(0x166)]()[_0x372ead(0x159)]():_0x339718=[(_0x54fffd=_0x4f76ec['getGeometry']())===null||_0x54fffd===void 0x0?void 0x0:_0x54fffd[_0x372ead(0x159)]()];}return new a49_0xc10320([_0x4f76ec['getGeometry'](),new MultiPoint(_0x339718)]);}});export default class Modify extends Select{constructor(_0x5d3289){var _0x46a6df=a49_0x168d5c;_0x5d3289=_0x5d3289||{};const _0x2842b0=Object[_0x46a6df(0x176)]({},_0x5d3289);_0x2842b0['style']=selectModifyStyle,_0x2842b0['filter']=_0x20bcb3=>{var _0x2ea04c=_0x46a6df;if(!_0x20bcb3['isSelected'])return![];if(this[_0x2ea04c(0x16b)]==undefined||this['sourceFeatures'][_0x2ea04c(0x16d)]==0x0)return![];return this['sourceFeatures'][_0x2ea04c(0x174)](_0x4da474=>_0x4da474[_0x2ea04c(0x17a)]()===_0x20bcb3[_0x2ea04c(0x17a)]());},super(_0x2842b0),this[_0x46a6df(0x173)]=null,this['sourceFeatures']=_0x5d3289[_0x46a6df(0x161)],this[_0x46a6df(0x16f)]=new a49_0xc3f0f0({'features':this[_0x46a6df(0x172)]()}),this[_0x46a6df(0x162)]=new a49_0x21c70b({'features':this[_0x46a6df(0x172)](),'condition':platformModifierKeyOnly}),this['getFeatures']()['on']('add',_0x3a0b8d=>{var _0x1b3b43=_0x46a6df,_0x5b7bac,_0x3914c7;this[_0x1b3b43(0x173)]=this[_0x1b3b43(0x15f)](),(_0x5b7bac=this[_0x1b3b43(0x15f)]())===null||_0x5b7bac===void 0x0?void 0x0:_0x5b7bac[_0x1b3b43(0x168)](this[_0x1b3b43(0x16f)]),(_0x3914c7=this[_0x1b3b43(0x15f)]())===null||_0x3914c7===void 0x0?void 0x0:_0x3914c7[_0x1b3b43(0x168)](this[_0x1b3b43(0x162)]);}),this[_0x46a6df(0x172)]()['on']('remove',_0x49d05b=>{var _0x10d237=_0x46a6df,_0xa0cb93,_0x36aca3;(_0xa0cb93=this[_0x10d237(0x15f)]())===null||_0xa0cb93===void 0x0?void 0x0:_0xa0cb93[_0x10d237(0x170)](this[_0x10d237(0x16f)]),(_0x36aca3=this[_0x10d237(0x15f)]())===null||_0x36aca3===void 0x0?void 0x0:_0x36aca3[_0x10d237(0x170)](this[_0x10d237(0x162)]),this[_0x10d237(0x15f)]()[_0x10d237(0x15e)]();});}[a49_0x168d5c(0x164)](_0xe7a554){var _0x3bb6f6=a49_0x168d5c;super['setMap'](_0xe7a554),!_0xe7a554&&this[_0x3bb6f6(0x173)]&&(this['map'][_0x3bb6f6(0x170)](this[_0x3bb6f6(0x16f)]),this[_0x3bb6f6(0x173)][_0x3bb6f6(0x170)](this[_0x3bb6f6(0x162)]));}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a50_0x2da0(_0xda5d16,_0x3bb5ce){const _0x38c884=a50_0x38c8();return a50_0x2da0=function(_0x2da032,_0x2701f0){_0x2da032=_0x2da032-0x75;let _0x11e185=_0x38c884[_0x2da032];return _0x11e185;},a50_0x2da0(_0xda5d16,_0x3bb5ce);}const a50_0x303de2=a50_0x2da0;(function(_0x1f7a35,_0x1d2c1f){const _0xc8dccd=a50_0x2da0,_0x1e47ec=_0x1f7a35();while(!![]){try{const _0x190f28=parseInt(_0xc8dccd(0xb9))/0x1+parseInt(_0xc8dccd(0xbe))/0x2+parseInt(_0xc8dccd(0xc7))/0x3+parseInt(_0xc8dccd(0x8e))/0x4*(parseInt(_0xc8dccd(0x91))/0x5)+parseInt(_0xc8dccd(0x8c))/0x6+-parseInt(_0xc8dccd(0xb2))/0x7*(parseInt(_0xc8dccd(0xa5))/0x8)+-parseInt(_0xc8dccd(0x90))/0x9;if(_0x190f28===_0x1d2c1f)break;else _0x1e47ec['push'](_0x1e47ec['shift']());}catch(_0x260edc){_0x1e47ec['push'](_0x1e47ec['shift']());}}}(a50_0x38c8,0xa59c6));import a50_0xbaf559 from'./Draw';import a50_0x270e32 from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x3a617c from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';function a50_0x38c8(){const _0x7f3a40=['getLayerById','getSelectedFeatures','getArray','url','holdCtrl','addTempLayer','MultiLineString','ctrlKey','SELECTSTART','selectTempLayer','MultiPoint','push','onInternal','Point','message','1322010OojaAE','drawEnd','187368qtNiFt','seletctEditeFeature','1879722hfMMTm','65OnOvxD','selectGeom','currentLayers','selectedPolygonFeatures','getType','pointStyle','cancePointStyle','fromType','filter','copy','layerInfo','pixelDistance','selectLayer','union','addEventListener','polygonStyle','setSelectLayers','selectedLineFeatures','getPolygonTempLayer','getView','8dqOAoS','allSelectedFeatures','selectedPointFeatures','map','selectStart','length','feature','selected','layerType','polygonFeatures','getCode','getProjection','Polygon','9164967LhVrfX','tipText','pointFeatures','error','selectIndex','dispatchEvent','forEach','396224CNHVoE','getMap','lineStyle','getPointTempLayer','getGeometry','27060eLwGib','import','lineFeatures','keydown','setStyle','MultiPolygon','canceLineStyle','getVisible','addFeatures','2872338OogNke','cancePolygonStyle','LineString','selectLayers','getLineTempLayer','layerId','SELECTED','coordinates','draw'];a50_0x38c8=function(){return _0x7f3a40;};return a50_0x38c8();}const SelectEventType={'SELECTSTART':a50_0x303de2(0xa9),'SELECTED':a50_0x303de2(0xac)};export class SelectEvent extends a50_0x270e32{constructor(_0x5669d1,_0x21ae24,_0x41ba5c,_0x1d9645,_0x38a3a,_0x1f6d86,_0x3b4519,_0x5592b3,_0x2674b7){const _0x573767=a50_0x303de2;super(_0x5669d1),this[_0x573767(0x92)]=_0x41ba5c,this[_0x573767(0x7b)]=_0x1d9645,this[_0x573767(0xb4)]=_0x38a3a,this[_0x573767(0xc0)]=_0x1f6d86,this[_0x573767(0xae)]=_0x3b4519,this['allFeatures']=_0x5592b3,this[_0x573767(0xb5)]=_0x2674b7,this[_0x573767(0x81)]=_0x21ae24;}}export default class Select extends a50_0xbaf559{constructor(_0x22d833,_0x439cab){const _0x1bf3d0=a50_0x303de2;super(_0x22d833,{'tipText':_0x439cab===null||_0x439cab===void 0x0?void 0x0:_0x439cab[_0x1bf3d0(0xb3)]}),this[_0x1bf3d0(0xa7)]=[],this[_0x1bf3d0(0xa2)]=[],this[_0x1bf3d0(0x94)]=[],this[_0x1bf3d0(0xa6)]=[];const _0xde145d=_0x439cab||{};this[_0x1bf3d0(0x82)]=_0xde145d[_0x1bf3d0(0x82)]||![],this[_0x1bf3d0(0x93)]=_0xde145d[_0x1bf3d0(0x77)],this['selectTempLayer']=_0xde145d['selectTempLayer']===undefined?!![]:_0xde145d[_0x1bf3d0(0x86)],this[_0x1bf3d0(0x9c)]=_0xde145d[_0x1bf3d0(0x9c)]===undefined?0x5:_0xde145d['pixelDistance'],this['pointStyle']=_0xde145d['pointStyle']?getStyle(_0xde145d[_0x1bf3d0(0x96)]):getSelectPointStyle(),this[_0x1bf3d0(0x97)]=_0xde145d[_0x1bf3d0(0x97)]?getStyle(_0xde145d[_0x1bf3d0(0x97)]):getSelectCancePointStyle(),this['lineStyle']=_0xde145d[_0x1bf3d0(0xbb)]?getStyle(_0xde145d[_0x1bf3d0(0xbb)]):getSelectLineStyle(),this[_0x1bf3d0(0xc4)]=_0xde145d['canceLineStyle']?getStyle(_0xde145d[_0x1bf3d0(0xc4)]):getSelectCancelLineStyle(),this[_0x1bf3d0(0xa0)]=_0xde145d[_0x1bf3d0(0xa0)]?getStyle(_0xde145d[_0x1bf3d0(0xa0)]):getSelectPolygonStyle(),this[_0x1bf3d0(0x75)]=_0xde145d[_0x1bf3d0(0x75)]?getStyle(_0xde145d[_0x1bf3d0(0x75)]):getSelectCancelPolygonStyle(),this[_0x1bf3d0(0x81)]=![];let _0x5d4a81;this['on']=this[_0x1bf3d0(0x89)],this['on'](_0x1bf3d0(0x8d),async _0xda0d09=>{const _0x11be6f=_0x1bf3d0,_0x38cbd1=this[_0x11be6f(0x81)],_0x2e0fbb=this[_0x11be6f(0xba)]();if(!_0x2e0fbb)return;try{let _0x1d31f0=undefined;if(!_0xda0d09[_0x11be6f(0xab)]&&_0xda0d09['coordinates']&&_0xda0d09[_0x11be6f(0x7b)][_0x11be6f(0xaa)]==0x1)_0x1d31f0=bufferPixel(new Point(_0xda0d09[_0x11be6f(0x7b)][0x0]),this['pixelDistance'],_0x2e0fbb);else _0xda0d09[_0x11be6f(0xab)]&&(_0x1d31f0=_0xda0d09['feature'][_0x11be6f(0xbd)]());if(!_0x1d31f0)throw new Error('未获取到几何');this[_0x11be6f(0xb7)](new SelectEvent(SelectEventType[_0x11be6f(0x85)],_0x38cbd1,_0x1d31f0)),this['selectedPointFeatures']=[],this[_0x11be6f(0xa2)]=[],this[_0x11be6f(0x94)]=[],this[_0x11be6f(0xa6)]=[],this[_0x11be6f(0x86)]&&this[_0x11be6f(0x8f)](_0x1d31f0),_0x5d4a81&&clearTimeout(_0x5d4a81),_0x5d4a81=setTimeout(async()=>{const _0x12aa7b=_0x11be6f;await this[_0x12aa7b(0x9d)](_0x1d31f0),this[_0x12aa7b(0xb7)](new SelectEvent(SelectEventType['SELECTED'],_0x38cbd1,_0x1d31f0,_0xda0d09[_0x12aa7b(0x7b)],this[_0x12aa7b(0xa7)],this[_0x12aa7b(0xa2)],this[_0x12aa7b(0x94)],this[_0x12aa7b(0xa6)]));},0x46);}catch(_0x3ccbc2){this['dispatchEvent'](new SelectEvent(SelectEventType[_0x11be6f(0x7a)],_0x38cbd1,undefined,_0xda0d09['coordinates'],this[_0x11be6f(0xa7)],this['selectedLineFeatures'],this['selectedPolygonFeatures'],this[_0x11be6f(0xa6)],_0x3ccbc2[_0x11be6f(0x8b)]));}}),window[_0x1bf3d0(0x9f)](_0x1bf3d0(0xc1),_0x502a14=>{const _0x2cbdda=_0x1bf3d0;_0x502a14[_0x2cbdda(0x84)]&&(this[_0x2cbdda(0x81)]=!![]);}),window['addEventListener']('keyup',_0x4685b2=>{const _0x366866=_0x1bf3d0;this[_0x366866(0x81)]=![];});}[a50_0x303de2(0xa1)](_0x1472e8){this['currentLayers']=_0x1472e8;}async[a50_0x303de2(0x9d)](_0x5305eb){const _0x412647=a50_0x303de2;var _0x3c8bdb;const _0x3efa00=this[_0x412647(0xba)]();let _0x3b2ccb=[];if(this[_0x412647(0x93)]&&this[_0x412647(0x93)][_0x412647(0xaa)]>0x0)_0x3b2ccb=this['currentLayers'];else{let _0xd2fd5e=_0x3efa00['getLayers']()[_0x412647(0x7f)]();_0xd2fd5e=_0xd2fd5e[_0x412647(0x99)](_0x8380ec=>{const _0x1f824f=_0x412647,_0x313fe4=_0x8380ec['layerInfo'];if(!_0x313fe4)return![];return _0x8380ec['getVisible']()==!![]&&_0x313fe4[_0x1f824f(0xb6)]!=undefined&&_0x313fe4['selectIndex']!='';}),_0x3b2ccb=_0xd2fd5e[_0x412647(0xa8)](_0x3dac81=>{const _0x2b7b09=_0x412647;return _0x3dac81[_0x2b7b09(0x9b)];});}if(!_0x3b2ccb||_0x3b2ccb[_0x412647(0xaa)]==0x0)return;const _0x5bbddc=_0x3efa00[_0x412647(0xa4)]()[_0x412647(0xb0)]()[_0x412647(0xaf)](),_0x18e33f=_0x3efa00[_0x412647(0xa4)]()['getResolution']();for(let _0x1a92f2=0x0,_0x1e374b=_0x3b2ccb[_0x412647(0xaa)];_0x1a92f2<_0x1e374b;_0x1a92f2++){const _0x296648=_0x3b2ccb[_0x1a92f2],_0x369f94=_0x3efa00[_0x412647(0x7d)](_0x296648['id']);if(!_0x369f94||_0x369f94[_0x412647(0xc5)]()==![]||!_0x296648||!_0x296648[_0x412647(0x80)]||!_0x296648[_0x412647(0xb6)])continue;let _0x192731=await selectFeaturesByGeo(_0x5305eb,_0x5bbddc,_0x296648[_0x412647(0x80)],_0x296648['selectIndex'],_0x296648[_0x412647(0xad)],_0x296648['loadFilter'],_0x18e33f);if(_0x192731[_0x412647(0xaa)]>0x0){this[_0x412647(0xa6)][_0x412647(0x88)](..._0x192731);let _0x496b53=_0x3efa00[_0x412647(0xa3)](),_0x56c7fc=this[_0x412647(0xa0)];switch((_0x3c8bdb=_0x192731[0x0][_0x412647(0xbd)]())===null||_0x3c8bdb===void 0x0?void 0x0:_0x3c8bdb[_0x412647(0x95)]()){case _0x412647(0x8a):case _0x412647(0x87):this['selectedPointFeatures']['push'](..._0x192731),_0x496b53=_0x3efa00[_0x412647(0xbc)](),_0x56c7fc=this['pointStyle'];break;case'LineString':case'MultiLineString':this[_0x412647(0xa2)][_0x412647(0x88)](..._0x192731),_0x496b53=_0x3efa00[_0x412647(0x78)](),_0x56c7fc=this[_0x412647(0xbb)];break;case _0x412647(0xb1):case'MultiPolygon':this[_0x412647(0x94)][_0x412647(0x88)](..._0x192731),_0x496b53=_0x3efa00['getPolygonTempLayer'](),_0x56c7fc=this[_0x412647(0xa0)];break;default:break;}const _0xd1d09=_0x496b53['getSource']();_0xd1d09&&(_0x192731[_0x412647(0xb8)](_0x48ab01=>{const _0x3bb3ad=_0x412647;_0x48ab01[_0x3bb3ad(0x79)]=_0x296648['id'],_0x48ab01['tempLayer']=_0x496b53,_0x48ab01[_0x3bb3ad(0xc2)](_0x56c7fc);}),this[_0x412647(0x82)]&&_0xd1d09[_0x412647(0xc6)](_0x192731));}}}[a50_0x303de2(0x8f)](_0x17a472){const _0x5a5483=a50_0x303de2,_0x29a07d=new a50_0x3a617c(this[_0x5a5483(0xba)]()),_0x2f3cdd=_0x29a07d[_0x5a5483(0x7e)]();if(!_0x2f3cdd||_0x2f3cdd[_0x5a5483(0xaa)]===0x0)return[];const _0x129e23=[_0x5a5483(0x9a),'cut',_0x5a5483(0x7c),_0x5a5483(0xbf),_0x5a5483(0x9e)],_0x5da909=[];for(const _0x2cb6e1 of _0x2f3cdd){if(!_0x2cb6e1||!_0x2cb6e1[_0x5a5483(0x98)]||!_0x129e23['includes'](_0x2cb6e1[_0x5a5483(0x98)]))continue;const _0x1a0cd0=_0x2cb6e1[_0x5a5483(0xbd)]();if(!_0x1a0cd0)continue;if(!intersects(_0x1a0cd0,_0x17a472))continue;let _0x3d46e0=this[_0x5a5483(0xa0)];this[_0x5a5483(0xa6)][_0x5a5483(0x88)](_0x2cb6e1);switch(_0x1a0cd0[_0x5a5483(0x95)]()){case _0x5a5483(0x8a):case _0x5a5483(0x87):this[_0x5a5483(0xa7)][_0x5a5483(0x88)](_0x2cb6e1),_0x3d46e0=this[_0x5a5483(0x96)];break;case _0x5a5483(0x76):case _0x5a5483(0x83):this['selectedLineFeatures'][_0x5a5483(0x88)](_0x2cb6e1),_0x3d46e0=this['lineStyle'];break;case _0x5a5483(0xb1):case _0x5a5483(0xc3):this[_0x5a5483(0x94)][_0x5a5483(0x88)](_0x2cb6e1),_0x3d46e0=this['polygonStyle'];break;default:break;}_0x2cb6e1[_0x5a5483(0xc2)](_0x3d46e0);}return _0x5da909;}}
|
package/interaction/Split.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x1ba904=a51_0x4fbb;(function(_0x7fa2e1,_0xfbd638){const _0x2748de=a51_0x4fbb,_0x212390=_0x7fa2e1();while(!![]){try{const _0x366352=-parseInt(_0x2748de(0x1de))/0x1*(parseInt(_0x2748de(0x1d6))/0x2)+-parseInt(_0x2748de(0x1c2))/0x3*(parseInt(_0x2748de(0x1ce))/0x4)+-parseInt(_0x2748de(0x1bd))/0x5*(parseInt(_0x2748de(0x1d7))/0x6)+-parseInt(_0x2748de(0x1d5))/0x7+-parseInt(_0x2748de(0x1c1))/0x8+parseInt(_0x2748de(0x1c5))/0x9*(parseInt(_0x2748de(0x1cd))/0xa)+parseInt(_0x2748de(0x1bc))/0xb;if(_0x366352===_0xfbd638)break;else _0x212390['push'](_0x212390['shift']());}catch(_0x4887e3){_0x212390['push'](_0x212390['shift']());}}}(a51_0x3cef,0x8345e));import a51_0x4896b6 from'./Draw';function a51_0x3cef(){const _0x5eb8d8=['setGeometry','369qDckgL','getSource','未获取到绘制的分割线','length','SPLITSTART','onInternal','message','tempLayer','17140GxGjye','8CJRtDj','未获取到地图对象','drawEnd','getMap','error','splited','splitFeatures','6913088pWODir','1410820tFUnCq','66sYzmMq','getGeometry','未获取到分割要素','cut','clone','polyline','dispatchEvent','1XOoyBE','tipText','setFeatures','addTempLayer','44166793LQAaPW','381675ttSQkr','sourceFeatures','push','splitLine','1687744FvdDvu','1206144XsmJWE','SPLITED'];a51_0x3cef=function(){return _0x5eb8d8;};return a51_0x3cef();}import a51_0x5d7670 from'ol/events/Event';import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';function a51_0x4fbb(_0xe8346,_0x50f6ac){const _0x3cef8e=a51_0x3cef();return a51_0x4fbb=function(_0x4fbb46,_0x1dc276){_0x4fbb46=_0x4fbb46-0x1ba;let _0x3d909e=_0x3cef8e[_0x4fbb46];return _0x3d909e;},a51_0x4fbb(_0xe8346,_0x50f6ac);}import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':'splitStart','SPLITED':a51_0x1ba904(0x1d3)};export class SplitEvent extends a51_0x5d7670{constructor(_0x2d30b3,_0x55b261,_0x356c4d,_0x561547){const _0x1f5814=a51_0x1ba904;super(_0x2d30b3),this[_0x1f5814(0x1c0)]=_0x55b261,this['features']=_0x356c4d,this[_0x1f5814(0x1d2)]=_0x561547;}}export default class Split extends a51_0x4896b6{constructor(_0x5b48f0,_0x26de4d){const _0x1d9e94=a51_0x1ba904,_0x358e1a=(_0x26de4d===null||_0x26de4d===void 0x0?void 0x0:_0x26de4d['splitLineStyle'])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2};super(_0x1d9e94(0x1dc),{'tipText':_0x26de4d===null||_0x26de4d===void 0x0?void 0x0:_0x26de4d[_0x1d9e94(0x1df)],'style':_0x358e1a}),this[_0x1d9e94(0x1be)]=_0x5b48f0;const _0x12480b=_0x26de4d||{};this['addTempLayer']=_0x12480b[_0x1d9e94(0x1bb)]||![],this['on']=this[_0x1d9e94(0x1ca)],this['on'](_0x1d9e94(0x1d0),async _0x37bb41=>{const _0x29b8d4=_0x1d9e94;var _0x165898;const _0xe98af9=this[_0x29b8d4(0x1d1)]();let _0x2060ff=(_0x165898=_0x37bb41['feature'])===null||_0x165898===void 0x0?void 0x0:_0x165898['getGeometry']();!_0x2060ff&&this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType['SPLITED'],undefined,undefined,_0x29b8d4(0x1c7)));let _0x2016c8=_0x2060ff;!_0xe98af9&&this['dispatchEvent'](new SplitEvent(SplitEventType[_0x29b8d4(0x1c3)],_0x2016c8,undefined,_0x29b8d4(0x1cf)));(!this[_0x29b8d4(0x1be)]||this[_0x29b8d4(0x1be)][_0x29b8d4(0x1c8)]===0x0)&&this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType[_0x29b8d4(0x1c3)],_0x2016c8,undefined,_0x29b8d4(0x1d9)));try{this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType[_0x29b8d4(0x1c9)],_0x2016c8));const _0x4b6b6=this[_0x29b8d4(0x1d4)](_0x2016c8);this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType[_0x29b8d4(0x1c3)],_0x2016c8,_0x4b6b6));}catch(_0x20d293){this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType[_0x29b8d4(0x1c3)],_0x2016c8,undefined,_0x20d293[_0x29b8d4(0x1cb)]));}});}[a51_0x1ba904(0x1d4)](_0x54bbaf){const _0x4a7818=a51_0x1ba904;var _0x55c7ca;const _0x3b7ee6=[],_0x1aa07e=(_0x55c7ca=this[_0x4a7818(0x1be)][0x0][_0x4a7818(0x1cc)])===null||_0x55c7ca===void 0x0?void 0x0:_0x55c7ca[_0x4a7818(0x1c6)]();for(let _0x12daba=0x0;_0x12daba<this[_0x4a7818(0x1be)][_0x4a7818(0x1c8)];_0x12daba++){const _0x3514a7=this[_0x4a7818(0x1be)][_0x12daba],_0x1d8ec2=_0x3514a7[_0x4a7818(0x1d8)]();let _0x4bcca7=[];if(_0x1d8ec2 instanceof Polygon||_0x1d8ec2 instanceof MultiPolygon)_0x4bcca7=jstlSplit(_0x1d8ec2,_0x54bbaf);else(_0x1d8ec2 instanceof LineString||_0x1d8ec2 instanceof MultiLineString)&&(_0x4bcca7=splitLineByLine(_0x1d8ec2,_0x54bbaf));if(_0x4bcca7[_0x4a7818(0x1c8)]>0x1){_0x3514a7[_0x4a7818(0x1c4)](_0x4bcca7[0x0]),_0x3b7ee6[_0x4a7818(0x1bf)](_0x3514a7);for(let _0x4eb4eb=0x1;_0x4eb4eb<_0x4bcca7['length'];_0x4eb4eb++){const _0x249e98=_0x3514a7[_0x4a7818(0x1db)]();_0x249e98['layerId']=undefined,_0x249e98['fromType']=_0x4a7818(0x1da),_0x249e98[_0x4a7818(0x1cc)]=_0x3514a7[_0x4a7818(0x1cc)],_0x249e98[_0x4a7818(0x1c4)](_0x4bcca7[_0x4eb4eb]),this[_0x4a7818(0x1bb)]&&(_0x1aa07e===null||_0x1aa07e===void 0x0?void 0x0:_0x1aa07e['addFeature'](_0x249e98)),_0x3b7ee6[_0x4a7818(0x1bf)](_0x249e98);}}}return _0x3b7ee6;}[a51_0x1ba904(0x1ba)](_0x20d79d){this['sourceFeatures']=_0x20d79d;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d70b7,_0x173b90){const _0xf93e0d=a52_0x2075,_0x35fda1=_0x4d70b7();while(!![]){try{const _0x2e7a45=-parseInt(_0xf93e0d(0xc7))/0x1+parseInt(_0xf93e0d(0xc3))/0x2+parseInt(_0xf93e0d(0xb8))/0x3+parseInt(_0xf93e0d(0xb9))/0x4*(-parseInt(_0xf93e0d(0xaa))/0x5)+parseInt(_0xf93e0d(0xbf))/0x6+parseInt(_0xf93e0d(0xb0))/0x7+-parseInt(_0xf93e0d(0xba))/0x8*(parseInt(_0xf93e0d(0xc4))/0x9);if(_0x2e7a45===_0x173b90)break;else _0x35fda1['push'](_0x35fda1['shift']());}catch(_0x31e124){_0x35fda1['push'](_0x35fda1['shift']());}}}(a52_0x4298,0x8518c));import a52_0x4d38d1 from'ol/source/ImageArcGISRest';function a52_0x2075(_0x5a6f12,_0x2f5656){const _0x42986d=a52_0x4298();return a52_0x2075=function(_0x207589,_0x4a3f37){_0x207589=_0x207589-0xa9;let _0x27fb6b=_0x42986d[_0x207589];return _0x27fb6b;},a52_0x2075(_0x5a6f12,_0x2f5656);}import{Image as a52_0x25e892}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a52_0x25e892{constructor(_0x33969b,_0x3785a5){const _0x1d3ea5=a52_0x2075;var _0x2d4ba0;let _0x20d283={'LAYERS':_0x1d3ea5(0xc6)+((_0x2d4ba0=_0x33969b[_0x1d3ea5(0xb5)])===null||_0x2d4ba0===void 0x0?void 0x0:_0x2d4ba0[_0x1d3ea5(0xb2)](','))};if(_0x33969b[_0x1d3ea5(0xad)]&&_0x33969b[_0x1d3ea5(0xbd)]){const _0x1681e4={};_0x1681e4[_0x33969b[_0x1d3ea5(0xbd)]]=_0x33969b[_0x1d3ea5(0xad)],_0x20d283[_0x1d3ea5(0xbe)]=JSON[_0x1d3ea5(0xc2)](_0x1681e4);}const _0x4ccffa=[_0x3785a5[_0x1d3ea5(0xc1)][_0x1d3ea5(0xbb)],_0x3785a5['initialExtent'][_0x1d3ea5(0xc5)],_0x3785a5[_0x1d3ea5(0xc1)][_0x1d3ea5(0xbc)],_0x3785a5[_0x1d3ea5(0xc1)][_0x1d3ea5(0xb6)]],_0x1c931d=[_0x3785a5[_0x1d3ea5(0xb1)][_0x1d3ea5(0xbb)],_0x3785a5[_0x1d3ea5(0xb1)][_0x1d3ea5(0xc5)],_0x3785a5[_0x1d3ea5(0xb1)][_0x1d3ea5(0xbc)],_0x3785a5['fullExtent'][_0x1d3ea5(0xb6)]];let _0x5a014b;_0x3785a5[_0x1d3ea5(0xb7)][_0x1d3ea5(0xaf)]?_0x5a014b=registerProj('EPSG:'+_0x3785a5[_0x1d3ea5(0xb7)][_0x1d3ea5(0xaf)],_0x1c931d):_0x5a014b=registerProj(_0x3785a5['spatialReference']['wkt'],_0x1c931d),super({'opacity':_0x33969b[_0x1d3ea5(0xa9)],'zIndex':_0x33969b[_0x1d3ea5(0xc0)],'source':new a52_0x4d38d1({'crossOrigin':_0x1d3ea5(0xb3),'projection':_0x5a014b,'ratio':0x1,'url':_0x33969b[_0x1d3ea5(0xac)],'params':_0x20d283})}),this['id']=_0x33969b['id'],this[_0x1d3ea5(0xc1)]=_0x4ccffa,this[_0x1d3ea5(0xae)]=_0x5a014b,this['layerInfo']=_0x33969b;}['setFilter'](_0x1d45d7){const _0x4c3410=a52_0x2075;var _0x1897be;const _0xfd3f47={};this['layerInfo'][_0x4c3410(0xbd)]&&(_0xfd3f47[this[_0x4c3410(0xb4)][_0x4c3410(0xbd)]]=_0x1d45d7),(_0x1897be=this[_0x4c3410(0xab)]())===null||_0x1897be===void 0x0?void 0x0:_0x1897be['updateParams']({'layerDefs':JSON[_0x4c3410(0xc2)](_0x1d45d7)});}}function a52_0x4298(){const _0x126ec6=['initialExtent','stringify','2089890ENFJYA','45702Azmfcu','ymin','show:','226648uLLtEi','opacity','359365eHKlRl','getSource','url','loadFilter','projection','wkid','4178496tnJMPi','fullExtent','join','anonymous','layerInfo','sublayers','ymax','spatialReference','2177382tQBLFS','36TWaPGD','3176cpjPtY','xmin','xmax','selectIndex','layerDefs','6401808PhCSKr','mapIndex'];a52_0x4298=function(){return _0x126ec6;};return a52_0x4298();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x2d100b=a53_0x10e1;(function(_0x35a185,_0x59e69e){const _0x2c3081=a53_0x10e1,_0x113db3=_0x35a185();while(!![]){try{const _0x2efc2d=-parseInt(_0x2c3081(0xda))/0x1*(-parseInt(_0x2c3081(0xde))/0x2)+parseInt(_0x2c3081(0xf7))/0x3*(-parseInt(_0x2c3081(0xe9))/0x4)+parseInt(_0x2c3081(0xd0))/0x5*(parseInt(_0x2c3081(0x107))/0x6)+-parseInt(_0x2c3081(0xd5))/0x7+-parseInt(_0x2c3081(0xed))/0x8*(parseInt(_0x2c3081(0x105))/0x9)+parseInt(_0x2c3081(0xd2))/0xa+parseInt(_0x2c3081(0x101))/0xb*(parseInt(_0x2c3081(0xee))/0xc);if(_0x2efc2d===_0x59e69e)break;else _0x113db3['push'](_0x113db3['shift']());}catch(_0x56face){_0x113db3['push'](_0x113db3['shift']());}}}(a53_0x77c5,0x19d9d));import a53_0x43eec0 from'ol/format/EsriJSON';import a53_0x48d8a8 from'ol/source/Vector';function a53_0x10e1(_0xadf7,_0x128f46){const _0x77c56e=a53_0x77c5();return a53_0x10e1=function(_0x10e1ac,_0x1966a5){_0x10e1ac=_0x10e1ac-0xcd;let _0x11dfb7=_0x77c56e[_0x10e1ac];return _0x11dfb7;},a53_0x10e1(_0xadf7,_0x128f46);}function a53_0x77c5(){const _0x4df89b=['/query','loadFilter','setStyle','wkid','url','mapIndex','501876AsSnQq','ymax','setLayers','defaultSymbol','5912MuBZHx','264780lxPbAo',',\x22ymax\x22:','field1','{\x22xmin\x22:','EPSG:','forEach','setFilter','xmax','xmin','3OpPOzH','createArcGISFeatureLayer','fullExtent','&outSR=','where=','layerInfo','error','push','stringify','then','77AwkTgI',',\x22xmax\x22:','spatialReference','readFeatures','927XSMixC','drawingInfo','6mLVcfQ','showIndex','renderer','projection','getCode','899600ndDnkB','1=1','324510GtWSkz','addFeatures','uniqueValue','1275806vuWMGz','&geometryType=esriGeometryEnvelope&inSR=','uniqueValueInfos','simple','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','122903INxasA','find','f\x20=\x20json\x20&\x20','initialExtent','2jGszyz','symbol','ymin','split','type'];a53_0x77c5=function(){return _0x4df89b;};return a53_0x77c5();}import{Vector as a53_0x999d43}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x26d020}from'ol/loadingstrategy';import a53_0x2095c9 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0x1bd9de from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x2095c9{constructor(_0x49ba54,_0x539993,_0x5c02d2){const _0x5bd648=a53_0x10e1,_0x398c6d=[_0x539993[_0x5bd648(0xdd)][_0x5bd648(0xf6)],_0x539993[_0x5bd648(0xdd)][_0x5bd648(0xe0)],_0x539993['initialExtent'][_0x5bd648(0xf5)],_0x539993[_0x5bd648(0xdd)][_0x5bd648(0xea)]],_0x40265e=[_0x539993[_0x5bd648(0xf9)][_0x5bd648(0xf6)],_0x539993[_0x5bd648(0xf9)][_0x5bd648(0xe0)],_0x539993['fullExtent'][_0x5bd648(0xf5)],_0x539993[_0x5bd648(0xf9)][_0x5bd648(0xea)]];let _0x16b6b1;_0x539993[_0x5bd648(0x103)]['wkid']?_0x16b6b1=registerProj(_0x5bd648(0xf2)+_0x539993[_0x5bd648(0x103)][_0x5bd648(0xe6)],_0x40265e):_0x16b6b1=registerProj(_0x539993[_0x5bd648(0x103)]['wkt'],_0x40265e);let _0x26850b=[];super({'zIndex':_0x49ba54[_0x5bd648(0xe8)]});for(let _0x659455 of _0x5c02d2){let _0x234370=this[_0x5bd648(0xf8)](_0x49ba54,_0x659455);_0x26850b[_0x5bd648(0xfe)](_0x234370);}this[_0x5bd648(0xeb)](new a53_0x1bd9de(_0x26850b)),this['id']=_0x49ba54['id'],this['initialExtent']=_0x398c6d,this[_0x5bd648(0xce)]=_0x16b6b1,this['layerInfo']=_0x49ba54;}['createArcGISFeatureLayer'](_0x11efd1,_0x4adc99){const _0x221bad=a53_0x10e1;var _0x1545bd=new a53_0x43eec0();let _0x327f19=new a53_0x48d8a8({'loader':function(_0x5965e9,_0x402ae,_0x4c5762){const _0x9527f0=a53_0x10e1;let _0x3e27b0=_0x9527f0(0xd1);_0x11efd1[_0x9527f0(0xe4)]&&(_0x3e27b0=typeof _0x11efd1['loadFilter']==='string'?_0x11efd1[_0x9527f0(0xe4)]:JSON[_0x9527f0(0xff)](_0x11efd1[_0x9527f0(0xe4)]));let _0x1986bd=_0x4c5762[_0x9527f0(0xcf)](),_0x3f0e6c=_0x1986bd[_0x9527f0(0xe1)](':')[0x1];var _0x9b9040=appendPath(_0x4adc99[_0x9527f0(0xe7)],_0x9527f0(0xe3));_0x9b9040=appendParam(_0x9b9040,_0x9527f0(0xdc)+_0x9527f0(0xfb)+encodeURIComponent(_0x3e27b0)+_0x9527f0(0xd9)+encodeURIComponent(_0x9527f0(0xf1)+_0x5965e9[0x0]+',\x22ymin\x22:'+_0x5965e9[0x1]+_0x9527f0(0x102)+_0x5965e9[0x2]+_0x9527f0(0xef)+_0x5965e9[0x3]+',\x22spatialReference\x22:{\x22wkid\x22:'+_0x3f0e6c+'}}')+_0x9527f0(0xd6)+_0x3f0e6c+'&outFields=*'+_0x9527f0(0xfa)+_0x3f0e6c),jsonp(_0x9b9040)[_0x9527f0(0x100)](_0x141b62=>{const _0x214f56=_0x9527f0;if(_0x141b62[_0x214f56(0xfd)])console['log'](_0x141b62);else{var _0x168501=_0x1545bd[_0x214f56(0x104)](_0x141b62,{'featureProjection':_0x4c5762});_0x168501['length']>0x0&&(_0x4adc99['drawingInfo'][_0x214f56(0xcd)][_0x214f56(0xe2)]==_0x214f56(0xd4)&&_0x168501[_0x214f56(0xf3)](function(_0x3fc948){const _0x5a4a77=_0x214f56;var _0x30d002=_0x3fc948['get'](_0x4adc99['drawingInfo']['renderer'][_0x5a4a77(0xf0)]);const _0x25c33a=_0x4adc99[_0x5a4a77(0x106)][_0x5a4a77(0xcd)][_0x5a4a77(0xd7)][_0x5a4a77(0xdb)](_0x3be2b1=>_0x3be2b1['value']==_0x30d002);let _0x4be78e;_0x25c33a?_0x4be78e=transformedEsriStyle(_0x25c33a['symbol']):_0x4be78e=transformedEsriStyle(_0x4adc99['drawingInfo'][_0x5a4a77(0xcd)][_0x5a4a77(0xec)]),_0x3fc948[_0x5a4a77(0xe5)](_0x4be78e);}),_0x327f19[_0x214f56(0xd3)](_0x168501));}});},'strategy':a53_0x26d020(createXYZ({'tileSize':0x200}))}),_0x55e136=new a53_0x999d43({'source':_0x327f19,'zIndex':_0x11efd1[_0x221bad(0x108)]});if(_0x4adc99[_0x221bad(0x106)][_0x221bad(0xcd)][_0x221bad(0xe2)]==_0x221bad(0xd8)&&_0x4adc99[_0x221bad(0x106)]['renderer'][_0x221bad(0xdf)]){let _0x24e2ff=transformedEsriStyle(_0x4adc99[_0x221bad(0x106)]['renderer'][_0x221bad(0xdf)]);_0x55e136[_0x221bad(0xe5)](_0x24e2ff);}return _0x55e136;}[a53_0x2d100b(0xf4)](_0x303e8c){const _0x58a667=a53_0x2d100b;this[_0x58a667(0xfc)][_0x58a667(0xe4)]=_0x303e8c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b808b,_0x38b930){const _0x2fa12d=a54_0x44d3,_0x4df85=_0x4b808b();while(!![]){try{const _0x193c01=-parseInt(_0x2fa12d(0x18c))/0x1*(-parseInt(_0x2fa12d(0x180))/0x2)+parseInt(_0x2fa12d(0x181))/0x3*(parseInt(_0x2fa12d(0x190))/0x4)+-parseInt(_0x2fa12d(0x183))/0x5+parseInt(_0x2fa12d(0x17d))/0x6+-parseInt(_0x2fa12d(0x18d))/0x7+-parseInt(_0x2fa12d(0x192))/0x8+parseInt(_0x2fa12d(0x182))/0x9;if(_0x193c01===_0x38b930)break;else _0x4df85['push'](_0x4df85['shift']());}catch(_0x366c9b){_0x4df85['push'](_0x4df85['shift']());}}}(a54_0x5f42,0x7f630));import a54_0x112516 from'ol/layer/Tile';function a54_0x44d3(_0x2662c3,_0x140013){const _0x5f4279=a54_0x5f42();return a54_0x44d3=function(_0x44d3f5,_0x24de31){_0x44d3f5=_0x44d3f5-0x17d;let _0x58eab2=_0x5f4279[_0x44d3f5];return _0x58eab2;},a54_0x44d3(_0x2662c3,_0x140013);}import a54_0x1314c3 from'ol/source/XYZ';import a54_0x2653c8 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';function a54_0x5f42(){const _0x11c6ec=['2202282DYuNiE','url','initialExtent','8xRRRlW','59526CowMPC','6847713LYQJCp','2824135QcYHKk','cols','length','push','origin','xmax','mapIndex','lods','rows','47739rLSYgF','966322zlribc','fullExtent','ymax','156zeSgXP','EPSG:','6944392tlxUoT','projection','/tile/{z}/{y}/{x}','tileInfo','spatialReference','xmin','opacity','ymin'];a54_0x5f42=function(){return _0x11c6ec;};return a54_0x5f42();}export default class ArcgisTileLayer extends a54_0x112516{constructor(_0xabb79,_0x5b642f){const _0x288352=a54_0x44d3,_0x5535a2=_0xabb79['url']?_0xabb79[_0x288352(0x17e)]:'',_0x33ae39=appendPath(_0x5535a2,_0x288352(0x194)),_0xb33ea7=[_0x5b642f[_0x288352(0x17f)][_0x288352(0x197)],_0x5b642f[_0x288352(0x17f)][_0x288352(0x199)],_0x5b642f[_0x288352(0x17f)][_0x288352(0x188)],_0x5b642f['initialExtent'][_0x288352(0x18f)]],_0x38d794=[_0x5b642f[_0x288352(0x18e)]['xmin'],_0x5b642f[_0x288352(0x18e)][_0x288352(0x199)],_0x5b642f[_0x288352(0x18e)][_0x288352(0x188)],_0x5b642f['fullExtent'][_0x288352(0x18f)]];let _0x4b0719;_0x5b642f['spatialReference']['wkid']?_0x4b0719=registerProj(_0x288352(0x191)+_0x5b642f[_0x288352(0x196)]['wkid'],_0x38d794):_0x4b0719=registerProj(_0x5b642f[_0x288352(0x196)]['wkt'],_0x38d794);let _0x7e4c3b=[];for(let _0x1b03f2=0x0,_0x513b25=_0x5b642f[_0x288352(0x195)][_0x288352(0x18a)][_0x288352(0x185)];_0x1b03f2<_0x513b25;_0x1b03f2++){_0x7e4c3b[_0x288352(0x186)](_0x5b642f[_0x288352(0x195)]['lods'][_0x1b03f2]['resolution']);}super({'opacity':_0xabb79[_0x288352(0x198)],'zIndex':_0xabb79[_0x288352(0x189)],'maxResolution':_0x7e4c3b[0x0]*0x2,'source':new a54_0x1314c3({'url':_0x33ae39,'projection':_0x4b0719,'crossOrigin':'anonymous','tileGrid':new a54_0x2653c8({'extent':_0x38d794,'origin':[_0x5b642f['tileInfo'][_0x288352(0x187)]['x'],_0x5b642f[_0x288352(0x195)][_0x288352(0x187)]['y']],'resolutions':_0x7e4c3b,'tileSize':[_0x5b642f['tileInfo'][_0x288352(0x18b)],_0x5b642f[_0x288352(0x195)][_0x288352(0x184)]]})})}),this['id']=_0xabb79['id'],this[_0x288352(0x17f)]=_0xb33ea7,this[_0x288352(0x193)]=_0x4b0719,this['layerInfo']=_0xabb79;}}
|