ym-gis-2d 1.0.32 → 1.0.33
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/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Split.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +4 -0
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.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_0x4aa873=a43_0x13f0;function a43_0x318f(){const _0x5e7044=['getTempEditFeatures','forEach','getSource','4325512ctTIMw','setGeometry','clearTempFeatures','getSelectedFeatures','readFeature','removeFeature','layerId','currentEditLayer','geometryType','isSelected','kmlImport','layerInfo','addFeatures','features','flashGeometrys','328758olbTXr','2459758fzlOpa','getType','1770MeJxYy','747996fqVNEP','setVisible','650380mXLYTb','getVisible','getPolygonTempLayer','filter','setStyle','flash_layer','1436gBTbEf','push','tempLayer','removeLayer','getEditFeatures','getFeatures','getTempSelectedFeatures','map','9MYQuCw','getLayerById','addLayer','296911aeelrt','getPointTempLayer','getLineTempLayer'];a43_0x318f=function(){return _0x5e7044;};return a43_0x318f();}(function(_0x2a85d0,_0x39578d){const _0x2b98d2=a43_0x13f0,_0x52bd7b=_0x2a85d0();while(!![]){try{const _0x53f372=parseInt(_0x2b98d2(0x99))/0x1+-parseInt(_0x2b98d2(0x86))/0x2+-parseInt(_0x2b98d2(0x85))/0x3*(-parseInt(_0x2b98d2(0x8e))/0x4)+-parseInt(_0x2b98d2(0x88))/0x5+parseInt(_0x2b98d2(0x82))/0x6+-parseInt(_0x2b98d2(0x83))/0x7+parseInt(_0x2b98d2(0x9f))/0x8*(parseInt(_0x2b98d2(0x96))/0x9);if(_0x53f372===_0x39578d)break;else _0x52bd7b['push'](_0x52bd7b['shift']());}catch(_0x34ba61){_0x52bd7b['push'](_0x52bd7b['shift']());}}}(a43_0x318f,0x3cb9f));import a43_0x2f5846 from'../entity/Feature';import a43_0x5c66c4 from'ol/layer/Vector';import a43_0x56f329 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';function a43_0x13f0(_0x587c51,_0x4d88e0){const _0x318f14=a43_0x318f();return a43_0x13f0=function(_0x13f029,_0x3bb588){_0x13f029=_0x13f029-0x78;let _0x286dfe=_0x318f14[_0x13f029];return _0x286dfe;},a43_0x13f0(_0x587c51,_0x4d88e0);}import a43_0x4b36d0 from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x1a2e3b){const _0x48a957=a43_0x13f0;this[_0x48a957(0x95)]=_0x1a2e3b;}[a43_0x4aa873(0x92)](){const _0x9ee5cd=a43_0x4aa873;if(!this[_0x9ee5cd(0x95)]['currentEditLayer'])return;let _0x32c02f;const _0x2507e4=this[_0x9ee5cd(0x95)][_0x9ee5cd(0x97)](this[_0x9ee5cd(0x95)]['currentEditLayer']['id']);if(!_0x2507e4||!_0x2507e4['layerInfo'])return;switch(_0x2507e4['layerInfo'][_0x9ee5cd(0x7b)]){case 0x1:_0x32c02f=this[_0x9ee5cd(0x9c)](this[_0x9ee5cd(0x95)][_0x9ee5cd(0x9a)](),this[_0x9ee5cd(0x95)][_0x9ee5cd(0x7a)]['id']);break;case 0x2:_0x32c02f=this[_0x9ee5cd(0x9c)](this[_0x9ee5cd(0x95)]['getLineTempLayer'](),this['map'][_0x9ee5cd(0x7a)]['id']);break;case 0x3:_0x32c02f=this[_0x9ee5cd(0x9c)](this[_0x9ee5cd(0x95)][_0x9ee5cd(0x8a)](),this['map'][_0x9ee5cd(0x7a)]['id']);break;default:break;}return _0x32c02f;}[a43_0x4aa873(0xa2)](_0x4a12a,_0x2e37c4){const _0xbd2119=a43_0x4aa873;if(_0x4a12a){const _0x54469f=this[_0xbd2119(0x95)]['getLayerById'](_0x4a12a);if(!_0x54469f||!_0x54469f['layerInfo'])return;let _0xa64d7;switch(_0x54469f[_0xbd2119(0x7e)][_0xbd2119(0x7b)]){case 0x1:_0xa64d7=this[_0xbd2119(0x94)](this[_0xbd2119(0x95)][_0xbd2119(0x9a)](),_0x4a12a,_0x2e37c4);break;case 0x2:_0xa64d7=this['getTempSelectedFeatures'](this[_0xbd2119(0x95)][_0xbd2119(0x9b)](),_0x4a12a,_0x2e37c4);break;case 0x3:_0xa64d7=this[_0xbd2119(0x94)](this[_0xbd2119(0x95)][_0xbd2119(0x8a)](),_0x4a12a,_0x2e37c4);break;default:break;}return _0xa64d7;}else{const _0x5bf93d=this[_0xbd2119(0x94)](this[_0xbd2119(0x95)][_0xbd2119(0x9a)](),_0x4a12a,_0x2e37c4),_0x396049=this[_0xbd2119(0x94)](this[_0xbd2119(0x95)]['getLineTempLayer'](),_0x4a12a,_0x2e37c4),_0x9f0b94=this[_0xbd2119(0x94)](this[_0xbd2119(0x95)][_0xbd2119(0x8a)](),_0x4a12a,_0x2e37c4);let _0x12c428=[];return _0x5bf93d&&(_0x12c428=[..._0x12c428,..._0x5bf93d]),_0x396049&&(_0x12c428=[..._0x12c428,..._0x396049]),_0x9f0b94&&(_0x12c428=[..._0x12c428,..._0x9f0b94]),_0x12c428;}}[a43_0x4aa873(0x94)](_0x27037c,_0x2858b1,_0x51b3ac){const _0x4d91ce=a43_0x4aa873;var _0x38a96b;let _0x5ec619=(_0x38a96b=_0x27037c[_0x4d91ce(0x9e)]())===null||_0x38a96b===void 0x0?void 0x0:_0x38a96b['getFeatures']();if(!_0x5ec619)return;_0x5ec619['forEach']((_0x384184,_0x50f678,_0x11e14e)=>{const _0x5a9f34=_0x4d91ce;_0x384184[_0x5a9f34(0x90)]=_0x27037c;});_0x51b3ac!=undefined&&(_0x5ec619=_0x5ec619[_0x4d91ce(0x8b)](_0x4b92ab=>_0x4b92ab[_0x4d91ce(0x7c)]==_0x51b3ac));if(_0x2858b1)return _0x5ec619[_0x4d91ce(0x8b)](_0x47ae97=>_0x47ae97[_0x4d91ce(0x79)]==_0x2858b1);return _0x5ec619;}[a43_0x4aa873(0x9c)](_0x1a031e,_0x3e7a24){const _0x1eb508=a43_0x4aa873;var _0x5ec8fe;let _0x239ab4=(_0x5ec8fe=_0x1a031e[_0x1eb508(0x9e)]())===null||_0x5ec8fe===void 0x0?void 0x0:_0x5ec8fe[_0x1eb508(0x93)]();if(!_0x239ab4)return;return _0x239ab4[_0x1eb508(0x9d)]((_0x51f1df,_0x1b243a,_0x30d867)=>{_0x51f1df['tempLayer']=_0x1a031e;}),_0x239ab4=_0x239ab4[_0x1eb508(0x8b)](_0x1f9e08=>_0x1f9e08[_0x1eb508(0x7c)]==!![]),_0x239ab4[_0x1eb508(0x8b)](_0x5458da=>_0x5458da[_0x1eb508(0x79)]==_0x3e7a24||_0x5458da[_0x1eb508(0x79)]==undefined);}['flashFeatures'](_0x272b35,_0x198a1d=0x3){const _0x328a25=a43_0x4aa873;var _0x5efc3d;let _0x49d9d4=new a43_0x5c66c4({'zIndex':0x270f,'source':new a43_0x56f329()});_0x49d9d4['id']=_0x328a25(0x8d),this['map'][_0x328a25(0x98)](_0x49d9d4,![]),(_0x5efc3d=_0x49d9d4['getSource']())===null||_0x5efc3d===void 0x0?void 0x0:_0x5efc3d[_0x328a25(0x7f)](_0x272b35);let _0x229f4b=0x0,_0x2ed981=setInterval(()=>{const _0x2d480c=_0x328a25;if(_0x229f4b===_0x198a1d){_0x2ed981&&clearInterval(_0x2ed981);const _0x2eabea=this[_0x2d480c(0x95)][_0x2d480c(0x97)](_0x49d9d4['id']);_0x2eabea&&this['map'][_0x2d480c(0x91)](_0x2eabea);return;}if(_0x49d9d4[_0x2d480c(0x89)]())_0x49d9d4[_0x2d480c(0x87)](![]);else _0x49d9d4['setVisible'](!![]);_0x229f4b++;},0x190);}[a43_0x4aa873(0x81)](_0x55f94a,_0x3b7a16=0x3){const _0x26452f=a43_0x4aa873;var _0x2ac19d;let _0x100b40=new a43_0x5c66c4({'zIndex':0x270f,'source':new a43_0x56f329()});_0x100b40['id']=_0x26452f(0x8d),this['map'][_0x26452f(0x98)](_0x100b40,![]);let _0x4bc35b=[];_0x55f94a[_0x26452f(0x9d)](_0x4288b5=>{const _0x3c462d=_0x26452f;let _0x5f51e4=new a43_0x2f5846();const _0x3a77d0=getSelectStyle(_0x4288b5[_0x3c462d(0x84)]());_0x5f51e4[_0x3c462d(0x8c)](_0x3a77d0),_0x5f51e4[_0x3c462d(0xa0)](_0x4288b5),_0x4bc35b[_0x3c462d(0x8f)](_0x5f51e4);}),(_0x2ac19d=_0x100b40[_0x26452f(0x9e)]())===null||_0x2ac19d===void 0x0?void 0x0:_0x2ac19d['addFeatures'](_0x4bc35b);let _0x52df47=0x0,_0x238779=setInterval(()=>{const _0x2f1c43=_0x26452f;if(_0x52df47===_0x3b7a16){_0x238779&&clearInterval(_0x238779);const _0x403ebc=this[_0x2f1c43(0x95)][_0x2f1c43(0x97)](_0x100b40['id']);_0x403ebc&&this['map'][_0x2f1c43(0x91)](_0x403ebc);return;}if(_0x100b40[_0x2f1c43(0x89)]())_0x100b40[_0x2f1c43(0x87)](![]);else _0x100b40[_0x2f1c43(0x87)](!![]);_0x52df47++;},0x190);}async[a43_0x4aa873(0x7d)](_0x4e91e4){const _0x3d1a0a=a43_0x4aa873;let _0x50c4a0=await toGeoJSON(_0x4e91e4,null);if(!_0x50c4a0)return[];let _0x46c6ee=[];var _0x16f01d=new a43_0x4b36d0();return _0x50c4a0[_0x3d1a0a(0x80)][_0x3d1a0a(0x9d)](_0x15094a=>{const _0x355d48=_0x3d1a0a;_0x46c6ee['push'](_0x16f01d[_0x355d48(0xa3)](_0x15094a,null));}),_0x46c6ee;}[a43_0x4aa873(0xa1)](_0x180e10){const _0x444991=a43_0x4aa873,_0x28e89f=this[_0x444991(0xa2)]();if(_0x28e89f&&_0x28e89f['length']>0x0)for(const _0x56f1fd of _0x28e89f){if(_0x56f1fd&&_0x56f1fd[_0x444991(0x90)]){const _0x257447=_0x56f1fd[_0x444991(0x90)][_0x444991(0x9e)]();_0x257447&&(_0x180e10!=undefined?_0x56f1fd['tag']==_0x180e10&&_0x257447[_0x444991(0x78)](_0x56f1fd):_0x257447[_0x444991(0x78)](_0x56f1fd));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4044eb,_0x3decdf){var _0x3fccf2=a44_0x3b57,_0x1d5203=_0x4044eb();while(!![]){try{var _0x2a4f69=-parseInt(_0x3fccf2(0x170))/0x1+-parseInt(_0x3fccf2(0x174))/0x2*(-parseInt(_0x3fccf2(0x16b))/0x3)+parseInt(_0x3fccf2(0x16c))/0x4+-parseInt(_0x3fccf2(0x171))/0x5*(parseInt(_0x3fccf2(0x16e))/0x6)+-parseInt(_0x3fccf2(0x16f))/0x7*(parseInt(_0x3fccf2(0x173))/0x8)+parseInt(_0x3fccf2(0x172))/0x9+parseInt(_0x3fccf2(0x16d))/0xa*(-parseInt(_0x3fccf2(0x175))/0xb);if(_0x2a4f69===_0x3decdf)break;else _0x1d5203['push'](_0x1d5203['shift']());}catch(_0x1fd9b9){_0x1d5203['push'](_0x1d5203['shift']());}}}(a44_0xa771,0x92f8a));function a44_0xa771(){var _0x28cf44=['200082usppct','11HuoIXN','6WnDyQV','4203264IZynEU','497120lNNRSk','580494lsSIry','42XjlBQt','574649eGTeIh','35QJFNih','10232154sycgGD','645608MEEIRt'];a44_0xa771=function(){return _0x28cf44;};return a44_0xa771();}import a44_0x14f72 from'./mapView/Map';function a44_0x3b57(_0x303b4a,_0x511804){var _0xa771a=a44_0xa771();return a44_0x3b57=function(_0x3b574f,_0x36dd4f){_0x3b574f=_0x3b574f-0x16b;var _0x506e72=_0xa771a[_0x3b574f];return _0x506e72;},a44_0x3b57(_0x303b4a,_0x511804);}export{a44_0x14f72 as Map2D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x208306=a45_0x4bb8;(function(_0x434491,_0x405104){const _0x354167=a45_0x4bb8,_0x4718c1=_0x434491();while(!![]){try{const _0xce1328=parseInt(_0x354167(0x12e))/0x1+-parseInt(_0x354167(0x149))/0x2+parseInt(_0x354167(0x12b))/0x3+-parseInt(_0x354167(0x122))/0x4+-parseInt(_0x354167(0x132))/0x5*(parseInt(_0x354167(0x11c))/0x6)+-parseInt(_0x354167(0x126))/0x7+parseInt(_0x354167(0x145))/0x8*(parseInt(_0x354167(0x12a))/0x9);if(_0xce1328===_0x405104)break;else _0x4718c1['push'](_0x4718c1['shift']());}catch(_0x205d67){_0x4718c1['push'](_0x4718c1['shift']());}}}(a45_0x33d9,0x9d2da));import a45_0x4a45f2 from'./Draw';import a45_0x5d13fe from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x2265c1 from'../entity/measure/AreaMeasureUnits';import a45_0x391b75 from'ol/Collection';const defaultOptions={'color':a45_0x208306(0x136),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':'square-meters','precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':a45_0x208306(0x11d),'measureEnd':a45_0x208306(0x142)};export class AreaMeasureEvent extends a45_0x5d13fe{constructor(_0xaed7f9,_0x37a01a,_0x1d4178){const _0x398389=a45_0x208306;super(_0xaed7f9),this[_0x398389(0x148)]=_0x37a01a,this[_0x398389(0x13d)]=_0x1d4178;}}function a45_0x33d9(){const _0x43112f=['text','area','1145474ZsUuNJ','measure','_features','drawEnd','_spheroid','square-meters','type','feature','getProjection','_style','spheroid','getSource','fromEntries','drawAddPoint','_unit','polygon','find','precision','getMap','48MwgUlf','measureMoving','getPolygonTempLayer','hectare','setFeatureAreaStyle','entries','4180500WWCeiv','fromType','log','length','1934380flCEwa','getGeometry','assign','onInternal','63fZuAKq','2129097fsOrdk','clearMeasure','平方米','229860yWsWLx','unit','_source','点击开始测量,双击结束测量','636605anBMqb','_showLabel','clear','getLength','#f03437','getView','removeFeature','filter','_precision','forEach','dispatchEvent','geom','setStyle','toFixed','getText','showLabel','measureEnd','drawMoving','setMap','2990872ZYfpPA','label'];a45_0x33d9=function(){return _0x43112f;};return a45_0x33d9();}function a45_0x4bb8(_0x2df15a,_0x1028a4){const _0x33d9b0=a45_0x33d9();return a45_0x4bb8=function(_0x4bb818,_0xa0a6d0){_0x4bb818=_0x4bb818-0x112;let _0x59d942=_0x33d9b0[_0x4bb818];return _0x59d942;},a45_0x4bb8(_0x2df15a,_0x1028a4);}export default class AreaMeasure extends a45_0x4a45f2{constructor(_0x526d82){const _0x4951ff=a45_0x208306;_0x526d82=_0x526d82||{},console[_0x4951ff(0x124)](_0x526d82);const _0x22f43b=Object[_0x4951ff(0x128)](Object[_0x4951ff(0x128)]({},defaultOptions),Object[_0x4951ff(0x115)](Object[_0x4951ff(0x121)](_0x526d82)[_0x4951ff(0x139)](([_0x2c8161,_0x16937d])=>_0x16937d!=null)));super('polygon',{'tipText':_0x4951ff(0x131),'style':_0x22f43b,'features':new a45_0x391b75()}),this[_0x4951ff(0x112)]=_0x22f43b,this[_0x4951ff(0x117)]=_0x22f43b[_0x4951ff(0x12f)],this[_0x4951ff(0x13a)]=_0x22f43b[_0x4951ff(0x11a)],this[_0x4951ff(0x133)]=_0x22f43b[_0x4951ff(0x141)],this[_0x4951ff(0x14d)]=_0x22f43b[_0x4951ff(0x113)],this['on']=this[_0x4951ff(0x129)],this['on'](_0x4951ff(0x14c),_0x139397=>{const _0x2add44=_0x4951ff,_0x1d40bb=this['getMap']();if(!_0x1d40bb)return;if(_0x139397[_0x2add44(0x150)]){const _0x4a48e5=this['setFeatureAreaStyle'](_0x139397[_0x2add44(0x150)],_0x22f43b);this[_0x2add44(0x13c)](new AreaMeasureEvent(MeasureEventType[_0x2add44(0x142)],_0x4a48e5,_0x139397['feature']['getGeometry']()));}this['_style'][_0x2add44(0x147)]='';}),this['on'](_0x4951ff(0x116),_0x1c76ea=>{const _0x540ebf=_0x4951ff,_0x1659dc=this[_0x540ebf(0x11b)]();if(!_0x1659dc)return;if(_0x1c76ea[_0x540ebf(0x150)]){const _0xddf71=this[_0x540ebf(0x120)](_0x1c76ea[_0x540ebf(0x150)],_0x22f43b);this[_0x540ebf(0x13c)](new AreaMeasureEvent(MeasureEventType['measureMoving'],_0xddf71,_0x1c76ea['feature'][_0x540ebf(0x127)]()));}}),this['on'](_0x4951ff(0x143),_0x177d17=>{const _0x4a130e=_0x4951ff,_0x3c5dce=this['getMap']();if(!_0x3c5dce)return;if(!_0x177d17['coordinates']||_0x177d17['coordinates'][_0x4a130e(0x125)]<0x2)return;if(_0x177d17[_0x4a130e(0x150)]){const _0xc51062=this['setFeatureAreaStyle'](_0x177d17[_0x4a130e(0x150)],_0x22f43b);this[_0x4a130e(0x13c)](new AreaMeasureEvent(MeasureEventType[_0x4a130e(0x11d)],_0xc51062,_0x177d17['feature']['getGeometry']()));}});}[a45_0x208306(0x144)](_0x5ca34a){const _0x5defc1=a45_0x208306;super[_0x5defc1(0x144)](_0x5ca34a);if(_0x5ca34a){const _0x4e2c33=_0x5ca34a[_0x5defc1(0x11e)](),_0xddc0e5=_0x4e2c33===null||_0x4e2c33===void 0x0?void 0x0:_0x4e2c33['getSource']();_0xddc0e5&&(this[_0x5defc1(0x130)]=_0xddc0e5);}}[a45_0x208306(0x140)](_0x30264e){const _0x47d901=a45_0x208306,_0x16647c=a45_0x2265c1[_0x47d901(0x119)](_0x429570=>_0x429570[_0x47d901(0x14f)]===this[_0x47d901(0x117)]);switch(_0x16647c===null||_0x16647c===void 0x0?void 0x0:_0x16647c[_0x47d901(0x14f)]){case _0x47d901(0x14e):return''+(_0x30264e[_0x47d901(0x13f)](this['_precision'])+_0x16647c[_0x47d901(0x146)]);case'square-kilometers':return''+((_0x30264e*0.000001)[_0x47d901(0x13f)](this[_0x47d901(0x13a)])+_0x16647c[_0x47d901(0x146)]);case'mu':return''+((_0x30264e*0.0015)[_0x47d901(0x13f)](this[_0x47d901(0x13a)])+_0x16647c[_0x47d901(0x146)]);case _0x47d901(0x11f):return''+((_0x30264e*0.0001)['toFixed'](this[_0x47d901(0x13a)])+_0x16647c[_0x47d901(0x146)]);default:return _0x30264e[_0x47d901(0x13f)](this['_precision'])+_0x47d901(0x12d);}}[a45_0x208306(0x120)](_0xf187b9,_0x132fa4){const _0x4f04a2=a45_0x208306,_0x28d206=this[_0x4f04a2(0x11b)]();if(!_0x28d206)return 0x0;const _0x6aedb1=_0xf187b9[_0x4f04a2(0x127)](),_0x55fbb9=getArea(_0x6aedb1,_0x28d206[_0x4f04a2(0x137)]()[_0x4f04a2(0x151)](),this[_0x4f04a2(0x14d)]);return _0xf187b9[_0x4f04a2(0x123)]=_0x4f04a2(0x14a),this[_0x4f04a2(0x133)]&&(_0x132fa4[_0x4f04a2(0x147)]=this[_0x4f04a2(0x140)](_0x55fbb9),_0xf187b9[_0x4f04a2(0x13e)](getStyle(_0x4f04a2(0x118),_0x132fa4,_0x28d206))),_0x55fbb9;}['setUnit'](_0x2cc65e){const _0x4b1025=a45_0x208306;this[_0x4b1025(0x117)]=_0x2cc65e,this[_0x4b1025(0x14b)]&&this[_0x4b1025(0x14b)][_0x4b1025(0x135)]()>0x0&&this['_features']['forEach'](_0x44b7b6=>{const _0x42a7a9=_0x4b1025;this[_0x42a7a9(0x120)](_0x44b7b6,this['_style']);});}[a45_0x208306(0x12c)](){const _0x36f736=a45_0x208306,_0x567de1=this[_0x36f736(0x11b)]();if(!_0x567de1)return;const _0x35b393=_0x567de1[_0x36f736(0x11e)](),_0x3a1952=_0x35b393===null||_0x35b393===void 0x0?void 0x0:_0x35b393[_0x36f736(0x114)]();_0x3a1952&&this[_0x36f736(0x14b)]&&this[_0x36f736(0x14b)][_0x36f736(0x135)]()>0x0&&(this[_0x36f736(0x14b)][_0x36f736(0x13b)](_0x16d83f=>{const _0x1d69f0=_0x36f736;_0x3a1952[_0x1d69f0(0x138)](_0x16d83f);}),this[_0x36f736(0x14b)][_0x36f736(0x134)]());}}
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46_0x420706=a46_0x440d;(function(_0x5ef0ed,_0x443417){const _0x4a3f6d=a46_0x440d,_0x3e7baa=_0x5ef0ed();while(!![]){try{const _0x1fb561=-parseInt(_0x4a3f6d(0x8a))/0x1*(parseInt(_0x4a3f6d(0x6b))/0x2)+-parseInt(_0x4a3f6d(0x82))/0x3*(parseInt(_0x4a3f6d(0x8e))/0x4)+parseInt(_0x4a3f6d(0x6c))/0x5+-parseInt(_0x4a3f6d(0x83))/0x6+-parseInt(_0x4a3f6d(0x71))/0x7*(parseInt(_0x4a3f6d(0x90))/0x8)+-parseInt(_0x4a3f6d(0xb3))/0x9*(-parseInt(_0x4a3f6d(0x6f))/0xa)+parseInt(_0x4a3f6d(0xb2))/0xb*(parseInt(_0x4a3f6d(0x97))/0xc);if(_0x1fb561===_0x443417)break;else _0x3e7baa['push'](_0x3e7baa['shift']());}catch(_0x384326){_0x3e7baa['push'](_0x3e7baa['shift']());}}}(a46_0xbba3,0x2820b));import a46_0x281333 from'ol/events/Event';import a46_0x25439e from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a46_0x35f27f from'ol/Feature';import a46_0x56fd78,{createEditingStyle}from'ol/style/Style';import a46_0x4e0f3d from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a46_0x5f4598 from'ol/style/Text';function a46_0x440d(_0x3f4cf0,_0x47e71f){const _0xbba3af=a46_0xbba3();return a46_0x440d=function(_0x440da3,_0xc99f4c){_0x440da3=_0x440da3-0x67;let _0x63335f=_0xbba3af[_0x440da3];return _0x63335f;},a46_0x440d(_0x3f4cf0,_0x47e71f);}import a46_0xf06b5f from'ol/style/Fill';import a46_0x352b5e from'ol/interaction/Property';import a46_0x4dadf1 from'ol/layer/Vector';import a46_0x4518f8 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a46_0x420706(0x74),'DRAWEND':a46_0x420706(0xbf),'DRAWABORT':a46_0x420706(0x77),'DRAWADDPOINT':a46_0x420706(0x9b),'DRAWMOVING':'drawMoving'};export class DrawEvent extends a46_0x281333{constructor(_0x197804,_0x31bead,_0x24effb){super(_0x197804),this['feature']=_0x31bead,this['coordinates']=_0x24effb;}}export class ShEvent extends a46_0x281333{constructor(_0x2a0aef,_0x50ab47,_0xc0dcfd,_0x34a71b,_0x328f18){const _0x4f7045=a46_0x420706;super(_0x2a0aef),this[_0x4f7045(0x96)]=_0x328f18,this['type']=_0x50ab47,this[_0x4f7045(0xc8)]=_0xc0dcfd,this[_0x4f7045(0xc1)]=_0x34a71b;}}function a46_0xbba3(){const _0x4e5664=['_type','drawAddPoint','dispatchEvent','preventDefault','originalEvent','getProjection','_tipStyle','_tipOverlay','Rectangle','_source','单击增加点,右击删除点','handleMoveEvent','getText','_isStayDraw','buildDrawingFeature','setStyle','DRAWEND','_style','atFinish_','abortDrawing','addChangeListener','length','setMap','Circle','3058kxQZFI','18702xuYgIG','minPoint','_minPoints','stopDown','point','pointermove','handleUpEvent','单击结束绘制,右击删除点','_features','revert','finishDrawing','startDrawing_','drawEnd','tipText','coordinates','pop','updateTip_','snapTolerance','button','createMultiPointFeature','DRAWABORT','coordinate','12px\x20Calibre,sans-serif','onInternal','getType','once','getOverlay','2hSIBuh','1575165eqNEuD','type','_showTip','690vGOhqU','wrapX','188685GmyVrk','_sketchFeature','getView','drawStart','updateSketchFeatures_','单击增加点,右击删除点双击完成绘制','drawAbort','_tipFeature','getGeometry','features','_overlay','单击开始绘制','getActive','unInternal','getCode','abortDrawing_','onceInternal','124314aypYOL','237792lCSLsz','updateState_','MAX_VALUE','push','DRAWADDPOINT','DRAWMOVING','rgba(0,\x200,\x200,\x200.4)','132392pVeViI','ACTIVE','_fixPoint','setGeometry','24TwvUGI','_snapTolerance','80wXiPys','getSource','_drawingCoordinates','indexOf','getMap','rectangle','projection','17100fGzOvv','handleDownEvent','clear'];a46_0xbba3=function(){return _0x4e5664;};return a46_0xbba3();}export default class Draw extends a46_0x25439e{constructor(_0xba2d9f,_0x47cc60){const _0x391987=a46_0x420706,_0x2f86fc=_0x47cc60?_0x47cc60:{};!_0x2f86fc[_0x391987(0xb6)]&&(_0x2f86fc['stopDown']=![]);super(_0x47cc60),this['on']=this[_0x391987(0x67)],this[_0x391987(0x69)]=this[_0x391987(0x81)],this['un']=this[_0x391987(0x7e)],this[_0x391987(0xa7)]=![],this[_0x391987(0x9a)]=_0xba2d9f,this[_0x391987(0xab)]=_0x47cc60===null||_0x47cc60===void 0x0?void 0x0:_0x47cc60['style'],this[_0x391987(0xa3)]=_0x47cc60===null||_0x47cc60===void 0x0?void 0x0:_0x47cc60['source'],this[_0x391987(0xbb)]=_0x47cc60===null||_0x47cc60===void 0x0?void 0x0:_0x47cc60[_0x391987(0x7a)];const _0x5d4dde=getPlotCount(this['_type']);this[_0x391987(0xb5)]=_0x5d4dde[_0x391987(0xb4)],this[_0x391987(0x8c)]=_0x5d4dde['fixPoint'],this[_0x391987(0xc0)]=_0x47cc60===null||_0x47cc60===void 0x0?void 0x0:_0x47cc60[_0x391987(0xc0)],this[_0x391987(0x6e)]=(_0x47cc60===null||_0x47cc60===void 0x0?void 0x0:_0x47cc60['showTip'])==![]?![]:!![],this[_0x391987(0x8f)]=_0x2f86fc[_0x391987(0xc4)]?_0x2f86fc[_0x391987(0xc4)]:0x6,this[_0x391987(0x78)]=new a46_0x35f27f(),this[_0x391987(0xa0)]=new a46_0x56fd78({'text':new a46_0x5f4598({'font':_0x391987(0xc9),'fill':new a46_0xf06b5f({'color':'rgba(255,\x20255,\x20255,\x201)'}),'backgroundFill':new a46_0xf06b5f({'color':_0x391987(0x89)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this[_0x391987(0x92)]=[],this['_tipOverlay']=new a46_0x4dadf1({'source':new a46_0x4e0f3d({'useSpatialIndex':![],'wrapX':(_0x47cc60===null||_0x47cc60===void 0x0?void 0x0:_0x47cc60[_0x391987(0x70)])?_0x47cc60['wrapX']:![]})}),this[_0x391987(0x7b)]=new a46_0x4dadf1({'source':new a46_0x4e0f3d({'useSpatialIndex':![],'wrapX':(_0x47cc60===null||_0x47cc60===void 0x0?void 0x0:_0x47cc60[_0x391987(0x70)])?_0x47cc60[_0x391987(0x70)]:![]}),'updateWhileInteracting':!![]}),this[_0x391987(0xae)](a46_0x352b5e[_0x391987(0x8b)],this[_0x391987(0x84)]);}['updateState_'](){const _0x202f3a=a46_0x420706,_0x2baa48=this['getMap'](),_0x2baff6=this[_0x202f3a(0x7d)]();(!_0x2baa48||!_0x2baff6)&&this[_0x202f3a(0xad)](),this[_0x202f3a(0x7b)][_0x202f3a(0xb0)](_0x2baff6?_0x2baa48:null),this[_0x202f3a(0xa1)][_0x202f3a(0xb0)](_0x2baff6?_0x2baa48:null);}[a46_0x420706(0xb0)](_0x198adc){const _0x2573a4=a46_0x420706;super[_0x2573a4(0xb0)](_0x198adc),this[_0x2573a4(0x84)]();}['setStyle'](_0x2e62e3){const _0xd4be4f=a46_0x420706;this[_0xd4be4f(0xab)]=_0x2e62e3?_0x2e62e3:{};}[a46_0x420706(0x6a)](){const _0x3b4c26=a46_0x420706;return this[_0x3b4c26(0x7b)];}[a46_0x420706(0x98)](_0x117443){const _0x76f5b4=a46_0x420706;if(_0x117443[_0x76f5b4(0x9e)][_0x76f5b4(0xc5)]===0x2)return _0x117443[_0x76f5b4(0x9e)][_0x76f5b4(0x9d)](),this['revert'](),this['handleMoveEvent'](_0x117443),![];return!![];}[a46_0x420706(0xb9)](_0x4b4344){const _0x29b2a2=a46_0x420706;var _0xb38b05,_0x1b39c8;if(this[_0x29b2a2(0x9a)]=='rectangle'&&this[_0x29b2a2(0x92)]['length']<0x1)return this[_0x29b2a2(0x9c)](new DrawEvent(DrawEventType[_0x29b2a2(0xaa)],undefined,[_0x4b4344[_0x29b2a2(0xc8)]])),![];if(!this['_isStayDraw'])this[_0x29b2a2(0xbe)](_0x4b4344[_0x29b2a2(0xc8)]),this['dispatchEvent'](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x29b2a2(0x9a)],_0x4b4344[_0x29b2a2(0xc8)],this['_drawingCoordinates'],(_0xb38b05=this[_0x29b2a2(0x94)]())===null||_0xb38b05===void 0x0?void 0x0:_0xb38b05[_0x29b2a2(0x73)]()[_0x29b2a2(0x9f)]()[_0x29b2a2(0x7f)]())),this[_0x29b2a2(0x9a)]==_0x29b2a2(0xb7)&&this[_0x29b2a2(0xbd)]();else{if(this[_0x29b2a2(0x92)]&&this[_0x29b2a2(0x92)][_0x29b2a2(0xaf)]>0x0){if(this[_0x29b2a2(0xac)](_0x4b4344['pixel']))return this[_0x29b2a2(0xbd)](),_0x4b4344[_0x29b2a2(0x9d)](),![];let _0xc65fa4=this['_drawingCoordinates'][_0x29b2a2(0xaf)]+0x1;_0xc65fa4<=this[_0x29b2a2(0x8c)]&&this['addPoint'](_0x4b4344[_0x29b2a2(0xc8)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x29b2a2(0x87)],this[_0x29b2a2(0x9a)],_0x4b4344['coordinate'],this[_0x29b2a2(0x92)],(_0x1b39c8=this[_0x29b2a2(0x94)]())===null||_0x1b39c8===void 0x0?void 0x0:_0x1b39c8[_0x29b2a2(0x73)]()[_0x29b2a2(0x9f)]()[_0x29b2a2(0x7f)]())),_0xc65fa4>=this[_0x29b2a2(0xb5)]&&this[_0x29b2a2(0xa8)](this[_0x29b2a2(0x92)]),_0xc65fa4===this['_fixPoint']&&this['finishDrawing']();}}return _0x4b4344['preventDefault'](),![];}['handleDragEvent'](_0x2c46b0){const _0x50dcb1=a46_0x420706;var _0x57e78b;if(this[_0x50dcb1(0x9a)]==_0x50dcb1(0x95)&&_0x2c46b0[_0x50dcb1(0x9e)][_0x50dcb1(0x6d)]==_0x50dcb1(0xb8)){if(!this[_0x50dcb1(0xa7)]){this[_0x50dcb1(0xbe)](_0x2c46b0['coordinate']),this[_0x50dcb1(0x9c)](new ShEvent(DrawEventType[_0x50dcb1(0x87)],this[_0x50dcb1(0x9a)],_0x2c46b0[_0x50dcb1(0xc8)],this[_0x50dcb1(0x92)],(_0x57e78b=this[_0x50dcb1(0x94)]())===null||_0x57e78b===void 0x0?void 0x0:_0x57e78b['getView']()[_0x50dcb1(0x9f)]()[_0x50dcb1(0x7f)]()));return;}let _0x37eb19=[...this['_drawingCoordinates'],_0x2c46b0[_0x50dcb1(0xc8)]];this[_0x50dcb1(0xa8)](_0x37eb19),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x50dcb1(0x88)],this[_0x50dcb1(0x72)],this[_0x50dcb1(0x92)]));}}[a46_0x420706(0xa5)](_0x39d356){const _0x18fd63=a46_0x420706;var _0x5c8bc,_0x44bfe6,_0x41d692;let _0x5dc570='';this[_0x18fd63(0x9a)]==_0x18fd63(0xb8)&&(this[_0x18fd63(0xbe)](_0x39d356[_0x18fd63(0xc8)]),this[_0x18fd63(0x9c)](new ShEvent(DrawEventType[_0x18fd63(0x87)],this[_0x18fd63(0x9a)],_0x39d356[_0x18fd63(0xc8)],this['_drawingCoordinates'],(_0x5c8bc=this['getMap']())===null||_0x5c8bc===void 0x0?void 0x0:_0x5c8bc[_0x18fd63(0x73)]()['getProjection']()['getCode']())),this[_0x18fd63(0xbd)]());!this[_0x18fd63(0xa7)]?_0x5dc570=this[_0x18fd63(0x9a)]==_0x18fd63(0x95)?'单击拖动绘制':_0x18fd63(0x7c):(_0x5dc570=_0x18fd63(0xa4),((_0x44bfe6=this[_0x18fd63(0x92)])===null||_0x44bfe6===void 0x0?void 0x0:_0x44bfe6[_0x18fd63(0xaf)])===this[_0x18fd63(0x8c)]-0x1&&(_0x5dc570=_0x18fd63(0xba)),((_0x41d692=this[_0x18fd63(0x92)])===null||_0x41d692===void 0x0?void 0x0:_0x41d692[_0x18fd63(0xaf)])>=this[_0x18fd63(0xb5)]&&this[_0x18fd63(0x8c)]===Number['MAX_VALUE']&&(_0x5dc570=_0x18fd63(0x76)));this['tipText']!=undefined&&(_0x5dc570=this[_0x18fd63(0xc0)]);this[_0x18fd63(0xc3)](_0x39d356[_0x18fd63(0xc8)],_0x5dc570);if(this[_0x18fd63(0xa7)]&&this['_type']!=_0x18fd63(0x95)){let _0x37e949=[...this[_0x18fd63(0x92)],_0x39d356[_0x18fd63(0xc8)]];this[_0x18fd63(0xa8)](_0x37e949);}this[_0x18fd63(0x9c)](new DrawEvent(DrawEventType[_0x18fd63(0x88)],this['_sketchFeature'],this[_0x18fd63(0x92)]));}['atFinish_'](_0x10e553){const _0x5bdfe9=a46_0x420706;var _0x31f32d;let _0x248c54=![],_0x55987f=this[_0x5bdfe9(0x92)][_0x5bdfe9(0xaf)];if(_0x55987f>this[_0x5bdfe9(0xb5)]&&this['_fixPoint']===Number[_0x5bdfe9(0x85)]){const _0x45c4eb=this[_0x5bdfe9(0x92)][this[_0x5bdfe9(0x92)]['length']-0x1],_0x47ff15=(_0x31f32d=this[_0x5bdfe9(0x94)]())===null||_0x31f32d===void 0x0?void 0x0:_0x31f32d['getPixelFromCoordinate'](_0x45c4eb),_0x26ef54=_0x10e553[0x0]-(_0x47ff15?_0x47ff15[0x0]:0x0),_0x5f3926=_0x10e553[0x1]-(_0x47ff15?_0x47ff15[0x1]:0x0);_0x248c54=Math['sqrt'](_0x26ef54*_0x26ef54+_0x5f3926*_0x5f3926)<=this[_0x5bdfe9(0x8f)];}return _0x248c54;}['startDrawing_'](_0x18464d){const _0x3bee2e=a46_0x420706;this[_0x3bee2e(0xa7)]=!![],this[_0x3bee2e(0x92)]=[_0x18464d['slice']()],this[_0x3bee2e(0x72)]=this['createMultiPointFeature'](),this['updateSketchFeatures_'](),this[_0x3bee2e(0x9c)](new DrawEvent(DrawEventType['DRAWSTART'],this[_0x3bee2e(0x72)],this[_0x3bee2e(0x92)]));}[a46_0x420706(0xbd)](){const _0x4bafa2=a46_0x420706;if(this[_0x4bafa2(0x92)][_0x4bafa2(0xaf)]>this[_0x4bafa2(0xb5)]){this['buildDrawingFeature'](this[_0x4bafa2(0x92)]);let _0x44125c=this[_0x4bafa2(0x92)];const _0x53f3f1=this[_0x4bafa2(0x80)]();if(!_0x53f3f1)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x4bafa2(0xaa)],_0x53f3f1,_0x44125c)),this[_0x4bafa2(0xbb)]&&this[_0x4bafa2(0xbb)][_0x4bafa2(0x86)](_0x53f3f1),this['_source']&&this[_0x4bafa2(0xa3)]['addFeature'](_0x53f3f1);}}['addPoint'](_0xdb7eaa){const _0x4e79b3=a46_0x420706;this['_drawingCoordinates'][_0x4e79b3(0x86)](_0xdb7eaa),this[_0x4e79b3(0x72)]=this[_0x4e79b3(0xc6)](),this[_0x4e79b3(0x75)]();}[a46_0x420706(0xc6)](){const _0x554ef8=new MultiPoint(this['_drawingCoordinates']);let _0xf56393=new a46_0x35f27f();return _0xf56393['setGeometry'](_0x554ef8),_0xf56393;}[a46_0x420706(0x80)](){const _0x2336f4=a46_0x420706;var _0x588822,_0xc77e04;this[_0x2336f4(0xa7)]=![];const _0x46dc11=this[_0x2336f4(0x72)];return this[_0x2336f4(0x72)]=undefined,this[_0x2336f4(0x92)]=[],(_0x588822=this[_0x2336f4(0x7b)]['getSource']())===null||_0x588822===void 0x0?void 0x0:_0x588822['clear'](!![]),(_0xc77e04=this['_tipOverlay'][_0x2336f4(0x91)]())===null||_0xc77e04===void 0x0?void 0x0:_0xc77e04[_0x2336f4(0x99)](!![]),_0x46dc11;}[a46_0x420706(0xad)](){const _0x2dd3e8=a46_0x420706,_0x26c608=this['abortDrawing_']();_0x26c608&&this['dispatchEvent'](new DrawEvent(DrawEventType[_0x2dd3e8(0xc7)],_0x26c608,this[_0x2dd3e8(0x92)]));}[a46_0x420706(0xa8)](_0x4b4b91){const _0x49350d=a46_0x420706;this['_sketchFeature']=new a46_0x35f27f();let _0x38d172=createPlot(this[_0x49350d(0x9a)],_0x4b4b91);if(!_0x38d172)return;this[_0x49350d(0x72)][_0x49350d(0x8d)](_0x38d172);let _0x393cf0=[a46_0x4518f8[_0x49350d(0xb1)],a46_0x4518f8['Ellipsoid'],a46_0x4518f8['Ellipse']];if(_0x393cf0[_0x49350d(0x93)](this[_0x49350d(0x9a)])>-0x1&&this['_style']){}const _0x36e695=this[_0x49350d(0x94)]();this[_0x49350d(0x72)][_0x49350d(0xa9)](getStyle(this['_type'],this[_0x49350d(0xab)],this[_0x49350d(0x94)]())),this[_0x49350d(0x75)]();}[a46_0x420706(0x75)](){const _0x1ade76=a46_0x420706,_0x2a8941=this[_0x1ade76(0x7b)][_0x1ade76(0x91)]();_0x2a8941&&this[_0x1ade76(0x72)]&&(_0x2a8941[_0x1ade76(0x99)](!![]),_0x2a8941['addFeature'](this[_0x1ade76(0x72)]));}[a46_0x420706(0xbc)](){const _0x385758=a46_0x420706;if(this[_0x385758(0xa7)]){if(this['_drawingCoordinates']&&this[_0x385758(0x92)][_0x385758(0xaf)]>0x0){const _0x245e2c=this[_0x385758(0x7b)][_0x385758(0x91)]();_0x245e2c===null||_0x245e2c===void 0x0?void 0x0:_0x245e2c['clear'](!![]),this[_0x385758(0x92)][_0x385758(0xc2)](),this[_0x385758(0x92)][_0x385758(0xaf)]>=this['_minPoints']&&this[_0x385758(0xa8)](this[_0x385758(0x92)]),this['_drawingCoordinates'][_0x385758(0xaf)]===0x0&&(this[_0x385758(0xa7)]=![]);}}}[a46_0x420706(0xc3)](_0x565bd8,_0x5ad992){const _0x7002a2=a46_0x420706;var _0x45e3aa,_0x2fef1d,_0x9d0064,_0x5de03c;if(!this[_0x7002a2(0x6e)])return;const _0x27226e=this[_0x7002a2(0xa1)][_0x7002a2(0x91)]();_0x27226e===null||_0x27226e===void 0x0?void 0x0:_0x27226e['clear'](!![]),(_0x45e3aa=this[_0x7002a2(0x78)])===null||_0x45e3aa===void 0x0?void 0x0:_0x45e3aa['setGeometry'](new Point(_0x565bd8)),(_0x9d0064=(_0x2fef1d=this[_0x7002a2(0xa0)])===null||_0x2fef1d===void 0x0?void 0x0:_0x2fef1d[_0x7002a2(0xa6)]())===null||_0x9d0064===void 0x0?void 0x0:_0x9d0064['setText'](_0x5ad992),(_0x5de03c=this[_0x7002a2(0x78)])===null||_0x5de03c===void 0x0?void 0x0:_0x5de03c['setStyle'](this[_0x7002a2(0xa0)]),this['_tipFeature']&&(_0x27226e===null||_0x27226e===void 0x0?void 0x0:_0x27226e['addFeature'](this[_0x7002a2(0x78)]));}}function getDefaultStyleFunction(){const _0x4261c1=createEditingStyle();return function(_0x2579a5,_0x36b572){const _0x1db22d=a46_0x440d,_0x126f37=_0x4261c1[_0x2579a5[_0x1db22d(0x79)]()['getType']()];if(_0x126f37&&_0x1db22d(0xa2)==_0x2579a5[_0x1db22d(0x79)]()[_0x1db22d(0x68)]()){}};}
|
|
1
|
+
const a46_0x39129a=a46_0x3f1a;(function(_0x2ef365,_0x348b67){const _0x5738ba=a46_0x3f1a,_0x5c3583=_0x2ef365();while(!![]){try{const _0x380367=parseInt(_0x5738ba(0x17a))/0x1*(-parseInt(_0x5738ba(0x174))/0x2)+parseInt(_0x5738ba(0x194))/0x3+-parseInt(_0x5738ba(0x161))/0x4*(-parseInt(_0x5738ba(0x197))/0x5)+-parseInt(_0x5738ba(0x18f))/0x6*(parseInt(_0x5738ba(0x1c4))/0x7)+parseInt(_0x5738ba(0x1c0))/0x8*(parseInt(_0x5738ba(0x181))/0x9)+parseInt(_0x5738ba(0x167))/0xa*(-parseInt(_0x5738ba(0x1b1))/0xb)+-parseInt(_0x5738ba(0x1ad))/0xc*(-parseInt(_0x5738ba(0x17c))/0xd);if(_0x380367===_0x348b67)break;else _0x5c3583['push'](_0x5c3583['shift']());}catch(_0x460a59){_0x5c3583['push'](_0x5c3583['shift']());}}}(a46_0x29f4,0x3d095));import a46_0x187c87 from'ol/events/Event';import a46_0x1cf44b from'ol/interaction/Pointer';function a46_0x29f4(){const _0x338704=['drawEnd','button','type','left','getMap','rgba(0,\x200,\x200,\x200.4)','dispatchEvent','8JosFIU','_sketchFeature','tipText','onInternal','47712oVPWGA','startDrawing_','_fixPoint','coordinates','stopDown','_tipStyle','pop','161116jwXxTv','DRAWEND','fixPoint','_snapTolerance','revert','_tipFeature','290qHHiwb','_minPoints','单击增加点,右击删除点','minPoint','_isStayDraw','12px\x20Calibre,sans-serif','unInternal','_showTip','abortDrawing_','MAX_VALUE','addFeature','handleUpEvent','rgba(255,\x20255,\x20255,\x201)','674EpvOmg','getPixelFromCoordinate','单击增加点,右击删除点双击完成绘制','updateTip_','单击拖动绘制','_tipOverlay','1339qcusoE','rectangle','6475209yexNYc','getActive','atFinish_','drawAbort','push','194697LGpPNh','_drawingCoordinates','once','wrapX','getType','clear','DRAWMOVING','getView','createMultiPointFeature','getCode','showTip','getProjection','onceInternal','drawMoving','84GFNXFM','setGeometry','addPoint','sqrt','projection','818676PpbXWa','setMap','_style','15Yozpmx','finishDrawing','feature','abortDrawing','Ellipsoid','getSource','coordinate','pixel','preventDefault','_type','Circle','_overlay','buildDrawingFeature','_features','_source','setText','handleMoveEvent','pointermove','drawStart','DRAWABORT','indexOf','updateState_','12AzZFRG','getText','getOverlay','originalEvent','44297nUohNH','length','updateSketchFeatures_','DRAWADDPOINT','Rectangle','snapTolerance','setStyle','ACTIVE'];a46_0x29f4=function(){return _0x338704;};return a46_0x29f4();}function a46_0x3f1a(_0x5d402f,_0x1b8fb2){const _0x29f497=a46_0x29f4();return a46_0x3f1a=function(_0x3f1ad0,_0x32ffc4){_0x3f1ad0=_0x3f1ad0-0x15d;let _0x5ac5cf=_0x29f497[_0x3f1ad0];return _0x5ac5cf;},a46_0x3f1a(_0x5d402f,_0x1b8fb2);}import{MultiPoint,Point}from'ol/geom';import a46_0x18d3b5 from'ol/Feature';import a46_0x102bb6,{createEditingStyle}from'ol/style/Style';import a46_0x51dca8 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a46_0x4786fc from'ol/style/Text';import a46_0x45cc72 from'ol/style/Fill';import a46_0x2c4e7b from'ol/interaction/Property';import a46_0x576864 from'ol/layer/Vector';import a46_0x4653c3 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a46_0x39129a(0x1a9),'DRAWEND':a46_0x39129a(0x1b9),'DRAWABORT':a46_0x39129a(0x17f),'DRAWADDPOINT':'drawAddPoint','DRAWMOVING':a46_0x39129a(0x18e)};export class DrawEvent extends a46_0x187c87{constructor(_0x43ead9,_0x50a005,_0x5d92e9){const _0x210145=a46_0x39129a;super(_0x43ead9),this[_0x210145(0x199)]=_0x50a005,this[_0x210145(0x15d)]=_0x5d92e9;}}export class ShEvent extends a46_0x187c87{constructor(_0x4f7f28,_0x1f8d0c,_0x5d2267,_0x3ecf05,_0x4b42fd){const _0x2acef7=a46_0x39129a;super(_0x4f7f28),this[_0x2acef7(0x193)]=_0x4b42fd,this[_0x2acef7(0x1bb)]=_0x1f8d0c,this[_0x2acef7(0x19d)]=_0x5d2267,this[_0x2acef7(0x15d)]=_0x3ecf05;}}export default class Draw extends a46_0x1cf44b{constructor(_0x17603a,_0x4c2811){const _0x3e6c24=a46_0x39129a,_0xd38227=_0x4c2811?_0x4c2811:{};!_0xd38227[_0x3e6c24(0x15e)]&&(_0xd38227[_0x3e6c24(0x15e)]=![]);super(_0x4c2811),this['on']=this[_0x3e6c24(0x1c3)],this[_0x3e6c24(0x183)]=this[_0x3e6c24(0x18d)],this['un']=this[_0x3e6c24(0x16d)],this['_isStayDraw']=![],this[_0x3e6c24(0x1a0)]=_0x17603a,this['_style']=_0x4c2811===null||_0x4c2811===void 0x0?void 0x0:_0x4c2811['style'],this[_0x3e6c24(0x1a5)]=_0x4c2811===null||_0x4c2811===void 0x0?void 0x0:_0x4c2811['source'],this[_0x3e6c24(0x1a4)]=_0x4c2811===null||_0x4c2811===void 0x0?void 0x0:_0x4c2811['features'];const _0x1a875a=getPlotCount(this[_0x3e6c24(0x1a0)]);this['_minPoints']=_0x1a875a[_0x3e6c24(0x16a)],this[_0x3e6c24(0x1c6)]=_0x1a875a[_0x3e6c24(0x163)],this[_0x3e6c24(0x1c2)]=_0x4c2811===null||_0x4c2811===void 0x0?void 0x0:_0x4c2811['tipText'],this[_0x3e6c24(0x16e)]=(_0x4c2811===null||_0x4c2811===void 0x0?void 0x0:_0x4c2811[_0x3e6c24(0x18b)])==![]?![]:!![],this[_0x3e6c24(0x164)]=_0xd38227['snapTolerance']?_0xd38227[_0x3e6c24(0x1b6)]:0x6,this[_0x3e6c24(0x166)]=new a46_0x18d3b5(),this['_tipStyle']=new a46_0x102bb6({'text':new a46_0x4786fc({'font':_0x3e6c24(0x16c),'fill':new a46_0x45cc72({'color':_0x3e6c24(0x173)}),'backgroundFill':new a46_0x45cc72({'color':_0x3e6c24(0x1be)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x3e6c24(0x1bc),'offsetX':0xf})}),this['_drawingCoordinates']=[],this[_0x3e6c24(0x179)]=new a46_0x576864({'source':new a46_0x51dca8({'useSpatialIndex':![],'wrapX':(_0x4c2811===null||_0x4c2811===void 0x0?void 0x0:_0x4c2811[_0x3e6c24(0x184)])?_0x4c2811[_0x3e6c24(0x184)]:![]})}),this[_0x3e6c24(0x1a2)]=new a46_0x576864({'source':new a46_0x51dca8({'useSpatialIndex':![],'wrapX':(_0x4c2811===null||_0x4c2811===void 0x0?void 0x0:_0x4c2811[_0x3e6c24(0x184)])?_0x4c2811['wrapX']:![]}),'updateWhileInteracting':!![]}),this['addChangeListener'](a46_0x2c4e7b[_0x3e6c24(0x1b8)],this[_0x3e6c24(0x1ac)]);}['updateState_'](){const _0x4b0ccd=a46_0x39129a,_0x1baf27=this[_0x4b0ccd(0x1bd)](),_0x201415=this[_0x4b0ccd(0x17d)]();(!_0x1baf27||!_0x201415)&&this[_0x4b0ccd(0x19a)](),this[_0x4b0ccd(0x1a2)]['setMap'](_0x201415?_0x1baf27:null),this[_0x4b0ccd(0x179)][_0x4b0ccd(0x195)](_0x201415?_0x1baf27:null);}[a46_0x39129a(0x195)](_0x38e417){const _0x248004=a46_0x39129a;super[_0x248004(0x195)](_0x38e417),this['updateState_']();}[a46_0x39129a(0x1b7)](_0x4710e5){this['_style']=_0x4710e5?_0x4710e5:{};}[a46_0x39129a(0x1af)](){const _0x467336=a46_0x39129a;return this[_0x467336(0x1a2)];}['handleDownEvent'](_0x2e7310){const _0x8be8a=a46_0x39129a;if(_0x2e7310[_0x8be8a(0x1b0)][_0x8be8a(0x1ba)]===0x2)return _0x2e7310[_0x8be8a(0x1b0)][_0x8be8a(0x19f)](),this[_0x8be8a(0x165)](),this[_0x8be8a(0x1a7)](_0x2e7310),![];return!![];}[a46_0x39129a(0x172)](_0x2c3643){const _0x53613f=a46_0x39129a;var _0x9c7538,_0xb5ce39;if(this[_0x53613f(0x1a0)]==_0x53613f(0x17b)&&this['_drawingCoordinates'][_0x53613f(0x1b2)]<0x1)return this[_0x53613f(0x1bf)](new DrawEvent(DrawEventType[_0x53613f(0x162)],undefined,[_0x2c3643['coordinate']])),![];if(!this[_0x53613f(0x16b)])this[_0x53613f(0x1c5)](_0x2c3643[_0x53613f(0x19d)]),this[_0x53613f(0x1bf)](new ShEvent(DrawEventType[_0x53613f(0x1b4)],this[_0x53613f(0x1a0)],_0x2c3643[_0x53613f(0x19d)],this[_0x53613f(0x182)],(_0x9c7538=this[_0x53613f(0x1bd)]())===null||_0x9c7538===void 0x0?void 0x0:_0x9c7538[_0x53613f(0x188)]()[_0x53613f(0x18c)]()[_0x53613f(0x18a)]())),this[_0x53613f(0x1a0)]=='point'&&this[_0x53613f(0x198)]();else{if(this['_drawingCoordinates']&&this['_drawingCoordinates'][_0x53613f(0x1b2)]>0x0){if(this[_0x53613f(0x17e)](_0x2c3643[_0x53613f(0x19e)]))return this[_0x53613f(0x198)](),_0x2c3643[_0x53613f(0x19f)](),![];let _0x3d42b4=this[_0x53613f(0x182)][_0x53613f(0x1b2)]+0x1;_0x3d42b4<=this[_0x53613f(0x1c6)]&&this[_0x53613f(0x191)](_0x2c3643[_0x53613f(0x19d)]),this[_0x53613f(0x1bf)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x53613f(0x1a0)],_0x2c3643['coordinate'],this[_0x53613f(0x182)],(_0xb5ce39=this[_0x53613f(0x1bd)]())===null||_0xb5ce39===void 0x0?void 0x0:_0xb5ce39[_0x53613f(0x188)]()['getProjection']()[_0x53613f(0x18a)]())),_0x3d42b4>=this[_0x53613f(0x168)]&&this[_0x53613f(0x1a3)](this[_0x53613f(0x182)]),_0x3d42b4===this[_0x53613f(0x1c6)]&&this[_0x53613f(0x198)]();}}return _0x2c3643[_0x53613f(0x19f)](),![];}['handleDragEvent'](_0x4fdf8b){const _0x5c4115=a46_0x39129a;var _0x475162;if(this['_type']==_0x5c4115(0x17b)&&_0x4fdf8b['originalEvent'][_0x5c4115(0x1bb)]==_0x5c4115(0x1a8)){if(!this[_0x5c4115(0x16b)]){this[_0x5c4115(0x1c5)](_0x4fdf8b['coordinate']),this['dispatchEvent'](new ShEvent(DrawEventType[_0x5c4115(0x1b4)],this[_0x5c4115(0x1a0)],_0x4fdf8b[_0x5c4115(0x19d)],this['_drawingCoordinates'],(_0x475162=this[_0x5c4115(0x1bd)]())===null||_0x475162===void 0x0?void 0x0:_0x475162[_0x5c4115(0x188)]()['getProjection']()['getCode']()));return;}let _0x1e2be0=[...this['_drawingCoordinates'],_0x4fdf8b[_0x5c4115(0x19d)]];this[_0x5c4115(0x1a3)](_0x1e2be0),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x5c4115(0x187)],this[_0x5c4115(0x1c1)],this[_0x5c4115(0x182)]));}}[a46_0x39129a(0x1a7)](_0x1d2028){const _0x403e6a=a46_0x39129a;var _0x2aa400,_0x1288a3,_0x4e41e0;let _0x9c9344='';this[_0x403e6a(0x1a0)]==_0x403e6a(0x1a8)&&(this[_0x403e6a(0x1c5)](_0x1d2028[_0x403e6a(0x19d)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x403e6a(0x1b4)],this[_0x403e6a(0x1a0)],_0x1d2028[_0x403e6a(0x19d)],this[_0x403e6a(0x182)],(_0x2aa400=this[_0x403e6a(0x1bd)]())===null||_0x2aa400===void 0x0?void 0x0:_0x2aa400['getView']()[_0x403e6a(0x18c)]()[_0x403e6a(0x18a)]())),this['finishDrawing']());!this[_0x403e6a(0x16b)]?_0x9c9344=this[_0x403e6a(0x1a0)]==_0x403e6a(0x17b)?_0x403e6a(0x178):'单击开始绘制':(_0x9c9344=_0x403e6a(0x169),((_0x1288a3=this['_drawingCoordinates'])===null||_0x1288a3===void 0x0?void 0x0:_0x1288a3['length'])===this[_0x403e6a(0x1c6)]-0x1&&(_0x9c9344='单击结束绘制,右击删除点'),((_0x4e41e0=this[_0x403e6a(0x182)])===null||_0x4e41e0===void 0x0?void 0x0:_0x4e41e0[_0x403e6a(0x1b2)])>=this[_0x403e6a(0x168)]&&this[_0x403e6a(0x1c6)]===Number[_0x403e6a(0x170)]&&(_0x9c9344=_0x403e6a(0x176)));this[_0x403e6a(0x1c2)]!=undefined&&(_0x9c9344=this['tipText']);this[_0x403e6a(0x177)](_0x1d2028[_0x403e6a(0x19d)],_0x9c9344);if(this[_0x403e6a(0x16b)]&&this[_0x403e6a(0x1a0)]!=_0x403e6a(0x17b)){let _0x3cf964=[...this['_drawingCoordinates'],_0x1d2028['coordinate']];this[_0x403e6a(0x1a3)](_0x3cf964);}this['dispatchEvent'](new DrawEvent(DrawEventType[_0x403e6a(0x187)],this[_0x403e6a(0x1c1)],this[_0x403e6a(0x182)]));}[a46_0x39129a(0x17e)](_0x4b15af){const _0x197187=a46_0x39129a;var _0x9bf6b6;let _0x3bc660=![],_0x53bdb0=this[_0x197187(0x182)]['length'];if(_0x53bdb0>this[_0x197187(0x168)]&&this[_0x197187(0x1c6)]===Number[_0x197187(0x170)]){const _0x5d8b57=this[_0x197187(0x182)][this[_0x197187(0x182)]['length']-0x1],_0x6f2d85=(_0x9bf6b6=this[_0x197187(0x1bd)]())===null||_0x9bf6b6===void 0x0?void 0x0:_0x9bf6b6[_0x197187(0x175)](_0x5d8b57),_0x22ee1c=_0x4b15af[0x0]-(_0x6f2d85?_0x6f2d85[0x0]:0x0),_0x5067b8=_0x4b15af[0x1]-(_0x6f2d85?_0x6f2d85[0x1]:0x0);_0x3bc660=Math[_0x197187(0x192)](_0x22ee1c*_0x22ee1c+_0x5067b8*_0x5067b8)<=this[_0x197187(0x164)];}return _0x3bc660;}[a46_0x39129a(0x1c5)](_0x3ef44a){const _0x1a55cf=a46_0x39129a;this[_0x1a55cf(0x16b)]=!![],this[_0x1a55cf(0x182)]=[_0x3ef44a['slice']()],this[_0x1a55cf(0x1c1)]=this[_0x1a55cf(0x189)](),this['updateSketchFeatures_'](),this[_0x1a55cf(0x1bf)](new DrawEvent(DrawEventType['DRAWSTART'],this[_0x1a55cf(0x1c1)],this[_0x1a55cf(0x182)]));}['finishDrawing'](){const _0x3785fc=a46_0x39129a;if(this[_0x3785fc(0x182)]['length']>this[_0x3785fc(0x168)]){this['buildDrawingFeature'](this[_0x3785fc(0x182)]);let _0x318776=this['_drawingCoordinates'];const _0x279769=this[_0x3785fc(0x16f)]();if(!_0x279769)return;this[_0x3785fc(0x1bf)](new DrawEvent(DrawEventType[_0x3785fc(0x162)],_0x279769,_0x318776)),this['_features']&&this[_0x3785fc(0x1a4)][_0x3785fc(0x180)](_0x279769),this[_0x3785fc(0x1a5)]&&this['_source'][_0x3785fc(0x171)](_0x279769);}}[a46_0x39129a(0x191)](_0x306ad1){const _0x1518f5=a46_0x39129a;this[_0x1518f5(0x182)][_0x1518f5(0x180)](_0x306ad1),this['_sketchFeature']=this[_0x1518f5(0x189)](),this[_0x1518f5(0x1b3)]();}[a46_0x39129a(0x189)](){const _0xf5926e=a46_0x39129a,_0x29fc92=new MultiPoint(this[_0xf5926e(0x182)]);let _0x34ba44=new a46_0x18d3b5();return _0x34ba44['setGeometry'](_0x29fc92),_0x34ba44;}[a46_0x39129a(0x16f)](){const _0x5e5ed8=a46_0x39129a;var _0x20b7f8,_0x28e81e;this[_0x5e5ed8(0x16b)]=![];const _0x33d908=this[_0x5e5ed8(0x1c1)];return this['_sketchFeature']=undefined,this[_0x5e5ed8(0x182)]=[],(_0x20b7f8=this[_0x5e5ed8(0x1a2)][_0x5e5ed8(0x19c)]())===null||_0x20b7f8===void 0x0?void 0x0:_0x20b7f8[_0x5e5ed8(0x186)](!![]),(_0x28e81e=this['_tipOverlay'][_0x5e5ed8(0x19c)]())===null||_0x28e81e===void 0x0?void 0x0:_0x28e81e[_0x5e5ed8(0x186)](!![]),_0x33d908;}['abortDrawing'](){const _0x2c17d7=a46_0x39129a,_0x2fb559=this['abortDrawing_']();_0x2fb559&&this[_0x2c17d7(0x1bf)](new DrawEvent(DrawEventType[_0x2c17d7(0x1aa)],_0x2fb559,this[_0x2c17d7(0x182)]));}[a46_0x39129a(0x1a3)](_0x42e2c0){const _0x4e66ed=a46_0x39129a;this[_0x4e66ed(0x1c1)]=new a46_0x18d3b5();let _0x52debd=createPlot(this[_0x4e66ed(0x1a0)],_0x42e2c0);if(!_0x52debd)return;this['_sketchFeature'][_0x4e66ed(0x190)](_0x52debd);let _0x3ef284=[a46_0x4653c3[_0x4e66ed(0x1a1)],a46_0x4653c3[_0x4e66ed(0x19b)],a46_0x4653c3['Ellipse']];if(_0x3ef284[_0x4e66ed(0x1ab)](this[_0x4e66ed(0x1a0)])>-0x1&&this[_0x4e66ed(0x196)]){}const _0x53bae3=this[_0x4e66ed(0x1bd)]();this[_0x4e66ed(0x1c1)][_0x4e66ed(0x1b7)](getStyle(this[_0x4e66ed(0x1a0)],this[_0x4e66ed(0x196)],this[_0x4e66ed(0x1bd)]())),this[_0x4e66ed(0x1b3)]();}[a46_0x39129a(0x1b3)](){const _0x3b2a37=a46_0x39129a,_0x124205=this[_0x3b2a37(0x1a2)][_0x3b2a37(0x19c)]();_0x124205&&this[_0x3b2a37(0x1c1)]&&(_0x124205[_0x3b2a37(0x186)](!![]),_0x124205[_0x3b2a37(0x171)](this[_0x3b2a37(0x1c1)]));}['revert'](){const _0x331704=a46_0x39129a;if(this[_0x331704(0x16b)]){if(this[_0x331704(0x182)]&&this[_0x331704(0x182)][_0x331704(0x1b2)]>0x0){const _0x2c58c9=this[_0x331704(0x1a2)][_0x331704(0x19c)]();_0x2c58c9===null||_0x2c58c9===void 0x0?void 0x0:_0x2c58c9[_0x331704(0x186)](!![]),this[_0x331704(0x182)][_0x331704(0x160)](),this[_0x331704(0x182)][_0x331704(0x1b2)]>=this[_0x331704(0x168)]&&this[_0x331704(0x1a3)](this[_0x331704(0x182)]),this[_0x331704(0x182)][_0x331704(0x1b2)]===0x0&&(this[_0x331704(0x16b)]=![]);}}}['updateTip_'](_0x9ef770,_0x581bf0){const _0x3c9d61=a46_0x39129a;var _0x2a0584,_0x24b25d,_0x184e73,_0x41e4f4;if(!this[_0x3c9d61(0x16e)])return;const _0x456825=this[_0x3c9d61(0x179)][_0x3c9d61(0x19c)]();_0x456825===null||_0x456825===void 0x0?void 0x0:_0x456825[_0x3c9d61(0x186)](!![]),(_0x2a0584=this['_tipFeature'])===null||_0x2a0584===void 0x0?void 0x0:_0x2a0584[_0x3c9d61(0x190)](new Point(_0x9ef770)),(_0x184e73=(_0x24b25d=this[_0x3c9d61(0x15f)])===null||_0x24b25d===void 0x0?void 0x0:_0x24b25d[_0x3c9d61(0x1ae)]())===null||_0x184e73===void 0x0?void 0x0:_0x184e73[_0x3c9d61(0x1a6)](_0x581bf0),(_0x41e4f4=this[_0x3c9d61(0x166)])===null||_0x41e4f4===void 0x0?void 0x0:_0x41e4f4['setStyle'](this['_tipStyle']),this[_0x3c9d61(0x166)]&&(_0x456825===null||_0x456825===void 0x0?void 0x0:_0x456825[_0x3c9d61(0x171)](this['_tipFeature']));}}function getDefaultStyleFunction(){const _0x2fcf59=createEditingStyle();return function(_0x82b7f2,_0x675564){const _0x124762=a46_0x3f1a,_0x51f71c=_0x2fcf59[_0x82b7f2['getGeometry']()[_0x124762(0x185)]()];if(_0x51f71c&&_0x124762(0x1b5)==_0x82b7f2['getGeometry']()[_0x124762(0x185)]()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x3e902c=a47_0x3326;function a47_0x3326(_0x46f844,_0x7a8bab){const _0x3b4d56=a47_0x3b4d();return a47_0x3326=function(_0x3326da,_0x111fd1){_0x3326da=_0x3326da-0x11c;let _0x3675c8=_0x3b4d56[_0x3326da];return _0x3675c8;},a47_0x3326(_0x46f844,_0x7a8bab);}function a47_0x3b4d(){const _0x4a1ed3=['removeInteraction','59085558hFNlTR','removeAllInteractions','interactions','get','set','2487132FrDXHe','112SJNvLx','has','clear','map','9867276SPhSGs','name','657798hRqkkJ','addInteraction','4aDEcQH','6080720WxPpFP','delete','826847wyJnGK','89298PJeKAP','getInteraction'];a47_0x3b4d=function(){return _0x4a1ed3;};return a47_0x3b4d();}(function(_0x5f1376,_0xdce66){const _0x3ca7df=a47_0x3326,_0x4f30d9=_0x5f1376();while(!![]){try{const _0x20ddfd=parseInt(_0x3ca7df(0x12b))/0x1+-parseInt(_0x3ca7df(0x125))/0x2+-parseInt(_0x3ca7df(0x11e))/0x3*(parseInt(_0x3ca7df(0x127))/0x4)+-parseInt(_0x3ca7df(0x128))/0x5+-parseInt(_0x3ca7df(0x123))/0x6+parseInt(_0x3ca7df(0x12a))/0x7*(-parseInt(_0x3ca7df(0x11f))/0x8)+parseInt(_0x3ca7df(0x12e))/0x9;if(_0x20ddfd===_0xdce66)break;else _0x4f30d9['push'](_0x4f30d9['shift']());}catch(_0x59cb0c){_0x4f30d9['push'](_0x4f30d9['shift']());}}}(a47_0x3b4d,0xefc11));export default class InteractionManager{constructor(_0x2ea5ba){const _0x5a9fbc=a47_0x3326;this['map']=_0x2ea5ba,this[_0x5a9fbc(0x130)]=new Map();}['addInteraction'](_0x3803eb,_0x49174e){const _0x4e5e79=a47_0x3326;this['interactions'][_0x4e5e79(0x120)](_0x3803eb)&&this[_0x4e5e79(0x12d)](_0x3803eb),_0x49174e[_0x4e5e79(0x11d)](_0x4e5e79(0x124),_0x3803eb),this[_0x4e5e79(0x130)][_0x4e5e79(0x11d)](_0x3803eb,_0x49174e),this['map'][_0x4e5e79(0x126)](_0x49174e);}[a47_0x3e902c(0x12d)](_0x46dc6e){const _0x342115=a47_0x3e902c,_0x51ca87=this[_0x342115(0x130)][_0x342115(0x11c)](_0x46dc6e);_0x51ca87&&(this['map'][_0x342115(0x12d)](_0x51ca87),this[_0x342115(0x130)][_0x342115(0x129)](_0x46dc6e));}[a47_0x3e902c(0x12f)](){const _0x105072=a47_0x3e902c;this['interactions']['forEach'](_0x1b3e26=>{const _0x3f11ee=a47_0x3326;this[_0x3f11ee(0x122)][_0x3f11ee(0x12d)](_0x1b3e26);}),this[_0x105072(0x130)][_0x105072(0x121)]();}[a47_0x3e902c(0x12c)](_0x280024){const _0x124b6a=a47_0x3e902c;return this[_0x124b6a(0x130)][_0x124b6a(0x11c)](_0x280024);}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x657eb5=a48_0x31b3;(function(_0x46530c,_0x5dde37){const _0x50be44=a48_0x31b3,_0x1d34a4=_0x46530c();while(!![]){try{const _0x100278=parseInt(_0x50be44(0x16c))/0x1*(parseInt(_0x50be44(0x145))/0x2)+-parseInt(_0x50be44(0x164))/0x3+parseInt(_0x50be44(0x167))/0x4+-parseInt(_0x50be44(0x166))/0x5+parseInt(_0x50be44(0x125))/0x6*(-parseInt(_0x50be44(0x126))/0x7)+-parseInt(_0x50be44(0x152))/0x8*(parseInt(_0x50be44(0x11b))/0x9)+parseInt(_0x50be44(0x13f))/0xa*(parseInt(_0x50be44(0x15e))/0xb);if(_0x100278===_0x5dde37)break;else _0x1d34a4['push'](_0x1d34a4['shift']());}catch(_0x493d2e){_0x1d34a4['push'](_0x1d34a4['shift']());}}}(a48_0x25c1,0x26496));import a48_0x2b4aac from'./Draw';import a48_0x278e76 from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';function a48_0x31b3(_0x50879d,_0x221052){const _0x25c1f3=a48_0x25c1();return a48_0x31b3=function(_0x31b3ec,_0x147409){_0x31b3ec=_0x31b3ec-0x119;let _0x24db94=_0x25c1f3[_0x31b3ec];return _0x24db94;},a48_0x31b3(_0x50879d,_0x221052);}import a48_0x1a4d21 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';function a48_0x25c1(){const _0x499b29=['layerInfo','258000CtVJaT','getSource','1209165zfizdN','577596fuVfqp','getLayerById','filter','setStyle','addEventListener','3igXzIc','selectedPolygonFeatures','allSelectedFeatures','1395FtBKFN','getArray','pointFeatures','selectLayers','selectGeom','getProjection','pixelDistance','import','keydown','polygonStyle','6RWiPKP','1422995HmhSKw','cancePolygonStyle','selectLayer','SELECTED','selectTempLayer','loadFilter','union','canceLineStyle','addFeatures','coordinates','未获取到几何','error','layerId','getType','length','setSelectLayers','lineFeatures','holdCtrl','url','MultiPoint','getGeometry','cancePointStyle','pointStyle','tempLayer','getVisible','113860YyHVEt','addTempLayer','copy','seletctEditeFeature','lineStyle','currentLayers','28010vRcFAf','getLayers','getView','MultiLineString','selectedPointFeatures','message','tipText','cut','LineString','polygonFeatures','selectIndex','allFeatures','getSelectedFeatures','7024NgSeXf','onInternal','selectedLineFeatures','getPointTempLayer','feature','MultiPolygon','map','fromType','getLineTempLayer','dispatchEvent','getResolution','getMap','616mempJk','push','draw','Polygon','layerType'];a48_0x25c1=function(){return _0x499b29;};return a48_0x25c1();}const SelectEventType={'SELECTSTART':'selectStart','SELECTED':'selected'};export class SelectEvent extends a48_0x278e76{constructor(_0x56411f,_0x211fc3,_0x3683a0,_0x2e69fb,_0x2de5f1,_0x2086f9,_0x5ea77c,_0x51b241,_0x4a4200){const _0x40b3e5=a48_0x31b3;super(_0x56411f),this[_0x40b3e5(0x11f)]=_0x3683a0,this[_0x40b3e5(0x12f)]=_0x2e69fb,this[_0x40b3e5(0x11d)]=_0x2de5f1,this[_0x40b3e5(0x136)]=_0x2086f9,this[_0x40b3e5(0x14e)]=_0x5ea77c,this[_0x40b3e5(0x150)]=_0x51b241,this[_0x40b3e5(0x131)]=_0x4a4200,this[_0x40b3e5(0x137)]=_0x211fc3;}}export default class Select extends a48_0x2b4aac{constructor(_0x498873,_0x159e3d){const _0x231191=a48_0x31b3;super(_0x498873,{'tipText':_0x159e3d===null||_0x159e3d===void 0x0?void 0x0:_0x159e3d[_0x231191(0x14b)]}),this[_0x231191(0x149)]=[],this[_0x231191(0x154)]=[],this[_0x231191(0x119)]=[],this[_0x231191(0x11a)]=[];const _0x51c4bd=_0x159e3d||{};this['addTempLayer']=_0x51c4bd[_0x231191(0x140)]||![],this[_0x231191(0x144)]=_0x51c4bd[_0x231191(0x11e)],this[_0x231191(0x12a)]=_0x51c4bd[_0x231191(0x12a)]===undefined?!![]:_0x51c4bd[_0x231191(0x12a)],this[_0x231191(0x121)]=_0x51c4bd[_0x231191(0x121)]===undefined?0x5:_0x51c4bd['pixelDistance'],this[_0x231191(0x13c)]=_0x51c4bd['pointStyle']?getStyle(_0x51c4bd[_0x231191(0x13c)]):getSelectPointStyle(),this[_0x231191(0x13b)]=_0x51c4bd[_0x231191(0x13b)]?getStyle(_0x51c4bd['cancePointStyle']):getSelectCancePointStyle(),this['lineStyle']=_0x51c4bd[_0x231191(0x143)]?getStyle(_0x51c4bd[_0x231191(0x143)]):getSelectLineStyle(),this[_0x231191(0x12d)]=_0x51c4bd[_0x231191(0x12d)]?getStyle(_0x51c4bd[_0x231191(0x12d)]):getSelectCancelLineStyle(),this[_0x231191(0x124)]=_0x51c4bd[_0x231191(0x124)]?getStyle(_0x51c4bd[_0x231191(0x124)]):getSelectPolygonStyle(),this[_0x231191(0x127)]=_0x51c4bd[_0x231191(0x127)]?getStyle(_0x51c4bd[_0x231191(0x127)]):getSelectCancelPolygonStyle(),this[_0x231191(0x137)]=![];let _0x1783e9;this['on']=this[_0x231191(0x153)],this['on']('drawEnd',async _0x2612cf=>{const _0x4e65df=_0x231191,_0x21950c=this[_0x4e65df(0x137)],_0x4c3a7=this[_0x4e65df(0x15d)]();if(!_0x4c3a7)return;try{let _0x5f1dc4=undefined;if(!_0x2612cf[_0x4e65df(0x156)]&&_0x2612cf[_0x4e65df(0x12f)]&&_0x2612cf[_0x4e65df(0x12f)][_0x4e65df(0x134)]==0x1)_0x5f1dc4=bufferPixel(new Point(_0x2612cf['coordinates'][0x0]),this[_0x4e65df(0x121)],_0x4c3a7);else _0x2612cf[_0x4e65df(0x156)]&&(_0x5f1dc4=_0x2612cf[_0x4e65df(0x156)][_0x4e65df(0x13a)]());if(!_0x5f1dc4)throw new Error(_0x4e65df(0x130));this[_0x4e65df(0x15b)](new SelectEvent(SelectEventType['SELECTSTART'],_0x21950c,_0x5f1dc4)),this[_0x4e65df(0x149)]=[],this['selectedLineFeatures']=[],this[_0x4e65df(0x119)]=[],this['allSelectedFeatures']=[],this['selectTempLayer']&&this[_0x4e65df(0x142)](_0x5f1dc4),_0x1783e9&&clearTimeout(_0x1783e9),_0x1783e9=setTimeout(async()=>{const _0x52e3cc=_0x4e65df;await this['selectLayer'](_0x5f1dc4),this[_0x52e3cc(0x15b)](new SelectEvent(SelectEventType[_0x52e3cc(0x129)],_0x21950c,_0x5f1dc4,_0x2612cf[_0x52e3cc(0x12f)],this[_0x52e3cc(0x149)],this[_0x52e3cc(0x154)],this[_0x52e3cc(0x119)],this[_0x52e3cc(0x11a)]));},0x46);}catch(_0x2e5911){this[_0x4e65df(0x15b)](new SelectEvent(SelectEventType[_0x4e65df(0x129)],_0x21950c,undefined,_0x2612cf[_0x4e65df(0x12f)],this[_0x4e65df(0x149)],this[_0x4e65df(0x154)],this['selectedPolygonFeatures'],this['allSelectedFeatures'],_0x2e5911[_0x4e65df(0x14a)]));}}),window[_0x231191(0x16b)](_0x231191(0x123),_0x49a822=>{const _0x507511=_0x231191;_0x49a822['ctrlKey']&&(this[_0x507511(0x137)]=!![]);}),window[_0x231191(0x16b)]('keyup',_0x398622=>{this['holdCtrl']=![];});}[a48_0x657eb5(0x135)](_0xfe1e4c){const _0x1af4fc=a48_0x657eb5;this[_0x1af4fc(0x144)]=_0xfe1e4c;}async[a48_0x657eb5(0x128)](_0x404157){const _0x297c93=a48_0x657eb5;var _0x771c53;const _0x4a983a=this[_0x297c93(0x15d)]();let _0x4b2a11=[];if(this[_0x297c93(0x144)]&&this[_0x297c93(0x144)][_0x297c93(0x134)]>0x0)_0x4b2a11=this[_0x297c93(0x144)];else{let _0x1f72f5=_0x4a983a[_0x297c93(0x146)]()[_0x297c93(0x11c)]();_0x1f72f5=_0x1f72f5[_0x297c93(0x169)](_0x39e6ee=>{const _0x5bc51a=_0x297c93,_0x2829be=_0x39e6ee[_0x5bc51a(0x163)];if(!_0x2829be)return![];return _0x39e6ee[_0x5bc51a(0x13e)]()==!![]&&_0x2829be[_0x5bc51a(0x14f)]!=undefined&&_0x2829be[_0x5bc51a(0x14f)]!='';}),_0x4b2a11=_0x1f72f5[_0x297c93(0x158)](_0x37889b=>{const _0x3222ca=_0x297c93;return _0x37889b[_0x3222ca(0x163)];});}if(!_0x4b2a11||_0x4b2a11[_0x297c93(0x134)]==0x0)return;const _0x4fccc3=_0x4a983a[_0x297c93(0x147)]()[_0x297c93(0x120)]()['getCode'](),_0x97900e=_0x4a983a['getView']()[_0x297c93(0x15c)]();for(let _0x2ef9e0=0x0,_0x5afb13=_0x4b2a11[_0x297c93(0x134)];_0x2ef9e0<_0x5afb13;_0x2ef9e0++){const _0x251eee=_0x4b2a11[_0x2ef9e0],_0x1f9ff3=_0x4a983a[_0x297c93(0x168)](_0x251eee['id']);if(!_0x1f9ff3||_0x1f9ff3['getVisible']()==![]||!_0x251eee||!_0x251eee['url']||!_0x251eee['selectIndex'])continue;let _0x4463c9=await selectFeaturesByGeo(_0x404157,_0x4fccc3,_0x251eee[_0x297c93(0x138)],_0x251eee[_0x297c93(0x14f)],_0x251eee[_0x297c93(0x162)],_0x251eee[_0x297c93(0x12b)],_0x97900e);if(_0x4463c9[_0x297c93(0x134)]>0x0){this[_0x297c93(0x11a)][_0x297c93(0x15f)](..._0x4463c9);let _0x4ea7dd=_0x4a983a['getPolygonTempLayer'](),_0x7ae0e1=this[_0x297c93(0x124)];switch((_0x771c53=_0x4463c9[0x0][_0x297c93(0x13a)]())===null||_0x771c53===void 0x0?void 0x0:_0x771c53['getType']()){case'Point':case _0x297c93(0x139):this[_0x297c93(0x149)][_0x297c93(0x15f)](..._0x4463c9),_0x4ea7dd=_0x4a983a[_0x297c93(0x155)](),_0x7ae0e1=this[_0x297c93(0x13c)];break;case _0x297c93(0x14d):case _0x297c93(0x148):this[_0x297c93(0x154)][_0x297c93(0x15f)](..._0x4463c9),_0x4ea7dd=_0x4a983a[_0x297c93(0x15a)](),_0x7ae0e1=this[_0x297c93(0x143)];break;case _0x297c93(0x161):case _0x297c93(0x157):this['selectedPolygonFeatures']['push'](..._0x4463c9),_0x4ea7dd=_0x4a983a['getPolygonTempLayer'](),_0x7ae0e1=this['polygonStyle'];break;default:break;}const _0x5c6522=_0x4ea7dd[_0x297c93(0x165)]();_0x5c6522&&(_0x4463c9['forEach'](_0x455cb2=>{const _0x5cc579=_0x297c93;_0x455cb2[_0x5cc579(0x132)]=_0x251eee['id'],_0x455cb2[_0x5cc579(0x13d)]=_0x4ea7dd,_0x455cb2[_0x5cc579(0x16a)](_0x7ae0e1);}),this['addTempLayer']&&_0x5c6522[_0x297c93(0x12e)](_0x4463c9));}}}[a48_0x657eb5(0x142)](_0x2459da){const _0x56d639=a48_0x657eb5,_0x2d0935=new a48_0x1a4d21(this['getMap']()),_0x5c0171=_0x2d0935[_0x56d639(0x151)]();if(!_0x5c0171||_0x5c0171[_0x56d639(0x134)]===0x0)return[];const _0xd3f1ce=[_0x56d639(0x141),_0x56d639(0x14c),_0x56d639(0x160),_0x56d639(0x122),_0x56d639(0x12c)],_0x503fdb=[];for(const _0x4d2ef0 of _0x5c0171){if(!_0x4d2ef0||!_0x4d2ef0[_0x56d639(0x159)]||!_0xd3f1ce['includes'](_0x4d2ef0[_0x56d639(0x159)]))continue;const _0x4bcdc5=_0x4d2ef0[_0x56d639(0x13a)]();if(!_0x4bcdc5)continue;if(!intersects(_0x4bcdc5,_0x2459da))continue;let _0x405f56=this[_0x56d639(0x124)];this[_0x56d639(0x11a)][_0x56d639(0x15f)](_0x4d2ef0);switch(_0x4bcdc5[_0x56d639(0x133)]()){case'Point':case _0x56d639(0x139):this[_0x56d639(0x149)][_0x56d639(0x15f)](_0x4d2ef0),_0x405f56=this[_0x56d639(0x13c)];break;case _0x56d639(0x14d):case _0x56d639(0x148):this[_0x56d639(0x154)][_0x56d639(0x15f)](_0x4d2ef0),_0x405f56=this[_0x56d639(0x143)];break;case'Polygon':case _0x56d639(0x157):this[_0x56d639(0x119)][_0x56d639(0x15f)](_0x4d2ef0),_0x405f56=this[_0x56d639(0x124)];break;default:break;}_0x4d2ef0[_0x56d639(0x16a)](_0x405f56);}return _0x503fdb;}}
|
package/interaction/Split.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a49_0x5dae83=a49_0x4605;function a49_0x4605(_0x7f00fc,_0x2b5201){const _0x17ffab=a49_0x17ff();return a49_0x4605=function(_0x4605bd,_0x5f1b39){_0x4605bd=_0x4605bd-0x185;let _0x501fbe=_0x17ffab[_0x4605bd];return _0x501fbe;},a49_0x4605(_0x7f00fc,_0x2b5201);}(function(_0x32edc2,_0x58c216){const _0x4e9113=a49_0x4605,_0x5c844e=_0x32edc2();while(!![]){try{const _0x307036=parseInt(_0x4e9113(0x18d))/0x1*(parseInt(_0x4e9113(0x18f))/0x2)+-parseInt(_0x4e9113(0x187))/0x3+parseInt(_0x4e9113(0x19e))/0x4+parseInt(_0x4e9113(0x1a1))/0x5+-parseInt(_0x4e9113(0x192))/0x6+-parseInt(_0x4e9113(0x1a0))/0x7+-parseInt(_0x4e9113(0x19d))/0x8;if(_0x307036===_0x58c216)break;else _0x5c844e['push'](_0x5c844e['shift']());}catch(_0x4fcdd8){_0x5c844e['push'](_0x5c844e['shift']());}}}(a49_0x17ff,0x2caad));import a49_0xe7dccf from'./Draw';function a49_0x17ff(){const _0x33a5ab=['SPLITSTART','polygonFeatures','593UFIqws','splitFeatures','582PAnTYn','splitStart','tipText','1817046Wtuwat','fromType','push','addTempLayer','getMap','未获取到多边形对象','error','length','layerId','getGeometry','rgba(255,\x200,\x200,\x201)','1560072Drkyyf','1224132uzhFxb','cut','217567HLRagb','1758360zQcNxz','setGeometry','splitLine','feature','未获取到地图对象','splitLineStyle','message','355140sLDmFc','polyGonfeatures','dispatchEvent','onInternal'];a49_0x17ff=function(){return _0x33a5ab;};return a49_0x17ff();}import a49_0x299c15 from'ol/style/Stroke';import a49_0x52d8db from'ol/events/Event';import a49_0x45dd62 from'ol/style/Style';import{getStyle}from'../style/StyleManager';import{jstlSplit}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':a49_0x5dae83(0x190),'SPLITED':'splited'};export class SplitEvent extends a49_0x52d8db{constructor(_0x39bc36,_0x4067d2,_0x19aec2,_0x29ea7d){const _0x13875b=a49_0x5dae83;super(_0x39bc36),this[_0x13875b(0x1a3)]=_0x4067d2,this[_0x13875b(0x18c)]=_0x19aec2,this[_0x13875b(0x198)]=_0x29ea7d;}}export default class Split extends a49_0xe7dccf{constructor(_0x2fc371,_0x15fc70){const _0x10f7e0=a49_0x5dae83;super('polyline',{'tipText':_0x15fc70===null||_0x15fc70===void 0x0?void 0x0:_0x15fc70[_0x10f7e0(0x191)]}),this[_0x10f7e0(0x188)]=_0x2fc371;const _0x2e1b96=_0x15fc70||{};this[_0x10f7e0(0x195)]=_0x2e1b96['addTempLayer']||![],this['splitLineStyle']=_0x2e1b96[_0x10f7e0(0x185)]?getStyle(_0x2e1b96[_0x10f7e0(0x185)]):new a49_0x45dd62({'stroke':new a49_0x299c15({'color':_0x10f7e0(0x19c),'width':0x2})});;this['on']=this[_0x10f7e0(0x18a)],this['on']('drawEnd',async _0x410912=>{const _0x234720=_0x10f7e0;var _0x5e7062;const _0x42b9e0=this[_0x234720(0x196)]();let _0x296631=(_0x5e7062=_0x410912[_0x234720(0x1a4)])===null||_0x5e7062===void 0x0?void 0x0:_0x5e7062[_0x234720(0x19b)]();!_0x296631&&this[_0x234720(0x189)](new SplitEvent(SplitEventType[_0x234720(0x18b)],undefined,undefined,'未获取到绘制的分割线'));let _0x1844b5=_0x296631;!_0x42b9e0&&this[_0x234720(0x189)](new SplitEvent(SplitEventType[_0x234720(0x18b)],_0x1844b5,undefined,_0x234720(0x1a5)));(!this[_0x234720(0x188)]||this[_0x234720(0x188)][_0x234720(0x199)]===0x0)&&this[_0x234720(0x189)](new SplitEvent(SplitEventType['SPLITSTART'],_0x1844b5,undefined,_0x234720(0x197)));try{const _0x970021=this[_0x234720(0x18e)](_0x1844b5,_0x42b9e0['getPolygonTempLayer']());this[_0x234720(0x189)](new SplitEvent(SplitEventType[_0x234720(0x18b)],_0x1844b5,_0x970021));}catch(_0x54f735){this[_0x234720(0x189)](new SplitEvent(SplitEventType['SPLITSTART'],_0x1844b5,undefined,_0x54f735[_0x234720(0x186)]));}});}[a49_0x5dae83(0x18e)](_0x3840ec,_0x4d41c0){const _0x2b0d27=a49_0x5dae83,_0x44ae58=[],_0x1d52a2=_0x4d41c0['getSource']();for(let _0x324326=0x0;_0x324326<this[_0x2b0d27(0x188)][_0x2b0d27(0x199)];_0x324326++){const _0x2ab0f7=this[_0x2b0d27(0x188)][_0x324326],_0x36a253=_0x2ab0f7[_0x2b0d27(0x19b)](),_0xbdb0a7=jstlSplit(_0x36a253,_0x3840ec);if(_0xbdb0a7[_0x2b0d27(0x199)]>0x1){_0x2ab0f7[_0x2b0d27(0x1a2)](_0xbdb0a7[0x0]),_0x44ae58[_0x2b0d27(0x194)](_0x2ab0f7);for(let _0xdec1f7=0x1;_0xdec1f7<_0xbdb0a7[_0x2b0d27(0x199)];_0xdec1f7++){const _0x365612=_0x2ab0f7['clone']();_0x365612[_0x2b0d27(0x19a)]=undefined,_0x365612[_0x2b0d27(0x193)]=_0x2b0d27(0x19f),_0x365612['tempLayer']=_0x4d41c0,_0x365612[_0x2b0d27(0x1a2)](_0xbdb0a7[_0xdec1f7]),this[_0x2b0d27(0x195)]&&(_0x1d52a2===null||_0x1d52a2===void 0x0?void 0x0:_0x1d52a2['addFeature'](_0x365612)),_0x44ae58[_0x2b0d27(0x194)](_0x365612);}}}return _0x44ae58;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x16b142=a50_0x49ec;(function(_0x1a5ebc,_0x471c1c){const _0x158a14=a50_0x49ec,_0x336acd=_0x1a5ebc();while(!![]){try{const _0x57c36e=-parseInt(_0x158a14(0xa7))/0x1+-parseInt(_0x158a14(0xa1))/0x2+-parseInt(_0x158a14(0x98))/0x3+-parseInt(_0x158a14(0x92))/0x4+-parseInt(_0x158a14(0x9b))/0x5*(parseInt(_0x158a14(0xad))/0x6)+-parseInt(_0x158a14(0x8d))/0x7+parseInt(_0x158a14(0x91))/0x8;if(_0x57c36e===_0x471c1c)break;else _0x336acd['push'](_0x336acd['shift']());}catch(_0x17940e){_0x336acd['push'](_0x336acd['shift']());}}}(a50_0x339f,0xc5871));function a50_0x49ec(_0x186ce1,_0x153664){const _0x339f62=a50_0x339f();return a50_0x49ec=function(_0x49ecf5,_0x254867){_0x49ecf5=_0x49ecf5-0x8d;let _0x2bd38a=_0x339f62[_0x49ecf5];return _0x2bd38a;},a50_0x49ec(_0x186ce1,_0x153664);}function a50_0x339f(){const _0x1c40ae=['getSource','wkid','stringify','show:','6eaZhmY','8534554BAoouC','join','anonymous','ymax','39308592KqrrVO','4292736phlzau','fullExtent','layerDefs','projection','ymin','url','68961dJxsAz','initialExtent','EPSG:','3940165aNOuwv','opacity','mapIndex','wkt','loadFilter','xmax','1190496zLKvtI','setFilter','updateParams','layerInfo','selectIndex','xmin','405827iaqyuR','spatialReference'];a50_0x339f=function(){return _0x1c40ae;};return a50_0x339f();}import a50_0x18e78c from'ol/source/ImageArcGISRest';import{Image as a50_0xf9a2c5}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a50_0xf9a2c5{constructor(_0x371137,_0x503e81){const _0x15fbe6=a50_0x49ec;var _0x25ec0e;let _0x2978c4={'LAYERS':_0x15fbe6(0xac)+((_0x25ec0e=_0x371137['sublayers'])===null||_0x25ec0e===void 0x0?void 0x0:_0x25ec0e[_0x15fbe6(0x8e)](','))};if(_0x371137[_0x15fbe6(0x9f)]&&_0x371137[_0x15fbe6(0xa5)]){const _0x705e34={};_0x705e34[_0x371137[_0x15fbe6(0xa5)]]=_0x371137[_0x15fbe6(0x9f)],_0x2978c4[_0x15fbe6(0x94)]=JSON['stringify'](_0x705e34);}const _0x35c5bd=[_0x503e81[_0x15fbe6(0x99)][_0x15fbe6(0xa6)],_0x503e81['initialExtent'][_0x15fbe6(0x96)],_0x503e81[_0x15fbe6(0x99)][_0x15fbe6(0xa0)],_0x503e81['initialExtent']['ymax']],_0x3e2a21=[_0x503e81[_0x15fbe6(0x93)][_0x15fbe6(0xa6)],_0x503e81[_0x15fbe6(0x93)][_0x15fbe6(0x96)],_0x503e81['fullExtent'][_0x15fbe6(0xa0)],_0x503e81[_0x15fbe6(0x93)][_0x15fbe6(0x90)]];let _0x2731c4;_0x503e81[_0x15fbe6(0xa8)][_0x15fbe6(0xaa)]?_0x2731c4=registerProj(_0x15fbe6(0x9a)+_0x503e81[_0x15fbe6(0xa8)][_0x15fbe6(0xaa)],_0x3e2a21):_0x2731c4=registerProj(_0x503e81[_0x15fbe6(0xa8)][_0x15fbe6(0x9e)],_0x3e2a21),super({'opacity':_0x371137[_0x15fbe6(0x9c)],'zIndex':_0x371137[_0x15fbe6(0x9d)],'source':new a50_0x18e78c({'crossOrigin':_0x15fbe6(0x8f),'projection':_0x2731c4,'ratio':0x1,'url':_0x371137[_0x15fbe6(0x97)],'params':_0x2978c4})}),this['id']=_0x371137['id'],this[_0x15fbe6(0x99)]=_0x35c5bd,this[_0x15fbe6(0x95)]=_0x2731c4,this[_0x15fbe6(0xa4)]=_0x371137;}[a50_0x16b142(0xa2)](_0xf1ea5b){const _0x1ac84b=a50_0x16b142;var _0x1dbaa9;const _0x60baa8={};this[_0x1ac84b(0xa4)]['selectIndex']&&(_0x60baa8[this[_0x1ac84b(0xa4)][_0x1ac84b(0xa5)]]=_0xf1ea5b),(_0x1dbaa9=this[_0x1ac84b(0xa9)]())===null||_0x1dbaa9===void 0x0?void 0x0:_0x1dbaa9[_0x1ac84b(0xa3)]({'layerDefs':JSON[_0x1ac84b(0xab)](_0xf1ea5b)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x2de187=a51_0x2760;(function(_0x43b348,_0x47a87f){const _0x4436e2=a51_0x2760,_0x1c2a65=_0x43b348();while(!![]){try{const _0x3d31e2=-parseInt(_0x4436e2(0x15d))/0x1+parseInt(_0x4436e2(0x15e))/0x2+-parseInt(_0x4436e2(0x133))/0x3*(parseInt(_0x4436e2(0x149))/0x4)+parseInt(_0x4436e2(0x14b))/0x5*(parseInt(_0x4436e2(0x162))/0x6)+-parseInt(_0x4436e2(0x151))/0x7*(parseInt(_0x4436e2(0x143))/0x8)+parseInt(_0x4436e2(0x14e))/0x9+-parseInt(_0x4436e2(0x13b))/0xa;if(_0x3d31e2===_0x47a87f)break;else _0x1c2a65['push'](_0x1c2a65['shift']());}catch(_0x3f87a2){_0x1c2a65['push'](_0x1c2a65['shift']());}}}(a51_0x42a9,0xbb9b8));import a51_0x500db2 from'ol/format/EsriJSON';import a51_0x46c082 from'ol/source/Vector';function a51_0x2760(_0x4a2909,_0x2e6e05){const _0x42a9fe=a51_0x42a9();return a51_0x2760=function(_0x2760d7,_0x41f094){_0x2760d7=_0x2760d7-0x12d;let _0x2662f8=_0x42a9fe[_0x2760d7];return _0x2662f8;},a51_0x2760(_0x4a2909,_0x2e6e05);}import{Vector as a51_0x4dce7c}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';function a51_0x42a9(){const _0x48e489=['xmin','initialExtent','33sYvplz','drawingInfo','type','url','symbol','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','layerInfo','&outSR=','8327180vwcQKq','&geometryType=esriGeometryEnvelope&inSR=','field1','showIndex','setLayers','addFeatures','wkid','fullExtent','181608rNrEDQ','stringify','loadFilter','&outFields=*','1=1','createArcGISFeatureLayer','117220iTlidU','readFeatures','10MZdeab','setFilter','getCode','2274489LxCDDW','simple','renderer','98lmZalR','/query','defaultSymbol','mapIndex','where=','spatialReference','xmax','value','push','get','log','ymin','387353HKECiI','2420762UFQPKM',',\x22xmax\x22:','error','uniqueValue','3496734GeXkLG','projection','string',',\x22ymin\x22:','uniqueValueInfos','setStyle','then'];a51_0x42a9=function(){return _0x48e489;};return a51_0x42a9();}import{tile as a51_0x530476}from'ol/loadingstrategy';import a51_0x4f5b97 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a51_0x5c2edc from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a51_0x4f5b97{constructor(_0x5a4c04,_0x4288bd,_0x2a1217){const _0xa7d65=a51_0x2760,_0x1266ff=[_0x4288bd[_0xa7d65(0x132)][_0xa7d65(0x131)],_0x4288bd[_0xa7d65(0x132)][_0xa7d65(0x15c)],_0x4288bd[_0xa7d65(0x132)][_0xa7d65(0x157)],_0x4288bd[_0xa7d65(0x132)]['ymax']],_0x40e907=[_0x4288bd[_0xa7d65(0x142)][_0xa7d65(0x131)],_0x4288bd['fullExtent'][_0xa7d65(0x15c)],_0x4288bd[_0xa7d65(0x142)][_0xa7d65(0x157)],_0x4288bd['fullExtent']['ymax']];let _0x46a349;_0x4288bd[_0xa7d65(0x156)][_0xa7d65(0x141)]?_0x46a349=registerProj('EPSG:'+_0x4288bd[_0xa7d65(0x156)][_0xa7d65(0x141)],_0x40e907):_0x46a349=registerProj(_0x4288bd[_0xa7d65(0x156)]['wkt'],_0x40e907);let _0x480e22=[];super({'zIndex':_0x5a4c04[_0xa7d65(0x154)]});for(let _0x1e0c40 of _0x2a1217){let _0x58adaf=this[_0xa7d65(0x148)](_0x5a4c04,_0x1e0c40);_0x480e22[_0xa7d65(0x159)](_0x58adaf);}this[_0xa7d65(0x13f)](new a51_0x5c2edc(_0x480e22)),this['id']=_0x5a4c04['id'],this[_0xa7d65(0x132)]=_0x1266ff,this[_0xa7d65(0x163)]=_0x46a349,this[_0xa7d65(0x139)]=_0x5a4c04;}['createArcGISFeatureLayer'](_0x10ccb3,_0x28b3d8){const _0x56547b=a51_0x2760;var _0x2499a5=new a51_0x500db2();let _0x43c819=new a51_0x46c082({'loader':function(_0x4a7d12,_0x1e7abe,_0x56f342){const _0x51f801=a51_0x2760;let _0x426e64=_0x51f801(0x147);_0x10ccb3[_0x51f801(0x145)]&&(_0x426e64=typeof _0x10ccb3[_0x51f801(0x145)]===_0x51f801(0x164)?_0x10ccb3[_0x51f801(0x145)]:JSON[_0x51f801(0x144)](_0x10ccb3['loadFilter']));let _0xdd9316=_0x56f342[_0x51f801(0x14d)](),_0xbe5e2a=_0xdd9316['split'](':')[0x1];var _0x3794f3=appendPath(_0x28b3d8[_0x51f801(0x136)],_0x51f801(0x152));_0x3794f3=appendParam(_0x3794f3,'f\x20=\x20json\x20&\x20'+_0x51f801(0x155)+encodeURIComponent(_0x426e64)+_0x51f801(0x138)+encodeURIComponent('{\x22xmin\x22:'+_0x4a7d12[0x0]+_0x51f801(0x12d)+_0x4a7d12[0x1]+_0x51f801(0x15f)+_0x4a7d12[0x2]+',\x22ymax\x22:'+_0x4a7d12[0x3]+',\x22spatialReference\x22:{\x22wkid\x22:'+_0xbe5e2a+'}}')+_0x51f801(0x13c)+_0xbe5e2a+_0x51f801(0x146)+_0x51f801(0x13a)+_0xbe5e2a),jsonp(_0x3794f3)[_0x51f801(0x130)](_0x17c4fe=>{const _0x1f2047=_0x51f801;if(_0x17c4fe[_0x1f2047(0x160)])console[_0x1f2047(0x15b)](_0x17c4fe);else{var _0x1e7821=_0x2499a5[_0x1f2047(0x14a)](_0x17c4fe,{'featureProjection':_0x56f342});_0x1e7821['length']>0x0&&(_0x28b3d8[_0x1f2047(0x134)][_0x1f2047(0x150)][_0x1f2047(0x135)]==_0x1f2047(0x161)&&_0x1e7821['forEach'](function(_0x1d09c5){const _0x31810b=_0x1f2047;var _0x3aef66=_0x1d09c5[_0x31810b(0x15a)](_0x28b3d8[_0x31810b(0x134)][_0x31810b(0x150)][_0x31810b(0x13d)]);const _0x56f1e4=_0x28b3d8[_0x31810b(0x134)]['renderer'][_0x31810b(0x12e)]['find'](_0x220f8d=>_0x220f8d[_0x31810b(0x158)]==_0x3aef66);let _0x331d0e;_0x56f1e4?_0x331d0e=transformedEsriStyle(_0x56f1e4['symbol']):_0x331d0e=transformedEsriStyle(_0x28b3d8['drawingInfo'][_0x31810b(0x150)][_0x31810b(0x153)]),_0x1d09c5['setStyle'](_0x331d0e);}),_0x43c819[_0x1f2047(0x140)](_0x1e7821));}});},'strategy':a51_0x530476(createXYZ({'tileSize':0x200}))}),_0x3b7f9d=new a51_0x4dce7c({'source':_0x43c819,'zIndex':_0x10ccb3[_0x56547b(0x13e)]});if(_0x28b3d8[_0x56547b(0x134)][_0x56547b(0x150)][_0x56547b(0x135)]==_0x56547b(0x14f)&&_0x28b3d8[_0x56547b(0x134)]['renderer'][_0x56547b(0x137)]){let _0x4a1b23=transformedEsriStyle(_0x28b3d8['drawingInfo'][_0x56547b(0x150)][_0x56547b(0x137)]);_0x3b7f9d[_0x56547b(0x12f)](_0x4a1b23);}return _0x3b7f9d;}[a51_0x2de187(0x14c)](_0x2d588b){const _0x576517=a51_0x2de187;this[_0x576517(0x139)][_0x576517(0x145)]=_0x2d588b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4081c1,_0x5f2934){const _0x19f3c9=a52_0x7cf6,_0x14e545=_0x4081c1();while(!![]){try{const _0x40ed9a=parseInt(_0x19f3c9(0x93))/0x1+-parseInt(_0x19f3c9(0x9a))/0x2*(-parseInt(_0x19f3c9(0x90))/0x3)+parseInt(_0x19f3c9(0x87))/0x4*(parseInt(_0x19f3c9(0x96))/0x5)+-parseInt(_0x19f3c9(0x92))/0x6+parseInt(_0x19f3c9(0x89))/0x7+-parseInt(_0x19f3c9(0x85))/0x8*(-parseInt(_0x19f3c9(0x83))/0x9)+-parseInt(_0x19f3c9(0x84))/0xa*(parseInt(_0x19f3c9(0x8e))/0xb);if(_0x40ed9a===_0x5f2934)break;else _0x14e545['push'](_0x14e545['shift']());}catch(_0x194f3e){_0x14e545['push'](_0x14e545['shift']());}}}(a52_0x2bc4,0xe0002));function a52_0x2bc4(){const _0x58409d=['wkid','cols','origin','1458TiKsAJ','419910WZaPkN','23760BDZkbO','spatialReference','14468sQQPfj','url','1310078nOVSZh','xmin','rows','lods','layerInfo','132gpBAcI','mapIndex','3YWKROb','fullExtent','8515686WGmTYu','986249kosUBP','initialExtent','xmax','1420blBkCj','push','ymax','projection','317816EqNLpO','resolution','tileInfo','ymin','opacity','length'];a52_0x2bc4=function(){return _0x58409d;};return a52_0x2bc4();}import a52_0x4cdb9b from'ol/layer/Tile';import a52_0x514c76 from'ol/source/XYZ';import a52_0x487e47 from'ol/tilegrid/TileGrid';function a52_0x7cf6(_0x27c227,_0x11ca01){const _0x2bc496=a52_0x2bc4();return a52_0x7cf6=function(_0x7cf6e,_0x59d696){_0x7cf6e=_0x7cf6e-0x7f;let _0x1347ee=_0x2bc496[_0x7cf6e];return _0x1347ee;},a52_0x7cf6(_0x27c227,_0x11ca01);}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a52_0x4cdb9b{constructor(_0x125875,_0x522ba3){const _0x33d7d9=a52_0x7cf6,_0x160979=_0x125875[_0x33d7d9(0x88)]?_0x125875[_0x33d7d9(0x88)]:'',_0xafdd01=appendPath(_0x160979,'/tile/{z}/{y}/{x}'),_0xe7cbd=[_0x522ba3[_0x33d7d9(0x94)][_0x33d7d9(0x8a)],_0x522ba3[_0x33d7d9(0x94)][_0x33d7d9(0x9d)],_0x522ba3[_0x33d7d9(0x94)][_0x33d7d9(0x95)],_0x522ba3[_0x33d7d9(0x94)][_0x33d7d9(0x98)]],_0x28290f=[_0x522ba3[_0x33d7d9(0x91)][_0x33d7d9(0x8a)],_0x522ba3[_0x33d7d9(0x91)][_0x33d7d9(0x9d)],_0x522ba3[_0x33d7d9(0x91)][_0x33d7d9(0x95)],_0x522ba3['fullExtent']['ymax']];let _0x48f638;_0x522ba3[_0x33d7d9(0x86)]['wkid']?_0x48f638=registerProj('EPSG:'+_0x522ba3[_0x33d7d9(0x86)][_0x33d7d9(0x80)],_0x28290f):_0x48f638=registerProj(_0x522ba3[_0x33d7d9(0x86)]['wkt'],_0x28290f);let _0x129b39=[];for(let _0x10b7d4=0x0,_0x14eb4b=_0x522ba3[_0x33d7d9(0x9c)]['lods'][_0x33d7d9(0x7f)];_0x10b7d4<_0x14eb4b;_0x10b7d4++){_0x129b39[_0x33d7d9(0x97)](_0x522ba3[_0x33d7d9(0x9c)][_0x33d7d9(0x8c)][_0x10b7d4][_0x33d7d9(0x9b)]);}super({'opacity':_0x125875[_0x33d7d9(0x9e)],'zIndex':_0x125875[_0x33d7d9(0x8f)],'maxResolution':_0x129b39[0x0]*0x2,'source':new a52_0x514c76({'url':_0xafdd01,'projection':_0x48f638,'crossOrigin':'anonymous','tileGrid':new a52_0x487e47({'extent':_0x28290f,'origin':[_0x522ba3['tileInfo']['origin']['x'],_0x522ba3['tileInfo'][_0x33d7d9(0x82)]['y']],'resolutions':_0x129b39,'tileSize':[_0x522ba3[_0x33d7d9(0x9c)][_0x33d7d9(0x8b)],_0x522ba3[_0x33d7d9(0x9c)][_0x33d7d9(0x81)]]})})}),this['id']=_0x125875['id'],this[_0x33d7d9(0x94)]=_0xe7cbd,this[_0x33d7d9(0x99)]=_0x48f638,this[_0x33d7d9(0x8d)]=_0x125875;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a53_0x68f5(_0x22f3e8,_0x41523e){const _0xedded0=a53_0xedde();return a53_0x68f5=function(_0x68f5fd,_0x58cefa){_0x68f5fd=_0x68f5fd-0x137;let _0x1b9daf=_0xedded0[_0x68f5fd];return _0x1b9daf;},a53_0x68f5(_0x22f3e8,_0x41523e);}const a53_0xe02181=a53_0x68f5;(function(_0x42834e,_0x152972){const _0x37180b=a53_0x68f5,_0x511830=_0x42834e();while(!![]){try{const _0x58570d=parseInt(_0x37180b(0x144))/0x1*(-parseInt(_0x37180b(0x153))/0x2)+-parseInt(_0x37180b(0x147))/0x3+parseInt(_0x37180b(0x14c))/0x4+parseInt(_0x37180b(0x13d))/0x5*(parseInt(_0x37180b(0x149))/0x6)+parseInt(_0x37180b(0x152))/0x7*(parseInt(_0x37180b(0x14d))/0x8)+parseInt(_0x37180b(0x139))/0x9*(-parseInt(_0x37180b(0x151))/0xa)+-parseInt(_0x37180b(0x138))/0xb*(-parseInt(_0x37180b(0x13b))/0xc);if(_0x58570d===_0x152972)break;else _0x511830['push'](_0x511830['shift']());}catch(_0x291a6a){_0x511830['push'](_0x511830['shift']());}}}(a53_0xedde,0x47666));import{ImageWMS as a53_0x2e936f}from'ol/source';import{Image as a53_0x286338}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a53_0xedde(){const _0x2bfa6e=['refresh','CQL_FILTER','getSource','sublayers','12stNqXp','mapIndex','url','921819WTfGjI','opacity','79518gFTLoP','EPSG:','wkid','87152SsYjOA','104bAZWPL','layerInfo','setFilter','join','389460csmujE','12082zHULyb','2794zjnRAP','loadFilter','348425svmQHO','63JFIKhQ','1.1.0','300XYCEQh','initialExtent','20leVWQO','projection','updateParams'];a53_0xedde=function(){return _0x2bfa6e;};return a53_0xedde();}export default class ArcgisWMSLayer extends a53_0x286338{constructor(_0xb96b21,_0x33e14e){const _0xfbceba=a53_0x68f5;var _0xfb866;let _0xe0fa59=registerProj(_0xfbceba(0x14a)+_0x33e14e[_0xfbceba(0x14b)],undefined),_0x2a11ca={'LAYERS':(_0xfb866=_0xb96b21[_0xfbceba(0x143)])===null||_0xfb866===void 0x0?void 0x0:_0xfb866[_0xfbceba(0x150)](','),'VERSION':_0xfbceba(0x13a)};_0xb96b21['loadFilter']&&(_0x2a11ca[_0xfbceba(0x141)]=_0xb96b21[_0xfbceba(0x137)]),super({'opacity':_0xb96b21[_0xfbceba(0x148)],'zIndex':_0xb96b21[_0xfbceba(0x145)],'source':new a53_0x2e936f({'crossOrigin':'anonymous','url':_0xb96b21[_0xfbceba(0x146)],'params':_0x2a11ca})}),this['id']=_0xb96b21['id'],this[_0xfbceba(0x13c)]=_0x33e14e['initExtent'],this[_0xfbceba(0x13e)]=_0xe0fa59,this[_0xfbceba(0x14e)]=_0xb96b21;}[a53_0xe02181(0x140)](){}[a53_0xe02181(0x14f)](_0x3e2e76){const _0x3fcf2f=a53_0xe02181;var _0x38023d;(_0x38023d=this[_0x3fcf2f(0x142)]())===null||_0x38023d===void 0x0?void 0x0:_0x38023d[_0x3fcf2f(0x13f)]({'CQL_FILTER':_0x3e2e76});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19425c,_0x5e97d6){const _0x545a1d=a54_0x4d4b,_0x15993e=_0x19425c();while(!![]){try{const _0x268823=parseInt(_0x545a1d(0x150))/0x1*(-parseInt(_0x545a1d(0x146))/0x2)+-parseInt(_0x545a1d(0x143))/0x3*(parseInt(_0x545a1d(0x158))/0x4)+-parseInt(_0x545a1d(0x154))/0x5+parseInt(_0x545a1d(0x155))/0x6*(parseInt(_0x545a1d(0x144))/0x7)+parseInt(_0x545a1d(0x148))/0x8*(parseInt(_0x545a1d(0x14e))/0x9)+-parseInt(_0x545a1d(0x139))/0xa*(parseInt(_0x545a1d(0x15b))/0xb)+parseInt(_0x545a1d(0x149))/0xc;if(_0x268823===_0x5e97d6)break;else _0x15993e['push'](_0x15993e['shift']());}catch(_0x5255cf){_0x15993e['push'](_0x15993e['shift']());}}}(a54_0x2d52,0xea4ac));import a54_0x442e15 from'ol/layer/Tile';import a54_0x2a6499,{optionsFromCapabilities}from'ol/source/WMTS.js';function a54_0x4d4b(_0x432e75,_0x438095){const _0x2d527d=a54_0x2d52();return a54_0x4d4b=function(_0x4d4b07,_0x4fbde6){_0x4d4b07=_0x4d4b07-0x139;let _0x2790d4=_0x2d527d[_0x4d4b07];return _0x2790d4;},a54_0x4d4b(_0x432e75,_0x438095);}import a54_0x5628b4 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{addArgument,getUrlParams}from'../utils/UrlUtil';export default class ArcgisWMTSLayer extends a54_0x442e15{constructor(_0x3427f1,_0x1e80b2){const _0x405591=a54_0x4d4b;var _0x37d887;let _0x3f70a2='';_0x3427f1['sublayers']&&_0x3427f1[_0x405591(0x151)][_0x405591(0x14a)]>0x0&&(_0x3f70a2=_0x3427f1[_0x405591(0x151)][_0x405591(0x13b)](','));const _0x47f80d=_0x405591(0x152)+_0x1e80b2[_0x405591(0x14d)];let _0x2b3559=registerProj(_0x47f80d);const _0x119560=optionsFromCapabilities(_0x1e80b2['sourceXml'],{'layer':(_0x37d887=_0x3427f1['sublayers'])===null||_0x37d887===void 0x0?void 0x0:_0x37d887[0x0],'matrixSet':_0x1e80b2['tileMatrixSet'],'format':'image/png'});let _0x1c5826=_0x119560['tileGrid'][_0x405591(0x157)][0x0];_0x1c5826[0x0]===0x5a&&_0x1c5826[0x1]===-0xb4&&(_0x1c5826=[_0x1c5826[0x1],_0x1c5826[0x0]]),super({'opacity':_0x3427f1['opacity'],'zIndex':_0x3427f1[_0x405591(0x13c)],'source':new a54_0x2a6499({'urls':_0x119560['urls'],'requestEncoding':_0x119560[_0x405591(0x142)],'layer':_0x119560[_0x405591(0x141)],'tileLoadFunction':function(_0x1ca064,_0x538d3f){const _0x5d9a67=_0x405591,_0xcdb86e=_0x3427f1[_0x5d9a67(0x14c)]?_0x3427f1['url']:'';let _0x152231=getUrlParams(_0xcdb86e);if((_0x152231===null||_0x152231===void 0x0?void 0x0:_0x152231[_0x5d9a67(0x14a)])>0x0)for(let _0x5afac8 of _0x152231){_0x538d3f=addArgument(_0x538d3f,_0x5afac8['name'],_0x5afac8[_0x5d9a67(0x13a)]);}let _0x5f1225=_0x538d3f[_0x5d9a67(0x13e)](_0x5d9a67(0x14b));_0x5f1225!==-0x1?_0x538d3f[_0x5d9a67(0x13e)](_0x5d9a67(0x145))===-0x1&&_0x538d3f[_0x5d9a67(0x13e)]('tk')===-0x1?_0x1ca064[_0x5d9a67(0x153)]()[_0x5d9a67(0x147)]=_0x538d3f[_0x5d9a67(0x14f)]('&','?'):_0x1ca064[_0x5d9a67(0x153)]()[_0x5d9a67(0x147)]=_0x538d3f:_0x1ca064[_0x5d9a67(0x153)]()[_0x5d9a67(0x147)]=_0x538d3f;},'matrixSet':_0x119560['matrixSet'],'format':_0x119560[_0x405591(0x140)],'projection':_0x119560['projection'],'tileGrid':new a54_0x5628b4({'origin':_0x1c5826,'resolutions':_0x119560[_0x405591(0x13f)][_0x405591(0x15d)](),'matrixIds':_0x119560[_0x405591(0x13f)]['getMatrixIds'](),'extent':_0x1e80b2[_0x405591(0x15a)]}),'style':_0x1e80b2[_0x405591(0x159)],'wrapX':!![]})}),this['id']=_0x3427f1['id'],this[_0x405591(0x13d)]=_0x1e80b2['boundingBoxExtent'],this[_0x405591(0x15c)]=_0x2b3559,this[_0x405591(0x156)]=_0x3427f1;}}function a54_0x2d52(){const _0x24215d=['sublayers','EPSG:','getImage','6903595LksaBj','132510lNEIOq','layerInfo','origins_','1091228LJxuhi','style','boundingBoxExtent','11qIbjEG','projection','getResolutions','6723170wTJhOO','value','join','mapIndex','initialExtent','indexOf','tileGrid','format','layer','requestEncoding','18aPfnmK','462nDoQKO','token','106774FkqWow','src','8gceueh','48901476JkFObD','length','?http','url','wkid','3582837BjwaYc','replace','24FLvHKG'];a54_0x2d52=function(){return _0x24215d;};return a54_0x2d52();}
|