ym-gis-2d 1.0.21 → 1.0.23
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/LegendControl.js.map +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/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.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.js +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 a35_0x41d634=a35_0x4938;function a35_0x3e7f(){const _0x5658bc=['addFeatures','getLineTempLayer','getLayerById','tag','2127324kOGbuT','kmlImport','tempLayer','removeFeature','2996184RHUPtW','1060350MLFRJu','setGeometry','getSelectedFeatures','getTempSelectedFeatures','layerInfo','9094LaPSjl','push','filter','addLayer','322WjmbJM','3486WOaLyA','494591KkymgK','readFeature','flash_layer','getPolygonTempLayer','getSource','map','11156193yIvcjC','setVisible','flashGeometrys','clearTempFeatures','flashFeatures','setStyle','363VvznLw','length','removeLayer','geometryType','layerId','features','forEach','getVisible'];a35_0x3e7f=function(){return _0x5658bc;};return a35_0x3e7f();}(function(_0x242f5c,_0x4b11cf){const _0x353a3b=a35_0x4938,_0x26856a=_0x242f5c();while(!![]){try{const _0x4b1803=-parseInt(_0x353a3b(0x16a))/0x1+parseInt(_0x353a3b(0x164))/0x2*(-parseInt(_0x353a3b(0x176))/0x3)+-parseInt(_0x353a3b(0x182))/0x4+parseInt(_0x353a3b(0x15f))/0x5+parseInt(_0x353a3b(0x169))/0x6*(parseInt(_0x353a3b(0x168))/0x7)+parseInt(_0x353a3b(0x15e))/0x8+parseInt(_0x353a3b(0x170))/0x9;if(_0x4b1803===_0x4b11cf)break;else _0x26856a['push'](_0x26856a['shift']());}catch(_0x18a5ed){_0x26856a['push'](_0x26856a['shift']());}}}(a35_0x3e7f,0x4373f));import a35_0x5e568c from'../entity/Feature';import a35_0x486737 from'ol/layer/Vector';import a35_0x5300df from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a35_0x45400a from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';function a35_0x4938(_0x5b0f72,_0x2fdb6d){const _0x3e7f67=a35_0x3e7f();return a35_0x4938=function(_0x4938ac,_0x44f702){_0x4938ac=_0x4938ac-0x15c;let _0x51a240=_0x3e7f67[_0x4938ac];return _0x51a240;},a35_0x4938(_0x5b0f72,_0x2fdb6d);}export default class FeatureManager{constructor(_0x2c1fc5){this['map']=_0x2c1fc5;}[a35_0x41d634(0x161)](_0x57c98d,_0x2e761b){const _0x2b9002=a35_0x41d634;if(_0x57c98d){const _0x5574b5=this[_0x2b9002(0x16f)][_0x2b9002(0x180)](_0x57c98d);if(!_0x5574b5||!_0x5574b5[_0x2b9002(0x163)])return;let _0x4684e4;switch(_0x5574b5['layerInfo'][_0x2b9002(0x179)]){case 0x1:_0x4684e4=this['getTempSelectedFeatures'](this[_0x2b9002(0x16f)]['getPointTempLayer'](),_0x57c98d,_0x2e761b);break;case 0x2:_0x4684e4=this[_0x2b9002(0x162)](this[_0x2b9002(0x16f)][_0x2b9002(0x17f)](),_0x57c98d,_0x2e761b);break;case 0x3:_0x4684e4=this['getTempSelectedFeatures'](this['map']['getPolygonTempLayer'](),_0x57c98d,_0x2e761b);break;default:break;}return _0x4684e4;}else{const _0x37a81=this[_0x2b9002(0x162)](this[_0x2b9002(0x16f)]['getPointTempLayer'](),_0x57c98d,_0x2e761b),_0x350eee=this[_0x2b9002(0x162)](this[_0x2b9002(0x16f)][_0x2b9002(0x17f)](),_0x57c98d,_0x2e761b),_0x2a1780=this[_0x2b9002(0x162)](this[_0x2b9002(0x16f)][_0x2b9002(0x16d)](),_0x57c98d,_0x2e761b);let _0x115dec=[];return _0x37a81&&(_0x115dec=[..._0x115dec,..._0x37a81]),_0x350eee&&(_0x115dec=[..._0x115dec,..._0x350eee]),_0x2a1780&&(_0x115dec=[..._0x115dec,..._0x2a1780]),_0x115dec;}}[a35_0x41d634(0x162)](_0x349964,_0x585341,_0x1defa2){const _0x268baa=a35_0x41d634;var _0x4068b3;let _0x150a13=(_0x4068b3=_0x349964[_0x268baa(0x16e)]())===null||_0x4068b3===void 0x0?void 0x0:_0x4068b3['getFeatures']();if(!_0x150a13)return;_0x150a13[_0x268baa(0x17c)]((_0x42cf15,_0x7a0efe,_0x1120e3)=>{_0x42cf15['tempLayer']=_0x349964;});_0x1defa2!=undefined&&(_0x150a13=_0x150a13[_0x268baa(0x166)](_0x9ea2d4=>_0x9ea2d4['isSelected']==_0x1defa2));if(_0x585341)return _0x150a13[_0x268baa(0x166)](_0x5ada05=>_0x5ada05[_0x268baa(0x17a)]==_0x585341);return _0x150a13;}[a35_0x41d634(0x174)](_0x4fc046,_0x354854=0x3){const _0x13659a=a35_0x41d634;var _0x19b7cb;let _0x47de93=new a35_0x486737({'zIndex':0x270f,'source':new a35_0x5300df()});_0x47de93['id']=_0x13659a(0x16c),this[_0x13659a(0x16f)][_0x13659a(0x167)](_0x47de93,![]),(_0x19b7cb=_0x47de93[_0x13659a(0x16e)]())===null||_0x19b7cb===void 0x0?void 0x0:_0x19b7cb['addFeatures'](_0x4fc046);let _0x409533=0x0,_0xc25603=setInterval(()=>{const _0x3daf2e=_0x13659a;if(_0x409533===_0x354854){_0xc25603&&clearInterval(_0xc25603);const _0x56d109=this['map'][_0x3daf2e(0x180)](_0x47de93['id']);_0x56d109&&this['map'][_0x3daf2e(0x178)](_0x56d109);return;}if(_0x47de93[_0x3daf2e(0x17d)]())_0x47de93[_0x3daf2e(0x171)](![]);else _0x47de93[_0x3daf2e(0x171)](!![]);_0x409533++;},0x190);}[a35_0x41d634(0x172)](_0x25f106,_0x4932d6=0x3){const _0x4be60c=a35_0x41d634;var _0x180fb4;let _0x271ced=new a35_0x486737({'zIndex':0x270f,'source':new a35_0x5300df()});_0x271ced['id']=_0x4be60c(0x16c),this[_0x4be60c(0x16f)][_0x4be60c(0x167)](_0x271ced,![]);let _0x367613=[];_0x25f106[_0x4be60c(0x17c)](_0x851b19=>{const _0x3d67d8=_0x4be60c;let _0x5d3ab0=new a35_0x5e568c();const _0x190cb5=getSelectStyle(_0x851b19['getType']());_0x5d3ab0[_0x3d67d8(0x175)](_0x190cb5),_0x5d3ab0[_0x3d67d8(0x160)](_0x851b19),_0x367613['push'](_0x5d3ab0);}),(_0x180fb4=_0x271ced[_0x4be60c(0x16e)]())===null||_0x180fb4===void 0x0?void 0x0:_0x180fb4[_0x4be60c(0x17e)](_0x367613);let _0x3ae104=0x0,_0x5f1640=setInterval(()=>{const _0x277033=_0x4be60c;if(_0x3ae104===_0x4932d6){_0x5f1640&&clearInterval(_0x5f1640);const _0x232e95=this[_0x277033(0x16f)][_0x277033(0x180)](_0x271ced['id']);_0x232e95&&this[_0x277033(0x16f)][_0x277033(0x178)](_0x232e95);return;}if(_0x271ced[_0x277033(0x17d)]())_0x271ced[_0x277033(0x171)](![]);else _0x271ced[_0x277033(0x171)](!![]);_0x3ae104++;},0x190);}async[a35_0x41d634(0x183)](_0x541ac7){const _0x1a5c26=a35_0x41d634;let _0x362cac=await toGeoJSON(_0x541ac7,null);if(!_0x362cac)return[];let _0x26b739=[];var _0x37e6e0=new a35_0x45400a();return _0x362cac[_0x1a5c26(0x17b)]['forEach'](_0x1b08b8=>{const _0x394eb8=_0x1a5c26;_0x26b739[_0x394eb8(0x165)](_0x37e6e0[_0x394eb8(0x16b)](_0x1b08b8,null));}),_0x26b739;}[a35_0x41d634(0x173)](_0x15f5a1){const _0x39e515=a35_0x41d634,_0x3759e3=this[_0x39e515(0x161)]();if(_0x3759e3&&_0x3759e3[_0x39e515(0x177)]>0x0)for(const _0x71f06e of _0x3759e3){if(_0x71f06e&&_0x71f06e[_0x39e515(0x15c)]){const _0x190cf0=_0x71f06e[_0x39e515(0x15c)][_0x39e515(0x16e)]();_0x190cf0&&(_0x15f5a1!=undefined?_0x71f06e[_0x39e515(0x181)]==_0x15f5a1&&_0x190cf0[_0x39e515(0x15d)](_0x71f06e):_0x190cf0['removeFeature'](_0x71f06e));}}}}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a36_0x7c7a(){var _0x481146=['2292880mGmUtL','6Exffzt','40shNItU','438BdMvaq','1647102nvfJGG','69651JQDdxA','2592368sZCKrD','320TZOnlw','1627297ocPrKK','14083311nocpNR','10878HFoQfs'];a36_0x7c7a=function(){return _0x481146;};return a36_0x7c7a();}function a36_0x29c3(_0x3b4d11,_0x21c8a0){var _0x7c7ab3=a36_0x7c7a();return a36_0x29c3=function(_0x29c3dc,_0x198420){_0x29c3dc=_0x29c3dc-0x15f;var _0x46cab8=_0x7c7ab3[_0x29c3dc];return _0x46cab8;},a36_0x29c3(_0x3b4d11,_0x21c8a0);}(function(_0xb10833,_0x4857a7){var _0x45c7a3=a36_0x29c3,_0x20dc54=_0xb10833();while(!![]){try{var _0x8bd62e=-parseInt(_0x45c7a3(0x162))/0x1+parseInt(_0x45c7a3(0x161))/0x2*(-parseInt(_0x45c7a3(0x168))/0x3)+parseInt(_0x45c7a3(0x164))/0x4+parseInt(_0x45c7a3(0x169))/0x5*(parseInt(_0x45c7a3(0x15f))/0x6)+parseInt(_0x45c7a3(0x166))/0x7*(parseInt(_0x45c7a3(0x160))/0x8)+-parseInt(_0x45c7a3(0x163))/0x9*(parseInt(_0x45c7a3(0x165))/0xa)+parseInt(_0x45c7a3(0x167))/0xb;if(_0x8bd62e===_0x4857a7)break;else _0x20dc54['push'](_0x20dc54['shift']());}catch(_0x3260a9){_0x20dc54['push'](_0x20dc54['shift']());}}}(a36_0x7c7a,0xd2140));import a36_0x592628 from'./mapView/Map';export{a36_0x592628 as Map2D};
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37_0x3adde6=a37_0x5e31;(function(_0x3d9366,_0x2b10cf){const _0x5b3ea3=a37_0x5e31,_0x16998d=_0x3d9366();while(!![]){try{const _0x3ed4b3=parseInt(_0x5b3ea3(0x17e))/0x1*(-parseInt(_0x5b3ea3(0x192))/0x2)+-parseInt(_0x5b3ea3(0x174))/0x3*(parseInt(_0x5b3ea3(0x178))/0x4)+-parseInt(_0x5b3ea3(0x189))/0x5+-parseInt(_0x5b3ea3(0x1b8))/0x6+parseInt(_0x5b3ea3(0x180))/0x7+parseInt(_0x5b3ea3(0x1b0))/0x8+parseInt(_0x5b3ea3(0x16f))/0x9*(parseInt(_0x5b3ea3(0x16e))/0xa);if(_0x3ed4b3===_0x2b10cf)break;else _0x16998d['push'](_0x16998d['shift']());}catch(_0x3cb1d){_0x16998d['push'](_0x16998d['shift']());}}}(a37_0x4cd9,0x445f0));import a37_0x411bed from'ol/events/Event';import a37_0x38a6f1 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a37_0x389d5a from'ol/Feature';import a37_0x66f085,{createEditingStyle}from'ol/style/Style';import a37_0x2ae5a7 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';function a37_0x4cd9(){const _0x3eecd3=['addFeature','feature','_tipStyle','getMap','coordinate','单击增加点,右击删除点双击完成绘制','_drawingCoordinates','getOverlay','getActive','623136VhVXmp','length','rectangle','_fixPoint','DRAWABORT','DRAWMOVING','MAX_VALUE','Rectangle','1672086sNapUC','drawmoving','clear','addChangeListener','Ellipse','atFinish_','unInternal','createMultiPointFeature','updateTip_','addPoint','pointermove','_source','getGeometry','_showTip','setGeometry','getProjection','tipText','_overlay','12px\x20Calibre,sans-serif','getPixelFromCoordinate','rgba(255,\x20255,\x20255,\x201)','pixel','_style','260FrjbVq','337401nnlZDe','finishDrawing','onceInternal','getSource','_type','66225FvPXEx','单击结束绘制,右击删除点','abortDrawing','originalEvent','48KNMkxS','handleMoveEvent','startDrawing_','wrapX','drawstart','单击开始绘制','6BuscwW','dispatchEvent','1760479oCzHim','单击拖动绘制','ACTIVE','getType','once','left','setStyle','indexOf','showTip','2196480VRzOWJ','minPoint','abortDrawing_','drawaddpoint','revert','preventDefault','onInternal','type','DRAWADDPOINT','13726tJmeEd','getView','getCode','_sketchFeature','_tipFeature','push','updateState_','_features','buildDrawingFeature','handleDownEvent','DRAWSTART','_snapTolerance','projection','drawend','sqrt','_minPoints','_tipOverlay','coordinates','source','updateSketchFeatures_','_isStayDraw'];a37_0x4cd9=function(){return _0x3eecd3;};return a37_0x4cd9();}function a37_0x5e31(_0x49f00f,_0x400d4a){const _0x4cd9b5=a37_0x4cd9();return a37_0x5e31=function(_0x5e317e,_0x1dfd6a){_0x5e317e=_0x5e317e-0x163;let _0x3a240f=_0x4cd9b5[_0x5e317e];return _0x3a240f;},a37_0x5e31(_0x49f00f,_0x400d4a);}import a37_0x418c54 from'ol/style/Text';import a37_0x39972c from'ol/style/Fill';import a37_0xef4da8 from'ol/interaction/Property';import a37_0x2fbffd from'ol/layer/Vector';import a37_0x14071f from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a37_0x3adde6(0x17c),'DRAWEND':a37_0x3adde6(0x19f),'DRAWABORT':'drawabort','DRAWADDPOINT':a37_0x3adde6(0x18c),'DRAWMOVING':a37_0x3adde6(0x1b9)};export class DrawEvent extends a37_0x411bed{constructor(_0x4e99b2,_0x56942b,_0x2e63cb){const _0xafc6c5=a37_0x3adde6;super(_0x4e99b2),this[_0xafc6c5(0x1a8)]=_0x56942b,this[_0xafc6c5(0x1a3)]=_0x2e63cb;}}export class ShEvent extends a37_0x411bed{constructor(_0x2f563b,_0x2a69ca,_0x16ab9b,_0x438b63,_0x5e6a63){const _0x4ed424=a37_0x3adde6;super(_0x2f563b),this[_0x4ed424(0x19e)]=_0x5e6a63,this[_0x4ed424(0x190)]=_0x2a69ca,this[_0x4ed424(0x1ab)]=_0x16ab9b,this[_0x4ed424(0x1a3)]=_0x438b63;}}export default class Draw extends a37_0x38a6f1{constructor(_0x6aabd8,_0x3f243c){const _0x1fc61d=a37_0x3adde6,_0x3d7671=_0x3f243c?_0x3f243c:{};!_0x3d7671['stopDown']&&(_0x3d7671['stopDown']=![]);super(_0x3f243c),this['on']=this[_0x1fc61d(0x18f)],this[_0x1fc61d(0x184)]=this[_0x1fc61d(0x171)],this['un']=this[_0x1fc61d(0x1be)],this['_isStayDraw']=![],this[_0x1fc61d(0x173)]=_0x6aabd8,this[_0x1fc61d(0x16d)]=_0x3f243c===null||_0x3f243c===void 0x0?void 0x0:_0x3f243c['style'],this['_source']=_0x3f243c===null||_0x3f243c===void 0x0?void 0x0:_0x3f243c[_0x1fc61d(0x1a4)],this[_0x1fc61d(0x199)]=_0x3f243c===null||_0x3f243c===void 0x0?void 0x0:_0x3f243c['features'];const _0x4cb99b=getPlotCount(this[_0x1fc61d(0x173)]);this['_minPoints']=_0x4cb99b[_0x1fc61d(0x18a)],this[_0x1fc61d(0x1b3)]=_0x4cb99b['fixPoint'],this['tipText']=_0x3f243c===null||_0x3f243c===void 0x0?void 0x0:_0x3f243c['tipText'],this[_0x1fc61d(0x164)]=(_0x3f243c===null||_0x3f243c===void 0x0?void 0x0:_0x3f243c[_0x1fc61d(0x188)])==![]?![]:!![],this[_0x1fc61d(0x19d)]=_0x3d7671['snapTolerance']?_0x3d7671['snapTolerance']:0x6,this['_tipFeature']=new a37_0x389d5a(),this[_0x1fc61d(0x1a9)]=new a37_0x66f085({'text':new a37_0x418c54({'font':_0x1fc61d(0x169),'fill':new a37_0x39972c({'color':_0x1fc61d(0x16b)}),'backgroundFill':new a37_0x39972c({'color':'rgba(0,\x200,\x200,\x200.4)'}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x1fc61d(0x185),'offsetX':0xf})}),this[_0x1fc61d(0x1ad)]=[],this[_0x1fc61d(0x1a2)]=new a37_0x2fbffd({'source':new a37_0x2ae5a7({'useSpatialIndex':![],'wrapX':(_0x3f243c===null||_0x3f243c===void 0x0?void 0x0:_0x3f243c['wrapX'])?_0x3f243c[_0x1fc61d(0x17b)]:![]})}),this['_overlay']=new a37_0x2fbffd({'source':new a37_0x2ae5a7({'useSpatialIndex':![],'wrapX':(_0x3f243c===null||_0x3f243c===void 0x0?void 0x0:_0x3f243c[_0x1fc61d(0x17b)])?_0x3f243c['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0x1fc61d(0x1bb)](a37_0xef4da8[_0x1fc61d(0x182)],this[_0x1fc61d(0x198)]);}['updateState_'](){const _0x4a1bd9=a37_0x3adde6,_0x229ccd=this[_0x4a1bd9(0x1aa)](),_0xcb3678=this[_0x4a1bd9(0x1af)]();(!_0x229ccd||!_0xcb3678)&&this[_0x4a1bd9(0x176)](),this['_overlay']['setMap'](_0xcb3678?_0x229ccd:null),this['_tipOverlay']['setMap'](_0xcb3678?_0x229ccd:null);}['setMap'](_0x34fa17){const _0x2e3f4c=a37_0x3adde6;super['setMap'](_0x34fa17),this[_0x2e3f4c(0x198)]();}[a37_0x3adde6(0x186)](_0x539f26){this['_style']=_0x539f26?_0x539f26:{};}[a37_0x3adde6(0x1ae)](){const _0x2c280d=a37_0x3adde6;return this[_0x2c280d(0x168)];}[a37_0x3adde6(0x19b)](_0x14d504){const _0x5e9dfc=a37_0x3adde6;if(_0x14d504['originalEvent']['button']===0x2)return _0x14d504[_0x5e9dfc(0x177)][_0x5e9dfc(0x18e)](),this[_0x5e9dfc(0x18d)](),this['handleMoveEvent'](_0x14d504),![];return!![];}['handleUpEvent'](_0x21223d){const _0x2b541f=a37_0x3adde6;var _0xae1eb1,_0x390988;if(this[_0x2b541f(0x173)]==_0x2b541f(0x1b2)&&this[_0x2b541f(0x1ad)][_0x2b541f(0x1b1)]<0x1)return this[_0x2b541f(0x17f)](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x21223d['coordinate']])),![];if(!this[_0x2b541f(0x1a6)])this[_0x2b541f(0x17a)](_0x21223d[_0x2b541f(0x1ab)]),this[_0x2b541f(0x17f)](new ShEvent(DrawEventType[_0x2b541f(0x191)],this[_0x2b541f(0x173)],_0x21223d[_0x2b541f(0x1ab)],this[_0x2b541f(0x1ad)],(_0xae1eb1=this[_0x2b541f(0x1aa)]())===null||_0xae1eb1===void 0x0?void 0x0:_0xae1eb1[_0x2b541f(0x193)]()[_0x2b541f(0x166)]()['getCode']())),this[_0x2b541f(0x173)]=='point'&&this[_0x2b541f(0x170)]();else{if(this[_0x2b541f(0x1ad)]&&this[_0x2b541f(0x1ad)][_0x2b541f(0x1b1)]>0x0){if(this[_0x2b541f(0x1bd)](_0x21223d[_0x2b541f(0x16c)]))return this[_0x2b541f(0x170)](),_0x21223d[_0x2b541f(0x18e)](),![];let _0x1b2801=this['_drawingCoordinates'][_0x2b541f(0x1b1)]+0x1;_0x1b2801<=this['_fixPoint']&&this[_0x2b541f(0x1c1)](_0x21223d[_0x2b541f(0x1ab)]),this[_0x2b541f(0x17f)](new ShEvent(DrawEventType[_0x2b541f(0x191)],this['_type'],_0x21223d[_0x2b541f(0x1ab)],this[_0x2b541f(0x1ad)],(_0x390988=this[_0x2b541f(0x1aa)]())===null||_0x390988===void 0x0?void 0x0:_0x390988['getView']()[_0x2b541f(0x166)]()[_0x2b541f(0x194)]())),_0x1b2801>=this[_0x2b541f(0x1a1)]&&this[_0x2b541f(0x19a)](this[_0x2b541f(0x1ad)]),_0x1b2801===this[_0x2b541f(0x1b3)]&&this[_0x2b541f(0x170)]();}}return _0x21223d['preventDefault'](),![];}['handleDragEvent'](_0x87dc78){const _0x157110=a37_0x3adde6;var _0x3048f8;if(this['_type']==_0x157110(0x1b2)&&_0x87dc78['originalEvent'][_0x157110(0x190)]==_0x157110(0x1c2)){if(!this[_0x157110(0x1a6)]){this[_0x157110(0x17a)](_0x87dc78[_0x157110(0x1ab)]),this[_0x157110(0x17f)](new ShEvent(DrawEventType[_0x157110(0x191)],this[_0x157110(0x173)],_0x87dc78[_0x157110(0x1ab)],this[_0x157110(0x1ad)],(_0x3048f8=this['getMap']())===null||_0x3048f8===void 0x0?void 0x0:_0x3048f8[_0x157110(0x193)]()[_0x157110(0x166)]()[_0x157110(0x194)]()));return;}let _0x16458d=[...this[_0x157110(0x1ad)],_0x87dc78[_0x157110(0x1ab)]];this[_0x157110(0x19a)](_0x16458d),this[_0x157110(0x17f)](new DrawEvent(DrawEventType['DRAWMOVING'],this['_sketchFeature'],this[_0x157110(0x1ad)]));}}[a37_0x3adde6(0x179)](_0x24ea4e){const _0x2e5926=a37_0x3adde6;var _0x2d9a7b,_0x1f5c8e,_0x241177;let _0x38c283='';this['_type']==_0x2e5926(0x1c2)&&(this[_0x2e5926(0x17a)](_0x24ea4e[_0x2e5926(0x1ab)]),this[_0x2e5926(0x17f)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x2e5926(0x173)],_0x24ea4e[_0x2e5926(0x1ab)],this[_0x2e5926(0x1ad)],(_0x2d9a7b=this['getMap']())===null||_0x2d9a7b===void 0x0?void 0x0:_0x2d9a7b['getView']()[_0x2e5926(0x166)]()[_0x2e5926(0x194)]())),this['finishDrawing']());!this[_0x2e5926(0x1a6)]?_0x38c283=this[_0x2e5926(0x173)]==_0x2e5926(0x1b2)?_0x2e5926(0x181):_0x2e5926(0x17d):(_0x38c283='单击增加点,右击删除点',((_0x1f5c8e=this[_0x2e5926(0x1ad)])===null||_0x1f5c8e===void 0x0?void 0x0:_0x1f5c8e[_0x2e5926(0x1b1)])===this['_fixPoint']-0x1&&(_0x38c283=_0x2e5926(0x175)),((_0x241177=this['_drawingCoordinates'])===null||_0x241177===void 0x0?void 0x0:_0x241177[_0x2e5926(0x1b1)])>=this[_0x2e5926(0x1a1)]&&this[_0x2e5926(0x1b3)]===Number[_0x2e5926(0x1b6)]&&(_0x38c283=_0x2e5926(0x1ac)));this[_0x2e5926(0x167)]!=undefined&&(_0x38c283=this[_0x2e5926(0x167)]);this[_0x2e5926(0x1c0)](_0x24ea4e[_0x2e5926(0x1ab)],_0x38c283);if(this[_0x2e5926(0x1a6)]&&this[_0x2e5926(0x173)]!='rectangle'){let _0x3809e4=[...this[_0x2e5926(0x1ad)],_0x24ea4e['coordinate']];this[_0x2e5926(0x19a)](_0x3809e4),this[_0x2e5926(0x17f)](new DrawEvent(DrawEventType[_0x2e5926(0x1b5)],this['_sketchFeature'],this[_0x2e5926(0x1ad)]));}}[a37_0x3adde6(0x1bd)](_0x5c1fb0){const _0x1d5c21=a37_0x3adde6;var _0x1d75cf;let _0x1106e3=![],_0x5c0d71=this[_0x1d5c21(0x1ad)][_0x1d5c21(0x1b1)];if(_0x5c0d71>this[_0x1d5c21(0x1a1)]&&this[_0x1d5c21(0x1b3)]===Number[_0x1d5c21(0x1b6)]){const _0x485a8c=this[_0x1d5c21(0x1ad)][this[_0x1d5c21(0x1ad)][_0x1d5c21(0x1b1)]-0x1],_0x2fc963=(_0x1d75cf=this[_0x1d5c21(0x1aa)]())===null||_0x1d75cf===void 0x0?void 0x0:_0x1d75cf[_0x1d5c21(0x16a)](_0x485a8c),_0x138782=_0x5c1fb0[0x0]-(_0x2fc963?_0x2fc963[0x0]:0x0),_0x4f504e=_0x5c1fb0[0x1]-(_0x2fc963?_0x2fc963[0x1]:0x0);_0x1106e3=Math[_0x1d5c21(0x1a0)](_0x138782*_0x138782+_0x4f504e*_0x4f504e)<=this[_0x1d5c21(0x19d)];}return _0x1106e3;}[a37_0x3adde6(0x17a)](_0x52e8ee){const _0x539cd8=a37_0x3adde6;this[_0x539cd8(0x1a6)]=!![],this[_0x539cd8(0x1ad)]=[_0x52e8ee['slice']()],this[_0x539cd8(0x195)]=this[_0x539cd8(0x1bf)](),this[_0x539cd8(0x1a5)](),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x539cd8(0x19c)],this[_0x539cd8(0x195)],this['_drawingCoordinates']));}[a37_0x3adde6(0x170)](){const _0x11bfd3=a37_0x3adde6;if(this['_drawingCoordinates']['length']>this['_minPoints']){this['buildDrawingFeature'](this[_0x11bfd3(0x1ad)]);let _0x48743e=this[_0x11bfd3(0x1ad)];const _0x5826dc=this[_0x11bfd3(0x18b)]();if(!_0x5826dc)return;this[_0x11bfd3(0x17f)](new DrawEvent(DrawEventType['DRAWEND'],_0x5826dc,_0x48743e)),this[_0x11bfd3(0x199)]&&this['_features'][_0x11bfd3(0x197)](_0x5826dc),this[_0x11bfd3(0x1c3)]&&this[_0x11bfd3(0x1c3)]['addFeature'](_0x5826dc);}}[a37_0x3adde6(0x1c1)](_0x465de5){const _0x3fd908=a37_0x3adde6;this[_0x3fd908(0x1ad)][_0x3fd908(0x197)](_0x465de5),this[_0x3fd908(0x195)]=this[_0x3fd908(0x1bf)](),this[_0x3fd908(0x1a5)]();}[a37_0x3adde6(0x1bf)](){const _0x27420b=a37_0x3adde6,_0x3f6a09=new MultiPoint(this[_0x27420b(0x1ad)]);let _0x32e75b=new a37_0x389d5a();return _0x32e75b[_0x27420b(0x165)](_0x3f6a09),_0x32e75b;}[a37_0x3adde6(0x18b)](){const _0x212d5e=a37_0x3adde6;var _0x190bbe,_0x57c6a7;this['_isStayDraw']=![];const _0x5f1fb6=this[_0x212d5e(0x195)];return this['_sketchFeature']=undefined,this['_drawingCoordinates']=[],(_0x190bbe=this[_0x212d5e(0x168)]['getSource']())===null||_0x190bbe===void 0x0?void 0x0:_0x190bbe['clear'](!![]),(_0x57c6a7=this[_0x212d5e(0x1a2)][_0x212d5e(0x172)]())===null||_0x57c6a7===void 0x0?void 0x0:_0x57c6a7[_0x212d5e(0x1ba)](!![]),_0x5f1fb6;}['abortDrawing'](){const _0x3fa13b=a37_0x3adde6,_0x4cc362=this[_0x3fa13b(0x18b)]();_0x4cc362&&this['dispatchEvent'](new DrawEvent(DrawEventType[_0x3fa13b(0x1b4)],_0x4cc362,this[_0x3fa13b(0x1ad)]));}[a37_0x3adde6(0x19a)](_0x4f97c8){const _0x61c939=a37_0x3adde6;this['_sketchFeature']=new a37_0x389d5a();let _0x582566=createPlot(this['_type'],_0x4f97c8);if(!_0x582566)return;this[_0x61c939(0x195)][_0x61c939(0x165)](_0x582566);let _0x43aa33=[a37_0x14071f['Circle'],a37_0x14071f['Ellipsoid'],a37_0x14071f[_0x61c939(0x1bc)]];if(_0x43aa33[_0x61c939(0x187)](this[_0x61c939(0x173)])>-0x1&&this[_0x61c939(0x16d)]){}const _0x5358b6=this[_0x61c939(0x1aa)]();this[_0x61c939(0x195)][_0x61c939(0x186)](getStyle(this[_0x61c939(0x173)],this[_0x61c939(0x16d)],this['getMap']())),this[_0x61c939(0x1a5)]();}['updateSketchFeatures_'](){const _0x3d2c7d=a37_0x3adde6,_0x224871=this[_0x3d2c7d(0x168)][_0x3d2c7d(0x172)]();_0x224871&&this['_sketchFeature']&&(_0x224871[_0x3d2c7d(0x1ba)](!![]),_0x224871[_0x3d2c7d(0x1a7)](this[_0x3d2c7d(0x195)]));}[a37_0x3adde6(0x18d)](){const _0x198cea=a37_0x3adde6;if(this[_0x198cea(0x1a6)]){if(this[_0x198cea(0x1ad)]&&this[_0x198cea(0x1ad)][_0x198cea(0x1b1)]>0x0){const _0x366c2e=this[_0x198cea(0x168)][_0x198cea(0x172)]();_0x366c2e===null||_0x366c2e===void 0x0?void 0x0:_0x366c2e[_0x198cea(0x1ba)](!![]),this[_0x198cea(0x1ad)]['pop'](),this[_0x198cea(0x1ad)][_0x198cea(0x1b1)]>=this[_0x198cea(0x1a1)]&&this[_0x198cea(0x19a)](this[_0x198cea(0x1ad)]),this[_0x198cea(0x1ad)][_0x198cea(0x1b1)]===0x0&&(this['_isStayDraw']=![]);}}}[a37_0x3adde6(0x1c0)](_0x10ab47,_0x17435c){const _0x176a1f=a37_0x3adde6;var _0x26f83b,_0x1af40c,_0x35e880,_0xe5aaf0;if(!this['_showTip'])return;const _0x9c6ea6=this[_0x176a1f(0x1a2)]['getSource']();_0x9c6ea6===null||_0x9c6ea6===void 0x0?void 0x0:_0x9c6ea6[_0x176a1f(0x1ba)](!![]),(_0x26f83b=this[_0x176a1f(0x196)])===null||_0x26f83b===void 0x0?void 0x0:_0x26f83b['setGeometry'](new Point(_0x10ab47)),(_0x35e880=(_0x1af40c=this['_tipStyle'])===null||_0x1af40c===void 0x0?void 0x0:_0x1af40c['getText']())===null||_0x35e880===void 0x0?void 0x0:_0x35e880['setText'](_0x17435c),(_0xe5aaf0=this['_tipFeature'])===null||_0xe5aaf0===void 0x0?void 0x0:_0xe5aaf0[_0x176a1f(0x186)](this[_0x176a1f(0x1a9)]),this[_0x176a1f(0x196)]&&(_0x9c6ea6===null||_0x9c6ea6===void 0x0?void 0x0:_0x9c6ea6[_0x176a1f(0x1a7)](this[_0x176a1f(0x196)]));}}function getDefaultStyleFunction(){const _0x135a14=createEditingStyle();return function(_0x5a871d,_0x34cb24){const _0x585bfa=a37_0x5e31,_0x29c7bd=_0x135a14[_0x5a871d[_0x585bfa(0x163)]()[_0x585bfa(0x183)]()];if(_0x29c7bd&&_0x585bfa(0x1b7)==_0x5a871d[_0x585bfa(0x163)]()['getType']()){}};}
|
|
1
|
+
const a37_0x12308e=a37_0x505a;(function(_0x343987,_0xc27c54){const _0x3722e8=a37_0x505a,_0x37ca3a=_0x343987();while(!![]){try{const _0x26e58e=parseInt(_0x3722e8(0x14d))/0x1*(-parseInt(_0x3722e8(0x176))/0x2)+parseInt(_0x3722e8(0x17e))/0x3+-parseInt(_0x3722e8(0x1a1))/0x4+parseInt(_0x3722e8(0x19a))/0x5+-parseInt(_0x3722e8(0x16d))/0x6+-parseInt(_0x3722e8(0x196))/0x7*(parseInt(_0x3722e8(0x15b))/0x8)+parseInt(_0x3722e8(0x19f))/0x9;if(_0x26e58e===_0xc27c54)break;else _0x37ca3a['push'](_0x37ca3a['shift']());}catch(_0x204084){_0x37ca3a['push'](_0x37ca3a['shift']());}}}(a37_0x3e9f,0x8d117));function a37_0x3e9f(){const _0x61e8ab=['87976YwYsPq','left','getType','drawabort','5614465CGeDsB','createMultiPointFeature','length','addPoint','wrapX','10554300pPvyOc','getProjection','1044504Nkafeq','feature','point','_drawingCoordinates','pointermove','handleMoveEvent','DRAWSTART','updateState_','abortDrawing_','_source','style','buildDrawingFeature','_minPoints','_sketchFeature','setText','type','finishDrawing','41hTrwMF','preventDefault','单击结束绘制,右击删除点','updateSketchFeatures_','drawend','MAX_VALUE','pop','drawstart','_features','abortDrawing','originalEvent','once','slice','minPoint','688GVwTiH','getPixelFromCoordinate','setMap','_snapTolerance','_fixPoint','pixel','_overlay','onceInternal','rgba(0,\x200,\x200,\x200.4)','getCode','_showTip','stopDown','tipText','source','_tipFeature','单击拖动绘制','startDrawing_','atFinish_','2702064xmMvqG','features','单击增加点,右击删除点','onInternal','Ellipse','revert','setGeometry','DRAWADDPOINT','_tipOverlay','6118jgRrje','getMap','getView','snapTolerance','push','unInternal','setStyle','_isStayDraw','599877RvLdkC','_style','projection','updateTip_','addChangeListener','coordinate','单击开始绘制','clear','DRAWMOVING','getSource','Circle','dispatchEvent','_type','DRAWABORT','_tipStyle','coordinates','rectangle','getGeometry','showTip','addFeature','sqrt','handleDownEvent','drawaddpoint','drawmoving'];a37_0x3e9f=function(){return _0x61e8ab;};return a37_0x3e9f();}import a37_0x221717 from'ol/events/Event';import a37_0x1e28b5 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a37_0x876cd3 from'ol/Feature';import a37_0x8e9e4d,{createEditingStyle}from'ol/style/Style';import a37_0x3a8d75 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0x73802b from'ol/style/Text';function a37_0x505a(_0x2cc35e,_0x27fadf){const _0x3e9fb4=a37_0x3e9f();return a37_0x505a=function(_0x505a26,_0x3d379c){_0x505a26=_0x505a26-0x148;let _0x4f3e76=_0x3e9fb4[_0x505a26];return _0x4f3e76;},a37_0x505a(_0x2cc35e,_0x27fadf);}import a37_0x2909d9 from'ol/style/Fill';import a37_0x54be01 from'ol/interaction/Property';import a37_0x1dc28d from'ol/layer/Vector';import a37_0x26af9d from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a37_0x12308e(0x154),'DRAWEND':a37_0x12308e(0x151),'DRAWABORT':a37_0x12308e(0x199),'DRAWADDPOINT':a37_0x12308e(0x194),'DRAWMOVING':a37_0x12308e(0x195)};export class DrawEvent extends a37_0x221717{constructor(_0xecdf09,_0x2cea38,_0x95fd7c){const _0x45bd7b=a37_0x12308e;super(_0xecdf09),this[_0x45bd7b(0x1a2)]=_0x2cea38,this[_0x45bd7b(0x18d)]=_0x95fd7c;}}export class ShEvent extends a37_0x221717{constructor(_0x5d104a,_0x1c91f1,_0x319951,_0x50bea9,_0x10ee92){const _0x1d8024=a37_0x12308e;super(_0x5d104a),this[_0x1d8024(0x180)]=_0x10ee92,this[_0x1d8024(0x14b)]=_0x1c91f1,this['coordinate']=_0x319951,this[_0x1d8024(0x18d)]=_0x50bea9;}}export default class Draw extends a37_0x1e28b5{constructor(_0x17114a,_0x49fdf1){const _0x38c9e0=a37_0x12308e,_0x2c2016=_0x49fdf1?_0x49fdf1:{};!_0x2c2016[_0x38c9e0(0x166)]&&(_0x2c2016[_0x38c9e0(0x166)]=![]);super(_0x49fdf1),this['on']=this[_0x38c9e0(0x170)],this[_0x38c9e0(0x158)]=this[_0x38c9e0(0x162)],this['un']=this[_0x38c9e0(0x17b)],this[_0x38c9e0(0x17d)]=![],this['_type']=_0x17114a,this['_style']=_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x1ab)],this['_source']=_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x168)],this[_0x38c9e0(0x155)]=_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x16e)];const _0x5c5d2f=getPlotCount(this[_0x38c9e0(0x18a)]);this[_0x38c9e0(0x148)]=_0x5c5d2f[_0x38c9e0(0x15a)],this[_0x38c9e0(0x15f)]=_0x5c5d2f['fixPoint'],this['tipText']=_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1['tipText'],this[_0x38c9e0(0x165)]=(_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x190)])==![]?![]:!![],this[_0x38c9e0(0x15e)]=_0x2c2016[_0x38c9e0(0x179)]?_0x2c2016[_0x38c9e0(0x179)]:0x6,this[_0x38c9e0(0x169)]=new a37_0x876cd3(),this[_0x38c9e0(0x18c)]=new a37_0x8e9e4d({'text':new a37_0x73802b({'font':'12px\x20Calibre,sans-serif','fill':new a37_0x2909d9({'color':'rgba(255,\x20255,\x20255,\x201)'}),'backgroundFill':new a37_0x2909d9({'color':_0x38c9e0(0x163)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x38c9e0(0x197),'offsetX':0xf})}),this[_0x38c9e0(0x1a4)]=[],this['_tipOverlay']=new a37_0x1dc28d({'source':new a37_0x3a8d75({'useSpatialIndex':![],'wrapX':(_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x19e)])?_0x49fdf1[_0x38c9e0(0x19e)]:![]})}),this[_0x38c9e0(0x161)]=new a37_0x1dc28d({'source':new a37_0x3a8d75({'useSpatialIndex':![],'wrapX':(_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x19e)])?_0x49fdf1[_0x38c9e0(0x19e)]:![]}),'updateWhileInteracting':!![]}),this[_0x38c9e0(0x182)](a37_0x54be01['ACTIVE'],this[_0x38c9e0(0x1a8)]);}['updateState_'](){const _0x2ba044=a37_0x12308e,_0x425357=this[_0x2ba044(0x177)](),_0x1ddcd4=this['getActive']();(!_0x425357||!_0x1ddcd4)&&this[_0x2ba044(0x156)](),this[_0x2ba044(0x161)][_0x2ba044(0x15d)](_0x1ddcd4?_0x425357:null),this['_tipOverlay'][_0x2ba044(0x15d)](_0x1ddcd4?_0x425357:null);}[a37_0x12308e(0x15d)](_0x278d20){const _0x4d04e6=a37_0x12308e;super[_0x4d04e6(0x15d)](_0x278d20),this[_0x4d04e6(0x1a8)]();}[a37_0x12308e(0x17c)](_0x529516){const _0x337045=a37_0x12308e;this[_0x337045(0x17f)]=_0x529516?_0x529516:{};}['getOverlay'](){const _0x4388b6=a37_0x12308e;return this[_0x4388b6(0x161)];}[a37_0x12308e(0x193)](_0x1f1a11){const _0x311fe4=a37_0x12308e;if(_0x1f1a11[_0x311fe4(0x157)]['button']===0x2)return _0x1f1a11[_0x311fe4(0x157)][_0x311fe4(0x14e)](),this[_0x311fe4(0x172)](),this[_0x311fe4(0x1a6)](_0x1f1a11),![];return!![];}['handleUpEvent'](_0x319b05){const _0x569cde=a37_0x12308e;var _0x56d035,_0x4717ba;if(this['_type']==_0x569cde(0x18e)&&this[_0x569cde(0x1a4)][_0x569cde(0x19c)]<0x1)return this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x319b05[_0x569cde(0x183)]])),![];if(!this[_0x569cde(0x17d)])this[_0x569cde(0x16b)](_0x319b05['coordinate']),this[_0x569cde(0x189)](new ShEvent(DrawEventType[_0x569cde(0x174)],this[_0x569cde(0x18a)],_0x319b05[_0x569cde(0x183)],this[_0x569cde(0x1a4)],(_0x56d035=this['getMap']())===null||_0x56d035===void 0x0?void 0x0:_0x56d035[_0x569cde(0x178)]()[_0x569cde(0x1a0)]()[_0x569cde(0x164)]())),this[_0x569cde(0x18a)]==_0x569cde(0x1a3)&&this[_0x569cde(0x14c)]();else{if(this[_0x569cde(0x1a4)]&&this[_0x569cde(0x1a4)][_0x569cde(0x19c)]>0x0){if(this[_0x569cde(0x16c)](_0x319b05[_0x569cde(0x160)]))return this[_0x569cde(0x14c)](),_0x319b05[_0x569cde(0x14e)](),![];let _0x3a8166=this[_0x569cde(0x1a4)][_0x569cde(0x19c)]+0x1;_0x3a8166<=this[_0x569cde(0x15f)]&&this[_0x569cde(0x19d)](_0x319b05[_0x569cde(0x183)]),this[_0x569cde(0x189)](new ShEvent(DrawEventType[_0x569cde(0x174)],this[_0x569cde(0x18a)],_0x319b05[_0x569cde(0x183)],this[_0x569cde(0x1a4)],(_0x4717ba=this['getMap']())===null||_0x4717ba===void 0x0?void 0x0:_0x4717ba['getView']()[_0x569cde(0x1a0)]()['getCode']())),_0x3a8166>=this['_minPoints']&&this[_0x569cde(0x1ac)](this[_0x569cde(0x1a4)]),_0x3a8166===this['_fixPoint']&&this[_0x569cde(0x14c)]();}}return _0x319b05[_0x569cde(0x14e)](),![];}['handleDragEvent'](_0x7c80be){const _0x5598fc=a37_0x12308e;var _0x2fe2d5;if(this[_0x5598fc(0x18a)]=='rectangle'&&_0x7c80be['originalEvent'][_0x5598fc(0x14b)]==_0x5598fc(0x1a5)){if(!this[_0x5598fc(0x17d)]){this[_0x5598fc(0x16b)](_0x7c80be[_0x5598fc(0x183)]),this[_0x5598fc(0x189)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x5598fc(0x18a)],_0x7c80be[_0x5598fc(0x183)],this[_0x5598fc(0x1a4)],(_0x2fe2d5=this[_0x5598fc(0x177)]())===null||_0x2fe2d5===void 0x0?void 0x0:_0x2fe2d5[_0x5598fc(0x178)]()[_0x5598fc(0x1a0)]()[_0x5598fc(0x164)]()));return;}let _0x4f25d3=[...this[_0x5598fc(0x1a4)],_0x7c80be[_0x5598fc(0x183)]];this['buildDrawingFeature'](_0x4f25d3),this[_0x5598fc(0x189)](new DrawEvent(DrawEventType[_0x5598fc(0x186)],this[_0x5598fc(0x149)],this['_drawingCoordinates']));}}['handleMoveEvent'](_0x3f9838){const _0x4f0f49=a37_0x12308e;var _0x5baf86,_0x3a10a4,_0xd4d6fb;let _0x38329d='';this[_0x4f0f49(0x18a)]=='pointermove'&&(this['startDrawing_'](_0x3f9838[_0x4f0f49(0x183)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x4f0f49(0x174)],this[_0x4f0f49(0x18a)],_0x3f9838[_0x4f0f49(0x183)],this[_0x4f0f49(0x1a4)],(_0x5baf86=this['getMap']())===null||_0x5baf86===void 0x0?void 0x0:_0x5baf86[_0x4f0f49(0x178)]()[_0x4f0f49(0x1a0)]()[_0x4f0f49(0x164)]())),this[_0x4f0f49(0x14c)]());!this[_0x4f0f49(0x17d)]?_0x38329d=this[_0x4f0f49(0x18a)]==_0x4f0f49(0x18e)?_0x4f0f49(0x16a):_0x4f0f49(0x184):(_0x38329d=_0x4f0f49(0x16f),((_0x3a10a4=this['_drawingCoordinates'])===null||_0x3a10a4===void 0x0?void 0x0:_0x3a10a4[_0x4f0f49(0x19c)])===this[_0x4f0f49(0x15f)]-0x1&&(_0x38329d=_0x4f0f49(0x14f)),((_0xd4d6fb=this[_0x4f0f49(0x1a4)])===null||_0xd4d6fb===void 0x0?void 0x0:_0xd4d6fb['length'])>=this[_0x4f0f49(0x148)]&&this[_0x4f0f49(0x15f)]===Number['MAX_VALUE']&&(_0x38329d='单击增加点,右击删除点双击完成绘制'));this['tipText']!=undefined&&(_0x38329d=this[_0x4f0f49(0x167)]);this[_0x4f0f49(0x181)](_0x3f9838[_0x4f0f49(0x183)],_0x38329d);if(this[_0x4f0f49(0x17d)]&&this[_0x4f0f49(0x18a)]!=_0x4f0f49(0x18e)){let _0x2136f1=[...this['_drawingCoordinates'],_0x3f9838[_0x4f0f49(0x183)]];this[_0x4f0f49(0x1ac)](_0x2136f1),this[_0x4f0f49(0x189)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x4f0f49(0x149)],this[_0x4f0f49(0x1a4)]));}}[a37_0x12308e(0x16c)](_0x234a39){const _0x17d906=a37_0x12308e;var _0x5f006e;let _0x964dcd=![],_0x275394=this[_0x17d906(0x1a4)][_0x17d906(0x19c)];if(_0x275394>this[_0x17d906(0x148)]&&this[_0x17d906(0x15f)]===Number[_0x17d906(0x152)]){const _0x474e9d=this[_0x17d906(0x1a4)][this[_0x17d906(0x1a4)]['length']-0x1],_0x4893f1=(_0x5f006e=this['getMap']())===null||_0x5f006e===void 0x0?void 0x0:_0x5f006e[_0x17d906(0x15c)](_0x474e9d),_0x1af937=_0x234a39[0x0]-(_0x4893f1?_0x4893f1[0x0]:0x0),_0x468f8e=_0x234a39[0x1]-(_0x4893f1?_0x4893f1[0x1]:0x0);_0x964dcd=Math[_0x17d906(0x192)](_0x1af937*_0x1af937+_0x468f8e*_0x468f8e)<=this[_0x17d906(0x15e)];}return _0x964dcd;}['startDrawing_'](_0x1f61ee){const _0x54a631=a37_0x12308e;this['_isStayDraw']=!![],this[_0x54a631(0x1a4)]=[_0x1f61ee[_0x54a631(0x159)]()],this[_0x54a631(0x149)]=this[_0x54a631(0x19b)](),this[_0x54a631(0x150)](),this[_0x54a631(0x189)](new DrawEvent(DrawEventType[_0x54a631(0x1a7)],this[_0x54a631(0x149)],this[_0x54a631(0x1a4)]));}['finishDrawing'](){const _0x4ad03d=a37_0x12308e;if(this[_0x4ad03d(0x1a4)][_0x4ad03d(0x19c)]>this[_0x4ad03d(0x148)]){this['buildDrawingFeature'](this[_0x4ad03d(0x1a4)]);let _0x1b2b85=this[_0x4ad03d(0x1a4)];const _0x5a6ca0=this[_0x4ad03d(0x1a9)]();if(!_0x5a6ca0)return;this[_0x4ad03d(0x189)](new DrawEvent(DrawEventType['DRAWEND'],_0x5a6ca0,_0x1b2b85)),this[_0x4ad03d(0x155)]&&this[_0x4ad03d(0x155)][_0x4ad03d(0x17a)](_0x5a6ca0),this[_0x4ad03d(0x1aa)]&&this['_source'][_0x4ad03d(0x191)](_0x5a6ca0);}}[a37_0x12308e(0x19d)](_0x2ebb9f){const _0x30e919=a37_0x12308e;this[_0x30e919(0x1a4)][_0x30e919(0x17a)](_0x2ebb9f),this[_0x30e919(0x149)]=this[_0x30e919(0x19b)](),this[_0x30e919(0x150)]();}['createMultiPointFeature'](){const _0x12324e=a37_0x12308e,_0x2a3c6f=new MultiPoint(this[_0x12324e(0x1a4)]);let _0x38011d=new a37_0x876cd3();return _0x38011d[_0x12324e(0x173)](_0x2a3c6f),_0x38011d;}[a37_0x12308e(0x1a9)](){const _0x10ba84=a37_0x12308e;var _0x34b1e8,_0x1805c3;this[_0x10ba84(0x17d)]=![];const _0x4c9bf5=this['_sketchFeature'];return this[_0x10ba84(0x149)]=undefined,this['_drawingCoordinates']=[],(_0x34b1e8=this[_0x10ba84(0x161)][_0x10ba84(0x187)]())===null||_0x34b1e8===void 0x0?void 0x0:_0x34b1e8['clear'](!![]),(_0x1805c3=this[_0x10ba84(0x175)][_0x10ba84(0x187)]())===null||_0x1805c3===void 0x0?void 0x0:_0x1805c3['clear'](!![]),_0x4c9bf5;}['abortDrawing'](){const _0x1de7b7=a37_0x12308e,_0x29b72b=this[_0x1de7b7(0x1a9)]();_0x29b72b&&this[_0x1de7b7(0x189)](new DrawEvent(DrawEventType[_0x1de7b7(0x18b)],_0x29b72b,this[_0x1de7b7(0x1a4)]));}[a37_0x12308e(0x1ac)](_0x333b8c){const _0x3265ec=a37_0x12308e;this[_0x3265ec(0x149)]=new a37_0x876cd3();let _0x5e2d88=createPlot(this['_type'],_0x333b8c);if(!_0x5e2d88)return;this[_0x3265ec(0x149)]['setGeometry'](_0x5e2d88);let _0x2c0c99=[a37_0x26af9d[_0x3265ec(0x188)],a37_0x26af9d['Ellipsoid'],a37_0x26af9d[_0x3265ec(0x171)]];if(_0x2c0c99['indexOf'](this[_0x3265ec(0x18a)])>-0x1&&this[_0x3265ec(0x17f)]){}const _0x13b5a3=this[_0x3265ec(0x177)]();this[_0x3265ec(0x149)][_0x3265ec(0x17c)](getStyle(this['_type'],this[_0x3265ec(0x17f)],this[_0x3265ec(0x177)]())),this[_0x3265ec(0x150)]();}[a37_0x12308e(0x150)](){const _0x9bdf4=a37_0x12308e,_0x3f61cd=this[_0x9bdf4(0x161)]['getSource']();_0x3f61cd&&this[_0x9bdf4(0x149)]&&(_0x3f61cd['clear'](!![]),_0x3f61cd['addFeature'](this[_0x9bdf4(0x149)]));}[a37_0x12308e(0x172)](){const _0x59d729=a37_0x12308e;if(this[_0x59d729(0x17d)]){if(this[_0x59d729(0x1a4)]&&this[_0x59d729(0x1a4)][_0x59d729(0x19c)]>0x0){const _0x54f1c1=this[_0x59d729(0x161)][_0x59d729(0x187)]();_0x54f1c1===null||_0x54f1c1===void 0x0?void 0x0:_0x54f1c1[_0x59d729(0x185)](!![]),this[_0x59d729(0x1a4)][_0x59d729(0x153)](),this[_0x59d729(0x1a4)][_0x59d729(0x19c)]>=this['_minPoints']&&this[_0x59d729(0x1ac)](this[_0x59d729(0x1a4)]),this[_0x59d729(0x1a4)][_0x59d729(0x19c)]===0x0&&(this[_0x59d729(0x17d)]=![]);}}}['updateTip_'](_0x38e2e1,_0x960232){const _0x3c58fd=a37_0x12308e;var _0x2dd1c4,_0x2691fc,_0x2e5a35,_0x1f9c71;if(!this[_0x3c58fd(0x165)])return;const _0x48f7de=this[_0x3c58fd(0x175)][_0x3c58fd(0x187)]();_0x48f7de===null||_0x48f7de===void 0x0?void 0x0:_0x48f7de['clear'](!![]),(_0x2dd1c4=this['_tipFeature'])===null||_0x2dd1c4===void 0x0?void 0x0:_0x2dd1c4[_0x3c58fd(0x173)](new Point(_0x38e2e1)),(_0x2e5a35=(_0x2691fc=this[_0x3c58fd(0x18c)])===null||_0x2691fc===void 0x0?void 0x0:_0x2691fc['getText']())===null||_0x2e5a35===void 0x0?void 0x0:_0x2e5a35[_0x3c58fd(0x14a)](_0x960232),(_0x1f9c71=this['_tipFeature'])===null||_0x1f9c71===void 0x0?void 0x0:_0x1f9c71[_0x3c58fd(0x17c)](this[_0x3c58fd(0x18c)]),this['_tipFeature']&&(_0x48f7de===null||_0x48f7de===void 0x0?void 0x0:_0x48f7de['addFeature'](this[_0x3c58fd(0x169)]));}}function getDefaultStyleFunction(){const _0xc59fde=createEditingStyle();return function(_0x87254b,_0x49b312){const _0x14ae28=a37_0x505a,_0x4f6507=_0xc59fde[_0x87254b[_0x14ae28(0x18f)]()[_0x14ae28(0x198)]()];if(_0x4f6507&&'Rectangle'==_0x87254b['getGeometry']()[_0x14ae28(0x198)]()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x579feb=a38_0x9628;function a38_0x4515(){const _0x5a800a=['3DIbirN','992480sJTtMI','4047150ZExWwQ','removeInteraction','317190FHzvJV','name','2281878hImQEy','set','get','map','2uauDId','addInteraction','delete','forEach','has','13510xlcTRF','1940230XAaTmq','2118wjPzvo','clear','getInteraction','interactions','416452yktspy'];a38_0x4515=function(){return _0x5a800a;};return a38_0x4515();}(function(_0x123b29,_0x50821d){const _0x8a4901=a38_0x9628,_0x3508aa=_0x123b29();while(!![]){try{const _0x1429f7=parseInt(_0x8a4901(0x1b5))/0x1*(-parseInt(_0x8a4901(0x1bb))/0x2)+parseInt(_0x8a4901(0x1c7))/0x3*(-parseInt(_0x8a4901(0x1c6))/0x4)+parseInt(_0x8a4901(0x1c1))/0x5+-parseInt(_0x8a4901(0x1c2))/0x6*(-parseInt(_0x8a4901(0x1c0))/0x7)+-parseInt(_0x8a4901(0x1b2))/0x8+parseInt(_0x8a4901(0x1b7))/0x9+-parseInt(_0x8a4901(0x1b3))/0xa;if(_0x1429f7===_0x50821d)break;else _0x3508aa['push'](_0x3508aa['shift']());}catch(_0x3b29c8){_0x3508aa['push'](_0x3508aa['shift']());}}}(a38_0x4515,0x5b040));function a38_0x9628(_0x5618a4,_0x36260a){const _0x4515da=a38_0x4515();return a38_0x9628=function(_0x962896,_0x1c27d7){_0x962896=_0x962896-0x1b2;let _0x341353=_0x4515da[_0x962896];return _0x341353;},a38_0x9628(_0x5618a4,_0x36260a);}export default class InteractionManager{constructor(_0x45b4e0){const _0x135c8e=a38_0x9628;this[_0x135c8e(0x1ba)]=_0x45b4e0,this[_0x135c8e(0x1c5)]=new Map();}[a38_0x579feb(0x1bc)](_0x465217,_0x51a200){const _0x300d43=a38_0x579feb;this[_0x300d43(0x1c5)][_0x300d43(0x1bf)](_0x465217)&&this['removeInteraction'](_0x465217),_0x51a200[_0x300d43(0x1b8)](_0x300d43(0x1b6),_0x465217),this[_0x300d43(0x1c5)]['set'](_0x465217,_0x51a200),this[_0x300d43(0x1ba)][_0x300d43(0x1bc)](_0x51a200);}['removeInteraction'](_0xb6151d){const _0xf38398=a38_0x579feb,_0x4e539b=this[_0xf38398(0x1c5)][_0xf38398(0x1b9)](_0xb6151d);_0x4e539b&&(this[_0xf38398(0x1ba)][_0xf38398(0x1b4)](_0x4e539b),this[_0xf38398(0x1c5)][_0xf38398(0x1bd)](_0xb6151d));}['removeAllInteractions'](){const _0x163a8f=a38_0x579feb;this[_0x163a8f(0x1c5)][_0x163a8f(0x1be)](_0x2ecd8e=>{const _0x5ef153=_0x163a8f;this['map'][_0x5ef153(0x1b4)](_0x2ecd8e);}),this[_0x163a8f(0x1c5)][_0x163a8f(0x1c3)]();}[a38_0x579feb(0x1c4)](_0x19b37f){const _0x33e5e7=a38_0x579feb;return this['interactions'][_0x33e5e7(0x1b9)](_0x19b37f);}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a39_0x7e0c(){const _0x14c3dc=['selectLayer','getLayers','selectIndex','drawmoving','getVisible','MultiPoint','tempLayer','ctrlKey','MultiPolygon','485SrdmMx','addTempLayer','length','selectedPolygonFeatures','cancePointStyle','layerType','selectedPointFeatures','url','allSelectedFeatures','getCode','lineStyle','holdCtrl','selectLayers','pointFeatures','954760AEymJB','pixelDistance','cut','union','setStyle','onInternal','seletctEditeFeature','selectTempLayer','addEventListener','drawend','coordinates','drawabort','getGeometry','selectstart','getPointTempLayer','polygonFeatures','SELECTED','getArray','dispatchEvent','getSelectedFeatures','layerId','getView','489621fFRUHq','push','193525tfJRYG','loadFilter','未获取到几何','MultiLineString','31026ecuacC','getMap','feature','filter','314790VrqDVR','selectedLineFeatures','setSelectLayers','Point','currentLayers','4152498SnMlIh','getProjection','lineFeatures','tipText','fromType','layerInfo','pointStyle','drawaddpoint','cancePolygonStyle','getType','SELECTSTART','Polygon','getLayerById','2241536JtfoLJ','draw','addFeatures','includes','allFeatures','canceLineStyle','polygonStyle','getSource','error','getPolygonTempLayer','LineString'];a39_0x7e0c=function(){return _0x14c3dc;};return a39_0x7e0c();}const a39_0x41a43b=a39_0x9d93;(function(_0x34952b,_0x2ebb27){const _0x2b0d9e=a39_0x9d93,_0x3c872a=_0x34952b();while(!![]){try{const _0x3bd0c0=parseInt(_0x2b0d9e(0xd6))/0x1+parseInt(_0x2b0d9e(0xde))/0x2+-parseInt(_0x2b0d9e(0xd4))/0x3+-parseInt(_0x2b0d9e(0xbe))/0x4+parseInt(_0x2b0d9e(0xb0))/0x5*(-parseInt(_0x2b0d9e(0xda))/0x6)+parseInt(_0x2b0d9e(0xe3))/0x7+parseInt(_0x2b0d9e(0xf0))/0x8;if(_0x3bd0c0===_0x2ebb27)break;else _0x3c872a['push'](_0x3c872a['shift']());}catch(_0x14c639){_0x3c872a['push'](_0x3c872a['shift']());}}}(a39_0x7e0c,0x4e54a));import a39_0x3659dc from'./Draw';import a39_0x391b7e from'ol/events/Event';function a39_0x9d93(_0x1fa2eb,_0x297148){const _0x7e0c63=a39_0x7e0c();return a39_0x9d93=function(_0x9d93b5,_0x4ad36d){_0x9d93b5=_0x9d93b5-0xa2;let _0x466212=_0x7e0c63[_0x9d93b5];return _0x466212;},a39_0x9d93(_0x1fa2eb,_0x297148);}import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a39_0x428d28 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'DRAWSTART':'drawstart','DRAWEND':a39_0x41a43b(0xc7),'DRAWABORT':a39_0x41a43b(0xc9),'DRAWADDPOINT':a39_0x41a43b(0xea),'DRAWMOVING':a39_0x41a43b(0xaa),'SELECTSTART':a39_0x41a43b(0xcb),'SELECTED':'selected'};export class SelectEvent extends a39_0x391b7e{constructor(_0x429b31,_0xc5b09b,_0x266669,_0x223d08,_0x33890b,_0x3775a7,_0x1f8514,_0x464aa3,_0x274edc){const _0x54d032=a39_0x41a43b;super(_0x429b31),this['selectGeom']=_0x266669,this[_0x54d032(0xc8)]=_0x223d08,this[_0x54d032(0xbd)]=_0x33890b,this[_0x54d032(0xe5)]=_0x3775a7,this[_0x54d032(0xcd)]=_0x1f8514,this[_0x54d032(0xf4)]=_0x464aa3,this[_0x54d032(0xa4)]=_0x274edc,this[_0x54d032(0xbb)]=_0xc5b09b;}}export default class Select extends a39_0x3659dc{constructor(_0x4c287b,_0x560347){const _0x5a38aa=a39_0x41a43b;super(_0x4c287b,{'tipText':_0x560347===null||_0x560347===void 0x0?void 0x0:_0x560347[_0x5a38aa(0xe6)]}),this[_0x5a38aa(0xb6)]=[],this['selectedLineFeatures']=[],this[_0x5a38aa(0xb3)]=[],this['allSelectedFeatures']=[];const _0x3bfa29=_0x560347||{};this[_0x5a38aa(0xb1)]=_0x3bfa29[_0x5a38aa(0xb1)]||![],this[_0x5a38aa(0xe2)]=_0x3bfa29[_0x5a38aa(0xbc)],this[_0x5a38aa(0xc5)]=_0x3bfa29['selectTempLayer']===undefined?!![]:_0x3bfa29['selectTempLayer'],this[_0x5a38aa(0xbf)]=_0x3bfa29['pixelDistance']===undefined?0x5:_0x3bfa29[_0x5a38aa(0xbf)],this[_0x5a38aa(0xe9)]=_0x3bfa29[_0x5a38aa(0xe9)]?getStyle(_0x3bfa29['pointStyle']):getSelectPointStyle(),this[_0x5a38aa(0xb4)]=_0x3bfa29[_0x5a38aa(0xb4)]?getStyle(_0x3bfa29[_0x5a38aa(0xb4)]):getSelectCancePointStyle(),this['lineStyle']=_0x3bfa29[_0x5a38aa(0xba)]?getStyle(_0x3bfa29[_0x5a38aa(0xba)]):getSelectLineStyle(),this[_0x5a38aa(0xf5)]=_0x3bfa29[_0x5a38aa(0xf5)]?getStyle(_0x3bfa29[_0x5a38aa(0xf5)]):getSelectCancelLineStyle(),this[_0x5a38aa(0xa2)]=_0x3bfa29[_0x5a38aa(0xa2)]?getStyle(_0x3bfa29['polygonStyle']):getSelectPolygonStyle(),this[_0x5a38aa(0xeb)]=_0x3bfa29['cancePolygonStyle']?getStyle(_0x3bfa29[_0x5a38aa(0xeb)]):getSelectCancelPolygonStyle(),this[_0x5a38aa(0xbb)]=![];let _0x417e96;this['on']=this[_0x5a38aa(0xc3)],this['on'](_0x5a38aa(0xc7),async _0x59270d=>{const _0x13bd5d=_0x5a38aa,_0x41cc51=this[_0x13bd5d(0xbb)],_0x21985f=this[_0x13bd5d(0xdb)]();if(!_0x21985f)return;try{let _0x44d456=undefined;if(!_0x59270d[_0x13bd5d(0xdc)]&&_0x59270d[_0x13bd5d(0xc8)]&&_0x59270d[_0x13bd5d(0xc8)]['length']==0x1)_0x44d456=bufferPixel(new Point(_0x59270d['coordinates'][0x0]),this[_0x13bd5d(0xbf)],_0x21985f);else _0x59270d[_0x13bd5d(0xdc)]&&(_0x44d456=_0x59270d[_0x13bd5d(0xdc)][_0x13bd5d(0xca)]());if(!_0x44d456)throw new Error(_0x13bd5d(0xd8));this['dispatchEvent'](new SelectEvent(SelectEventType[_0x13bd5d(0xed)],_0x41cc51,_0x44d456)),this[_0x13bd5d(0xb6)]=[],this[_0x13bd5d(0xdf)]=[],this[_0x13bd5d(0xb3)]=[],this[_0x13bd5d(0xb8)]=[],this['selectTempLayer']&&this[_0x13bd5d(0xc4)](_0x44d456),_0x417e96&&clearTimeout(_0x417e96),_0x417e96=setTimeout(async()=>{const _0xdcbd24=_0x13bd5d;await this[_0xdcbd24(0xa7)](_0x44d456),this[_0xdcbd24(0xd0)](new SelectEvent(SelectEventType[_0xdcbd24(0xce)],_0x41cc51,_0x44d456,_0x59270d['coordinates'],this[_0xdcbd24(0xb6)],this['selectedLineFeatures'],this['selectedPolygonFeatures'],this['allSelectedFeatures']));},0x46);}catch(_0x150a4e){this[_0x13bd5d(0xd0)](new SelectEvent(SelectEventType[_0x13bd5d(0xce)],_0x41cc51,undefined,_0x59270d['coordinates'],this['selectedPointFeatures'],this[_0x13bd5d(0xdf)],this[_0x13bd5d(0xb3)],this[_0x13bd5d(0xb8)],_0x150a4e['message']));}}),window['addEventListener']('keydown',_0x25efe1=>{const _0x309196=_0x5a38aa;_0x25efe1[_0x309196(0xae)]&&(this[_0x309196(0xbb)]=!![]);}),window[_0x5a38aa(0xc6)]('keyup',_0x1f5c5d=>{this['holdCtrl']=![];});}[a39_0x41a43b(0xe0)](_0x1f8df3){const _0x4f53ed=a39_0x41a43b;this[_0x4f53ed(0xe2)]=_0x1f8df3;}async[a39_0x41a43b(0xa7)](_0x471c8d){const _0x1a7ad6=a39_0x41a43b;var _0x50a034;const _0x5f38fb=this[_0x1a7ad6(0xdb)]();let _0x377137=[];if(this[_0x1a7ad6(0xe2)]&&this[_0x1a7ad6(0xe2)][_0x1a7ad6(0xb2)]>0x0)_0x377137=this[_0x1a7ad6(0xe2)];else{let _0x40c914=_0x5f38fb[_0x1a7ad6(0xa8)]()[_0x1a7ad6(0xcf)]();_0x40c914=_0x40c914[_0x1a7ad6(0xdd)](_0x3e2c2b=>{const _0x37ba06=_0x1a7ad6,_0x58b75d=_0x3e2c2b[_0x37ba06(0xe8)];if(!_0x58b75d)return![];return _0x3e2c2b[_0x37ba06(0xab)]()==!![]&&_0x58b75d[_0x37ba06(0xa9)]!=undefined&&_0x58b75d['selectIndex']!='';}),_0x377137=_0x40c914['map'](_0x269e6a=>{const _0x5d3fe5=_0x1a7ad6;return _0x269e6a[_0x5d3fe5(0xe8)];});}if(!_0x377137||_0x377137[_0x1a7ad6(0xb2)]==0x0)return;const _0x418d01=_0x5f38fb[_0x1a7ad6(0xd3)]()[_0x1a7ad6(0xe4)]()[_0x1a7ad6(0xb9)]();for(let _0x11e21c=0x0,_0x435ea0=_0x377137[_0x1a7ad6(0xb2)];_0x11e21c<_0x435ea0;_0x11e21c++){const _0x591654=_0x377137[_0x11e21c],_0x54e550=_0x5f38fb[_0x1a7ad6(0xef)](_0x591654['id']);if(!_0x54e550||_0x54e550[_0x1a7ad6(0xab)]()==![]||!_0x591654||!_0x591654[_0x1a7ad6(0xb7)]||!_0x591654[_0x1a7ad6(0xa9)])continue;let _0x5d65b6=await selectFeaturesByGeo(_0x471c8d,_0x418d01,_0x591654[_0x1a7ad6(0xb7)],_0x591654[_0x1a7ad6(0xa9)],_0x591654[_0x1a7ad6(0xb5)],_0x591654[_0x1a7ad6(0xd7)]);if(_0x5d65b6['length']>0x0){this['allSelectedFeatures']['push'](..._0x5d65b6);let _0xe31784=_0x5f38fb[_0x1a7ad6(0xa5)](),_0x3a2c17=this['polygonStyle'];switch((_0x50a034=_0x5d65b6[0x0][_0x1a7ad6(0xca)]())===null||_0x50a034===void 0x0?void 0x0:_0x50a034[_0x1a7ad6(0xec)]()){case'Point':case _0x1a7ad6(0xac):this[_0x1a7ad6(0xb6)][_0x1a7ad6(0xd5)](..._0x5d65b6),_0xe31784=_0x5f38fb[_0x1a7ad6(0xcc)](),_0x3a2c17=this[_0x1a7ad6(0xe9)];break;case _0x1a7ad6(0xa6):case'MultiLineString':this[_0x1a7ad6(0xdf)][_0x1a7ad6(0xd5)](..._0x5d65b6),_0xe31784=_0x5f38fb['getLineTempLayer'](),_0x3a2c17=this[_0x1a7ad6(0xba)];break;case _0x1a7ad6(0xee):case _0x1a7ad6(0xaf):this[_0x1a7ad6(0xb3)][_0x1a7ad6(0xd5)](..._0x5d65b6),_0xe31784=_0x5f38fb[_0x1a7ad6(0xa5)](),_0x3a2c17=this['polygonStyle'];break;default:break;}const _0x2020bc=_0xe31784[_0x1a7ad6(0xa3)]();_0x2020bc&&(_0x5d65b6['forEach'](_0x4d2604=>{const _0x1057b2=_0x1a7ad6;_0x4d2604[_0x1057b2(0xd2)]=_0x591654['id'],_0x4d2604[_0x1057b2(0xad)]=_0xe31784,_0x4d2604[_0x1057b2(0xc2)](_0x3a2c17);}),this[_0x1a7ad6(0xb1)]&&_0x2020bc[_0x1a7ad6(0xf2)](_0x5d65b6));}}}[a39_0x41a43b(0xc4)](_0x1864d6){const _0x1f1781=a39_0x41a43b,_0x4b03a2=new a39_0x428d28(this[_0x1f1781(0xdb)]()),_0xd34466=_0x4b03a2[_0x1f1781(0xd1)]();if(!_0xd34466||_0xd34466[_0x1f1781(0xb2)]===0x0)return[];const _0x151a5a=['copy',_0x1f1781(0xc0),_0x1f1781(0xf1),'import',_0x1f1781(0xc1)],_0x2e842b=[];for(const _0x311964 of _0xd34466){if(!_0x311964||!_0x311964[_0x1f1781(0xe7)]||!_0x151a5a[_0x1f1781(0xf3)](_0x311964['fromType']))continue;const _0x53e135=_0x311964[_0x1f1781(0xca)]();if(!_0x53e135)continue;if(!intersects(_0x53e135,_0x1864d6))continue;let _0x4a630b=this['polygonStyle'];this['allSelectedFeatures'][_0x1f1781(0xd5)](_0x311964);switch(_0x53e135[_0x1f1781(0xec)]()){case _0x1f1781(0xe1):case'MultiPoint':this[_0x1f1781(0xb6)][_0x1f1781(0xd5)](_0x311964),_0x4a630b=this['pointStyle'];break;case'LineString':case _0x1f1781(0xd9):this[_0x1f1781(0xdf)][_0x1f1781(0xd5)](_0x311964),_0x4a630b=this[_0x1f1781(0xba)];break;case _0x1f1781(0xee):case _0x1f1781(0xaf):this[_0x1f1781(0xb3)][_0x1f1781(0xd5)](_0x311964),_0x4a630b=this['polygonStyle'];break;default:break;}_0x311964[_0x1f1781(0xc2)](_0x4a630b);}return _0x2e842b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x2a4dce=a40_0x40ad;function a40_0x40ad(_0x52b835,_0x350822){const _0x2b536b=a40_0x2b53();return a40_0x40ad=function(_0x40adf9,_0xbed6e7){_0x40adf9=_0x40adf9-0x1c8;let _0x207182=_0x2b536b[_0x40adf9];return _0x207182;},a40_0x40ad(_0x52b835,_0x350822);}function a40_0x2b53(){const _0x3e6694=['layerInfo','wkt','loadFilter','ymin','spatialReference','1914182qDrvKk','41871SOsfEX','url','updateParams','show:','getSource','4697596yNdcZq','anonymous','stringify','1224685VdWXmS','setFilter','projection','1546764jECEyC','fullExtent','join','6925770pMYfOP','xmin','ymax','mapIndex','initialExtent','31273830ryARES','48dGurSD','3tpangA','wkid','selectIndex','layerDefs','sublayers','EPSG:','xmax'];a40_0x2b53=function(){return _0x3e6694;};return a40_0x2b53();}(function(_0x41d2e2,_0x55e6cb){const _0x1f3809=a40_0x40ad,_0x28982d=_0x41d2e2();while(!![]){try{const _0xf9d85=-parseInt(_0x1f3809(0x1da))/0x1+parseInt(_0x1f3809(0x1d9))/0x2+parseInt(_0x1f3809(0x1cd))/0x3*(parseInt(_0x1f3809(0x1df))/0x4)+parseInt(_0x1f3809(0x1e8))/0x5+-parseInt(_0x1f3809(0x1e5))/0x6+-parseInt(_0x1f3809(0x1e2))/0x7*(-parseInt(_0x1f3809(0x1cc))/0x8)+-parseInt(_0x1f3809(0x1cb))/0x9;if(_0xf9d85===_0x55e6cb)break;else _0x28982d['push'](_0x28982d['shift']());}catch(_0x8d3bc1){_0x28982d['push'](_0x28982d['shift']());}}}(a40_0x2b53,0xc151f));import a40_0x36bfea from'ol/source/ImageArcGISRest';import{Image as a40_0x19d1b8}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a40_0x19d1b8{constructor(_0xdeb197,_0x23cee7){const _0x48bd11=a40_0x40ad;var _0x3013fa;let _0x4c2a17={'LAYERS':_0x48bd11(0x1dd)+((_0x3013fa=_0xdeb197[_0x48bd11(0x1d1)])===null||_0x3013fa===void 0x0?void 0x0:_0x3013fa[_0x48bd11(0x1e7)](','))};if(_0xdeb197['loadFilter']&&_0xdeb197['selectIndex']){const _0x248dc6={};_0x248dc6[_0xdeb197[_0x48bd11(0x1cf)]]=_0xdeb197[_0x48bd11(0x1d6)],_0x4c2a17[_0x48bd11(0x1d0)]=JSON[_0x48bd11(0x1e1)](_0x248dc6);}const _0x2b9265=[_0x23cee7[_0x48bd11(0x1ca)][_0x48bd11(0x1e9)],_0x23cee7['initialExtent'][_0x48bd11(0x1d7)],_0x23cee7[_0x48bd11(0x1ca)][_0x48bd11(0x1d3)],_0x23cee7[_0x48bd11(0x1ca)][_0x48bd11(0x1c8)]],_0x350a6b=[_0x23cee7[_0x48bd11(0x1e6)]['xmin'],_0x23cee7[_0x48bd11(0x1e6)][_0x48bd11(0x1d7)],_0x23cee7[_0x48bd11(0x1e6)][_0x48bd11(0x1d3)],_0x23cee7['fullExtent'][_0x48bd11(0x1c8)]];let _0x24afce;_0x23cee7['spatialReference'][_0x48bd11(0x1ce)]?_0x24afce=registerProj(_0x48bd11(0x1d2)+_0x23cee7[_0x48bd11(0x1d8)]['wkid'],_0x350a6b):_0x24afce=registerProj(_0x23cee7['spatialReference'][_0x48bd11(0x1d5)],_0x350a6b),super({'opacity':_0xdeb197['opacity'],'zIndex':_0xdeb197[_0x48bd11(0x1c9)],'source':new a40_0x36bfea({'crossOrigin':_0x48bd11(0x1e0),'projection':_0x24afce,'ratio':0x1,'url':_0xdeb197[_0x48bd11(0x1db)],'params':_0x4c2a17})}),this['id']=_0xdeb197['id'],this[_0x48bd11(0x1ca)]=_0x2b9265,this[_0x48bd11(0x1e4)]=_0x24afce,this[_0x48bd11(0x1d4)]=_0xdeb197;}[a40_0x2a4dce(0x1e3)](_0x4c1dbf){const _0x2e8cd3=a40_0x2a4dce;var _0x8ea05;const _0x5d2e67={};this['layerInfo'][_0x2e8cd3(0x1cf)]&&(_0x5d2e67[this['layerInfo']['selectIndex']]=_0x4c1dbf),(_0x8ea05=this[_0x2e8cd3(0x1de)]())===null||_0x8ea05===void 0x0?void 0x0:_0x8ea05[_0x2e8cd3(0x1dc)]({'layerDefs':JSON['stringify'](_0x4c1dbf)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a41_0x4b615d=a41_0x9fd1;(function(_0x21d2ec,_0x446c75){const _0x465e6e=a41_0x9fd1,_0x4bcd4f=_0x21d2ec();while(!![]){try{const _0x472d47=parseInt(_0x465e6e(0x1d0))/0x1*(parseInt(_0x465e6e(0x1d4))/0x2)+-parseInt(_0x465e6e(0x1a8))/0x3+-parseInt(_0x465e6e(0x1a7))/0x4+-parseInt(_0x465e6e(0x1b7))/0x5*(parseInt(_0x465e6e(0x1aa))/0x6)+-parseInt(_0x465e6e(0x1dc))/0x7*(parseInt(_0x465e6e(0x1d2))/0x8)+parseInt(_0x465e6e(0x1c2))/0x9+parseInt(_0x465e6e(0x1b4))/0xa;if(_0x472d47===_0x446c75)break;else _0x4bcd4f['push'](_0x4bcd4f['shift']());}catch(_0x579c43){_0x4bcd4f['push'](_0x4bcd4f['shift']());}}}(a41_0x3f78,0xae05e));import a41_0x4d8572 from'ol/format/EsriJSON';import a41_0xa7cdd from'ol/source/Vector';import{Vector as a41_0x3f30f2}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a41_0x38ee94}from'ol/loadingstrategy';import a41_0xc50af1 from'ol/layer/Group';function a41_0x3f78(){const _0x50020a=['uniqueValue','wkid','15794950rtqSmb','mapIndex','split','1243780KZIzjd','setLayers','field1','then','f\x20=\x20json\x20&\x20','where=','&geometryType=esriGeometryEnvelope&inSR=','/query',',\x22spatialReference\x22:{\x22wkid\x22:','symbol','renderer','6117597ITGWnD','simple','xmax','1=1','ymax','log','forEach','type',',\x22xmax\x22:','layerInfo','getCode','uniqueValueInfos','{\x22xmin\x22:','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','1192986wwQGDa','setStyle','667944foBhmR','defaultSymbol','2pmpJiU','wkt','drawingInfo','addFeatures','showIndex','&outSR=','projection','url','42tHbOWw','loadFilter','length','string','stringify','300560iwlKpO','3504882fMbsOf','spatialReference','24XuSqhr','fullExtent','ymin','setFilter',',\x22ymax\x22:','createArcGISFeatureLayer','xmin','initialExtent'];a41_0x3f78=function(){return _0x50020a;};return a41_0x3f78();}function a41_0x9fd1(_0x951cf6,_0x597275){const _0x3f785=a41_0x3f78();return a41_0x9fd1=function(_0x9fd19b,_0x610f1b){_0x9fd19b=_0x9fd19b-0x1a3;let _0x146b5b=_0x3f785[_0x9fd19b];return _0x146b5b;},a41_0x9fd1(_0x951cf6,_0x597275);}import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a41_0x214a77 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a41_0xc50af1{constructor(_0x3da894,_0x4990e2,_0x26bd77){const _0x25e4b6=a41_0x9fd1,_0x156470=[_0x4990e2[_0x25e4b6(0x1b1)][_0x25e4b6(0x1b0)],_0x4990e2[_0x25e4b6(0x1b1)][_0x25e4b6(0x1ac)],_0x4990e2[_0x25e4b6(0x1b1)][_0x25e4b6(0x1c4)],_0x4990e2[_0x25e4b6(0x1b1)][_0x25e4b6(0x1c6)]],_0x47a15e=[_0x4990e2[_0x25e4b6(0x1ab)]['xmin'],_0x4990e2[_0x25e4b6(0x1ab)][_0x25e4b6(0x1ac)],_0x4990e2[_0x25e4b6(0x1ab)][_0x25e4b6(0x1c4)],_0x4990e2[_0x25e4b6(0x1ab)][_0x25e4b6(0x1c6)]];let _0x249c43;_0x4990e2[_0x25e4b6(0x1a9)][_0x25e4b6(0x1b3)]?_0x249c43=registerProj('EPSG:'+_0x4990e2[_0x25e4b6(0x1a9)][_0x25e4b6(0x1b3)],_0x47a15e):_0x249c43=registerProj(_0x4990e2[_0x25e4b6(0x1a9)][_0x25e4b6(0x1d5)],_0x47a15e);let _0x4e3579=[];super({'zIndex':_0x3da894[_0x25e4b6(0x1b5)]});for(let _0x294f9d of _0x26bd77){let _0x47a435=this['createArcGISFeatureLayer'](_0x3da894,_0x294f9d);_0x4e3579['push'](_0x47a435);}this[_0x25e4b6(0x1b8)](new a41_0x214a77(_0x4e3579)),this['id']=_0x3da894['id'],this[_0x25e4b6(0x1b1)]=_0x156470,this[_0x25e4b6(0x1da)]=_0x249c43,this[_0x25e4b6(0x1cb)]=_0x3da894;}[a41_0x4b615d(0x1af)](_0x4afa43,_0x33c771){const _0x4e0858=a41_0x4b615d;var _0x47741d=new a41_0x4d8572();let _0xb3666f=new a41_0xa7cdd({'loader':function(_0x3ffde2,_0xbbe496,_0x4bedad){const _0x176458=a41_0x9fd1;let _0xac1055=_0x176458(0x1c5);_0x4afa43[_0x176458(0x1a3)]&&(_0xac1055=typeof _0x4afa43[_0x176458(0x1a3)]===_0x176458(0x1a5)?_0x4afa43[_0x176458(0x1a3)]:JSON[_0x176458(0x1a6)](_0x4afa43[_0x176458(0x1a3)]));let _0x20d8cb=_0x4bedad[_0x176458(0x1cc)](),_0x5c9083=_0x20d8cb[_0x176458(0x1b6)](':')[0x1];var _0x5055d9=appendPath(_0x33c771[_0x176458(0x1db)],_0x176458(0x1be));_0x5055d9=appendParam(_0x5055d9,_0x176458(0x1bb)+_0x176458(0x1bc)+encodeURIComponent(_0xac1055)+_0x176458(0x1cf)+encodeURIComponent(_0x176458(0x1ce)+_0x3ffde2[0x0]+',\x22ymin\x22:'+_0x3ffde2[0x1]+_0x176458(0x1ca)+_0x3ffde2[0x2]+_0x176458(0x1ae)+_0x3ffde2[0x3]+_0x176458(0x1bf)+_0x5c9083+'}}')+_0x176458(0x1bd)+_0x5c9083+'&outFields=*'+_0x176458(0x1d9)+_0x5c9083),jsonp(_0x5055d9)[_0x176458(0x1ba)](_0x2b152a=>{const _0xb171fc=_0x176458;if(_0x2b152a['error'])console[_0xb171fc(0x1c7)](_0x2b152a);else{var _0x181da2=_0x47741d['readFeatures'](_0x2b152a,{'featureProjection':_0x4bedad});_0x181da2[_0xb171fc(0x1a4)]>0x0&&(_0x33c771[_0xb171fc(0x1d6)][_0xb171fc(0x1c1)][_0xb171fc(0x1c9)]==_0xb171fc(0x1b2)&&_0x181da2[_0xb171fc(0x1c8)](function(_0x557f2e){const _0x4169de=_0xb171fc;var _0x349dbb=_0x557f2e['get'](_0x33c771[_0x4169de(0x1d6)][_0x4169de(0x1c1)][_0x4169de(0x1b9)]);const _0x1c5e53=_0x33c771[_0x4169de(0x1d6)][_0x4169de(0x1c1)][_0x4169de(0x1cd)]['find'](_0xcad091=>_0xcad091['value']==_0x349dbb);let _0x22d7a7;_0x1c5e53?_0x22d7a7=transformedEsriStyle(_0x1c5e53[_0x4169de(0x1c0)]):_0x22d7a7=transformedEsriStyle(_0x33c771[_0x4169de(0x1d6)][_0x4169de(0x1c1)][_0x4169de(0x1d3)]),_0x557f2e[_0x4169de(0x1d1)](_0x22d7a7);}),_0xb3666f[_0xb171fc(0x1d7)](_0x181da2));}});},'strategy':a41_0x38ee94(createXYZ({'tileSize':0x200}))}),_0x196b20=new a41_0x3f30f2({'source':_0xb3666f,'zIndex':_0x4afa43[_0x4e0858(0x1d8)]});if(_0x33c771[_0x4e0858(0x1d6)][_0x4e0858(0x1c1)][_0x4e0858(0x1c9)]==_0x4e0858(0x1c3)&&_0x33c771[_0x4e0858(0x1d6)][_0x4e0858(0x1c1)][_0x4e0858(0x1c0)]){let _0x4b9d7b=transformedEsriStyle(_0x33c771[_0x4e0858(0x1d6)][_0x4e0858(0x1c1)]['symbol']);_0x196b20['setStyle'](_0x4b9d7b);}return _0x196b20;}[a41_0x4b615d(0x1ad)](_0x51eeff){this['layerInfo']['loadFilter']=_0x51eeff;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a42_0x2a1c(_0x3a6a69,_0x2b49a8){const _0x38d1c5=a42_0x38d1();return a42_0x2a1c=function(_0x2a1c6b,_0x2c9606){_0x2a1c6b=_0x2a1c6b-0x170;let _0x1bc0fa=_0x38d1c5[_0x2a1c6b];return _0x1bc0fa;},a42_0x2a1c(_0x3a6a69,_0x2b49a8);}(function(_0x5b66d3,_0x174849){const _0x4823cc=a42_0x2a1c,_0x4c5fc6=_0x5b66d3();while(!![]){try{const _0xcf8b7a=parseInt(_0x4823cc(0x17a))/0x1+parseInt(_0x4823cc(0x17f))/0x2*(-parseInt(_0x4823cc(0x17b))/0x3)+parseInt(_0x4823cc(0x17c))/0x4*(parseInt(_0x4823cc(0x176))/0x5)+-parseInt(_0x4823cc(0x184))/0x6*(parseInt(_0x4823cc(0x18b))/0x7)+parseInt(_0x4823cc(0x183))/0x8+-parseInt(_0x4823cc(0x174))/0x9+parseInt(_0x4823cc(0x172))/0xa*(parseInt(_0x4823cc(0x178))/0xb);if(_0xcf8b7a===_0x174849)break;else _0x4c5fc6['push'](_0x4c5fc6['shift']());}catch(_0x15dc64){_0x4c5fc6['push'](_0x4c5fc6['shift']());}}}(a42_0x38d1,0x6409a));import a42_0x56f841 from'ol/layer/Tile';import a42_0x5be064 from'ol/source/XYZ';import a42_0x542da8 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';function a42_0x38d1(){const _0x4cd070=['opacity','xmin','20730wHWUUa','ymax','6950538wxLrcM','origin','8225UOmGAt','url','6182VtgGQE','spatialReference','74636jSxofB','303mrvJWA','284NbpmEz','EPSG:','length','6598TWIWkm','anonymous','wkid','tileInfo','2367824bFqxpx','480nhAsvD','fullExtent','rows','xmax','ymin','cols','resolution','12005XQZwSe','mapIndex','push','initialExtent'];a42_0x38d1=function(){return _0x4cd070;};return a42_0x38d1();}import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a42_0x56f841{constructor(_0x3922fe,_0x1db341){const _0x4a712f=a42_0x2a1c,_0x21ff25=_0x3922fe[_0x4a712f(0x177)]?_0x3922fe[_0x4a712f(0x177)]:'',_0x21c370=appendPath(_0x21ff25,'/tile/{z}/{y}/{x}'),_0x987534=[_0x1db341[_0x4a712f(0x18e)][_0x4a712f(0x171)],_0x1db341[_0x4a712f(0x18e)][_0x4a712f(0x188)],_0x1db341['initialExtent'][_0x4a712f(0x187)],_0x1db341[_0x4a712f(0x18e)]['ymax']],_0x2d25da=[_0x1db341[_0x4a712f(0x185)]['xmin'],_0x1db341[_0x4a712f(0x185)]['ymin'],_0x1db341[_0x4a712f(0x185)][_0x4a712f(0x187)],_0x1db341[_0x4a712f(0x185)][_0x4a712f(0x173)]];let _0x1bb534;_0x1db341['spatialReference'][_0x4a712f(0x181)]?_0x1bb534=registerProj(_0x4a712f(0x17d)+_0x1db341[_0x4a712f(0x179)][_0x4a712f(0x181)],_0x2d25da):_0x1bb534=registerProj(_0x1db341[_0x4a712f(0x179)]['wkt'],_0x2d25da);let _0x3e32d3=[];for(let _0x3646b0=0x0,_0x3c9413=_0x1db341['tileInfo']['lods'][_0x4a712f(0x17e)];_0x3646b0<_0x3c9413;_0x3646b0++){_0x3e32d3[_0x4a712f(0x18d)](_0x1db341[_0x4a712f(0x182)]['lods'][_0x3646b0][_0x4a712f(0x18a)]);}super({'opacity':_0x3922fe[_0x4a712f(0x170)],'zIndex':_0x3922fe[_0x4a712f(0x18c)],'maxResolution':_0x3e32d3[0x0]*0x2,'source':new a42_0x5be064({'url':_0x21c370,'projection':_0x1bb534,'crossOrigin':_0x4a712f(0x180),'tileGrid':new a42_0x542da8({'extent':_0x2d25da,'origin':[_0x1db341[_0x4a712f(0x182)][_0x4a712f(0x175)]['x'],_0x1db341['tileInfo'][_0x4a712f(0x175)]['y']],'resolutions':_0x3e32d3,'tileSize':[_0x1db341[_0x4a712f(0x182)][_0x4a712f(0x186)],_0x1db341[_0x4a712f(0x182)][_0x4a712f(0x189)]]})})}),this['id']=_0x3922fe['id'],this['initialExtent']=_0x987534,this['projection']=_0x1bb534,this['layerInfo']=_0x3922fe;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2339b6,_0x178b91){const _0x46dd9e=a43_0x5dec,_0x3d5470=_0x2339b6();while(!![]){try{const _0xb1c49d=-parseInt(_0x46dd9e(0xb9))/0x1+parseInt(_0x46dd9e(0xb6))/0x2+parseInt(_0x46dd9e(0xbe))/0x3+parseInt(_0x46dd9e(0xc6))/0x4*(parseInt(_0x46dd9e(0xb5))/0x5)+parseInt(_0x46dd9e(0xc0))/0x6*(parseInt(_0x46dd9e(0xc1))/0x7)+-parseInt(_0x46dd9e(0xba))/0x8*(parseInt(_0x46dd9e(0xbd))/0x9)+-parseInt(_0x46dd9e(0xb1))/0xa;if(_0xb1c49d===_0x178b91)break;else _0x3d5470['push'](_0x3d5470['shift']());}catch(_0x27e5f2){_0x3d5470['push'](_0x3d5470['shift']());}}}(a43_0x5211,0x814a8));function a43_0x5211(){const _0xfd2f4c=['1412144HNFECc','layerInfo','anonymous','63974dzzetx','7867272crTQfJ','wkid','CQL_FILTER','9UGKqOn','2319522mMvVUe','sublayers','6Ezphsy','917497nOiKWm','initialExtent','join','getSource','updateParams','2132792MAqYTK','loadFilter','initExtent','5665560HVviZh','mapIndex','projection','1.1.0','5ktYPOI'];a43_0x5211=function(){return _0xfd2f4c;};return a43_0x5211();}import{ImageWMS as a43_0x58d62f}from'ol/source';function a43_0x5dec(_0xa032af,_0x12b24c){const _0x5211f9=a43_0x5211();return a43_0x5dec=function(_0x5dec81,_0x2ec1b6){_0x5dec81=_0x5dec81-0xb1;let _0x1ac725=_0x5211f9[_0x5dec81];return _0x1ac725;},a43_0x5dec(_0xa032af,_0x12b24c);}import{Image as a43_0x1e0e7e}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisWMSLayer extends a43_0x1e0e7e{constructor(_0x276398,_0x3362a0){const _0x3a3c21=a43_0x5dec;var _0x2e9bb7;let _0x7a9454=registerProj('EPSG:'+_0x3362a0[_0x3a3c21(0xbb)],undefined),_0x2bf3db={'LAYERS':(_0x2e9bb7=_0x276398[_0x3a3c21(0xbf)])===null||_0x2e9bb7===void 0x0?void 0x0:_0x2e9bb7[_0x3a3c21(0xc3)](','),'VERSION':_0x3a3c21(0xb4)};_0x276398['loadFilter']&&(_0x2bf3db[_0x3a3c21(0xbc)]=_0x276398[_0x3a3c21(0xc7)]),super({'opacity':_0x276398['opacity'],'zIndex':_0x276398[_0x3a3c21(0xb2)],'source':new a43_0x58d62f({'crossOrigin':_0x3a3c21(0xb8),'url':_0x276398['url'],'params':_0x2bf3db})}),this['id']=_0x276398['id'],this[_0x3a3c21(0xc2)]=_0x3362a0[_0x3a3c21(0xc8)],this[_0x3a3c21(0xb3)]=_0x7a9454,this[_0x3a3c21(0xb7)]=_0x276398;}['refresh'](){}['setFilter'](_0x554002){const _0x458353=a43_0x5dec;var _0x4b5494;(_0x4b5494=this[_0x458353(0xc4)]())===null||_0x4b5494===void 0x0?void 0x0:_0x4b5494[_0x458353(0xc5)]({'CQL_FILTER':_0x554002});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1394af,_0x3d77c4){const _0x11bd0f=a44_0x2816,_0x730fd=_0x1394af();while(!![]){try{const _0x9e5755=parseInt(_0x11bd0f(0x71))/0x1+parseInt(_0x11bd0f(0x86))/0x2*(-parseInt(_0x11bd0f(0x90))/0x3)+parseInt(_0x11bd0f(0x8b))/0x4*(-parseInt(_0x11bd0f(0x81))/0x5)+parseInt(_0x11bd0f(0x85))/0x6+parseInt(_0x11bd0f(0x8a))/0x7*(parseInt(_0x11bd0f(0x84))/0x8)+parseInt(_0x11bd0f(0x73))/0x9+parseInt(_0x11bd0f(0x82))/0xa*(-parseInt(_0x11bd0f(0x8c))/0xb);if(_0x9e5755===_0x3d77c4)break;else _0x730fd['push'](_0x730fd['shift']());}catch(_0x241b9a){_0x730fd['push'](_0x730fd['shift']());}}}(a44_0x5bcf,0x7e531));import a44_0x3fb8f3 from'ol/layer/Tile';function a44_0x5bcf(){const _0x47ce24=['projection','join','indexOf','tileGrid','image/png','layerInfo','opacity','value','2576780XhvEdu','244690UhYQir','format','24VcpOvz','2797062sIGsCl','514760IPgMBo','origins_','getMatrixIds','length','1021265dblEII','8FemdJf','297SAyOwN','mapIndex','matrixSet','sourceXml','6NAgHvM','boundingBoxExtent','sublayers','EPSG:','tileMatrixSet','layer','?http','getImage','token','989613ecDmXD','url','7470765gBNMew','wkid','src','requestEncoding','replace','name'];a44_0x5bcf=function(){return _0x47ce24;};return a44_0x5bcf();}import a44_0x5a007f,{optionsFromCapabilities}from'ol/source/WMTS.js';import a44_0x236c94 from'ol/tilegrid/WMTS';function a44_0x2816(_0x2a6eb4,_0x2fba67){const _0x5bcf8d=a44_0x5bcf();return a44_0x2816=function(_0x28161e,_0x40087e){_0x28161e=_0x28161e-0x6c;let _0x126e63=_0x5bcf8d[_0x28161e];return _0x126e63;},a44_0x2816(_0x2a6eb4,_0x2fba67);}import{registerProj}from'../utils/RegisterProjUtil';import{addArgument,getUrlParams}from'../utils/UrlUtil';export default class ArcgisWMTSLayer extends a44_0x3fb8f3{constructor(_0x56b0cf,_0x354942){const _0x3a2943=a44_0x2816;var _0x5bd32f;let _0x55b826='';_0x56b0cf[_0x3a2943(0x92)]&&_0x56b0cf[_0x3a2943(0x92)][_0x3a2943(0x89)]>0x0&&(_0x55b826=_0x56b0cf[_0x3a2943(0x92)][_0x3a2943(0x7a)](','));const _0x13cfe4=_0x3a2943(0x93)+_0x354942[_0x3a2943(0x74)];let _0x36df6e=registerProj(_0x13cfe4);const _0x50c1c5=optionsFromCapabilities(_0x354942[_0x3a2943(0x8f)],{'layer':(_0x5bd32f=_0x56b0cf[_0x3a2943(0x92)])===null||_0x5bd32f===void 0x0?void 0x0:_0x5bd32f[0x0],'matrixSet':_0x354942[_0x3a2943(0x6c)],'format':_0x3a2943(0x7d)});let _0xec2f12=_0x50c1c5[_0x3a2943(0x7c)][_0x3a2943(0x87)][0x0];_0xec2f12[0x0]===0x5a&&_0xec2f12[0x1]===-0xb4&&(_0xec2f12=[_0xec2f12[0x1],_0xec2f12[0x0]]),super({'opacity':_0x56b0cf[_0x3a2943(0x7f)],'zIndex':_0x56b0cf[_0x3a2943(0x8d)],'source':new a44_0x5a007f({'urls':_0x50c1c5['urls'],'requestEncoding':_0x50c1c5[_0x3a2943(0x76)],'layer':_0x50c1c5[_0x3a2943(0x6d)],'tileLoadFunction':function(_0x3423b9,_0x5692e4){const _0x1c98b5=_0x3a2943,_0x4d1595=_0x56b0cf[_0x1c98b5(0x72)]?_0x56b0cf['url']:'';let _0xa1f6c8=getUrlParams(_0x4d1595);if((_0xa1f6c8===null||_0xa1f6c8===void 0x0?void 0x0:_0xa1f6c8[_0x1c98b5(0x89)])>0x0)for(let _0x1964ab of _0xa1f6c8){_0x5692e4=addArgument(_0x5692e4,_0x1964ab[_0x1c98b5(0x78)],_0x1964ab[_0x1c98b5(0x80)]);}let _0x5796bf=_0x5692e4[_0x1c98b5(0x7b)](_0x1c98b5(0x6e));_0x5796bf!==-0x1?_0x5692e4[_0x1c98b5(0x7b)](_0x1c98b5(0x70))===-0x1&&_0x5692e4[_0x1c98b5(0x7b)]('tk')===-0x1?_0x3423b9[_0x1c98b5(0x6f)]()[_0x1c98b5(0x75)]=_0x5692e4[_0x1c98b5(0x77)]('&','?'):_0x3423b9['getImage']()['src']=_0x5692e4:_0x3423b9['getImage']()[_0x1c98b5(0x75)]=_0x5692e4;},'matrixSet':_0x50c1c5[_0x3a2943(0x8e)],'format':_0x50c1c5[_0x3a2943(0x83)],'projection':_0x50c1c5[_0x3a2943(0x79)],'tileGrid':new a44_0x236c94({'origin':_0xec2f12,'resolutions':_0x50c1c5[_0x3a2943(0x7c)]['getResolutions'](),'matrixIds':_0x50c1c5[_0x3a2943(0x7c)][_0x3a2943(0x88)](),'extent':_0x354942[_0x3a2943(0x91)]}),'style':_0x354942['style'],'wrapX':!![]})}),this['id']=_0x56b0cf['id'],this['initialExtent']=_0x354942[_0x3a2943(0x91)],this[_0x3a2943(0x79)]=_0x36df6e,this[_0x3a2943(0x7e)]=_0x56b0cf;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5992ab,_0x1df758){const _0x2f95cd=a45_0x1a60,_0x740bac=_0x5992ab();while(!![]){try{const _0x51d77e=-parseInt(_0x2f95cd(0xd1))/0x1+parseInt(_0x2f95cd(0xd4))/0x2*(parseInt(_0x2f95cd(0xdb))/0x3)+parseInt(_0x2f95cd(0xd6))/0x4*(parseInt(_0x2f95cd(0xc0))/0x5)+parseInt(_0x2f95cd(0xe2))/0x6+-parseInt(_0x2f95cd(0xcb))/0x7*(parseInt(_0x2f95cd(0xd5))/0x8)+-parseInt(_0x2f95cd(0xda))/0x9+-parseInt(_0x2f95cd(0xc2))/0xa;if(_0x51d77e===_0x1df758)break;else _0x740bac['push'](_0x740bac['shift']());}catch(_0x1f949b){_0x740bac['push'](_0x740bac['shift']());}}}(a45_0x3bcf,0x576d0));import a45_0x53d66b from'ol/layer/VectorTile';import a45_0x4d82d3 from'ol/source/VectorTile';function a45_0x1a60(_0x4b7784,_0x264fbb){const _0x3bcf86=a45_0x3bcf();return a45_0x1a60=function(_0x1a606f,_0x2ca2b2){_0x1a606f=_0x1a606f-0xc0;let _0x60954=_0x3bcf86[_0x1a606f];return _0x60954;},a45_0x1a60(_0x4b7784,_0x264fbb);}import a45_0x25841f from'ol/format/MVT';import{registerProj}from'../utils/RegisterProjUtil';import a45_0x1c1d94 from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';import{addArgument}from'../utils/UrlUtil';function a45_0x3bcf(){const _0x2a76c1=['image/png','tileGrid','boundingBoxExtent','685496cOUTiK','{y}','tileSizes_','311606pTSbTs','8zuzoLe','794932ZZJLkJ','tileMatrixSet','WMTS','wkid','1365336seQTNn','9bSGoeJ','length','opacity','getMatrixIds','sourceXml','style',':{z}','3802926MQnHon','15pSOIai','toString','3695260kQfsOo','url','layerInfo','origins_','projection','mapIndex','getResolutions','sublayers','1.0.0','928249TVFwLR','EPSG:','application/vnd.mapbox-vector-tile'];a45_0x3bcf=function(){return _0x2a76c1;};return a45_0x3bcf();}export default class GeoserverVectorTileLayer extends a45_0x53d66b{constructor(_0x274799,_0x4c39fa){const _0x1af46c=a45_0x1a60;var _0x219d18;let _0x17001f=registerProj(_0x1af46c(0xcc)+_0x4c39fa[_0x1af46c(0xd9)]);const _0x2f29b6=optionsFromCapabilities(_0x4c39fa[_0x1af46c(0xdf)],{'layer':(_0x219d18=_0x274799['sublayers'])===null||_0x219d18===void 0x0?void 0x0:_0x219d18[0x0],'matrixSet':_0x4c39fa[_0x1af46c(0xd7)],'format':_0x1af46c(0xce)});let _0x2aa330=_0x274799[_0x1af46c(0xc9)]&&_0x274799[_0x1af46c(0xc9)][_0x1af46c(0xdc)]>0x0?_0x274799[_0x1af46c(0xc9)][0x0]:'';const _0x919ac5={'REQUEST':'GetTile','SERVICE':_0x1af46c(0xd8),'VERSION':_0x1af46c(0xca),'LAYER':_0x2aa330,'STYLE':_0x4c39fa[_0x1af46c(0xe0)][_0x1af46c(0xc1)](),'TILEMATRIX':_0x4c39fa['tileMatrixSet']+_0x1af46c(0xe1),'TILEMATRIXSET':_0x4c39fa[_0x1af46c(0xd7)]['toString'](),'FORMAT':_0x1af46c(0xcd),'TILECOL':'{x}','TILEROW':_0x1af46c(0xd2)};let _0x49f503=_0x274799[_0x1af46c(0xc3)]?_0x274799[_0x1af46c(0xc3)]:'';for(const _0xa82d7a in _0x919ac5){_0x49f503=addArgument(_0x49f503,_0xa82d7a,_0x919ac5[_0xa82d7a]);}super({'opacity':_0x274799[_0x1af46c(0xdd)],'zIndex':_0x274799[_0x1af46c(0xc7)],'declutter':!![],'source':new a45_0x4d82d3({'projection':'EPSG:'+_0x4c39fa[_0x1af46c(0xd9)],'format':new a45_0x25841f(),'wrapX':!![],'extent':_0x4c39fa[_0x1af46c(0xd0)],'tileGrid':new a45_0x1c1d94({'tileSize':_0x2f29b6[_0x1af46c(0xcf)][_0x1af46c(0xd3)][0x0],'origin':_0x2f29b6['tileGrid'][_0x1af46c(0xc5)][0x0],'resolutions':_0x2f29b6[_0x1af46c(0xcf)][_0x1af46c(0xc8)](),'matrixIds':_0x2f29b6['tileGrid'][_0x1af46c(0xde)]()}),'url':_0x49f503})}),this['id']=_0x274799['id'],this['initialExtent']=_0x4c39fa['boundingBoxExtent'],this[_0x1af46c(0xc6)]=_0x17001f,this[_0x1af46c(0xc4)]=_0x274799;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x35bf20=a46_0x5e0b;(function(_0x1b0bbf,_0x27d3ab){const _0x21d392=a46_0x5e0b,_0x482aa6=_0x1b0bbf();while(!![]){try{const _0x2f323a=-parseInt(_0x21d392(0x1ac))/0x1+parseInt(_0x21d392(0x196))/0x2*(-parseInt(_0x21d392(0x1a2))/0x3)+parseInt(_0x21d392(0x1ae))/0x4*(parseInt(_0x21d392(0x1b0))/0x5)+-parseInt(_0x21d392(0x19a))/0x6+-parseInt(_0x21d392(0x19f))/0x7+-parseInt(_0x21d392(0x193))/0x8+parseInt(_0x21d392(0x187))/0x9;if(_0x2f323a===_0x27d3ab)break;else _0x482aa6['push'](_0x482aa6['shift']());}catch(_0x43c964){_0x482aa6['push'](_0x482aa6['shift']());}}}(a46_0x484a,0x3d1c5));import a46_0x29fa53 from'ol/source/Vector';import a46_0xb7f06e from'ol/format/GeoJSON';import{Vector as a46_0x4fdce3}from'ol/layer';import a46_0xdb26a5 from'ol/format/WFS';import{registerProj}from'../utils/RegisterProjUtil';function a46_0x484a(){const _0x4c774d=['55EhPGoj','name','between','greaterThanOrEqualTo','toLowerCase','initExtent','param','find','addFeatures','6909471XwOgxV','and','getCode','length','loadFilter','parseFilter','push','type字段不存在','then','fieldType','layerFields','notEqualTo','1155608kaibgo','json','wkid','45832GyAkxc','mapIndex','catch','removeLoadedExtent','2005254NBrHTc','apply','equalTo','layerInfo','sublayers','1310883pIegZO','not','string','6FGeudm','type','readFeatures','url','greaterThan','application/json','warn','writeGetFeature','EPSG:','param字段不存在','241106CUYwxE','getSource','158348ZfoFCg','filter'];a46_0x484a=function(){return _0x4c774d;};return a46_0x484a();}import{bbox}from'ol/loadingstrategy';import a46_0x3fd7c1 from'../utils/format/CQL';import*as a46_0x916c99 from'ol/format/filter';function a46_0x5e0b(_0xe9da8a,_0x5dc766){const _0x484a22=a46_0x484a();return a46_0x5e0b=function(_0x5e0b2a,_0x386267){_0x5e0b2a=_0x5e0b2a-0x181;let _0x2d5d33=_0x484a22[_0x5e0b2a];return _0x2d5d33;},a46_0x5e0b(_0xe9da8a,_0x5dc766);}export default class GeoserverWFSLayer extends a46_0x4fdce3{constructor(_0x43ea3c,_0x2549bc){const _0x11bbb0=a46_0x5e0b;let _0x54f855=registerProj(_0x11bbb0(0x1aa)+_0x2549bc[_0x11bbb0(0x195)]);const _0xfdc82b=_0x2549bc[_0x11bbb0(0x191)][_0x11bbb0(0x185)](_0x7a5ab8=>_0x7a5ab8[_0x11bbb0(0x190)]==0x6);super({'zIndex':_0x43ea3c[_0x11bbb0(0x197)],'source':new a46_0x29fa53({'format':new a46_0xb7f06e(),'loader':(_0x401d3b,_0x312722,_0x45df6a,_0x4fd69e,_0x23afe9)=>{const _0x346925=_0x11bbb0;let _0x16cecb=_0x43ea3c[_0x346925(0x18b)],_0x4f5adb={'srsName':_0x45df6a[_0x346925(0x189)](),'featureTypes':_0x43ea3c[_0x346925(0x19e)],'bbox':_0x401d3b,'geometryName':_0xfdc82b?_0xfdc82b[_0x346925(0x1b1)]:'','outputFormat':_0x346925(0x1a7)};_0x16cecb&&(typeof _0x16cecb===_0x346925(0x1a1)?_0x4f5adb['filter']=new a46_0x3fd7c1()['read'](_0x16cecb):_0x4f5adb[_0x346925(0x1af)]=this[_0x346925(0x18c)](_0x16cecb));var _0x33f7a5=new a46_0xdb26a5()[_0x346925(0x1a9)](_0x4f5adb);let _0x5badf9=_0x43ea3c[_0x346925(0x1a5)]?_0x43ea3c[_0x346925(0x1a5)]:'';fetch(_0x5badf9,{'method':'POST','body':new XMLSerializer()['serializeToString'](_0x33f7a5)})[_0x346925(0x18f)](_0x5d0dfd=>{const _0xada731=_0x346925;return _0x5d0dfd[_0xada731(0x194)]();})['then'](_0x4f03be=>{const _0x14287e=_0x346925,_0x4fa08c=new a46_0xb7f06e()[_0x14287e(0x1a4)](_0x4f03be);let _0xe1a552=this['getSource']();_0xe1a552&&_0xe1a552[_0x14287e(0x186)](_0x4fa08c);if(_0x4fd69e)_0x4fd69e(_0x4fa08c);})[_0x346925(0x198)](()=>{const _0x5dbc34=_0x346925;let _0x104ad8=this[_0x5dbc34(0x1ad)]();_0x104ad8&&_0x104ad8[_0x5dbc34(0x199)](_0x401d3b);if(_0x23afe9)_0x23afe9();});},'strategy':bbox})}),this['id']=_0x43ea3c['id'],this['initialExtent']=_0x2549bc[_0x11bbb0(0x183)],this['projection']=_0x54f855,this[_0x11bbb0(0x19d)]=_0x43ea3c;}[a46_0x35bf20(0x18c)](_0x1daa69){const _0x44f113=a46_0x35bf20;if(!_0x1daa69['type']){console[_0x44f113(0x1a8)](_0x44f113(0x18e));return;}if(!_0x1daa69['param']){console['warn'](_0x44f113(0x1ab));return;}let _0x237c1f=[];switch(_0x1daa69[_0x44f113(0x1a3)][_0x44f113(0x182)]()){case _0x44f113(0x188):for(let _0x3ba9ea=0x0;_0x3ba9ea<_0x1daa69['param'][_0x44f113(0x18a)];_0x3ba9ea++){let _0x48deed=this['parseFilter'](_0x1daa69[_0x44f113(0x184)][_0x3ba9ea]);_0x237c1f[_0x44f113(0x18d)](_0x48deed);}return a46_0x916c99[_0x44f113(0x188)]['apply'](null,_0x237c1f);case'or':for(let _0x2bb2ca=0x0;_0x2bb2ca<_0x1daa69[_0x44f113(0x184)][_0x44f113(0x18a)];_0x2bb2ca++){let _0x45541c=this['parseFilter'](_0x1daa69[_0x44f113(0x184)][_0x2bb2ca]);_0x237c1f[_0x44f113(0x18d)](_0x45541c);}return a46_0x916c99['or'][_0x44f113(0x19b)](null,_0x237c1f);case'not':for(let _0x32c29b=0x0;_0x32c29b<_0x1daa69['param'][_0x44f113(0x18a)];_0x32c29b++){let _0xa60357=this[_0x44f113(0x18c)](_0x1daa69[_0x44f113(0x184)][_0x32c29b]);_0x237c1f['push'](_0xa60357);}return a46_0x916c99[_0x44f113(0x1a0)][_0x44f113(0x19b)](null,_0x237c1f);case'=':return a46_0x916c99[_0x44f113(0x19c)](_0x1daa69[_0x44f113(0x184)][0x0],_0x1daa69['param'][0x1]);case'!==':return a46_0x916c99[_0x44f113(0x192)](_0x1daa69[_0x44f113(0x184)][0x0],_0x1daa69['param'][0x1]);case'>':return a46_0x916c99[_0x44f113(0x1a6)](_0x1daa69['param'][0x0],_0x1daa69[_0x44f113(0x184)][0x1]);case'<':return a46_0x916c99['lessThan'](_0x1daa69[_0x44f113(0x184)][0x0],_0x1daa69[_0x44f113(0x184)][0x1]);case'>=':return a46_0x916c99[_0x44f113(0x181)](_0x1daa69[_0x44f113(0x184)][0x0],_0x1daa69['param'][0x1]);case'<=':return a46_0x916c99['lessThanOrEqualTo'](_0x1daa69[_0x44f113(0x184)][0x0],_0x1daa69[_0x44f113(0x184)][0x1]);case _0x44f113(0x1b2):return a46_0x916c99[_0x44f113(0x1b2)](_0x1daa69[_0x44f113(0x184)][0x0],_0x1daa69[_0x44f113(0x184)][0x1],_0x1daa69[_0x44f113(0x184)][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x5bcd19=a47_0x2d69;(function(_0x1b7e96,_0x30d9f6){const _0x2acd3b=a47_0x2d69,_0x104a0f=_0x1b7e96();while(!![]){try{const _0x4624c8=-parseInt(_0x2acd3b(0x8f))/0x1*(parseInt(_0x2acd3b(0x96))/0x2)+-parseInt(_0x2acd3b(0x94))/0x3*(parseInt(_0x2acd3b(0x99))/0x4)+parseInt(_0x2acd3b(0x9f))/0x5*(parseInt(_0x2acd3b(0x95))/0x6)+-parseInt(_0x2acd3b(0x97))/0x7+parseInt(_0x2acd3b(0x9e))/0x8*(-parseInt(_0x2acd3b(0x90))/0x9)+parseInt(_0x2acd3b(0x93))/0xa*(-parseInt(_0x2acd3b(0x9d))/0xb)+parseInt(_0x2acd3b(0xa3))/0xc;if(_0x4624c8===_0x30d9f6)break;else _0x104a0f['push'](_0x104a0f['shift']());}catch(_0x56009d){_0x104a0f['push'](_0x104a0f['shift']());}}}(a47_0x36e1,0xcce4d));import{ImageWMS as a47_0x55c187}from'ol/source';import{Image as a47_0x459f0c}from'ol/layer';function a47_0x2d69(_0x4b9463,_0x4fa6ee){const _0x36e1d5=a47_0x36e1();return a47_0x2d69=function(_0x2d6906,_0x20d698){_0x2d6906=_0x2d6906-0x8e;let _0xa12e5e=_0x36e1d5[_0x2d6906];return _0xa12e5e;},a47_0x2d69(_0x4b9463,_0x4fa6ee);}function a47_0x36e1(){const _0x2d364e=['opacity','join','1.1.0','sublayers','setFilter','1BUyEWy','14337OuOcuo','mapIndex','initExtent','10mPjHmj','2178144XrUoZe','78hVtAyd','1737932IOgFDf','4600001cMFIbg','updateParams','8Nkfktk','wkid','layerInfo','loadFilter','5885462JqZQFe','1576ddxzmu','580665RSVLeB','projection','EPSG:','getSource','37879008JrhWYe'];a47_0x36e1=function(){return _0x2d364e;};return a47_0x36e1();}import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMSLayer extends a47_0x459f0c{constructor(_0xe759a9,_0x12a907){const _0x3f1c6b=a47_0x2d69;var _0x25e23a;let _0x1197e2=registerProj(_0x3f1c6b(0xa1)+_0x12a907[_0x3f1c6b(0x9a)]),_0x444e4b={'LAYERS':(_0x25e23a=_0xe759a9[_0x3f1c6b(0xa7)])===null||_0x25e23a===void 0x0?void 0x0:_0x25e23a[_0x3f1c6b(0xa5)](','),'VERSION':_0x3f1c6b(0xa6)};_0xe759a9[_0x3f1c6b(0x9c)]&&(_0x444e4b['CQL_FILTER']=_0xe759a9[_0x3f1c6b(0x9c)]),super({'opacity':_0xe759a9[_0x3f1c6b(0xa4)],'zIndex':_0xe759a9[_0x3f1c6b(0x91)],'source':new a47_0x55c187({'crossOrigin':'anonymous','url':_0xe759a9['url'],'params':_0x444e4b})}),this['id']=_0xe759a9['id'],this['initialExtent']=_0x12a907[_0x3f1c6b(0x92)],this[_0x3f1c6b(0xa0)]=_0x1197e2,this[_0x3f1c6b(0x9b)]=_0xe759a9;}['refresh'](){}[a47_0x5bcd19(0x8e)](_0x8f6e09){const _0x4f506a=a47_0x5bcd19;var _0x181afe;(_0x181afe=this[_0x4f506a(0xa2)]())===null||_0x181afe===void 0x0?void 0x0:_0x181afe[_0x4f506a(0x98)]({'CQL_FILTER':_0x8f6e09});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x54b3ca,_0x4821a1){const _0x50ded1=a48_0x1d78,_0x5442be=_0x54b3ca();while(!![]){try{const _0x29dd9c=parseInt(_0x50ded1(0x1c2))/0x1*(-parseInt(_0x50ded1(0x1b7))/0x2)+parseInt(_0x50ded1(0x1bf))/0x3+-parseInt(_0x50ded1(0x1c5))/0x4*(-parseInt(_0x50ded1(0x1c7))/0x5)+-parseInt(_0x50ded1(0x1bd))/0x6+-parseInt(_0x50ded1(0x1be))/0x7+parseInt(_0x50ded1(0x1bc))/0x8+-parseInt(_0x50ded1(0x1c6))/0x9;if(_0x29dd9c===_0x4821a1)break;else _0x5442be['push'](_0x5442be['shift']());}catch(_0x39631e){_0x5442be['push'](_0x5442be['shift']());}}}(a48_0x174b,0xa9481));import a48_0x4160fa from'ol/layer/Tile';import a48_0x1fdfb7,{optionsFromCapabilities}from'ol/source/WMTS.js';import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMTSLayer extends a48_0x4160fa{constructor(_0x2546e1,_0x3e5722){const _0x263693=a48_0x1d78;var _0x278bee;const _0xd1d832='EPSG:'+_0x3e5722['wkid'];let _0x49fd8f=registerProj(_0xd1d832);if(!_0x49fd8f)throw new Error(_0x263693(0x1c3));const _0x5dc243=optionsFromCapabilities(_0x3e5722['sourceXml'],{'layer':(_0x278bee=_0x2546e1[_0x263693(0x1b9)])===null||_0x278bee===void 0x0?void 0x0:_0x278bee[0x0],'matrixSet':_0x3e5722['tileMatrixSet'],'format':_0x263693(0x1b8)});if(!_0x5dc243)throw new Error(_0x263693(0x1bb));super({'opacity':_0x2546e1[_0x263693(0x1c4)],'zIndex':_0x2546e1[_0x263693(0x1c1)],'source':new a48_0x1fdfb7(_0x5dc243)}),this['id']=_0x2546e1['id'],this[_0x263693(0x1b6)]=_0x3e5722[_0x263693(0x1ba)],this[_0x263693(0x1c0)]=_0x49fd8f,this['layerInfo']=_0x2546e1;}}function a48_0x1d78(_0x59f563,_0x4c7945){const _0x174b25=a48_0x174b();return a48_0x1d78=function(_0x1d78e7,_0x4f2aee){_0x1d78e7=_0x1d78e7-0x1b6;let _0xc79bbb=_0x174b25[_0x1d78e7];return _0xc79bbb;},a48_0x1d78(_0x59f563,_0x4c7945);}function a48_0x174b(){const _0x4a9dc5=['761457bXfgkh','projection','mapIndex','3276oOemhe','未找到投影信息','opacity','31564NFjgrg','631107NPIYuH','710bBGFWN','initialExtent','94plAckK','image/png','sublayers','boundingBoxExtent','解析元数据失败','4873048dqmZoo','3703656trSBWg','3141068HCbAnW'];a48_0x174b=function(){return _0x4a9dc5;};return a48_0x174b();}
|