ym-gis-2d 1.0.42 → 1.0.44
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.d.ts.map +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/GeometryUtil.js.map +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_0x24bfce=a43_0x158b;(function(_0x2a5434,_0xf6ba1d){const _0x110806=a43_0x158b,_0x511a20=_0x2a5434();while(!![]){try{const _0x2bfdd5=-parseInt(_0x110806(0xc3))/0x1+-parseInt(_0x110806(0xa5))/0x2*(parseInt(_0x110806(0xcb))/0x3)+parseInt(_0x110806(0xac))/0x4+parseInt(_0x110806(0xb6))/0x5+parseInt(_0x110806(0xaa))/0x6+parseInt(_0x110806(0xa6))/0x7*(-parseInt(_0x110806(0xba))/0x8)+parseInt(_0x110806(0xc1))/0x9;if(_0x2bfdd5===_0xf6ba1d)break;else _0x511a20['push'](_0x511a20['shift']());}catch(_0x5be59a){_0x511a20['push'](_0x511a20['shift']());}}}(a43_0x7988,0x6c38f));import a43_0x1f3c6d from'../entity/Feature';import a43_0x1a8e74 from'ol/layer/Vector';function a43_0x7988(){const _0x2795bb=['push','getLayerById','removeFeature','getTempEditFeatures','layerInfo','1346315hVkxOa','tempLayer','setStyle','currentEditLayer','19648QZiBiH','getEditFeatures','filter','setGeometry','get','getType','map','1261134ZAWZJv','getPolygonTempLayer','287869UsRHOn','getLineTempLayer','setVisible','flashFeatures','layerId','addLayer','getSelectedFeatures','getFeatures','74496rVjnUH','geometryType','removeLayer','flashGeometrys','forEach','kmlImport','isSelected','getPointTempLayer','16oRkgSC','504APPSHy','length','getVisible','features','1239234plFptg','flash_layer','1962832viikuW','addFeatures','getTempSelectedFeatures','readFeature','getSource'];a43_0x7988=function(){return _0x2795bb;};return a43_0x7988();}function a43_0x158b(_0x4017b7,_0x3b027a){const _0x798816=a43_0x7988();return a43_0x158b=function(_0x158bb8,_0x40b3e7){_0x158bb8=_0x158bb8-0xa4;let _0x4e14fb=_0x798816[_0x158bb8];return _0x4e14fb;},a43_0x158b(_0x4017b7,_0x3b027a);}import a43_0xda966d from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0x2de848 from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x1eb72d){const _0x198ed9=a43_0x158b;this[_0x198ed9(0xc0)]=_0x1eb72d;}[a43_0x24bfce(0xbb)](_0x555e3c,_0x1bfa41){const _0x3670da=a43_0x24bfce;if(!this[_0x3670da(0xc0)][_0x3670da(0xb9)])return;let _0x1cab1f;const _0xbadd57=this[_0x3670da(0xc0)][_0x3670da(0xb2)](this[_0x3670da(0xc0)][_0x3670da(0xb9)]['id']);if(!_0xbadd57||!_0xbadd57[_0x3670da(0xb5)])return;switch(_0xbadd57[_0x3670da(0xb5)][_0x3670da(0xcc)]){case 0x1:_0x1cab1f=this[_0x3670da(0xb4)](this[_0x3670da(0xc0)][_0x3670da(0xa4)](),this[_0x3670da(0xc0)]['currentEditLayer']['id'],_0x555e3c,_0x1bfa41);break;case 0x2:_0x1cab1f=this[_0x3670da(0xb4)](this[_0x3670da(0xc0)][_0x3670da(0xc4)](),this[_0x3670da(0xc0)][_0x3670da(0xb9)]['id'],_0x555e3c,_0x1bfa41);break;case 0x3:_0x1cab1f=this[_0x3670da(0xb4)](this[_0x3670da(0xc0)]['getPolygonTempLayer'](),this[_0x3670da(0xc0)]['currentEditLayer']['id'],_0x555e3c,_0x1bfa41);break;default:break;}return _0x1cab1f;}[a43_0x24bfce(0xc9)](_0x39340d,_0x1f495b){const _0x53c34e=a43_0x24bfce;if(_0x39340d){const _0x1ea6e4=this[_0x53c34e(0xc0)]['getLayerById'](_0x39340d);if(!_0x1ea6e4||!_0x1ea6e4[_0x53c34e(0xb5)])return;let _0x3f9992;switch(_0x1ea6e4[_0x53c34e(0xb5)][_0x53c34e(0xcc)]){case 0x1:_0x3f9992=this['getTempSelectedFeatures'](this[_0x53c34e(0xc0)][_0x53c34e(0xa4)](),_0x39340d,_0x1f495b);break;case 0x2:_0x3f9992=this[_0x53c34e(0xae)](this[_0x53c34e(0xc0)][_0x53c34e(0xc4)](),_0x39340d,_0x1f495b);break;case 0x3:_0x3f9992=this['getTempSelectedFeatures'](this[_0x53c34e(0xc0)][_0x53c34e(0xc2)](),_0x39340d,_0x1f495b);break;default:break;}return _0x3f9992;}else{const _0x11b0ec=this[_0x53c34e(0xae)](this[_0x53c34e(0xc0)][_0x53c34e(0xa4)](),_0x39340d,_0x1f495b),_0x110fb5=this[_0x53c34e(0xae)](this['map'][_0x53c34e(0xc4)](),_0x39340d,_0x1f495b),_0x56677e=this[_0x53c34e(0xae)](this['map'][_0x53c34e(0xc2)](),_0x39340d,_0x1f495b);let _0x896247=[];return _0x11b0ec&&(_0x896247=[..._0x896247,..._0x11b0ec]),_0x110fb5&&(_0x896247=[..._0x896247,..._0x110fb5]),_0x56677e&&(_0x896247=[..._0x896247,..._0x56677e]),_0x896247;}}[a43_0x24bfce(0xae)](_0x522fb4,_0x245e5b,_0x449c80){const _0xaff79f=a43_0x24bfce;var _0x5ecb81;let _0x20fd60=(_0x5ecb81=_0x522fb4[_0xaff79f(0xb0)]())===null||_0x5ecb81===void 0x0?void 0x0:_0x5ecb81['getFeatures']();if(!_0x20fd60)return;_0x20fd60['forEach']((_0x4471c8,_0x40d40b,_0x2d9245)=>{_0x4471c8['tempLayer']=_0x522fb4;});_0x449c80!=undefined&&(_0x20fd60=_0x20fd60[_0xaff79f(0xbc)](_0x1aacfe=>_0x1aacfe[_0xaff79f(0xd1)]==_0x449c80));if(_0x245e5b)return _0x20fd60[_0xaff79f(0xbc)](_0x28d0e5=>_0x28d0e5['layerId']==_0x245e5b);return _0x20fd60;}[a43_0x24bfce(0xb4)](_0x4d8b30,_0x34163b,_0x597682,_0x2b1a32){const _0x4295a2=a43_0x24bfce;var _0x2cc701;let _0x49c808=(_0x2cc701=_0x4d8b30[_0x4295a2(0xb0)]())===null||_0x2cc701===void 0x0?void 0x0:_0x2cc701[_0x4295a2(0xca)]();if(!_0x49c808)return;return _0x49c808[_0x4295a2(0xcf)]((_0x624dab,_0x4f8153,_0x4810c1)=>{_0x624dab['tempLayer']=_0x4d8b30;}),_0x597682&&_0x2b1a32&&_0x2b1a32['length']>0x0?_0x49c808=_0x49c808[_0x4295a2(0xbc)](_0x10335b=>_0x10335b[_0x4295a2(0xd1)]==!![]&&(_0x10335b[_0x4295a2(0xc7)]==_0x34163b&&(_0x10335b[_0x4295a2(0xbe)](_0x597682)==undefined||_0x2b1a32['indexOf'](_0x10335b[_0x4295a2(0xbe)](_0x597682))>-0x1)||_0x10335b[_0x4295a2(0xc7)]==undefined)):_0x49c808=_0x49c808=_0x49c808[_0x4295a2(0xbc)](_0x3c30bb=>_0x3c30bb[_0x4295a2(0xd1)]==!![]&&(_0x3c30bb[_0x4295a2(0xc7)]==_0x34163b||_0x3c30bb[_0x4295a2(0xc7)]==undefined)),_0x49c808;}[a43_0x24bfce(0xc6)](_0x5f0add,_0x6bedbd=0x3){const _0x897be0=a43_0x24bfce;var _0x205eb7;let _0x1a9454=new a43_0x1a8e74({'zIndex':0x270f,'source':new a43_0xda966d()});_0x1a9454['id']=_0x897be0(0xab),this[_0x897be0(0xc0)][_0x897be0(0xc8)](_0x1a9454,![]),(_0x205eb7=_0x1a9454[_0x897be0(0xb0)]())===null||_0x205eb7===void 0x0?void 0x0:_0x205eb7[_0x897be0(0xad)](_0x5f0add);let _0x176a59=0x0,_0xf7fe35=setInterval(()=>{const _0xe4a32d=_0x897be0;if(_0x176a59===_0x6bedbd){_0xf7fe35&&clearInterval(_0xf7fe35);const _0x4e1e2d=this[_0xe4a32d(0xc0)]['getLayerById'](_0x1a9454['id']);_0x4e1e2d&&this[_0xe4a32d(0xc0)]['removeLayer'](_0x4e1e2d);return;}if(_0x1a9454[_0xe4a32d(0xa8)]())_0x1a9454[_0xe4a32d(0xc5)](![]);else _0x1a9454[_0xe4a32d(0xc5)](!![]);_0x176a59++;},0x190);}[a43_0x24bfce(0xce)](_0x2390ae,_0x1f3b1a=0x3){const _0xa79169=a43_0x24bfce;var _0xad3989;let _0x43b7f3=new a43_0x1a8e74({'zIndex':0x270f,'source':new a43_0xda966d()});_0x43b7f3['id']=_0xa79169(0xab),this[_0xa79169(0xc0)][_0xa79169(0xc8)](_0x43b7f3,![]);let _0x3c6dec=[];_0x2390ae[_0xa79169(0xcf)](_0x6c83f3=>{const _0xaf510a=_0xa79169;let _0x514228=new a43_0x1f3c6d();const _0x17007d=getSelectStyle(_0x6c83f3[_0xaf510a(0xbf)]());_0x514228[_0xaf510a(0xb8)](_0x17007d),_0x514228[_0xaf510a(0xbd)](_0x6c83f3),_0x3c6dec['push'](_0x514228);}),(_0xad3989=_0x43b7f3['getSource']())===null||_0xad3989===void 0x0?void 0x0:_0xad3989[_0xa79169(0xad)](_0x3c6dec);let _0x562500=0x0,_0x24efae=setInterval(()=>{const _0x34f323=_0xa79169;if(_0x562500===_0x1f3b1a){_0x24efae&&clearInterval(_0x24efae);const _0x92af93=this[_0x34f323(0xc0)][_0x34f323(0xb2)](_0x43b7f3['id']);_0x92af93&&this[_0x34f323(0xc0)][_0x34f323(0xcd)](_0x92af93);return;}if(_0x43b7f3[_0x34f323(0xa8)]())_0x43b7f3[_0x34f323(0xc5)](![]);else _0x43b7f3[_0x34f323(0xc5)](!![]);_0x562500++;},0x190);}async[a43_0x24bfce(0xd0)](_0x391b74){const _0x2b436b=a43_0x24bfce;let _0x16e555=await toGeoJSON(_0x391b74,null);if(!_0x16e555)return[];let _0x430820=[];var _0x153e71=new a43_0x2de848();return _0x16e555[_0x2b436b(0xa9)][_0x2b436b(0xcf)](_0x124876=>{const _0x3491b=_0x2b436b;_0x430820[_0x3491b(0xb1)](_0x153e71[_0x3491b(0xaf)](_0x124876,null));}),_0x430820;}['clearTempFeatures'](_0x44d617){const _0x24bf51=a43_0x24bfce,_0x5e3ceb=this[_0x24bf51(0xc9)]();if(_0x5e3ceb&&_0x5e3ceb[_0x24bf51(0xa7)]>0x0)for(const _0x5d722b of _0x5e3ceb){if(_0x5d722b&&_0x5d722b[_0x24bf51(0xb7)]){const _0x276c17=_0x5d722b['tempLayer'][_0x24bf51(0xb0)]();_0x276c17&&(_0x44d617!=undefined?_0x5d722b['tag']==_0x44d617&&_0x276c17[_0x24bf51(0xb3)](_0x5d722b):_0x276c17[_0x24bf51(0xb3)](_0x5d722b));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a44_0x3d59(_0x2db319,_0x4b7aac){var _0x19b8e1=a44_0x19b8();return a44_0x3d59=function(_0x3d59ef,_0x57a15b){_0x3d59ef=_0x3d59ef-0x1d8;var _0x3f9c1a=_0x19b8e1[_0x3d59ef];return _0x3f9c1a;},a44_0x3d59(_0x2db319,_0x4b7aac);}(function(_0x55e302,_0x4c750b){var _0x2e5605=a44_0x3d59,_0x524129=_0x55e302();while(!![]){try{var _0x172e8c=-parseInt(_0x2e5605(0x1d9))/0x1*(parseInt(_0x2e5605(0x1d8))/0x2)+-parseInt(_0x2e5605(0x1dc))/0x3*(parseInt(_0x2e5605(0x1db))/0x4)+parseInt(_0x2e5605(0x1df))/0x5*(parseInt(_0x2e5605(0x1de))/0x6)+-parseInt(_0x2e5605(0x1e3))/0x7*(parseInt(_0x2e5605(0x1e1))/0x8)+-parseInt(_0x2e5605(0x1e0))/0x9+parseInt(_0x2e5605(0x1e2))/0xa*(-parseInt(_0x2e5605(0x1da))/0xb)+parseInt(_0x2e5605(0x1e4))/0xc*(parseInt(_0x2e5605(0x1dd))/0xd);if(_0x172e8c===_0x4c750b)break;else _0x524129['push'](_0x524129['shift']());}catch(_0x5db588){_0x524129['push'](_0x524129['shift']());}}}(a44_0x19b8,0x1bc46));function a44_0x19b8(){var _0xb121af=['6305HEFVYo','6xJjvBM','308380tpedOT','667881dBguQm','16Crekzx','410rRSWGI','12019bdweyI','7740nJQYsT','288AzTFPV','366SxrkKJ','25399YeFzpL','47668oHprpB','9LdYnIh'];a44_0x19b8=function(){return _0xb121af;};return a44_0x19b8();}import a44_0x250a60 from'./mapView/Map';export{a44_0x250a60 as Map2D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x1aab9f=a45_0x3e55;(function(_0x524a95,_0x58d985){const _0x250bbb=a45_0x3e55,_0x5674f5=_0x524a95();while(!![]){try{const _0x258b0e=parseInt(_0x250bbb(0x1ae))/0x1*(-parseInt(_0x250bbb(0x1c1))/0x2)+parseInt(_0x250bbb(0x1c2))/0x3*(parseInt(_0x250bbb(0x197))/0x4)+parseInt(_0x250bbb(0x19d))/0x5+parseInt(_0x250bbb(0x191))/0x6+parseInt(_0x250bbb(0x1b7))/0x7*(parseInt(_0x250bbb(0x1b5))/0x8)+-parseInt(_0x250bbb(0x1bf))/0x9+-parseInt(_0x250bbb(0x19f))/0xa*(-parseInt(_0x250bbb(0x1c3))/0xb);if(_0x258b0e===_0x58d985)break;else _0x5674f5['push'](_0x5674f5['shift']());}catch(_0x3a222d){_0x5674f5['push'](_0x5674f5['shift']());}}}(a45_0x511f,0x39c14));import a45_0xd87275 from'./Draw';import a45_0x132df7 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x410d26 from'../entity/measure/AreaMeasureUnits';import a45_0x4a1ceb from'ol/Collection';const defaultOptions={'color':a45_0x1aab9f(0x198),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x1aab9f(0x1c6),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':'measureMoving','measureEnd':a45_0x1aab9f(0x18b)};function a45_0x3e55(_0x33140b,_0xdc287e){const _0x511f0e=a45_0x511f();return a45_0x3e55=function(_0x3e555c,_0x1d1c15){_0x3e555c=_0x3e555c-0x18b;let _0x58ac2f=_0x511f0e[_0x3e555c];return _0x58ac2f;},a45_0x3e55(_0x33140b,_0xdc287e);}export class AreaMeasureEvent extends a45_0x132df7{constructor(_0x2b808c,_0x25ceaa,_0x4a2dc3){const _0x41b917=a45_0x1aab9f;super(_0x2b808c),this[_0x41b917(0x1c0)]=_0x25ceaa,this[_0x41b917(0x18c)]=_0x4a2dc3;}}export default class AreaMeasure extends a45_0xd87275{constructor(_0x668fc2){const _0x30692d=a45_0x1aab9f;_0x668fc2=_0x668fc2||{},console['log'](_0x668fc2);const _0x23fe19=Object[_0x30692d(0x1a6)](Object['assign']({},defaultOptions),Object[_0x30692d(0x1a0)](Object[_0x30692d(0x190)](_0x668fc2)[_0x30692d(0x1a9)](([_0xbfaae6,_0x5cec82])=>_0x5cec82!=null)));super(_0x30692d(0x1ab),{'tipText':_0x30692d(0x19c),'style':_0x23fe19,'features':new a45_0x4a1ceb()}),this[_0x30692d(0x1ba)]=_0x23fe19,this['_unit']=_0x23fe19[_0x30692d(0x1c4)],this[_0x30692d(0x1aa)]=_0x23fe19[_0x30692d(0x1b8)],this[_0x30692d(0x1b1)]=_0x23fe19[_0x30692d(0x18f)],this['_spheroid']=_0x23fe19['spheroid'],this['on']=this[_0x30692d(0x1ac)],this['on'](_0x30692d(0x1bb),_0x96ff3a=>{const _0x3ccfc4=_0x30692d,_0x346ce0=this[_0x3ccfc4(0x193)]();if(!_0x346ce0)return;if(_0x96ff3a[_0x3ccfc4(0x18d)]){const _0x1d1bd1=this[_0x3ccfc4(0x19a)](_0x96ff3a[_0x3ccfc4(0x18d)],_0x23fe19);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x3ccfc4(0x18b)],_0x1d1bd1,_0x96ff3a['feature']['getGeometry']()));}this['_style']['text']='';}),this['on'](_0x30692d(0x1bc),_0x460fbe=>{const _0xd9e1e2=_0x30692d,_0x5c4700=this[_0xd9e1e2(0x193)]();if(!_0x5c4700)return;if(_0x460fbe[_0xd9e1e2(0x18d)]){const _0x1a1279=this[_0xd9e1e2(0x19a)](_0x460fbe[_0xd9e1e2(0x18d)],_0x23fe19);this[_0xd9e1e2(0x196)](new AreaMeasureEvent(MeasureEventType[_0xd9e1e2(0x19b)],_0x1a1279,_0x460fbe['feature'][_0xd9e1e2(0x1a7)]()));}}),this['on'](_0x30692d(0x199),_0x36363f=>{const _0x13aa9a=_0x30692d,_0x9a2192=this[_0x13aa9a(0x193)]();if(!_0x9a2192)return;if(!_0x36363f[_0x13aa9a(0x1a1)]||_0x36363f[_0x13aa9a(0x1a1)][_0x13aa9a(0x195)]<0x2)return;if(_0x36363f['feature']){const _0x25cb83=this['setFeatureAreaStyle'](_0x36363f[_0x13aa9a(0x18d)],_0x23fe19);this[_0x13aa9a(0x196)](new AreaMeasureEvent(MeasureEventType['measureMoving'],_0x25cb83,_0x36363f['feature'][_0x13aa9a(0x1a7)]()));}});}['setMap'](_0x4bb2fc){const _0x934386=a45_0x1aab9f;super['setMap'](_0x4bb2fc);if(_0x4bb2fc){const _0x55ad02=_0x4bb2fc['getPolygonTempLayer'](),_0x314d7f=_0x55ad02===null||_0x55ad02===void 0x0?void 0x0:_0x55ad02['getSource']();_0x314d7f&&(this[_0x934386(0x1af)]=_0x314d7f);}}[a45_0x1aab9f(0x1bd)](_0x3109f8){const _0xd07562=a45_0x1aab9f,_0x2ff661=a45_0x410d26['find'](_0x4d6139=>_0x4d6139[_0xd07562(0x18e)]===this['_unit']);switch(_0x2ff661===null||_0x2ff661===void 0x0?void 0x0:_0x2ff661[_0xd07562(0x18e)]){case'square-meters':return''+(_0x3109f8['toFixed'](this['_precision'])+_0x2ff661[_0xd07562(0x1a5)]);case _0xd07562(0x1ad):return''+((_0x3109f8*0.000001)[_0xd07562(0x1a8)](this[_0xd07562(0x1aa)])+_0x2ff661[_0xd07562(0x1a5)]);case'mu':return''+((_0x3109f8*0.0015)[_0xd07562(0x1a8)](this[_0xd07562(0x1aa)])+_0x2ff661[_0xd07562(0x1a5)]);case _0xd07562(0x192):return''+((_0x3109f8*0.0001)['toFixed'](this[_0xd07562(0x1aa)])+_0x2ff661['label']);default:return _0x3109f8[_0xd07562(0x1a8)](this[_0xd07562(0x1aa)])+'平方米';}}['setFeatureAreaStyle'](_0x35c50e,_0x158dfe){const _0x47e520=a45_0x1aab9f,_0x179734=this[_0x47e520(0x193)]();if(!_0x179734)return 0x0;const _0x188046=_0x35c50e[_0x47e520(0x1a7)](),_0x391812=getArea(_0x188046,_0x179734['getView']()[_0x47e520(0x1b4)](),this[_0x47e520(0x1a2)]);return _0x35c50e['fromType']=_0x47e520(0x1c5),this[_0x47e520(0x1b1)]&&(_0x158dfe[_0x47e520(0x1b0)]=this['getText'](_0x391812),_0x35c50e[_0x47e520(0x1b2)](getStyle(_0x47e520(0x1ab),_0x158dfe,_0x179734))),_0x391812;}['setUnit'](_0x2f55bd){const _0x173fd3=a45_0x1aab9f;this[_0x173fd3(0x1a4)]=_0x2f55bd,this['_features']&&this[_0x173fd3(0x1b3)]['getLength']()>0x0&&this[_0x173fd3(0x1b3)]['forEach'](_0x3c9c89=>{const _0x276e50=_0x173fd3;this['setFeatureAreaStyle'](_0x3c9c89,this[_0x276e50(0x1ba)]);});}[a45_0x1aab9f(0x19e)](){const _0x1d06ff=a45_0x1aab9f,_0x3049ea=this['getMap']();if(!_0x3049ea)return;const _0x49d613=_0x3049ea[_0x1d06ff(0x194)](),_0x44de79=_0x49d613===null||_0x49d613===void 0x0?void 0x0:_0x49d613[_0x1d06ff(0x1be)]();_0x44de79&&this[_0x1d06ff(0x1b3)]&&this[_0x1d06ff(0x1b3)]['getLength']()>0x0&&(this['_features'][_0x1d06ff(0x1b6)](_0x59b8b3=>{const _0x4cc049=_0x1d06ff;_0x44de79[_0x4cc049(0x1a3)](_0x59b8b3);}),this['_features'][_0x1d06ff(0x1b9)]());}}function a45_0x511f(){const _0x4c5d23=['hectare','getMap','getPolygonTempLayer','length','dispatchEvent','340XWsQOF','#f03437','drawMoving','setFeatureAreaStyle','measureMoving','点击开始测量,双击结束测量','1274735pncnRp','clearMeasure','1030nXaJfH','fromEntries','coordinates','_spheroid','removeFeature','_unit','label','assign','getGeometry','toFixed','filter','_precision','polygon','onInternal','square-kilometers','1163wiuEZC','_source','text','_showLabel','setStyle','_features','getProjection','88gIHSIR','forEach','107737kzvitE','precision','clear','_style','drawEnd','drawAddPoint','getText','getSource','2870622VxnDhS','area','716WDjOoV','1680NGrKED','19162mFHugT','unit','measure','square-meters','measureEnd','geom','feature','type','showLabel','entries','1923612HcVjiu'];a45_0x511f=function(){return _0x4c5d23;};return a45_0x511f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a46_0x5def89=a46_0x3a18;function a46_0x3a18(_0x438fda,_0x266caf){const _0x40393b=a46_0x4039();return a46_0x3a18=function(_0x3a18c6,_0x37fd98){_0x3a18c6=_0x3a18c6-0x197;let _0xf7cead=_0x40393b[_0x3a18c6];return _0xf7cead;},a46_0x3a18(_0x438fda,_0x266caf);}(function(_0x2ccd5a,_0x6b90f6){const _0x1e4974=a46_0x3a18,_0x215ed8=_0x2ccd5a();while(!![]){try{const _0x585f3c=-parseInt(_0x1e4974(0x1a8))/0x1+parseInt(_0x1e4974(0x1ab))/0x2*(-parseInt(_0x1e4974(0x1a3))/0x3)+-parseInt(_0x1e4974(0x1a0))/0x4*(-parseInt(_0x1e4974(0x1aa))/0x5)+parseInt(_0x1e4974(0x19b))/0x6*(parseInt(_0x1e4974(0x1a1))/0x7)+parseInt(_0x1e4974(0x19d))/0x8*(-parseInt(_0x1e4974(0x1a5))/0x9)+-parseInt(_0x1e4974(0x1b9))/0xa+parseInt(_0x1e4974(0x198))/0xb;if(_0x585f3c===_0x6b90f6)break;else _0x215ed8['push'](_0x215ed8['shift']());}catch(_0x17a439){_0x215ed8['push'](_0x215ed8['shift']());}}}(a46_0x4039,0x2f59c));import a46_0x2e52ae from'./Draw';import a46_0x5dc56b from'ol/events/Event';import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x5def89(0x1a7),'HOLED':'splited'};function a46_0x4039(){const _0x412b12=['10bZhExb','2DgULnI','HOLESTART','holeStyle','未获取到地图对象','rgba(255,\x200,\x200,\x201)','polygon','getGeometry','onInternal','未获取到擦除要素','length','holeFeatures','holePolygon','addTempLayer','dispatchEvent','1569350HgHQFq','push','4754365CnTkKY','tipText','setGeometry','735258ZTwsGq','drawEnd','26552CxVPFx','HOLED','getMap','449444JcNpyX','14nhRejT','message','262911SSFXdR','未获取到挖除的面','603uUPiNx','features','splitStart','241130TYHoLM','error'];a46_0x4039=function(){return _0x412b12;};return a46_0x4039();}export class HoleEvent extends a46_0x5dc56b{constructor(_0x215977,_0x226c26,_0x359e19,_0x450e85){const _0x4c5f7e=a46_0x5def89;super(_0x215977),this[_0x4c5f7e(0x1b6)]=_0x226c26,this[_0x4c5f7e(0x1a6)]=_0x359e19,this[_0x4c5f7e(0x1a9)]=_0x450e85;}}export default class Difference extends a46_0x2e52ae{constructor(_0x5a06b6,_0x5da38e){const _0x5384b5=a46_0x5def89,_0x2be96d=(_0x5da38e===null||_0x5da38e===void 0x0?void 0x0:_0x5da38e[_0x5384b5(0x1ad)])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2,'opacity':0.2,'color':_0x5384b5(0x1af)};super(_0x5384b5(0x1b0),{'tipText':_0x5da38e===null||_0x5da38e===void 0x0?void 0x0:_0x5da38e[_0x5384b5(0x199)],'style':_0x2be96d}),this[_0x5384b5(0x1a6)]=_0x5a06b6;const _0x265446=_0x5da38e||{};this[_0x5384b5(0x1b7)]=_0x265446[_0x5384b5(0x1b7)]||![],this['on']=this[_0x5384b5(0x1b2)],this['on'](_0x5384b5(0x19c),async _0x130795=>{const _0x586ab2=_0x5384b5;var _0x3ba5d8;const _0x1b262d=this[_0x586ab2(0x19f)]();let _0x53a54c=(_0x3ba5d8=_0x130795['feature'])===null||_0x3ba5d8===void 0x0?void 0x0:_0x3ba5d8[_0x586ab2(0x1b1)]();!_0x53a54c&&this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType[_0x586ab2(0x19e)],undefined,undefined,_0x586ab2(0x1a4)));let _0xc37df5=_0x53a54c;!_0x1b262d&&this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType[_0x586ab2(0x19e)],_0xc37df5,undefined,_0x586ab2(0x1ae)));(!this[_0x586ab2(0x1a6)]||this['features'][_0x586ab2(0x1b4)]===0x0)&&this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType['HOLED'],_0xc37df5,undefined,_0x586ab2(0x1b3)));try{this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType[_0x586ab2(0x1ac)],_0xc37df5));const _0x4cfbb6=this[_0x586ab2(0x1b5)](_0xc37df5);this['dispatchEvent'](new HoleEvent(HoleEventType[_0x586ab2(0x19e)],_0xc37df5,_0x4cfbb6));}catch(_0x56cfd8){this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType[_0x586ab2(0x19e)],_0xc37df5,undefined,_0x56cfd8[_0x586ab2(0x1a2)]));}});}[a46_0x5def89(0x1b5)](_0x2f6f8f){const _0x5ceea0=a46_0x5def89,_0xde38a=[];for(let _0x31381e=0x0;_0x31381e<this[_0x5ceea0(0x1a6)][_0x5ceea0(0x1b4)];_0x31381e++){const _0x514b3f=this['features'][_0x31381e],_0x19e961=_0x514b3f[_0x5ceea0(0x1b1)]();if(!_0x19e961)continue;const _0x2deb8a=difference(_0x19e961,_0x2f6f8f);_0x514b3f[_0x5ceea0(0x19a)](_0x2deb8a),_0xde38a[_0x5ceea0(0x197)](_0x514b3f);}return _0xde38a;}['setFeatures'](_0x107ec5){const _0x5b064c=a46_0x5def89;this[_0x5b064c(0x1a6)]=_0x107ec5;}}
|
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_0x2e1821=a47_0x5550;(function(_0xc082b,_0x183d88){const _0x44770f=a47_0x5550,_0x1f754d=_0xc082b();while(!![]){try{const _0x2c5cfd=-parseInt(_0x44770f(0x19e))/0x1+parseInt(_0x44770f(0x174))/0x2+-parseInt(_0x44770f(0x16f))/0x3*(parseInt(_0x44770f(0x196))/0x4)+-parseInt(_0x44770f(0x186))/0x5+parseInt(_0x44770f(0x154))/0x6*(-parseInt(_0x44770f(0x182))/0x7)+-parseInt(_0x44770f(0x158))/0x8*(parseInt(_0x44770f(0x15e))/0x9)+parseInt(_0x44770f(0x19a))/0xa;if(_0x2c5cfd===_0x183d88)break;else _0x1f754d['push'](_0x1f754d['shift']());}catch(_0x51ef0e){_0x1f754d['push'](_0x1f754d['shift']());}}}(a47_0x24c4,0x31236));import a47_0x246844 from'ol/events/Event';import a47_0x2c087b from'ol/interaction/Pointer';function a47_0x24c4(){const _0x2a314a=['features','_type','1752srSljg','type','stopDown','startDrawing_','1128BdqTrX','ACTIVE','12px\x20Calibre,sans-serif','单击增加点,右击删除点双击完成绘制','handleDownEvent','coordinate','23733sHbmgY','DRAWSTART','getView','_sketchFeature','单击增加点,右击删除点','rgba(255,\x20255,\x20255,\x201)','getSource','drawStart','setMap','preventDefault','coordinates','Ellipsoid','_minPoints','showTip','_overlay','getMap','MAX_VALUE','3YVyVDk','originalEvent','push','getProjection','length','376026pRSBtL','revert','button','updateSketchFeatures_','rgba(0,\x200,\x200,\x200.4)','getActive','pop','drawEnd','handleDragEvent','indexOf','wrapX','sqrt','finishDrawing','DRAWMOVING','8351BbaVZj','onInternal','_tipOverlay','minPoint','739485dDTbRS','addPoint','snapTolerance','_showTip','getText','setStyle','Circle','_isStayDraw','DRAWADDPOINT','单击拖动绘制','setGeometry','buildDrawingFeature','getPixelFromCoordinate','tipText','_drawingCoordinates','_features','562244lPMJbl','_style','_tipStyle','rectangle','10774840zLhFfn','getCode','handleMoveEvent','getGeometry','55596oNDqjC','abortDrawing_','updateState_','style','updateTip_','createMultiPointFeature','_tipFeature','pixel','once','pointermove','handleUpEvent','slice','abortDrawing','drawAddPoint','单击结束绘制,右击删除点','getType','_fixPoint','dispatchEvent','_source','setText','addChangeListener','_snapTolerance','addFeature','unInternal','onceInternal','DRAWEND','clear'];a47_0x24c4=function(){return _0x2a314a;};return a47_0x24c4();}import{MultiPoint,Point}from'ol/geom';import a47_0x22da78 from'ol/Feature';import a47_0xeaf166,{createEditingStyle}from'ol/style/Style';import a47_0x11c05d from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x14491a from'ol/style/Text';import a47_0xbda954 from'ol/style/Fill';function a47_0x5550(_0x521ad1,_0x2ac674){const _0x24c426=a47_0x24c4();return a47_0x5550=function(_0x5550a4,_0x1183d6){_0x5550a4=_0x5550a4-0x13b;let _0xdfc091=_0x24c426[_0x5550a4];return _0xdfc091;},a47_0x5550(_0x521ad1,_0x2ac674);}import a47_0x295880 from'ol/interaction/Property';import a47_0x53b9f2 from'ol/layer/Vector';import a47_0x4c5bf0 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x2e1821(0x165),'DRAWEND':a47_0x2e1821(0x17b),'DRAWABORT':'drawAbort','DRAWADDPOINT':a47_0x2e1821(0x144),'DRAWMOVING':'drawMoving'};export class DrawEvent extends a47_0x246844{constructor(_0x515f2a,_0x391c14,_0x1b9b9e){super(_0x515f2a),this['feature']=_0x391c14,this['coordinates']=_0x1b9b9e;}}export class ShEvent extends a47_0x246844{constructor(_0x283087,_0x575fec,_0x2364c0,_0x2b9e8f,_0x38776f){const _0x395fa6=a47_0x2e1821;super(_0x283087),this['projection']=_0x38776f,this[_0x395fa6(0x155)]=_0x575fec,this[_0x395fa6(0x15d)]=_0x2364c0,this[_0x395fa6(0x168)]=_0x2b9e8f;}}export default class Draw extends a47_0x2c087b{constructor(_0x106e3b,_0x21e8bc){const _0x38a6ba=a47_0x2e1821,_0x4f4a73=_0x21e8bc?_0x21e8bc:{};!_0x4f4a73['stopDown']&&(_0x4f4a73[_0x38a6ba(0x156)]=![]);super(_0x21e8bc),this['on']=this[_0x38a6ba(0x183)],this[_0x38a6ba(0x13f)]=this[_0x38a6ba(0x14f)],this['un']=this[_0x38a6ba(0x14e)],this[_0x38a6ba(0x18d)]=![],this[_0x38a6ba(0x153)]=_0x106e3b,this[_0x38a6ba(0x197)]=_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x1a1)],this['_source']=_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc['source'],this[_0x38a6ba(0x195)]=_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x152)];const _0x222971=getPlotCount(this[_0x38a6ba(0x153)]);this['_minPoints']=_0x222971[_0x38a6ba(0x185)],this[_0x38a6ba(0x147)]=_0x222971['fixPoint'],this[_0x38a6ba(0x193)]=_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x193)],this['_showTip']=(_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x16b)])==![]?![]:!![],this[_0x38a6ba(0x14c)]=_0x4f4a73[_0x38a6ba(0x188)]?_0x4f4a73[_0x38a6ba(0x188)]:0x6,this[_0x38a6ba(0x13d)]=new a47_0x22da78(),this[_0x38a6ba(0x198)]=new a47_0xeaf166({'text':new a47_0x14491a({'font':_0x38a6ba(0x15a),'fill':new a47_0xbda954({'color':_0x38a6ba(0x163)}),'backgroundFill':new a47_0xbda954({'color':_0x38a6ba(0x178)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this[_0x38a6ba(0x194)]=[],this[_0x38a6ba(0x184)]=new a47_0x53b9f2({'source':new a47_0x11c05d({'useSpatialIndex':![],'wrapX':(_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc['wrapX'])?_0x21e8bc[_0x38a6ba(0x17e)]:![]})}),this[_0x38a6ba(0x16c)]=new a47_0x53b9f2({'source':new a47_0x11c05d({'useSpatialIndex':![],'wrapX':(_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x17e)])?_0x21e8bc[_0x38a6ba(0x17e)]:![]}),'updateWhileInteracting':!![]}),this[_0x38a6ba(0x14b)](a47_0x295880[_0x38a6ba(0x159)],this[_0x38a6ba(0x1a0)]);}[a47_0x2e1821(0x1a0)](){const _0x57cc95=a47_0x2e1821,_0x18bae1=this['getMap'](),_0x245d8e=this[_0x57cc95(0x179)]();(!_0x18bae1||!_0x245d8e)&&this['abortDrawing'](),this[_0x57cc95(0x16c)][_0x57cc95(0x166)](_0x245d8e?_0x18bae1:null),this[_0x57cc95(0x184)][_0x57cc95(0x166)](_0x245d8e?_0x18bae1:null);}['setMap'](_0x5129b9){const _0x436dfb=a47_0x2e1821;super[_0x436dfb(0x166)](_0x5129b9),this[_0x436dfb(0x1a0)]();}[a47_0x2e1821(0x18b)](_0x474fec){this['_style']=_0x474fec?_0x474fec:{};}['getOverlay'](){return this['_overlay'];}[a47_0x2e1821(0x15c)](_0x5cb4b3){const _0x42414f=a47_0x2e1821;if(_0x5cb4b3[_0x42414f(0x170)][_0x42414f(0x176)]===0x2)return _0x5cb4b3[_0x42414f(0x170)][_0x42414f(0x167)](),this[_0x42414f(0x175)](),this[_0x42414f(0x19c)](_0x5cb4b3),![];return!![];}[a47_0x2e1821(0x141)](_0x20aa2b){const _0x3b956b=a47_0x2e1821;var _0x5e1aa0,_0x166e08;if(this[_0x3b956b(0x153)]==_0x3b956b(0x199)&&this['_drawingCoordinates'][_0x3b956b(0x173)]<0x1)return this[_0x3b956b(0x148)](new DrawEvent(DrawEventType[_0x3b956b(0x150)],undefined,[_0x20aa2b[_0x3b956b(0x15d)]])),![];if(!this['_isStayDraw'])this[_0x3b956b(0x157)](_0x20aa2b[_0x3b956b(0x15d)]),this[_0x3b956b(0x148)](new ShEvent(DrawEventType[_0x3b956b(0x18e)],this[_0x3b956b(0x153)],_0x20aa2b[_0x3b956b(0x15d)],this[_0x3b956b(0x194)],(_0x5e1aa0=this['getMap']())===null||_0x5e1aa0===void 0x0?void 0x0:_0x5e1aa0[_0x3b956b(0x160)]()['getProjection']()['getCode']())),this[_0x3b956b(0x153)]=='point'&&this[_0x3b956b(0x180)]();else{if(this['_drawingCoordinates']&&this['_drawingCoordinates']['length']>0x0){if(this['atFinish_'](_0x20aa2b[_0x3b956b(0x13e)]))return this['finishDrawing'](),_0x20aa2b[_0x3b956b(0x167)](),![];let _0x5e5214=this['_drawingCoordinates'][_0x3b956b(0x173)]+0x1;_0x5e5214<=this[_0x3b956b(0x147)]&&this[_0x3b956b(0x187)](_0x20aa2b[_0x3b956b(0x15d)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x3b956b(0x18e)],this['_type'],_0x20aa2b[_0x3b956b(0x15d)],this[_0x3b956b(0x194)],(_0x166e08=this[_0x3b956b(0x16d)]())===null||_0x166e08===void 0x0?void 0x0:_0x166e08['getView']()[_0x3b956b(0x172)]()[_0x3b956b(0x19b)]())),_0x5e5214>=this[_0x3b956b(0x16a)]&&this[_0x3b956b(0x191)](this['_drawingCoordinates']),_0x5e5214===this['_fixPoint']&&this[_0x3b956b(0x180)]();}}return _0x20aa2b[_0x3b956b(0x167)](),![];}[a47_0x2e1821(0x17c)](_0x3f7186){const _0x15ff9b=a47_0x2e1821;var _0x2d0d41;if(this[_0x15ff9b(0x153)]==_0x15ff9b(0x199)&&_0x3f7186[_0x15ff9b(0x170)][_0x15ff9b(0x155)]==_0x15ff9b(0x140)){if(!this[_0x15ff9b(0x18d)]){this[_0x15ff9b(0x157)](_0x3f7186[_0x15ff9b(0x15d)]),this['dispatchEvent'](new ShEvent(DrawEventType['DRAWADDPOINT'],this['_type'],_0x3f7186[_0x15ff9b(0x15d)],this['_drawingCoordinates'],(_0x2d0d41=this[_0x15ff9b(0x16d)]())===null||_0x2d0d41===void 0x0?void 0x0:_0x2d0d41[_0x15ff9b(0x160)]()[_0x15ff9b(0x172)]()[_0x15ff9b(0x19b)]()));return;}let _0x1342b9=[...this['_drawingCoordinates'],_0x3f7186['coordinate']];this['buildDrawingFeature'](_0x1342b9),this[_0x15ff9b(0x148)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x15ff9b(0x161)],this[_0x15ff9b(0x194)]));}}[a47_0x2e1821(0x19c)](_0x4cd5f9){const _0x4311d9=a47_0x2e1821;var _0x4bb36e,_0x362908,_0x3c4430;let _0x1276f1='';this['_type']==_0x4311d9(0x140)&&(this[_0x4311d9(0x157)](_0x4cd5f9[_0x4311d9(0x15d)]),this[_0x4311d9(0x148)](new ShEvent(DrawEventType[_0x4311d9(0x18e)],this[_0x4311d9(0x153)],_0x4cd5f9['coordinate'],this[_0x4311d9(0x194)],(_0x4bb36e=this[_0x4311d9(0x16d)]())===null||_0x4bb36e===void 0x0?void 0x0:_0x4bb36e[_0x4311d9(0x160)]()[_0x4311d9(0x172)]()[_0x4311d9(0x19b)]())),this[_0x4311d9(0x180)]());!this[_0x4311d9(0x18d)]?_0x1276f1=this[_0x4311d9(0x153)]==_0x4311d9(0x199)?_0x4311d9(0x18f):'单击开始绘制':(_0x1276f1=_0x4311d9(0x162),((_0x362908=this[_0x4311d9(0x194)])===null||_0x362908===void 0x0?void 0x0:_0x362908['length'])===this[_0x4311d9(0x147)]-0x1&&(_0x1276f1=_0x4311d9(0x145)),((_0x3c4430=this[_0x4311d9(0x194)])===null||_0x3c4430===void 0x0?void 0x0:_0x3c4430['length'])>=this[_0x4311d9(0x16a)]&&this['_fixPoint']===Number['MAX_VALUE']&&(_0x1276f1=_0x4311d9(0x15b)));this[_0x4311d9(0x193)]!=undefined&&(_0x1276f1=this['tipText']);this[_0x4311d9(0x13b)](_0x4cd5f9[_0x4311d9(0x15d)],_0x1276f1);if(this[_0x4311d9(0x18d)]&&this[_0x4311d9(0x153)]!=_0x4311d9(0x199)){let _0x499c23=[...this[_0x4311d9(0x194)],_0x4cd5f9['coordinate']];this[_0x4311d9(0x191)](_0x499c23);}this[_0x4311d9(0x148)](new DrawEvent(DrawEventType[_0x4311d9(0x181)],this['_sketchFeature'],this[_0x4311d9(0x194)]));}['atFinish_'](_0x5396a3){const _0x226596=a47_0x2e1821;var _0x1f5253;let _0x1ec752=![],_0x3cd7d6=this[_0x226596(0x194)][_0x226596(0x173)];if(_0x3cd7d6>this[_0x226596(0x16a)]&&this[_0x226596(0x147)]===Number[_0x226596(0x16e)]){const _0x68a209=this[_0x226596(0x194)][this[_0x226596(0x194)][_0x226596(0x173)]-0x1],_0x3363e2=(_0x1f5253=this[_0x226596(0x16d)]())===null||_0x1f5253===void 0x0?void 0x0:_0x1f5253[_0x226596(0x192)](_0x68a209),_0xc4ba14=_0x5396a3[0x0]-(_0x3363e2?_0x3363e2[0x0]:0x0),_0x317da5=_0x5396a3[0x1]-(_0x3363e2?_0x3363e2[0x1]:0x0);_0x1ec752=Math[_0x226596(0x17f)](_0xc4ba14*_0xc4ba14+_0x317da5*_0x317da5)<=this['_snapTolerance'];}return _0x1ec752;}[a47_0x2e1821(0x157)](_0x7ddf39){const _0x2b1f5d=a47_0x2e1821;this[_0x2b1f5d(0x18d)]=!![],this['_drawingCoordinates']=[_0x7ddf39[_0x2b1f5d(0x142)]()],this[_0x2b1f5d(0x161)]=this[_0x2b1f5d(0x13c)](),this['updateSketchFeatures_'](),this[_0x2b1f5d(0x148)](new DrawEvent(DrawEventType[_0x2b1f5d(0x15f)],this[_0x2b1f5d(0x161)],this[_0x2b1f5d(0x194)]));}[a47_0x2e1821(0x180)](){const _0x44ee06=a47_0x2e1821;if(this[_0x44ee06(0x194)]['length']>this['_minPoints']){this[_0x44ee06(0x191)](this[_0x44ee06(0x194)]);let _0x52669f=this[_0x44ee06(0x194)];const _0xa8ec0a=this[_0x44ee06(0x19f)]();if(!_0xa8ec0a)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x44ee06(0x150)],_0xa8ec0a,_0x52669f)),this['_features']&&this['_features'][_0x44ee06(0x171)](_0xa8ec0a),this['_source']&&this[_0x44ee06(0x149)][_0x44ee06(0x14d)](_0xa8ec0a);}}[a47_0x2e1821(0x187)](_0x4de6f3){const _0x1a1d6c=a47_0x2e1821;this[_0x1a1d6c(0x194)][_0x1a1d6c(0x171)](_0x4de6f3),this['_sketchFeature']=this[_0x1a1d6c(0x13c)](),this['updateSketchFeatures_']();}['createMultiPointFeature'](){const _0x1dc428=a47_0x2e1821,_0x54fde4=new MultiPoint(this[_0x1dc428(0x194)]);let _0x511671=new a47_0x22da78();return _0x511671['setGeometry'](_0x54fde4),_0x511671;}['abortDrawing_'](){const _0x27c6ea=a47_0x2e1821;var _0x442b8d,_0x2c30a1;this[_0x27c6ea(0x18d)]=![];const _0x3a9c94=this[_0x27c6ea(0x161)];return this[_0x27c6ea(0x161)]=undefined,this['_drawingCoordinates']=[],(_0x442b8d=this[_0x27c6ea(0x16c)]['getSource']())===null||_0x442b8d===void 0x0?void 0x0:_0x442b8d[_0x27c6ea(0x151)](!![]),(_0x2c30a1=this['_tipOverlay']['getSource']())===null||_0x2c30a1===void 0x0?void 0x0:_0x2c30a1['clear'](!![]),_0x3a9c94;}[a47_0x2e1821(0x143)](){const _0x322b86=a47_0x2e1821,_0x3b2a8a=this[_0x322b86(0x19f)]();_0x3b2a8a&&this[_0x322b86(0x148)](new DrawEvent(DrawEventType['DRAWABORT'],_0x3b2a8a,this[_0x322b86(0x194)]));}[a47_0x2e1821(0x191)](_0x4077a6){const _0x56ff1c=a47_0x2e1821;this[_0x56ff1c(0x161)]=new a47_0x22da78();let _0x9db936=createPlot(this[_0x56ff1c(0x153)],_0x4077a6);if(!_0x9db936)return;this[_0x56ff1c(0x161)][_0x56ff1c(0x190)](_0x9db936);let _0x33c92e=[a47_0x4c5bf0[_0x56ff1c(0x18c)],a47_0x4c5bf0[_0x56ff1c(0x169)],a47_0x4c5bf0['Ellipse']];if(_0x33c92e[_0x56ff1c(0x17d)](this[_0x56ff1c(0x153)])>-0x1&&this[_0x56ff1c(0x197)]){}const _0x578ccc=this['getMap']();this[_0x56ff1c(0x161)][_0x56ff1c(0x18b)](getStyle(this[_0x56ff1c(0x153)],this['_style'],this[_0x56ff1c(0x16d)]())),this['updateSketchFeatures_']();}[a47_0x2e1821(0x177)](){const _0x6fd995=a47_0x2e1821,_0x5a1f3c=this[_0x6fd995(0x16c)]['getSource']();_0x5a1f3c&&this['_sketchFeature']&&(_0x5a1f3c[_0x6fd995(0x151)](!![]),_0x5a1f3c[_0x6fd995(0x14d)](this[_0x6fd995(0x161)]));}[a47_0x2e1821(0x175)](){const _0x5656fc=a47_0x2e1821;if(this[_0x5656fc(0x18d)]){if(this[_0x5656fc(0x194)]&&this['_drawingCoordinates']['length']>0x0){const _0x2c970a=this[_0x5656fc(0x16c)][_0x5656fc(0x164)]();_0x2c970a===null||_0x2c970a===void 0x0?void 0x0:_0x2c970a['clear'](!![]),this['_drawingCoordinates'][_0x5656fc(0x17a)](),this[_0x5656fc(0x194)][_0x5656fc(0x173)]>=this[_0x5656fc(0x16a)]&&this['buildDrawingFeature'](this['_drawingCoordinates']),this[_0x5656fc(0x194)][_0x5656fc(0x173)]===0x0&&(this['_isStayDraw']=![]);}}}['updateTip_'](_0x5ae203,_0xe6fb4a){const _0x4daee6=a47_0x2e1821;var _0x25f7ea,_0x2211f1,_0x1c299e,_0x5cc048;if(!this[_0x4daee6(0x189)])return;const _0xaab087=this[_0x4daee6(0x184)][_0x4daee6(0x164)]();_0xaab087===null||_0xaab087===void 0x0?void 0x0:_0xaab087[_0x4daee6(0x151)](!![]),(_0x25f7ea=this['_tipFeature'])===null||_0x25f7ea===void 0x0?void 0x0:_0x25f7ea[_0x4daee6(0x190)](new Point(_0x5ae203)),(_0x1c299e=(_0x2211f1=this[_0x4daee6(0x198)])===null||_0x2211f1===void 0x0?void 0x0:_0x2211f1[_0x4daee6(0x18a)]())===null||_0x1c299e===void 0x0?void 0x0:_0x1c299e[_0x4daee6(0x14a)](_0xe6fb4a),(_0x5cc048=this[_0x4daee6(0x13d)])===null||_0x5cc048===void 0x0?void 0x0:_0x5cc048[_0x4daee6(0x18b)](this[_0x4daee6(0x198)]),this[_0x4daee6(0x13d)]&&(_0xaab087===null||_0xaab087===void 0x0?void 0x0:_0xaab087[_0x4daee6(0x14d)](this[_0x4daee6(0x13d)]));}}function getDefaultStyleFunction(){const _0xed26f0=createEditingStyle();return function(_0x16e8cc,_0x2abf36){const _0x6b1b3e=a47_0x5550,_0x23fb2a=_0xed26f0[_0x16e8cc[_0x6b1b3e(0x19d)]()[_0x6b1b3e(0x146)]()];if(_0x23fb2a&&'Rectangle'==_0x16e8cc[_0x6b1b3e(0x19d)]()[_0x6b1b3e(0x146)]()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x417c25=a48_0x5784;(function(_0x289d97,_0x53c4ea){const _0xe3f481=a48_0x5784,_0x345f80=_0x289d97();while(!![]){try{const _0x10214c=parseInt(_0xe3f481(0xf9))/0x1+-parseInt(_0xe3f481(0xf2))/0x2+-parseInt(_0xe3f481(0xf6))/0x3+parseInt(_0xe3f481(0xf4))/0x4*(parseInt(_0xe3f481(0xfe))/0x5)+parseInt(_0xe3f481(0xf0))/0x6*(-parseInt(_0xe3f481(0xfb))/0x7)+parseInt(_0xe3f481(0xeb))/0x8+-parseInt(_0xe3f481(0xf5))/0x9*(-parseInt(_0xe3f481(0xed))/0xa);if(_0x10214c===_0x53c4ea)break;else _0x345f80['push'](_0x345f80['shift']());}catch(_0x39be57){_0x345f80['push'](_0x345f80['shift']());}}}(a48_0x5ee0,0xd8d2e));export default class InteractionManager{constructor(_0xb915e){const _0x4ec2da=a48_0x5784;this['map']=_0xb915e,this[_0x4ec2da(0xf1)]=new Map();}['addInteraction'](_0x30b881,_0x263c27){const _0x316b55=a48_0x5784;this['interactions'][_0x316b55(0xfc)](_0x30b881)&&this[_0x316b55(0xea)](_0x30b881),_0x263c27[_0x316b55(0xf8)]('name',_0x30b881),this[_0x316b55(0xf1)]['set'](_0x30b881,_0x263c27),this['map'][_0x316b55(0xee)](_0x263c27);}[a48_0x417c25(0xea)](_0x4249a1){const _0x5774c7=a48_0x417c25,_0x283c1c=this[_0x5774c7(0xf1)][_0x5774c7(0xef)](_0x4249a1);_0x283c1c&&(this['map']['removeInteraction'](_0x283c1c),this[_0x5774c7(0xf1)][_0x5774c7(0xf3)](_0x4249a1));}[a48_0x417c25(0xfd)](){const _0x2942d7=a48_0x417c25;this[_0x2942d7(0xf1)][_0x2942d7(0xec)](_0x4def5e=>{const _0x5a523c=_0x2942d7;this[_0x5a523c(0xf7)][_0x5a523c(0xea)](_0x4def5e);}),this[_0x2942d7(0xf1)]['clear']();}[a48_0x417c25(0xfa)](_0x4ab6d3){const _0x1e88dc=a48_0x417c25;return this[_0x1e88dc(0xf1)][_0x1e88dc(0xef)](_0x4ab6d3);}}function a48_0x5784(_0x58ef4c,_0x4d967e){const _0x5ee0b2=a48_0x5ee0();return a48_0x5784=function(_0x5784c3,_0xe1e655){_0x5784c3=_0x5784c3-0xea;let _0x7a92ba=_0x5ee0b2[_0x5784c3];return _0x7a92ba;},a48_0x5784(_0x58ef4c,_0x4d967e);}function a48_0x5ee0(){const _0x5c8368=['get','168UmicSW','interactions','2303286IzVFSa','delete','4yQaMWo','4130226BfdYqO','379620vrOsKf','map','set','983182MvXlVa','getInteraction','404110IYAkpk','has','removeAllInteractions','1174610Mcvzbk','removeInteraction','2160472oyrrSz','forEach','50VQzIBm','addInteraction'];a48_0x5ee0=function(){return _0x5c8368;};return a48_0x5ee0();}
|
package/interaction/Modify.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a49_0x152ed0=a49_0x52d7;(function(_0x16d572,_0x1147db){var _0x4a234b=a49_0x52d7,_0x1290a0=_0x16d572();while(!![]){try{var _0x207c50=parseInt(_0x4a234b(0x9d))/0x1+-parseInt(_0x4a234b(0x8a))/0x2+-parseInt(_0x4a234b(0x9a))/0x3*(parseInt(_0x4a234b(0x98))/0x4)+parseInt(_0x4a234b(0x9e))/0x5*(-parseInt(_0x4a234b(0x90))/0x6)+parseInt(_0x4a234b(0x82))/0x7*(-parseInt(_0x4a234b(0x92))/0x8)+-parseInt(_0x4a234b(0x89))/0x9*(parseInt(_0x4a234b(0xa3))/0xa)+parseInt(_0x4a234b(0x9b))/0xb;if(_0x207c50===_0x1147db)break;else _0x1290a0['push'](_0x1290a0['shift']());}catch(_0x5d9a02){_0x1290a0['push'](_0x1290a0['shift']());}}}(a49_0x2034,0x8a07b));import{Modify as a49_0x42a580,Select,Translate as a49_0xdb2e2e}from'ol/interaction';import a49_0x1ee4b0 from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';import{platformModifierKeyOnly}from'ol/events/condition';import{Style,Circle,Fill,Stroke}from'ol/style';function a49_0x2034(){var _0x4c2de1=['66lvHRjl','rgba(255,255,255,0.6)','6137752yewOOG','getId','addInteraction','rgba(0,255,255,0.2)','sourceFeatures','getFeatures','8kwyvRd','forEach','1370481NSAFBD','35611532CbHoFZ','filter','340882cniRLu','67730alWWIM','getType','LineString','getCoordinates','push','473630nsDxNG','getMap','remove','map','MultiPolygon','setMap','7HyQybH','modifyInteraction','rgba(0,255,255,0.6)','isSelected','getGeometry','Polygon','translate','99fLboQN','1324102eTqwQt','editFeatures','assign','add','removeInteraction','refresh'];a49_0x2034=function(){return _0x4c2de1;};return a49_0x2034();}const selectModifyStyle=new Style({'image':new Circle({'radius':0x5,'fill':new Fill({'color':'rgba(25,25,125,0.8)'}),'stroke':new Stroke({'color':a49_0x152ed0(0x91),'width':0x2})}),'stroke':new Stroke({'color':a49_0x152ed0(0x84),'width':0x2}),'fill':new Fill({'color':a49_0x152ed0(0x95)}),'geometry':_0x4650dd=>{var _0x17e54a=a49_0x152ed0,_0x597cd0,_0x379424,_0x3b47da,_0x26617f,_0x143e04;let _0x2d0427=[];if(((_0x597cd0=_0x4650dd[_0x17e54a(0x86)]())===null||_0x597cd0===void 0x0?void 0x0:_0x597cd0[_0x17e54a(0x9f)]())===_0x17e54a(0x87))(_0x379424=_0x4650dd['getGeometry']())===null||_0x379424===void 0x0?void 0x0:_0x379424[_0x17e54a(0xa1)]()[0x0][_0x17e54a(0x99)](_0x32bf8c=>{var _0x570e63=_0x17e54a;_0x2d0427[_0x570e63(0xa2)](_0x32bf8c);});else{if(((_0x3b47da=_0x4650dd[_0x17e54a(0x86)]())===null||_0x3b47da===void 0x0?void 0x0:_0x3b47da[_0x17e54a(0x9f)]())===_0x17e54a(0xa7))_0x4650dd[_0x17e54a(0x86)]()[_0x17e54a(0xa1)]()[0x0][_0x17e54a(0x99)](_0x2715fa=>{var _0x10f95a=_0x17e54a;_0x2715fa[_0x10f95a(0x99)](_0x2812c5=>{_0x2d0427['push'](_0x2812c5);}),_0x2d0427[_0x10f95a(0xa2)](_0x2715fa);});else((_0x26617f=_0x4650dd[_0x17e54a(0x86)]())===null||_0x26617f===void 0x0?void 0x0:_0x26617f[_0x17e54a(0x9f)]())===_0x17e54a(0xa0)?_0x2d0427=_0x4650dd[_0x17e54a(0x86)]()['getCoordinates']():_0x2d0427=[(_0x143e04=_0x4650dd[_0x17e54a(0x86)]())===null||_0x143e04===void 0x0?void 0x0:_0x143e04[_0x17e54a(0xa1)]()];}return new a49_0x1ee4b0([_0x4650dd['getGeometry'](),new MultiPoint(_0x2d0427)]);}});function a49_0x52d7(_0x51c27e,_0x569911){var _0x2034f=a49_0x2034();return a49_0x52d7=function(_0x52d70e,_0x3232dc){_0x52d70e=_0x52d70e-0x82;var _0x290e64=_0x2034f[_0x52d70e];return _0x290e64;},a49_0x52d7(_0x51c27e,_0x569911);}export default class Modify extends Select{constructor(_0x200a7e){var _0x5837a3=a49_0x152ed0;_0x200a7e=_0x200a7e||{};const _0x13fe63=Object[_0x5837a3(0x8c)]({},_0x200a7e);_0x13fe63['style']=selectModifyStyle,_0x13fe63[_0x5837a3(0x9c)]=_0x26f4a2=>{var _0x498c97=_0x5837a3;if(!_0x26f4a2[_0x498c97(0x85)])return![];if(this[_0x498c97(0x96)]==undefined||this[_0x498c97(0x96)]['length']==0x0)return![];return this[_0x498c97(0x96)]['some'](_0xf6a104=>_0xf6a104[_0x498c97(0x93)]()===_0x26f4a2[_0x498c97(0x93)]());},super(_0x13fe63),this[_0x5837a3(0xa6)]=null,this[_0x5837a3(0x96)]=_0x200a7e[_0x5837a3(0x8b)],this[_0x5837a3(0x83)]=new a49_0x42a580({'features':this['getFeatures']()}),this[_0x5837a3(0x88)]=new a49_0xdb2e2e({'features':this[_0x5837a3(0x97)](),'condition':platformModifierKeyOnly}),this[_0x5837a3(0x97)]()['on'](_0x5837a3(0x8d),_0x5bac64=>{var _0xcdcc23=_0x5837a3,_0x5d855e,_0x5e8cd7;this[_0xcdcc23(0xa6)]=this[_0xcdcc23(0xa4)](),(_0x5d855e=this[_0xcdcc23(0xa4)]())===null||_0x5d855e===void 0x0?void 0x0:_0x5d855e[_0xcdcc23(0x94)](this['modifyInteraction']),(_0x5e8cd7=this[_0xcdcc23(0xa4)]())===null||_0x5e8cd7===void 0x0?void 0x0:_0x5e8cd7[_0xcdcc23(0x94)](this[_0xcdcc23(0x88)]);}),this[_0x5837a3(0x97)]()['on'](_0x5837a3(0xa5),_0x898293=>{var _0x140d3d=_0x5837a3,_0x19372f,_0x440f8e;(_0x19372f=this[_0x140d3d(0xa4)]())===null||_0x19372f===void 0x0?void 0x0:_0x19372f['removeInteraction'](this['modifyInteraction']),(_0x440f8e=this[_0x140d3d(0xa4)]())===null||_0x440f8e===void 0x0?void 0x0:_0x440f8e['removeInteraction'](this[_0x140d3d(0x88)]),this[_0x140d3d(0xa4)]()[_0x140d3d(0x8f)]();});}[a49_0x152ed0(0xa8)](_0x3ec0ab){var _0x1dbe6e=a49_0x152ed0;super[_0x1dbe6e(0xa8)](_0x3ec0ab),!_0x3ec0ab&&this[_0x1dbe6e(0xa6)]&&(this[_0x1dbe6e(0xa6)][_0x1dbe6e(0x8e)](this['modifyInteraction']),this[_0x1dbe6e(0xa6)][_0x1dbe6e(0x8e)](this[_0x1dbe6e(0x88)]));}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50_0x1ad97f=a50_0x4ac9;(function(_0x52de17,_0x4881a5){const _0x2e5df9=a50_0x4ac9,_0x30ab63=_0x52de17();while(!![]){try{const _0x3930d3=-parseInt(_0x2e5df9(0x12e))/0x1*(-parseInt(_0x2e5df9(0xe7))/0x2)+parseInt(_0x2e5df9(0xfb))/0x3+-parseInt(_0x2e5df9(0xf2))/0x4+parseInt(_0x2e5df9(0x121))/0x5+-parseInt(_0x2e5df9(0xe5))/0x6+-parseInt(_0x2e5df9(0x119))/0x7*(parseInt(_0x2e5df9(0xf5))/0x8)+parseInt(_0x2e5df9(0x116))/0x9;if(_0x3930d3===_0x4881a5)break;else _0x30ab63['push'](_0x30ab63['shift']());}catch(_0x20b03a){_0x30ab63['push'](_0x30ab63['shift']());}}}(a50_0x172a,0x2c9cb));import a50_0x3980c3 from'./Draw';import a50_0x6599ca from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x30358b from'../feature/FeatureManager';function a50_0x4ac9(_0x2f50b4,_0x91359b){const _0x172af0=a50_0x172a();return a50_0x4ac9=function(_0x4ac9ca,_0x19cbfd){_0x4ac9ca=_0x4ac9ca-0xdb;let _0xe0913d=_0x172af0[_0x4ac9ca];return _0xe0913d;},a50_0x4ac9(_0x2f50b4,_0x91359b);}function a50_0x172a(){const _0x22ca42=['selectTempLayer','currentLayers','keydown','getLayers','未获取到几何','cancePointStyle','931460qxNYTX','map','addEventListener','ctrlKey','includes','selectedLineFeatures','LineString','layerId','loadFilter','seletctEditeFeature','SELECTED','error','canceLineStyle','57542vWKSVU','forEach','lineFeatures','cut','lineStyle','cancePolygonStyle','selected','getSelectedFeatures','union','push','selectLayer','1429032zcmLpm','Polygon','2EBXLaP','import','coordinates','selectedPointFeatures','MultiPolygon','message','getLayerById','tipText','drawEnd','setStyle','getLineTempLayer','846852UflPsl','getCode','setSelectLayers','252776rMQnRy','getMap','getGeometry','dispatchEvent','tempLayer','getVisible','757272mQKcdP','getProjection','allFeatures','filter','pointFeatures','MultiLineString','allSelectedFeatures','getResolution','layerInfo','pointStyle','fromType','selectedPolygonFeatures','selectGeom','addTempLayer','layerType','MultiPoint','length','polygonFeatures','pixelDistance','SELECTSTART','getType','selectIndex','polygonStyle','selectStart','Point','getPolygonTempLayer','feature','1511595MMECcF','getSource','getPointTempLayer','7TPPebI','url'];a50_0x172a=function(){return _0x22ca42;};return a50_0x172a();}import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'SELECTSTART':a50_0x1ad97f(0x112),'SELECTED':a50_0x1ad97f(0xe0)};export class SelectEvent extends a50_0x6599ca{constructor(_0x2dcf45,_0x8b07dd,_0x1744c1,_0xcc18ca,_0x1a7195,_0x29d698,_0x16387e,_0x40accb,_0x1a0533){const _0x1b4eff=a50_0x1ad97f;super(_0x2dcf45),this[_0x1b4eff(0x107)]=_0x1744c1,this[_0x1b4eff(0xe9)]=_0xcc18ca,this[_0x1b4eff(0xff)]=_0x1a7195,this[_0x1b4eff(0xdc)]=_0x29d698,this[_0x1b4eff(0x10c)]=_0x16387e,this[_0x1b4eff(0xfd)]=_0x40accb,this[_0x1b4eff(0x12c)]=_0x1a0533,this['holdCtrl']=_0x8b07dd;}}export default class Select extends a50_0x3980c3{constructor(_0x31b841,_0x2404c0){const _0x1d9392=a50_0x1ad97f;super(_0x31b841,{'tipText':_0x2404c0===null||_0x2404c0===void 0x0?void 0x0:_0x2404c0[_0x1d9392(0xee)]}),this[_0x1d9392(0xea)]=[],this[_0x1d9392(0x126)]=[],this[_0x1d9392(0x106)]=[],this[_0x1d9392(0x101)]=[];const _0x3c4297=_0x2404c0||{};this[_0x1d9392(0x108)]=_0x3c4297[_0x1d9392(0x108)]||![],this[_0x1d9392(0x11c)]=_0x3c4297['selectLayers'],this[_0x1d9392(0x11b)]=_0x3c4297['selectTempLayer']===undefined?!![]:_0x3c4297[_0x1d9392(0x11b)],this['pixelDistance']=_0x3c4297['pixelDistance']===undefined?0x5:_0x3c4297[_0x1d9392(0x10d)],this[_0x1d9392(0x104)]=_0x3c4297[_0x1d9392(0x104)]?getStyle(_0x3c4297['pointStyle']):getSelectPointStyle(),this['cancePointStyle']=_0x3c4297['cancePointStyle']?getStyle(_0x3c4297[_0x1d9392(0x120)]):getSelectCancePointStyle(),this['lineStyle']=_0x3c4297[_0x1d9392(0xde)]?getStyle(_0x3c4297[_0x1d9392(0xde)]):getSelectLineStyle(),this[_0x1d9392(0x12d)]=_0x3c4297['canceLineStyle']?getStyle(_0x3c4297[_0x1d9392(0x12d)]):getSelectCancelLineStyle(),this['polygonStyle']=_0x3c4297[_0x1d9392(0x111)]?getStyle(_0x3c4297['polygonStyle']):getSelectPolygonStyle(),this['cancePolygonStyle']=_0x3c4297[_0x1d9392(0xdf)]?getStyle(_0x3c4297[_0x1d9392(0xdf)]):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x34e2ba;this['on']=this['onInternal'],this['on'](_0x1d9392(0xef),async _0x4f7113=>{const _0x1aac64=_0x1d9392,_0x4ddb24=this['holdCtrl'],_0x31d5a5=this[_0x1aac64(0xf6)]();if(!_0x31d5a5)return;try{let _0x5b637f=undefined;if(!_0x4f7113['feature']&&_0x4f7113[_0x1aac64(0xe9)]&&_0x4f7113[_0x1aac64(0xe9)]['length']==0x1)_0x5b637f=bufferPixel(new Point(_0x4f7113['coordinates'][0x0]),this[_0x1aac64(0x10d)],_0x31d5a5);else _0x4f7113[_0x1aac64(0x115)]&&(_0x5b637f=_0x4f7113[_0x1aac64(0x115)]['getGeometry']());if(!_0x5b637f)throw new Error(_0x1aac64(0x11f));this[_0x1aac64(0xf8)](new SelectEvent(SelectEventType[_0x1aac64(0x10e)],_0x4ddb24,_0x5b637f)),this[_0x1aac64(0xea)]=[],this[_0x1aac64(0x126)]=[],this['selectedPolygonFeatures']=[],this[_0x1aac64(0x101)]=[],this[_0x1aac64(0x11b)]&&this['seletctEditeFeature'](_0x5b637f),_0x34e2ba&&clearTimeout(_0x34e2ba),_0x34e2ba=setTimeout(async()=>{const _0x1b5c0b=_0x1aac64;await this[_0x1b5c0b(0xe4)](_0x5b637f),this[_0x1b5c0b(0xf8)](new SelectEvent(SelectEventType['SELECTED'],_0x4ddb24,_0x5b637f,_0x4f7113[_0x1b5c0b(0xe9)],this[_0x1b5c0b(0xea)],this[_0x1b5c0b(0x126)],this[_0x1b5c0b(0x106)],this[_0x1b5c0b(0x101)]));},0x46);}catch(_0xa448db){this['dispatchEvent'](new SelectEvent(SelectEventType[_0x1aac64(0x12b)],_0x4ddb24,undefined,_0x4f7113['coordinates'],this['selectedPointFeatures'],this[_0x1aac64(0x126)],this['selectedPolygonFeatures'],this[_0x1aac64(0x101)],_0xa448db[_0x1aac64(0xec)]));}}),window['addEventListener'](_0x1d9392(0x11d),_0x594c6a=>{const _0x2ec94e=_0x1d9392;_0x594c6a[_0x2ec94e(0x124)]&&(this['holdCtrl']=!![]);}),window[_0x1d9392(0x123)]('keyup',_0x2e1b08=>{this['holdCtrl']=![];});}[a50_0x1ad97f(0xf4)](_0x185939){const _0x34dc59=a50_0x1ad97f;this[_0x34dc59(0x11c)]=_0x185939;}async[a50_0x1ad97f(0xe4)](_0x34476b){const _0x5a59a2=a50_0x1ad97f;var _0x15ae02;const _0x241821=this[_0x5a59a2(0xf6)]();let _0x225b23=[];if(this[_0x5a59a2(0x11c)]&&this[_0x5a59a2(0x11c)][_0x5a59a2(0x10b)]>0x0)_0x225b23=this['currentLayers'];else{let _0x4687a5=_0x241821[_0x5a59a2(0x11e)]()['getArray']();_0x4687a5=_0x4687a5[_0x5a59a2(0xfe)](_0x45bc6a=>{const _0x2ff311=_0x5a59a2,_0x2e561b=_0x45bc6a[_0x2ff311(0x103)];if(!_0x2e561b)return![];return _0x45bc6a[_0x2ff311(0xfa)]()==!![]&&_0x2e561b['selectIndex']!=undefined&&_0x2e561b[_0x2ff311(0x110)]!='';}),_0x225b23=_0x4687a5[_0x5a59a2(0x122)](_0xc38b3c=>{const _0x2bc4af=_0x5a59a2;return _0xc38b3c[_0x2bc4af(0x103)];});}if(!_0x225b23||_0x225b23[_0x5a59a2(0x10b)]==0x0)return;const _0x538843=_0x241821['getView']()[_0x5a59a2(0xfc)]()[_0x5a59a2(0xf3)](),_0x48f61b=_0x241821['getView']()[_0x5a59a2(0x102)]();for(let _0x111746=0x0,_0x4ea671=_0x225b23[_0x5a59a2(0x10b)];_0x111746<_0x4ea671;_0x111746++){const _0x1769e9=_0x225b23[_0x111746],_0x1e2d15=_0x241821[_0x5a59a2(0xed)](_0x1769e9['id']);if(!_0x1e2d15||_0x1e2d15[_0x5a59a2(0xfa)]()==![]||!_0x1769e9||!_0x1769e9[_0x5a59a2(0x11a)]||!_0x1769e9[_0x5a59a2(0x110)])continue;let _0x4b1517=await selectFeaturesByGeo(_0x34476b,_0x538843,_0x1769e9[_0x5a59a2(0x11a)],_0x1769e9[_0x5a59a2(0x110)],_0x1769e9[_0x5a59a2(0x109)],_0x1769e9[_0x5a59a2(0x129)],_0x48f61b);if(_0x4b1517[_0x5a59a2(0x10b)]>0x0){this[_0x5a59a2(0x101)][_0x5a59a2(0xe3)](..._0x4b1517);let _0x18ce5c=_0x241821[_0x5a59a2(0x114)](),_0x5446a0=this[_0x5a59a2(0x111)];switch((_0x15ae02=_0x4b1517[0x0][_0x5a59a2(0xf7)]())===null||_0x15ae02===void 0x0?void 0x0:_0x15ae02[_0x5a59a2(0x10f)]()){case'Point':case _0x5a59a2(0x10a):this[_0x5a59a2(0xea)][_0x5a59a2(0xe3)](..._0x4b1517),_0x18ce5c=_0x241821[_0x5a59a2(0x118)](),_0x5446a0=this[_0x5a59a2(0x104)];break;case _0x5a59a2(0x127):case'MultiLineString':this[_0x5a59a2(0x126)][_0x5a59a2(0xe3)](..._0x4b1517),_0x18ce5c=_0x241821[_0x5a59a2(0xf1)](),_0x5446a0=this[_0x5a59a2(0xde)];break;case _0x5a59a2(0xe6):case _0x5a59a2(0xeb):this[_0x5a59a2(0x106)][_0x5a59a2(0xe3)](..._0x4b1517),_0x18ce5c=_0x241821[_0x5a59a2(0x114)](),_0x5446a0=this[_0x5a59a2(0x111)];break;default:break;}const _0xf92549=_0x18ce5c[_0x5a59a2(0x117)]();_0xf92549&&(_0x4b1517[_0x5a59a2(0xdb)](_0x14687c=>{const _0x5bd641=_0x5a59a2;_0x14687c[_0x5bd641(0x128)]=_0x1769e9['id'],_0x14687c[_0x5bd641(0xf9)]=_0x18ce5c,_0x14687c[_0x5bd641(0xf0)](_0x5446a0);}),this[_0x5a59a2(0x108)]&&_0xf92549['addFeatures'](_0x4b1517));}}}[a50_0x1ad97f(0x12a)](_0x883212){const _0x13545d=a50_0x1ad97f,_0x1ac126=new a50_0x30358b(this['getMap']()),_0x140d25=_0x1ac126[_0x13545d(0xe1)]();if(!_0x140d25||_0x140d25[_0x13545d(0x10b)]===0x0)return[];const _0x416ce0=['copy',_0x13545d(0xdd),'draw',_0x13545d(0xe8),_0x13545d(0xe2)],_0x54a880=[];for(const _0x432fe3 of _0x140d25){if(!_0x432fe3||!_0x432fe3[_0x13545d(0x105)]||!_0x416ce0[_0x13545d(0x125)](_0x432fe3['fromType']))continue;const _0xab781a=_0x432fe3[_0x13545d(0xf7)]();if(!_0xab781a)continue;if(!intersects(_0xab781a,_0x883212))continue;let _0x5bd1b8=this[_0x13545d(0x111)];this[_0x13545d(0x101)]['push'](_0x432fe3);switch(_0xab781a[_0x13545d(0x10f)]()){case _0x13545d(0x113):case _0x13545d(0x10a):this[_0x13545d(0xea)][_0x13545d(0xe3)](_0x432fe3),_0x5bd1b8=this[_0x13545d(0x104)];break;case _0x13545d(0x127):case _0x13545d(0x100):this['selectedLineFeatures']['push'](_0x432fe3),_0x5bd1b8=this['lineStyle'];break;case _0x13545d(0xe6):case _0x13545d(0xeb):this[_0x13545d(0x106)][_0x13545d(0xe3)](_0x432fe3),_0x5bd1b8=this[_0x13545d(0x111)];break;default:break;}_0x432fe3[_0x13545d(0xf0)](_0x5bd1b8);}return _0x54a880;}}
|
package/interaction/Split.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x3c3f91=a51_0x3e43;function a51_0x243c(){const _0x31cf65=['5BdNeAq','SPLITED','splitFeatures','5413950RPPZQa','fromType','2286228CfeOrl','未获取到绘制的分割线','splited','setGeometry','3208184wNYFIO','clone','dispatchEvent','addTempLayer','addFeature','未获取到分割要素','getMap','64DSAnay','24PffzVF','error','149715cknvZc','tipText','sourceFeatures','setFeatures','length','SPLITSTART','drawEnd','getGeometry','749368Bhwbnl','421947DwPpFX','push','cut','getSource','features','tempLayer','307790rNOOwj','message','onInternal'];a51_0x243c=function(){return _0x31cf65;};return a51_0x243c();}(function(_0x5501c2,_0x57c344){const _0x101669=a51_0x3e43,_0x2ef039=_0x5501c2();while(!![]){try{const _0x514bb5=parseInt(_0x101669(0x1ff))/0x1+-parseInt(_0x101669(0x1f8))/0x2+-parseInt(_0x101669(0x1f0))/0x3*(-parseInt(_0x101669(0x1ee))/0x4)+parseInt(_0x101669(0x202))/0x5*(parseInt(_0x101669(0x1e2))/0x6)+-parseInt(_0x101669(0x1e6))/0x7+-parseInt(_0x101669(0x1ed))/0x8*(parseInt(_0x101669(0x1f9))/0x9)+parseInt(_0x101669(0x1e0))/0xa;if(_0x514bb5===_0x57c344)break;else _0x2ef039['push'](_0x2ef039['shift']());}catch(_0x12890d){_0x2ef039['push'](_0x2ef039['shift']());}}}(a51_0x243c,0x4e839));import a51_0xde2d55 from'./Draw';import a51_0x4765d4 from'ol/events/Event';function a51_0x3e43(_0xf97aa8,_0x3e7283){const _0x243c02=a51_0x243c();return a51_0x3e43=function(_0x3e43de,_0x4a6f32){_0x3e43de=_0x3e43de-0x1e0;let _0x4ac27b=_0x243c02[_0x3e43de];return _0x4ac27b;},a51_0x3e43(_0xf97aa8,_0x3e7283);}import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':'splitStart','SPLITED':a51_0x3c3f91(0x1e4)};export class SplitEvent extends a51_0x4765d4{constructor(_0xa97e13,_0x2958cc,_0x45ad5c,_0x34a0f2){const _0x21e483=a51_0x3c3f91;super(_0xa97e13),this['splitLine']=_0x2958cc,this[_0x21e483(0x1fd)]=_0x45ad5c,this[_0x21e483(0x1ef)]=_0x34a0f2;}}export default class Split extends a51_0xde2d55{constructor(_0x224254,_0x4a32a8){const _0x56e46e=a51_0x3c3f91,_0x2282ab=(_0x4a32a8===null||_0x4a32a8===void 0x0?void 0x0:_0x4a32a8['splitLineStyle'])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2};super('polyline',{'tipText':_0x4a32a8===null||_0x4a32a8===void 0x0?void 0x0:_0x4a32a8[_0x56e46e(0x1f1)],'style':_0x2282ab}),this[_0x56e46e(0x1f2)]=_0x224254;const _0x1513e8=_0x4a32a8||{};this[_0x56e46e(0x1e9)]=_0x1513e8[_0x56e46e(0x1e9)]||![],this['on']=this[_0x56e46e(0x201)],this['on'](_0x56e46e(0x1f6),async _0x39856a=>{const _0x4a1301=_0x56e46e;var _0x247db0;const _0x156d36=this[_0x4a1301(0x1ec)]();let _0x13630e=(_0x247db0=_0x39856a['feature'])===null||_0x247db0===void 0x0?void 0x0:_0x247db0[_0x4a1301(0x1f7)]();!_0x13630e&&this['dispatchEvent'](new SplitEvent(SplitEventType[_0x4a1301(0x203)],undefined,undefined,_0x4a1301(0x1e3)));let _0x4e019c=_0x13630e;!_0x156d36&&this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x203)],_0x4e019c,undefined,'未获取到地图对象'));(!this[_0x4a1301(0x1f2)]||this[_0x4a1301(0x1f2)][_0x4a1301(0x1f4)]===0x0)&&this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x203)],_0x4e019c,undefined,_0x4a1301(0x1eb)));try{this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x1f5)],_0x4e019c));const _0x4d573f=this[_0x4a1301(0x204)](_0x4e019c);this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x203)],_0x4e019c,_0x4d573f));}catch(_0x5632f5){this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x203)],_0x4e019c,undefined,_0x5632f5[_0x4a1301(0x200)]));}});}[a51_0x3c3f91(0x204)](_0x3a6189){const _0x57ed16=a51_0x3c3f91;var _0x2cec9d;const _0x230f9d=[],_0x3fe080=(_0x2cec9d=this['sourceFeatures'][0x0][_0x57ed16(0x1fe)])===null||_0x2cec9d===void 0x0?void 0x0:_0x2cec9d[_0x57ed16(0x1fc)]();for(let _0x1be602=0x0;_0x1be602<this['sourceFeatures']['length'];_0x1be602++){const _0x430d5c=this[_0x57ed16(0x1f2)][_0x1be602],_0x133dbd=_0x430d5c['getGeometry']();let _0x3054d2=[];if(_0x133dbd instanceof Polygon||_0x133dbd instanceof MultiPolygon)_0x3054d2=jstlSplit(_0x133dbd,_0x3a6189);else(_0x133dbd instanceof LineString||_0x133dbd instanceof MultiLineString)&&(_0x3054d2=splitLineByLine(_0x133dbd,_0x3a6189));if(_0x3054d2[_0x57ed16(0x1f4)]>0x1){_0x430d5c[_0x57ed16(0x1e5)](_0x3054d2[0x0]),_0x230f9d[_0x57ed16(0x1fa)](_0x430d5c);for(let _0x32c711=0x1;_0x32c711<_0x3054d2['length'];_0x32c711++){const _0x426a67=_0x430d5c[_0x57ed16(0x1e7)]();_0x426a67['layerId']=undefined,_0x426a67[_0x57ed16(0x1e1)]=_0x57ed16(0x1fb),_0x426a67[_0x57ed16(0x1fe)]=_0x430d5c[_0x57ed16(0x1fe)],_0x426a67['setGeometry'](_0x3054d2[_0x32c711]),this[_0x57ed16(0x1e9)]&&(_0x3fe080===null||_0x3fe080===void 0x0?void 0x0:_0x3fe080[_0x57ed16(0x1ea)](_0x426a67)),_0x230f9d[_0x57ed16(0x1fa)](_0x426a67);}}}return _0x230f9d;}[a51_0x3c3f91(0x1f3)](_0x4234){this['sourceFeatures']=_0x4234;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a52_0x53be(_0x63fefd,_0x16cd38){const _0x4028f6=a52_0x4028();return a52_0x53be=function(_0x53be01,_0x4f997f){_0x53be01=_0x53be01-0xcd;let _0x536319=_0x4028f6[_0x53be01];return _0x536319;},a52_0x53be(_0x63fefd,_0x16cd38);}const a52_0x205f5=a52_0x53be;(function(_0x4ca541,_0x26789a){const _0x483922=a52_0x53be,_0x58913b=_0x4ca541();while(!![]){try{const _0x5e00cd=-parseInt(_0x483922(0xd1))/0x1+parseInt(_0x483922(0xd4))/0x2*(-parseInt(_0x483922(0xcf))/0x3)+parseInt(_0x483922(0xdc))/0x4+-parseInt(_0x483922(0xd6))/0x5*(parseInt(_0x483922(0xe9))/0x6)+-parseInt(_0x483922(0xe1))/0x7*(parseInt(_0x483922(0xdd))/0x8)+-parseInt(_0x483922(0xde))/0x9+parseInt(_0x483922(0xeb))/0xa;if(_0x5e00cd===_0x26789a)break;else _0x58913b['push'](_0x58913b['shift']());}catch(_0x787853){_0x58913b['push'](_0x58913b['shift']());}}}(a52_0x4028,0x50c44));import a52_0x2ff22f from'ol/source/ImageArcGISRest';import{Image as a52_0x370269}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a52_0x4028(){const _0x3d80a9=['layerDefs','18xwQaBJ','join','13112740KdVgDd','EPSG:','ymax','53478ERPUxK','ymin','203692TyjImd','setFilter','url','4MlvWBA','spatialReference','928495WnCvKj','loadFilter','initialExtent','layerInfo','xmax','stringify','667612AVmdSY','8moLOgr','409518yHxRpE','sublayers','projection','2137898nMQZMp','fullExtent','selectIndex','opacity','xmin','show:','wkid'];a52_0x4028=function(){return _0x3d80a9;};return a52_0x4028();}export default class ArcgisDynamicLayer extends a52_0x370269{constructor(_0x439441,_0x2f5df0){const _0x56569f=a52_0x53be;var _0x22ffa1;let _0x565c87={'LAYERS':_0x56569f(0xe6)+((_0x22ffa1=_0x439441[_0x56569f(0xdf)])===null||_0x22ffa1===void 0x0?void 0x0:_0x22ffa1[_0x56569f(0xea)](','))};if(_0x439441[_0x56569f(0xd7)]&&_0x439441['selectIndex']){const _0x249c8f={};_0x249c8f[_0x439441[_0x56569f(0xe3)]]=_0x439441[_0x56569f(0xd7)],_0x565c87[_0x56569f(0xe8)]=JSON[_0x56569f(0xdb)](_0x249c8f);}const _0x2429c1=[_0x2f5df0[_0x56569f(0xd8)][_0x56569f(0xe5)],_0x2f5df0['initialExtent'][_0x56569f(0xd0)],_0x2f5df0[_0x56569f(0xd8)][_0x56569f(0xda)],_0x2f5df0['initialExtent'][_0x56569f(0xce)]],_0x404b69=[_0x2f5df0[_0x56569f(0xe2)]['xmin'],_0x2f5df0[_0x56569f(0xe2)]['ymin'],_0x2f5df0[_0x56569f(0xe2)][_0x56569f(0xda)],_0x2f5df0['fullExtent'][_0x56569f(0xce)]];let _0x865a25;_0x2f5df0[_0x56569f(0xd5)][_0x56569f(0xe7)]?_0x865a25=registerProj(_0x56569f(0xcd)+_0x2f5df0[_0x56569f(0xd5)][_0x56569f(0xe7)],_0x404b69):_0x865a25=registerProj(_0x2f5df0[_0x56569f(0xd5)]['wkt'],_0x404b69),super({'opacity':_0x439441[_0x56569f(0xe4)],'zIndex':_0x439441['mapIndex'],'source':new a52_0x2ff22f({'crossOrigin':'anonymous','projection':_0x865a25,'ratio':0x1,'url':_0x439441[_0x56569f(0xd3)],'params':_0x565c87})}),this['id']=_0x439441['id'],this[_0x56569f(0xd8)]=_0x2429c1,this[_0x56569f(0xe0)]=_0x865a25,this[_0x56569f(0xd9)]=_0x439441;}[a52_0x205f5(0xd2)](_0xf93446){const _0x4afe63=a52_0x205f5;var _0x26394c;const _0x58c022={};this[_0x4afe63(0xd9)][_0x4afe63(0xe3)]&&(_0x58c022[this[_0x4afe63(0xd9)]['selectIndex']]=_0xf93446),(_0x26394c=this['getSource']())===null||_0x26394c===void 0x0?void 0x0:_0x26394c['updateParams']({'layerDefs':JSON[_0x4afe63(0xdb)](_0xf93446)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0xc02e5b=a53_0x1f3f;(function(_0x1977fb,_0x3bb999){const _0x1b4b61=a53_0x1f3f,_0x4df7df=_0x1977fb();while(!![]){try{const _0x52b940=parseInt(_0x1b4b61(0x18b))/0x1+parseInt(_0x1b4b61(0x1a0))/0x2*(parseInt(_0x1b4b61(0x1a6))/0x3)+-parseInt(_0x1b4b61(0x1af))/0x4+parseInt(_0x1b4b61(0x19d))/0x5+-parseInt(_0x1b4b61(0x1b7))/0x6*(-parseInt(_0x1b4b61(0x1b2))/0x7)+-parseInt(_0x1b4b61(0x187))/0x8+-parseInt(_0x1b4b61(0x19c))/0x9;if(_0x52b940===_0x3bb999)break;else _0x4df7df['push'](_0x4df7df['shift']());}catch(_0x4fe129){_0x4df7df['push'](_0x4df7df['shift']());}}}(a53_0x33d8,0xd24a0));import a53_0x43ddef from'ol/format/EsriJSON';import a53_0x1a71cd from'ol/source/Vector';import{Vector as a53_0x5bd08c}from'ol/layer';function a53_0x33d8(){const _0x49554e=['error','uniqueValueInfos','2534816KFzpkm','drawingInfo','createArcGISFeatureLayer','readFeatures','353792GKHrBU','layerInfo','addFeatures','ymax','setLayers','/query','log',',\x22ymax\x22:','initialExtent','spatialReference','forEach','field1',',\x22xmax\x22:',',\x22spatialReference\x22:{\x22wkid\x22:','mapIndex','defaultSymbol','value','10513890kZrJrW','1702165cNzSxn','symbol','{\x22xmin\x22:','44832KmluMd','stringify','xmax','projection','1=1','setStyle','219QRIvnS','length','uniqueValue','push','renderer','simple','f\x20=\x20json\x20&\x20','loadFilter','fullExtent','84564cdlsjK','get','split','14jqVyFQ','ymin','where=','type','setFilter','110862orspRc','showIndex',',\x22ymin\x22:','then'];a53_0x33d8=function(){return _0x49554e;};return a53_0x33d8();}import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x143ecd}from'ol/loadingstrategy';function a53_0x1f3f(_0x202e04,_0x7f1ac3){const _0x33d873=a53_0x33d8();return a53_0x1f3f=function(_0x1f3fd3,_0x30063e){_0x1f3fd3=_0x1f3fd3-0x184;let _0x2e6fd0=_0x33d873[_0x1f3fd3];return _0x2e6fd0;},a53_0x1f3f(_0x202e04,_0x7f1ac3);}import a53_0x48a110 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0x34efcd from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x48a110{constructor(_0x136d44,_0xd27d7b,_0x163926){const _0x1ac02d=a53_0x1f3f,_0x410878=[_0xd27d7b[_0x1ac02d(0x193)]['xmin'],_0xd27d7b[_0x1ac02d(0x193)][_0x1ac02d(0x1b3)],_0xd27d7b[_0x1ac02d(0x193)][_0x1ac02d(0x1a2)],_0xd27d7b['initialExtent'][_0x1ac02d(0x18e)]],_0x585104=[_0xd27d7b[_0x1ac02d(0x1ae)]['xmin'],_0xd27d7b[_0x1ac02d(0x1ae)]['ymin'],_0xd27d7b['fullExtent']['xmax'],_0xd27d7b[_0x1ac02d(0x1ae)][_0x1ac02d(0x18e)]];let _0x55c46a;_0xd27d7b['spatialReference']['wkid']?_0x55c46a=registerProj('EPSG:'+_0xd27d7b[_0x1ac02d(0x194)]['wkid'],_0x585104):_0x55c46a=registerProj(_0xd27d7b[_0x1ac02d(0x194)]['wkt'],_0x585104);let _0x1b23a4=[];super({'zIndex':_0x136d44[_0x1ac02d(0x199)]});for(let _0x4511bb of _0x163926){let _0x33e5ef=this[_0x1ac02d(0x189)](_0x136d44,_0x4511bb);_0x1b23a4[_0x1ac02d(0x1a9)](_0x33e5ef);}this[_0x1ac02d(0x18f)](new a53_0x34efcd(_0x1b23a4)),this['id']=_0x136d44['id'],this[_0x1ac02d(0x193)]=_0x410878,this[_0x1ac02d(0x1a3)]=_0x55c46a,this['layerInfo']=_0x136d44;}['createArcGISFeatureLayer'](_0x3f3634,_0x291115){const _0x561792=a53_0x1f3f;var _0x3471e5=new a53_0x43ddef();let _0x17fb7d=new a53_0x1a71cd({'loader':function(_0x259f6c,_0x3191fe,_0x45a024){const _0x11d6cd=a53_0x1f3f;let _0x337bc1=_0x11d6cd(0x1a4);_0x3f3634['loadFilter']&&(_0x337bc1=typeof _0x3f3634[_0x11d6cd(0x1ad)]==='string'?_0x3f3634[_0x11d6cd(0x1ad)]:JSON[_0x11d6cd(0x1a1)](_0x3f3634[_0x11d6cd(0x1ad)]));let _0x40ac41=_0x45a024['getCode'](),_0x511786=_0x40ac41[_0x11d6cd(0x1b1)](':')[0x1];var _0xb8fa83=appendPath(_0x291115['url'],_0x11d6cd(0x190));_0xb8fa83=appendParam(_0xb8fa83,_0x11d6cd(0x1ac)+_0x11d6cd(0x1b4)+encodeURIComponent(_0x337bc1)+'returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry='+encodeURIComponent(_0x11d6cd(0x19f)+_0x259f6c[0x0]+_0x11d6cd(0x1b9)+_0x259f6c[0x1]+_0x11d6cd(0x197)+_0x259f6c[0x2]+_0x11d6cd(0x192)+_0x259f6c[0x3]+_0x11d6cd(0x198)+_0x511786+'}}')+'&geometryType=esriGeometryEnvelope&inSR='+_0x511786+'&outFields=*'+'&outSR='+_0x511786),jsonp(_0xb8fa83)[_0x11d6cd(0x184)](_0x1deb97=>{const _0x45d10a=_0x11d6cd;if(_0x1deb97[_0x45d10a(0x185)])console[_0x45d10a(0x191)](_0x1deb97);else{var _0x540b03=_0x3471e5[_0x45d10a(0x18a)](_0x1deb97,{'featureProjection':_0x45a024});_0x540b03[_0x45d10a(0x1a7)]>0x0&&(_0x291115[_0x45d10a(0x188)]['renderer'][_0x45d10a(0x1b5)]==_0x45d10a(0x1a8)&&_0x540b03[_0x45d10a(0x195)](function(_0x353a45){const _0x3f6b4c=_0x45d10a;var _0x43b22d=_0x353a45[_0x3f6b4c(0x1b0)](_0x291115[_0x3f6b4c(0x188)][_0x3f6b4c(0x1aa)][_0x3f6b4c(0x196)]);const _0x49069a=_0x291115[_0x3f6b4c(0x188)][_0x3f6b4c(0x1aa)][_0x3f6b4c(0x186)]['find'](_0x16a5a3=>_0x16a5a3[_0x3f6b4c(0x19b)]==_0x43b22d);let _0x1dae99;_0x49069a?_0x1dae99=transformedEsriStyle(_0x49069a['symbol']):_0x1dae99=transformedEsriStyle(_0x291115[_0x3f6b4c(0x188)][_0x3f6b4c(0x1aa)][_0x3f6b4c(0x19a)]),_0x353a45['setStyle'](_0x1dae99);}),_0x17fb7d[_0x45d10a(0x18d)](_0x540b03));}});},'strategy':a53_0x143ecd(createXYZ({'tileSize':0x200}))}),_0x215c33=new a53_0x5bd08c({'source':_0x17fb7d,'zIndex':_0x3f3634[_0x561792(0x1b8)]});if(_0x291115[_0x561792(0x188)]['renderer'][_0x561792(0x1b5)]==_0x561792(0x1ab)&&_0x291115[_0x561792(0x188)][_0x561792(0x1aa)]['symbol']){let _0x3c6d1e=transformedEsriStyle(_0x291115[_0x561792(0x188)][_0x561792(0x1aa)][_0x561792(0x19e)]);_0x215c33[_0x561792(0x1a5)](_0x3c6d1e);}return _0x215c33;}[a53_0xc02e5b(0x1b6)](_0x336a4c){const _0x53cdbe=a53_0xc02e5b;this[_0x53cdbe(0x18c)][_0x53cdbe(0x1ad)]=_0x336a4c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x194662,_0x42890b){const _0x9ab8db=a54_0x4a3b,_0x605ef2=_0x194662();while(!![]){try{const _0x2ff9bc=parseInt(_0x9ab8db(0x1c6))/0x1+-parseInt(_0x9ab8db(0x1c9))/0x2*(parseInt(_0x9ab8db(0x1c7))/0x3)+-parseInt(_0x9ab8db(0x1bc))/0x4+parseInt(_0x9ab8db(0x1c1))/0x5+parseInt(_0x9ab8db(0x1cd))/0x6*(-parseInt(_0x9ab8db(0x1d1))/0x7)+parseInt(_0x9ab8db(0x1d5))/0x8+-parseInt(_0x9ab8db(0x1c8))/0x9*(parseInt(_0x9ab8db(0x1cb))/0xa);if(_0x2ff9bc===_0x42890b)break;else _0x605ef2['push'](_0x605ef2['shift']());}catch(_0x16898f){_0x605ef2['push'](_0x605ef2['shift']());}}}(a54_0xa7e7,0x2e668));import a54_0x5a546a from'ol/layer/Tile';function a54_0x4a3b(_0x42b8d8,_0x3a71fb){const _0xa7e7c8=a54_0xa7e7();return a54_0x4a3b=function(_0x4a3be3,_0x5b8468){_0x4a3be3=_0x4a3be3-0x1ba;let _0x1ab240=_0xa7e7c8[_0x4a3be3];return _0x1ab240;},a54_0x4a3b(_0x42b8d8,_0x3a71fb);}import a54_0x25ba34 from'ol/source/XYZ';function a54_0xa7e7(){const _0x1f2ca3=['wkid','ymin','projection','273368CCzzct','spatialReference','origin','fullExtent','lods','306650JRVSVH','ymax','cols','url','EPSG:','222223bFKUlG','210810jENpqN','90Xjooja','6LIOlZF','xmax','97370xZzBym','initialExtent','4662MCvznk','tileInfo','resolution','anonymous','665ZrCKSh','layerInfo','mapIndex','length','2854720ciTZju'];a54_0xa7e7=function(){return _0x1f2ca3;};return a54_0xa7e7();}import a54_0x1127e8 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x5a546a{constructor(_0x310645,_0x5f19bf){const _0x9c648b=a54_0x4a3b,_0x1bdc30=_0x310645['url']?_0x310645[_0x9c648b(0x1c4)]:'',_0x2bb291=appendPath(_0x1bdc30,'/tile/{z}/{y}/{x}'),_0x555997=[_0x5f19bf[_0x9c648b(0x1cc)]['xmin'],_0x5f19bf['initialExtent'][_0x9c648b(0x1ba)],_0x5f19bf[_0x9c648b(0x1cc)][_0x9c648b(0x1ca)],_0x5f19bf[_0x9c648b(0x1cc)][_0x9c648b(0x1c2)]],_0x2f2fb5=[_0x5f19bf['fullExtent']['xmin'],_0x5f19bf[_0x9c648b(0x1bf)][_0x9c648b(0x1ba)],_0x5f19bf[_0x9c648b(0x1bf)][_0x9c648b(0x1ca)],_0x5f19bf[_0x9c648b(0x1bf)]['ymax']];let _0x425224;_0x5f19bf[_0x9c648b(0x1bd)][_0x9c648b(0x1d6)]?_0x425224=registerProj(_0x9c648b(0x1c5)+_0x5f19bf[_0x9c648b(0x1bd)][_0x9c648b(0x1d6)],_0x2f2fb5):_0x425224=registerProj(_0x5f19bf[_0x9c648b(0x1bd)]['wkt'],_0x2f2fb5);let _0x11165b=[];for(let _0x6f2bc4=0x0,_0x360a57=_0x5f19bf[_0x9c648b(0x1ce)][_0x9c648b(0x1c0)][_0x9c648b(0x1d4)];_0x6f2bc4<_0x360a57;_0x6f2bc4++){_0x11165b['push'](_0x5f19bf['tileInfo']['lods'][_0x6f2bc4][_0x9c648b(0x1cf)]);}super({'opacity':_0x310645['opacity'],'zIndex':_0x310645[_0x9c648b(0x1d3)],'maxResolution':_0x11165b[0x0]*0x2,'source':new a54_0x25ba34({'url':_0x2bb291,'projection':_0x425224,'crossOrigin':_0x9c648b(0x1d0),'tileGrid':new a54_0x1127e8({'extent':_0x2f2fb5,'origin':[_0x5f19bf[_0x9c648b(0x1ce)][_0x9c648b(0x1be)]['x'],_0x5f19bf['tileInfo'][_0x9c648b(0x1be)]['y']],'resolutions':_0x11165b,'tileSize':[_0x5f19bf[_0x9c648b(0x1ce)]['rows'],_0x5f19bf[_0x9c648b(0x1ce)][_0x9c648b(0x1c3)]]})})}),this['id']=_0x310645['id'],this[_0x9c648b(0x1cc)]=_0x555997,this[_0x9c648b(0x1bb)]=_0x425224,this[_0x9c648b(0x1d2)]=_0x310645;}}
|