ym-gis-2d 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.d.ts.map +1 -1
- package/feature/FeatureManager.js +1 -1
- package/feature/FeatureManager.js.map +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Split.d.ts +58 -0
- package/interaction/Split.d.ts.map +1 -0
- package/interaction/Split.js +1 -0
- package/interaction/Split.js.map +1 -0
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +4 -0
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x2071d2=a66_0x1275;(function(_0x2b94d8,_0x58a115){const _0x522be1=a66_0x1275,_0x3bbb31=_0x2b94d8();while(!![]){try{const _0x1e77d2=parseInt(_0x522be1(0x191))/0x1+parseInt(_0x522be1(0x197))/0x2*(parseInt(_0x522be1(0x193))/0x3)+parseInt(_0x522be1(0x190))/0x4+parseInt(_0x522be1(0x194))/0x5+-parseInt(_0x522be1(0x199))/0x6*(parseInt(_0x522be1(0x198))/0x7)+parseInt(_0x522be1(0x18d))/0x8*(-parseInt(_0x522be1(0x185))/0x9)+-parseInt(_0x522be1(0x196))/0xa*(-parseInt(_0x522be1(0x189))/0xb);if(_0x1e77d2===_0x58a115)break;else _0x3bbb31['push'](_0x3bbb31['shift']());}catch(_0x166531){_0x3bbb31['push'](_0x3bbb31['shift']());}}}(a66_0xb67a,0x212c3));function a66_0xb67a(){const _0x1dc0f1=['points','8129RVKEAw','toRadians','setCenterAndRadius','setPoints','8yWZtGM','updateLastPoint','getRadius','381360peMNPH','64853cDoQQH','getGeoJson','16389vWjRpM','225440nBPobV','length','490woBSso','74bzoHKY','687169YGDDTD','6xnPRyC','sqrt','generate','1886229VVELzM','setCenter','updatePoint'];a66_0xb67a=function(){return _0x1dc0f1;};return a66_0xb67a();}import{Circle as a66_0x16e063}from'ol/geom';import a66_0x3265af from'ol/format/GeoJSON';import{offset}from'ol/sphere';import{squaredDistance as a66_0x30aec5}from'ol/coordinate';function a66_0x1275(_0x411187,_0x19fee2){const _0xb67a92=a66_0xb67a();return a66_0x1275=function(_0x127590,_0x411ebf){_0x127590=_0x127590-0x185;let _0x4a16e3=_0xb67a92[_0x127590];return _0x4a16e3;},a66_0x1275(_0x411187,_0x19fee2);}import{fromCircle}from'ol/geom/Polygon';import{compareArray}from'../../../utils/ArrayUtil';class Circle extends a66_0x16e063{constructor(_0x162e80){const _0x101087=a66_0x1275;super([]),this[_0x101087(0x188)]=_0x162e80,this['type']='Circle',_0x162e80&&_0x162e80[_0x101087(0x195)]>0x0&&this['setPoints'](_0x162e80);}[a66_0x2071d2(0x18c)](_0x2df53b){const _0x28f294=a66_0x2071d2;var _0x310b6b;((_0x310b6b=this[_0x28f294(0x188)])===null||_0x310b6b===void 0x0?void 0x0:_0x310b6b[_0x28f294(0x195)])>0x0&&(_0x2df53b===null||_0x2df53b===void 0x0?void 0x0:_0x2df53b[_0x28f294(0x195)])>0x0&&!compareArray(this[_0x28f294(0x188)][0x0],_0x2df53b[0x0])?this[_0x28f294(0x186)](_0x2df53b[0x0]):(this[_0x28f294(0x188)]=!_0x2df53b?[]:_0x2df53b,this[_0x28f294(0x188)][_0x28f294(0x195)]>=0x1&&(this[_0x28f294(0x19b)]&&this[_0x28f294(0x19b)]()));}['generate'](){const _0x5a47f9=a66_0x2071d2;let _0x37fcaf=this[_0x5a47f9(0x188)]['length'];if(_0x37fcaf<0x2)return![];else{const _0x23e00f=this[_0x5a47f9(0x188)][0x0],_0x11a546=a66_0x30aec5(_0x23e00f,this[_0x5a47f9(0x188)][0x1]);this[_0x5a47f9(0x18b)](_0x23e00f,Math[_0x5a47f9(0x19a)](_0x11a546));}}[a66_0x2071d2(0x186)](_0x2438f8){const _0x5ae1b3=a66_0x2071d2;this['setCenter'](_0x2438f8),this[_0x5ae1b3(0x188)]=[_0x2438f8,offset(_0x2438f8,this[_0x5ae1b3(0x18f)](),this[_0x5ae1b3(0x18a)](0x5a))],this[_0x5ae1b3(0x19b)]();}[a66_0x2071d2(0x18a)](_0x3fe2cf){return _0x3fe2cf*Math['PI']/0xb4;}[a66_0x2071d2(0x192)](){return new a66_0x3265af()['writeGeometryObject'](fromCircle(this));}[a66_0x2071d2(0x187)](_0x450ae8,_0x4fcf70){const _0x5ed2d1=a66_0x2071d2;_0x4fcf70>=0x0&&_0x4fcf70<this['points'][_0x5ed2d1(0x195)]&&(this['points'][_0x4fcf70]=_0x450ae8,this[_0x5ed2d1(0x19b)]());}[a66_0x2071d2(0x18e)](_0x250404){const _0x16fca0=a66_0x2071d2;this['updatePoint'](_0x250404,this['points'][_0x16fca0(0x195)]-0x1);}}export default Circle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0xefe448=a67_0x3a75;function a67_0x3a75(_0x4ad86a,_0x568181){const _0x348f8f=a67_0x348f();return a67_0x3a75=function(_0x3a7521,_0x45d21c){_0x3a7521=_0x3a7521-0x8e;let _0x25933f=_0x348f8f[_0x3a7521];return _0x25933f;},a67_0x3a75(_0x4ad86a,_0x568181);}(function(_0x5227be,_0x5b0578){const _0xf7780b=a67_0x3a75,_0x4ac358=_0x5227be();while(!![]){try{const _0x5b0550=parseInt(_0xf7780b(0x92))/0x1*(parseInt(_0xf7780b(0xa0))/0x2)+-parseInt(_0xf7780b(0x8f))/0x3+parseInt(_0xf7780b(0x91))/0x4+parseInt(_0xf7780b(0x99))/0x5+-parseInt(_0xf7780b(0x96))/0x6+parseInt(_0xf7780b(0x93))/0x7*(-parseInt(_0xf7780b(0x97))/0x8)+-parseInt(_0xf7780b(0x9b))/0x9*(-parseInt(_0xf7780b(0x9d))/0xa);if(_0x5b0550===_0x5b0578)break;else _0x4ac358['push'](_0x4ac358['shift']());}catch(_0x4f40fb){_0x4ac358['push'](_0x4ac358['shift']());}}}(a67_0x348f,0x7fb08));import a67_0x3dd36e from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';function a67_0x348f(){const _0x2244f2=['parse','2XSqekr','push','stringify','length','_closed','points','Polygon','2797863QRAWDU','setPoints','3998828YQSZUm','576971VsFORd','14gRZUfl','generate','getPointCount','5603682ecfWHL','3571088oIvaWo','isPlot','1966550ylcCEp','setCoordinates','108zuXqHg','updatePoint','1093640bPFNci','updateLastPoint'];a67_0x348f=function(){return _0x2244f2;};return a67_0x348f();}class Polygon extends a67_0x3dd36e{constructor(_0x3205fb){const _0x44dbbd=a67_0x3a75;super(),this['type']=_0x44dbbd(0x8e),_0x3205fb&&_0x3205fb[_0x44dbbd(0xa3)]>0x0&&getDeepth(_0x3205fb)==0x2?this[_0x44dbbd(0x90)](_0x3205fb):this['setCoordinates'](_0x3205fb);}[a67_0xefe448(0xa4)](_0x1a8748){let _0x128bbf=_0x1a8748[0x0],_0x34a578=_0x1a8748[_0x1a8748['length']-0x1];return _0x128bbf[0x0]===_0x34a578[0x0]&&_0x128bbf[0x1]===_0x34a578[0x1]&&_0x128bbf[0x2]===_0x34a578[0x2];}[a67_0xefe448(0x94)](){const _0x7aafc2=a67_0xefe448;let _0x2a427a=this[_0x7aafc2(0x95)]();if(_0x2a427a<0x2)return![];else{let _0x12c2c3=JSON[_0x7aafc2(0x9f)](JSON[_0x7aafc2(0xa2)](this[_0x7aafc2(0xa5)]));_0x2a427a>=0x3&&(!this[_0x7aafc2(0xa4)](_0x12c2c3)&&_0x12c2c3[_0x7aafc2(0xa1)](_0x12c2c3[0x0])),this[_0x7aafc2(0x9a)]([_0x12c2c3]);}}[a67_0xefe448(0x9c)](_0x180304,_0x46c548){const _0x2b2361=a67_0xefe448;_0x46c548>=0x0&&_0x46c548<this['points']['length']&&(this[_0x2b2361(0xa5)][_0x46c548]=_0x180304,this[_0x2b2361(0x94)]());}[a67_0xefe448(0x98)](){return![];}[a67_0xefe448(0x9e)](_0x4d23f6){const _0x551360=a67_0xefe448;this[_0x551360(0x9c)](_0x4d23f6,this[_0x551360(0xa5)][_0x551360(0xa3)]-0x1);}}export default Polygon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x4f104f=a68_0x448a;function a68_0x448a(_0x48b863,_0x28ab71){const _0x525026=a68_0x5250();return a68_0x448a=function(_0x448a4c,_0x3f52a0){_0x448a4c=_0x448a4c-0x1e3;let _0x2310fc=_0x525026[_0x448a4c];return _0x2310fc;},a68_0x448a(_0x48b863,_0x28ab71);}function a68_0x5250(){const _0x1a5864=['14xxuKLX','21100725zCaeaL','15xkmBia','setCoordinates','10045yhKjDn','4471768krqgQh','5055852ncSHFW','points','495332lHCjgJ','length','getCoordinates','updatePoint','404848FvfbiW','Polygon','1301794CpuNZC'];a68_0x5250=function(){return _0x1a5864;};return a68_0x5250();}(function(_0x1198c0,_0x4addba){const _0x29c9e6=a68_0x448a,_0x106b56=_0x1198c0();while(!![]){try{const _0x174f38=parseInt(_0x29c9e6(0x1e4))/0x1+parseInt(_0x29c9e6(0x1ed))/0x2+-parseInt(_0x29c9e6(0x1e7))/0x3*(parseInt(_0x29c9e6(0x1f1))/0x4)+-parseInt(_0x29c9e6(0x1e9))/0x5+parseInt(_0x29c9e6(0x1eb))/0x6+parseInt(_0x29c9e6(0x1e5))/0x7*(parseInt(_0x29c9e6(0x1ea))/0x8)+-parseInt(_0x29c9e6(0x1e6))/0x9;if(_0x174f38===_0x4addba)break;else _0x106b56['push'](_0x106b56['shift']());}catch(_0xe653f7){_0x106b56['push'](_0x106b56['shift']());}}}(a68_0x5250,0xa082a));import{fromExtent}from'ol/geom/Polygon';import{boundingExtent}from'ol/extent';import a68_0x49c2e9 from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';class RectAngle extends a68_0x49c2e9{constructor(_0x37c710){const _0xcdd9e6=a68_0x448a;super(),this['type']=_0xcdd9e6(0x1e3),_0x37c710&&_0x37c710['length']>0x0&&getDeepth(_0x37c710)==0x2?this['setPoints'](_0x37c710):this[_0xcdd9e6(0x1e8)](_0x37c710);}['generate'](){const _0x5b239c=a68_0x448a;if(this['points']['length']===0x2){let _0x47d3d8=[],_0x24b486=boundingExtent(this[_0x5b239c(0x1ec)]),_0x147458=fromExtent(_0x24b486);_0x47d3d8=_0x147458[_0x5b239c(0x1ef)](),this[_0x5b239c(0x1e8)](_0x47d3d8);}}[a68_0x4f104f(0x1f0)](_0xc114a4,_0x500b12){const _0xb850a6=a68_0x4f104f;_0x500b12>=0x0&&_0x500b12<this[_0xb850a6(0x1ec)][_0xb850a6(0x1ee)]&&(this[_0xb850a6(0x1ec)][_0x500b12]=_0xc114a4,this['generate']());}['updateLastPoint'](_0x306287){const _0x8fb8e=a68_0x4f104f;this[_0x8fb8e(0x1f0)](_0x306287,this[_0x8fb8e(0x1ec)]['length']-0x1);}}export default RectAngle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a69_0x48c4a7=a69_0x163e;(function(_0x2892d5,_0x2b63c9){var _0x38dab1=a69_0x163e,_0x3dc1af=_0x2892d5();while(!![]){try{var _0x48d27b=parseInt(_0x38dab1(0xbd))/0x1*(-parseInt(_0x38dab1(0xac))/0x2)+-parseInt(_0x38dab1(0xb3))/0x3*(parseInt(_0x38dab1(0xb6))/0x4)+-parseInt(_0x38dab1(0xb1))/0x5*(-parseInt(_0x38dab1(0xa9))/0x6)+parseInt(_0x38dab1(0xb2))/0x7+parseInt(_0x38dab1(0xad))/0x8+-parseInt(_0x38dab1(0xab))/0x9+parseInt(_0x38dab1(0xaf))/0xa;if(_0x48d27b===_0x2b63c9)break;else _0x3dc1af['push'](_0x3dc1af['shift']());}catch(_0x8defbd){_0x3dc1af['push'](_0x3dc1af['shift']());}}}(a69_0x2a17,0x900a2));function a69_0x163e(_0x1388d3,_0x417a6a){var _0x2a179c=a69_0x2a17();return a69_0x163e=function(_0x163ecd,_0xf0773e){_0x163ecd=_0x163ecd-0xa3;var _0x2908d3=_0x2a179c[_0x163ecd];return _0x2908d3;},a69_0x163e(_0x1388d3,_0x417a6a);}import{LineString}from'ol/geom';import a69_0x3a7723 from'ol/format/GeoJSON';import a69_0x3315f0 from'../../../mapView/Map';class Plot extends LineString{constructor(){var _0x50c2b4=a69_0x163e;super([]),this[_0x50c2b4(0xb7)]=[];}[a69_0x48c4a7(0xb0)](){var _0x1e7041=a69_0x48c4a7;return this[_0x1e7041(0xa8)];}[a69_0x48c4a7(0xa5)](){return new a69_0x3a7723()['writeGeometryObject'](this);}[a69_0x48c4a7(0xb9)](_0x1bb1da){var _0x223546=a69_0x48c4a7;this[_0x223546(0xae)]=JSON['parse'](JSON['stringify'](_0x1bb1da));}[a69_0x48c4a7(0xb8)](_0x2d956b){var _0x5aec01=a69_0x48c4a7;if(_0x2d956b&&_0x2d956b instanceof a69_0x3315f0)this[_0x5aec01(0xbb)]=_0x2d956b;else throw new Error(_0x5aec01(0xba));}['getMap'](){var _0x3d8cdc=a69_0x48c4a7;return this[_0x3d8cdc(0xbb)];}[a69_0x48c4a7(0xa4)](){return!![];}[a69_0x48c4a7(0xb4)](_0x32cd5f){var _0x5b8966=a69_0x48c4a7;this[_0x5b8966(0xb7)]=!_0x32cd5f?[]:_0x32cd5f,this[_0x5b8966(0xb7)][_0x5b8966(0xa3)]>=0x1&&(this[_0x5b8966(0xbc)]&&this[_0x5b8966(0xbc)]());}[a69_0x48c4a7(0xbc)](){}[a69_0x48c4a7(0xb5)](){var _0x5e23cf=a69_0x48c4a7;return this[_0x5e23cf(0xb7)][_0x5e23cf(0xaa)](0x0);}[a69_0x48c4a7(0xa7)](){return this['points']['length'];}[a69_0x48c4a7(0xa6)](){}}function a69_0x2a17(){var _0x55c97b=['style','14327250bGaIGZ','getPlotType','571985gYqxvM','1222627KVJVQY','45nOWCbp','setPoints','getPoints','279100kotWiV','points','setMap','setStyle','传入的不是地图对象!','map','generate','567746ZLgbYj','length','isPlot','getGeoJson','finishDrawing','getPointCount','type','6ZDwrzw','slice','4298913AzrEYa','2WQctRl','7681848OsWlwY'];a69_0x2a17=function(){return _0x55c97b;};return a69_0x2a17();}export default Plot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a70_0x1040(_0x2a5758,_0x386ac3){var _0xbdd50d=a70_0xbdd5();return a70_0x1040=function(_0x104047,_0x5d6073){_0x104047=_0x104047-0x1a3;var _0x5d52fd=_0xbdd50d[_0x104047];return _0x5d52fd;},a70_0x1040(_0x2a5758,_0x386ac3);}function a70_0xbdd5(){var _0x5420fa=['1080440SXDTVD','updateLastPoint','length','type','stringify','generate','627SfIIoF','1724095fElVZC','updatePoint','setStyle','109570pBJSJp','765882AKlpXn','LineString','4eUJGJC','isPlot','parse','5972733rqYyvK','171mAphQD','12PXzELa','6958vRlEos','111160ehepmQ','setCoordinates','points'];a70_0xbdd5=function(){return _0x5420fa;};return a70_0xbdd5();}var a70_0x536024=a70_0x1040;(function(_0x1e41c1,_0x4bb139){var _0x272761=a70_0x1040,_0x32e2d2=_0x1e41c1();while(!![]){try{var _0x273c3b=parseInt(_0x272761(0x1b8))/0x1+-parseInt(_0x272761(0x1a9))/0x2*(-parseInt(_0x272761(0x1a7))/0x3)+-parseInt(_0x272761(0x1a3))/0x4*(parseInt(_0x272761(0x1b4))/0x5)+parseInt(_0x272761(0x1a8))/0x6*(parseInt(_0x272761(0x1aa))/0x7)+-parseInt(_0x272761(0x1ad))/0x8+parseInt(_0x272761(0x1a6))/0x9+parseInt(_0x272761(0x1b7))/0xa*(-parseInt(_0x272761(0x1b3))/0xb);if(_0x273c3b===_0x4bb139)break;else _0x32e2d2['push'](_0x32e2d2['shift']());}catch(_0x112b16){_0x32e2d2['push'](_0x32e2d2['shift']());}}}(a70_0xbdd5,0x87897));import a70_0x2e00ff from'./BaseLine';class Polyline extends a70_0x2e00ff{constructor(_0x40a805){var _0x428584=a70_0x1040;super(),this[_0x428584(0x1b0)]=_0x428584(0x1b9),this[_0x428584(0x1ab)](_0x40a805);}['generate'](){var _0xcb1e0a=a70_0x1040;this[_0xcb1e0a(0x1ab)](this[_0xcb1e0a(0x1ac)]);}[a70_0x536024(0x1b5)](_0x5046af,_0x43486e){var _0x3fdc09=a70_0x536024;_0x43486e>=0x0&&_0x43486e<this[_0x3fdc09(0x1ac)]['length']&&(this[_0x3fdc09(0x1ac)][_0x43486e]=_0x5046af,this[_0x3fdc09(0x1b2)]());}[a70_0x536024(0x1ae)](_0x6067c0){var _0x17c6cb=a70_0x536024;this[_0x17c6cb(0x1b5)](_0x6067c0,this[_0x17c6cb(0x1ac)][_0x17c6cb(0x1af)]-0x1);}[a70_0x536024(0x1a4)](){return![];}[a70_0x536024(0x1b6)](_0xb5583c){var _0x26cb85=a70_0x536024;this['style']=JSON[_0x26cb85(0x1a5)](JSON[_0x26cb85(0x1b1)](_0xb5583c));}}export default Polyline;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a72_0x26ba(){const _0x2a2783=['opacity','scale','warn','outlineOpacity','1298294ImjARN','pixelOffset','66093znhfpE','.png','CENTER','1PfVHer','rotate','radius','2123052uVbYrq','match','billboard','changeColor','4995192gRFvxb','image','globalAlpha','outlineWidth','pixelOffsetY','model','getFlatInteriorPoints','geometry','68QitWMG','show','push','LEFT','RIGHT','getStride','getType','MultiPoint','color','outline','cloud','10718720RuaUKJ','save','length','toUpperCase','getImageData','imgUrl','replace','1135827BjsWSM','getFlatMidpoint','verticalOrigin','drawImage','parse','pixelRatio','translate','outlineColor','10kPDMnf','getFlatInteriorPoint','zIndex','getPixelFromCoordinate','2004800azhqfk','horizontalOrigin','Polygon','pixelSize','label','TOP','modelKind','model/','restore','text','createElement','height','putImageData','width','stringify','MultiLineString'];a72_0x26ba=function(){return _0x2a2783;};return a72_0x26ba();}(function(_0xf3063f,_0x29d5a1){const _0x5d7757=a72_0x1a3a,_0x3e5a6f=_0xf3063f();while(!![]){try{const _0x3ad858=parseInt(_0x5d7757(0x9d))/0x1*(parseInt(_0x5d7757(0x98))/0x2)+parseInt(_0x5d7757(0x9a))/0x3*(-parseInt(_0x5d7757(0xac))/0x4)+-parseInt(_0x5d7757(0x80))/0x5*(parseInt(_0x5d7757(0xa0))/0x6)+parseInt(_0x5d7757(0x84))/0x7+-parseInt(_0x5d7757(0xa4))/0x8+parseInt(_0x5d7757(0xbe))/0x9+parseInt(_0x5d7757(0xb7))/0xa;if(_0x3ad858===_0x29d5a1)break;else _0x3e5a6f['push'](_0x3e5a6f['shift']());}catch(_0x5488ac){_0x3e5a6f['push'](_0x3e5a6f['shift']());}}}(a72_0x26ba,0x68404));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';import a72_0x549396 from'ol/style/Style';import a72_0x52e018 from'ol/style/Circle';import a72_0x49a316 from'ol/style/Fill';import a72_0x20374c from'ol/style/Stroke';function getMainStyle(_0x5863ad,_0x1ce86e=0x0,_0x3ece4a){const _0xe16049=a72_0x1a3a;let _0x5838f5;return _0x5863ad[_0xe16049(0xa5)]||_0x5863ad['markerColor']?_0x5838f5=new a72_0x549396({'renderer':(_0x43898b,_0x1fa4da)=>{preLoadImageRenderFunction(_0x5863ad,_0x43898b,_0x1fa4da,_0x3ece4a,_rendererFunction);},'zIndex':Number(_0x1ce86e)}):_0x5838f5=new a72_0x549396({'image':new a72_0x52e018({'radius':_0x5863ad[_0xe16049(0x9f)]?_0x5863ad[_0xe16049(0x9f)]:_0x5863ad[_0xe16049(0x87)],'fill':new a72_0x49a316({'color':getColor(_0x5863ad['color'],_0x5863ad[_0xe16049(0x94)])}),'stroke':_0x5863ad[_0xe16049(0xb5)]&&_0x5863ad['outlineColor']?new a72_0x20374c({'color':getColor(_0x5863ad[_0xe16049(0xc5)],_0x5863ad[_0xe16049(0x97)]),'width':_0x5863ad[_0xe16049(0xa7)]}):undefined}),'zIndex':Number(_0x1ce86e)}),_0x5838f5;}function _rendererFunction(_0x332844,_0x393285,_0x231bea,_0xc0d568,_0xc2f516){const _0x3c13ef=a72_0x1a3a;if(!_0xc2f516||_0xc2f516[_0x3c13ef(0x91)]===0x0){let _0x40e04c=new Image();_0x40e04c['src']=_0x332844[_0x3c13ef(0xa5)];}if(_0x332844[_0x3c13ef(0xa3)]&&_0x332844[_0x3c13ef(0xb4)]!==''){let _0x5dba0=_0x332844[_0x3c13ef(0x95)]||0x1,_0x5a70dd=_0x332844['width']||_0xc2f516[_0x3c13ef(0x91)]*_0x5dba0,_0x56e230=_0x332844['height']||_0xc2f516[_0x3c13ef(0x8f)]*_0x5dba0;_0x5a70dd=_0x5a70dd*_0x231bea[_0x3c13ef(0xc3)],_0x56e230=_0x56e230*_0x231bea[_0x3c13ef(0xc3)];const _0x5258f8=document[_0x3c13ef(0x8e)]('canvas');_0x5258f8[_0x3c13ef(0x91)]=_0x5a70dd,_0x5258f8[_0x3c13ef(0x8f)]=_0x56e230;const _0x4b1efe=_0x5258f8['getContext']('2d');_0x4b1efe===null||_0x4b1efe===void 0x0?void 0x0:_0x4b1efe['drawImage'](_0xc2f516,0x0,0x0,_0x5a70dd,_0x56e230);let _0x46bd0c=_0x4b1efe===null||_0x4b1efe===void 0x0?void 0x0:_0x4b1efe[_0x3c13ef(0xbb)](0x0,0x0,_0x5a70dd,_0x56e230),_0x29da8f=_0x46bd0c===null||_0x46bd0c===void 0x0?void 0x0:_0x46bd0c['data'];_0xc2f516=_0x5258f8;let _0xa67baa=HexToRgb(_0x332844[_0x3c13ef(0xb4)]);if(_0x29da8f&&_0xa67baa)for(var _0x2d79c1=0x0;_0x2d79c1<_0x29da8f[_0x3c13ef(0xb9)];_0x2d79c1+=0x4){_0x29da8f[_0x2d79c1]=_0xa67baa[0x0],_0x29da8f[_0x2d79c1+0x1]=_0xa67baa[0x1],_0x29da8f[_0x2d79c1+0x2]=_0xa67baa[0x2];}_0x46bd0c&&(_0x4b1efe===null||_0x4b1efe===void 0x0?void 0x0:_0x4b1efe[_0x3c13ef(0x90)](_0x46bd0c,0x0,0x0));}let _0x2f5724=_0x231bea[_0x3c13ef(0xab)],_0x473d5e=_0x231bea[_0x3c13ef(0xc3)],_0x539f86=_0x2f5724[_0x3c13ef(0xb1)](),_0x3605fb=_0x2f5724[_0x3c13ef(0xb2)](),_0x2c7fe4=[];switch(_0x3605fb){case'LineString':_0x2c7fe4=_0x2f5724[_0x3c13ef(0xbf)]();break;case _0x3c13ef(0x93):_0x2c7fe4=_0x2f5724['getFlatMidpoints'](),_0x539f86=0x2;break;case _0x3c13ef(0x86):_0x2c7fe4=_0x2f5724[_0x3c13ef(0x81)](),_0x539f86=0x3;break;case'MultiPolygon':{let _0x163c63=_0x2f5724[_0x3c13ef(0xaa)]();_0x2c7fe4=[];for(let _0x184cfa=0x0,_0x292b8d=_0x163c63['length'];_0x184cfa<_0x292b8d;_0x184cfa+=0x3){_0x2c7fe4[_0x3c13ef(0xae)](_0x163c63[_0x184cfa],_0x163c63[_0x184cfa+0x1]);}if(_0x2c7fe4[_0x3c13ef(0xb9)]===0x0)return;_0x539f86=0x2;break;}}if(_0x2c7fe4[_0x3c13ef(0xb9)]>0x0&&_0xc0d568)for(let _0x4f45cd=0x0,_0x3aa896=_0x2c7fe4[_0x3c13ef(0xb9)];_0x4f45cd<_0x3aa896;_0x4f45cd+=_0x539f86){let _0x5e3954=[_0x2c7fe4[_0x4f45cd],_0x2c7fe4[_0x4f45cd+0x1]],_0x1f9c82=_0xc0d568[_0x3c13ef(0x83)](_0x5e3954);_0x1f9c82=[_0x1f9c82[0x0]*_0x473d5e,_0x1f9c82[0x1]*_0x473d5e],drawImage(_0x332844,_0x1f9c82,_0x231bea,_0xc2f516);}else{if(_0x3605fb===_0x3c13ef(0xb3))for(let _0x2bb403 of _0x393285){drawImage(_0x332844,_0x2bb403,_0x231bea,_0xc2f516);}else drawImage(_0x332844,_0x393285,_0x231bea,_0xc2f516);}}function a72_0x1a3a(_0x36ec96,_0x526a72){const _0x26ba9a=a72_0x26ba();return a72_0x1a3a=function(_0x1a3a77,_0x2ae5c6){_0x1a3a77=_0x1a3a77-0x80;let _0x2e787a=_0x26ba9a[_0x1a3a77];return _0x2e787a;},a72_0x1a3a(_0x36ec96,_0x526a72);}function HexToRgb(_0x534aba){const _0x167ad9=a72_0x1a3a;_0x534aba=_0x534aba[_0x167ad9(0xbd)]('#','');let _0x3afa5c=_0x534aba[_0x167ad9(0xa1)](/../g);if(_0x3afa5c){for(let _0x128f55=0x0;_0x128f55<0x3;_0x128f55++)_0x3afa5c[_0x128f55]=parseInt(_0x3afa5c[_0x128f55],0x10);}return _0x3afa5c;}export function getImageOlStyle(_0x5cf8c7,_0x221137,_0x57b7bc,_0x3e5421){const _0x2159cf=a72_0x1a3a;var _0x2841d0;if(_0x5cf8c7&&_0x5cf8c7['show']!==![]){_0x5cf8c7=JSON[_0x2159cf(0xc2)](JSON[_0x2159cf(0x92)](_0x5cf8c7)),_0x221137=(_0x2841d0=_0x5cf8c7['zIndex'])!==null&&_0x2841d0!==void 0x0?_0x2841d0:_0x221137;let _0x32c113=isShowStyle(_0x5cf8c7,_0x57b7bc,_0x3e5421);if(_0x32c113)return _0x5cf8c7[_0x2159cf(0xa5)]=parseImage(_0x5cf8c7[_0x2159cf(0xa5)]),getMainStyle(_0x5cf8c7,_0x221137,_0x3e5421);}}export function getPointStyle(_0x258ef5,_0xd730de,_0x129777,_0x2a2481){const _0x1c0318=a72_0x1a3a;var _0x53b4db,_0x20e0a9;_0x258ef5=JSON[_0x1c0318(0xc2)](JSON[_0x1c0318(0x92)](_0x258ef5));let _0x424c09=(_0x53b4db=_0x258ef5[_0x1c0318(0x82)])!==null&&_0x53b4db!==void 0x0?_0x53b4db:0x0,_0xfadd72=[],_0x5baa72=getImageOlStyle(_0x258ef5,_0x424c09,_0x129777,_0x2a2481);_0x5baa72&&_0xfadd72[_0x1c0318(0xae)](_0x5baa72);let _0x2ec912=getImageOlStyle(_0x258ef5[_0x1c0318(0xa2)],_0x424c09,_0x129777,_0x2a2481);_0x2ec912&&_0xfadd72['push'](_0x2ec912);if(_0x258ef5[_0x1c0318(0xa9)]&&_0x258ef5[_0x1c0318(0xa9)][_0x1c0318(0xad)]!==![]){let _0x564232=isShowStyle(_0x258ef5[_0x1c0318(0xa9)],_0x129777,_0x2a2481);if(_0x564232){let _0x4b8d01=(_0x20e0a9=_0x258ef5[_0x1c0318(0xa9)]['zIndex'])!==null&&_0x20e0a9!==void 0x0?_0x20e0a9:_0x424c09,_0x56f867=_0x258ef5[_0x1c0318(0xa9)][_0x1c0318(0xbc)]||_0x1c0318(0x8b)+_0x258ef5[_0x1c0318(0xa9)][_0x1c0318(0x8a)]+_0x1c0318(0x9b);_0x258ef5[_0x1c0318(0x95)]=0x1,_0x258ef5[_0x1c0318(0x91)]=0x30,_0x258ef5[_0x1c0318(0x8f)]=0x30,_0x258ef5[_0x1c0318(0xc0)]=_0x1c0318(0x9c),_0xfadd72[_0x1c0318(0xae)](getMainStyle(_0x258ef5[_0x1c0318(0xa9)],_0x4b8d01,_0x2a2481));}}if(_0x258ef5[_0x1c0318(0x88)]&&_0x258ef5[_0x1c0318(0x88)][_0x1c0318(0xad)]!==![]){let _0x7948e6=new a72_0x549396({'text':createTextStyle(_0x258ef5[_0x1c0318(0x88)],_0xd730de,_0x129777,_0x2a2481),'zIndex':Number(_0x424c09)+0x1});_0xfadd72[_0x1c0318(0xae)](_0x7948e6);}return _0xfadd72;}export function getPointSingleStyle(_0x2a0060,_0x5ee066,_0x4530ea,_0x3bdecd){const _0x46f047=a72_0x1a3a;_0x5ee066=JSON[_0x46f047(0xc2)](JSON[_0x46f047(0x92)](_0x5ee066));let _0x4d5ec0=_0x5ee066[_0x46f047(0x88)],_0x3a3583;_0x4d5ec0&&(_0x3a3583=_0x4d5ec0[_0x46f047(0x8d)]?_0x4d5ec0[_0x46f047(0x8d)]:'');if(_0x2a0060==='billboard')return _0x5ee066['image']=parseImage(_0x5ee066[_0x46f047(0xa5)]),getPointStyle(_0x5ee066,_0x3a3583,_0x4530ea,_0x3bdecd);else{if(_0x2a0060===_0x46f047(0xa9)){let _0x18ce22=_0x5ee066[_0x46f047(0xbc)]||_0x46f047(0x8b)+_0x5ee066[_0x46f047(0x8a)]+'.png';return _0x5ee066[_0x46f047(0x95)]=0x1,_0x5ee066['width']=0x30,_0x5ee066[_0x46f047(0x8f)]=0x30,_0x5ee066[_0x46f047(0xc0)]=_0x46f047(0x9c),getPointStyle(_0x5ee066,_0x3a3583,_0x4530ea,_0x3bdecd);}else{if(_0x2a0060===_0x46f047(0xb6))return getPointStyle(_0x5ee066,_0x3a3583,_0x4530ea,_0x3bdecd);else{if(_0x2a0060==='point')return getPointStyle(_0x5ee066,_0x3a3583,_0x4530ea,_0x3bdecd);else return _0x2a0060===_0x46f047(0x88)?new a72_0x549396({'text':createTextStyle(_0x5ee066,_0x5ee066[_0x46f047(0x8d)],_0x4530ea,_0x3bdecd),'zIndex':_0x5ee066['zIndex']}):getPointStyle(_0x5ee066,_0x3a3583,_0x4530ea,_0x3bdecd);}}}}function drawImage(_0x1ec093,_0x333a84,_0x110cad,_0x588651){const _0xa1a301=a72_0x1a3a;var _0x11f941,_0x34a3cc,_0x4eb448,_0x4e67e7;let _0x1bc91a=_0x110cad['context'];try{_0x1bc91a[_0xa1a301(0xb8)]();let _0x3ea003=Number(_0x1ec093['pixelOffsetX']||((_0x11f941=_0x1ec093['pixelOffset'])===null||_0x11f941===void 0x0?void 0x0:_0x11f941[0x0])||0x0),_0x4f91f4=Number(_0x1ec093[_0xa1a301(0xa8)]||((_0x34a3cc=_0x1ec093[_0xa1a301(0x99)])===null||_0x34a3cc===void 0x0?void 0x0:_0x34a3cc[0x1])||0x0);_0x1bc91a[_0xa1a301(0xc4)](_0x333a84[0x0]+_0x3ea003,_0x333a84[0x1]+_0x4f91f4);if(_0x1ec093['rotation'])_0x1bc91a[_0xa1a301(0x9e)](toRadians(_0x1ec093['rotation']));_0x1bc91a[_0xa1a301(0xa6)]=_0x1ec093['opacity']!=null?_0x1ec093[_0xa1a301(0x94)]:0x1;if(_0x588651[_0xa1a301(0x91)]>0x0){let _0x443565=_0x1ec093[_0xa1a301(0x95)]||0x1,_0x5e8b4c=_0x1ec093[_0xa1a301(0x91)]||_0x588651[_0xa1a301(0x91)]*_0x443565,_0x519c52=_0x1ec093[_0xa1a301(0x8f)]||_0x588651[_0xa1a301(0x8f)]*_0x443565;_0x5e8b4c=_0x5e8b4c*_0x110cad['pixelRatio'],_0x519c52=_0x519c52*_0x110cad[_0xa1a301(0xc3)];_0x1ec093[_0xa1a301(0xa3)]&&(_0x5e8b4c=_0x588651[_0xa1a301(0x91)],_0x519c52=_0x588651[_0xa1a301(0x8f)]);let _0x4880fc;switch((_0x4eb448=_0x1ec093[_0xa1a301(0x85)])===null||_0x4eb448===void 0x0?void 0x0:_0x4eb448[_0xa1a301(0xba)]()){default:case _0xa1a301(0x9c):_0x4880fc=-_0x5e8b4c/0x2;break;case _0xa1a301(0xaf):_0x4880fc=0x0;break;case _0xa1a301(0xb0):_0x4880fc=-_0x5e8b4c;break;}let _0x52d86e;switch((_0x4e67e7=_0x1ec093[_0xa1a301(0xc0)])===null||_0x4e67e7===void 0x0?void 0x0:_0x4e67e7[_0xa1a301(0xba)]()){default:case'BOTTOM':_0x52d86e=-_0x519c52;break;case _0xa1a301(0x9c):_0x52d86e=-_0x519c52/0x2;break;case _0xa1a301(0x89):_0x52d86e=0x0;break;}_0x1bc91a[_0xa1a301(0xc1)](_0x588651,_0x4880fc,_0x52d86e,_0x5e8b4c,_0x519c52);}else _0x1bc91a[_0xa1a301(0xc1)](_0x588651,0x0,0x0);_0x1bc91a[_0xa1a301(0x8c)]();}catch(_0x4563ee){_0x1bc91a['restore'](),console[_0xa1a301(0x96)](_0x4563ee);}}
|
|
1
|
+
(function(_0x5958e8,_0x25fd07){const _0x9c116d=a73_0x13a4,_0x2002c3=_0x5958e8();while(!![]){try{const _0x53d43d=-parseInt(_0x9c116d(0xde))/0x1+-parseInt(_0x9c116d(0xe3))/0x2+parseInt(_0x9c116d(0xf0))/0x3+-parseInt(_0x9c116d(0xf3))/0x4*(-parseInt(_0x9c116d(0xc7))/0x5)+-parseInt(_0x9c116d(0xca))/0x6+parseInt(_0x9c116d(0xff))/0x7*(parseInt(_0x9c116d(0xf6))/0x8)+parseInt(_0x9c116d(0x102))/0x9;if(_0x53d43d===_0x25fd07)break;else _0x2002c3['push'](_0x2002c3['shift']());}catch(_0x4dcd31){_0x2002c3['push'](_0x2002c3['shift']());}}}(a73_0x22b9,0xe71b2));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';import a73_0x55b4f1 from'ol/style/Style';import a73_0xdc2067 from'ol/style/Circle';function a73_0x22b9(){const _0x114cee=['warn','1259499mzpOwI','data','getFlatMidpoints','horizontalOrigin','color','2987786ncSLVX','MultiPoint','translate','point','toUpperCase','parse','changeColor','LEFT','MultiPolygon','model','label','getFlatMidpoint','cloud','4197546MvmeaT','length','RIGHT','46796PlUheb','globalAlpha','model/','4001928Kqurni','zIndex','pixelRatio','stringify','text','height','MultiLineString','Polygon','BOTTOM','7rxTyyJ','modelKind','TOP','20618766FpRhod','drawImage','LineString','image','width','billboard','outlineColor','rotate','save','scale','show','40kaAwud','imgUrl','pixelOffset','3503922LuvjRr','push','getType','match','context','opacity','radius','pixelSize','pixelOffsetY','verticalOrigin','restore','getImageData','getFlatInteriorPoint','getStride','getFlatInteriorPoints','.png','getContext','rotation','CENTER'];a73_0x22b9=function(){return _0x114cee;};return a73_0x22b9();}import a73_0x1728cb from'ol/style/Fill';import a73_0x387299 from'ol/style/Stroke';function getMainStyle(_0x2ceb75,_0xe3943e=0x0,_0x3a63aa){const _0x49519f=a73_0x13a4;let _0x1d5846;return _0x2ceb75[_0x49519f(0x105)]||_0x2ceb75['markerColor']?_0x1d5846=new a73_0x55b4f1({'renderer':(_0x7aba84,_0x856d5f)=>{preLoadImageRenderFunction(_0x2ceb75,_0x7aba84,_0x856d5f,_0x3a63aa,_rendererFunction);},'zIndex':Number(_0xe3943e)}):_0x1d5846=new a73_0x55b4f1({'image':new a73_0xdc2067({'radius':_0x2ceb75[_0x49519f(0xd0)]?_0x2ceb75[_0x49519f(0xd0)]:_0x2ceb75[_0x49519f(0xd1)],'fill':new a73_0x1728cb({'color':getColor(_0x2ceb75[_0x49519f(0xe2)],_0x2ceb75[_0x49519f(0xcf)])}),'stroke':_0x2ceb75['outline']&&_0x2ceb75[_0x49519f(0x108)]?new a73_0x387299({'color':getColor(_0x2ceb75['outlineColor'],_0x2ceb75['outlineOpacity']),'width':_0x2ceb75['outlineWidth']}):undefined}),'zIndex':Number(_0xe3943e)}),_0x1d5846;}function _rendererFunction(_0x31049f,_0x5c54c8,_0x1d200c,_0x4577e1,_0x126a9d){const _0x7aa707=a73_0x13a4;if(!_0x126a9d||_0x126a9d['width']===0x0){let _0x41f1a0=new Image();_0x41f1a0['src']=_0x31049f[_0x7aa707(0x105)];}if(_0x31049f[_0x7aa707(0xe9)]&&_0x31049f['color']!==''){let _0x27a37a=_0x31049f[_0x7aa707(0xc5)]||0x1,_0x3bcefc=_0x31049f[_0x7aa707(0x106)]||_0x126a9d[_0x7aa707(0x106)]*_0x27a37a,_0x3ecf9a=_0x31049f[_0x7aa707(0xfb)]||_0x126a9d['height']*_0x27a37a;_0x3bcefc=_0x3bcefc*_0x1d200c[_0x7aa707(0xf8)],_0x3ecf9a=_0x3ecf9a*_0x1d200c[_0x7aa707(0xf8)];const _0x2ae5d8=document['createElement']('canvas');_0x2ae5d8[_0x7aa707(0x106)]=_0x3bcefc,_0x2ae5d8['height']=_0x3ecf9a;const _0xa7347d=_0x2ae5d8[_0x7aa707(0xda)]('2d');_0xa7347d===null||_0xa7347d===void 0x0?void 0x0:_0xa7347d[_0x7aa707(0x103)](_0x126a9d,0x0,0x0,_0x3bcefc,_0x3ecf9a);let _0x21827b=_0xa7347d===null||_0xa7347d===void 0x0?void 0x0:_0xa7347d[_0x7aa707(0xd5)](0x0,0x0,_0x3bcefc,_0x3ecf9a),_0x75c627=_0x21827b===null||_0x21827b===void 0x0?void 0x0:_0x21827b[_0x7aa707(0xdf)];_0x126a9d=_0x2ae5d8;let _0x4c2580=HexToRgb(_0x31049f[_0x7aa707(0xe2)]);if(_0x75c627&&_0x4c2580)for(var _0x4e28a4=0x0;_0x4e28a4<_0x75c627[_0x7aa707(0xf1)];_0x4e28a4+=0x4){_0x75c627[_0x4e28a4]=_0x4c2580[0x0],_0x75c627[_0x4e28a4+0x1]=_0x4c2580[0x1],_0x75c627[_0x4e28a4+0x2]=_0x4c2580[0x2];}_0x21827b&&(_0xa7347d===null||_0xa7347d===void 0x0?void 0x0:_0xa7347d['putImageData'](_0x21827b,0x0,0x0));}let _0x1eada0=_0x1d200c['geometry'],_0x5f107e=_0x1d200c[_0x7aa707(0xf8)],_0x95bc57=_0x1eada0[_0x7aa707(0xd7)](),_0x24918e=_0x1eada0[_0x7aa707(0xcc)](),_0x6d499d=[];switch(_0x24918e){case _0x7aa707(0x104):_0x6d499d=_0x1eada0[_0x7aa707(0xee)]();break;case _0x7aa707(0xfc):_0x6d499d=_0x1eada0[_0x7aa707(0xe0)](),_0x95bc57=0x2;break;case _0x7aa707(0xfd):_0x6d499d=_0x1eada0[_0x7aa707(0xd6)](),_0x95bc57=0x3;break;case _0x7aa707(0xeb):{let _0x5a870b=_0x1eada0[_0x7aa707(0xd8)]();_0x6d499d=[];for(let _0x5ae489=0x0,_0x3cc557=_0x5a870b[_0x7aa707(0xf1)];_0x5ae489<_0x3cc557;_0x5ae489+=0x3){_0x6d499d[_0x7aa707(0xcb)](_0x5a870b[_0x5ae489],_0x5a870b[_0x5ae489+0x1]);}if(_0x6d499d[_0x7aa707(0xf1)]===0x0)return;_0x95bc57=0x2;break;}}if(_0x6d499d[_0x7aa707(0xf1)]>0x0&&_0x4577e1)for(let _0x2716bb=0x0,_0x37227e=_0x6d499d[_0x7aa707(0xf1)];_0x2716bb<_0x37227e;_0x2716bb+=_0x95bc57){let _0x11ca6f=[_0x6d499d[_0x2716bb],_0x6d499d[_0x2716bb+0x1]],_0x540494=_0x4577e1['getPixelFromCoordinate'](_0x11ca6f);_0x540494=[_0x540494[0x0]*_0x5f107e,_0x540494[0x1]*_0x5f107e],drawImage(_0x31049f,_0x540494,_0x1d200c,_0x126a9d);}else{if(_0x24918e===_0x7aa707(0xe4))for(let _0x2a4819 of _0x5c54c8){drawImage(_0x31049f,_0x2a4819,_0x1d200c,_0x126a9d);}else drawImage(_0x31049f,_0x5c54c8,_0x1d200c,_0x126a9d);}}function HexToRgb(_0x12fc10){const _0x12eba6=a73_0x13a4;_0x12fc10=_0x12fc10['replace']('#','');let _0x5264e7=_0x12fc10[_0x12eba6(0xcd)](/../g);if(_0x5264e7){for(let _0x2dd49e=0x0;_0x2dd49e<0x3;_0x2dd49e++)_0x5264e7[_0x2dd49e]=parseInt(_0x5264e7[_0x2dd49e],0x10);}return _0x5264e7;}function a73_0x13a4(_0x20e94d,_0x884dd3){const _0x22b9a8=a73_0x22b9();return a73_0x13a4=function(_0x13a4a2,_0x37c354){_0x13a4a2=_0x13a4a2-0xc3;let _0x205826=_0x22b9a8[_0x13a4a2];return _0x205826;},a73_0x13a4(_0x20e94d,_0x884dd3);}export function getImageOlStyle(_0x4fe7b2,_0x104a50,_0x75e956,_0x551026){const _0x3f1850=a73_0x13a4;var _0x773c33;if(_0x4fe7b2&&_0x4fe7b2[_0x3f1850(0xc6)]!==![]){_0x4fe7b2=JSON[_0x3f1850(0xe8)](JSON[_0x3f1850(0xf9)](_0x4fe7b2)),_0x104a50=(_0x773c33=_0x4fe7b2[_0x3f1850(0xf7)])!==null&&_0x773c33!==void 0x0?_0x773c33:_0x104a50;let _0x4918a7=isShowStyle(_0x4fe7b2,_0x75e956,_0x551026);if(_0x4918a7)return _0x4fe7b2[_0x3f1850(0x105)]=parseImage(_0x4fe7b2[_0x3f1850(0x105)]),getMainStyle(_0x4fe7b2,_0x104a50,_0x551026);}}export function getPointStyle(_0x114d89,_0x1e94e1,_0x215f67,_0x470e08){const _0x46a51f=a73_0x13a4;var _0x4bc588,_0x2de79d;_0x114d89=JSON[_0x46a51f(0xe8)](JSON[_0x46a51f(0xf9)](_0x114d89));let _0x431dc2=(_0x4bc588=_0x114d89[_0x46a51f(0xf7)])!==null&&_0x4bc588!==void 0x0?_0x4bc588:0x0,_0x12f512=[],_0x1bd922=getImageOlStyle(_0x114d89,_0x431dc2,_0x215f67,_0x470e08);_0x1bd922&&_0x12f512[_0x46a51f(0xcb)](_0x1bd922);let _0xfe2c4d=getImageOlStyle(_0x114d89[_0x46a51f(0x107)],_0x431dc2,_0x215f67,_0x470e08);_0xfe2c4d&&_0x12f512[_0x46a51f(0xcb)](_0xfe2c4d);if(_0x114d89[_0x46a51f(0xec)]&&_0x114d89['model'][_0x46a51f(0xc6)]!==![]){let _0x4d906e=isShowStyle(_0x114d89[_0x46a51f(0xec)],_0x215f67,_0x470e08);if(_0x4d906e){let _0xc510f=(_0x2de79d=_0x114d89[_0x46a51f(0xec)][_0x46a51f(0xf7)])!==null&&_0x2de79d!==void 0x0?_0x2de79d:_0x431dc2,_0x1099cb=_0x114d89[_0x46a51f(0xec)]['imgUrl']||'model/'+_0x114d89[_0x46a51f(0xec)][_0x46a51f(0x100)]+_0x46a51f(0xd9);_0x114d89['scale']=0x1,_0x114d89['width']=0x30,_0x114d89[_0x46a51f(0xfb)]=0x30,_0x114d89['verticalOrigin']=_0x46a51f(0xdc),_0x12f512[_0x46a51f(0xcb)](getMainStyle(_0x114d89['model'],_0xc510f,_0x470e08));}}if(_0x114d89[_0x46a51f(0xed)]&&_0x114d89[_0x46a51f(0xed)][_0x46a51f(0xc6)]!==![]){let _0x33ce33=new a73_0x55b4f1({'text':createTextStyle(_0x114d89['label'],_0x1e94e1,_0x215f67,_0x470e08),'zIndex':Number(_0x431dc2)+0x1});_0x12f512[_0x46a51f(0xcb)](_0x33ce33);}return _0x12f512;}export function getPointSingleStyle(_0x3bb3d4,_0x3d26f2,_0x161819,_0x3d9f2b){const _0x9af819=a73_0x13a4;_0x3d26f2=JSON[_0x9af819(0xe8)](JSON['stringify'](_0x3d26f2));let _0x176e97=_0x3d26f2[_0x9af819(0xed)],_0xd5094d;_0x176e97&&(_0xd5094d=_0x176e97[_0x9af819(0xfa)]?_0x176e97['text']:'');if(_0x3bb3d4===_0x9af819(0x107))return _0x3d26f2[_0x9af819(0x105)]=parseImage(_0x3d26f2[_0x9af819(0x105)]),getPointStyle(_0x3d26f2,_0xd5094d,_0x161819,_0x3d9f2b);else{if(_0x3bb3d4===_0x9af819(0xec)){let _0xcfd46f=_0x3d26f2[_0x9af819(0xc8)]||_0x9af819(0xf5)+_0x3d26f2['modelKind']+_0x9af819(0xd9);return _0x3d26f2[_0x9af819(0xc5)]=0x1,_0x3d26f2[_0x9af819(0x106)]=0x30,_0x3d26f2[_0x9af819(0xfb)]=0x30,_0x3d26f2[_0x9af819(0xd3)]='CENTER',getPointStyle(_0x3d26f2,_0xd5094d,_0x161819,_0x3d9f2b);}else{if(_0x3bb3d4===_0x9af819(0xef))return getPointStyle(_0x3d26f2,_0xd5094d,_0x161819,_0x3d9f2b);else{if(_0x3bb3d4===_0x9af819(0xe6))return getPointStyle(_0x3d26f2,_0xd5094d,_0x161819,_0x3d9f2b);else return _0x3bb3d4===_0x9af819(0xed)?new a73_0x55b4f1({'text':createTextStyle(_0x3d26f2,_0x3d26f2[_0x9af819(0xfa)],_0x161819,_0x3d9f2b),'zIndex':_0x3d26f2[_0x9af819(0xf7)]}):getPointStyle(_0x3d26f2,_0xd5094d,_0x161819,_0x3d9f2b);}}}}function drawImage(_0x39eced,_0xe43f0,_0x112781,_0x2b4cb9){const _0xa210eb=a73_0x13a4;var _0x2b7697,_0x2b33aa,_0x405a46,_0xbf987a;let _0x2d4355=_0x112781[_0xa210eb(0xce)];try{_0x2d4355[_0xa210eb(0xc4)]();let _0x1d457d=Number(_0x39eced['pixelOffsetX']||((_0x2b7697=_0x39eced[_0xa210eb(0xc9)])===null||_0x2b7697===void 0x0?void 0x0:_0x2b7697[0x0])||0x0),_0x1c0b91=Number(_0x39eced[_0xa210eb(0xd2)]||((_0x2b33aa=_0x39eced[_0xa210eb(0xc9)])===null||_0x2b33aa===void 0x0?void 0x0:_0x2b33aa[0x1])||0x0);_0x2d4355[_0xa210eb(0xe5)](_0xe43f0[0x0]+_0x1d457d,_0xe43f0[0x1]+_0x1c0b91);if(_0x39eced[_0xa210eb(0xdb)])_0x2d4355[_0xa210eb(0xc3)](toRadians(_0x39eced['rotation']));_0x2d4355[_0xa210eb(0xf4)]=_0x39eced[_0xa210eb(0xcf)]!=null?_0x39eced['opacity']:0x1;if(_0x2b4cb9[_0xa210eb(0x106)]>0x0){let _0x5a069f=_0x39eced[_0xa210eb(0xc5)]||0x1,_0x28dc51=_0x39eced[_0xa210eb(0x106)]||_0x2b4cb9[_0xa210eb(0x106)]*_0x5a069f,_0x249b07=_0x39eced[_0xa210eb(0xfb)]||_0x2b4cb9[_0xa210eb(0xfb)]*_0x5a069f;_0x28dc51=_0x28dc51*_0x112781[_0xa210eb(0xf8)],_0x249b07=_0x249b07*_0x112781[_0xa210eb(0xf8)];_0x39eced['changeColor']&&(_0x28dc51=_0x2b4cb9[_0xa210eb(0x106)],_0x249b07=_0x2b4cb9[_0xa210eb(0xfb)]);let _0x456611;switch((_0x405a46=_0x39eced[_0xa210eb(0xe1)])===null||_0x405a46===void 0x0?void 0x0:_0x405a46[_0xa210eb(0xe7)]()){default:case _0xa210eb(0xdc):_0x456611=-_0x28dc51/0x2;break;case _0xa210eb(0xea):_0x456611=0x0;break;case _0xa210eb(0xf2):_0x456611=-_0x28dc51;break;}let _0x3ea8b5;switch((_0xbf987a=_0x39eced[_0xa210eb(0xd3)])===null||_0xbf987a===void 0x0?void 0x0:_0xbf987a[_0xa210eb(0xe7)]()){default:case _0xa210eb(0xfe):_0x3ea8b5=-_0x249b07;break;case _0xa210eb(0xdc):_0x3ea8b5=-_0x249b07/0x2;break;case _0xa210eb(0x101):_0x3ea8b5=0x0;break;}_0x2d4355[_0xa210eb(0x103)](_0x2b4cb9,_0x456611,_0x3ea8b5,_0x28dc51,_0x249b07);}else _0x2d4355[_0xa210eb(0x103)](_0x2b4cb9,0x0,0x0);_0x2d4355[_0xa210eb(0xd4)]();}catch(_0x511c04){_0x2d4355[_0xa210eb(0xd4)](),console[_0xa210eb(0xdd)](_0x511c04);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a73_0x19fc(_0x382ffa,_0x473d8d){var _0x33d009=a73_0x33d0();return a73_0x19fc=function(_0x19fcfd,_0x3c888a){_0x19fcfd=_0x19fcfd-0x149;var _0x3b89ab=_0x33d009[_0x19fcfd];return _0x3b89ab;},a73_0x19fc(_0x382ffa,_0x473d8d);}(function(_0x582c0a,_0x189a66){var _0xd8f015=a73_0x19fc,_0x99bca4=_0x582c0a();while(!![]){try{var _0x2e8fc5=parseInt(_0xd8f015(0x168))/0x1+-parseInt(_0xd8f015(0x16f))/0x2*(-parseInt(_0xd8f015(0x166))/0x3)+parseInt(_0xd8f015(0x183))/0x4*(-parseInt(_0xd8f015(0x149))/0x5)+-parseInt(_0xd8f015(0x181))/0x6+-parseInt(_0xd8f015(0x154))/0x7+parseInt(_0xd8f015(0x164))/0x8*(parseInt(_0xd8f015(0x171))/0x9)+parseInt(_0xd8f015(0x16e))/0xa;if(_0x2e8fc5===_0x189a66)break;else _0x99bca4['push'](_0x99bca4['shift']());}catch(_0x1e2e9c){_0x99bca4['push'](_0x99bca4['shift']());}}}(a73_0x33d0,0xb7c46));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(_0x3845cf,_0x30862b,_0xd963fc,_0x57e7a2){var _0x6dd56f=a73_0x19fc,_0x2686ba;let _0x29ae68=(_0x2686ba=_0x3845cf[_0x6dd56f(0x16b)])!==null&&_0x2686ba!==void 0x0?_0x2686ba:0x0,_0x5d2573=new Style();_0x5d2573['setZIndex'](_0x29ae68),_0x5d2573[_0x6dd56f(0x159)](new Fill({'color':_0x6dd56f(0x14c)}));if(_0x3845cf[_0x6dd56f(0x178)]!==![]){if(!_0x3845cf['fillType']||_0x3845cf[_0x6dd56f(0x151)]===_0x6dd56f(0x170))_0x5d2573[_0x6dd56f(0x159)](new Fill({'color':getColor(_0x3845cf[_0x6dd56f(0x170)],_0x3845cf['opacity'])}));else{if(_0x3845cf['fillType']===_0x6dd56f(0x14b))_0x5d2573[_0x6dd56f(0x174)]((_0x2d0140,_0x3f8628)=>{preLoadImageRenderFunction(_0x3845cf,_0x2d0140,_0x3f8628,_0x57e7a2,_rendererFunction);});else _0x3845cf['fillType']==='grid'||_0x3845cf['fillType']===_0x6dd56f(0x15e)||_0x3845cf[_0x6dd56f(0x151)]===_0x6dd56f(0x16c)?_0x5d2573[_0x6dd56f(0x174)]((_0x501016,_0x3087d3)=>{_rendererFunction(_0x3845cf,_0x501016,_0x3087d3,_0x57e7a2,null);}):_0x5d2573[_0x6dd56f(0x159)](new Fill({'color':getColor(_0x3845cf[_0x6dd56f(0x170)],_0x3845cf[_0x6dd56f(0x14a)])}));}}_0x3845cf[_0x6dd56f(0x15b)]!==![]&&_0x5d2573[_0x6dd56f(0x152)](new Stroke({'color':getColor(_0x3845cf[_0x6dd56f(0x176)],_0x3845cf['outlineOpacity']),'width':_0x3845cf['outlineWidth']}));let _0x54ac0f=[_0x5d2573];_0x3845cf[_0x6dd56f(0x150)]&&!_0x3845cf['billboard']['verticalOrigin']&&(_0x3845cf[_0x6dd56f(0x150)][_0x6dd56f(0x16d)]=_0x6dd56f(0x160));let _0x1872a2=getImageOlStyle(_0x3845cf[_0x6dd56f(0x150)],_0x29ae68,_0xd963fc,_0x57e7a2);_0x1872a2&&_0x54ac0f[_0x6dd56f(0x179)](_0x1872a2);if(_0x30862b){const _0x2c0d0d=createTextStyle(_0x3845cf,_0x30862b,_0xd963fc,_0x57e7a2);_0x2c0d0d&&(_0x5d2573[_0x6dd56f(0x158)](_0x2c0d0d),_0x5d2573['setZIndex'](Number(_0x29ae68)+0x1));}return _0x54ac0f;}function a73_0x33d0(){var _0x134309=['lineWidth','setRenderer','beginPath','outlineColor','strokeStyle','fill','push','width','warn','rgba(0,0,0,0.01)','height','lineTo','drawImage','getContext','3732150uXMCCv','closePath','4807184zkvuCd','moveTo','5xgVONl','opacity','image','rgba(0,0,0,0)','restore','stripe_oddcolor','length','billboard','fillType','setStroke','stripe_repeat','2588747YQtWXE','createElement','createPattern','src','setText','setFill','canvas','outline','repeat','oddColor','stripe','checkerboard_repeat','CENTER','grid_lineCount','save','fillStyle','10704SQzLgA','outlineOpacity','1178808glzphz','stroke','121985rRfeED','grid_lineThickness','max','zIndex','checkerboard','verticalOrigin','9426730Fguirf','4jxotAY','color','7371VLcaIJ','rgba(0,0,0,0.0)'];a73_0x33d0=function(){return _0x134309;};return a73_0x33d0();}function _rendererFunction(_0x361a3b,_0x1c469a,_0x17ee4b,_0xe47aca,_0x362672){var _0x84e02e=a73_0x19fc;try{var _0xd72290=_0x17ee4b['context'];for(var _0x39ee7b=0x0,_0x4cfce8=_0x1c469a[_0x84e02e(0x14f)];_0x39ee7b<_0x4cfce8;_0x39ee7b++){_0xd72290[_0x84e02e(0x162)](),_0xd72290[_0x84e02e(0x175)]();var _0x21beed=_0x1c469a[_0x39ee7b];let _0x6b4fe1=boundingExtent(_0x21beed);_0xd72290['translate'](_0x6b4fe1[0x0],_0x6b4fe1[0x1]);let _0x4f189f;switch(_0x361a3b[_0x84e02e(0x151)]){case _0x84e02e(0x14b):_0x4f189f=_getImagePattern(_0xd72290,_0x6b4fe1,_0x361a3b,_0x362672);break;case'grid':_0x4f189f=_getGridPattern(_0xd72290,_0x6b4fe1,_0x361a3b);break;case _0x84e02e(0x15e):_0x4f189f=_getStripePattern(_0xd72290,_0x6b4fe1,_0x361a3b);break;case'checkerboard':_0x4f189f=_getCheckerBoardPattern(_0xd72290,_0x6b4fe1,_0x361a3b);break;default:_0x4f189f=_0x84e02e(0x17c);break;}for(var _0x3c0dce=0x0,_0x6e7355=_0x21beed['length'];_0x3c0dce<_0x6e7355;_0x3c0dce++){var _0x2513e5=_0x21beed[_0x3c0dce];_0x3c0dce===0x0?_0xd72290['moveTo'](_0x2513e5[0x0]-_0x6b4fe1[0x0],_0x2513e5[0x1]-_0x6b4fe1[0x1]):_0xd72290[_0x84e02e(0x17e)](_0x2513e5[0x0]-_0x6b4fe1[0x0],_0x2513e5[0x1]-_0x6b4fe1[0x1]);}_0xd72290['closePath'](),_0xd72290[_0x84e02e(0x163)]=_0x84e02e(0x17c),_0xd72290['fill'](),_0xd72290['fillStyle']=_0x4f189f,_0xd72290['fill'](),_0x361a3b[_0x84e02e(0x15b)]?(_0xd72290[_0x84e02e(0x177)]=getColor(_0x361a3b[_0x84e02e(0x176)],_0x361a3b[_0x84e02e(0x165)]),_0xd72290[_0x84e02e(0x173)]=_0x361a3b['outlineWidth']):_0xd72290['strokeStyle']=_0x84e02e(0x172),_0xd72290[_0x84e02e(0x167)](),_0xd72290[_0x84e02e(0x14d)]();}}catch(_0x35f9ea){_0xd72290['restore'](),console[_0x84e02e(0x17b)](_0x35f9ea);}}function _getImagePattern(_0x33eedd,_0x49bfd2,_0x2c4952,_0x25e3ad){var _0x31aa66=a73_0x19fc;if(!_0x25e3ad||_0x25e3ad['width']===0x0){let _0x55654b=new Image();_0x55654b[_0x31aa66(0x157)]=_0x2c4952[_0x31aa66(0x14b)];}var _0x3f5cf2=getSize(_0x49bfd2);const _0xa86400=document['createElement']('canvas'),_0x1969a0=_0xa86400[_0x31aa66(0x180)]('2d');return _0xa86400[_0x31aa66(0x17a)]=Math[_0x31aa66(0x16a)](_0x3f5cf2[0x0]/_0x2c4952['repeatX'],0x1),_0xa86400['height']=Math[_0x31aa66(0x16a)](_0x3f5cf2[0x1]/_0x2c4952['repeatY'],0x1),_0x1969a0&&(_0x1969a0['globalAlpha']=_0x2c4952[_0x31aa66(0x14a)],_0x1969a0[_0x31aa66(0x17f)](_0x25e3ad,0x0,0x0,_0xa86400[_0x31aa66(0x17a)],_0xa86400[_0x31aa66(0x17d)])),_0x33eedd[_0x31aa66(0x156)](_0xa86400,'repeat');}function _getGridPattern(_0x2582a9,_0x1845c6,_0x5e427c){var _0x2ca9f9=a73_0x19fc,_0x1bcea3=getSize(_0x1845c6);const _0x5cf46b=document['createElement'](_0x2ca9f9(0x15a)),_0x3519d6=_0x5cf46b[_0x2ca9f9(0x180)]('2d');return _0x5cf46b[_0x2ca9f9(0x17a)]=Math['max'](_0x1bcea3[0x0]/_0x5e427c[_0x2ca9f9(0x161)],0x1),_0x5cf46b[_0x2ca9f9(0x17d)]=Math[_0x2ca9f9(0x16a)](_0x1bcea3[0x1]/_0x5e427c[_0x2ca9f9(0x161)],0x1),_0x3519d6&&(_0x3519d6[_0x2ca9f9(0x177)]=getColor(_0x5e427c[_0x2ca9f9(0x170)],_0x5e427c[_0x2ca9f9(0x14a)]),_0x3519d6[_0x2ca9f9(0x173)]=_0x5e427c[_0x2ca9f9(0x169)]*0x4,_0x3519d6[_0x2ca9f9(0x175)](),_0x3519d6[_0x2ca9f9(0x184)](0x0,_0x5cf46b['height']),_0x3519d6[_0x2ca9f9(0x17e)](_0x5cf46b[_0x2ca9f9(0x17a)],_0x5cf46b[_0x2ca9f9(0x17d)]),_0x3519d6[_0x2ca9f9(0x184)](_0x5cf46b['width'],0x0),_0x3519d6[_0x2ca9f9(0x17e)](_0x5cf46b[_0x2ca9f9(0x17a)],_0x5cf46b[_0x2ca9f9(0x17d)]),_0x3519d6['stroke']()),_0x2582a9[_0x2ca9f9(0x156)](_0x5cf46b,_0x2ca9f9(0x15c));}function _getStripePattern(_0x421245,_0x4240c7,_0x3be431){var _0x3dc89f=a73_0x19fc,_0x3cf978=getSize(_0x4240c7);const _0x36ea4c=document[_0x3dc89f(0x155)](_0x3dc89f(0x15a)),_0x83b26f=_0x36ea4c[_0x3dc89f(0x180)]('2d');let _0x31ed47=Math['max'](_0x3cf978[0x1]/_0x3be431[_0x3dc89f(0x153)],0x1);return _0x36ea4c[_0x3dc89f(0x17a)]=_0x3cf978[0x0],_0x36ea4c[_0x3dc89f(0x17d)]=_0x31ed47*0x2,_0x83b26f&&(_0x83b26f[_0x3dc89f(0x175)](),_0x83b26f[_0x3dc89f(0x184)](0x0,0x0),_0x83b26f[_0x3dc89f(0x17e)](_0x36ea4c[_0x3dc89f(0x17a)],0x0),_0x83b26f[_0x3dc89f(0x17e)](_0x36ea4c['width'],_0x31ed47),_0x83b26f[_0x3dc89f(0x17e)](0x0,_0x31ed47),_0x83b26f[_0x3dc89f(0x182)](),_0x83b26f[_0x3dc89f(0x163)]=getColor(_0x3be431[_0x3dc89f(0x14e)],_0x3be431[_0x3dc89f(0x14a)]),_0x83b26f['fill'](),_0x83b26f[_0x3dc89f(0x175)](),_0x83b26f[_0x3dc89f(0x184)](0x0,_0x31ed47),_0x83b26f[_0x3dc89f(0x17e)](_0x36ea4c[_0x3dc89f(0x17a)],_0x31ed47),_0x83b26f[_0x3dc89f(0x17e)](_0x36ea4c['width'],_0x31ed47*0x2),_0x83b26f[_0x3dc89f(0x17e)](0x0,_0x31ed47*0x2),_0x83b26f[_0x3dc89f(0x182)](),_0x83b26f['fillStyle']=getColor(_0x3be431[_0x3dc89f(0x170)],_0x3be431[_0x3dc89f(0x14a)]),_0x83b26f[_0x3dc89f(0x178)]()),_0x421245['createPattern'](_0x36ea4c,'repeat');}function _getCheckerBoardPattern(_0x336d7c,_0x127a67,_0x50d288){var _0x576f25=a73_0x19fc,_0x1dfeb3=getSize(_0x127a67);const _0x3c358c=document[_0x576f25(0x155)](_0x576f25(0x15a)),_0x59bd87=_0x3c358c[_0x576f25(0x180)]('2d');let _0x3d94aa=Math['max'](_0x1dfeb3[0x0]/_0x50d288[_0x576f25(0x15f)],0x1),_0x8ed4db=Math[_0x576f25(0x16a)](_0x1dfeb3[0x1]/_0x50d288[_0x576f25(0x15f)],0x1);return _0x3c358c['width']=_0x3d94aa*0x2,_0x3c358c[_0x576f25(0x17d)]=_0x8ed4db*0x2,_0x59bd87&&(_0x59bd87['beginPath'](),_0x59bd87[_0x576f25(0x184)](0x0,0x0),_0x59bd87[_0x576f25(0x17e)](_0x3d94aa,0x0),_0x59bd87[_0x576f25(0x17e)](_0x3d94aa,_0x8ed4db),_0x59bd87[_0x576f25(0x17e)](0x0,_0x8ed4db),_0x59bd87[_0x576f25(0x182)](),_0x59bd87[_0x576f25(0x163)]=getColor(_0x50d288['oddColor'],_0x50d288[_0x576f25(0x14a)]),_0x59bd87[_0x576f25(0x178)](),_0x59bd87[_0x576f25(0x175)](),_0x59bd87[_0x576f25(0x184)](_0x3d94aa,0x0),_0x59bd87[_0x576f25(0x17e)](_0x3c358c[_0x576f25(0x17a)],0x0),_0x59bd87['lineTo'](_0x3c358c['width'],_0x8ed4db),_0x59bd87[_0x576f25(0x17e)](_0x3d94aa,_0x8ed4db),_0x59bd87[_0x576f25(0x182)](),_0x59bd87[_0x576f25(0x163)]=getColor(_0x50d288[_0x576f25(0x170)],_0x50d288['opacity']),_0x59bd87[_0x576f25(0x178)](),_0x59bd87['beginPath'](),_0x59bd87[_0x576f25(0x184)](0x0,_0x8ed4db),_0x59bd87[_0x576f25(0x17e)](_0x3d94aa,_0x8ed4db),_0x59bd87[_0x576f25(0x17e)](_0x3d94aa,_0x3c358c[_0x576f25(0x17d)]),_0x59bd87[_0x576f25(0x17e)](0x0,_0x3c358c[_0x576f25(0x17d)]),_0x59bd87[_0x576f25(0x182)](),_0x59bd87[_0x576f25(0x163)]=getColor(_0x50d288['color'],_0x50d288[_0x576f25(0x14a)]),_0x59bd87[_0x576f25(0x178)](),_0x59bd87['beginPath'](),_0x59bd87[_0x576f25(0x184)](_0x3d94aa,_0x8ed4db),_0x59bd87[_0x576f25(0x17e)](_0x3c358c[_0x576f25(0x17a)],_0x8ed4db),_0x59bd87[_0x576f25(0x17e)](_0x3c358c[_0x576f25(0x17a)],_0x3c358c['height']),_0x59bd87[_0x576f25(0x17e)](_0x3d94aa,_0x3c358c[_0x576f25(0x17d)]),_0x59bd87[_0x576f25(0x182)](),_0x59bd87[_0x576f25(0x163)]=getColor(_0x50d288[_0x576f25(0x15d)],_0x50d288[_0x576f25(0x14a)]),_0x59bd87[_0x576f25(0x178)]()),_0x336d7c['createPattern'](_0x3c358c,'repeat');}
|
|
1
|
+
function a74_0x4cf9(_0x6382d2,_0x437aaf){var _0x1ea6e7=a74_0x1ea6();return a74_0x4cf9=function(_0x4cf945,_0x28b6cd){_0x4cf945=_0x4cf945-0x199;var _0xf5b94b=_0x1ea6e7[_0x4cf945];return _0xf5b94b;},a74_0x4cf9(_0x6382d2,_0x437aaf);}(function(_0x330705,_0x3ae340){var _0x36c00f=a74_0x4cf9,_0x5d0422=_0x330705();while(!![]){try{var _0x19d17d=-parseInt(_0x36c00f(0x19c))/0x1+parseInt(_0x36c00f(0x1c3))/0x2*(parseInt(_0x36c00f(0x1ce))/0x3)+parseInt(_0x36c00f(0x1ad))/0x4+-parseInt(_0x36c00f(0x1b4))/0x5*(-parseInt(_0x36c00f(0x19b))/0x6)+parseInt(_0x36c00f(0x1c1))/0x7+parseInt(_0x36c00f(0x1ca))/0x8*(-parseInt(_0x36c00f(0x1bf))/0x9)+-parseInt(_0x36c00f(0x1b1))/0xa;if(_0x19d17d===_0x3ae340)break;else _0x5d0422['push'](_0x5d0422['shift']());}catch(_0x3fd54f){_0x5d0422['push'](_0x5d0422['shift']());}}}(a74_0x1ea6,0x1e1b3));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(_0x2fc0a3,_0x4da859,_0x118206,_0x13c853){var _0x295427=a74_0x4cf9,_0xf46209;let _0x3a6cb1=(_0xf46209=_0x2fc0a3[_0x295427(0x1a0)])!==null&&_0xf46209!==void 0x0?_0xf46209:0x0,_0x586212=new Style();_0x586212[_0x295427(0x1a7)](_0x3a6cb1),_0x586212[_0x295427(0x1d4)](new Fill({'color':'rgba(0,0,0,0)'}));if(_0x2fc0a3[_0x295427(0x1c6)]!==![]){if(!_0x2fc0a3[_0x295427(0x199)]||_0x2fc0a3[_0x295427(0x199)]==='color')_0x586212[_0x295427(0x1d4)](new Fill({'color':getColor(_0x2fc0a3[_0x295427(0x1a5)],_0x2fc0a3['opacity'])}));else{if(_0x2fc0a3[_0x295427(0x199)]==='image')_0x586212[_0x295427(0x1cd)]((_0x3f990a,_0x4e62c5)=>{preLoadImageRenderFunction(_0x2fc0a3,_0x3f990a,_0x4e62c5,_0x13c853,_rendererFunction);});else _0x2fc0a3[_0x295427(0x199)]===_0x295427(0x1b3)||_0x2fc0a3[_0x295427(0x199)]===_0x295427(0x1c5)||_0x2fc0a3[_0x295427(0x199)]==='checkerboard'?_0x586212[_0x295427(0x1cd)]((_0x5ab58e,_0x3da512)=>{_rendererFunction(_0x2fc0a3,_0x5ab58e,_0x3da512,_0x13c853,null);}):_0x586212['setFill'](new Fill({'color':getColor(_0x2fc0a3[_0x295427(0x1a5)],_0x2fc0a3[_0x295427(0x1c4)])}));}}_0x2fc0a3[_0x295427(0x1a4)]!==![]&&_0x586212['setStroke'](new Stroke({'color':getColor(_0x2fc0a3[_0x295427(0x1b9)],_0x2fc0a3[_0x295427(0x1a2)]),'width':_0x2fc0a3[_0x295427(0x1a3)]}));let _0x2eabc0=[_0x586212];_0x2fc0a3[_0x295427(0x1a6)]&&!_0x2fc0a3['billboard'][_0x295427(0x1d2)]&&(_0x2fc0a3[_0x295427(0x1a6)][_0x295427(0x1d2)]='CENTER');let _0x1a9d0e=getImageOlStyle(_0x2fc0a3[_0x295427(0x1a6)],_0x3a6cb1,_0x118206,_0x13c853);_0x1a9d0e&&_0x2eabc0[_0x295427(0x1b2)](_0x1a9d0e);if(_0x4da859){const _0x43698f=createTextStyle(_0x2fc0a3,_0x4da859,_0x118206,_0x13c853);_0x43698f&&(_0x586212[_0x295427(0x1cb)](_0x43698f),_0x586212[_0x295427(0x1a7)](Number(_0x3a6cb1)+0x1));}return _0x2eabc0;}function _rendererFunction(_0x289def,_0x77ec8f,_0x3842ee,_0x18286e,_0x5f5dc0){var _0x26a380=a74_0x4cf9;try{var _0x44abc3=_0x3842ee[_0x26a380(0x1ab)];for(var _0x2d47cd=0x0,_0xdddc9a=_0x77ec8f['length'];_0x2d47cd<_0xdddc9a;_0x2d47cd++){_0x44abc3[_0x26a380(0x1bc)](),_0x44abc3[_0x26a380(0x1a1)]();var _0x9a374c=_0x77ec8f[_0x2d47cd];let _0x3d37c6=boundingExtent(_0x9a374c);_0x44abc3[_0x26a380(0x1c9)](_0x3d37c6[0x0],_0x3d37c6[0x1]);let _0x2b912a;switch(_0x289def[_0x26a380(0x199)]){case _0x26a380(0x1b6):_0x2b912a=_getImagePattern(_0x44abc3,_0x3d37c6,_0x289def,_0x5f5dc0);break;case _0x26a380(0x1b3):_0x2b912a=_getGridPattern(_0x44abc3,_0x3d37c6,_0x289def);break;case _0x26a380(0x1c5):_0x2b912a=_getStripePattern(_0x44abc3,_0x3d37c6,_0x289def);break;case _0x26a380(0x1c2):_0x2b912a=_getCheckerBoardPattern(_0x44abc3,_0x3d37c6,_0x289def);break;default:_0x2b912a=_0x26a380(0x1aa);break;}for(var _0x33025a=0x0,_0x31ece2=_0x9a374c[_0x26a380(0x1c0)];_0x33025a<_0x31ece2;_0x33025a++){var _0x16f05e=_0x9a374c[_0x33025a];_0x33025a===0x0?_0x44abc3[_0x26a380(0x1a9)](_0x16f05e[0x0]-_0x3d37c6[0x0],_0x16f05e[0x1]-_0x3d37c6[0x1]):_0x44abc3[_0x26a380(0x1b7)](_0x16f05e[0x0]-_0x3d37c6[0x0],_0x16f05e[0x1]-_0x3d37c6[0x1]);}_0x44abc3[_0x26a380(0x1b8)](),_0x44abc3[_0x26a380(0x1ba)]='rgba(0,0,0,0.01)',_0x44abc3[_0x26a380(0x1c6)](),_0x44abc3[_0x26a380(0x1ba)]=_0x2b912a,_0x44abc3[_0x26a380(0x1c6)](),_0x289def[_0x26a380(0x1a4)]?(_0x44abc3[_0x26a380(0x1bb)]=getColor(_0x289def['outlineColor'],_0x289def[_0x26a380(0x1a2)]),_0x44abc3[_0x26a380(0x1d1)]=_0x289def[_0x26a380(0x1a3)]):_0x44abc3[_0x26a380(0x1bb)]=_0x26a380(0x1c7),_0x44abc3['stroke'](),_0x44abc3[_0x26a380(0x1d0)]();}}catch(_0x179c7f){_0x44abc3['restore'](),console[_0x26a380(0x1cf)](_0x179c7f);}}function _getImagePattern(_0x12db20,_0x28cab3,_0x1ca6a7,_0x3b5265){var _0x3fb19d=a74_0x4cf9;if(!_0x3b5265||_0x3b5265[_0x3fb19d(0x1ae)]===0x0){let _0x113e3e=new Image();_0x113e3e[_0x3fb19d(0x19e)]=_0x1ca6a7[_0x3fb19d(0x1b6)];}var _0x4453e7=getSize(_0x28cab3);const _0x5413d2=document['createElement'](_0x3fb19d(0x1c8)),_0x2592d7=_0x5413d2['getContext']('2d');return _0x5413d2[_0x3fb19d(0x1ae)]=Math['max'](_0x4453e7[0x0]/_0x1ca6a7[_0x3fb19d(0x1d5)],0x1),_0x5413d2[_0x3fb19d(0x1bd)]=Math[_0x3fb19d(0x19a)](_0x4453e7[0x1]/_0x1ca6a7[_0x3fb19d(0x1be)],0x1),_0x2592d7&&(_0x2592d7[_0x3fb19d(0x1cc)]=_0x1ca6a7[_0x3fb19d(0x1c4)],_0x2592d7['drawImage'](_0x3b5265,0x0,0x0,_0x5413d2['width'],_0x5413d2[_0x3fb19d(0x1bd)])),_0x12db20[_0x3fb19d(0x19f)](_0x5413d2,_0x3fb19d(0x1ac));}function a74_0x1ea6(){var _0x2a42e4=['moveTo','rgba(0,0,0,0.01)','context','repeat','769728pHXeCa','width','oddColor','createElement','3665640sKcqax','push','grid','525TRRUWt','grid_lineThickness','image','lineTo','closePath','outlineColor','fillStyle','strokeStyle','save','height','repeatY','122589FeMexn','length','995869dkxBjF','checkerboard','353950KuviPA','opacity','stripe','fill','rgba(0,0,0,0.0)','canvas','translate','112aSmzpY','setText','globalAlpha','setRenderer','3CmMWCv','warn','restore','lineWidth','verticalOrigin','getContext','setFill','repeatX','fillType','max','10242YOgTzO','10336ShaPAt','grid_lineCount','src','createPattern','zIndex','beginPath','outlineOpacity','outlineWidth','outline','color','billboard','setZIndex','checkerboard_repeat'];a74_0x1ea6=function(){return _0x2a42e4;};return a74_0x1ea6();}function _getGridPattern(_0x2c12a2,_0x1d8944,_0x2c1967){var _0x3d0aa8=a74_0x4cf9,_0x2822d4=getSize(_0x1d8944);const _0x1344c9=document[_0x3d0aa8(0x1b0)](_0x3d0aa8(0x1c8)),_0x2f1700=_0x1344c9[_0x3d0aa8(0x1d3)]('2d');return _0x1344c9[_0x3d0aa8(0x1ae)]=Math[_0x3d0aa8(0x19a)](_0x2822d4[0x0]/_0x2c1967[_0x3d0aa8(0x19d)],0x1),_0x1344c9['height']=Math[_0x3d0aa8(0x19a)](_0x2822d4[0x1]/_0x2c1967[_0x3d0aa8(0x19d)],0x1),_0x2f1700&&(_0x2f1700[_0x3d0aa8(0x1bb)]=getColor(_0x2c1967[_0x3d0aa8(0x1a5)],_0x2c1967['opacity']),_0x2f1700[_0x3d0aa8(0x1d1)]=_0x2c1967[_0x3d0aa8(0x1b5)]*0x4,_0x2f1700[_0x3d0aa8(0x1a1)](),_0x2f1700[_0x3d0aa8(0x1a9)](0x0,_0x1344c9[_0x3d0aa8(0x1bd)]),_0x2f1700[_0x3d0aa8(0x1b7)](_0x1344c9[_0x3d0aa8(0x1ae)],_0x1344c9[_0x3d0aa8(0x1bd)]),_0x2f1700[_0x3d0aa8(0x1a9)](_0x1344c9['width'],0x0),_0x2f1700[_0x3d0aa8(0x1b7)](_0x1344c9['width'],_0x1344c9[_0x3d0aa8(0x1bd)]),_0x2f1700['stroke']()),_0x2c12a2['createPattern'](_0x1344c9,'repeat');}function _getStripePattern(_0x5a67eb,_0x18e193,_0x1caa61){var _0x52e11b=a74_0x4cf9,_0x1e220f=getSize(_0x18e193);const _0x11c4e2=document[_0x52e11b(0x1b0)]('canvas'),_0x2921e6=_0x11c4e2[_0x52e11b(0x1d3)]('2d');let _0x4cd0f0=Math[_0x52e11b(0x19a)](_0x1e220f[0x1]/_0x1caa61['stripe_repeat'],0x1);return _0x11c4e2[_0x52e11b(0x1ae)]=_0x1e220f[0x0],_0x11c4e2[_0x52e11b(0x1bd)]=_0x4cd0f0*0x2,_0x2921e6&&(_0x2921e6['beginPath'](),_0x2921e6['moveTo'](0x0,0x0),_0x2921e6[_0x52e11b(0x1b7)](_0x11c4e2[_0x52e11b(0x1ae)],0x0),_0x2921e6['lineTo'](_0x11c4e2[_0x52e11b(0x1ae)],_0x4cd0f0),_0x2921e6['lineTo'](0x0,_0x4cd0f0),_0x2921e6[_0x52e11b(0x1b8)](),_0x2921e6[_0x52e11b(0x1ba)]=getColor(_0x1caa61['stripe_oddcolor'],_0x1caa61[_0x52e11b(0x1c4)]),_0x2921e6[_0x52e11b(0x1c6)](),_0x2921e6[_0x52e11b(0x1a1)](),_0x2921e6[_0x52e11b(0x1a9)](0x0,_0x4cd0f0),_0x2921e6['lineTo'](_0x11c4e2['width'],_0x4cd0f0),_0x2921e6[_0x52e11b(0x1b7)](_0x11c4e2[_0x52e11b(0x1ae)],_0x4cd0f0*0x2),_0x2921e6['lineTo'](0x0,_0x4cd0f0*0x2),_0x2921e6[_0x52e11b(0x1b8)](),_0x2921e6[_0x52e11b(0x1ba)]=getColor(_0x1caa61[_0x52e11b(0x1a5)],_0x1caa61[_0x52e11b(0x1c4)]),_0x2921e6['fill']()),_0x5a67eb['createPattern'](_0x11c4e2,_0x52e11b(0x1ac));}function _getCheckerBoardPattern(_0x4f84a2,_0x119115,_0x4b82fd){var _0x23fc9d=a74_0x4cf9,_0x4a0deb=getSize(_0x119115);const _0x53adac=document['createElement'](_0x23fc9d(0x1c8)),_0x39714c=_0x53adac[_0x23fc9d(0x1d3)]('2d');let _0x12c1c0=Math[_0x23fc9d(0x19a)](_0x4a0deb[0x0]/_0x4b82fd[_0x23fc9d(0x1a8)],0x1),_0x281735=Math[_0x23fc9d(0x19a)](_0x4a0deb[0x1]/_0x4b82fd[_0x23fc9d(0x1a8)],0x1);return _0x53adac[_0x23fc9d(0x1ae)]=_0x12c1c0*0x2,_0x53adac[_0x23fc9d(0x1bd)]=_0x281735*0x2,_0x39714c&&(_0x39714c[_0x23fc9d(0x1a1)](),_0x39714c[_0x23fc9d(0x1a9)](0x0,0x0),_0x39714c['lineTo'](_0x12c1c0,0x0),_0x39714c[_0x23fc9d(0x1b7)](_0x12c1c0,_0x281735),_0x39714c[_0x23fc9d(0x1b7)](0x0,_0x281735),_0x39714c[_0x23fc9d(0x1b8)](),_0x39714c[_0x23fc9d(0x1ba)]=getColor(_0x4b82fd[_0x23fc9d(0x1af)],_0x4b82fd[_0x23fc9d(0x1c4)]),_0x39714c[_0x23fc9d(0x1c6)](),_0x39714c['beginPath'](),_0x39714c[_0x23fc9d(0x1a9)](_0x12c1c0,0x0),_0x39714c[_0x23fc9d(0x1b7)](_0x53adac[_0x23fc9d(0x1ae)],0x0),_0x39714c['lineTo'](_0x53adac[_0x23fc9d(0x1ae)],_0x281735),_0x39714c['lineTo'](_0x12c1c0,_0x281735),_0x39714c[_0x23fc9d(0x1b8)](),_0x39714c[_0x23fc9d(0x1ba)]=getColor(_0x4b82fd[_0x23fc9d(0x1a5)],_0x4b82fd['opacity']),_0x39714c['fill'](),_0x39714c[_0x23fc9d(0x1a1)](),_0x39714c[_0x23fc9d(0x1a9)](0x0,_0x281735),_0x39714c[_0x23fc9d(0x1b7)](_0x12c1c0,_0x281735),_0x39714c['lineTo'](_0x12c1c0,_0x53adac[_0x23fc9d(0x1bd)]),_0x39714c[_0x23fc9d(0x1b7)](0x0,_0x53adac['height']),_0x39714c[_0x23fc9d(0x1b8)](),_0x39714c[_0x23fc9d(0x1ba)]=getColor(_0x4b82fd['color'],_0x4b82fd[_0x23fc9d(0x1c4)]),_0x39714c[_0x23fc9d(0x1c6)](),_0x39714c['beginPath'](),_0x39714c['moveTo'](_0x12c1c0,_0x281735),_0x39714c[_0x23fc9d(0x1b7)](_0x53adac[_0x23fc9d(0x1ae)],_0x281735),_0x39714c['lineTo'](_0x53adac[_0x23fc9d(0x1ae)],_0x53adac[_0x23fc9d(0x1bd)]),_0x39714c[_0x23fc9d(0x1b7)](_0x12c1c0,_0x53adac[_0x23fc9d(0x1bd)]),_0x39714c[_0x23fc9d(0x1b8)](),_0x39714c[_0x23fc9d(0x1ba)]=getColor(_0x4b82fd[_0x23fc9d(0x1af)],_0x4b82fd[_0x23fc9d(0x1c4)]),_0x39714c['fill']()),_0x4f84a2['createPattern'](_0x53adac,_0x23fc9d(0x1ac));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a75_0x3633(){const _0x442940=['1001zagqRE','billboard','width','color','outlineColor','lineWidth','beginPath','save','MultiLineString','outlineWidth','36dVClaL','glowPower','dash','zIndex','lineTo','getGeometry','1610825AThhNj','pow','6aRFQcI','114996cQdvmN','cos','204488eTufNf','strokeStyle','butt','3wftqZl','atan2','672820ysLuPK','restore','lineCap','setRenderer','getFlatMidpoints','1UNjtXQ','length','lineType','stroke','outlineOpacity','arrow','shadowBlur','getType','getFlatMidpoint','white','190848DCTniG','context','setGeometry','119osSXQD','1566940SMxAjJ','toString','getCoordinates','push','concat','2545290tgUpSb','sin','moveTo','closed','opacity','glow'];a75_0x3633=function(){return _0x442940;};return a75_0x3633();}(function(_0x270a88,_0x42794c){const _0x88e502=a75_0x38f6,_0x160b45=_0x270a88();while(!![]){try{const _0x5e491e=-parseInt(_0x88e502(0x1b0))/0x1*(-parseInt(_0x88e502(0x1ba))/0x2)+parseInt(_0x88e502(0x1a9))/0x3*(-parseInt(_0x88e502(0x1be))/0x4)+-parseInt(_0x88e502(0x1a1))/0x5*(-parseInt(_0x88e502(0x1a3))/0x6)+parseInt(_0x88e502(0x1bd))/0x7*(parseInt(_0x88e502(0x1a6))/0x8)+-parseInt(_0x88e502(0x1d3))/0x9*(-parseInt(_0x88e502(0x1ab))/0xa)+parseInt(_0x88e502(0x1c3))/0xb+-parseInt(_0x88e502(0x1a4))/0xc*(parseInt(_0x88e502(0x1c9))/0xd);if(_0x5e491e===_0x42794c)break;else _0x160b45['push'](_0x160b45['shift']());}catch(_0x3f5cb9){_0x160b45['push'](_0x160b45['shift']());}}}(a75_0x3633,0x3672a));import{createTextStyle,getColor}from'./common';import{Stroke,Style}from'ol/style';import{getImageOlStyle}from'./PointStyleFormat';function a75_0x38f6(_0x5052c8,_0x1d332d){const _0x363306=a75_0x3633();return a75_0x38f6=function(_0x38f645,_0x3d6f82){_0x38f645=_0x38f645-0x19e;let _0x505c40=_0x363306[_0x38f645];return _0x505c40;},a75_0x38f6(_0x5052c8,_0x1d332d);}import{LineString,Point,MultiLineString,MultiPoint}from'ol/geom';export function getPolylineStyle(_0x10f1ee,_0x21f171,_0x2f73a1,_0x1940e1){const _0x59690d=a75_0x38f6;var _0x4e9e66,_0x24cf32,_0xc75dbc;let _0x343fd6=(_0x4e9e66=_0x10f1ee[_0x59690d(0x19e)])!==null&&_0x4e9e66!==void 0x0?_0x4e9e66:0x0;const _0x40041e=_0x87dca1=>{var _0x7ad57e=_0x87dca1['getGeometry']();if(_0x7ad57e)return _getRealPolyline(_0x7ad57e,_0x10f1ee);return _0x7ad57e;},_0x51f0b5=_0x37f21d=>{const _0x446982=_0x59690d;var _0x1c3020=_0x37f21d[_0x446982(0x1a0)]();let _0x26a807=_0x1c3020;_0x1c3020&&(_0x26a807=_getRealPolyline(_0x1c3020,_0x10f1ee));if(_0x26a807&&_0x26a807[_0x446982(0x1b7)]()==='LineString')return new Point(_0x26a807[_0x446982(0x1b8)]());else{let _0x4509ca=_0x26a807[_0x446982(0x1af)](),_0x1e8c90=0x2,_0x421eb4=[];for(let _0x49823c=0x0,_0x2da412=_0x4509ca['length'];_0x49823c<_0x2da412;_0x49823c+=_0x1e8c90){let _0xb41236=[_0x4509ca[_0x49823c],_0x4509ca[_0x49823c+0x1]];_0x421eb4[_0x446982(0x1c1)](_0xb41236);}return new MultiPoint(_0x421eb4);}};let _0xaa82ae=new Style({'geometry':_0x40041e,'stroke':new Stroke({'color':getColor(_0x10f1ee[_0x59690d(0x1cc)],_0x10f1ee[_0x59690d(0x1c7)]),'width':_0x10f1ee[_0x59690d(0x1cb)]}),'zIndex':_0x343fd6}),_0x7b00f2=[_0xaa82ae];if(_0x10f1ee[_0x59690d(0x1b2)]===_0x59690d(0x1d5)){let _0x1579d8=_0x10f1ee['outlineWidth']/0x2,_0x238f65=new Style({'geometry':_0x40041e,'zIndex':_0x343fd6,'stroke':new Stroke({'color':getColor(_0x10f1ee[_0x59690d(0x1cc)],_0x10f1ee[_0x59690d(0x1c7)]),'width':_0x10f1ee['width'],'lineCap':_0x59690d(0x1a8),'lineDash':[_0x1579d8,_0x1579d8]})}),_0x509ec0=new Style({'geometry':_0x40041e,'zIndex':_0x343fd6+0.5,'stroke':new Stroke({'color':getColor(_0x10f1ee[_0x59690d(0x1cd)],Number((_0xc75dbc=(_0x24cf32=_0x10f1ee[_0x59690d(0x1b4)])!==null&&_0x24cf32!==void 0x0?_0x24cf32:_0x10f1ee[_0x59690d(0x1c7)])!==null&&_0xc75dbc!==void 0x0?_0xc75dbc:0x1)),'width':_0x10f1ee[_0x59690d(0x1cb)],'lineCap':'butt','lineDash':[_0x1579d8,_0x1579d8],'lineDashOffset':_0x1579d8})});_0x7b00f2=[_0x238f65,_0x509ec0];}_0x10f1ee[_0x59690d(0x1b2)]===_0x59690d(0x1b5)&&_0xaa82ae['setRenderer']((_0x327037,_0x4d333e)=>{const _0x44d272=_0x59690d;let _0x1a0317=_0x4d333e[_0x44d272(0x1bb)],_0x25d1fa=parseInt((_0x10f1ee[_0x44d272(0x1cb)]/0x4)[_0x44d272(0x1bf)]()),_0x3a80b2=0xa,_0x576929=Math['sqrt'](Math[_0x44d272(0x1a2)](_0x3a80b2,0x2)+Math[_0x44d272(0x1a2)](_0x10f1ee[_0x44d272(0x1cb)]/0x2,0x2)),_0x6cc152=0x2d,_0x2a4f29=_0x327037[_0x327037['length']-0x2][0x0],_0x56f181=_0x327037[_0x327037[_0x44d272(0x1b1)]-0x2][0x1],_0xb1ccb8=_0x327037[_0x327037[_0x44d272(0x1b1)]-0x1][0x0],_0x3238b7=_0x327037[_0x327037[_0x44d272(0x1b1)]-0x1][0x1],_0x43c3f6=Math[_0x44d272(0x1aa)](_0x56f181-_0x3238b7,_0x2a4f29-_0xb1ccb8)*0xb4/Math['PI'],_0x340679=(_0x43c3f6+_0x6cc152)*Math['PI']/0xb4,_0x51d211=(_0x43c3f6-_0x6cc152)*Math['PI']/0xb4,_0x152019=_0x576929*Math[_0x44d272(0x1a5)](_0x340679),_0x4c20b2=_0x576929*Math[_0x44d272(0x1c4)](_0x340679),_0x55dc51=_0x576929*Math['cos'](_0x51d211),_0x137588=_0x576929*Math[_0x44d272(0x1c4)](_0x51d211);_0x1a0317['save'](),_0x1a0317['beginPath']();let _0x37eb7d,_0x2ce4a8;for(let _0x1cc1d9=0x0;_0x1cc1d9<_0x327037[_0x44d272(0x1b1)];_0x1cc1d9++){_0x1cc1d9===0x0?_0x1a0317[_0x44d272(0x1c5)](_0x327037[_0x1cc1d9][0x0],_0x327037[_0x1cc1d9][0x1]):_0x1a0317[_0x44d272(0x19f)](_0x327037[_0x1cc1d9][0x0],_0x327037[_0x1cc1d9][0x1]);}_0x1a0317['strokeStyle']=getColor(_0x10f1ee['color'],_0x10f1ee[_0x44d272(0x1c7)]),_0x1a0317[_0x44d272(0x1ce)]=_0x25d1fa,_0x1a0317[_0x44d272(0x1ad)]=_0x44d272(0x1a8),_0x1a0317[_0x44d272(0x1b3)](),_0x37eb7d=_0xb1ccb8+_0x152019,_0x2ce4a8=_0x3238b7+_0x4c20b2,_0x1a0317[_0x44d272(0x1c5)](_0x37eb7d,_0x2ce4a8),_0x1a0317[_0x44d272(0x19f)](_0xb1ccb8,_0x3238b7),_0x37eb7d=_0xb1ccb8+_0x55dc51,_0x2ce4a8=_0x3238b7+_0x137588,_0x1a0317['lineTo'](_0x37eb7d,_0x2ce4a8),_0x1a0317[_0x44d272(0x1ad)]=_0x44d272(0x1a8),_0x1a0317[_0x44d272(0x1b3)](),_0x1a0317[_0x44d272(0x1ac)]();});_0x10f1ee[_0x59690d(0x1b2)]===_0x59690d(0x1c8)&&_0xaa82ae['setRenderer']((_0x1ff549,_0x3ce1aa)=>{const _0x318a0e=_0x59690d;let _0x2fe208=_0x3ce1aa[_0x318a0e(0x1bb)];_0x2fe208[_0x318a0e(0x1d0)]();for(let _0x1b3909=0x0;_0x1b3909<0x4;_0x1b3909++){let _0x2eaac9=_0x10f1ee['width']/0xa*(_0x10f1ee[_0x318a0e(0x1d4)]===0x0?0x1:_0x10f1ee[_0x318a0e(0x1d4)]);_0x2fe208['shadowColor']=getColor(_0x10f1ee[_0x318a0e(0x1cc)],_0x10f1ee[_0x318a0e(0x1c7)]),_0x2fe208[_0x318a0e(0x1b6)]=_0x10f1ee[_0x318a0e(0x1cb)]/0x5*0x2,_0x2fe208['beginPath']();for(let _0xfc4276=0x0;_0xfc4276<_0x1ff549[_0x318a0e(0x1b1)];_0xfc4276++){_0xfc4276===0x0?_0x2fe208['moveTo'](_0x1ff549[_0xfc4276][0x0],_0x1ff549[_0xfc4276][0x1]):_0x2fe208[_0x318a0e(0x19f)](_0x1ff549[_0xfc4276][0x0],_0x1ff549[_0xfc4276][0x1]);}_0x2fe208[_0x318a0e(0x1ad)]=_0x318a0e(0x1a8),_0x2fe208[_0x318a0e(0x1ce)]=_0x2eaac9,_0x2fe208[_0x318a0e(0x1a7)]=getColor(_0x318a0e(0x1b9),_0x10f1ee[_0x318a0e(0x1c7)]),_0x2fe208[_0x318a0e(0x1b3)]();}_0x2fe208[_0x318a0e(0x1ac)]();});_0x10f1ee[_0x59690d(0x1b2)]==='outline'&&_0xaa82ae[_0x59690d(0x1ae)]((_0x1bbe58,_0xe52d9e)=>{const _0x2f1edf=_0x59690d;let _0x21ede6=_0xe52d9e[_0x2f1edf(0x1bb)];_0x21ede6['save'](),_0x21ede6[_0x2f1edf(0x1cf)]();for(let _0x4790e1=0x0;_0x4790e1<_0x1bbe58[_0x2f1edf(0x1b1)];_0x4790e1++){_0x4790e1===0x0?_0x21ede6[_0x2f1edf(0x1c5)](_0x1bbe58[_0x4790e1][0x0],_0x1bbe58[_0x4790e1][0x1]):_0x21ede6[_0x2f1edf(0x19f)](_0x1bbe58[_0x4790e1][0x0],_0x1bbe58[_0x4790e1][0x1]);}_0x21ede6[_0x2f1edf(0x1ad)]=_0x2f1edf(0x1a8),_0x21ede6[_0x2f1edf(0x1ce)]=_0x10f1ee[_0x2f1edf(0x1cb)],_0x21ede6['strokeStyle']=getColor(_0x10f1ee[_0x2f1edf(0x1cd)],_0x10f1ee[_0x2f1edf(0x1c7)]),_0x21ede6['stroke'](),_0x21ede6['beginPath']();for(let _0x339a94=0x0;_0x339a94<_0x1bbe58[_0x2f1edf(0x1b1)];_0x339a94++){_0x339a94===0x0?_0x21ede6['moveTo'](_0x1bbe58[_0x339a94][0x0],_0x1bbe58[_0x339a94][0x1]):_0x21ede6[_0x2f1edf(0x19f)](_0x1bbe58[_0x339a94][0x0],_0x1bbe58[_0x339a94][0x1]);}_0x21ede6[_0x2f1edf(0x1ad)]=_0x2f1edf(0x1a8),_0x10f1ee[_0x2f1edf(0x1d2)]>=_0x10f1ee[_0x2f1edf(0x1cb)]&&(_0x10f1ee['outlineWidth']=_0x10f1ee[_0x2f1edf(0x1cb)]-0x1),_0x21ede6['lineWidth']=_0x10f1ee['width']-_0x10f1ee[_0x2f1edf(0x1d2)],_0x21ede6[_0x2f1edf(0x1a7)]=getColor(_0x10f1ee[_0x2f1edf(0x1cc)],_0x10f1ee[_0x2f1edf(0x1c7)]),_0x21ede6['stroke'](),_0x21ede6[_0x2f1edf(0x1ac)]();});let _0x4a220d=getImageOlStyle(_0x10f1ee[_0x59690d(0x1ca)],_0x343fd6,_0x2f73a1,_0x1940e1);_0x4a220d&&(_0x4a220d[_0x59690d(0x1bc)](_0x51f0b5),_0x7b00f2[_0x59690d(0x1c1)](_0x4a220d));if(_0x10f1ee['label']&&_0x10f1ee['label']['show']!==![]){let _0x3860da=new Style({'geometry':_0x51f0b5,'text':createTextStyle(_0x10f1ee['label'],_0x21f171,_0x2f73a1,_0x1940e1),'zIndex':Number(_0x343fd6)+0x1});_0x7b00f2[_0x59690d(0x1c1)](_0x3860da);}return _0x7b00f2;}function _getRealPolyline(_0x43f413,_0x54b486){const _0x293f0a=a75_0x38f6;if(!(_0x54b486===null||_0x54b486===void 0x0?void 0x0:_0x54b486[_0x293f0a(0x1c6)]))return _0x43f413;else{if(_0x43f413[_0x293f0a(0x1b7)]()===_0x293f0a(0x1d1)){let _0x59fc85=_0x43f413[_0x293f0a(0x1c0)]();for(let _0x1fd7ec in _0x59fc85){let _0x35502b=_0x59fc85[_0x1fd7ec];_0x59fc85[_0x1fd7ec]=_0x35502b[_0x293f0a(0x1c2)]([_0x35502b[0x0]]);}return new MultiLineString(_0x59fc85);}else return new LineString(_0x43f413[_0x293f0a(0x1c0)]()[_0x293f0a(0x1c2)]([_0x43f413['getFirstCoordinate']()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a76_0x286b(_0x5a46da,_0x210217){const _0x12095d=a76_0x1209();return a76_0x286b=function(_0x286b28,_0x1b9cc1){_0x286b28=_0x286b28-0x1f4;let _0x25554a=_0x12095d[_0x286b28];return _0x25554a;},a76_0x286b(_0x5a46da,_0x210217);}(function(_0x1d2f7f,_0x2afa01){const _0x4a810e=a76_0x286b,_0x48917d=_0x1d2f7f();while(!![]){try{const _0x4afcad=parseInt(_0x4a810e(0x214))/0x1*(-parseInt(_0x4a810e(0x1f9))/0x2)+parseInt(_0x4a810e(0x209))/0x3*(-parseInt(_0x4a810e(0x211))/0x4)+parseInt(_0x4a810e(0x206))/0x5*(-parseInt(_0x4a810e(0x1f5))/0x6)+-parseInt(_0x4a810e(0x207))/0x7*(-parseInt(_0x4a810e(0x1f8))/0x8)+-parseInt(_0x4a810e(0x216))/0x9+parseInt(_0x4a810e(0x1fb))/0xa*(parseInt(_0x4a810e(0x20b))/0xb)+parseInt(_0x4a810e(0x213))/0xc;if(_0x4afcad===_0x2afa01)break;else _0x48917d['push'](_0x48917d['shift']());}catch(_0x910ad0){_0x48917d['push'](_0x48917d['shift']());}}}(a76_0x1209,0x64bca));import a76_0x2f96e7 from'ol/style/Circle';import a76_0x5080b2 from'ol/style/Fill';import a76_0x3e8e3f from'ol/style/Stroke';import a76_0x54f41b from'ol/style/Style';import{createTextStyle,getColor}from'./common';import{Icon}from'ol/style';export function getSelectPointStyle(){const _0x2ef468=a76_0x286b;return new a76_0x54f41b({'image':new a76_0x2f96e7({'radius':0x5,'fill':new a76_0x5080b2({'color':_0x2ef468(0x201)}),'stroke':new a76_0x3e8e3f({'color':_0x2ef468(0x201),'width':0x1})})});}export function getSelectCancePointStyle(){const _0x5d1bf1=a76_0x286b;return new a76_0x54f41b({'image':new a76_0x2f96e7({'radius':0x5,'fill':new a76_0x5080b2({'color':'rgba(121,\x20243,\x20238,\x200)'}),'stroke':new a76_0x3e8e3f({'color':_0x5d1bf1(0x201),'width':0x1})})});}export function getSelectLineStyle(){const _0x172bf8=a76_0x286b;return new a76_0x54f41b({'stroke':new a76_0x3e8e3f({'color':_0x172bf8(0x201),'width':0x2})});}export function getSelectCancelLineStyle(){const _0x210aaa=a76_0x286b;return new a76_0x54f41b({'stroke':new a76_0x3e8e3f({'color':_0x210aaa(0x1fc),'width':0x2})});}export function getSelectPolygonStyle(){const _0x3e48db=a76_0x286b;return new a76_0x54f41b({'stroke':new a76_0x3e8e3f({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x2}),'fill':new a76_0x5080b2({'color':_0x3e48db(0x205)})});}export function getSelectCancelPolygonStyle(){const _0x417eb5=a76_0x286b;return new a76_0x54f41b({'stroke':new a76_0x3e8e3f({'color':_0x417eb5(0x1fc),'width':0x2}),'fill':new a76_0x5080b2({'color':_0x417eb5(0x1f4)})});}function a76_0x1209(){const _0x5dd53a=['14453340IjCqEE','1065AnZdtX','Polygon','1962918iBNGHk','rotation','rgba(0,\x20255,0,\x200)','732qNHbNz','setZIndex','imgurl','25136xtwcFn','1328IfjiGa','color','8044970ukuOLW','rgba(0,\x20255,0,\x201)','outlineColor','outlineWidth','pointType','circle','rgba(121,\x20243,\x20238,\x201)','setText','MultiPoint','Point','rgba(121,\x20243,\x20238,\x200.3)','17770gSqsEr','1022iGpSzR','icon','42fTsICB','LineString','11dYNZkP','opacity','setStroke','text','outlineOpacity','anchor','198916cBuefk','scale'];a76_0x1209=function(){return _0x5dd53a;};return a76_0x1209();}export function getStyle(_0x2e2227){const _0x32ccf5=a76_0x286b;if(_0x2e2227){const _0x2ae9ef=new a76_0x54f41b();if(_0x2e2227[_0x32ccf5(0x20e)]){const _0x27d498=createTextStyle(_0x2e2227,_0x2e2227['text']);_0x27d498&&_0x2ae9ef[_0x32ccf5(0x202)](_0x27d498),_0x2ae9ef[_0x32ccf5(0x1f6)](0x1);}return _0x2e2227[_0x32ccf5(0x1fd)]&&_0x2ae9ef[_0x32ccf5(0x20d)](new a76_0x3e8e3f({'color':getColor(_0x2e2227[_0x32ccf5(0x1fd)],_0x2e2227[_0x32ccf5(0x20f)]),'width':_0x2e2227[_0x32ccf5(0x1fe)]||0x1})),_0x2e2227[_0x32ccf5(0x1fa)]&&_0x2ae9ef['setFill'](new a76_0x5080b2({'color':getColor(_0x2e2227[_0x32ccf5(0x1fa)],_0x2e2227[_0x32ccf5(0x20c)])})),_0x2e2227[_0x32ccf5(0x1ff)]==_0x32ccf5(0x200)&&_0x2ae9ef['setImage'](new a76_0x2f96e7({'radius':_0x2e2227['radius']||0x5,'fill':new a76_0x5080b2({'color':getColor(_0x2e2227[_0x32ccf5(0x1fa)],_0x2e2227[_0x32ccf5(0x20c)])})})),(_0x2e2227['pointType']==_0x32ccf5(0x208)||_0x2e2227[_0x32ccf5(0x1f7)])&&_0x2ae9ef['setImage'](new Icon({'src':_0x2e2227[_0x32ccf5(0x1f7)],'anchor':_0x2e2227[_0x32ccf5(0x210)]||[0.5,0.5],'scale':_0x2e2227[_0x32ccf5(0x212)]||0x1,'rotation':_0x2e2227[_0x32ccf5(0x217)]||0x0})),_0x2ae9ef;}return new a76_0x54f41b({'stroke':new a76_0x3e8e3f({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x2}),'fill':new a76_0x5080b2({'color':_0x32ccf5(0x205)})});}export function getSelectStyle(_0x58b565){const _0xea2105=a76_0x286b;let _0x270364=getSelectPolygonStyle();switch(_0x58b565){case'MultiPolygon':case _0xea2105(0x215):_0x270364=getSelectPolygonStyle();break;case'MultiLineString':case _0xea2105(0x20a):_0x270364=getSelectLineStyle();break;case _0xea2105(0x203):case _0xea2105(0x204):_0x270364=getSelectPointStyle();break;default:break;}return _0x270364;}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d5c09,_0x317643){const _0x5c2a2f=a72_0xbbac,_0x229566=_0x4d5c09();while(!![]){try{const _0x51f7e3=parseInt(_0x5c2a2f(0x139))/0x1+-parseInt(_0x5c2a2f(0x129))/0x2*(parseInt(_0x5c2a2f(0x120))/0x3)+parseInt(_0x5c2a2f(0x122))/0x4+-parseInt(_0x5c2a2f(0x13d))/0x5+parseInt(_0x5c2a2f(0x130))/0x6+parseInt(_0x5c2a2f(0x12e))/0x7*(parseInt(_0x5c2a2f(0x138))/0x8)+parseInt(_0x5c2a2f(0x114))/0x9*(-parseInt(_0x5c2a2f(0x11f))/0xa);if(_0x51f7e3===_0x317643)break;else _0x229566['push'](_0x229566['shift']());}catch(_0x6e7a17){_0x229566['push'](_0x229566['shift']());}}}(a72_0x574e,0xbe43e));import a72_0x3fc712 from'color';import{Fill,Icon,Stroke,Text}from'ol/style';function a72_0x574e(){const _0xdfdb2a=['weight','normal','borderLineOpacity','getImageState','family','markerColor','alpha','getResolutionForZoom','10BfQakO','3gBCgHQ','haloColor','3745848wbscJS','center','bold','textAlign','target','borderLineColor','load','1009418zLAOOr','IDLE','backgroundColor','hexa','ERROR','491596RVEjlS','color','4536966ICBGoV','offsetY','font','italic','size','haloWidth','#000000','\x20normal\x20','120LrwJnI','237907WjPIsD','distanceDisplayNear','middle','#2A2A2A','6844360JVMqux','px\x20','backgroundOpacity','getImage','distanceDisplayFar','2979387DKwRRD','pow','getView'];a72_0x574e=function(){return _0xdfdb2a;};return a72_0x574e();}import a72_0x5c1b15 from'../utils/plug/canvas/PinIcon';function a72_0xbbac(_0x80035c,_0x5f433d){const _0x574ed4=a72_0x574e();return a72_0xbbac=function(_0xbbac74,_0x4b146b){_0xbbac74=_0xbbac74-0x112;let _0x5c0732=_0x574ed4[_0xbbac74];return _0x5c0732;},a72_0xbbac(_0x80035c,_0x5f433d);}import a72_0x2b9d80 from'ol/ImageState';export function isShowStyle(_0x46cc57,_0xa0a62e,_0x2d9e3a){const _0x594851=a72_0xbbac;let _0x574733=!![];if(_0xa0a62e==undefined||_0x2d9e3a==undefined)return _0x574733;if(_0x46cc57&&typeof _0x46cc57[_0x594851(0x113)]!=undefined&&typeof _0x46cc57['distanceDisplayNear']!=undefined){if(_0x46cc57[_0x594851(0x113)]&&_0x2d9e3a){_0x574733=![];let _0x488977=getLevel(_0x46cc57[_0x594851(0x113)]),_0x552cb3=_0x2d9e3a['getView']()['getResolutionForZoom'](_0x488977);_0xa0a62e<_0x552cb3&&(_0x574733=!![]);}if(_0x574733&&_0x46cc57['distanceDisplayNear']&&_0x2d9e3a){_0x574733=![];let _0x2ebcde=getLevel(_0x46cc57[_0x594851(0x13a)]),_0x1b89c6=_0x2d9e3a[_0x594851(0x116)]()[_0x594851(0x11e)](_0x2ebcde);_0xa0a62e>_0x1b89c6&&(_0x574733=!![]);}}return _0x574733;}export function getLevel(_0x101bbe){const _0x38f9ec=a72_0xbbac,_0x2c8593=3252.745,_0x518c2b=0.0009198301,_0x5e5dc8=52977.61,_0x1b73b8=-3228.107;return _0x1b73b8+(_0x2c8593-_0x1b73b8)/(0x1+Math[_0x38f9ec(0x115)](_0x101bbe/_0x5e5dc8,_0x518c2b));}export function toRadians(_0x596cec){if(_0x596cec)return-(_0x596cec*Math['PI'])/0xb4;return 0x0;}export function createTextStyle(_0x1d38ca,_0x228f5a,_0x558fbe,_0x255b31){const _0x442616=a72_0xbbac;var _0x5d75ab,_0x2a1ac2,_0x3a1eb4,_0x1e9686,_0x42ba86,_0x13ade5,_0x56bf67,_0x2aa8f0;if(_0x1d38ca){let _0x2f6b38=isShowStyle(_0x1d38ca,_0x558fbe,_0x255b31);if(_0x2f6b38===![])return undefined;else{const _0x27f65=_0x1d38ca[_0x442616(0x132)],_0x4938f2=(_0x27f65===null||_0x27f65===void 0x0?void 0x0:_0x27f65[_0x442616(0x133)])?_0x442616(0x133):_0x442616(0x118),_0x3acca8=(_0x27f65===null||_0x27f65===void 0x0?void 0x0:_0x27f65[_0x442616(0x117)])?_0x442616(0x124):_0x442616(0x118),_0x55c7fa=(_0x27f65===null||_0x27f65===void 0x0?void 0x0:_0x27f65[_0x442616(0x134)])||'25',_0x535578=(_0x27f65===null||_0x27f65===void 0x0?void 0x0:_0x27f65[_0x442616(0x11b)])||'楷体';let _0xe9f90d=_0x4938f2+_0x442616(0x137)+_0x3acca8+'\x20'+_0x55c7fa+_0x442616(0x13e)+_0x535578,_0x349be1=(_0x27f65===null||_0x27f65===void 0x0?void 0x0:_0x27f65['offsetX'])||0x0,_0x5c1ac6=(_0x27f65===null||_0x27f65===void 0x0?void 0x0:_0x27f65[_0x442616(0x131)])||0x0,_0xf951d=(_0x27f65===null||_0x27f65===void 0x0?void 0x0:_0x27f65['textBaseline'])||_0x442616(0x13b),_0x206766=(_0x27f65===null||_0x27f65===void 0x0?void 0x0:_0x27f65[_0x442616(0x125)])||_0x442616(0x123);const _0x58b93d=_0x1d38ca['opacity']||0x1;let _0x2a2580=undefined;return(_0x27f65===null||_0x27f65===void 0x0?void 0x0:_0x27f65['haloColor'])&&(_0x2a2580=_getStroke(_0x27f65[_0x442616(0x121)],_0x27f65['haloOpacity'],_0x27f65[_0x442616(0x135)])),new Text({'overflow':!![],'text':_0x228f5a,'font':_0xe9f90d,'offsetX':_0x349be1,'offsetY':_0x5c1ac6,'textAlign':_0x206766,'textBaseline':_0xf951d,'fill':new Fill({'color':getColor(((_0x5d75ab=_0x1d38ca['font'])===null||_0x5d75ab===void 0x0?void 0x0:_0x5d75ab[_0x442616(0x12f)])||_0x442616(0x136),_0x58b93d)}),'stroke':_0x2a2580,'backgroundFill':((_0x2a1ac2=_0x1d38ca['font'])===null||_0x2a1ac2===void 0x0?void 0x0:_0x2a1ac2[_0x442616(0x12b)])?new Fill({'color':getColor(((_0x3a1eb4=_0x1d38ca[_0x442616(0x132)])===null||_0x3a1eb4===void 0x0?void 0x0:_0x3a1eb4[_0x442616(0x12b)])||_0x442616(0x13c),((_0x1e9686=_0x1d38ca[_0x442616(0x132)])===null||_0x1e9686===void 0x0?void 0x0:_0x1e9686[_0x442616(0x13f)])||0x1)}):undefined,'backgroundStroke':((_0x42ba86=_0x1d38ca[_0x442616(0x132)])===null||_0x42ba86===void 0x0?void 0x0:_0x42ba86[_0x442616(0x127)])?_getStroke((_0x13ade5=_0x1d38ca[_0x442616(0x132)])===null||_0x13ade5===void 0x0?void 0x0:_0x13ade5['borderLineColor'],((_0x56bf67=_0x1d38ca[_0x442616(0x132)])===null||_0x56bf67===void 0x0?void 0x0:_0x56bf67[_0x442616(0x119)])||0x1,((_0x2aa8f0=_0x1d38ca['font'])===null||_0x2aa8f0===void 0x0?void 0x0:_0x2aa8f0['borderLineWidth'])||0x1):undefined});}}else return undefined;}export function getColor(_0xca4c76,_0x55100c){const _0xdd1af0=a72_0xbbac;return a72_0x3fc712(_0xca4c76)[_0xdd1af0(0x11d)](_0x55100c!=undefined?_0x55100c:0x1)[_0xdd1af0(0x12c)]();}function _getStroke(_0x192143,_0x422572,_0x5090d7){return new Stroke({'color':getColor(_0x192143,_0x422572),'width':_0x5090d7==undefined?0x1:_0x5090d7});}export function preLoadImageRenderFunction(_0x3a5b6e,_0x3c26be,_0x1667bc,_0x39b560,_0x5c3637){const _0x164b3f=a72_0xbbac;let _0x463ed7;_0x3a5b6e[_0x164b3f(0x11c)]?_0x463ed7=new a72_0x5c1b15(_0x3a5b6e):_0x463ed7=new Icon({'src':_0x3a5b6e['image']});let _0x13bade=_0x463ed7[_0x164b3f(0x11a)]();_0x13bade===a72_0x2b9d80['LOADED']||_0x13bade===a72_0x2b9d80['ERROR']?_0x5c3637(_0x3a5b6e,_0x3c26be,_0x1667bc,_0x39b560,_0x463ed7[_0x164b3f(0x112)](0x60)):(_0x13bade===a72_0x2b9d80[_0x164b3f(0x12a)]&&_0x463ed7[_0x164b3f(0x128)](),_0x463ed7['listenImageChange'](_0x2bce70=>{const _0x1369ff=_0x164b3f;_0x13bade=_0x2bce70[_0x1369ff(0x126)][_0x1369ff(0x11a)](),(_0x13bade===a72_0x2b9d80['LOADED']||_0x13bade===a72_0x2b9d80[_0x1369ff(0x12d)])&&_0x5c3637(_0x3a5b6e,_0x3c26be,_0x1667bc,_0x39b560,_0x463ed7[_0x1369ff(0x112)](0x60));}));}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x282442,_0x1f4b6d){const _0x2ebd24=a77_0x179a,_0x2b499c=_0x282442();while(!![]){try{const _0x21d260=-parseInt(_0x2ebd24(0xcb))/0x1*(parseInt(_0x2ebd24(0xd5))/0x2)+parseInt(_0x2ebd24(0xd4))/0x3*(parseInt(_0x2ebd24(0xcd))/0x4)+-parseInt(_0x2ebd24(0xcc))/0x5*(-parseInt(_0x2ebd24(0xcf))/0x6)+parseInt(_0x2ebd24(0xc8))/0x7+parseInt(_0x2ebd24(0xd0))/0x8*(-parseInt(_0x2ebd24(0xc6))/0x9)+-parseInt(_0x2ebd24(0xc9))/0xa+-parseInt(_0x2ebd24(0xca))/0xb*(-parseInt(_0x2ebd24(0xc7))/0xc);if(_0x21d260===_0x1f4b6d)break;else _0x2b499c['push'](_0x2b499c['shift']());}catch(_0x24e572){_0x2b499c['push'](_0x2b499c['shift']());}}}(a77_0x1b97,0xe0237));function a77_0x1b97(){const _0x80450a=['every','153hhVFsz','1203132inPQqB','12372675zKLDWZ','16937870CMKKpo','22xCpkOW','7QxugqB','875RBMrTt','62404Hcoibk','object','56058cjkYDe','177224RUaemo','isArray','length','keys','156YYNIYv','407390uSKAIu'];a77_0x1b97=function(){return _0x80450a;};return a77_0x1b97();}export function getDeepth(_0x160bb4){function _0x491ca5(_0x602421,_0x212928){return _0x602421['reduce'](function(_0x24186b,_0x3c1b1d){const _0x17b853=a77_0x179a;var _0x3dedc5;return Array[_0x17b853(0xd1)](_0x3c1b1d)&&(_0x3dedc5=_0x491ca5(_0x3c1b1d,_0x212928+0x1)),_0x3dedc5>_0x24186b?_0x3dedc5:_0x24186b;},_0x212928);}return _0x491ca5(_0x160bb4,0x1);}export function compareArray(_0x53ca52,_0x573673){const _0x38e315=a77_0x179a;if(_0x53ca52[_0x38e315(0xd2)]!==_0x573673[_0x38e315(0xd2)])return![];const _0x26eba5=_0x53ca52[_0x38e315(0xd2)];for(let _0x46d422=0x0;_0x46d422<_0x26eba5;_0x46d422++){if(!compare(_0x53ca52[_0x46d422],_0x573673[_0x46d422]))return![];}return!![];}function a77_0x179a(_0x3015d6,_0xe7a21a){const _0x1b9735=a77_0x1b97();return a77_0x179a=function(_0x179a1f,_0x15f320){_0x179a1f=_0x179a1f-0xc6;let _0x2da1b5=_0x1b9735[_0x179a1f];return _0x2da1b5;},a77_0x179a(_0x3015d6,_0xe7a21a);}export function compare(_0x3292e9,_0x2abd6c){const _0x44e942=a77_0x179a;if(_0x3292e9===_0x2abd6c)return!![];if(typeof _0x3292e9!==typeof _0x2abd6c||_0x3292e9===null||_0x2abd6c===null)return![];if(Array['isArray'](_0x3292e9)){if(!Array[_0x44e942(0xd1)](_0x2abd6c))return![];return compareArray(_0x3292e9,_0x2abd6c);}if(typeof _0x3292e9===_0x44e942(0xce))return compareObject(_0x3292e9,_0x2abd6c);return![];}export function compareObject(_0xb9529b,_0x29e7e2){const _0x543c0e=a77_0x179a,_0x33d23c=Object[_0x543c0e(0xd3)](_0xb9529b),_0x49a126=Object[_0x543c0e(0xd3)](_0x29e7e2);if(_0x33d23c['length']!==_0x49a126[_0x543c0e(0xd2)])return![];return _0x33d23c[_0x543c0e(0xd6)](_0x23d0ed=>{if(!compare(_0xb9529b[_0x23d0ed],_0x29e7e2[_0x23d0ed]))return![];return!![];});}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78_0x20eb89=a78_0x3f8b;(function(_0x3313a5,_0x264b9d){const _0x3c2125=a78_0x3f8b,_0x1c74c4=_0x3313a5();while(!![]){try{const _0x55f1c5=parseInt(_0x3c2125(0x1ad))/0x1*(parseInt(_0x3c2125(0x1b7))/0x2)+-parseInt(_0x3c2125(0x1b3))/0x3+parseInt(_0x3c2125(0x1af))/0x4+-parseInt(_0x3c2125(0x1bb))/0x5*(parseInt(_0x3c2125(0x1bd))/0x6)+parseInt(_0x3c2125(0x1bf))/0x7*(parseInt(_0x3c2125(0x1be))/0x8)+-parseInt(_0x3c2125(0x1b8))/0x9*(-parseInt(_0x3c2125(0x1b6))/0xa)+-parseInt(_0x3c2125(0x1b2))/0xb;if(_0x55f1c5===_0x264b9d)break;else _0x1c74c4['push'](_0x1c74c4['shift']());}catch(_0x16d627){_0x1c74c4['push'](_0x1c74c4['shift']());}}}(a78_0x4dac,0x6ef02));import a78_0x479773 from'axios';import a78_0x379d8c from'jquery';const request=a78_0x479773[a78_0x20eb89(0x1ae)]({'timeout':0xb4*0x3e8});function a78_0x3f8b(_0x11f02e,_0x4371b3){const _0x4dac9b=a78_0x4dac();return a78_0x3f8b=function(_0x3f8b7c,_0x1be596){_0x3f8b7c=_0x3f8b7c-0x1ad;let _0x3da2b6=_0x4dac9b[_0x3f8b7c];return _0x3da2b6;},a78_0x3f8b(_0x11f02e,_0x4371b3);}function a78_0x4dac(){const _0x12e5b9=['4WRiCEV','1656aiHkxm','forEach','ajax','285JSGIcD','jsonp','77928jUjyVN','305896COmuwg','63vpFnVH','get','251941mcJPpK','create','1897972cYpacY','hasOwnProperty','append','5168713OWpMZy','1404177mIFNzL','stringify','constructor','44030LQKmJo'];a78_0x4dac=function(){return _0x12e5b9;};return a78_0x4dac();}export function jsonp(_0x2c842a){return new Promise((_0x3b101c,_0x254907)=>{const _0x2f7956=a78_0x3f8b;a78_0x379d8c[_0x2f7956(0x1ba)]({'url':_0x2c842a,'type':_0x2f7956(0x1c0),'dataType':_0x2f7956(0x1bc),'success':_0x37ab6c=>{_0x3b101c(_0x37ab6c);},'error':_0x5d06a9=>{_0x254907(_0x5d06a9);}});});}export function stringify(_0x540b30){const _0x2eaeee=a78_0x20eb89,_0x5776d3=new FormData();for(const _0x21a4d8 in _0x540b30){if(_0x540b30[_0x2eaeee(0x1b0)](_0x21a4d8)){if(_0x540b30[_0x21a4d8]){if(_0x540b30[_0x21a4d8][_0x2eaeee(0x1b5)]===Array)_0x540b30[_0x21a4d8][0x0]?_0x540b30[_0x21a4d8][0x0][_0x2eaeee(0x1b5)]===Object?_0x5776d3['append'](_0x21a4d8,JSON[_0x2eaeee(0x1b4)](_0x540b30[_0x21a4d8])):_0x540b30[_0x21a4d8][_0x2eaeee(0x1b9)]((_0x8632c5,_0x55777c)=>{const _0x2113ca=_0x2eaeee;_0x5776d3[_0x2113ca(0x1b1)](_0x21a4d8+('['+_0x55777c+']'),_0x8632c5);}):_0x5776d3[_0x2eaeee(0x1b1)](_0x21a4d8+'[]','');else _0x540b30[_0x21a4d8]['constructor']===Object?_0x5776d3[_0x2eaeee(0x1b1)](_0x21a4d8,JSON[_0x2eaeee(0x1b4)](_0x540b30[_0x21a4d8])):_0x5776d3[_0x2eaeee(0x1b1)](_0x21a4d8,_0x540b30[_0x21a4d8]);}else _0x540b30[_0x21a4d8]===0x0?_0x5776d3['append'](_0x21a4d8,'0'):_0x5776d3[_0x2eaeee(0x1b1)](_0x21a4d8,'');}}return _0x5776d3;}export default request;
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a79_0x4d6c(_0x51d7e8,_0x40e2aa){const _0x272e4c=a79_0x272e();return a79_0x4d6c=function(_0x4d6cb3,_0x4edaf0){_0x4d6cb3=_0x4d6cb3-0x1c7;let _0x40158f=_0x272e4c[_0x4d6cb3];return _0x40158f;},a79_0x4d6c(_0x51d7e8,_0x40e2aa);}(function(_0x20cb01,_0x6de436){const _0x20d21a=a79_0x4d6c,_0x10063c=_0x20cb01();while(!![]){try{const _0x4db31f=parseInt(_0x20d21a(0x1d0))/0x1*(-parseInt(_0x20d21a(0x1cc))/0x2)+-parseInt(_0x20d21a(0x1c8))/0x3*(parseInt(_0x20d21a(0x1ce))/0x4)+parseInt(_0x20d21a(0x1d3))/0x5*(parseInt(_0x20d21a(0x1c9))/0x6)+-parseInt(_0x20d21a(0x1ca))/0x7+-parseInt(_0x20d21a(0x1c7))/0x8+parseInt(_0x20d21a(0x1d2))/0x9+-parseInt(_0x20d21a(0x1cf))/0xa*(-parseInt(_0x20d21a(0x1d4))/0xb);if(_0x4db31f===_0x6de436)break;else _0x10063c['push'](_0x10063c['shift']());}catch(_0x436cb3){_0x10063c['push'](_0x10063c['shift']());}}}(a79_0x272e,0xcb423));export function getEsriSpatialReference(_0x1912cb){const _0x2dbe5a=a79_0x4d6c;let _0x50a9e;if(_0x1912cb){let _0x3d6f16=_0x1912cb[_0x2dbe5a(0x1cb)]();_0x3d6f16[_0x2dbe5a(0x1d5)](_0x2dbe5a(0x1d1))===0x0?_0x50a9e=_0x1912cb[_0x2dbe5a(0x1cd)](_0x2dbe5a(0x1d1),''):_0x50a9e=_0x1912cb;}return _0x50a9e;}function a79_0x272e(){const _0x48b286=['toUpperCase','810sWCqQf','replace','4QYIumB','4259870NRqelw','1425ZnrxdX','EPSG:','9765504PFlwhX','6795190murEau','22AvEUNY','indexOf','10639696nrJCJK','1584165enNirx','6EXKzcn','198653pcooMA'];a79_0x272e=function(){return _0x48b286;};return a79_0x272e();}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a81_0xe3cc3f=a81_0x4130;(function(_0x4d9b2d,_0x14ee5a){const _0x13d62b=a81_0x4130,_0x336604=_0x4d9b2d();while(!![]){try{const _0x1a83a2=-parseInt(_0x13d62b(0xad))/0x1*(-parseInt(_0x13d62b(0xae))/0x2)+parseInt(_0x13d62b(0xa1))/0x3+-parseInt(_0x13d62b(0xa0))/0x4+parseInt(_0x13d62b(0xbf))/0x5+parseInt(_0x13d62b(0x9e))/0x6+parseInt(_0x13d62b(0x9a))/0x7*(-parseInt(_0x13d62b(0xa6))/0x8)+-parseInt(_0x13d62b(0x99))/0x9;if(_0x1a83a2===_0x14ee5a)break;else _0x336604['push'](_0x336604['shift']());}catch(_0x5d4a90){_0x336604['push'](_0x336604['shift']());}}}(a81_0x333d,0xb899a));import a81_0x11b065 from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a81_0x433b42}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a81_0x4d0f83,getArea as a81_0x5879ea}from'ol/sphere';function a81_0x4130(_0x298108,_0x2adc17){const _0x333d15=a81_0x333d();return a81_0x4130=function(_0x41304e,_0x2cdfa7){_0x41304e=_0x41304e-0x96;let _0x2e564f=_0x333d15[_0x41304e];return _0x2e564f;},a81_0x4130(_0x298108,_0x2adc17);}import a81_0x39ff50 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a81_0x477d1e from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a81_0x54fe31 from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a81_0x521221 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a81_0x2425fd from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a81_0x3d8c2e from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a81_0x302fd1 from'ol/format/GeoJSON';import{Circle,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import{fromCircle}from'ol/geom/Polygon';import a81_0x344f9f from'ol/format/WKT';import a81_0x2ff6f0 from'ol/format/EsriJSON';const _parser=new a81_0x521221(undefined,undefined);_parser[a81_0xe3cc3f(0xa5)](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x5905fa,_0x25ae5c,_0x1e6935=![]){const _0x2ef183=a81_0xe3cc3f;if(!_0x5905fa)return 0x0;if(typeof _0x25ae5c==_0x2ef183(0x9b)){let _0x5dfebe=registerProj(_0x25ae5c);if(_0x5dfebe==null)return console[_0x2ef183(0xba)](_0x2ef183(0xb2)),0x0;_0x25ae5c=_0x5dfebe;}const _0x2db73a=isSpheroid(_0x25ae5c);if(_0x1e6935)return a81_0x5879ea(_0x5905fa,{'projection':_0x25ae5c});else{if(_0x2db73a){const _0x43470c=getGeoProjection(_0x5905fa,_0x25ae5c);return _0x5905fa[_0x2ef183(0xa2)]()[_0x2ef183(0xab)](_0x25ae5c,_0x43470c)['getArea']();}return _0x5905fa['getArea']();}}export function getLength(_0x20d365,_0x4c9223,_0x50023f=![]){const _0x51037e=a81_0xe3cc3f;if(!_0x20d365)return 0x0;if(typeof _0x4c9223=='string'){let _0x3d64a6=registerProj(_0x4c9223);if(_0x3d64a6==null)return console[_0x51037e(0xba)]('未找到投影信息'),0x0;_0x4c9223=_0x3d64a6;}const _0x24f2fd=isSpheroid(_0x4c9223);if(_0x50023f)return a81_0x4d0f83(_0x20d365,{'projection':_0x4c9223});else{let _0x3ba6ca=_0x20d365;if(_0x24f2fd){const _0x13b7e4=getGeoProjection(_0x20d365,_0x4c9223);_0x3ba6ca=_0x20d365[_0x51037e(0xa2)]()[_0x51037e(0xab)](_0x4c9223,_0x13b7e4);}if(_0x3ba6ca instanceof LineString)return _0x3ba6ca[_0x51037e(0xbe)]();else{let _0x34fcfa=0x0;for(let _0x3a4077=0x0;_0x3a4077<_0x3ba6ca[_0x51037e(0xb0)]()[_0x51037e(0x9c)];_0x3a4077++){_0x34fcfa+=_0x3ba6ca['getLineStrings']()[_0x3a4077][_0x51037e(0xbe)]();}return _0x34fcfa;}}}export function bufferOp(_0x59e76c,_0x3d1ff5){const _0x542ec0=a81_0xe3cc3f,_0x474fc4=_parser[_0x542ec0(0xc1)](_0x59e76c),_0x469518=a81_0x39ff50['bufferOp'](_0x474fc4,_0x3d1ff5);return _parser[_0x542ec0(0xc4)](_0x469518);}export function bufferPixel(_0x95e7cb,_0x1d45ab,_0x4c55b2){const _0x32597a=a81_0xe3cc3f,_0x30754b=_0x4c55b2['getPixelFromCoordinate'](_0x95e7cb['getCoordinates']()),_0x5e7524=_0x4c55b2[_0x32597a(0xac)]([_0x30754b[0x0]+_0x1d45ab,_0x30754b[0x1]]),_0x1ffe19=a81_0x433b42(_0x95e7cb[_0x32597a(0xbb)](),_0x5e7524),_0x4548cb=bufferOp(_0x95e7cb,_0x1ffe19);return _0x4548cb;}export function contains(_0x293735,_0x46f35b){const _0x5acfeb=a81_0xe3cc3f,_0x1b8f7e=_parser[_0x5acfeb(0xc1)](_0x293735),_0x3e497c=_parser[_0x5acfeb(0xc1)](_0x46f35b);return a81_0x477d1e[_0x5acfeb(0x96)](_0x1b8f7e,_0x3e497c);}export function crosses(_0x57384a,_0x2f6591){const _0x33f00d=a81_0xe3cc3f,_0x34e8b7=_parser['read'](_0x57384a),_0x398656=_parser[_0x33f00d(0xc1)](_0x2f6591);return a81_0x477d1e[_0x33f00d(0xbd)](_0x34e8b7,_0x398656);}export function intersects(_0x3f8842,_0x50b7d0){const _0x13be98=a81_0xe3cc3f,_0x5c0889=_parser[_0x13be98(0xc1)](_0x3f8842),_0x3fbfd4=_parser[_0x13be98(0xc1)](_0x50b7d0);return a81_0x477d1e[_0x13be98(0x98)](_0x5c0889,_0x3fbfd4);}export function intersection(_0x27c686,_0x357ac9){const _0x17ffbb=a81_0xe3cc3f,_0x1936b9=_parser['read'](_0x27c686),_0x57f0d9=_parser['read'](_0x357ac9);return _parser[_0x17ffbb(0xc4)](a81_0x54fe31[_0x17ffbb(0xc3)](_0x1936b9,_0x57f0d9));}export function union(_0x4b887a,_0x11693d){const _0xdfda71=a81_0xe3cc3f,_0x231bcb=_parser[_0xdfda71(0xc1)](_0x4b887a),_0x46cf66=_parser[_0xdfda71(0xc1)](_0x11693d);return _parser[_0xdfda71(0xc4)](a81_0x54fe31[_0xdfda71(0xa7)](_0x231bcb,_0x46cf66));}export function difference(_0x490a4c,_0xa0eb4){const _0x2c635c=a81_0xe3cc3f,_0x339a7d=_parser[_0x2c635c(0xc1)](_0x490a4c),_0x4697ba=_parser[_0x2c635c(0xc1)](_0xa0eb4);return _parser[_0x2c635c(0xc4)](a81_0x54fe31[_0x2c635c(0xa9)](_0x339a7d,_0x4697ba));}export function distance(_0x34763b,_0x2f0450){const _0x7d1fd2=a81_0xe3cc3f,_0x7ea37d=_parser[_0x7d1fd2(0xc1)](_0x34763b),_0x582f14=_parser[_0x7d1fd2(0xc1)](_0x2f0450);return _parser[_0x7d1fd2(0xc4)](a81_0x3d8c2e[_0x7d1fd2(0xb5)](_0x7ea37d,_0x582f14));}export function jstlSplit(_0x1c7b3a,_0x5e855f){const _0x3062ac=a81_0xe3cc3f,_0x3770d1=_parser[_0x3062ac(0xc1)](_0x1c7b3a),_0x14657a=_parser[_0x3062ac(0xc1)](_0x5e855f),_0x10df50=_0x3770d1['getGeometryType']();let _0x1dd9a0=[];function _0x5a0d04(_0xb4767a,_0x20bc80){const _0x407420=_0x3062ac;let _0x4c945f=_0xb4767a[_0x407420(0xc2)],_0x291974=_0xb4767a[_0x407420(0xaf)]()[_0x407420(0xa7)](_0x20bc80),_0x390fa9=new a81_0x2425fd();_0x390fa9['add'](_0x291974);let _0x5cf13b=_0x390fa9[_0x407420(0xb4)]();_0x5cf13b[_0x407420(0xa4)]['length']==0x2&&_0x5cf13b['array'][_0x407420(0xb1)](_0x40c485=>{const _0x3bc72b=_0x407420;_0x4c945f[_0x3bc72b(0xb1)](_0x470d5f=>{const _0x5e16ec=_0x3bc72b;let _0x3f206f=[];for(let _0x6276fc in _0x470d5f['getCoordinates']()){_0x3f206f['push']([_0x470d5f['getCoordinates']()[_0x6276fc]['x'],_0x470d5f[_0x5e16ec(0xbb)]()[_0x6276fc]['y']]);}_0x470d5f=_parser[_0x5e16ec(0xc1)]({'coordinates':[_0x3f206f],'type':_0x5e16ec(0x9f)}),_0x40c485=_0x40c485[_0x5e16ec(0xa9)](_0x470d5f);}),_0x1dd9a0['push'](_parser[_0x3bc72b(0xc4)](_0x40c485));});}if(_0x10df50===_0x3062ac(0x9f))_0x5a0d04(_0x3770d1,_0x14657a);else{if(_0x10df50==='MultiPolygon')_0x3770d1[_0x3062ac(0xb6)][_0x3062ac(0xb1)]((_0x24f5eb,_0x4ed80a)=>{_0x5a0d04(_0x24f5eb,_0x14657a);});else throw new Error(_0x3062ac(0x97));}return _0x1dd9a0;}export function fromWKT(_0x5a8798,_0x308e6f,_0x1fc570){const _0x3060ad=a81_0xe3cc3f,_0x5e958a=new a81_0x344f9f();_0x308e6f&®isterProj(_0x308e6f);_0x1fc570&®isterProj(_0x1fc570);const _0x1da0f8=_0x5e958a[_0x3060ad(0xa8)](_0x5a8798);if(isGeometryEmpty(_0x1da0f8))return null;return _0x308e6f&&_0x1fc570?_0x1da0f8[_0x3060ad(0xab)](new a81_0x11b065({'code':_0x308e6f}),new a81_0x11b065({'code':_0x1fc570})):_0x1da0f8;}export function fromWKTs(_0xfed11,_0x92ce00,_0x2845e7){const _0x6eebb0=a81_0xe3cc3f,_0x3ed404=new a81_0x344f9f();let _0x2c9f64=[];_0x92ce00&®isterProj(_0x92ce00);_0x2845e7&®isterProj(_0x2845e7);let _0x5d9c79,_0x3570eb;_0x92ce00&&_0x2845e7&&(_0x5d9c79=new a81_0x11b065({'code':_0x92ce00}),_0x3570eb=new a81_0x11b065({'code':_0x2845e7}));for(let _0x25572b=0x0;_0x25572b<_0xfed11[_0x6eebb0(0x9c)];_0x25572b++){const _0x52a693=_0x3ed404[_0x6eebb0(0xa8)](_0xfed11[_0x25572b]);if(isGeometryEmpty(_0x52a693))continue;_0x5d9c79&&_0x3570eb?_0x2c9f64[_0x6eebb0(0xbc)](_0x52a693[_0x6eebb0(0xab)](_0x5d9c79,_0x3570eb)):_0x2c9f64['push'](_0x52a693);}return _0x2c9f64;}export function toWKT(_0x5b1637){const _0xb9c7ac=a81_0xe3cc3f,_0x391453=new a81_0x344f9f();if(isGeometryEmpty(_0x5b1637))return'';if(_0x5b1637 instanceof Circle){const _0x3e8cf0=fromCircle(_0x5b1637);return _0x391453[_0xb9c7ac(0xaa)](_0x3e8cf0);}else return _0x391453[_0xb9c7ac(0xaa)](_0x5b1637);}export function toGeoJSON(_0x31057b){const _0x28450e=a81_0xe3cc3f,_0x555ed2=new a81_0x302fd1();return _0x555ed2[_0x28450e(0xaa)](_0x31057b);}export function fromGeoJSON(_0x31f8a0){const _0x13738c=new a81_0x302fd1();return _0x13738c['readGeometry'](_0x31f8a0);}export function toEsriJSON(_0x33a8cd){const _0x31cd57=a81_0xe3cc3f,_0x22f2b3=new a81_0x2ff6f0();return _0x22f2b3[_0x31cd57(0xaa)](_0x33a8cd);}export function fromEsriJSON(_0xaa085c){const _0xbc0fd7=a81_0xe3cc3f,_0x1c7744=new a81_0x2ff6f0();return _0x1c7744[_0xbc0fd7(0xa8)](_0xaa085c);}export function expandExtent(_0x5848fb,_0x171e59){const _0x4da161=_0x5848fb[0x0],_0x2c8a5d=_0x5848fb[0x1],_0x483ae=_0x5848fb[0x2],_0x23ba0f=_0x5848fb[0x3],_0x2aac69=(_0x4da161+_0x483ae)/0x2,_0x36455a=(_0x2c8a5d+_0x23ba0f)/0x2,_0x5c10ed=_0x483ae-_0x4da161,_0x5c1ee0=_0x23ba0f-_0x2c8a5d,_0x246d12=_0x5c10ed*_0x171e59,_0x171540=_0x5c1ee0*_0x171e59,_0x12a7e6=_0x2aac69-_0x246d12/0x2,_0x29fa82=_0x2aac69+_0x246d12/0x2,_0x3e7f39=_0x36455a-_0x171540/0x2,_0x512f3b=_0x36455a+_0x171540/0x2;return[_0x12a7e6,_0x3e7f39,_0x29fa82,_0x512f3b];}function a81_0x333d(){const _0x53b26e=['inject','488GjSNMB','union','readGeometry','difference','writeGeometry','transform','getCoordinateFromPixel','13YLpddN','151366iArApl','getExteriorRing','getLineStrings','forEach','未找到投影信息','MultiPolygon','getPolygons','distance','_geometries','Point','getExtent','some','error','getCoordinates','push','crosses','getLength','1426510Vohggi','getInteriorPoint','read','_holes','intersection','write','contains','无法识别的数据类型','intersects','12355263Ojpgcg','15624pXjuyq','string','length','getType','7612794rREdDu','Polygon','5024728bILADj','2949849FKGVpi','clone','map','array'];a81_0x333d=function(){return _0x53b26e;};return a81_0x333d();}export function isGeometryEmpty(_0x1a27f7){const _0x8c3162=a81_0xe3cc3f;if(!_0x1a27f7)return!![];if(_0x1a27f7 instanceof Point||_0x1a27f7 instanceof MultiPoint){const _0x3a62bc=_0x1a27f7[_0x8c3162(0xbb)]();return!_0x3a62bc||_0x3a62bc[_0x8c3162(0xb9)](_0xf46e07=>isNaN(_0xf46e07));}else{if(_0x1a27f7 instanceof LineString||_0x1a27f7 instanceof MultiLineString)return _0x1a27f7['getCoordinates']()[_0x8c3162(0x9c)]<0x2;else{if(_0x1a27f7 instanceof Polygon){const _0xaeed43=_0x1a27f7[_0x8c3162(0xbb)]();return!_0xaeed43||_0xaeed43[_0x8c3162(0x9c)]===0x0||_0xaeed43[0x0]['length']<0x4;}else{if(_0x1a27f7 instanceof MultiPolygon){const _0x249e1b=_0x1a27f7['getCoordinates']();return!_0x249e1b||_0x249e1b[_0x8c3162(0x9c)]===0x0||_0x249e1b[0x0][0x0][_0x8c3162(0x9c)]<0x4;}}}}return![];}export function polygonToLines(_0x15855c){const _0x1c8469=a81_0xe3cc3f;if(!_0x15855c)return[];const _0x18f609=_0x15855c['getLinearRings']();return _0x18f609[_0x1c8469(0xa3)](_0xd3c0b3=>new LineString(_0xd3c0b3[_0x1c8469(0xbb)]()));}export function getGeometryCenter(_0x1b330e){const _0x181a2c=a81_0xe3cc3f;if(!_0x1b330e)return undefined;const _0x3b704f=_0x1b330e[_0x181a2c(0x9d)]();if(_0x3b704f===_0x181a2c(0xb7))return new Point(_0x1b330e[_0x181a2c(0xbb)]());if(_0x3b704f==='Polygon'||_0x3b704f===_0x181a2c(0xb3))return _0x1b330e[_0x181a2c(0xc0)]();const _0x1f3f90=getCenter(_0x1b330e[_0x181a2c(0xb8)]());return new Point(_0x1f3f90);}
|
|
1
|
+
(function(_0x97f2f0,_0x5650db){const _0x48ef8b=a82_0x3234,_0x317468=_0x97f2f0();while(!![]){try{const _0x508d91=parseInt(_0x48ef8b(0x16e))/0x1+parseInt(_0x48ef8b(0x177))/0x2*(parseInt(_0x48ef8b(0x16a))/0x3)+parseInt(_0x48ef8b(0x158))/0x4*(-parseInt(_0x48ef8b(0x151))/0x5)+parseInt(_0x48ef8b(0x170))/0x6+parseInt(_0x48ef8b(0x159))/0x7*(-parseInt(_0x48ef8b(0x157))/0x8)+-parseInt(_0x48ef8b(0x156))/0x9+parseInt(_0x48ef8b(0x15d))/0xa;if(_0x508d91===_0x5650db)break;else _0x317468['push'](_0x317468['shift']());}catch(_0x3c30ac){_0x317468['push'](_0x317468['shift']());}}}(a82_0xee3b,0x46eb2));import a82_0x1a003d from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a82_0x1ee586}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a82_0x5da585,getArea as a82_0x2e1ac9}from'ol/sphere';import a82_0x4f8cd8 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';function a82_0xee3b(){const _0x4b073a=['getCoordinateFromPixel','591546QLaWuJ','getArea','getGeometryType','read','writeGeometry','clone','length','382918XUOmDa','some','Point','error','forEach','bufferOp','string','getType','未找到投影信息','5IgMECI','difference','getLinearRings','MultiPolygon','Polygon','3876282GXlDTA','472AVDmwx','2233016RYFScl','68173ribgOV','union','getLength','crosses','15483500dBUIVf','write','getLineStrings','contains','array','getCoordinates','无法识别的数据类型','add','_geometries','_holes','getPolygons','push','getPixelFromCoordinate','3sTtFee','map','transform','readGeometry','15635etbTsu'];a82_0xee3b=function(){return _0x4b073a;};return a82_0xee3b();}import a82_0x54ad14 from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a82_0x5f33ff from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a82_0x23ccfb from'jsts/org/locationtech/jts/io/OL3Parser.js';import a82_0x4f1227 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a82_0x5270c1 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a82_0x5262ae from'ol/format/GeoJSON';import{Circle,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import{fromCircle}from'ol/geom/Polygon';import a82_0x3738dd from'ol/format/WKT';import a82_0x2395d7 from'ol/format/EsriJSON';const _parser=new a82_0x23ccfb(undefined,undefined);_parser['inject'](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x1aea6a,_0x145a04,_0xed7972=![]){const _0x3fbc3a=a82_0x3234;if(!_0x1aea6a)return 0x0;if(typeof _0x145a04=='string'){let _0x5f0a40=registerProj(_0x145a04);if(_0x5f0a40==null)return console[_0x3fbc3a(0x17a)](_0x3fbc3a(0x150)),0x0;_0x145a04=_0x5f0a40;}const _0x2c32b2=isSpheroid(_0x145a04);if(_0xed7972)return a82_0x2e1ac9(_0x1aea6a,{'projection':_0x145a04});else{if(_0x2c32b2){const _0x387946=getGeoProjection(_0x1aea6a,_0x145a04);return _0x1aea6a[_0x3fbc3a(0x175)]()[_0x3fbc3a(0x16c)](_0x145a04,_0x387946)[_0x3fbc3a(0x171)]();}return _0x1aea6a[_0x3fbc3a(0x171)]();}}export function getLength(_0xa20cab,_0x1a8330,_0x1fbf26=![]){const _0x265f95=a82_0x3234;if(!_0xa20cab)return 0x0;if(typeof _0x1a8330==_0x265f95(0x14e)){let _0x400e3d=registerProj(_0x1a8330);if(_0x400e3d==null)return console[_0x265f95(0x17a)](_0x265f95(0x150)),0x0;_0x1a8330=_0x400e3d;}const _0x54d624=isSpheroid(_0x1a8330);if(_0x1fbf26)return a82_0x5da585(_0xa20cab,{'projection':_0x1a8330});else{let _0x515a1e=_0xa20cab;if(_0x54d624){const _0x4fea2d=getGeoProjection(_0xa20cab,_0x1a8330);_0x515a1e=_0xa20cab[_0x265f95(0x175)]()[_0x265f95(0x16c)](_0x1a8330,_0x4fea2d);}if(_0x515a1e instanceof LineString)return _0x515a1e[_0x265f95(0x15b)]();else{let _0x36ec19=0x0;for(let _0x2d52d9=0x0;_0x2d52d9<_0x515a1e['getLineStrings']()[_0x265f95(0x176)];_0x2d52d9++){_0x36ec19+=_0x515a1e[_0x265f95(0x15f)]()[_0x2d52d9][_0x265f95(0x15b)]();}return _0x36ec19;}}}export function bufferOp(_0x27a6f7,_0x4ee853){const _0x4686b4=a82_0x3234,_0x51df74=_parser[_0x4686b4(0x173)](_0x27a6f7),_0x19d841=a82_0x4f8cd8[_0x4686b4(0x17c)](_0x51df74,_0x4ee853);return _parser[_0x4686b4(0x15e)](_0x19d841);}export function bufferPixel(_0x5da22d,_0x2869ca,_0x29ecfd){const _0x52a139=a82_0x3234,_0x50d848=_0x29ecfd[_0x52a139(0x169)](_0x5da22d[_0x52a139(0x162)]()),_0x350a99=_0x29ecfd[_0x52a139(0x16f)]([_0x50d848[0x0]+_0x2869ca,_0x50d848[0x1]]),_0x5f4c3c=a82_0x1ee586(_0x5da22d[_0x52a139(0x162)](),_0x350a99),_0x1f98ee=bufferOp(_0x5da22d,_0x5f4c3c);return _0x1f98ee;}export function contains(_0xe14ac,_0xe4531b){const _0x22a4ed=a82_0x3234,_0x5806d7=_parser[_0x22a4ed(0x173)](_0xe14ac),_0x1a7f37=_parser['read'](_0xe4531b);return a82_0x54ad14[_0x22a4ed(0x160)](_0x5806d7,_0x1a7f37);}export function crosses(_0x4cfac3,_0x5b37c6){const _0x5968c3=a82_0x3234,_0x314fd5=_parser['read'](_0x4cfac3),_0x3a3c51=_parser[_0x5968c3(0x173)](_0x5b37c6);return a82_0x54ad14[_0x5968c3(0x15c)](_0x314fd5,_0x3a3c51);}export function intersects(_0x26e8fc,_0xe5b836){const _0x2eef5=a82_0x3234,_0x3bf42c=_parser[_0x2eef5(0x173)](_0x26e8fc),_0x2f27b5=_parser[_0x2eef5(0x173)](_0xe5b836);return a82_0x54ad14['intersects'](_0x3bf42c,_0x2f27b5);}export function intersection(_0x2e93d9,_0x16f685){const _0x4885f0=a82_0x3234,_0x4a2cf1=_parser[_0x4885f0(0x173)](_0x2e93d9),_0x174e11=_parser[_0x4885f0(0x173)](_0x16f685);return _parser[_0x4885f0(0x15e)](a82_0x5f33ff['intersection'](_0x4a2cf1,_0x174e11));}export function union(_0x5aa9c7,_0x153fe4){const _0x1d681f=a82_0x3234,_0x44d6ae=_parser[_0x1d681f(0x173)](_0x5aa9c7),_0x4de407=_parser[_0x1d681f(0x173)](_0x153fe4);return _parser[_0x1d681f(0x15e)](a82_0x5f33ff[_0x1d681f(0x15a)](_0x44d6ae,_0x4de407));}export function difference(_0x1af9aa,_0x502623){const _0x807b0f=a82_0x3234,_0x298152=_parser[_0x807b0f(0x173)](_0x1af9aa),_0x867352=_parser[_0x807b0f(0x173)](_0x502623);return _parser[_0x807b0f(0x15e)](a82_0x5f33ff[_0x807b0f(0x152)](_0x298152,_0x867352));}export function distance(_0x12732a,_0x942a9c){const _0x207146=a82_0x3234,_0x4ffa1f=_parser['read'](_0x12732a),_0x286032=_parser[_0x207146(0x173)](_0x942a9c);return _parser['write'](a82_0x5270c1['distance'](_0x4ffa1f,_0x286032));}export function jstlSplit(_0x58e53d,_0x4ee6c4){const _0x4e8750=a82_0x3234,_0x7f3275=_parser[_0x4e8750(0x173)](_0x58e53d),_0x535dec=_parser[_0x4e8750(0x173)](_0x4ee6c4),_0x28d708=_0x7f3275[_0x4e8750(0x172)]();let _0x70b781=[];function _0x2c6e05(_0x348ab0,_0x2fc1f6){const _0x271c0d=_0x4e8750;let _0x3df28a=_0x348ab0[_0x271c0d(0x166)],_0x3209ce=_0x348ab0['getExteriorRing']()[_0x271c0d(0x15a)](_0x2fc1f6),_0x282752=new a82_0x4f1227();_0x282752[_0x271c0d(0x164)](_0x3209ce);let _0x1af42e=_0x282752[_0x271c0d(0x167)]();_0x1af42e[_0x271c0d(0x161)]['length']==0x2&&_0x1af42e[_0x271c0d(0x161)]['forEach'](_0x1f65f0=>{const _0x3ee6a6=_0x271c0d;_0x3df28a[_0x3ee6a6(0x17b)](_0x21f947=>{const _0xa14202=_0x3ee6a6;let _0x40191b=[];for(let _0x197b21 in _0x21f947[_0xa14202(0x162)]()){_0x40191b[_0xa14202(0x168)]([_0x21f947[_0xa14202(0x162)]()[_0x197b21]['x'],_0x21f947['getCoordinates']()[_0x197b21]['y']]);}_0x21f947=_parser[_0xa14202(0x173)]({'coordinates':[_0x40191b],'type':_0xa14202(0x155)}),_0x1f65f0=_0x1f65f0[_0xa14202(0x152)](_0x21f947);}),_0x70b781['push'](_parser[_0x3ee6a6(0x15e)](_0x1f65f0));});}if(_0x28d708==='Polygon')_0x2c6e05(_0x7f3275,_0x535dec);else{if(_0x28d708===_0x4e8750(0x154))_0x7f3275[_0x4e8750(0x165)][_0x4e8750(0x17b)]((_0xdbd709,_0x293a0b)=>{_0x2c6e05(_0xdbd709,_0x535dec);});else throw new Error(_0x4e8750(0x163));}return _0x70b781;}export function fromWKT(_0x4bf322,_0x5954aa,_0x3ee5cb){const _0x246e84=a82_0x3234,_0x444d73=new a82_0x3738dd();_0x5954aa&®isterProj(_0x5954aa);_0x3ee5cb&®isterProj(_0x3ee5cb);const _0x3b8b27=_0x444d73[_0x246e84(0x16d)](_0x4bf322);if(isGeometryEmpty(_0x3b8b27))return null;return _0x5954aa&&_0x3ee5cb?_0x3b8b27[_0x246e84(0x16c)](new a82_0x1a003d({'code':_0x5954aa}),new a82_0x1a003d({'code':_0x3ee5cb})):_0x3b8b27;}function a82_0x3234(_0x35ca40,_0x36e340){const _0xee3bb=a82_0xee3b();return a82_0x3234=function(_0x3234ab,_0x2568dd){_0x3234ab=_0x3234ab-0x14e;let _0x4c03ee=_0xee3bb[_0x3234ab];return _0x4c03ee;},a82_0x3234(_0x35ca40,_0x36e340);}export function fromWKTs(_0xec141f,_0x34d224,_0x4fe3b3){const _0x7fa6ed=a82_0x3234,_0x40b53a=new a82_0x3738dd();let _0x5e1744=[];_0x34d224&®isterProj(_0x34d224);_0x4fe3b3&®isterProj(_0x4fe3b3);let _0x1ae81e,_0x219fa7;_0x34d224&&_0x4fe3b3&&(_0x1ae81e=new a82_0x1a003d({'code':_0x34d224}),_0x219fa7=new a82_0x1a003d({'code':_0x4fe3b3}));for(let _0xb0723b=0x0;_0xb0723b<_0xec141f[_0x7fa6ed(0x176)];_0xb0723b++){const _0xf3b062=_0x40b53a[_0x7fa6ed(0x16d)](_0xec141f[_0xb0723b]);if(isGeometryEmpty(_0xf3b062))continue;_0x1ae81e&&_0x219fa7?_0x5e1744[_0x7fa6ed(0x168)](_0xf3b062[_0x7fa6ed(0x16c)](_0x1ae81e,_0x219fa7)):_0x5e1744[_0x7fa6ed(0x168)](_0xf3b062);}return _0x5e1744;}export function toWKT(_0x5d87a2){const _0x5e081b=a82_0x3234,_0x58ca42=new a82_0x3738dd();if(isGeometryEmpty(_0x5d87a2))return'';if(_0x5d87a2 instanceof Circle){const _0x211493=fromCircle(_0x5d87a2);return _0x58ca42['writeGeometry'](_0x211493);}else return _0x58ca42[_0x5e081b(0x174)](_0x5d87a2);}export function toGeoJSON(_0xb4642e){const _0x29df31=a82_0x3234,_0x55bc99=new a82_0x5262ae();return _0x55bc99[_0x29df31(0x174)](_0xb4642e);}export function fromGeoJSON(_0x371e0a){const _0x425294=a82_0x3234,_0x4008da=new a82_0x5262ae();return _0x4008da[_0x425294(0x16d)](_0x371e0a);}export function toEsriJSON(_0x51e6a4){const _0x52d3c7=a82_0x3234,_0x540887=new a82_0x2395d7();return _0x540887[_0x52d3c7(0x174)](_0x51e6a4);}export function fromEsriJSON(_0x3e4174){const _0x9d7452=a82_0x3234,_0x38043f=new a82_0x2395d7();return _0x38043f[_0x9d7452(0x16d)](_0x3e4174);}export function expandExtent(_0x4bb504,_0x3e180c){const _0x54f560=_0x4bb504[0x0],_0x5ee54b=_0x4bb504[0x1],_0x2f347e=_0x4bb504[0x2],_0x3f0a7e=_0x4bb504[0x3],_0x156556=(_0x54f560+_0x2f347e)/0x2,_0x4629c9=(_0x5ee54b+_0x3f0a7e)/0x2,_0xca0e06=_0x2f347e-_0x54f560,_0x2c14f4=_0x3f0a7e-_0x5ee54b,_0x1b661c=_0xca0e06*_0x3e180c,_0x2208d5=_0x2c14f4*_0x3e180c,_0x52f0f5=_0x156556-_0x1b661c/0x2,_0x18f5a1=_0x156556+_0x1b661c/0x2,_0x28be6d=_0x4629c9-_0x2208d5/0x2,_0x5bf0b8=_0x4629c9+_0x2208d5/0x2;return[_0x52f0f5,_0x28be6d,_0x18f5a1,_0x5bf0b8];}export function isGeometryEmpty(_0x3445cc){const _0x397f78=a82_0x3234;if(!_0x3445cc)return!![];if(_0x3445cc instanceof Point||_0x3445cc instanceof MultiPoint){const _0x168940=_0x3445cc[_0x397f78(0x162)]();return!_0x168940||_0x168940[_0x397f78(0x178)](_0x480f12=>isNaN(_0x480f12));}else{if(_0x3445cc instanceof LineString||_0x3445cc instanceof MultiLineString)return _0x3445cc[_0x397f78(0x162)]()['length']<0x2;else{if(_0x3445cc instanceof Polygon){const _0x3a58bc=_0x3445cc[_0x397f78(0x162)]();return!_0x3a58bc||_0x3a58bc[_0x397f78(0x176)]===0x0||_0x3a58bc[0x0][_0x397f78(0x176)]<0x4;}else{if(_0x3445cc instanceof MultiPolygon){const _0x555ae5=_0x3445cc[_0x397f78(0x162)]();return!_0x555ae5||_0x555ae5[_0x397f78(0x176)]===0x0||_0x555ae5[0x0][0x0]['length']<0x4;}}}}return![];}export function polygonToLines(_0x52d27a){const _0x531f92=a82_0x3234;if(!_0x52d27a)return[];const _0x4adb5e=_0x52d27a[_0x531f92(0x153)]();return _0x4adb5e[_0x531f92(0x16b)](_0x1c921b=>new LineString(_0x1c921b[_0x531f92(0x162)]()));}export function getGeometryCenter(_0xa90c5f){const _0x30c04b=a82_0x3234;if(!_0xa90c5f)return undefined;const _0x3429e9=_0xa90c5f[_0x30c04b(0x14f)]();if(_0x3429e9===_0x30c04b(0x179))return new Point(_0xa90c5f[_0x30c04b(0x162)]());if(_0x3429e9===_0x30c04b(0x155)||_0x3429e9===_0x30c04b(0x154))return _0xa90c5f['getInteriorPoint']();const _0x3ccf8d=getCenter(_0xa90c5f['getExtent']());return new Point(_0x3ccf8d);}
|