ym-gis-2d 1.0.36 → 1.0.38
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.d.ts +2 -0
- package/controls/SwipeLayerControl.d.ts.map +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/controls/SwipeLayerControl.js.map +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Difference.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Modify.d.ts +3 -3
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +1 -1
- package/interaction/Modify.js.map +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.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.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
|
+
function a69_0x4da7(){const _0x120cbb=['15630hYBtqW','length','4877028uNquuV','10840KpZISB','isPlot','parse','96220ruLHXa','points','generate','1526412AbUWNu','updateLastPoint','_closed','push','18912660WPtoDM','setCoordinates','38FrPSCu','updatePoint','Polygon','3094XJjpdy','40229IqJdXd','9GcUTYe'];a69_0x4da7=function(){return _0x120cbb;};return a69_0x4da7();}const a69_0x83eb07=a69_0x2d6e;(function(_0x2029be,_0x20d7a4){const _0x5ab454=a69_0x2d6e,_0x286361=_0x2029be();while(!![]){try{const _0x24882d=-parseInt(_0x5ab454(0x115))/0x1*(-parseInt(_0x5ab454(0x111))/0x2)+-parseInt(_0x5ab454(0x117))/0x3+-parseInt(_0x5ab454(0x120))/0x4+parseInt(_0x5ab454(0x11d))/0x5+-parseInt(_0x5ab454(0x119))/0x6+parseInt(_0x5ab454(0x114))/0x7*(-parseInt(_0x5ab454(0x11a))/0x8)+-parseInt(_0x5ab454(0x116))/0x9*(-parseInt(_0x5ab454(0x10f))/0xa);if(_0x24882d===_0x20d7a4)break;else _0x286361['push'](_0x286361['shift']());}catch(_0xa2e678){_0x286361['push'](_0x286361['shift']());}}}(a69_0x4da7,0xd5f0c));function a69_0x2d6e(_0x4e5e34,_0x428cd0){const _0x4da770=a69_0x4da7();return a69_0x2d6e=function(_0x2d6e8b,_0x542c52){_0x2d6e8b=_0x2d6e8b-0x10e;let _0x43d19c=_0x4da770[_0x2d6e8b];return _0x43d19c;},a69_0x2d6e(_0x4e5e34,_0x428cd0);}import a69_0x273acf from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';class Polygon extends a69_0x273acf{constructor(_0x503240){const _0x264f43=a69_0x2d6e;super(),this['type']=_0x264f43(0x113),_0x503240&&_0x503240[_0x264f43(0x118)]>0x0&&getDeepth(_0x503240)==0x2?this['setPoints'](_0x503240):this[_0x264f43(0x110)](_0x503240);}[a69_0x83eb07(0x122)](_0x3875b0){const _0x5354d4=a69_0x83eb07;let _0x5c6614=_0x3875b0[0x0],_0x3eef1b=_0x3875b0[_0x3875b0[_0x5354d4(0x118)]-0x1];return _0x5c6614[0x0]===_0x3eef1b[0x0]&&_0x5c6614[0x1]===_0x3eef1b[0x1]&&_0x5c6614[0x2]===_0x3eef1b[0x2];}[a69_0x83eb07(0x11f)](){const _0x4b692f=a69_0x83eb07;let _0x5bddc8=this['getPointCount']();if(_0x5bddc8<0x2)return![];else{let _0x44c65f=JSON[_0x4b692f(0x11c)](JSON['stringify'](this[_0x4b692f(0x11e)]));_0x5bddc8>=0x3&&(!this[_0x4b692f(0x122)](_0x44c65f)&&_0x44c65f[_0x4b692f(0x10e)](_0x44c65f[0x0])),this['setCoordinates']([_0x44c65f]);}}[a69_0x83eb07(0x112)](_0x11d006,_0x355ba8){const _0xcbbfae=a69_0x83eb07;_0x355ba8>=0x0&&_0x355ba8<this[_0xcbbfae(0x11e)]['length']&&(this['points'][_0x355ba8]=_0x11d006,this[_0xcbbfae(0x11f)]());}[a69_0x83eb07(0x11b)](){return![];}[a69_0x83eb07(0x121)](_0x33c408){const _0x14b241=a69_0x83eb07;this[_0x14b241(0x112)](_0x33c408,this[_0x14b241(0x11e)]['length']-0x1);}}export default Polygon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x53f9eb=a70_0x4a28;(function(_0x2ba2f3,_0x1ab152){const _0x42c6f7=a70_0x4a28,_0x2df922=_0x2ba2f3();while(!![]){try{const _0x3516a6=-parseInt(_0x42c6f7(0x190))/0x1*(-parseInt(_0x42c6f7(0x198))/0x2)+-parseInt(_0x42c6f7(0x194))/0x3+-parseInt(_0x42c6f7(0x19f))/0x4*(parseInt(_0x42c6f7(0x18e))/0x5)+-parseInt(_0x42c6f7(0x195))/0x6*(parseInt(_0x42c6f7(0x19a))/0x7)+-parseInt(_0x42c6f7(0x19c))/0x8+-parseInt(_0x42c6f7(0x19e))/0x9+parseInt(_0x42c6f7(0x197))/0xa*(parseInt(_0x42c6f7(0x19b))/0xb);if(_0x3516a6===_0x1ab152)break;else _0x2df922['push'](_0x2df922['shift']());}catch(_0x43c9af){_0x2df922['push'](_0x2df922['shift']());}}}(a70_0x1f4f,0x52da2));function a70_0x4a28(_0x5c3f74,_0x260f68){const _0x1f4f0c=a70_0x1f4f();return a70_0x4a28=function(_0x4a28ed,_0x31a7b4){_0x4a28ed=_0x4a28ed-0x18d;let _0x55b813=_0x1f4f0c[_0x4a28ed];return _0x55b813;},a70_0x4a28(_0x5c3f74,_0x260f68);}import{fromExtent}from'ol/geom/Polygon';import{boundingExtent}from'ol/extent';import a70_0x42bce7 from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';class RectAngle extends a70_0x42bce7{constructor(_0x2752f2){const _0x1d5e14=a70_0x4a28;super(),this[_0x1d5e14(0x191)]='Polygon',_0x2752f2&&_0x2752f2['length']>0x0&&getDeepth(_0x2752f2)==0x2?this[_0x1d5e14(0x193)](_0x2752f2):this[_0x1d5e14(0x196)](_0x2752f2);}['generate'](){const _0xdc6904=a70_0x4a28;if(this['points'][_0xdc6904(0x19d)]===0x2){let _0x3d2d76=[],_0x7a999c=boundingExtent(this[_0xdc6904(0x18f)]),_0x105eb1=fromExtent(_0x7a999c);_0x3d2d76=_0x105eb1[_0xdc6904(0x199)](),this[_0xdc6904(0x196)](_0x3d2d76);}}['updatePoint'](_0xf91f3b,_0x3fab05){const _0x550232=a70_0x4a28;_0x3fab05>=0x0&&_0x3fab05<this[_0x550232(0x18f)][_0x550232(0x19d)]&&(this[_0x550232(0x18f)][_0x3fab05]=_0xf91f3b,this['generate']());}[a70_0x53f9eb(0x192)](_0x397117){const _0x1d312f=a70_0x53f9eb;this[_0x1d312f(0x18d)](_0x397117,this[_0x1d312f(0x18f)][_0x1d312f(0x19d)]-0x1);}}function a70_0x1f4f(){const _0x50f310=['692139bElZnc','21642ESRQJt','setCoordinates','125570qSotMh','565914sTIYgx','getCoordinates','322XeSYqL','1034aWJpII','1482968kBLoXX','length','1587960UwVCZf','4LWlpNh','updatePoint','1827535ufXkzo','points','1KIWxpA','type','updateLastPoint','setPoints'];a70_0x1f4f=function(){return _0x50f310;};return a70_0x1f4f();}export default RectAngle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a71_0x59fc(_0x33d1dd,_0x20f97a){var _0x602278=a71_0x6022();return a71_0x59fc=function(_0x59fc16,_0x10ac29){_0x59fc16=_0x59fc16-0x141;var _0x350714=_0x602278[_0x59fc16];return _0x350714;},a71_0x59fc(_0x33d1dd,_0x20f97a);}function a71_0x6022(){var _0x4fa5bd=['58jMaCuR','getMap','21PZvkCx','generate','points','52349WjeIog','getPlotType','finishDrawing','parse','4313577ZLnDDk','9ELpDoy','4cGyWyQ','getGeoJson','setMap','slice','8925528PsxtIn','getPointCount','28368626yciVFr','5012630HHRAty','style','length','stringify','setStyle','getPoints','17043540bDIIMG','3298098patCSW','传入的不是地图对象!','map'];a71_0x6022=function(){return _0x4fa5bd;};return a71_0x6022();}var a71_0x2b67be=a71_0x59fc;(function(_0x191406,_0x4879c2){var _0x9c09c7=a71_0x59fc,_0x448e28=_0x191406();while(!![]){try{var _0x3ca27b=-parseInt(_0x9c09c7(0x145))/0x1*(-parseInt(_0x9c09c7(0x15c))/0x2)+-parseInt(_0x9c09c7(0x149))/0x3*(parseInt(_0x9c09c7(0x14b))/0x4)+-parseInt(_0x9c09c7(0x152))/0x5+parseInt(_0x9c09c7(0x159))/0x6*(parseInt(_0x9c09c7(0x142))/0x7)+-parseInt(_0x9c09c7(0x14f))/0x8*(-parseInt(_0x9c09c7(0x14a))/0x9)+parseInt(_0x9c09c7(0x158))/0xa+-parseInt(_0x9c09c7(0x151))/0xb;if(_0x3ca27b===_0x4879c2)break;else _0x448e28['push'](_0x448e28['shift']());}catch(_0x4943bb){_0x448e28['push'](_0x448e28['shift']());}}}(a71_0x6022,0xec4b8));import{LineString}from'ol/geom';import a71_0x57eb94 from'ol/format/GeoJSON';import a71_0x151a65 from'../../../mapView/Map';class Plot extends LineString{constructor(){super([]),this['points']=[];}[a71_0x2b67be(0x146)](){return this['type'];}[a71_0x2b67be(0x14c)](){return new a71_0x57eb94()['writeGeometryObject'](this);}[a71_0x2b67be(0x156)](_0x533976){var _0x572254=a71_0x2b67be;this[_0x572254(0x153)]=JSON[_0x572254(0x148)](JSON[_0x572254(0x155)](_0x533976));}[a71_0x2b67be(0x14d)](_0x328240){var _0x32e8bc=a71_0x2b67be;if(_0x328240&&_0x328240 instanceof a71_0x151a65)this[_0x32e8bc(0x15b)]=_0x328240;else throw new Error(_0x32e8bc(0x15a));}[a71_0x2b67be(0x141)](){return this['map'];}['isPlot'](){return!![];}['setPoints'](_0xf45033){var _0x25e6b9=a71_0x2b67be;this[_0x25e6b9(0x144)]=!_0xf45033?[]:_0xf45033,this[_0x25e6b9(0x144)][_0x25e6b9(0x154)]>=0x1&&(this[_0x25e6b9(0x143)]&&this[_0x25e6b9(0x143)]());}[a71_0x2b67be(0x143)](){}[a71_0x2b67be(0x157)](){var _0x58db13=a71_0x2b67be;return this[_0x58db13(0x144)][_0x58db13(0x14e)](0x0);}[a71_0x2b67be(0x150)](){var _0x20775=a71_0x2b67be;return this[_0x20775(0x144)][_0x20775(0x154)];}[a71_0x2b67be(0x147)](){}}export default Plot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a72_0x46c40d=a72_0x2bc8;(function(_0x5280ec,_0x404ae5){var _0xf63a58=a72_0x2bc8,_0x350db7=_0x5280ec();while(!![]){try{var _0x3470bc=parseInt(_0xf63a58(0x107))/0x1*(-parseInt(_0xf63a58(0x102))/0x2)+-parseInt(_0xf63a58(0xfb))/0x3*(parseInt(_0xf63a58(0x101))/0x4)+parseInt(_0xf63a58(0xfc))/0x5+-parseInt(_0xf63a58(0xf6))/0x6+parseInt(_0xf63a58(0xf8))/0x7*(parseInt(_0xf63a58(0x109))/0x8)+-parseInt(_0xf63a58(0xf9))/0x9+parseInt(_0xf63a58(0xf4))/0xa;if(_0x3470bc===_0x404ae5)break;else _0x350db7['push'](_0x350db7['shift']());}catch(_0x7908cf){_0x350db7['push'](_0x350db7['shift']());}}}(a72_0x43c4,0x653bd));import a72_0xde28b5 from'./BaseLine';class Polyline extends a72_0xde28b5{constructor(_0x758a9c){var _0x18b7ef=a72_0x2bc8;super(),this[_0x18b7ef(0xff)]=_0x18b7ef(0x103),this[_0x18b7ef(0xfe)](_0x758a9c);}[a72_0x46c40d(0x106)](){var _0x9889ed=a72_0x46c40d;this[_0x9889ed(0xfe)](this[_0x9889ed(0x104)]);}[a72_0x46c40d(0x100)](_0x12fb77,_0x5eb486){var _0x5cfcb1=a72_0x46c40d;_0x5eb486>=0x0&&_0x5eb486<this[_0x5cfcb1(0x104)][_0x5cfcb1(0x105)]&&(this['points'][_0x5eb486]=_0x12fb77,this[_0x5cfcb1(0x106)]());}['updateLastPoint'](_0x345fc6){var _0x3bad42=a72_0x46c40d;this[_0x3bad42(0x100)](_0x345fc6,this[_0x3bad42(0x104)][_0x3bad42(0x105)]-0x1);}[a72_0x46c40d(0xf7)](){return![];}[a72_0x46c40d(0x108)](_0x4963d9){var _0x146798=a72_0x46c40d;this[_0x146798(0xfa)]=JSON[_0x146798(0xfd)](JSON[_0x146798(0xf5)](_0x4963d9));}}function a72_0x43c4(){var _0x55ed7a=['parse','setCoordinates','type','updatePoint','38572cxvMsZ','948ehiHkW','LineString','points','length','generate','1517YtRvaL','setStyle','64cXRqYv','25750800cqBXVy','stringify','1826046xEsbuv','isPlot','141197ekQesh','5263893bhCZTD','style','222OhCLop','315VWBZin'];a72_0x43c4=function(){return _0x55ed7a;};return a72_0x43c4();}function a72_0x2bc8(_0x347cf3,_0x1703e9){var _0x43c449=a72_0x43c4();return a72_0x2bc8=function(_0x2bc84c,_0x1f2793){_0x2bc84c=_0x2bc84c-0xf4;var _0x472845=_0x43c449[_0x2bc84c];return _0x472845;},a72_0x2bc8(_0x347cf3,_0x1703e9);}export default Polyline;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x249b55,_0x40f36a){const _0x3a63f6=a75_0x1fed,_0x115320=_0x249b55();while(!![]){try{const _0x585153=-parseInt(_0x3a63f6(0x1b3))/0x1+parseInt(_0x3a63f6(0x1af))/0x2+-parseInt(_0x3a63f6(0x1be))/0x3+parseInt(_0x3a63f6(0x1ca))/0x4*(-parseInt(_0x3a63f6(0x1c0))/0x5)+parseInt(_0x3a63f6(0x1ad))/0x6+parseInt(_0x3a63f6(0x1ba))/0x7*(-parseInt(_0x3a63f6(0x1b8))/0x8)+parseInt(_0x3a63f6(0x1a6))/0x9;if(_0x585153===_0x40f36a)break;else _0x115320['push'](_0x115320['shift']());}catch(_0x3e570f){_0x115320['push'](_0x115320['shift']());}}}(a75_0x43d9,0x42088));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';import a75_0x4a38ed from'ol/style/Style';import a75_0x4c5755 from'ol/style/Circle';import a75_0x251f8b from'ol/style/Fill';import a75_0x152726 from'ol/style/Stroke';function getMainStyle(_0x22babb,_0x31bdaf=0x0,_0x39895e){const _0x2f36dd=a75_0x1fed;let _0x1ee5ad;return _0x22babb[_0x2f36dd(0x18f)]||_0x22babb[_0x2f36dd(0x19e)]?_0x1ee5ad=new a75_0x4a38ed({'renderer':(_0x2db977,_0x14da02)=>{preLoadImageRenderFunction(_0x22babb,_0x2db977,_0x14da02,_0x39895e,_rendererFunction);},'zIndex':Number(_0x31bdaf)}):_0x1ee5ad=new a75_0x4a38ed({'image':new a75_0x4c5755({'radius':_0x22babb[_0x2f36dd(0x1a5)]?_0x22babb['radius']:_0x22babb['pixelSize'],'fill':new a75_0x251f8b({'color':getColor(_0x22babb[_0x2f36dd(0x1a3)],_0x22babb[_0x2f36dd(0x19c)])}),'stroke':_0x22babb[_0x2f36dd(0x1ae)]&&_0x22babb[_0x2f36dd(0x191)]?new a75_0x152726({'color':getColor(_0x22babb[_0x2f36dd(0x191)],_0x22babb[_0x2f36dd(0x18d)]),'width':_0x22babb['outlineWidth']}):undefined}),'zIndex':Number(_0x31bdaf)}),_0x1ee5ad;}function _rendererFunction(_0xca26f7,_0x177a18,_0x3d1d50,_0x2c6a97,_0xc03e41){const _0x4d0883=a75_0x1fed;if(!_0xc03e41||_0xc03e41['width']===0x0){let _0x24743b=new Image();_0x24743b[_0x4d0883(0x19a)]=_0xca26f7['image'];}if(_0xca26f7[_0x4d0883(0x1bb)]&&_0xca26f7[_0x4d0883(0x1a3)]!==''){let _0x467fdf=_0xca26f7['scale']||0x1,_0x33932b=_0xca26f7[_0x4d0883(0x195)]||_0xc03e41[_0x4d0883(0x195)]*_0x467fdf,_0x4d44b4=_0xca26f7[_0x4d0883(0x19b)]||_0xc03e41['height']*_0x467fdf;_0x33932b=_0x33932b*_0x3d1d50[_0x4d0883(0x1b1)],_0x4d44b4=_0x4d44b4*_0x3d1d50[_0x4d0883(0x1b1)];const _0x46e6d5=document[_0x4d0883(0x194)](_0x4d0883(0x196));_0x46e6d5[_0x4d0883(0x195)]=_0x33932b,_0x46e6d5[_0x4d0883(0x19b)]=_0x4d44b4;const _0x417cc0=_0x46e6d5[_0x4d0883(0x1b9)]('2d');_0x417cc0===null||_0x417cc0===void 0x0?void 0x0:_0x417cc0[_0x4d0883(0x1a1)](_0xc03e41,0x0,0x0,_0x33932b,_0x4d44b4);let _0x3ef783=_0x417cc0===null||_0x417cc0===void 0x0?void 0x0:_0x417cc0[_0x4d0883(0x1c6)](0x0,0x0,_0x33932b,_0x4d44b4),_0x6e7ce=_0x3ef783===null||_0x3ef783===void 0x0?void 0x0:_0x3ef783[_0x4d0883(0x18c)];_0xc03e41=_0x46e6d5;let _0x2f03e2=HexToRgb(_0xca26f7[_0x4d0883(0x1a3)]);if(_0x6e7ce&&_0x2f03e2)for(var _0xff0ea0=0x0;_0xff0ea0<_0x6e7ce[_0x4d0883(0x1cb)];_0xff0ea0+=0x4){_0x6e7ce[_0xff0ea0]=_0x2f03e2[0x0],_0x6e7ce[_0xff0ea0+0x1]=_0x2f03e2[0x1],_0x6e7ce[_0xff0ea0+0x2]=_0x2f03e2[0x2];}_0x3ef783&&(_0x417cc0===null||_0x417cc0===void 0x0?void 0x0:_0x417cc0[_0x4d0883(0x1c5)](_0x3ef783,0x0,0x0));}let _0x1423bb=_0x3d1d50[_0x4d0883(0x1ac)],_0x5d1d28=_0x3d1d50[_0x4d0883(0x1b1)],_0x3057a9=_0x1423bb['getStride'](),_0x3abd5e=_0x1423bb['getType'](),_0x51a107=[];switch(_0x3abd5e){case'LineString':_0x51a107=_0x1423bb[_0x4d0883(0x1c3)]();break;case _0x4d0883(0x1a8):_0x51a107=_0x1423bb[_0x4d0883(0x18e)](),_0x3057a9=0x2;break;case _0x4d0883(0x1b7):_0x51a107=_0x1423bb[_0x4d0883(0x19f)](),_0x3057a9=0x3;break;case _0x4d0883(0x1bc):{let _0x3ce807=_0x1423bb['getFlatInteriorPoints']();_0x51a107=[];for(let _0x1bde54=0x0,_0x442ae3=_0x3ce807[_0x4d0883(0x1cb)];_0x1bde54<_0x442ae3;_0x1bde54+=0x3){_0x51a107[_0x4d0883(0x190)](_0x3ce807[_0x1bde54],_0x3ce807[_0x1bde54+0x1]);}if(_0x51a107[_0x4d0883(0x1cb)]===0x0)return;_0x3057a9=0x2;break;}}if(_0x51a107[_0x4d0883(0x1cb)]>0x0&&_0x2c6a97)for(let _0x1257cb=0x0,_0x30c2fb=_0x51a107[_0x4d0883(0x1cb)];_0x1257cb<_0x30c2fb;_0x1257cb+=_0x3057a9){let _0x43038c=[_0x51a107[_0x1257cb],_0x51a107[_0x1257cb+0x1]],_0x363247=_0x2c6a97[_0x4d0883(0x1cc)](_0x43038c);_0x363247=[_0x363247[0x0]*_0x5d1d28,_0x363247[0x1]*_0x5d1d28],drawImage(_0xca26f7,_0x363247,_0x3d1d50,_0xc03e41);}else{if(_0x3abd5e===_0x4d0883(0x18b))for(let _0x28120b of _0x177a18){drawImage(_0xca26f7,_0x28120b,_0x3d1d50,_0xc03e41);}else drawImage(_0xca26f7,_0x177a18,_0x3d1d50,_0xc03e41);}}function a75_0x43d9(){const _0x14f587=['stringify','src','height','opacity','point','markerColor','getFlatInteriorPoint','replace','drawImage','verticalOrigin','color','zIndex','radius','10106694nnLQpP','translate','MultiLineString','BOTTOM','rotate','pixelOffset','geometry','2120292dDoVMY','outline','155256hisIwl','model/','pixelRatio','RIGHT','310611ZzkOyk','text','show','warn','Polygon','2199096kVpfgp','getContext','7CAvGCP','changeColor','MultiPolygon','parse','1121547NBvMYO','globalAlpha','5MFfnri','toUpperCase','rotation','getFlatMidpoint','cloud','putImageData','getImageData','modelKind','TOP','CENTER','1296628NJFfke','length','getPixelFromCoordinate','billboard','model','context','imgUrl','scale','label','.png','MultiPoint','data','outlineOpacity','getFlatMidpoints','image','push','outlineColor','restore','LEFT','createElement','width','canvas','horizontalOrigin','save'];a75_0x43d9=function(){return _0x14f587;};return a75_0x43d9();}function HexToRgb(_0x363df3){const _0x147951=a75_0x1fed;_0x363df3=_0x363df3[_0x147951(0x1a0)]('#','');let _0x1c80d1=_0x363df3['match'](/../g);if(_0x1c80d1){for(let _0xd4b66=0x0;_0xd4b66<0x3;_0xd4b66++)_0x1c80d1[_0xd4b66]=parseInt(_0x1c80d1[_0xd4b66],0x10);}return _0x1c80d1;}export function getImageOlStyle(_0x4042ef,_0x2fe55f,_0x83316f,_0x418f01){const _0x49386d=a75_0x1fed;var _0x28b6b9;if(_0x4042ef&&_0x4042ef[_0x49386d(0x1b5)]!==![]){_0x4042ef=JSON[_0x49386d(0x1bd)](JSON[_0x49386d(0x199)](_0x4042ef)),_0x2fe55f=(_0x28b6b9=_0x4042ef[_0x49386d(0x1a4)])!==null&&_0x28b6b9!==void 0x0?_0x28b6b9:_0x2fe55f;let _0x264906=isShowStyle(_0x4042ef,_0x83316f,_0x418f01);if(_0x264906)return _0x4042ef[_0x49386d(0x18f)]=parseImage(_0x4042ef[_0x49386d(0x18f)]),getMainStyle(_0x4042ef,_0x2fe55f,_0x418f01);}}export function getPointStyle(_0x7acdbc,_0x3f6f74,_0x3ce84c,_0x140cdf){const _0xafa16c=a75_0x1fed;var _0xa5d222,_0x49202e;_0x7acdbc=JSON[_0xafa16c(0x1bd)](JSON[_0xafa16c(0x199)](_0x7acdbc));let _0x1140d4=(_0xa5d222=_0x7acdbc[_0xafa16c(0x1a4)])!==null&&_0xa5d222!==void 0x0?_0xa5d222:0x0,_0x584d11=[],_0x1dcff7=getImageOlStyle(_0x7acdbc,_0x1140d4,_0x3ce84c,_0x140cdf);_0x1dcff7&&_0x584d11[_0xafa16c(0x190)](_0x1dcff7);let _0x2f4ca3=getImageOlStyle(_0x7acdbc[_0xafa16c(0x184)],_0x1140d4,_0x3ce84c,_0x140cdf);_0x2f4ca3&&_0x584d11[_0xafa16c(0x190)](_0x2f4ca3);if(_0x7acdbc[_0xafa16c(0x185)]&&_0x7acdbc[_0xafa16c(0x185)][_0xafa16c(0x1b5)]!==![]){let _0x58805f=isShowStyle(_0x7acdbc['model'],_0x3ce84c,_0x140cdf);if(_0x58805f){let _0x3b0690=(_0x49202e=_0x7acdbc[_0xafa16c(0x185)]['zIndex'])!==null&&_0x49202e!==void 0x0?_0x49202e:_0x1140d4,_0x5a1f6e=_0x7acdbc['model'][_0xafa16c(0x187)]||_0xafa16c(0x1b0)+_0x7acdbc[_0xafa16c(0x185)][_0xafa16c(0x1c7)]+_0xafa16c(0x18a);_0x7acdbc[_0xafa16c(0x188)]=0x1,_0x7acdbc['width']=0x30,_0x7acdbc[_0xafa16c(0x19b)]=0x30,_0x7acdbc['verticalOrigin']=_0xafa16c(0x1c9),_0x584d11[_0xafa16c(0x190)](getMainStyle(_0x7acdbc[_0xafa16c(0x185)],_0x3b0690,_0x140cdf));}}if(_0x7acdbc[_0xafa16c(0x189)]&&_0x7acdbc['label'][_0xafa16c(0x1b5)]!==![]){let _0x2050d2=new a75_0x4a38ed({'text':createTextStyle(_0x7acdbc[_0xafa16c(0x189)],_0x3f6f74,_0x3ce84c,_0x140cdf),'zIndex':Number(_0x1140d4)+0x1});_0x584d11[_0xafa16c(0x190)](_0x2050d2);}return _0x584d11;}export function getPointSingleStyle(_0x33348d,_0x93c37,_0x1daa68,_0x24bbcb){const _0x523c44=a75_0x1fed;_0x93c37=JSON[_0x523c44(0x1bd)](JSON['stringify'](_0x93c37));let _0xd10b6f=_0x93c37[_0x523c44(0x189)],_0x3e1a84;_0xd10b6f&&(_0x3e1a84=_0xd10b6f[_0x523c44(0x1b4)]?_0xd10b6f['text']:'');if(_0x33348d===_0x523c44(0x184))return _0x93c37['image']=parseImage(_0x93c37['image']),getPointStyle(_0x93c37,_0x3e1a84,_0x1daa68,_0x24bbcb);else{if(_0x33348d==='model'){let _0x297709=_0x93c37['imgUrl']||_0x523c44(0x1b0)+_0x93c37['modelKind']+'.png';return _0x93c37[_0x523c44(0x188)]=0x1,_0x93c37['width']=0x30,_0x93c37[_0x523c44(0x19b)]=0x30,_0x93c37[_0x523c44(0x1a2)]=_0x523c44(0x1c9),getPointStyle(_0x93c37,_0x3e1a84,_0x1daa68,_0x24bbcb);}else{if(_0x33348d===_0x523c44(0x1c4))return getPointStyle(_0x93c37,_0x3e1a84,_0x1daa68,_0x24bbcb);else{if(_0x33348d===_0x523c44(0x19d))return getPointStyle(_0x93c37,_0x3e1a84,_0x1daa68,_0x24bbcb);else return _0x33348d===_0x523c44(0x189)?new a75_0x4a38ed({'text':createTextStyle(_0x93c37,_0x93c37[_0x523c44(0x1b4)],_0x1daa68,_0x24bbcb),'zIndex':_0x93c37['zIndex']}):getPointStyle(_0x93c37,_0x3e1a84,_0x1daa68,_0x24bbcb);}}}}function a75_0x1fed(_0x1aabfe,_0x502a4b){const _0x43d986=a75_0x43d9();return a75_0x1fed=function(_0x1fedad,_0x28ebd3){_0x1fedad=_0x1fedad-0x184;let _0x9e2fe2=_0x43d986[_0x1fedad];return _0x9e2fe2;},a75_0x1fed(_0x1aabfe,_0x502a4b);}function drawImage(_0x3b2189,_0x57f8b6,_0x2b39a8,_0xb7a029){const _0x3c270f=a75_0x1fed;var _0x2ac51d,_0x32df28,_0x50c503,_0x103386;let _0x4c82f8=_0x2b39a8[_0x3c270f(0x186)];try{_0x4c82f8[_0x3c270f(0x198)]();let _0x2bdb62=Number(_0x3b2189['pixelOffsetX']||((_0x2ac51d=_0x3b2189[_0x3c270f(0x1ab)])===null||_0x2ac51d===void 0x0?void 0x0:_0x2ac51d[0x0])||0x0),_0x206d16=Number(_0x3b2189['pixelOffsetY']||((_0x32df28=_0x3b2189[_0x3c270f(0x1ab)])===null||_0x32df28===void 0x0?void 0x0:_0x32df28[0x1])||0x0);_0x4c82f8[_0x3c270f(0x1a7)](_0x57f8b6[0x0]+_0x2bdb62,_0x57f8b6[0x1]+_0x206d16);if(_0x3b2189[_0x3c270f(0x1c2)])_0x4c82f8[_0x3c270f(0x1aa)](toRadians(_0x3b2189[_0x3c270f(0x1c2)]));_0x4c82f8[_0x3c270f(0x1bf)]=_0x3b2189[_0x3c270f(0x19c)]!=null?_0x3b2189['opacity']:0x1;if(_0xb7a029[_0x3c270f(0x195)]>0x0){let _0x2bfe4d=_0x3b2189[_0x3c270f(0x188)]||0x1,_0x47fa85=_0x3b2189[_0x3c270f(0x195)]||_0xb7a029[_0x3c270f(0x195)]*_0x2bfe4d,_0x48b025=_0x3b2189[_0x3c270f(0x19b)]||_0xb7a029['height']*_0x2bfe4d;_0x47fa85=_0x47fa85*_0x2b39a8[_0x3c270f(0x1b1)],_0x48b025=_0x48b025*_0x2b39a8[_0x3c270f(0x1b1)];_0x3b2189[_0x3c270f(0x1bb)]&&(_0x47fa85=_0xb7a029[_0x3c270f(0x195)],_0x48b025=_0xb7a029[_0x3c270f(0x19b)]);let _0x3409a2;switch((_0x50c503=_0x3b2189[_0x3c270f(0x197)])===null||_0x50c503===void 0x0?void 0x0:_0x50c503[_0x3c270f(0x1c1)]()){default:case _0x3c270f(0x1c9):_0x3409a2=-_0x47fa85/0x2;break;case _0x3c270f(0x193):_0x3409a2=0x0;break;case _0x3c270f(0x1b2):_0x3409a2=-_0x47fa85;break;}let _0xdfad46;switch((_0x103386=_0x3b2189[_0x3c270f(0x1a2)])===null||_0x103386===void 0x0?void 0x0:_0x103386[_0x3c270f(0x1c1)]()){default:case _0x3c270f(0x1a9):_0xdfad46=-_0x48b025;break;case'CENTER':_0xdfad46=-_0x48b025/0x2;break;case _0x3c270f(0x1c8):_0xdfad46=0x0;break;}_0x4c82f8['drawImage'](_0xb7a029,_0x3409a2,_0xdfad46,_0x47fa85,_0x48b025);}else _0x4c82f8[_0x3c270f(0x1a1)](_0xb7a029,0x0,0x0);_0x4c82f8[_0x3c270f(0x192)]();}catch(_0x27df37){_0x4c82f8['restore'](),console[_0x3c270f(0x1b6)](_0x27df37);}}
|
|
1
|
+
function a75_0xb173(){const _0x89426f=['show','height','getStride','match','width','billboard','getContext','radius','changeColor','stringify','pixelOffsetY','verticalOrigin','push','context','getFlatMidpoint','drawImage','replace','save','outlineColor','Polygon','MultiPolygon','restore','parse','translate','LineString','cloud','canvas','114hSugeG','3203150KuayFt','model','TOP','horizontalOrigin','modelKind','pixelRatio','getFlatInteriorPoint','opacity','outlineWidth','getPixelFromCoordinate','outline','markerColor','model/','592220ZDllhQ','color','createElement','MultiLineString','92XJSweQ','pixelSize','scale','484994gdyPGF','point','toUpperCase','425117gwTafa','image','src','LEFT','rotation','text','getFlatMidpoints','length','BOTTOM','MultiPoint','data','imgUrl','pixelOffset','CENTER','label','rotate','1202872FEAehJ','358673lePinY','geometry','warn','.png','zIndex','149118tOBNRr','423lrVqce'];a75_0xb173=function(){return _0x89426f;};return a75_0xb173();}(function(_0x3805fb,_0x5e2a42){const _0x57b40d=a75_0x10ae,_0x215bb3=_0x3805fb();while(!![]){try{const _0x3b1cc7=-parseInt(_0x57b40d(0x179))/0x1+-parseInt(_0x57b40d(0x176))/0x2+-parseInt(_0x57b40d(0x144))/0x3*(parseInt(_0x57b40d(0x173))/0x4)+parseInt(_0x57b40d(0x162))/0x5+-parseInt(_0x57b40d(0x161))/0x6*(parseInt(_0x57b40d(0x13f))/0x7)+parseInt(_0x57b40d(0x13e))/0x8+-parseInt(_0x57b40d(0x145))/0x9*(-parseInt(_0x57b40d(0x16f))/0xa);if(_0x3b1cc7===_0x5e2a42)break;else _0x215bb3['push'](_0x215bb3['shift']());}catch(_0x1897c5){_0x215bb3['push'](_0x215bb3['shift']());}}}(a75_0xb173,0xc0e0e));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';import a75_0x5aac00 from'ol/style/Style';import a75_0x578f06 from'ol/style/Circle';function a75_0x10ae(_0x54c61a,_0x43d809){const _0xb17339=a75_0xb173();return a75_0x10ae=function(_0x10aef6,_0x294a9f){_0x10aef6=_0x10aef6-0x136;let _0x98bdf7=_0xb17339[_0x10aef6];return _0x98bdf7;},a75_0x10ae(_0x54c61a,_0x43d809);}import a75_0x519de3 from'ol/style/Fill';import a75_0x5b6d34 from'ol/style/Stroke';function getMainStyle(_0x2e86dc,_0x10c932=0x0,_0x3edb7d){const _0x53878f=a75_0x10ae;let _0x1bd96e;return _0x2e86dc[_0x53878f(0x17a)]||_0x2e86dc[_0x53878f(0x16d)]?_0x1bd96e=new a75_0x5aac00({'renderer':(_0x36a7b8,_0x174205)=>{preLoadImageRenderFunction(_0x2e86dc,_0x36a7b8,_0x174205,_0x3edb7d,_rendererFunction);},'zIndex':Number(_0x10c932)}):_0x1bd96e=new a75_0x5aac00({'image':new a75_0x578f06({'radius':_0x2e86dc[_0x53878f(0x14d)]?_0x2e86dc[_0x53878f(0x14d)]:_0x2e86dc[_0x53878f(0x174)],'fill':new a75_0x519de3({'color':getColor(_0x2e86dc[_0x53878f(0x170)],_0x2e86dc[_0x53878f(0x169)])}),'stroke':_0x2e86dc[_0x53878f(0x16c)]&&_0x2e86dc[_0x53878f(0x158)]?new a75_0x5b6d34({'color':getColor(_0x2e86dc[_0x53878f(0x158)],_0x2e86dc['outlineOpacity']),'width':_0x2e86dc[_0x53878f(0x16a)]}):undefined}),'zIndex':Number(_0x10c932)}),_0x1bd96e;}function _rendererFunction(_0x2bcd84,_0x5ee92a,_0x4dadbd,_0x2535b8,_0x26fb64){const _0x2bc8eb=a75_0x10ae;if(!_0x26fb64||_0x26fb64['width']===0x0){let _0x4581ea=new Image();_0x4581ea[_0x2bc8eb(0x17b)]=_0x2bcd84[_0x2bc8eb(0x17a)];}if(_0x2bcd84[_0x2bc8eb(0x14e)]&&_0x2bcd84['color']!==''){let _0x56a77f=_0x2bcd84[_0x2bc8eb(0x175)]||0x1,_0x5c8c90=_0x2bcd84[_0x2bc8eb(0x14a)]||_0x26fb64['width']*_0x56a77f,_0x131d83=_0x2bcd84[_0x2bc8eb(0x147)]||_0x26fb64[_0x2bc8eb(0x147)]*_0x56a77f;_0x5c8c90=_0x5c8c90*_0x4dadbd['pixelRatio'],_0x131d83=_0x131d83*_0x4dadbd[_0x2bc8eb(0x167)];const _0x351883=document[_0x2bc8eb(0x171)](_0x2bc8eb(0x160));_0x351883['width']=_0x5c8c90,_0x351883[_0x2bc8eb(0x147)]=_0x131d83;const _0x2dbe50=_0x351883[_0x2bc8eb(0x14c)]('2d');_0x2dbe50===null||_0x2dbe50===void 0x0?void 0x0:_0x2dbe50[_0x2bc8eb(0x155)](_0x26fb64,0x0,0x0,_0x5c8c90,_0x131d83);let _0x79e8aa=_0x2dbe50===null||_0x2dbe50===void 0x0?void 0x0:_0x2dbe50['getImageData'](0x0,0x0,_0x5c8c90,_0x131d83),_0x5abde5=_0x79e8aa===null||_0x79e8aa===void 0x0?void 0x0:_0x79e8aa[_0x2bc8eb(0x138)];_0x26fb64=_0x351883;let _0x40989f=HexToRgb(_0x2bcd84[_0x2bc8eb(0x170)]);if(_0x5abde5&&_0x40989f)for(var _0xcbdf66=0x0;_0xcbdf66<_0x5abde5['length'];_0xcbdf66+=0x4){_0x5abde5[_0xcbdf66]=_0x40989f[0x0],_0x5abde5[_0xcbdf66+0x1]=_0x40989f[0x1],_0x5abde5[_0xcbdf66+0x2]=_0x40989f[0x2];}_0x79e8aa&&(_0x2dbe50===null||_0x2dbe50===void 0x0?void 0x0:_0x2dbe50['putImageData'](_0x79e8aa,0x0,0x0));}let _0x1ba1ad=_0x4dadbd[_0x2bc8eb(0x140)],_0xe934cc=_0x4dadbd[_0x2bc8eb(0x167)],_0x39d1a6=_0x1ba1ad[_0x2bc8eb(0x148)](),_0x4b244f=_0x1ba1ad['getType'](),_0x2fa2b2=[];switch(_0x4b244f){case _0x2bc8eb(0x15e):_0x2fa2b2=_0x1ba1ad[_0x2bc8eb(0x154)]();break;case _0x2bc8eb(0x172):_0x2fa2b2=_0x1ba1ad[_0x2bc8eb(0x17f)](),_0x39d1a6=0x2;break;case _0x2bc8eb(0x159):_0x2fa2b2=_0x1ba1ad[_0x2bc8eb(0x168)](),_0x39d1a6=0x3;break;case _0x2bc8eb(0x15a):{let _0x3c55f2=_0x1ba1ad['getFlatInteriorPoints']();_0x2fa2b2=[];for(let _0x40a128=0x0,_0x1e7a99=_0x3c55f2[_0x2bc8eb(0x180)];_0x40a128<_0x1e7a99;_0x40a128+=0x3){_0x2fa2b2[_0x2bc8eb(0x152)](_0x3c55f2[_0x40a128],_0x3c55f2[_0x40a128+0x1]);}if(_0x2fa2b2['length']===0x0)return;_0x39d1a6=0x2;break;}}if(_0x2fa2b2[_0x2bc8eb(0x180)]>0x0&&_0x2535b8)for(let _0x58206f=0x0,_0x3eda61=_0x2fa2b2[_0x2bc8eb(0x180)];_0x58206f<_0x3eda61;_0x58206f+=_0x39d1a6){let _0xc01af5=[_0x2fa2b2[_0x58206f],_0x2fa2b2[_0x58206f+0x1]],_0x1b1e0f=_0x2535b8[_0x2bc8eb(0x16b)](_0xc01af5);_0x1b1e0f=[_0x1b1e0f[0x0]*_0xe934cc,_0x1b1e0f[0x1]*_0xe934cc],drawImage(_0x2bcd84,_0x1b1e0f,_0x4dadbd,_0x26fb64);}else{if(_0x4b244f===_0x2bc8eb(0x137))for(let _0x28165d of _0x5ee92a){drawImage(_0x2bcd84,_0x28165d,_0x4dadbd,_0x26fb64);}else drawImage(_0x2bcd84,_0x5ee92a,_0x4dadbd,_0x26fb64);}}function HexToRgb(_0x5cdedb){const _0x154d10=a75_0x10ae;_0x5cdedb=_0x5cdedb[_0x154d10(0x156)]('#','');let _0x27090b=_0x5cdedb[_0x154d10(0x149)](/../g);if(_0x27090b){for(let _0x50e88d=0x0;_0x50e88d<0x3;_0x50e88d++)_0x27090b[_0x50e88d]=parseInt(_0x27090b[_0x50e88d],0x10);}return _0x27090b;}export function getImageOlStyle(_0x2ea791,_0x522028,_0x4e67a3,_0x38fec9){const _0x40aad3=a75_0x10ae;var _0x334c49;if(_0x2ea791&&_0x2ea791[_0x40aad3(0x146)]!==![]){_0x2ea791=JSON[_0x40aad3(0x15c)](JSON[_0x40aad3(0x14f)](_0x2ea791)),_0x522028=(_0x334c49=_0x2ea791[_0x40aad3(0x143)])!==null&&_0x334c49!==void 0x0?_0x334c49:_0x522028;let _0x1fbfc4=isShowStyle(_0x2ea791,_0x4e67a3,_0x38fec9);if(_0x1fbfc4)return _0x2ea791[_0x40aad3(0x17a)]=parseImage(_0x2ea791[_0x40aad3(0x17a)]),getMainStyle(_0x2ea791,_0x522028,_0x38fec9);}}export function getPointStyle(_0xef3075,_0x53b686,_0x43261e,_0x295e29){const _0x30ee1d=a75_0x10ae;var _0x3c9413,_0x2f597e;_0xef3075=JSON[_0x30ee1d(0x15c)](JSON[_0x30ee1d(0x14f)](_0xef3075));let _0x7dc7e4=(_0x3c9413=_0xef3075[_0x30ee1d(0x143)])!==null&&_0x3c9413!==void 0x0?_0x3c9413:0x0,_0x172d77=[],_0xe652f9=getImageOlStyle(_0xef3075,_0x7dc7e4,_0x43261e,_0x295e29);_0xe652f9&&_0x172d77[_0x30ee1d(0x152)](_0xe652f9);let _0x52ff89=getImageOlStyle(_0xef3075[_0x30ee1d(0x14b)],_0x7dc7e4,_0x43261e,_0x295e29);_0x52ff89&&_0x172d77[_0x30ee1d(0x152)](_0x52ff89);if(_0xef3075[_0x30ee1d(0x163)]&&_0xef3075['model'][_0x30ee1d(0x146)]!==![]){let _0x8069e6=isShowStyle(_0xef3075[_0x30ee1d(0x163)],_0x43261e,_0x295e29);if(_0x8069e6){let _0x4ab163=(_0x2f597e=_0xef3075[_0x30ee1d(0x163)]['zIndex'])!==null&&_0x2f597e!==void 0x0?_0x2f597e:_0x7dc7e4,_0x10386c=_0xef3075[_0x30ee1d(0x163)][_0x30ee1d(0x139)]||_0x30ee1d(0x16e)+_0xef3075[_0x30ee1d(0x163)][_0x30ee1d(0x166)]+_0x30ee1d(0x142);_0xef3075['scale']=0x1,_0xef3075[_0x30ee1d(0x14a)]=0x30,_0xef3075[_0x30ee1d(0x147)]=0x30,_0xef3075[_0x30ee1d(0x151)]=_0x30ee1d(0x13b),_0x172d77[_0x30ee1d(0x152)](getMainStyle(_0xef3075[_0x30ee1d(0x163)],_0x4ab163,_0x295e29));}}if(_0xef3075[_0x30ee1d(0x13c)]&&_0xef3075['label'][_0x30ee1d(0x146)]!==![]){let _0x56b338=new a75_0x5aac00({'text':createTextStyle(_0xef3075[_0x30ee1d(0x13c)],_0x53b686,_0x43261e,_0x295e29),'zIndex':Number(_0x7dc7e4)+0x1});_0x172d77[_0x30ee1d(0x152)](_0x56b338);}return _0x172d77;}export function getPointSingleStyle(_0x6e411a,_0x3b48c1,_0x35ee54,_0x468139){const _0x2cebf4=a75_0x10ae;_0x3b48c1=JSON[_0x2cebf4(0x15c)](JSON[_0x2cebf4(0x14f)](_0x3b48c1));let _0x5dc931=_0x3b48c1[_0x2cebf4(0x13c)],_0x1d7655;_0x5dc931&&(_0x1d7655=_0x5dc931[_0x2cebf4(0x17e)]?_0x5dc931[_0x2cebf4(0x17e)]:'');if(_0x6e411a===_0x2cebf4(0x14b))return _0x3b48c1[_0x2cebf4(0x17a)]=parseImage(_0x3b48c1[_0x2cebf4(0x17a)]),getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);else{if(_0x6e411a===_0x2cebf4(0x163)){let _0x12bec4=_0x3b48c1[_0x2cebf4(0x139)]||_0x2cebf4(0x16e)+_0x3b48c1[_0x2cebf4(0x166)]+'.png';return _0x3b48c1['scale']=0x1,_0x3b48c1['width']=0x30,_0x3b48c1[_0x2cebf4(0x147)]=0x30,_0x3b48c1[_0x2cebf4(0x151)]=_0x2cebf4(0x13b),getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);}else{if(_0x6e411a===_0x2cebf4(0x15f))return getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);else{if(_0x6e411a===_0x2cebf4(0x177))return getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);else return _0x6e411a===_0x2cebf4(0x13c)?new a75_0x5aac00({'text':createTextStyle(_0x3b48c1,_0x3b48c1[_0x2cebf4(0x17e)],_0x35ee54,_0x468139),'zIndex':_0x3b48c1[_0x2cebf4(0x143)]}):getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);}}}}function drawImage(_0x5f15f5,_0x626030,_0xa69333,_0x58d140){const _0x1b966e=a75_0x10ae;var _0x16b380,_0x2ba18b,_0x47280d,_0x3607e4;let _0x156c36=_0xa69333[_0x1b966e(0x153)];try{_0x156c36[_0x1b966e(0x157)]();let _0x1f5387=Number(_0x5f15f5['pixelOffsetX']||((_0x16b380=_0x5f15f5[_0x1b966e(0x13a)])===null||_0x16b380===void 0x0?void 0x0:_0x16b380[0x0])||0x0),_0x51e400=Number(_0x5f15f5[_0x1b966e(0x150)]||((_0x2ba18b=_0x5f15f5['pixelOffset'])===null||_0x2ba18b===void 0x0?void 0x0:_0x2ba18b[0x1])||0x0);_0x156c36[_0x1b966e(0x15d)](_0x626030[0x0]+_0x1f5387,_0x626030[0x1]+_0x51e400);if(_0x5f15f5[_0x1b966e(0x17d)])_0x156c36[_0x1b966e(0x13d)](toRadians(_0x5f15f5[_0x1b966e(0x17d)]));_0x156c36['globalAlpha']=_0x5f15f5[_0x1b966e(0x169)]!=null?_0x5f15f5[_0x1b966e(0x169)]:0x1;if(_0x58d140[_0x1b966e(0x14a)]>0x0){let _0x1d73cb=_0x5f15f5[_0x1b966e(0x175)]||0x1,_0x268654=_0x5f15f5[_0x1b966e(0x14a)]||_0x58d140[_0x1b966e(0x14a)]*_0x1d73cb,_0x4deb92=_0x5f15f5['height']||_0x58d140['height']*_0x1d73cb;_0x268654=_0x268654*_0xa69333[_0x1b966e(0x167)],_0x4deb92=_0x4deb92*_0xa69333['pixelRatio'];_0x5f15f5[_0x1b966e(0x14e)]&&(_0x268654=_0x58d140[_0x1b966e(0x14a)],_0x4deb92=_0x58d140[_0x1b966e(0x147)]);let _0x2624df;switch((_0x47280d=_0x5f15f5[_0x1b966e(0x165)])===null||_0x47280d===void 0x0?void 0x0:_0x47280d[_0x1b966e(0x178)]()){default:case _0x1b966e(0x13b):_0x2624df=-_0x268654/0x2;break;case _0x1b966e(0x17c):_0x2624df=0x0;break;case'RIGHT':_0x2624df=-_0x268654;break;}let _0x430e9c;switch((_0x3607e4=_0x5f15f5[_0x1b966e(0x151)])===null||_0x3607e4===void 0x0?void 0x0:_0x3607e4[_0x1b966e(0x178)]()){default:case _0x1b966e(0x136):_0x430e9c=-_0x4deb92;break;case _0x1b966e(0x13b):_0x430e9c=-_0x4deb92/0x2;break;case _0x1b966e(0x164):_0x430e9c=0x0;break;}_0x156c36['drawImage'](_0x58d140,_0x2624df,_0x430e9c,_0x268654,_0x4deb92);}else _0x156c36[_0x1b966e(0x155)](_0x58d140,0x0,0x0);_0x156c36[_0x1b966e(0x15b)]();}catch(_0x440ebd){_0x156c36[_0x1b966e(0x15b)](),console[_0x1b966e(0x141)](_0x440ebd);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a76_0x39b6(){var _0x2ab04f=['fillType','warn','max','verticalOrigin','opacity','stripe_oddcolor','lineTo','stripe','27wTKGyO','checkerboard','outlineWidth','save','rgba(0,0,0,0.0)','translate','context','setZIndex','21UyhPZB','globalAlpha','length','grid','6565188bPjUOA','fill','restore','zIndex','44188870bfIWDy','height','rgba(0,0,0,0.01)','grid_lineCount','width','outlineColor','beginPath','568432ASuuIZ','setText','canvas','stroke','closePath','setStroke','image','stripe_repeat','src','strokeStyle','getContext','color','grid_lineThickness','drawImage','5208520yWuNJj','fillStyle','532308SWEMjF','repeat','lineWidth','createPattern','createElement','rgba(0,0,0,0)','32462EMlkOo','push','103158UKjSAn','moveTo','69HUpssy','billboard','setRenderer','outline','setFill','oddColor','checkerboard_repeat','295kqcJEP'];a76_0x39b6=function(){return _0x2ab04f;};return a76_0x39b6();}(function(_0x4648f2,_0x22ac30){var _0x163a1e=a76_0x2215,_0x142636=_0x4648f2();while(!![]){try{var _0x589b12=parseInt(_0x163a1e(0x89))/0x1*(-parseInt(_0x163a1e(0x85))/0x2)+parseInt(_0x163a1e(0xa1))/0x3*(-parseInt(_0x163a1e(0x7f))/0x4)+parseInt(_0x163a1e(0x90))/0x5*(-parseInt(_0x163a1e(0x87))/0x6)+-parseInt(_0x163a1e(0xa5))/0x7+-parseInt(_0x163a1e(0xb0))/0x8*(-parseInt(_0x163a1e(0x99))/0x9)+parseInt(_0x163a1e(0x7d))/0xa+parseInt(_0x163a1e(0xa9))/0xb;if(_0x589b12===_0x22ac30)break;else _0x142636['push'](_0x142636['shift']());}catch(_0x43af80){_0x142636['push'](_0x142636['shift']());}}}(a76_0x39b6,0xb67ab));function a76_0x2215(_0x46a9d8,_0x1afbe2){var _0x39b6f6=a76_0x39b6();return a76_0x2215=function(_0x221555,_0x33b748){_0x221555=_0x221555-0x77;var _0x4c429b=_0x39b6f6[_0x221555];return _0x4c429b;},a76_0x2215(_0x46a9d8,_0x1afbe2);}import{getColor,createTextStyle,preLoadImageRenderFunction}from'./common';import{Fill,Stroke,Style}from'ol/style';import{getSize,boundingExtent}from'ol/extent';import{getImageOlStyle}from'./PointStyleFormat';export function getPolygonStyle(_0x132f4c,_0x1f83db,_0x8a2ec0,_0x2bbb8e){var _0x4a72b9=a76_0x2215,_0x1335f3;let _0x532ed7=(_0x1335f3=_0x132f4c[_0x4a72b9(0xa8)])!==null&&_0x1335f3!==void 0x0?_0x1335f3:0x0,_0x1e5818=new Style();_0x1e5818['setZIndex'](_0x532ed7),_0x1e5818['setFill'](new Fill({'color':_0x4a72b9(0x84)}));if(_0x132f4c[_0x4a72b9(0xa6)]!==![]){if(!_0x132f4c['fillType']||_0x132f4c[_0x4a72b9(0x91)]===_0x4a72b9(0x7a))_0x1e5818['setFill'](new Fill({'color':getColor(_0x132f4c['color'],_0x132f4c[_0x4a72b9(0x95)])}));else{if(_0x132f4c[_0x4a72b9(0x91)]===_0x4a72b9(0xb6))_0x1e5818[_0x4a72b9(0x8b)]((_0x4903a5,_0x12ac2a)=>{preLoadImageRenderFunction(_0x132f4c,_0x4903a5,_0x12ac2a,_0x2bbb8e,_rendererFunction);});else _0x132f4c[_0x4a72b9(0x91)]===_0x4a72b9(0xa4)||_0x132f4c[_0x4a72b9(0x91)]===_0x4a72b9(0x98)||_0x132f4c['fillType']===_0x4a72b9(0x9a)?_0x1e5818[_0x4a72b9(0x8b)]((_0x5ca99b,_0x5eda07)=>{_rendererFunction(_0x132f4c,_0x5ca99b,_0x5eda07,_0x2bbb8e,null);}):_0x1e5818[_0x4a72b9(0x8d)](new Fill({'color':getColor(_0x132f4c[_0x4a72b9(0x7a)],_0x132f4c['opacity'])}));}}_0x132f4c[_0x4a72b9(0x8c)]!==![]&&_0x1e5818[_0x4a72b9(0xb5)](new Stroke({'color':getColor(_0x132f4c[_0x4a72b9(0xae)],_0x132f4c['outlineOpacity']),'width':_0x132f4c[_0x4a72b9(0x9b)]}));let _0x27dcdd=[_0x1e5818];_0x132f4c['billboard']&&!_0x132f4c[_0x4a72b9(0x8a)][_0x4a72b9(0x94)]&&(_0x132f4c['billboard'][_0x4a72b9(0x94)]='CENTER');let _0x217355=getImageOlStyle(_0x132f4c[_0x4a72b9(0x8a)],_0x532ed7,_0x8a2ec0,_0x2bbb8e);_0x217355&&_0x27dcdd[_0x4a72b9(0x86)](_0x217355);if(_0x1f83db){const _0x4411cc=createTextStyle(_0x132f4c,_0x1f83db,_0x8a2ec0,_0x2bbb8e);_0x4411cc&&(_0x1e5818[_0x4a72b9(0xb1)](_0x4411cc),_0x1e5818[_0x4a72b9(0xa0)](Number(_0x532ed7)+0x1));}return _0x27dcdd;}function _rendererFunction(_0x36338c,_0x35b868,_0x5c9bf5,_0x22238f,_0x2eb253){var _0x1acfc7=a76_0x2215;try{var _0x35114d=_0x5c9bf5[_0x1acfc7(0x9f)];for(var _0x182859=0x0,_0x5ec2ab=_0x35b868[_0x1acfc7(0xa3)];_0x182859<_0x5ec2ab;_0x182859++){_0x35114d[_0x1acfc7(0x9c)](),_0x35114d[_0x1acfc7(0xaf)]();var _0x36b69d=_0x35b868[_0x182859];let _0x55a1d8=boundingExtent(_0x36b69d);_0x35114d[_0x1acfc7(0x9e)](_0x55a1d8[0x0],_0x55a1d8[0x1]);let _0x526907;switch(_0x36338c[_0x1acfc7(0x91)]){case _0x1acfc7(0xb6):_0x526907=_getImagePattern(_0x35114d,_0x55a1d8,_0x36338c,_0x2eb253);break;case _0x1acfc7(0xa4):_0x526907=_getGridPattern(_0x35114d,_0x55a1d8,_0x36338c);break;case _0x1acfc7(0x98):_0x526907=_getStripePattern(_0x35114d,_0x55a1d8,_0x36338c);break;case _0x1acfc7(0x9a):_0x526907=_getCheckerBoardPattern(_0x35114d,_0x55a1d8,_0x36338c);break;default:_0x526907=_0x1acfc7(0xab);break;}for(var _0x12bec8=0x0,_0x249d9b=_0x36b69d[_0x1acfc7(0xa3)];_0x12bec8<_0x249d9b;_0x12bec8++){var _0x8fec5b=_0x36b69d[_0x12bec8];_0x12bec8===0x0?_0x35114d[_0x1acfc7(0x88)](_0x8fec5b[0x0]-_0x55a1d8[0x0],_0x8fec5b[0x1]-_0x55a1d8[0x1]):_0x35114d['lineTo'](_0x8fec5b[0x0]-_0x55a1d8[0x0],_0x8fec5b[0x1]-_0x55a1d8[0x1]);}_0x35114d[_0x1acfc7(0xb4)](),_0x35114d['fillStyle']='rgba(0,0,0,0.01)',_0x35114d['fill'](),_0x35114d['fillStyle']=_0x526907,_0x35114d['fill'](),_0x36338c[_0x1acfc7(0x8c)]?(_0x35114d['strokeStyle']=getColor(_0x36338c[_0x1acfc7(0xae)],_0x36338c['outlineOpacity']),_0x35114d[_0x1acfc7(0x81)]=_0x36338c[_0x1acfc7(0x9b)]):_0x35114d[_0x1acfc7(0x78)]=_0x1acfc7(0x9d),_0x35114d['stroke'](),_0x35114d[_0x1acfc7(0xa7)]();}}catch(_0x1cd063){_0x35114d[_0x1acfc7(0xa7)](),console[_0x1acfc7(0x92)](_0x1cd063);}}function _getImagePattern(_0x91942b,_0x7dca5c,_0x160ee8,_0x46a81f){var _0xd1bacf=a76_0x2215;if(!_0x46a81f||_0x46a81f[_0xd1bacf(0xad)]===0x0){let _0x18c345=new Image();_0x18c345[_0xd1bacf(0x77)]=_0x160ee8[_0xd1bacf(0xb6)];}var _0x5617e9=getSize(_0x7dca5c);const _0x469ffd=document[_0xd1bacf(0x83)](_0xd1bacf(0xb2)),_0x4f6bc0=_0x469ffd['getContext']('2d');return _0x469ffd[_0xd1bacf(0xad)]=Math[_0xd1bacf(0x93)](_0x5617e9[0x0]/_0x160ee8['repeatX'],0x1),_0x469ffd[_0xd1bacf(0xaa)]=Math[_0xd1bacf(0x93)](_0x5617e9[0x1]/_0x160ee8['repeatY'],0x1),_0x4f6bc0&&(_0x4f6bc0[_0xd1bacf(0xa2)]=_0x160ee8[_0xd1bacf(0x95)],_0x4f6bc0[_0xd1bacf(0x7c)](_0x46a81f,0x0,0x0,_0x469ffd[_0xd1bacf(0xad)],_0x469ffd[_0xd1bacf(0xaa)])),_0x91942b[_0xd1bacf(0x82)](_0x469ffd,_0xd1bacf(0x80));}function _getGridPattern(_0x4f905a,_0x7494e8,_0x956ff9){var _0x3c28dd=a76_0x2215,_0x21216a=getSize(_0x7494e8);const _0x2a190f=document[_0x3c28dd(0x83)](_0x3c28dd(0xb2)),_0x3653da=_0x2a190f[_0x3c28dd(0x79)]('2d');return _0x2a190f[_0x3c28dd(0xad)]=Math[_0x3c28dd(0x93)](_0x21216a[0x0]/_0x956ff9[_0x3c28dd(0xac)],0x1),_0x2a190f[_0x3c28dd(0xaa)]=Math[_0x3c28dd(0x93)](_0x21216a[0x1]/_0x956ff9['grid_lineCount'],0x1),_0x3653da&&(_0x3653da[_0x3c28dd(0x78)]=getColor(_0x956ff9[_0x3c28dd(0x7a)],_0x956ff9[_0x3c28dd(0x95)]),_0x3653da[_0x3c28dd(0x81)]=_0x956ff9[_0x3c28dd(0x7b)]*0x4,_0x3653da['beginPath'](),_0x3653da[_0x3c28dd(0x88)](0x0,_0x2a190f['height']),_0x3653da['lineTo'](_0x2a190f[_0x3c28dd(0xad)],_0x2a190f['height']),_0x3653da[_0x3c28dd(0x88)](_0x2a190f['width'],0x0),_0x3653da[_0x3c28dd(0x97)](_0x2a190f[_0x3c28dd(0xad)],_0x2a190f[_0x3c28dd(0xaa)]),_0x3653da[_0x3c28dd(0xb3)]()),_0x4f905a[_0x3c28dd(0x82)](_0x2a190f,'repeat');}function _getStripePattern(_0x46884f,_0x561489,_0x57556a){var _0x26a29a=a76_0x2215,_0x5e5a82=getSize(_0x561489);const _0x56bb75=document[_0x26a29a(0x83)]('canvas'),_0x2caf09=_0x56bb75[_0x26a29a(0x79)]('2d');let _0x2a1b43=Math[_0x26a29a(0x93)](_0x5e5a82[0x1]/_0x57556a[_0x26a29a(0xb7)],0x1);return _0x56bb75[_0x26a29a(0xad)]=_0x5e5a82[0x0],_0x56bb75[_0x26a29a(0xaa)]=_0x2a1b43*0x2,_0x2caf09&&(_0x2caf09[_0x26a29a(0xaf)](),_0x2caf09[_0x26a29a(0x88)](0x0,0x0),_0x2caf09[_0x26a29a(0x97)](_0x56bb75[_0x26a29a(0xad)],0x0),_0x2caf09[_0x26a29a(0x97)](_0x56bb75[_0x26a29a(0xad)],_0x2a1b43),_0x2caf09[_0x26a29a(0x97)](0x0,_0x2a1b43),_0x2caf09[_0x26a29a(0xb4)](),_0x2caf09['fillStyle']=getColor(_0x57556a[_0x26a29a(0x96)],_0x57556a[_0x26a29a(0x95)]),_0x2caf09[_0x26a29a(0xa6)](),_0x2caf09[_0x26a29a(0xaf)](),_0x2caf09[_0x26a29a(0x88)](0x0,_0x2a1b43),_0x2caf09['lineTo'](_0x56bb75['width'],_0x2a1b43),_0x2caf09[_0x26a29a(0x97)](_0x56bb75[_0x26a29a(0xad)],_0x2a1b43*0x2),_0x2caf09[_0x26a29a(0x97)](0x0,_0x2a1b43*0x2),_0x2caf09[_0x26a29a(0xb4)](),_0x2caf09[_0x26a29a(0x7e)]=getColor(_0x57556a[_0x26a29a(0x7a)],_0x57556a[_0x26a29a(0x95)]),_0x2caf09['fill']()),_0x46884f[_0x26a29a(0x82)](_0x56bb75,_0x26a29a(0x80));}function _getCheckerBoardPattern(_0x157625,_0x8686ea,_0x46f2ed){var _0x4a1713=a76_0x2215,_0x4ae285=getSize(_0x8686ea);const _0x2c6842=document[_0x4a1713(0x83)]('canvas'),_0x5b650e=_0x2c6842[_0x4a1713(0x79)]('2d');let _0x4405db=Math[_0x4a1713(0x93)](_0x4ae285[0x0]/_0x46f2ed[_0x4a1713(0x8f)],0x1),_0x5cf48d=Math['max'](_0x4ae285[0x1]/_0x46f2ed[_0x4a1713(0x8f)],0x1);return _0x2c6842[_0x4a1713(0xad)]=_0x4405db*0x2,_0x2c6842['height']=_0x5cf48d*0x2,_0x5b650e&&(_0x5b650e[_0x4a1713(0xaf)](),_0x5b650e[_0x4a1713(0x88)](0x0,0x0),_0x5b650e['lineTo'](_0x4405db,0x0),_0x5b650e[_0x4a1713(0x97)](_0x4405db,_0x5cf48d),_0x5b650e[_0x4a1713(0x97)](0x0,_0x5cf48d),_0x5b650e[_0x4a1713(0xb4)](),_0x5b650e[_0x4a1713(0x7e)]=getColor(_0x46f2ed[_0x4a1713(0x8e)],_0x46f2ed[_0x4a1713(0x95)]),_0x5b650e['fill'](),_0x5b650e['beginPath'](),_0x5b650e[_0x4a1713(0x88)](_0x4405db,0x0),_0x5b650e[_0x4a1713(0x97)](_0x2c6842[_0x4a1713(0xad)],0x0),_0x5b650e[_0x4a1713(0x97)](_0x2c6842[_0x4a1713(0xad)],_0x5cf48d),_0x5b650e[_0x4a1713(0x97)](_0x4405db,_0x5cf48d),_0x5b650e[_0x4a1713(0xb4)](),_0x5b650e[_0x4a1713(0x7e)]=getColor(_0x46f2ed['color'],_0x46f2ed[_0x4a1713(0x95)]),_0x5b650e[_0x4a1713(0xa6)](),_0x5b650e[_0x4a1713(0xaf)](),_0x5b650e[_0x4a1713(0x88)](0x0,_0x5cf48d),_0x5b650e[_0x4a1713(0x97)](_0x4405db,_0x5cf48d),_0x5b650e[_0x4a1713(0x97)](_0x4405db,_0x2c6842['height']),_0x5b650e[_0x4a1713(0x97)](0x0,_0x2c6842['height']),_0x5b650e[_0x4a1713(0xb4)](),_0x5b650e[_0x4a1713(0x7e)]=getColor(_0x46f2ed[_0x4a1713(0x7a)],_0x46f2ed[_0x4a1713(0x95)]),_0x5b650e[_0x4a1713(0xa6)](),_0x5b650e[_0x4a1713(0xaf)](),_0x5b650e[_0x4a1713(0x88)](_0x4405db,_0x5cf48d),_0x5b650e[_0x4a1713(0x97)](_0x2c6842[_0x4a1713(0xad)],_0x5cf48d),_0x5b650e[_0x4a1713(0x97)](_0x2c6842[_0x4a1713(0xad)],_0x2c6842['height']),_0x5b650e[_0x4a1713(0x97)](_0x4405db,_0x2c6842[_0x4a1713(0xaa)]),_0x5b650e['closePath'](),_0x5b650e['fillStyle']=getColor(_0x46f2ed[_0x4a1713(0x8e)],_0x46f2ed[_0x4a1713(0x95)]),_0x5b650e['fill']()),_0x157625[_0x4a1713(0x82)](_0x2c6842,_0x4a1713(0x80));}
|
|
1
|
+
(function(_0x56f533,_0x438a17){var _0x46f078=a76_0x132c,_0x25322c=_0x56f533();while(!![]){try{var _0x53b387=-parseInt(_0x46f078(0x1d5))/0x1+-parseInt(_0x46f078(0x1a7))/0x2+-parseInt(_0x46f078(0x1ab))/0x3+-parseInt(_0x46f078(0x1a0))/0x4*(-parseInt(_0x46f078(0x1ce))/0x5)+parseInt(_0x46f078(0x1d7))/0x6*(parseInt(_0x46f078(0x1b2))/0x7)+-parseInt(_0x46f078(0x1d3))/0x8*(-parseInt(_0x46f078(0x1c0))/0x9)+parseInt(_0x46f078(0x1d1))/0xa*(parseInt(_0x46f078(0x1bf))/0xb);if(_0x53b387===_0x438a17)break;else _0x25322c['push'](_0x25322c['shift']());}catch(_0x4ce33e){_0x25322c['push'](_0x25322c['shift']());}}}(a76_0x3990,0xeabc6));import{getColor,createTextStyle,preLoadImageRenderFunction}from'./common';import{Fill,Stroke,Style}from'ol/style';function a76_0x3990(){var _0x99fd0c=['rgba(0,0,0,0.0)','width','canvas','8FQwRwo','translate','rgba(0,0,0,0)','height','getContext','length','stripe_oddcolor','1568590AyjJdV','fillStyle','setFill','CENTER','3384828BioEHa','createElement','src','repeat','setStroke','grid_lineCount','strokeStyle','70qvTMTu','outlineWidth','fill','oddColor','warn','stripe','color','lineTo','max','setZIndex','repeatX','outline','checkerboard_repeat','10109DusPYt','2374659HNMVcL','moveTo','drawImage','restore','fillType','opacity','outlineOpacity','setRenderer','createPattern','save','grid_lineThickness','repeatY','stroke','push','4223090dBaNcr','globalAlpha','rgba(0,0,0,0.01)','15620wmfGKP','outlineColor','8vqiJxw','beginPath','1280616qcZIJC','context','459660yclIUs','checkerboard','closePath','zIndex','lineWidth','billboard','image','verticalOrigin'];a76_0x3990=function(){return _0x99fd0c;};return a76_0x3990();}import{getSize,boundingExtent}from'ol/extent';import{getImageOlStyle}from'./PointStyleFormat';export function getPolygonStyle(_0x3800c8,_0x1989b9,_0x278fdb,_0x5b1ce5){var _0x41d898=a76_0x132c,_0x5b656f;let _0x3e2e90=(_0x5b656f=_0x3800c8[_0x41d898(0x198)])!==null&&_0x5b656f!==void 0x0?_0x5b656f:0x0,_0x32dd68=new Style();_0x32dd68[_0x41d898(0x1bb)](_0x3e2e90),_0x32dd68[_0x41d898(0x1a9)](new Fill({'color':_0x41d898(0x1a2)}));if(_0x3800c8['fill']!==![]){if(!_0x3800c8[_0x41d898(0x1c4)]||_0x3800c8['fillType']===_0x41d898(0x1b8))_0x32dd68[_0x41d898(0x1a9)](new Fill({'color':getColor(_0x3800c8[_0x41d898(0x1b8)],_0x3800c8['opacity'])}));else{if(_0x3800c8['fillType']===_0x41d898(0x19b))_0x32dd68[_0x41d898(0x1c7)]((_0x399da8,_0x55d7ea)=>{preLoadImageRenderFunction(_0x3800c8,_0x399da8,_0x55d7ea,_0x5b1ce5,_rendererFunction);});else _0x3800c8['fillType']==='grid'||_0x3800c8[_0x41d898(0x1c4)]==='stripe'||_0x3800c8[_0x41d898(0x1c4)]===_0x41d898(0x1d8)?_0x32dd68['setRenderer']((_0x47510e,_0x2f4063)=>{_rendererFunction(_0x3800c8,_0x47510e,_0x2f4063,_0x5b1ce5,null);}):_0x32dd68[_0x41d898(0x1a9)](new Fill({'color':getColor(_0x3800c8[_0x41d898(0x1b8)],_0x3800c8[_0x41d898(0x1c5)])}));}}_0x3800c8[_0x41d898(0x1bd)]!==![]&&_0x32dd68[_0x41d898(0x1af)](new Stroke({'color':getColor(_0x3800c8[_0x41d898(0x1d2)],_0x3800c8[_0x41d898(0x1c6)]),'width':_0x3800c8[_0x41d898(0x1b3)]}));let _0x38f4b0=[_0x32dd68];_0x3800c8[_0x41d898(0x19a)]&&!_0x3800c8['billboard'][_0x41d898(0x19c)]&&(_0x3800c8[_0x41d898(0x19a)][_0x41d898(0x19c)]=_0x41d898(0x1aa));let _0x118670=getImageOlStyle(_0x3800c8[_0x41d898(0x19a)],_0x3e2e90,_0x278fdb,_0x5b1ce5);_0x118670&&_0x38f4b0[_0x41d898(0x1cd)](_0x118670);if(_0x1989b9){const _0x1ce93c=createTextStyle(_0x3800c8,_0x1989b9,_0x278fdb,_0x5b1ce5);_0x1ce93c&&(_0x32dd68['setText'](_0x1ce93c),_0x32dd68[_0x41d898(0x1bb)](Number(_0x3e2e90)+0x1));}return _0x38f4b0;}function _rendererFunction(_0x457d4c,_0x405274,_0x5ea3f5,_0xa349e1,_0xd89cc2){var _0x3cc00e=a76_0x132c;try{var _0xc877b6=_0x5ea3f5[_0x3cc00e(0x1d6)];for(var _0x2f0213=0x0,_0x3c57c0=_0x405274[_0x3cc00e(0x1a5)];_0x2f0213<_0x3c57c0;_0x2f0213++){_0xc877b6[_0x3cc00e(0x1c9)](),_0xc877b6[_0x3cc00e(0x1d4)]();var _0x4eb87a=_0x405274[_0x2f0213];let _0x5481ef=boundingExtent(_0x4eb87a);_0xc877b6[_0x3cc00e(0x1a1)](_0x5481ef[0x0],_0x5481ef[0x1]);let _0x53e64c;switch(_0x457d4c['fillType']){case'image':_0x53e64c=_getImagePattern(_0xc877b6,_0x5481ef,_0x457d4c,_0xd89cc2);break;case'grid':_0x53e64c=_getGridPattern(_0xc877b6,_0x5481ef,_0x457d4c);break;case _0x3cc00e(0x1b7):_0x53e64c=_getStripePattern(_0xc877b6,_0x5481ef,_0x457d4c);break;case _0x3cc00e(0x1d8):_0x53e64c=_getCheckerBoardPattern(_0xc877b6,_0x5481ef,_0x457d4c);break;default:_0x53e64c='rgba(0,0,0,0.01)';break;}for(var _0x464624=0x0,_0x6ffc86=_0x4eb87a[_0x3cc00e(0x1a5)];_0x464624<_0x6ffc86;_0x464624++){var _0xd64bd2=_0x4eb87a[_0x464624];_0x464624===0x0?_0xc877b6['moveTo'](_0xd64bd2[0x0]-_0x5481ef[0x0],_0xd64bd2[0x1]-_0x5481ef[0x1]):_0xc877b6[_0x3cc00e(0x1b9)](_0xd64bd2[0x0]-_0x5481ef[0x0],_0xd64bd2[0x1]-_0x5481ef[0x1]);}_0xc877b6['closePath'](),_0xc877b6[_0x3cc00e(0x1a8)]=_0x3cc00e(0x1d0),_0xc877b6['fill'](),_0xc877b6[_0x3cc00e(0x1a8)]=_0x53e64c,_0xc877b6[_0x3cc00e(0x1b4)](),_0x457d4c[_0x3cc00e(0x1bd)]?(_0xc877b6[_0x3cc00e(0x1b1)]=getColor(_0x457d4c['outlineColor'],_0x457d4c[_0x3cc00e(0x1c6)]),_0xc877b6[_0x3cc00e(0x199)]=_0x457d4c[_0x3cc00e(0x1b3)]):_0xc877b6[_0x3cc00e(0x1b1)]=_0x3cc00e(0x19d),_0xc877b6[_0x3cc00e(0x1cc)](),_0xc877b6[_0x3cc00e(0x1c3)]();}}catch(_0x58c5dc){_0xc877b6['restore'](),console[_0x3cc00e(0x1b6)](_0x58c5dc);}}function _getImagePattern(_0x12f04b,_0x4e46e9,_0x2fd10b,_0x5e11ed){var _0x54e625=a76_0x132c;if(!_0x5e11ed||_0x5e11ed[_0x54e625(0x19e)]===0x0){let _0x3d6b76=new Image();_0x3d6b76[_0x54e625(0x1ad)]=_0x2fd10b[_0x54e625(0x19b)];}var _0x45ad1a=getSize(_0x4e46e9);const _0x15f8fc=document['createElement']('canvas'),_0x2ad099=_0x15f8fc[_0x54e625(0x1a4)]('2d');return _0x15f8fc[_0x54e625(0x19e)]=Math[_0x54e625(0x1ba)](_0x45ad1a[0x0]/_0x2fd10b[_0x54e625(0x1bc)],0x1),_0x15f8fc[_0x54e625(0x1a3)]=Math[_0x54e625(0x1ba)](_0x45ad1a[0x1]/_0x2fd10b[_0x54e625(0x1cb)],0x1),_0x2ad099&&(_0x2ad099[_0x54e625(0x1cf)]=_0x2fd10b[_0x54e625(0x1c5)],_0x2ad099[_0x54e625(0x1c2)](_0x5e11ed,0x0,0x0,_0x15f8fc[_0x54e625(0x19e)],_0x15f8fc[_0x54e625(0x1a3)])),_0x12f04b[_0x54e625(0x1c8)](_0x15f8fc,_0x54e625(0x1ae));}function _getGridPattern(_0xf73057,_0x509d88,_0x2c5400){var _0x439a45=a76_0x132c,_0x15202f=getSize(_0x509d88);const _0x15338e=document[_0x439a45(0x1ac)](_0x439a45(0x19f)),_0x4a6e87=_0x15338e[_0x439a45(0x1a4)]('2d');return _0x15338e[_0x439a45(0x19e)]=Math['max'](_0x15202f[0x0]/_0x2c5400[_0x439a45(0x1b0)],0x1),_0x15338e[_0x439a45(0x1a3)]=Math[_0x439a45(0x1ba)](_0x15202f[0x1]/_0x2c5400['grid_lineCount'],0x1),_0x4a6e87&&(_0x4a6e87[_0x439a45(0x1b1)]=getColor(_0x2c5400['color'],_0x2c5400['opacity']),_0x4a6e87[_0x439a45(0x199)]=_0x2c5400[_0x439a45(0x1ca)]*0x4,_0x4a6e87['beginPath'](),_0x4a6e87[_0x439a45(0x1c1)](0x0,_0x15338e[_0x439a45(0x1a3)]),_0x4a6e87[_0x439a45(0x1b9)](_0x15338e['width'],_0x15338e[_0x439a45(0x1a3)]),_0x4a6e87[_0x439a45(0x1c1)](_0x15338e[_0x439a45(0x19e)],0x0),_0x4a6e87[_0x439a45(0x1b9)](_0x15338e[_0x439a45(0x19e)],_0x15338e['height']),_0x4a6e87[_0x439a45(0x1cc)]()),_0xf73057[_0x439a45(0x1c8)](_0x15338e,'repeat');}function a76_0x132c(_0x5a34c5,_0x4f7150){var _0x399057=a76_0x3990();return a76_0x132c=function(_0x132c86,_0x420c7a){_0x132c86=_0x132c86-0x197;var _0x57279a=_0x399057[_0x132c86];return _0x57279a;},a76_0x132c(_0x5a34c5,_0x4f7150);}function _getStripePattern(_0x2ae6a1,_0x4426ae,_0xd98aba){var _0x4809ed=a76_0x132c,_0x32042f=getSize(_0x4426ae);const _0x1f493e=document[_0x4809ed(0x1ac)]('canvas'),_0x1b15e6=_0x1f493e[_0x4809ed(0x1a4)]('2d');let _0x3cc3c1=Math['max'](_0x32042f[0x1]/_0xd98aba['stripe_repeat'],0x1);return _0x1f493e[_0x4809ed(0x19e)]=_0x32042f[0x0],_0x1f493e['height']=_0x3cc3c1*0x2,_0x1b15e6&&(_0x1b15e6[_0x4809ed(0x1d4)](),_0x1b15e6[_0x4809ed(0x1c1)](0x0,0x0),_0x1b15e6['lineTo'](_0x1f493e[_0x4809ed(0x19e)],0x0),_0x1b15e6['lineTo'](_0x1f493e[_0x4809ed(0x19e)],_0x3cc3c1),_0x1b15e6[_0x4809ed(0x1b9)](0x0,_0x3cc3c1),_0x1b15e6[_0x4809ed(0x197)](),_0x1b15e6[_0x4809ed(0x1a8)]=getColor(_0xd98aba[_0x4809ed(0x1a6)],_0xd98aba[_0x4809ed(0x1c5)]),_0x1b15e6[_0x4809ed(0x1b4)](),_0x1b15e6['beginPath'](),_0x1b15e6[_0x4809ed(0x1c1)](0x0,_0x3cc3c1),_0x1b15e6[_0x4809ed(0x1b9)](_0x1f493e[_0x4809ed(0x19e)],_0x3cc3c1),_0x1b15e6['lineTo'](_0x1f493e[_0x4809ed(0x19e)],_0x3cc3c1*0x2),_0x1b15e6[_0x4809ed(0x1b9)](0x0,_0x3cc3c1*0x2),_0x1b15e6['closePath'](),_0x1b15e6[_0x4809ed(0x1a8)]=getColor(_0xd98aba['color'],_0xd98aba[_0x4809ed(0x1c5)]),_0x1b15e6['fill']()),_0x2ae6a1[_0x4809ed(0x1c8)](_0x1f493e,_0x4809ed(0x1ae));}function _getCheckerBoardPattern(_0x4364d3,_0x52ace7,_0x3e03cf){var _0x11dded=a76_0x132c,_0x1c10e0=getSize(_0x52ace7);const _0x30f6b3=document['createElement'](_0x11dded(0x19f)),_0x1c25ea=_0x30f6b3[_0x11dded(0x1a4)]('2d');let _0x3cbf96=Math[_0x11dded(0x1ba)](_0x1c10e0[0x0]/_0x3e03cf[_0x11dded(0x1be)],0x1),_0x5df5ee=Math[_0x11dded(0x1ba)](_0x1c10e0[0x1]/_0x3e03cf[_0x11dded(0x1be)],0x1);return _0x30f6b3[_0x11dded(0x19e)]=_0x3cbf96*0x2,_0x30f6b3[_0x11dded(0x1a3)]=_0x5df5ee*0x2,_0x1c25ea&&(_0x1c25ea[_0x11dded(0x1d4)](),_0x1c25ea[_0x11dded(0x1c1)](0x0,0x0),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,0x0),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](0x0,_0x5df5ee),_0x1c25ea['closePath'](),_0x1c25ea[_0x11dded(0x1a8)]=getColor(_0x3e03cf[_0x11dded(0x1b5)],_0x3e03cf[_0x11dded(0x1c5)]),_0x1c25ea[_0x11dded(0x1b4)](),_0x1c25ea['beginPath'](),_0x1c25ea[_0x11dded(0x1c1)](_0x3cbf96,0x0),_0x1c25ea[_0x11dded(0x1b9)](_0x30f6b3[_0x11dded(0x19e)],0x0),_0x1c25ea[_0x11dded(0x1b9)](_0x30f6b3[_0x11dded(0x19e)],_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,_0x5df5ee),_0x1c25ea[_0x11dded(0x197)](),_0x1c25ea[_0x11dded(0x1a8)]=getColor(_0x3e03cf[_0x11dded(0x1b8)],_0x3e03cf['opacity']),_0x1c25ea[_0x11dded(0x1b4)](),_0x1c25ea[_0x11dded(0x1d4)](),_0x1c25ea[_0x11dded(0x1c1)](0x0,_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,_0x5df5ee),_0x1c25ea['lineTo'](_0x3cbf96,_0x30f6b3[_0x11dded(0x1a3)]),_0x1c25ea[_0x11dded(0x1b9)](0x0,_0x30f6b3['height']),_0x1c25ea[_0x11dded(0x197)](),_0x1c25ea[_0x11dded(0x1a8)]=getColor(_0x3e03cf[_0x11dded(0x1b8)],_0x3e03cf[_0x11dded(0x1c5)]),_0x1c25ea[_0x11dded(0x1b4)](),_0x1c25ea['beginPath'](),_0x1c25ea[_0x11dded(0x1c1)](_0x3cbf96,_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](_0x30f6b3['width'],_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](_0x30f6b3[_0x11dded(0x19e)],_0x30f6b3['height']),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,_0x30f6b3[_0x11dded(0x1a3)]),_0x1c25ea[_0x11dded(0x197)](),_0x1c25ea[_0x11dded(0x1a8)]=getColor(_0x3e03cf[_0x11dded(0x1b5)],_0x3e03cf['opacity']),_0x1c25ea[_0x11dded(0x1b4)]()),_0x4364d3['createPattern'](_0x30f6b3,_0x11dded(0x1ae));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a7f8e,_0x53c99a){const _0x4721a3=a77_0x3f45,_0x365214=_0x1a7f8e();while(!![]){try{const _0x9fb959=parseInt(_0x4721a3(0x161))/0x1*(parseInt(_0x4721a3(0x180))/0x2)+-parseInt(_0x4721a3(0x183))/0x3+-parseInt(_0x4721a3(0x17d))/0x4*(parseInt(_0x4721a3(0x15e))/0x5)+-parseInt(_0x4721a3(0x17b))/0x6+parseInt(_0x4721a3(0x15b))/0x7*(parseInt(_0x4721a3(0x185))/0x8)+-parseInt(_0x4721a3(0x173))/0x9+parseInt(_0x4721a3(0x181))/0xa*(parseInt(_0x4721a3(0x165))/0xb);if(_0x9fb959===_0x53c99a)break;else _0x365214['push'](_0x365214['shift']());}catch(_0x37658f){_0x365214['push'](_0x365214['shift']());}}}(a77_0x3e07,0x3d88a));import{createTextStyle,getColor}from'./common';import{Stroke,Style}from'ol/style';import{getImageOlStyle}from'./PointStyleFormat';import{LineString,Point,MultiLineString,MultiPoint}from'ol/geom';export function getPolylineStyle(_0x130175,_0x50b55a,_0x54c195,_0x2ce2f0){const _0x4b6b43=a77_0x3f45;var _0x536ecc,_0x824022,_0x4fc0f0;let _0x2a61ef=(_0x536ecc=_0x130175['zIndex'])!==null&&_0x536ecc!==void 0x0?_0x536ecc:0x0;const _0x17f515=_0x17ee05=>{const _0xa7a028=a77_0x3f45;var _0x3b62e9=_0x17ee05[_0xa7a028(0x172)]();if(_0x3b62e9)return _getRealPolyline(_0x3b62e9,_0x130175);return _0x3b62e9;},_0x55b938=_0x537249=>{const _0x2e6894=a77_0x3f45;var _0x2ec256=_0x537249[_0x2e6894(0x172)]();let _0x5da4b1=_0x2ec256;_0x2ec256&&(_0x5da4b1=_getRealPolyline(_0x2ec256,_0x130175));if(_0x5da4b1&&_0x5da4b1[_0x2e6894(0x163)]()===_0x2e6894(0x179))return new Point(_0x5da4b1[_0x2e6894(0x189)]());else{let _0x4ab186=_0x5da4b1['getFlatMidpoints'](),_0x153838=0x2,_0x465f67=[];for(let _0xfd0055=0x0,_0x329f22=_0x4ab186['length'];_0xfd0055<_0x329f22;_0xfd0055+=_0x153838){let _0x27b3f6=[_0x4ab186[_0xfd0055],_0x4ab186[_0xfd0055+0x1]];_0x465f67[_0x2e6894(0x160)](_0x27b3f6);}return new MultiPoint(_0x465f67);}};let _0x5e7202=new Style({'geometry':_0x17f515,'stroke':new Stroke({'color':getColor(_0x130175[_0x4b6b43(0x16c)],_0x130175['outlineOpacity']),'width':_0x130175['outlineWidth']}),'zIndex':_0x2a61ef}),_0x3b0106=[_0x5e7202];if(_0x130175['lineType']===_0x4b6b43(0x164)){let _0x59c608=_0x130175[_0x4b6b43(0x15d)]/0x2,_0x589b6d=new Style({'geometry':_0x17f515,'zIndex':_0x2a61ef,'stroke':new Stroke({'color':getColor(_0x130175['color'],_0x130175[_0x4b6b43(0x15a)]),'width':_0x130175['width'],'lineCap':_0x4b6b43(0x159),'lineDash':[_0x59c608,_0x59c608]})}),_0x2bf331=new Style({'geometry':_0x17f515,'zIndex':_0x2a61ef+0.5,'stroke':new Stroke({'color':getColor(_0x130175[_0x4b6b43(0x16c)],Number((_0x4fc0f0=(_0x824022=_0x130175[_0x4b6b43(0x15f)])!==null&&_0x824022!==void 0x0?_0x824022:_0x130175[_0x4b6b43(0x15a)])!==null&&_0x4fc0f0!==void 0x0?_0x4fc0f0:0x1)),'width':_0x130175[_0x4b6b43(0x16e)],'lineCap':_0x4b6b43(0x159),'lineDash':[_0x59c608,_0x59c608],'lineDashOffset':_0x59c608})});_0x3b0106=[_0x589b6d,_0x2bf331];}_0x130175['lineType']==='arrow'&&_0x5e7202['setRenderer']((_0x65050f,_0x4a8679)=>{const _0x432638=_0x4b6b43;let _0x458284=_0x4a8679[_0x432638(0x177)],_0x4524da=parseInt((_0x130175['width']/0x4)[_0x432638(0x167)]()),_0x3dff15=0xa,_0x3f0d77=Math[_0x432638(0x17f)](Math[_0x432638(0x168)](_0x3dff15,0x2)+Math['pow'](_0x130175['width']/0x2,0x2)),_0x5f24e7=0x2d,_0x14fc69=_0x65050f[_0x65050f[_0x432638(0x178)]-0x2][0x0],_0x8819bb=_0x65050f[_0x65050f[_0x432638(0x178)]-0x2][0x1],_0x2a0860=_0x65050f[_0x65050f[_0x432638(0x178)]-0x1][0x0],_0x1ab8d4=_0x65050f[_0x65050f[_0x432638(0x178)]-0x1][0x1],_0x4169fc=Math[_0x432638(0x175)](_0x8819bb-_0x1ab8d4,_0x14fc69-_0x2a0860)*0xb4/Math['PI'],_0x3d96ea=(_0x4169fc+_0x5f24e7)*Math['PI']/0xb4,_0x1374b6=(_0x4169fc-_0x5f24e7)*Math['PI']/0xb4,_0x4ca254=_0x3f0d77*Math[_0x432638(0x184)](_0x3d96ea),_0x467888=_0x3f0d77*Math['sin'](_0x3d96ea),_0x46395b=_0x3f0d77*Math[_0x432638(0x184)](_0x1374b6),_0x19d824=_0x3f0d77*Math[_0x432638(0x176)](_0x1374b6);_0x458284[_0x432638(0x16b)](),_0x458284['beginPath']();let _0x4564f1,_0x3305e0;for(let _0xe66aa8=0x0;_0xe66aa8<_0x65050f[_0x432638(0x178)];_0xe66aa8++){_0xe66aa8===0x0?_0x458284['moveTo'](_0x65050f[_0xe66aa8][0x0],_0x65050f[_0xe66aa8][0x1]):_0x458284[_0x432638(0x158)](_0x65050f[_0xe66aa8][0x0],_0x65050f[_0xe66aa8][0x1]);}_0x458284[_0x432638(0x157)]=getColor(_0x130175[_0x432638(0x174)],_0x130175[_0x432638(0x15a)]),_0x458284['lineWidth']=_0x4524da,_0x458284[_0x432638(0x182)]=_0x432638(0x159),_0x458284[_0x432638(0x17e)](),_0x4564f1=_0x2a0860+_0x4ca254,_0x3305e0=_0x1ab8d4+_0x467888,_0x458284[_0x432638(0x171)](_0x4564f1,_0x3305e0),_0x458284[_0x432638(0x158)](_0x2a0860,_0x1ab8d4),_0x4564f1=_0x2a0860+_0x46395b,_0x3305e0=_0x1ab8d4+_0x19d824,_0x458284[_0x432638(0x158)](_0x4564f1,_0x3305e0),_0x458284[_0x432638(0x182)]=_0x432638(0x159),_0x458284['stroke'](),_0x458284[_0x432638(0x18b)]();});_0x130175[_0x4b6b43(0x17a)]===_0x4b6b43(0x162)&&_0x5e7202[_0x4b6b43(0x16d)]((_0x5ea8f2,_0x227574)=>{const _0x23f8aa=_0x4b6b43;let _0x3857e9=_0x227574[_0x23f8aa(0x177)];_0x3857e9[_0x23f8aa(0x16b)]();for(let _0x1ba655=0x0;_0x1ba655<0x4;_0x1ba655++){let _0x1ee8a8=_0x130175[_0x23f8aa(0x16e)]/0xa*(_0x130175[_0x23f8aa(0x166)]===0x0?0x1:_0x130175['glowPower']);_0x3857e9[_0x23f8aa(0x187)]=getColor(_0x130175['color'],_0x130175[_0x23f8aa(0x15a)]),_0x3857e9[_0x23f8aa(0x155)]=_0x130175[_0x23f8aa(0x16e)]/0x5*0x2,_0x3857e9['beginPath']();for(let _0x849020=0x0;_0x849020<_0x5ea8f2[_0x23f8aa(0x178)];_0x849020++){_0x849020===0x0?_0x3857e9['moveTo'](_0x5ea8f2[_0x849020][0x0],_0x5ea8f2[_0x849020][0x1]):_0x3857e9[_0x23f8aa(0x158)](_0x5ea8f2[_0x849020][0x0],_0x5ea8f2[_0x849020][0x1]);}_0x3857e9[_0x23f8aa(0x182)]='butt',_0x3857e9[_0x23f8aa(0x170)]=_0x1ee8a8,_0x3857e9[_0x23f8aa(0x157)]=getColor('white',_0x130175[_0x23f8aa(0x15a)]),_0x3857e9['stroke']();}_0x3857e9[_0x23f8aa(0x18b)]();});_0x130175[_0x4b6b43(0x17a)]===_0x4b6b43(0x188)&&_0x5e7202[_0x4b6b43(0x16d)]((_0x41fba1,_0x274b72)=>{const _0x1e3485=_0x4b6b43;let _0x31c166=_0x274b72[_0x1e3485(0x177)];_0x31c166[_0x1e3485(0x16b)](),_0x31c166['beginPath']();for(let _0x32508a=0x0;_0x32508a<_0x41fba1[_0x1e3485(0x178)];_0x32508a++){_0x32508a===0x0?_0x31c166[_0x1e3485(0x171)](_0x41fba1[_0x32508a][0x0],_0x41fba1[_0x32508a][0x1]):_0x31c166[_0x1e3485(0x158)](_0x41fba1[_0x32508a][0x0],_0x41fba1[_0x32508a][0x1]);}_0x31c166['lineCap']=_0x1e3485(0x159),_0x31c166[_0x1e3485(0x170)]=_0x130175[_0x1e3485(0x16e)],_0x31c166['strokeStyle']=getColor(_0x130175[_0x1e3485(0x16c)],_0x130175[_0x1e3485(0x15a)]),_0x31c166[_0x1e3485(0x17e)](),_0x31c166[_0x1e3485(0x16f)]();for(let _0x374299=0x0;_0x374299<_0x41fba1[_0x1e3485(0x178)];_0x374299++){_0x374299===0x0?_0x31c166[_0x1e3485(0x171)](_0x41fba1[_0x374299][0x0],_0x41fba1[_0x374299][0x1]):_0x31c166[_0x1e3485(0x158)](_0x41fba1[_0x374299][0x0],_0x41fba1[_0x374299][0x1]);}_0x31c166[_0x1e3485(0x182)]=_0x1e3485(0x159),_0x130175[_0x1e3485(0x15d)]>=_0x130175[_0x1e3485(0x16e)]&&(_0x130175[_0x1e3485(0x15d)]=_0x130175['width']-0x1),_0x31c166[_0x1e3485(0x170)]=_0x130175[_0x1e3485(0x16e)]-_0x130175[_0x1e3485(0x15d)],_0x31c166[_0x1e3485(0x157)]=getColor(_0x130175[_0x1e3485(0x174)],_0x130175['opacity']),_0x31c166['stroke'](),_0x31c166[_0x1e3485(0x18b)]();});let _0x2d2cf3=getImageOlStyle(_0x130175[_0x4b6b43(0x17c)],_0x2a61ef,_0x54c195,_0x2ce2f0);_0x2d2cf3&&(_0x2d2cf3[_0x4b6b43(0x18a)](_0x55b938),_0x3b0106[_0x4b6b43(0x160)](_0x2d2cf3));if(_0x130175[_0x4b6b43(0x186)]&&_0x130175['label']['show']!==![]){let _0x501bb1=new Style({'geometry':_0x55b938,'text':createTextStyle(_0x130175[_0x4b6b43(0x186)],_0x50b55a,_0x54c195,_0x2ce2f0),'zIndex':Number(_0x2a61ef)+0x1});_0x3b0106[_0x4b6b43(0x160)](_0x501bb1);}return _0x3b0106;}function a77_0x3f45(_0x5127af,_0x3cae9a){const _0x3e076b=a77_0x3e07();return a77_0x3f45=function(_0x3f45cf,_0x251ed3){_0x3f45cf=_0x3f45cf-0x155;let _0xff6926=_0x3e076b[_0x3f45cf];return _0xff6926;},a77_0x3f45(_0x5127af,_0x3cae9a);}function a77_0x3e07(){const _0x23bb86=['LineString','lineType','2913420udZiYM','billboard','8lCCEgZ','stroke','sqrt','2AOPxam','17380WYviSc','lineCap','592527VcNEzy','cos','31968BdeUZC','label','shadowColor','outline','getFlatMidpoint','setGeometry','restore','shadowBlur','MultiLineString','strokeStyle','lineTo','butt','opacity','399VPgOYT','getCoordinates','outlineWidth','509380QzjeJj','outlineOpacity','push','285841qVvrFz','glow','getType','dash','4092UrFKNR','glowPower','toString','pow','getFirstCoordinate','concat','save','outlineColor','setRenderer','width','beginPath','lineWidth','moveTo','getGeometry','191484wThELP','color','atan2','sin','context','length'];a77_0x3e07=function(){return _0x23bb86;};return a77_0x3e07();}function _getRealPolyline(_0x1aeb55,_0x1f67aa){const _0x563f86=a77_0x3f45;if(!(_0x1f67aa===null||_0x1f67aa===void 0x0?void 0x0:_0x1f67aa['closed']))return _0x1aeb55;else{if(_0x1aeb55[_0x563f86(0x163)]()===_0x563f86(0x156)){let _0x36525e=_0x1aeb55[_0x563f86(0x15c)]();for(let _0x3d2b93 in _0x36525e){let _0x4a5d6=_0x36525e[_0x3d2b93];_0x36525e[_0x3d2b93]=_0x4a5d6[_0x563f86(0x16a)]([_0x4a5d6[0x0]]);}return new MultiLineString(_0x36525e);}else return new LineString(_0x1aeb55[_0x563f86(0x15c)]()[_0x563f86(0x16a)]([_0x1aeb55[_0x563f86(0x169)]()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x314439,_0x1d8760){const _0x189589=a78_0x2359,_0x1b2818=_0x314439();while(!![]){try{const _0x583a6c=-parseInt(_0x189589(0x79))/0x1*(parseInt(_0x189589(0x85))/0x2)+parseInt(_0x189589(0x7c))/0x3+parseInt(_0x189589(0x80))/0x4+-parseInt(_0x189589(0x6e))/0x5*(-parseInt(_0x189589(0x70))/0x6)+-parseInt(_0x189589(0x78))/0x7+-parseInt(_0x189589(0x87))/0x8+parseInt(_0x189589(0x8c))/0x9;if(_0x583a6c===_0x1d8760)break;else _0x1b2818['push'](_0x1b2818['shift']());}catch(_0x1f660b){_0x1b2818['push'](_0x1b2818['shift']());}}}(a78_0x4e5a,0xa38b3));import a78_0x27f080 from'ol/style/Circle';import a78_0xef023f from'ol/style/Fill';import a78_0x5b66f7 from'ol/style/Stroke';import a78_0x1fe43e from'ol/style/Style';function a78_0x4e5a(){const _0x3e5ba1=['setImage','outlineColor','circle','1633468kxvlFF','setFill','rgba(121,\x20243,\x20238,\x200)','scale','anchor','592612oUiZTx','setText','7793192lRHqfO','rotation','rgba(0,\x20255,0,\x200)','radius','imgurl','6550587fgiMLC','rgba(0,\x20255,0,\x201)','rgba(121,\x20243,\x20238,\x200.3)','10doLWSK','rgba(121,\x20243,\x20238,\x201)','2232762gTzwdA','LineString','Polygon','text','color','outlineWidth','Point','opacity','545440WTTJOA','3BqFFFN','pointType','setStroke','2191194yXVBEC'];a78_0x4e5a=function(){return _0x3e5ba1;};return a78_0x4e5a();}import{createTextStyle,getColor}from'./common';function a78_0x2359(_0x10304e,_0x8f8b96){const _0x4e5a00=a78_0x4e5a();return a78_0x2359=function(_0x2359fc,_0xb751c9){_0x2359fc=_0x2359fc-0x6c;let _0x24272c=_0x4e5a00[_0x2359fc];return _0x24272c;},a78_0x2359(_0x10304e,_0x8f8b96);}import{Icon}from'ol/style';export function getSelectPointStyle(){const _0x349bb2=a78_0x2359;return new a78_0x1fe43e({'image':new a78_0x27f080({'radius':0x5,'fill':new a78_0xef023f({'color':_0x349bb2(0x6f)}),'stroke':new a78_0x5b66f7({'color':_0x349bb2(0x6f),'width':0x1})})});}export function getSelectCancePointStyle(){const _0x277a2a=a78_0x2359;return new a78_0x1fe43e({'image':new a78_0x27f080({'radius':0x5,'fill':new a78_0xef023f({'color':_0x277a2a(0x82)}),'stroke':new a78_0x5b66f7({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x1})})});}export function getSelectLineStyle(){const _0x49c6b7=a78_0x2359;return new a78_0x1fe43e({'stroke':new a78_0x5b66f7({'color':_0x49c6b7(0x6f),'width':0x2})});}export function getSelectCancelLineStyle(){const _0x366fbf=a78_0x2359;return new a78_0x1fe43e({'stroke':new a78_0x5b66f7({'color':_0x366fbf(0x6c),'width':0x2})});}export function getSelectPolygonStyle(){const _0x294c13=a78_0x2359;return new a78_0x1fe43e({'stroke':new a78_0x5b66f7({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x2}),'fill':new a78_0xef023f({'color':_0x294c13(0x6d)})});}export function getSelectCancelPolygonStyle(){const _0x153791=a78_0x2359;return new a78_0x1fe43e({'stroke':new a78_0x5b66f7({'color':_0x153791(0x6c),'width':0x2}),'fill':new a78_0xef023f({'color':_0x153791(0x89)})});}export function getStyle(_0x3a50a3){const _0x3a3431=a78_0x2359;if(_0x3a50a3){const _0x959496=new a78_0x1fe43e();if(_0x3a50a3[_0x3a3431(0x73)]){const _0x4ddbe1=createTextStyle(_0x3a50a3,_0x3a50a3['text']);_0x4ddbe1&&_0x959496[_0x3a3431(0x86)](_0x4ddbe1),_0x959496['setZIndex'](0x1);}return _0x3a50a3[_0x3a3431(0x7e)]&&_0x959496[_0x3a3431(0x7b)](new a78_0x5b66f7({'color':getColor(_0x3a50a3[_0x3a3431(0x7e)],_0x3a50a3['outlineOpacity']),'width':_0x3a50a3[_0x3a3431(0x75)]||0x1})),_0x3a50a3[_0x3a3431(0x74)]&&_0x959496[_0x3a3431(0x81)](new a78_0xef023f({'color':getColor(_0x3a50a3['color'],_0x3a50a3[_0x3a3431(0x77)])})),_0x3a50a3['pointType']==_0x3a3431(0x7f)&&_0x959496[_0x3a3431(0x7d)](new a78_0x27f080({'radius':_0x3a50a3[_0x3a3431(0x8a)]||0x5,'fill':new a78_0xef023f({'color':getColor(_0x3a50a3[_0x3a3431(0x74)],_0x3a50a3[_0x3a3431(0x77)])})})),(_0x3a50a3[_0x3a3431(0x7a)]=='icon'||_0x3a50a3['imgurl'])&&_0x959496[_0x3a3431(0x7d)](new Icon({'src':_0x3a50a3[_0x3a3431(0x8b)],'anchor':_0x3a50a3[_0x3a3431(0x84)]||[0.5,0.5],'scale':_0x3a50a3[_0x3a3431(0x83)]||0x1,'rotation':_0x3a50a3[_0x3a3431(0x88)]||0x0})),_0x959496;}return new a78_0x1fe43e({'stroke':new a78_0x5b66f7({'color':_0x3a3431(0x6f),'width':0x2}),'fill':new a78_0xef023f({'color':'rgba(121,\x20243,\x20238,\x200.3)'})});}export function getSelectStyle(_0x1c80fe){const _0x532182=a78_0x2359;let _0x1246d7=getSelectPolygonStyle();switch(_0x1c80fe){case'MultiPolygon':case _0x532182(0x72):_0x1246d7=getSelectPolygonStyle();break;case'MultiLineString':case _0x532182(0x71):_0x1246d7=getSelectLineStyle();break;case'MultiPoint':case _0x532182(0x76):_0x1246d7=getSelectPointStyle();break;default:break;}return _0x1246d7;}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5363d7,_0x290c27){const _0x4cb451=a74_0x5ed3,_0x151ff4=_0x5363d7();while(!![]){try{const _0x5a6958=parseInt(_0x4cb451(0x103))/0x1+-parseInt(_0x4cb451(0x104))/0x2+parseInt(_0x4cb451(0x109))/0x3+parseInt(_0x4cb451(0x114))/0x4+-parseInt(_0x4cb451(0x10d))/0x5*(-parseInt(_0x4cb451(0xed))/0x6)+parseInt(_0x4cb451(0xf1))/0x7+-parseInt(_0x4cb451(0xf7))/0x8*(parseInt(_0x4cb451(0xe7))/0x9);if(_0x5a6958===_0x290c27)break;else _0x151ff4['push'](_0x151ff4['shift']());}catch(_0x4b5323){_0x151ff4['push'](_0x151ff4['shift']());}}}(a74_0x52f5,0x3e57f));import a74_0x440ea6 from'color';function a74_0x5ed3(_0x5de8be,_0x20ea2b){const _0x52f5fb=a74_0x52f5();return a74_0x5ed3=function(_0x5ed3ea,_0x1fdf4b){_0x5ed3ea=_0x5ed3ea-0xe5;let _0x5061cc=_0x52f5fb[_0x5ed3ea];return _0x5061cc;},a74_0x5ed3(_0x5de8be,_0x20ea2b);}import{Fill,Icon,Stroke,Text}from'ol/style';import a74_0x485e3e from'../utils/plug/canvas/PinIcon';import a74_0x169f06 from'ol/ImageState';export function isShowStyle(_0xcea465,_0x1549c2,_0x3562bf){const _0x50a825=a74_0x5ed3;let _0x491581=!![];if(_0x1549c2==undefined||_0x3562bf==undefined)return _0x491581;if(_0xcea465&&typeof _0xcea465['distanceDisplayFar']!=undefined&&typeof _0xcea465[_0x50a825(0xe9)]!=undefined){if(_0xcea465[_0x50a825(0xfb)]&&_0x3562bf){_0x491581=![];let _0x3cef43=getLevel(_0xcea465['distanceDisplayFar']),_0x1ef5e7=_0x3562bf[_0x50a825(0xe6)]()[_0x50a825(0xf5)](_0x3cef43);_0x1549c2<_0x1ef5e7&&(_0x491581=!![]);}if(_0x491581&&_0xcea465[_0x50a825(0xe9)]&&_0x3562bf){_0x491581=![];let _0x2ee0df=getLevel(_0xcea465[_0x50a825(0xe9)]),_0x3d6f0a=_0x3562bf[_0x50a825(0xe6)]()[_0x50a825(0xf5)](_0x2ee0df);_0x1549c2>_0x3d6f0a&&(_0x491581=!![]);}}return _0x491581;}export function getLevel(_0x2ac8ee){const _0xa652d5=a74_0x5ed3,_0xb32d82=3252.745,_0x11619d=0.0009198301,_0x36968c=52977.61,_0x174fac=-3228.107;return _0x174fac+(_0xb32d82-_0x174fac)/(0x1+Math[_0xa652d5(0xf9)](_0x2ac8ee/_0x36968c,_0x11619d));}function a74_0x52f5(){const _0x1930df=['textAlign','color','haloColor','target','920644WPzmqs','IDLE','getView','615420nRYVpy','opacity','distanceDisplayNear','LOADED','size','normal','828906mpJSJr','haloOpacity','backgroundOpacity','weight','1767269ECzvYK','italic','haloWidth','ERROR','getResolutionForZoom','borderLineOpacity','40Bocpsh','#2A2A2A','pow','getImage','distanceDisplayFar','backgroundColor','family','listenImageChange','px\x20','borderLineColor','markerColor','image','292898CtPZmG','838740uxEpFK','borderLineWidth','offsetX','bold','font','308856fgFqJl','load','#000000','getImageState','5MhiEsD','hexa','offsetY'];a74_0x52f5=function(){return _0x1930df;};return a74_0x52f5();}export function toRadians(_0x49dacd){if(_0x49dacd)return-(_0x49dacd*Math['PI'])/0xb4;return 0x0;}export function createTextStyle(_0x243b16,_0x161fd5,_0x1b7ea2,_0xc7ff3b){const _0x20a7d0=a74_0x5ed3;var _0x38172b,_0x14ee7d,_0x4fdce8,_0x4273e5,_0x2234cf,_0x167c1e,_0xcc9f48,_0x562bee;if(_0x243b16){let _0x13bafb=isShowStyle(_0x243b16,_0x1b7ea2,_0xc7ff3b);if(_0x13bafb===![])return undefined;else{const _0x6147a5=_0x243b16[_0x20a7d0(0x108)],_0x11f635=(_0x6147a5===null||_0x6147a5===void 0x0?void 0x0:_0x6147a5['italic'])?_0x20a7d0(0xf2):_0x20a7d0(0xec),_0x3ecb74=(_0x6147a5===null||_0x6147a5===void 0x0?void 0x0:_0x6147a5[_0x20a7d0(0xf0)])?_0x20a7d0(0x107):_0x20a7d0(0xec),_0x318949=(_0x6147a5===null||_0x6147a5===void 0x0?void 0x0:_0x6147a5[_0x20a7d0(0xeb)])||'25',_0x34b27e=(_0x6147a5===null||_0x6147a5===void 0x0?void 0x0:_0x6147a5[_0x20a7d0(0xfd)])||'楷体';let _0x79081=_0x11f635+'\x20normal\x20'+_0x3ecb74+'\x20'+_0x318949+_0x20a7d0(0xff)+_0x34b27e,_0x2f8ae3=(_0x6147a5===null||_0x6147a5===void 0x0?void 0x0:_0x6147a5[_0x20a7d0(0x106)])||0x0,_0x217a11=(_0x6147a5===null||_0x6147a5===void 0x0?void 0x0:_0x6147a5[_0x20a7d0(0x10f)])||0x0,_0x3aa377=(_0x6147a5===null||_0x6147a5===void 0x0?void 0x0:_0x6147a5['textBaseline'])||'middle',_0xfe4706=(_0x6147a5===null||_0x6147a5===void 0x0?void 0x0:_0x6147a5[_0x20a7d0(0x110)])||'center';const _0x1c1481=_0x243b16[_0x20a7d0(0xe8)]||0x1;let _0x291b9e=undefined;return(_0x6147a5===null||_0x6147a5===void 0x0?void 0x0:_0x6147a5[_0x20a7d0(0x112)])&&(_0x291b9e=_getStroke(_0x6147a5['haloColor'],_0x6147a5[_0x20a7d0(0xee)],_0x6147a5[_0x20a7d0(0xf3)])),new Text({'overflow':!![],'text':_0x161fd5,'font':_0x79081,'offsetX':_0x2f8ae3,'offsetY':_0x217a11,'textAlign':_0xfe4706,'textBaseline':_0x3aa377,'fill':new Fill({'color':getColor(((_0x38172b=_0x243b16[_0x20a7d0(0x108)])===null||_0x38172b===void 0x0?void 0x0:_0x38172b[_0x20a7d0(0x111)])||_0x20a7d0(0x10b),_0x1c1481)}),'stroke':_0x291b9e,'backgroundFill':((_0x14ee7d=_0x243b16['font'])===null||_0x14ee7d===void 0x0?void 0x0:_0x14ee7d[_0x20a7d0(0xfc)])?new Fill({'color':getColor(((_0x4fdce8=_0x243b16[_0x20a7d0(0x108)])===null||_0x4fdce8===void 0x0?void 0x0:_0x4fdce8['backgroundColor'])||_0x20a7d0(0xf8),((_0x4273e5=_0x243b16[_0x20a7d0(0x108)])===null||_0x4273e5===void 0x0?void 0x0:_0x4273e5[_0x20a7d0(0xef)])||0x1)}):undefined,'backgroundStroke':((_0x2234cf=_0x243b16[_0x20a7d0(0x108)])===null||_0x2234cf===void 0x0?void 0x0:_0x2234cf[_0x20a7d0(0x100)])?_getStroke((_0x167c1e=_0x243b16[_0x20a7d0(0x108)])===null||_0x167c1e===void 0x0?void 0x0:_0x167c1e[_0x20a7d0(0x100)],((_0xcc9f48=_0x243b16[_0x20a7d0(0x108)])===null||_0xcc9f48===void 0x0?void 0x0:_0xcc9f48[_0x20a7d0(0xf6)])||0x1,((_0x562bee=_0x243b16[_0x20a7d0(0x108)])===null||_0x562bee===void 0x0?void 0x0:_0x562bee[_0x20a7d0(0x105)])||0x1):undefined});}}else return undefined;}export function getColor(_0x3ee5ab,_0x46060e){const _0x3e085c=a74_0x5ed3;return a74_0x440ea6(_0x3ee5ab)['alpha'](_0x46060e!=undefined?_0x46060e:0x1)[_0x3e085c(0x10e)]();}function _getStroke(_0x3eecc4,_0x275ea3,_0x219129){return new Stroke({'color':getColor(_0x3eecc4,_0x275ea3),'width':_0x219129==undefined?0x1:_0x219129});}export function preLoadImageRenderFunction(_0x4863d5,_0x1c8089,_0xfe1a01,_0x1f520e,_0x2a3847){const _0x125078=a74_0x5ed3;let _0x5a5e91;_0x4863d5[_0x125078(0x101)]?_0x5a5e91=new a74_0x485e3e(_0x4863d5):_0x5a5e91=new Icon({'src':_0x4863d5[_0x125078(0x102)]});let _0x56dd4f=_0x5a5e91['getImageState']();_0x56dd4f===a74_0x169f06[_0x125078(0xea)]||_0x56dd4f===a74_0x169f06[_0x125078(0xf4)]?_0x2a3847(_0x4863d5,_0x1c8089,_0xfe1a01,_0x1f520e,_0x5a5e91[_0x125078(0xfa)](0x60)):(_0x56dd4f===a74_0x169f06[_0x125078(0xe5)]&&_0x5a5e91[_0x125078(0x10a)](),_0x5a5e91[_0x125078(0xfe)](_0x2d6d51=>{const _0x292472=_0x125078;_0x56dd4f=_0x2d6d51[_0x292472(0x113)][_0x292472(0x10c)](),(_0x56dd4f===a74_0x169f06[_0x292472(0xea)]||_0x56dd4f===a74_0x169f06['ERROR'])&&_0x2a3847(_0x4863d5,_0x1c8089,_0xfe1a01,_0x1f520e,_0x5a5e91['getImage'](0x60));}));}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a1397,_0x28772c){const _0x2489c9=a79_0x5702,_0x4630ca=_0x4a1397();while(!![]){try{const _0x1be593=parseInt(_0x2489c9(0x18c))/0x1+-parseInt(_0x2489c9(0x192))/0x2+-parseInt(_0x2489c9(0x18e))/0x3+-parseInt(_0x2489c9(0x190))/0x4*(-parseInt(_0x2489c9(0x193))/0x5)+-parseInt(_0x2489c9(0x191))/0x6+-parseInt(_0x2489c9(0x194))/0x7+parseInt(_0x2489c9(0x198))/0x8;if(_0x1be593===_0x28772c)break;else _0x4630ca['push'](_0x4630ca['shift']());}catch(_0x41c919){_0x4630ca['push'](_0x4630ca['shift']());}}}(a79_0x537d,0xc06cc));export function getDeepth(_0x564663){function _0x437ff7(_0x248f5e,_0x559e7a){const _0x122511=a79_0x5702;return _0x248f5e[_0x122511(0x196)](function(_0x7a009a,_0xe347bb){const _0x41c9d2=_0x122511;var _0x39ec64;return Array[_0x41c9d2(0x18f)](_0xe347bb)&&(_0x39ec64=_0x437ff7(_0xe347bb,_0x559e7a+0x1)),_0x39ec64>_0x7a009a?_0x39ec64:_0x7a009a;},_0x559e7a);}return _0x437ff7(_0x564663,0x1);}export function compareArray(_0x28b9b4,_0x4235d1){const _0x4e0b60=a79_0x5702;if(_0x28b9b4[_0x4e0b60(0x199)]!==_0x4235d1[_0x4e0b60(0x199)])return![];const _0x20471b=_0x28b9b4[_0x4e0b60(0x199)];for(let _0x35ee40=0x0;_0x35ee40<_0x20471b;_0x35ee40++){if(!compare(_0x28b9b4[_0x35ee40],_0x4235d1[_0x35ee40]))return![];}return!![];}function a79_0x5702(_0x55113c,_0x25ab98){const _0x537d19=a79_0x537d();return a79_0x5702=function(_0x570212,_0x300f4c){_0x570212=_0x570212-0x18c;let _0x11cafd=_0x537d19[_0x570212];return _0x11cafd;},a79_0x5702(_0x55113c,_0x25ab98);}export function compare(_0x28989f,_0x745367){const _0x3a9427=a79_0x5702;if(_0x28989f===_0x745367)return!![];if(typeof _0x28989f!==typeof _0x745367||_0x28989f===null||_0x745367===null)return![];if(Array[_0x3a9427(0x18f)](_0x28989f)){if(!Array[_0x3a9427(0x18f)](_0x745367))return![];return compareArray(_0x28989f,_0x745367);}if(typeof _0x28989f===_0x3a9427(0x197))return compareObject(_0x28989f,_0x745367);return![];}function a79_0x537d(){const _0x24e5d6=['38590OvlAlM','every','3442662ujeiGQ','isArray','60XoPCsO','953100ISiqyK','835770rCffxM','16755TcSiKA','2826992NtEwgr','keys','reduce','object','22619696CGydIO','length'];a79_0x537d=function(){return _0x24e5d6;};return a79_0x537d();}export function compareObject(_0x37c5c9,_0x446510){const _0x100202=a79_0x5702,_0x42d5af=Object[_0x100202(0x195)](_0x37c5c9),_0x5a9909=Object[_0x100202(0x195)](_0x446510);if(_0x42d5af[_0x100202(0x199)]!==_0x5a9909[_0x100202(0x199)])return![];return _0x42d5af[_0x100202(0x18d)](_0x1619e1=>{if(!compare(_0x37c5c9[_0x1619e1],_0x446510[_0x1619e1]))return![];return!![];});}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a80_0x5445(_0x186820,_0x1e2eab){const _0x427172=a80_0x4271();return a80_0x5445=function(_0x5445a9,_0x1d4ae2){_0x5445a9=_0x5445a9-0xca;let _0x5c85df=_0x427172[_0x5445a9];return _0x5c85df;},a80_0x5445(_0x186820,_0x1e2eab);}function a80_0x4271(){const _0x5695b5=['336182hjNzin','jsonp','485532nRROaO','hasOwnProperty','6GrMjAC','constructor','96105caXkcv','create','1032857AchxhG','194190bNdfqX','598608iVovMn','stringify','append','get','1546232WqzCLg','forEach'];a80_0x4271=function(){return _0x5695b5;};return a80_0x4271();}const a80_0x4c692a=a80_0x5445;(function(_0x2fc740,_0x4e39ad){const _0x5338c1=a80_0x5445,_0x5f15d3=_0x2fc740();while(!![]){try{const _0x3bf587=parseInt(_0x5338c1(0xd4))/0x1+parseInt(_0x5338c1(0xcd))/0x2+-parseInt(_0x5338c1(0xce))/0x3+-parseInt(_0x5338c1(0xd6))/0x4+parseInt(_0x5338c1(0xca))/0x5+-parseInt(_0x5338c1(0xd8))/0x6*(parseInt(_0x5338c1(0xcc))/0x7)+parseInt(_0x5338c1(0xd2))/0x8;if(_0x3bf587===_0x4e39ad)break;else _0x5f15d3['push'](_0x5f15d3['shift']());}catch(_0x8222d2){_0x5f15d3['push'](_0x5f15d3['shift']());}}}(a80_0x4271,0x2b49b));import a80_0x1e7448 from'axios';import a80_0x267e4b from'jquery';const request=a80_0x1e7448[a80_0x4c692a(0xcb)]({'timeout':0xb4*0x3e8});export function jsonp(_0x339acb){return new Promise((_0x2c2521,_0xdf06e8)=>{const _0x140648=a80_0x5445;a80_0x267e4b['ajax']({'url':_0x339acb,'type':_0x140648(0xd1),'dataType':_0x140648(0xd5),'success':_0x351aa9=>{_0x2c2521(_0x351aa9);},'error':_0x33c523=>{_0xdf06e8(_0x33c523);}});});}export function stringify(_0x3e332f){const _0x288073=a80_0x4c692a,_0x266805=new FormData();for(const _0x392c50 in _0x3e332f){if(_0x3e332f[_0x288073(0xd7)](_0x392c50)){if(_0x3e332f[_0x392c50]){if(_0x3e332f[_0x392c50][_0x288073(0xd9)]===Array)_0x3e332f[_0x392c50][0x0]?_0x3e332f[_0x392c50][0x0][_0x288073(0xd9)]===Object?_0x266805[_0x288073(0xd0)](_0x392c50,JSON['stringify'](_0x3e332f[_0x392c50])):_0x3e332f[_0x392c50][_0x288073(0xd3)]((_0x57f51e,_0x5ccb5f)=>{const _0x3eba16=_0x288073;_0x266805[_0x3eba16(0xd0)](_0x392c50+('['+_0x5ccb5f+']'),_0x57f51e);}):_0x266805[_0x288073(0xd0)](_0x392c50+'[]','');else _0x3e332f[_0x392c50]['constructor']===Object?_0x266805[_0x288073(0xd0)](_0x392c50,JSON[_0x288073(0xcf)](_0x3e332f[_0x392c50])):_0x266805[_0x288073(0xd0)](_0x392c50,_0x3e332f[_0x392c50]);}else _0x3e332f[_0x392c50]===0x0?_0x266805[_0x288073(0xd0)](_0x392c50,'0'):_0x266805['append'](_0x392c50,'');}}return _0x266805;}export default request;
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c4206,_0x1d7644){const _0x71311d=a81_0x55d3,_0x15ce76=_0x3c4206();while(!![]){try{const _0x5e7110=-parseInt(_0x71311d(0xdf))/0x1*(-parseInt(_0x71311d(0xe1))/0x2)+parseInt(_0x71311d(0xde))/0x3*(-parseInt(_0x71311d(0xea))/0x4)+parseInt(_0x71311d(0xe6))/0x5*(parseInt(_0x71311d(0xe7))/0x6)+parseInt(_0x71311d(0xe9))/0x7+parseInt(_0x71311d(0xe0))/0x8*(parseInt(_0x71311d(0xe2))/0x9)+parseInt(_0x71311d(0xe5))/0xa*(-parseInt(_0x71311d(0xdd))/0xb)+-parseInt(_0x71311d(0xe8))/0xc;if(_0x5e7110===_0x1d7644)break;else _0x15ce76['push'](_0x15ce76['shift']());}catch(_0x3961ae){_0x15ce76['push'](_0x15ce76['shift']());}}}(a81_0x37de,0xe327b));export function getEsriSpatialReference(_0x41fb63){const _0x4342a8=a81_0x55d3;let _0x55bec5;if(_0x41fb63){let _0x34dd2c=_0x41fb63[_0x4342a8(0xe4)]();_0x34dd2c[_0x4342a8(0xe3)]('EPSG:')===0x0?_0x55bec5=_0x41fb63['replace']('EPSG:',''):_0x55bec5=_0x41fb63;}return _0x55bec5;}function a81_0x55d3(_0x1a83f5,_0x4c59bc){const _0x37deb6=a81_0x37de();return a81_0x55d3=function(_0x55d33d,_0x7dcb6f){_0x55d33d=_0x55d33d-0xdd;let _0x3dd19a=_0x37deb6[_0x55d33d];return _0x3dd19a;},a81_0x55d3(_0x1a83f5,_0x4c59bc);}function a81_0x37de(){const _0x446b5b=['2745568aeQGiG','1605764uPJEIt','188254AgPXly','9OtpoIp','1048IgLLTe','600jxEMAp','3356yeIRIQ','111636NNLQuG','indexOf','toUpperCase','10BzffgQ','142325FHfXkL','114YEFpDJ','17640468EwBRmV'];a81_0x37de=function(){return _0x446b5b;};return a81_0x37de();}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x11b740=a84_0xbec1;function a84_0xbec1(_0x94356b,_0x266a23){const _0x3036c7=a84_0x3036();return a84_0xbec1=function(_0xbec1d5,_0x423ada){_0xbec1d5=_0xbec1d5-0x1f3;let _0x3c4547=_0x3036c7[_0xbec1d5];return _0x3c4547;},a84_0xbec1(_0x94356b,_0x266a23);}(function(_0x1f5731,_0x385c52){const _0x492281=a84_0xbec1,_0xa0dae4=_0x1f5731();while(!![]){try{const _0x4b094d=-parseInt(_0x492281(0x20a))/0x1*(-parseInt(_0x492281(0x20c))/0x2)+-parseInt(_0x492281(0x209))/0x3*(parseInt(_0x492281(0x217))/0x4)+parseInt(_0x492281(0x207))/0x5+-parseInt(_0x492281(0x224))/0x6+-parseInt(_0x492281(0x226))/0x7+-parseInt(_0x492281(0x215))/0x8*(parseInt(_0x492281(0x222))/0x9)+parseInt(_0x492281(0x1fe))/0xa;if(_0x4b094d===_0x385c52)break;else _0xa0dae4['push'](_0xa0dae4['shift']());}catch(_0x14bd27){_0xa0dae4['push'](_0xa0dae4['shift']());}}}(a84_0x3036,0x888f8));import a84_0x51b78b from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a84_0x3efd61}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a84_0x30060f,getArea as a84_0x4ff8f5}from'ol/sphere';import a84_0x1ee33d from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a84_0x2b4d0b from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a84_0x770a3 from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a84_0x92188b from'jsts/org/locationtech/jts/io/OL3Parser.js';import a84_0x306e37 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a84_0x56e0ad from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a84_0x3877c4 from'ol/format/GeoJSON';import a84_0x3f5392 from'jsts/org/locationtech/jts/geom/GeometryFactory';import a84_0x2395b6 from'jsts/org/locationtech/jts/linearref/LengthIndexedLine';import{Circle,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import{fromCircle}from'ol/geom/Polygon';import a84_0xd783bc from'ol/format/WKT';import a84_0x4497a8 from'ol/format/EsriJSON';const _parser=new a84_0x92188b(undefined,undefined);_parser[a84_0x11b740(0x202)](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x24d954,_0x57ce5e,_0x24bd57=![]){const _0x9a7d43=a84_0x11b740;if(!_0x24d954)return 0x0;if(typeof _0x57ce5e==_0x9a7d43(0x21e)){let _0x2149b7=registerProj(_0x57ce5e);if(_0x2149b7==null)return console[_0x9a7d43(0x22a)]('未找到投影信息'),0x0;_0x57ce5e=_0x2149b7;}const _0x35def0=isSpheroid(_0x57ce5e);if(_0x24bd57)return a84_0x4ff8f5(_0x24d954,{'projection':_0x57ce5e});else{if(_0x35def0){const _0xdfee76=getGeoProjection(_0x24d954,_0x57ce5e);return _0x24d954['clone']()['transform'](_0x57ce5e,_0xdfee76)[_0x9a7d43(0x1ff)]();}return _0x24d954[_0x9a7d43(0x1ff)]();}}export function getLength(_0x18eb24,_0x1f0964,_0x1aa1bf=![]){const _0x49e5bc=a84_0x11b740;if(!_0x18eb24)return 0x0;if(typeof _0x1f0964==_0x49e5bc(0x21e)){let _0x1dbbc6=registerProj(_0x1f0964);if(_0x1dbbc6==null)return console['error'](_0x49e5bc(0x22d)),0x0;_0x1f0964=_0x1dbbc6;}const _0x18c5a0=isSpheroid(_0x1f0964);if(_0x1aa1bf)return a84_0x30060f(_0x18eb24,{'projection':_0x1f0964});else{let _0x3b7a46=_0x18eb24;if(_0x18c5a0){const _0x15ff5e=getGeoProjection(_0x18eb24,_0x1f0964);_0x3b7a46=_0x18eb24[_0x49e5bc(0x22e)]()[_0x49e5bc(0x225)](_0x1f0964,_0x15ff5e);}if(_0x3b7a46 instanceof LineString)return _0x3b7a46[_0x49e5bc(0x21c)]();else{let _0x4bef56=0x0;for(let _0x695e9e=0x0;_0x695e9e<_0x3b7a46[_0x49e5bc(0x210)]()[_0x49e5bc(0x21d)];_0x695e9e++){_0x4bef56+=_0x3b7a46[_0x49e5bc(0x210)]()[_0x695e9e][_0x49e5bc(0x21c)]();}return _0x4bef56;}}}export function bufferOp(_0x40b885,_0x5bb50d){const _0x36e8ca=a84_0x11b740,_0xcc6c62=_parser[_0x36e8ca(0x227)](_0x40b885),_0x1f406c=a84_0x1ee33d[_0x36e8ca(0x1f7)](_0xcc6c62,_0x5bb50d);return _parser[_0x36e8ca(0x1f4)](_0x1f406c);}export function bufferPixel(_0x5a6967,_0x4ebeba,_0x4cdc9c){const _0x3bd62a=a84_0x11b740,_0x5e9571=_0x4cdc9c[_0x3bd62a(0x231)](_0x5a6967['getCoordinates']()),_0x3e7538=_0x4cdc9c[_0x3bd62a(0x223)]([_0x5e9571[0x0]+_0x4ebeba,_0x5e9571[0x1]]),_0x57276c=a84_0x3efd61(_0x5a6967['getCoordinates'](),_0x3e7538),_0x40ba0e=bufferOp(_0x5a6967,_0x57276c);return _0x40ba0e;}export function contains(_0x44810c,_0x28f4cb){const _0x3d1e78=a84_0x11b740,_0xb8fe08=_parser[_0x3d1e78(0x227)](_0x44810c),_0x42e426=_parser['read'](_0x28f4cb);return a84_0x2b4d0b[_0x3d1e78(0x20d)](_0xb8fe08,_0x42e426);}export function crosses(_0x1389ad,_0x43e753){const _0x14a326=a84_0x11b740,_0x5d5c07=_parser[_0x14a326(0x227)](_0x1389ad),_0x27f4a1=_parser[_0x14a326(0x227)](_0x43e753);return a84_0x2b4d0b[_0x14a326(0x221)](_0x5d5c07,_0x27f4a1);}export function intersects(_0x277cbd,_0x3112bb){const _0x433700=a84_0x11b740,_0x224e34=_parser[_0x433700(0x227)](_0x277cbd),_0x3d90ef=_parser[_0x433700(0x227)](_0x3112bb);return a84_0x2b4d0b[_0x433700(0x21f)](_0x224e34,_0x3d90ef);}export function intersection(_0x2f08da,_0x4cad72){const _0x42b030=a84_0x11b740,_0x39c485=_parser[_0x42b030(0x227)](_0x2f08da),_0x27c703=_parser[_0x42b030(0x227)](_0x4cad72);return _parser[_0x42b030(0x1f4)](a84_0x770a3[_0x42b030(0x213)](_0x39c485,_0x27c703));}export function union(_0xb9277e,_0x4afe25){const _0x56db4f=a84_0x11b740,_0x47fed5=_parser['read'](_0xb9277e),_0x1ad3e7=_parser[_0x56db4f(0x227)](_0x4afe25);return _parser['write'](a84_0x770a3[_0x56db4f(0x1f6)](_0x47fed5,_0x1ad3e7));}export function unions(_0x268c5f){const _0x20e3df=a84_0x11b740;if(!_0x268c5f||_0x268c5f[_0x20e3df(0x21d)]===0x0)return;if(_0x268c5f[_0x20e3df(0x21d)]===0x1)return _0x268c5f[0x0][_0x20e3df(0x22e)]();let _0x3ea29d=_parser[_0x20e3df(0x227)](_0x268c5f[0x0]);for(let _0x475e20=0x1;_0x475e20<_0x268c5f['length'];_0x475e20++){const _0x567c03=_parser[_0x20e3df(0x227)](_0x268c5f[_0x475e20]);_0x3ea29d=a84_0x770a3['union'](_0x3ea29d,_0x567c03);}return _parser[_0x20e3df(0x1f4)](_0x3ea29d);}export function difference(_0x40d150,_0x4694ed){const _0x15fd3c=a84_0x11b740,_0x1c17ac=_parser[_0x15fd3c(0x227)](_0x40d150),_0x4c8a78=_parser[_0x15fd3c(0x227)](_0x4694ed);return _parser[_0x15fd3c(0x1f4)](a84_0x770a3[_0x15fd3c(0x1f3)](_0x1c17ac,_0x4c8a78));}export function distance(_0x394a77,_0x571caf){const _0x38e9f1=a84_0x11b740,_0x482d28=_parser[_0x38e9f1(0x227)](_0x394a77),_0x215ba6=_parser[_0x38e9f1(0x227)](_0x571caf);return _parser['write'](a84_0x56e0ad[_0x38e9f1(0x1fd)](_0x482d28,_0x215ba6));}export function jstlSplit(_0x3aa3af,_0x22dcf3){const _0x3c172b=a84_0x11b740,_0x27711d=_parser[_0x3c172b(0x227)](_0x3aa3af),_0x5792b1=_parser[_0x3c172b(0x227)](_0x22dcf3),_0x52f16b=_0x27711d[_0x3c172b(0x219)]();let _0x1fec44=[];function _0x200c6b(_0x4bb07b,_0x7bb9a4){const _0x22063d=_0x3c172b,_0x2407e5=_0x4bb07b[_0x22063d(0x1f8)](),_0x4068dc=_0x4bb07b[_0x22063d(0x201)](),_0x3319e2=[];for(let _0x4a0b78=0x0;_0x4a0b78<_0x4068dc;_0x4a0b78++){_0x3319e2[_0x22063d(0x21b)](_0x4bb07b[_0x22063d(0x206)](_0x4a0b78));}const _0x2a4aac=a84_0x770a3[_0x22063d(0x1f6)](_0x2407e5,_0x7bb9a4),_0x24e2d6=new a84_0x306e37();_0x24e2d6['add'](_0x2a4aac);const _0x583862=_0x24e2d6[_0x22063d(0x204)](),_0x153dc2=new a84_0x3f5392();_0x583862[_0x22063d(0x211)]()>0x1?_0x583862['toArray']()['forEach'](_0x572ef9=>{const _0x12396b=_0x22063d;let _0x341098=_0x572ef9;_0x3319e2[_0x12396b(0x212)](_0x49388d=>{const _0x221d9b=_0x12396b,_0x52f76b=_0x153dc2[_0x221d9b(0x218)](_0x49388d);try{_0x341098=a84_0x770a3['difference'](_0x341098,_0x52f76b);}catch(_0x44d723){console['warn'](_0x221d9b(0x200),_0x44d723);}}),_0x341098&&_0x1fec44['push'](_parser['write'](_0x341098));}):_0x1fec44[_0x22063d(0x21b)](_parser['write'](_0x4bb07b));}if(_0x52f16b===_0x3c172b(0x22b))_0x200c6b(_0x27711d,_0x5792b1);else{if(_0x52f16b===_0x3c172b(0x208)){const _0x2f4f1d=_0x27711d[_0x3c172b(0x20b)]();for(let _0x347f62=0x0;_0x347f62<_0x2f4f1d;_0x347f62++){const _0x1c14f2=_0x27711d[_0x3c172b(0x1f9)](_0x347f62);_0x200c6b(_0x1c14f2,_0x5792b1);}}else throw new Error('无法识别的数据类型');}return _0x1fec44;}export function splitLineByLine(_0x24ca05,_0x2a8255){const _0x5c564e=a84_0x11b740,_0x171d17=_parser[_0x5c564e(0x227)](_0x24ca05),_0x224bf9=_parser['read'](_0x2a8255),_0x13adae=a84_0x770a3[_0x5c564e(0x213)](_0x171d17,_0x224bf9);if(!_0x13adae||_0x13adae[_0x5c564e(0x1fa)]())return[_0x24ca05];const _0xcc3637=[];if(_0x13adae['getGeometryType']()===_0x5c564e(0x21a))_0xcc3637[_0x5c564e(0x21b)](_0x13adae[_0x5c564e(0x205)]());else{if(_0x13adae[_0x5c564e(0x219)]()===_0x5c564e(0x20e))for(let _0x736895=0x0;_0x736895<_0x13adae[_0x5c564e(0x20b)]();_0x736895++){_0xcc3637[_0x5c564e(0x21b)](_0x13adae[_0x5c564e(0x1f9)](_0x736895)[_0x5c564e(0x205)]());}}const _0x540557=new a84_0x2395b6(_0x171d17),_0x4b1d88=_0xcc3637[_0x5c564e(0x22c)](_0xe1bccb=>_0x540557[_0x5c564e(0x230)](_0xe1bccb))['sort']((_0x1ff6ab,_0x351afb)=>_0x1ff6ab-_0x351afb),_0xa3412a=[],_0x1cdb66=1e-9;for(let _0x180d2e=0x0;_0x180d2e<_0x4b1d88[_0x5c564e(0x21d)];_0x180d2e++){if(_0x180d2e===0x0||Math['abs'](_0x4b1d88[_0x180d2e]-_0x4b1d88[_0x180d2e-0x1])>_0x1cdb66)_0xa3412a['push'](_0x4b1d88[_0x180d2e]);}const _0x6ea1ac=[];let _0x5b7218=_0x540557[_0x5c564e(0x228)]?_0x540557[_0x5c564e(0x228)]():0x0;const _0x21ed75=_0x540557['getEndIndex']&&_0x540557[_0x5c564e(0x203)]()||_0x171d17['getLength']();for(let _0x476662=0x0;_0x476662<_0xa3412a[_0x5c564e(0x21d)];_0x476662++){const _0x4e6074=_0xa3412a[_0x476662];if(_0x4e6074-_0x5b7218>_0x1cdb66){const _0x3dc993=_0x540557[_0x5c564e(0x216)](_0x5b7218,_0x4e6074);_0x6ea1ac[_0x5c564e(0x21b)](_parser['write'](_0x3dc993));}_0x5b7218=_0x4e6074;}if(_0x21ed75-_0x5b7218>_0x1cdb66){const _0x272741=_0x540557[_0x5c564e(0x216)](_0x5b7218,_0x21ed75);_0x6ea1ac['push'](_parser['write'](_0x272741));}const _0xa434e3=_0x6ea1ac[_0x5c564e(0x1fb)](_0x7f878f=>{const _0x6bf128=_0x5c564e,_0x25846d=_0x7f878f[_0x6bf128(0x214)]();return _0x25846d&&_0x25846d[_0x6bf128(0x21d)]>=0x2&&!(_0x25846d['length']===0x2&&_0x25846d[0x0][0x0]===_0x25846d[0x1][0x0]&&_0x25846d[0x0][0x1]===_0x25846d[0x1][0x1]);});return _0xa434e3;}export function fromWKT(_0x31c647,_0x1a3e58,_0x3faec2){const _0x5e392c=new a84_0xd783bc();_0x1a3e58&®isterProj(_0x1a3e58);_0x3faec2&®isterProj(_0x3faec2);const _0xceab3c=_0x5e392c['readGeometry'](_0x31c647);if(isGeometryEmpty(_0xceab3c))return null;return _0x1a3e58&&_0x3faec2?_0xceab3c['transform'](new a84_0x51b78b({'code':_0x1a3e58}),new a84_0x51b78b({'code':_0x3faec2})):_0xceab3c;}export function fromWKTs(_0x3196cb,_0x1392fd,_0x3add81){const _0x55d55e=a84_0x11b740,_0x203c50=new a84_0xd783bc();let _0x4a290f=[];_0x1392fd&®isterProj(_0x1392fd);_0x3add81&®isterProj(_0x3add81);let _0x1991f9,_0x506cd4;_0x1392fd&&_0x3add81&&(_0x1991f9=new a84_0x51b78b({'code':_0x1392fd}),_0x506cd4=new a84_0x51b78b({'code':_0x3add81}));for(let _0x157778=0x0;_0x157778<_0x3196cb[_0x55d55e(0x21d)];_0x157778++){const _0x1340d8=_0x203c50[_0x55d55e(0x20f)](_0x3196cb[_0x157778]);if(isGeometryEmpty(_0x1340d8))continue;_0x1991f9&&_0x506cd4?_0x4a290f['push'](_0x1340d8[_0x55d55e(0x225)](_0x1991f9,_0x506cd4)):_0x4a290f['push'](_0x1340d8);}return _0x4a290f;}export function toWKT(_0x9d58f7){const _0x214c31=a84_0x11b740,_0x3e0dfc=new a84_0xd783bc();if(isGeometryEmpty(_0x9d58f7))return'';if(_0x9d58f7 instanceof Circle){const _0x1b152d=fromCircle(_0x9d58f7);return _0x3e0dfc['writeGeometry'](_0x1b152d);}else return _0x3e0dfc[_0x214c31(0x229)](_0x9d58f7);}export function toGeoJSON(_0x246fee){const _0x93d29=a84_0x11b740,_0x12b43e=new a84_0x3877c4();return _0x12b43e[_0x93d29(0x229)](_0x246fee);}export function fromGeoJSON(_0x3a1d0d){const _0x52abc7=a84_0x11b740,_0xe80bf4=new a84_0x3877c4();return _0xe80bf4[_0x52abc7(0x20f)](_0x3a1d0d);}export function toEsriJSON(_0x34ecac){const _0x43f4cb=a84_0x11b740,_0x415b2e=new a84_0x4497a8();return _0x415b2e[_0x43f4cb(0x229)](_0x34ecac);}export function fromEsriJSON(_0xd26c84){const _0x5023a6=a84_0x11b740,_0x47e7bb=new a84_0x4497a8();return _0x47e7bb[_0x5023a6(0x20f)](_0xd26c84);}export function expandExtent(_0x10ca2d,_0x5dd573){const _0x353558=_0x10ca2d[0x0],_0x3ec0de=_0x10ca2d[0x1],_0x3da9f5=_0x10ca2d[0x2],_0x2b983d=_0x10ca2d[0x3],_0xa73120=(_0x353558+_0x3da9f5)/0x2,_0x3729e2=(_0x3ec0de+_0x2b983d)/0x2,_0x5801d8=_0x3da9f5-_0x353558,_0x5103dd=_0x2b983d-_0x3ec0de,_0x5ee96c=_0x5801d8*_0x5dd573,_0x4c5407=_0x5103dd*_0x5dd573,_0x5167ef=_0xa73120-_0x5ee96c/0x2,_0x5df695=_0xa73120+_0x5ee96c/0x2,_0x45c5ee=_0x3729e2-_0x4c5407/0x2,_0x36b534=_0x3729e2+_0x4c5407/0x2;return[_0x5167ef,_0x45c5ee,_0x5df695,_0x36b534];}export function isGeometryEmpty(_0xae962a){const _0xfa064a=a84_0x11b740;if(!_0xae962a)return!![];if(_0xae962a instanceof Point||_0xae962a instanceof MultiPoint){const _0x4656cb=_0xae962a[_0xfa064a(0x214)]();return!_0x4656cb||_0x4656cb[_0xfa064a(0x1fc)](_0x1a570c=>isNaN(_0x1a570c));}else{if(_0xae962a instanceof LineString||_0xae962a instanceof MultiLineString)return _0xae962a[_0xfa064a(0x214)]()[_0xfa064a(0x21d)]<0x2;else{if(_0xae962a instanceof Polygon){const _0x535cdf=_0xae962a[_0xfa064a(0x214)]();return!_0x535cdf||_0x535cdf[_0xfa064a(0x21d)]===0x0||_0x535cdf[0x0][_0xfa064a(0x21d)]<0x4;}else{if(_0xae962a instanceof MultiPolygon){const _0x5a0816=_0xae962a[_0xfa064a(0x214)]();return!_0x5a0816||_0x5a0816[_0xfa064a(0x21d)]===0x0||_0x5a0816[0x0][0x0]['length']<0x4;}}}}return![];}function a84_0x3036(){const _0x102f21=['219piceKl','13633kFsHYc','getNumGeometries','46mRMDLW','contains','MultiPoint','readGeometry','getLineStrings','size','forEach','intersection','getCoordinates','711640cMjDia','extractLine','27688naIZCH','createPolygon','getGeometryType','Point','push','getLength','length','string','intersects','getType','crosses','18SSajmv','getCoordinateFromPixel','6384510QmOEOK','transform','5233977MyxrZK','read','getStartIndex','writeGeometry','error','Polygon','map','未找到投影信息','clone','getInteriorPoint','indexOf','getPixelFromCoordinate','difference','write','getExtent','union','bufferOp','getExteriorRing','getGeometryN','isEmpty','filter','some','distance','19201920RioLfe','getArea','孔洞操作失败:','getNumInteriorRing','inject','getEndIndex','getPolygons','getCoordinate','getInteriorRingN','4103065csOImb','MultiPolygon'];a84_0x3036=function(){return _0x102f21;};return a84_0x3036();}export function polygonToLines(_0xc7bbb2){const _0x5e21a4=a84_0x11b740;if(!_0xc7bbb2)return[];const _0x5432db=_0xc7bbb2['getLinearRings']();return _0x5432db[_0x5e21a4(0x22c)](_0x2f435c=>new LineString(_0x2f435c['getCoordinates']()));}export function getGeometryCenter(_0x37af7a){const _0x35f125=a84_0x11b740;if(!_0x37af7a)return undefined;const _0x48f96b=_0x37af7a[_0x35f125(0x220)]();if(_0x48f96b==='Point')return new Point(_0x37af7a[_0x35f125(0x214)]());if(_0x48f96b==='Polygon'||_0x48f96b===_0x35f125(0x208))return _0x37af7a[_0x35f125(0x22f)]();const _0x4a9f0e=getCenter(_0x37af7a[_0x35f125(0x1f5)]());return new Point(_0x4a9f0e);}
|
|
1
|
+
(function(_0x47a328,_0x38afe5){const _0x3d01a6=a84_0x5553,_0x331c85=_0x47a328();while(!![]){try{const _0x2956e3=parseInt(_0x3d01a6(0x174))/0x1*(-parseInt(_0x3d01a6(0x17a))/0x2)+-parseInt(_0x3d01a6(0x175))/0x3+parseInt(_0x3d01a6(0x172))/0x4+parseInt(_0x3d01a6(0x178))/0x5+parseInt(_0x3d01a6(0x17b))/0x6+parseInt(_0x3d01a6(0x16a))/0x7+-parseInt(_0x3d01a6(0x199))/0x8;if(_0x2956e3===_0x38afe5)break;else _0x331c85['push'](_0x331c85['shift']());}catch(_0x39e977){_0x331c85['push'](_0x331c85['shift']());}}}(a84_0x16e7,0xf1b68));import a84_0x551570 from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a84_0x1bb6e9}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a84_0x47531a,getArea as a84_0xae087f}from'ol/sphere';import a84_0x1f1738 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a84_0x32fcca from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a84_0xabb0ab from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a84_0x2b5dd3 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a84_0x34d3f4 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a84_0x5edbc8 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a84_0x30a3a7 from'ol/format/GeoJSON';import a84_0x328ce4 from'jsts/org/locationtech/jts/geom/GeometryFactory';import a84_0x1cf901 from'jsts/org/locationtech/jts/linearref/LengthIndexedLine';import{Circle,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';function a84_0x5553(_0x4d8140,_0x508628){const _0x16e79a=a84_0x16e7();return a84_0x5553=function(_0x5553f6,_0x597e86){_0x5553f6=_0x5553f6-0x163;let _0x1d1fb6=_0x16e79a[_0x5553f6];return _0x1d1fb6;},a84_0x5553(_0x4d8140,_0x508628);}import{fromCircle}from'ol/geom/Polygon';import a84_0x133e62 from'ol/format/WKT';import a84_0x10aba2 from'ol/format/EsriJSON';const _parser=new a84_0x2b5dd3(undefined,undefined);_parser['inject'](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x5d0d94,_0x2b7026,_0x15fa8c=![]){const _0x254f77=a84_0x5553;if(!_0x5d0d94)return 0x0;if(typeof _0x2b7026==_0x254f77(0x17e)){let _0x4f6ebf=registerProj(_0x2b7026);if(_0x4f6ebf==null)return console['error'](_0x254f77(0x198)),0x0;_0x2b7026=_0x4f6ebf;}const _0x9cd37=isSpheroid(_0x2b7026);if(_0x15fa8c)return a84_0xae087f(_0x5d0d94,{'projection':_0x2b7026});else{if(_0x9cd37){const _0x13c06d=getGeoProjection(_0x5d0d94,_0x2b7026);return _0x5d0d94[_0x254f77(0x180)]()[_0x254f77(0x18d)](_0x2b7026,_0x13c06d)[_0x254f77(0x193)]();}return _0x5d0d94[_0x254f77(0x193)]();}}export function getLength(_0xd8de8d,_0x538c51,_0x268372=![]){const _0x80e16f=a84_0x5553;if(!_0xd8de8d)return 0x0;if(typeof _0x538c51==_0x80e16f(0x17e)){let _0x59aead=registerProj(_0x538c51);if(_0x59aead==null)return console[_0x80e16f(0x173)]('未找到投影信息'),0x0;_0x538c51=_0x59aead;}const _0x25157b=isSpheroid(_0x538c51);if(_0x268372)return a84_0x47531a(_0xd8de8d,{'projection':_0x538c51});else{let _0x5ef76b=_0xd8de8d;if(_0x25157b){const _0x33fc8a=getGeoProjection(_0xd8de8d,_0x538c51);_0x5ef76b=_0xd8de8d[_0x80e16f(0x180)]()[_0x80e16f(0x18d)](_0x538c51,_0x33fc8a);}if(_0x5ef76b instanceof LineString)return _0x5ef76b[_0x80e16f(0x171)]();else{let _0x4659f3=0x0;for(let _0x486304=0x0;_0x486304<_0x5ef76b[_0x80e16f(0x186)]()['length'];_0x486304++){_0x4659f3+=_0x5ef76b[_0x80e16f(0x186)]()[_0x486304][_0x80e16f(0x171)]();}return _0x4659f3;}}}export function bufferOp(_0x3f47d9,_0x38250b){const _0x32df2c=a84_0x5553,_0x3c78b9=_parser['read'](_0x3f47d9),_0x108da3=a84_0x1f1738['bufferOp'](_0x3c78b9,_0x38250b);return _parser[_0x32df2c(0x16f)](_0x108da3);}export function bufferPixel(_0x3157fa,_0x9f0b74,_0x583483){const _0x1d91c6=a84_0x5553,_0x52b909=_0x583483[_0x1d91c6(0x18a)](_0x3157fa['getCoordinates']()),_0x4efcb6=_0x583483['getCoordinateFromPixel']([_0x52b909[0x0]+_0x9f0b74,_0x52b909[0x1]]),_0x32a3c1=a84_0x1bb6e9(_0x3157fa[_0x1d91c6(0x16b)](),_0x4efcb6),_0x57c5b5=bufferOp(_0x3157fa,_0x32a3c1);return _0x57c5b5;}export function contains(_0x4a188b,_0x32e73c){const _0x3e1d26=a84_0x5553,_0x561bc0=_parser[_0x3e1d26(0x16d)](_0x4a188b),_0x38427d=_parser[_0x3e1d26(0x16d)](_0x32e73c);return a84_0x32fcca[_0x3e1d26(0x18f)](_0x561bc0,_0x38427d);}export function crosses(_0x31d9ae,_0x534f57){const _0x302b73=a84_0x5553,_0xe4a44=_parser[_0x302b73(0x16d)](_0x31d9ae),_0x5dd64e=_parser[_0x302b73(0x16d)](_0x534f57);return a84_0x32fcca[_0x302b73(0x18e)](_0xe4a44,_0x5dd64e);}export function intersects(_0x57ac31,_0x4f06e6){const _0x10a922=a84_0x5553,_0x166a6f=_parser[_0x10a922(0x16d)](_0x57ac31),_0x21bb01=_parser[_0x10a922(0x16d)](_0x4f06e6);return a84_0x32fcca[_0x10a922(0x190)](_0x166a6f,_0x21bb01);}export function intersection(_0x164132,_0x3265b7){const _0x5ccf25=a84_0x5553,_0x5d6803=_parser[_0x5ccf25(0x16d)](_0x164132),_0xffd35b=_parser[_0x5ccf25(0x16d)](_0x3265b7);return _parser[_0x5ccf25(0x16f)](a84_0xabb0ab[_0x5ccf25(0x187)](_0x5d6803,_0xffd35b));}export function union(_0x58e651,_0xeba87f){const _0x26d420=a84_0x5553,_0x4b6340=_parser[_0x26d420(0x16d)](_0x58e651),_0x30d85f=_parser[_0x26d420(0x16d)](_0xeba87f);return _parser[_0x26d420(0x16f)](a84_0xabb0ab[_0x26d420(0x16c)](_0x4b6340,_0x30d85f));}export function unions(_0x1eced9){const _0x285a40=a84_0x5553;if(!_0x1eced9||_0x1eced9['length']===0x0)return;if(_0x1eced9['length']===0x1)return _0x1eced9[0x0][_0x285a40(0x180)]();let _0x36f0dd=_parser['read'](_0x1eced9[0x0]);for(let _0x204005=0x1;_0x204005<_0x1eced9[_0x285a40(0x164)];_0x204005++){const _0x341db1=_parser[_0x285a40(0x16d)](_0x1eced9[_0x204005]);_0x36f0dd=a84_0xabb0ab[_0x285a40(0x16c)](_0x36f0dd,_0x341db1);}return _parser[_0x285a40(0x16f)](_0x36f0dd);}export function difference(_0x564f96,_0x3b09f1){const _0x3d3303=a84_0x5553,_0x3fadcb=_parser[_0x3d3303(0x16d)](_0x564f96),_0x4730c9=_parser[_0x3d3303(0x16d)](_0x3b09f1);return _parser[_0x3d3303(0x16f)](a84_0xabb0ab['difference'](_0x3fadcb,_0x4730c9));}export function distance(_0x3a612f,_0x5ab5be){const _0x5a16be=a84_0x5553,_0x1437f2=_parser['read'](_0x3a612f),_0x38dad1=_parser[_0x5a16be(0x16d)](_0x5ab5be);return _parser[_0x5a16be(0x16f)](a84_0x5edbc8['distance'](_0x1437f2,_0x38dad1));}export function jstlSplit(_0x35a674,_0x23faef){const _0xcda653=a84_0x5553,_0x38ce6a=_parser[_0xcda653(0x16d)](_0x35a674),_0x59be1b=_parser[_0xcda653(0x16d)](_0x23faef),_0x369fd2=_0x38ce6a['getGeometryType']();let _0x50b94f=[];function _0x40281c(_0x107388,_0x37c68e){const _0x54a294=_0xcda653,_0x2b4113=_0x107388['getExteriorRing'](),_0x461716=_0x107388[_0x54a294(0x195)](),_0x406066=[];for(let _0x2479c5=0x0;_0x2479c5<_0x461716;_0x2479c5++){_0x406066[_0x54a294(0x191)](_0x107388[_0x54a294(0x182)](_0x2479c5));}const _0xebbce5=a84_0xabb0ab['union'](_0x2b4113,_0x37c68e),_0x211de7=new a84_0x34d3f4();_0x211de7['add'](_0xebbce5);const _0x1c412b=_0x211de7[_0x54a294(0x177)](),_0x36fa04=new a84_0x328ce4();_0x1c412b['size']()>0x1?_0x1c412b[_0x54a294(0x185)]()['forEach'](_0x50dcfc=>{const _0x290147=_0x54a294;let _0x171e05=_0x50dcfc;_0x406066[_0x290147(0x17d)](_0x49f0f0=>{const _0x471f0d=_0x290147,_0x352b4b=_0x36fa04['createPolygon'](_0x49f0f0);try{_0x171e05=a84_0xabb0ab[_0x471f0d(0x163)](_0x171e05,_0x352b4b);}catch(_0x35ec95){console[_0x471f0d(0x18c)](_0x471f0d(0x197),_0x35ec95);}}),_0x171e05&&_0x50b94f[_0x290147(0x191)](_parser[_0x290147(0x16f)](_0x171e05));}):_0x50b94f[_0x54a294(0x191)](_parser[_0x54a294(0x16f)](_0x107388));}if(_0x369fd2===_0xcda653(0x196))_0x40281c(_0x38ce6a,_0x59be1b);else{if(_0x369fd2==='MultiPolygon'){const _0x41e1ca=_0x38ce6a['getNumGeometries']();for(let _0x2e9ce5=0x0;_0x2e9ce5<_0x41e1ca;_0x2e9ce5++){const _0x8ac8af=_0x38ce6a[_0xcda653(0x176)](_0x2e9ce5);_0x40281c(_0x8ac8af,_0x59be1b);}}else throw new Error(_0xcda653(0x17c));}return _0x50b94f;}export function splitLineByLine(_0x5e4978,_0x35ef6a){const _0x1abcbf=a84_0x5553,_0x2b7297=_parser['read'](_0x5e4978),_0x30c2e4=_parser['read'](_0x35ef6a),_0x500d92=a84_0xabb0ab['intersection'](_0x2b7297,_0x30c2e4);if(!_0x500d92||_0x500d92[_0x1abcbf(0x18b)]())return[_0x5e4978];const _0x547858=[];if(_0x500d92[_0x1abcbf(0x167)]()===_0x1abcbf(0x170))_0x547858['push'](_0x500d92['getCoordinate']());else{if(_0x500d92[_0x1abcbf(0x167)]()==='MultiPoint')for(let _0x51340b=0x0;_0x51340b<_0x500d92['getNumGeometries']();_0x51340b++){_0x547858[_0x1abcbf(0x191)](_0x500d92[_0x1abcbf(0x176)](_0x51340b)[_0x1abcbf(0x165)]());}}const _0x2b0611=new a84_0x1cf901(_0x2b7297),_0xc34c8e=_0x547858[_0x1abcbf(0x168)](_0x56e6e8=>_0x2b0611[_0x1abcbf(0x181)](_0x56e6e8))['sort']((_0x10a846,_0x4b268a)=>_0x10a846-_0x4b268a),_0x1e792b=[],_0x2cb7a4=1e-9;for(let _0x28ef10=0x0;_0x28ef10<_0xc34c8e[_0x1abcbf(0x164)];_0x28ef10++){if(_0x28ef10===0x0||Math[_0x1abcbf(0x166)](_0xc34c8e[_0x28ef10]-_0xc34c8e[_0x28ef10-0x1])>_0x2cb7a4)_0x1e792b[_0x1abcbf(0x191)](_0xc34c8e[_0x28ef10]);}const _0x4e04e2=[];let _0x316d52=_0x2b0611[_0x1abcbf(0x192)]?_0x2b0611[_0x1abcbf(0x192)]():0x0;const _0x52787d=_0x2b0611[_0x1abcbf(0x188)]&&_0x2b0611['getEndIndex']()||_0x2b7297[_0x1abcbf(0x171)]();for(let _0x13d6d1=0x0;_0x13d6d1<_0x1e792b[_0x1abcbf(0x164)];_0x13d6d1++){const _0x5a78c3=_0x1e792b[_0x13d6d1];if(_0x5a78c3-_0x316d52>_0x2cb7a4){const _0x185fc8=_0x2b0611['extractLine'](_0x316d52,_0x5a78c3);_0x4e04e2[_0x1abcbf(0x191)](_parser[_0x1abcbf(0x16f)](_0x185fc8));}_0x316d52=_0x5a78c3;}if(_0x52787d-_0x316d52>_0x2cb7a4){const _0x5564b2=_0x2b0611[_0x1abcbf(0x17f)](_0x316d52,_0x52787d);_0x4e04e2['push'](_parser[_0x1abcbf(0x16f)](_0x5564b2));}const _0x12b174=_0x4e04e2['filter'](_0xb7be84=>{const _0x3a91ba=_0x1abcbf,_0x31b5c9=_0xb7be84[_0x3a91ba(0x16b)]();return _0x31b5c9&&_0x31b5c9['length']>=0x2&&!(_0x31b5c9[_0x3a91ba(0x164)]===0x2&&_0x31b5c9[0x0][0x0]===_0x31b5c9[0x1][0x0]&&_0x31b5c9[0x0][0x1]===_0x31b5c9[0x1][0x1]);});return _0x12b174;}export function fromWKT(_0x59824b,_0x420d75,_0x5768a1){const _0x457a6a=a84_0x5553,_0x4dd3ec=new a84_0x133e62();_0x420d75&®isterProj(_0x420d75);_0x5768a1&®isterProj(_0x5768a1);const _0x206854=_0x4dd3ec['readGeometry'](_0x59824b);if(isGeometryEmpty(_0x206854))return null;return _0x420d75&&_0x5768a1?_0x206854[_0x457a6a(0x18d)](new a84_0x551570({'code':_0x420d75}),new a84_0x551570({'code':_0x5768a1})):_0x206854;}function a84_0x16e7(){const _0x21cc51=['getExtent','getNumInteriorRing','Polygon','孔洞操作失败:','未找到投影信息','6431344TiVHJh','difference','length','getCoordinate','abs','getGeometryType','map','getType','13754594UMumxD','getCoordinates','union','read','writeGeometry','write','Point','getLength','2281936gGsxsC','error','385831FiSBTl','4383222VwNWzX','getGeometryN','getPolygons','6690030pWXjkK','getLinearRings','4ybgWQj','919668ycsozE','无法识别的数据类型','forEach','string','extractLine','clone','indexOf','getInteriorRingN','readGeometry','MultiPolygon','toArray','getLineStrings','intersection','getEndIndex','getInteriorPoint','getPixelFromCoordinate','isEmpty','warn','transform','crosses','contains','intersects','push','getStartIndex','getArea'];a84_0x16e7=function(){return _0x21cc51;};return a84_0x16e7();}export function fromWKTs(_0x10b601,_0x12f4f2,_0x474ed6){const _0x32f07c=a84_0x5553,_0x157e20=new a84_0x133e62();let _0x595cdb=[];_0x12f4f2&®isterProj(_0x12f4f2);_0x474ed6&®isterProj(_0x474ed6);let _0x145860,_0xc3b219;_0x12f4f2&&_0x474ed6&&(_0x145860=new a84_0x551570({'code':_0x12f4f2}),_0xc3b219=new a84_0x551570({'code':_0x474ed6}));for(let _0x3cdbb2=0x0;_0x3cdbb2<_0x10b601['length'];_0x3cdbb2++){const _0x130918=_0x157e20['readGeometry'](_0x10b601[_0x3cdbb2]);if(isGeometryEmpty(_0x130918))continue;_0x145860&&_0xc3b219?_0x595cdb['push'](_0x130918[_0x32f07c(0x18d)](_0x145860,_0xc3b219)):_0x595cdb[_0x32f07c(0x191)](_0x130918);}return _0x595cdb;}export function toWKT(_0x2f0cbc){const _0xcdaa6e=a84_0x5553,_0x1220da=new a84_0x133e62();if(isGeometryEmpty(_0x2f0cbc))return'';if(_0x2f0cbc instanceof Circle){const _0x2fe8b8=fromCircle(_0x2f0cbc);return _0x1220da[_0xcdaa6e(0x16e)](_0x2fe8b8);}else return _0x1220da[_0xcdaa6e(0x16e)](_0x2f0cbc);}export function toGeoJSON(_0x1d52c4){const _0x1d96be=a84_0x5553,_0x274a82=new a84_0x30a3a7();return _0x274a82[_0x1d96be(0x16e)](_0x1d52c4);}export function fromGeoJSON(_0x49875b){const _0x325276=a84_0x5553,_0x5b65a3=new a84_0x30a3a7();return _0x5b65a3[_0x325276(0x183)](_0x49875b);}export function toEsriJSON(_0x11455c){const _0x54ac11=a84_0x5553,_0x5399af=new a84_0x10aba2();return _0x5399af[_0x54ac11(0x16e)](_0x11455c);}export function fromEsriJSON(_0x3bccff){const _0x4a1a88=a84_0x5553,_0x141e57=new a84_0x10aba2();return _0x141e57[_0x4a1a88(0x183)](_0x3bccff);}export function expandExtent(_0x826b79,_0x58ee78){const _0x41a285=_0x826b79[0x0],_0x1c5ade=_0x826b79[0x1],_0x248bd1=_0x826b79[0x2],_0x338e8a=_0x826b79[0x3],_0x25427e=(_0x41a285+_0x248bd1)/0x2,_0x54186c=(_0x1c5ade+_0x338e8a)/0x2,_0x13d491=_0x248bd1-_0x41a285,_0x5a95b6=_0x338e8a-_0x1c5ade,_0x22d806=_0x13d491*_0x58ee78,_0x335024=_0x5a95b6*_0x58ee78,_0x689e58=_0x25427e-_0x22d806/0x2,_0x2a31ce=_0x25427e+_0x22d806/0x2,_0x571b70=_0x54186c-_0x335024/0x2,_0x5bbbe1=_0x54186c+_0x335024/0x2;return[_0x689e58,_0x571b70,_0x2a31ce,_0x5bbbe1];}export function isGeometryEmpty(_0x53937d){const _0x46a6ef=a84_0x5553;if(!_0x53937d)return!![];if(_0x53937d instanceof Point||_0x53937d instanceof MultiPoint){const _0x49b371=_0x53937d[_0x46a6ef(0x16b)]();return!_0x49b371||_0x49b371['some'](_0x31fe81=>isNaN(_0x31fe81));}else{if(_0x53937d instanceof LineString||_0x53937d instanceof MultiLineString)return _0x53937d[_0x46a6ef(0x16b)]()[_0x46a6ef(0x164)]<0x2;else{if(_0x53937d instanceof Polygon){const _0x27cae9=_0x53937d[_0x46a6ef(0x16b)]();return!_0x27cae9||_0x27cae9[_0x46a6ef(0x164)]===0x0||_0x27cae9[0x0][_0x46a6ef(0x164)]<0x4;}else{if(_0x53937d instanceof MultiPolygon){const _0x48f4b5=_0x53937d[_0x46a6ef(0x16b)]();return!_0x48f4b5||_0x48f4b5['length']===0x0||_0x48f4b5[0x0][0x0][_0x46a6ef(0x164)]<0x4;}}}}return![];}export function polygonToLines(_0x359e4d){const _0x37d7ef=a84_0x5553;if(!_0x359e4d)return[];const _0x7c4181=_0x359e4d[_0x37d7ef(0x179)]();return _0x7c4181[_0x37d7ef(0x168)](_0x470cf8=>new LineString(_0x470cf8['getCoordinates']()));}export function getGeometryCenter(_0x497008){const _0x4cc756=a84_0x5553;if(!_0x497008)return undefined;const _0x10ed89=_0x497008[_0x4cc756(0x169)]();if(_0x10ed89===_0x4cc756(0x170))return new Point(_0x497008[_0x4cc756(0x16b)]());if(_0x10ed89===_0x4cc756(0x196)||_0x10ed89===_0x4cc756(0x184))return _0x497008[_0x4cc756(0x189)]();const _0x3cc008=getCenter(_0x497008[_0x4cc756(0x194)]());return new Point(_0x3cc008);}
|
package/utils/LayerUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a85_0x5d4b(_0x4da56c,_0xdd1cbc){const _0x32eaa8=a85_0x32ea();return a85_0x5d4b=function(_0x5d4ba4,_0x2f9ce1){_0x5d4ba4=_0x5d4ba4-0x65;let _0x596ce5=_0x32eaa8[_0x5d4ba4];return _0x596ce5;},a85_0x5d4b(_0x4da56c,_0xdd1cbc);}(function(_0x599930,_0x456aa5){const _0x4f83fd=a85_0x5d4b,_0x3bfb1f=_0x599930();while(!![]){try{const _0x390fcb=-parseInt(_0x4f83fd(0x7a))/0x1*(parseInt(_0x4f83fd(0x78))/0x2)+-parseInt(_0x4f83fd(0x81))/0x3+parseInt(_0x4f83fd(0x74))/0x4*(-parseInt(_0x4f83fd(0x75))/0x5)+-parseInt(_0x4f83fd(0x83))/0x6+-parseInt(_0x4f83fd(0x82))/0x7+-parseInt(_0x4f83fd(0x73))/0x8*(parseInt(_0x4f83fd(0x70))/0x9)+-parseInt(_0x4f83fd(0x77))/0xa*(-parseInt(_0x4f83fd(0x7d))/0xb);if(_0x390fcb===_0x456aa5)break;else _0x3bfb1f['push'](_0x3bfb1f['shift']());}catch(_0x5534f1){_0x3bfb1f['push'](_0x3bfb1f['shift']());}}}(a85_0x32ea,0x264f0));import a85_0x403fea from'../utils/AxiosUtil';function a85_0x32ea(){const _0x2a0c30=['geoserver','showIndex','children','service=WMS&version=1.1.0&request=GetLegendGraphic&layer=','8442tYyDPq','sublayers','includes','1744QiTTgX','61608nXsmYn','5wVdjAU','push','147250RkXXMM','10XgFcCk','forEach','36321tSNZal','&format=image/png','Legend','814dGmJKz','wms','title','gwc/service/wmts','445758yUUyoM','1277507yNIdZx','1200960iKTSBC','layerType','&format=application/json','length','sort','url','parentId','data','indexOf','assign'];a85_0x32ea=function(){return _0x2a0c30;};return a85_0x32ea();}export function mapServiceTreeTransform(_0xbcaca4){const _0x6e2ec7=a85_0x5d4b;let _0x426916=[];return _0xbcaca4&&_0xbcaca4[_0x6e2ec7(0x65)]>0x0&&(_0xbcaca4[_0x6e2ec7(0x79)](_0x33e4f9=>{const _0x48a8d6=_0x6e2ec7;(!_0x33e4f9[_0x48a8d6(0x68)]||_0x33e4f9[_0x48a8d6(0x68)]=='')&&_0x426916[_0x48a8d6(0x76)](Object['assign']({},_0x33e4f9));}),_0x426916=_0x426916[_0x6e2ec7(0x66)]((_0x5dbcae,_0x2cd826)=>{const _0x4a1c9e=_0x6e2ec7;return(_0x5dbcae[_0x4a1c9e(0x6d)]?_0x5dbcae[_0x4a1c9e(0x6d)]:0x0)-(_0x2cd826[_0x4a1c9e(0x6d)]?_0x2cd826[_0x4a1c9e(0x6d)]:0x0);}),_0x426916[_0x6e2ec7(0x79)](_0x31e779=>{_0x31e779['children']=setChildren(_0x31e779['id'],_0xbcaca4);})),_0x426916;}function setChildren(_0xc3b891,_0x2afe73){const _0x1846b1=a85_0x5d4b;let _0x2e6680=[];return _0x2afe73[_0x1846b1(0x79)](_0x186e6a=>{const _0x285d12=_0x1846b1;_0xc3b891===(_0x186e6a['parentId']==null?'':_0x186e6a['parentId'])&&_0x2e6680['push'](Object[_0x285d12(0x6b)]({},_0x186e6a));}),_0x2e6680=_0x2e6680[_0x1846b1(0x66)]((_0xf47f66,_0x53e614)=>{const _0x261c60=_0x1846b1;return(_0xf47f66[_0x261c60(0x6d)]?_0xf47f66['showIndex']:0x0)-(_0x53e614[_0x261c60(0x6d)]?_0x53e614[_0x261c60(0x6d)]:0x0);}),_0x2e6680['length']>0x0&&_0x2e6680[_0x1846b1(0x79)](_0x5bdd27=>{const _0x500a5d=_0x1846b1;_0x5bdd27[_0x500a5d(0x6e)]=setChildren(_0x5bdd27['id'],_0x2afe73);}),_0x2e6680;}export async function getLayerLegend(_0x304602,_0x46c384){const _0x39882e=a85_0x5d4b;if(!_0x304602||!_0x304602['url']||!_0x304602[_0x39882e(0x71)]||_0x304602[_0x39882e(0x71)]['length']==0x0||!_0x304602['layerType'])return;if(_0x304602[_0x39882e(0x84)][_0x39882e(0x6a)](_0x39882e(0x6c))>-0x1)return await getGeoServerLayerLegend(_0x304602,_0x46c384);return;}export async function getGeoServerLayerLegend(_0x3bf0ea,_0x1b2189){const _0x1a1cb2=a85_0x5d4b;if(!_0x3bf0ea||!_0x3bf0ea[_0x1a1cb2(0x67)]||!_0x3bf0ea[_0x1a1cb2(0x71)]||_0x3bf0ea[_0x1a1cb2(0x71)][_0x1a1cb2(0x65)]==0x0)return;let _0x53ed33=_0x3bf0ea['url'];const _0x43b2c9=_0x3bf0ea[_0x1a1cb2(0x71)];_0x53ed33=_0x53ed33['replace'](_0x1a1cb2(0x80),_0x1a1cb2(0x7e));const _0x5a0e20=[];for(let _0x2effb3=0x0;_0x2effb3<_0x43b2c9[_0x1a1cb2(0x65)];_0x2effb3++){const _0x10c108=_0x43b2c9[_0x2effb3];let _0x53bbdb=_0x1a1cb2(0x6f)+_0x10c108+_0x1a1cb2(0x85);const _0x232f6e=_0x53ed33['includes']('?')?_0x53ed33+'&'+_0x53bbdb:_0x53ed33+'?'+_0x53bbdb,_0x50083e=await a85_0x403fea['get'](_0x232f6e);if(_0x50083e[_0x1a1cb2(0x69)]&&_0x50083e[_0x1a1cb2(0x69)][_0x1a1cb2(0x7c)]&&_0x50083e[_0x1a1cb2(0x69)][_0x1a1cb2(0x7c)]['length']>0x0)_0x5a0e20[_0x1a1cb2(0x76)](_0x50083e[_0x1a1cb2(0x69)][_0x1a1cb2(0x7c)][0x0]);else{let _0x40393e=_0x1b2189?_0x1b2189:0x10,_0x1e4659=_0x1a1cb2(0x6f)+_0x10c108+'&width='+_0x40393e+'&height='+_0x40393e+_0x1a1cb2(0x7b);const _0x1886d1=_0x53ed33[_0x1a1cb2(0x72)]('?')?_0x53ed33+'&'+_0x1e4659:_0x53ed33+'?'+_0x1e4659;_0x5a0e20[_0x1a1cb2(0x76)]({'title':_0x3bf0ea[_0x1a1cb2(0x7f)],'url':_0x1886d1});}}return _0x5a0e20;}
|