ym-gis-2d 1.0.37 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.d.ts +2 -0
- package/controls/SwipeLayerControl.d.ts.map +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/controls/SwipeLayerControl.js.map +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Difference.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Modify.js +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Split.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +4 -0
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.d.ts.map +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Query.js.map +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.d.ts +1 -1
- package/utils/tasks/index.d.ts.map +1 -1
- package/utils/tasks/index.js +1 -1
- package/utils/tasks/index.js.map +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x3ccb31=a68_0x4724;(function(_0x58c918,_0x14f67b){const _0x38689f=a68_0x4724,_0xbbec64=_0x58c918();while(!![]){try{const _0x1e1e0a=-parseInt(_0x38689f(0x8b))/0x1*(-parseInt(_0x38689f(0x8d))/0x2)+parseInt(_0x38689f(0x94))/0x3*(parseInt(_0x38689f(0x90))/0x4)+-parseInt(_0x38689f(0x9a))/0x5*(parseInt(_0x38689f(0x99))/0x6)+-parseInt(_0x38689f(0x98))/0x7+-parseInt(_0x38689f(0x92))/0x8*(parseInt(_0x38689f(0x93))/0x9)+parseInt(_0x38689f(0x8c))/0xa+-parseInt(_0x38689f(0x97))/0xb;if(_0x1e1e0a===_0x14f67b)break;else _0xbbec64['push'](_0xbbec64['shift']());}catch(_0x51aa96){_0xbbec64['push'](_0xbbec64['shift']());}}}(a68_0xfc5e,0xe0f91));import{Circle as a68_0x5a19a6}from'ol/geom';import a68_0x149812 from'ol/format/GeoJSON';import{offset}from'ol/sphere';import{squaredDistance as a68_0x1fcf08}from'ol/coordinate';function a68_0xfc5e(){const _0x9e636d=['537625SwYlpG','3840144iWFtWR','102bfGIAt','169965WgsPGL','updatePoint','getRadius','type','setCenterAndRadius','setCenter','points','writeGeometryObject','2257MEqChb','3513360SHpFFP','610eljSXR','length','toRadians','252XjGkgj','setPoints','48lKQBkB','455337pHFqWN','64794nmAXwo','sqrt','generate'];a68_0xfc5e=function(){return _0x9e636d;};return a68_0xfc5e();}import{fromCircle}from'ol/geom/Polygon';function a68_0x4724(_0x2c9e30,_0x13a7fc){const _0xfc5e8e=a68_0xfc5e();return a68_0x4724=function(_0x4724da,_0xdee768){_0x4724da=_0x4724da-0x84;let _0x3a3c5a=_0xfc5e8e[_0x4724da];return _0x3a3c5a;},a68_0x4724(_0x2c9e30,_0x13a7fc);}import{compareArray}from'../../../utils/ArrayUtil';class Circle extends a68_0x5a19a6{constructor(_0x1a9101){const _0x2c09fa=a68_0x4724;super([]),this[_0x2c09fa(0x89)]=_0x1a9101,this[_0x2c09fa(0x86)]='Circle',_0x1a9101&&_0x1a9101[_0x2c09fa(0x8e)]>0x0&&this[_0x2c09fa(0x91)](_0x1a9101);}[a68_0x3ccb31(0x91)](_0x5ba604){const _0x33ea65=a68_0x3ccb31;var _0x3d83fb;((_0x3d83fb=this[_0x33ea65(0x89)])===null||_0x3d83fb===void 0x0?void 0x0:_0x3d83fb[_0x33ea65(0x8e)])>0x0&&(_0x5ba604===null||_0x5ba604===void 0x0?void 0x0:_0x5ba604[_0x33ea65(0x8e)])>0x0&&!compareArray(this[_0x33ea65(0x89)][0x0],_0x5ba604[0x0])?this[_0x33ea65(0x88)](_0x5ba604[0x0]):(this[_0x33ea65(0x89)]=!_0x5ba604?[]:_0x5ba604,this[_0x33ea65(0x89)]['length']>=0x1&&(this['generate']&&this['generate']()));}[a68_0x3ccb31(0x96)](){const _0x1e1bb4=a68_0x3ccb31;let _0x25a6a9=this[_0x1e1bb4(0x89)]['length'];if(_0x25a6a9<0x2)return![];else{const _0x501986=this[_0x1e1bb4(0x89)][0x0],_0x18ae12=a68_0x1fcf08(_0x501986,this[_0x1e1bb4(0x89)][0x1]);this[_0x1e1bb4(0x87)](_0x501986,Math[_0x1e1bb4(0x95)](_0x18ae12));}}[a68_0x3ccb31(0x88)](_0x257d34){const _0x29e27f=a68_0x3ccb31;this[_0x29e27f(0x88)](_0x257d34),this[_0x29e27f(0x89)]=[_0x257d34,offset(_0x257d34,this[_0x29e27f(0x85)](),this[_0x29e27f(0x8f)](0x5a))],this[_0x29e27f(0x96)]();}[a68_0x3ccb31(0x8f)](_0x143723){return _0x143723*Math['PI']/0xb4;}['getGeoJson'](){const _0xbedb73=a68_0x3ccb31;return new a68_0x149812()[_0xbedb73(0x8a)](fromCircle(this));}['updatePoint'](_0x1e3bb9,_0x47d048){const _0x651249=a68_0x3ccb31;_0x47d048>=0x0&&_0x47d048<this['points'][_0x651249(0x8e)]&&(this[_0x651249(0x89)][_0x47d048]=_0x1e3bb9,this[_0x651249(0x96)]());}['updateLastPoint'](_0x20c868){const _0x4e2154=a68_0x3ccb31;this[_0x4e2154(0x84)](_0x20c868,this[_0x4e2154(0x89)][_0x4e2154(0x8e)]-0x1);}}export default Circle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x4aeb8f=a69_0x9e3c;(function(_0x26df26,_0x32f7d7){const _0x3d018f=a69_0x9e3c,_0xd64bad=_0x26df26();while(!![]){try{const _0x25c63b=-parseInt(_0x3d018f(0x1e6))/0x1*(parseInt(_0x3d018f(0x1dd))/0x2)+-parseInt(_0x3d018f(0x1e9))/0x3*(-parseInt(_0x3d018f(0x1e4))/0x4)+parseInt(_0x3d018f(0x1db))/0x5+parseInt(_0x3d018f(0x1e3))/0x6*(-parseInt(_0x3d018f(0x1e7))/0x7)+parseInt(_0x3d018f(0x1dc))/0x8*(parseInt(_0x3d018f(0x1ec))/0x9)+parseInt(_0x3d018f(0x1da))/0xa+parseInt(_0x3d018f(0x1de))/0xb;if(_0x25c63b===_0x32f7d7)break;else _0xd64bad['push'](_0xd64bad['shift']());}catch(_0xf7a595){_0xd64bad['push'](_0xd64bad['shift']());}}}(a69_0x4de9,0x4c6b5));import a69_0x13c5c6 from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';class Polygon extends a69_0x13c5c6{constructor(_0x21b5e0){const _0x508371=a69_0x9e3c;super(),this[_0x508371(0x1e8)]='Polygon',_0x21b5e0&&_0x21b5e0['length']>0x0&&getDeepth(_0x21b5e0)==0x2?this[_0x508371(0x1d9)](_0x21b5e0):this['setCoordinates'](_0x21b5e0);}[a69_0x4aeb8f(0x1ed)](_0x3a09ea){const _0x5dbed7=a69_0x4aeb8f;let _0x3c92cc=_0x3a09ea[0x0],_0x3c5b6f=_0x3a09ea[_0x3a09ea[_0x5dbed7(0x1e2)]-0x1];return _0x3c92cc[0x0]===_0x3c5b6f[0x0]&&_0x3c92cc[0x1]===_0x3c5b6f[0x1]&&_0x3c92cc[0x2]===_0x3c5b6f[0x2];}[a69_0x4aeb8f(0x1eb)](){const _0x3b7339=a69_0x4aeb8f;let _0x1c27a8=this[_0x3b7339(0x1ea)]();if(_0x1c27a8<0x2)return![];else{let _0x104cbb=JSON[_0x3b7339(0x1e5)](JSON['stringify'](this[_0x3b7339(0x1e0)]));_0x1c27a8>=0x3&&(!this[_0x3b7339(0x1ed)](_0x104cbb)&&_0x104cbb[_0x3b7339(0x1ee)](_0x104cbb[0x0])),this[_0x3b7339(0x1df)]([_0x104cbb]);}}['updatePoint'](_0xb56d4c,_0x2f81a0){const _0x378666=a69_0x4aeb8f;_0x2f81a0>=0x0&&_0x2f81a0<this['points'][_0x378666(0x1e2)]&&(this[_0x378666(0x1e0)][_0x2f81a0]=_0xb56d4c,this['generate']());}[a69_0x4aeb8f(0x1e1)](){return![];}['updateLastPoint'](_0x4daffc){const _0x998c36=a69_0x4aeb8f;this[_0x998c36(0x1d8)](_0x4daffc,this[_0x998c36(0x1e0)][_0x998c36(0x1e2)]-0x1);}}function a69_0x4de9(){const _0x39c569=['328889TxTAsN','setCoordinates','points','isPlot','length','1062NHqDXe','1588264Zzwmdc','parse','539041kgLOpg','16310gdomUW','type','3TvnIzN','getPointCount','generate','3399021OAmQXD','_closed','push','updatePoint','setPoints','1069950gNWUzF','1764175wzxQdZ','8QBSlBd','2QkPEqg'];a69_0x4de9=function(){return _0x39c569;};return a69_0x4de9();}function a69_0x9e3c(_0xf54c67,_0x1e631e){const _0x4de9bc=a69_0x4de9();return a69_0x9e3c=function(_0x9e3c99,_0x551063){_0x9e3c99=_0x9e3c99-0x1d8;let _0x45edb4=_0x4de9bc[_0x9e3c99];return _0x45edb4;},a69_0x9e3c(_0xf54c67,_0x1e631e);}export default Polygon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0xbabd63=a70_0x27bc;(function(_0x4403d7,_0x4f84f8){const _0x56be5d=a70_0x27bc,_0x7864f=_0x4403d7();while(!![]){try{const _0x2bf3d6=parseInt(_0x56be5d(0x14e))/0x1+-parseInt(_0x56be5d(0x14b))/0x2+parseInt(_0x56be5d(0x146))/0x3+-parseInt(_0x56be5d(0x141))/0x4*(parseInt(_0x56be5d(0x14d))/0x5)+parseInt(_0x56be5d(0x148))/0x6+-parseInt(_0x56be5d(0x143))/0x7*(parseInt(_0x56be5d(0x142))/0x8)+parseInt(_0x56be5d(0x150))/0x9;if(_0x2bf3d6===_0x4f84f8)break;else _0x7864f['push'](_0x7864f['shift']());}catch(_0x486660){_0x7864f['push'](_0x7864f['shift']());}}}(a70_0x5358,0x79c57));import{fromExtent}from'ol/geom/Polygon';function a70_0x5358(){const _0x1bb4af=['14500SEDihz','24kiwPjm','116858VIROmP','setPoints','generate','2274147ZdzlYD','getCoordinates','5636328CGBzJy','updateLastPoint','setCoordinates','723532nqKayA','Polygon','1265LbDXGr','26656qMhkaf','length','932895OiVgAx','updatePoint','points'];a70_0x5358=function(){return _0x1bb4af;};return a70_0x5358();}import{boundingExtent}from'ol/extent';function a70_0x27bc(_0x24127a,_0x2f25ab){const _0x5358c2=a70_0x5358();return a70_0x27bc=function(_0x27bcf0,_0x25939f){_0x27bcf0=_0x27bcf0-0x140;let _0x5a289e=_0x5358c2[_0x27bcf0];return _0x5a289e;},a70_0x27bc(_0x24127a,_0x2f25ab);}import a70_0x549e6c from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';class RectAngle extends a70_0x549e6c{constructor(_0x243e38){const _0x2fcfa2=a70_0x27bc;super(),this['type']=_0x2fcfa2(0x14c),_0x243e38&&_0x243e38['length']>0x0&&getDeepth(_0x243e38)==0x2?this[_0x2fcfa2(0x144)](_0x243e38):this[_0x2fcfa2(0x14a)](_0x243e38);}[a70_0xbabd63(0x145)](){const _0x1e71a1=a70_0xbabd63;if(this[_0x1e71a1(0x140)]['length']===0x2){let _0x30f5f4=[],_0x501ec9=boundingExtent(this[_0x1e71a1(0x140)]),_0x41a1dd=fromExtent(_0x501ec9);_0x30f5f4=_0x41a1dd[_0x1e71a1(0x147)](),this[_0x1e71a1(0x14a)](_0x30f5f4);}}['updatePoint'](_0x4be094,_0x1a3eea){const _0x3fac92=a70_0xbabd63;_0x1a3eea>=0x0&&_0x1a3eea<this[_0x3fac92(0x140)][_0x3fac92(0x14f)]&&(this[_0x3fac92(0x140)][_0x1a3eea]=_0x4be094,this[_0x3fac92(0x145)]());}[a70_0xbabd63(0x149)](_0x5394ae){const _0x153452=a70_0xbabd63;this[_0x153452(0x151)](_0x5394ae,this[_0x153452(0x140)][_0x153452(0x14f)]-0x1);}}export default RectAngle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a71_0x1a7a8c=a71_0x48a5;(function(_0x12de73,_0x589f1c){var _0x561f27=a71_0x48a5,_0xe61bb8=_0x12de73();while(!![]){try{var _0x2ff4d3=parseInt(_0x561f27(0x1e9))/0x1*(parseInt(_0x561f27(0x1f1))/0x2)+-parseInt(_0x561f27(0x1e2))/0x3+parseInt(_0x561f27(0x1eb))/0x4+parseInt(_0x561f27(0x1ed))/0x5*(-parseInt(_0x561f27(0x1ee))/0x6)+-parseInt(_0x561f27(0x1ef))/0x7+parseInt(_0x561f27(0x1df))/0x8+-parseInt(_0x561f27(0x1e6))/0x9*(-parseInt(_0x561f27(0x1e8))/0xa);if(_0x2ff4d3===_0x589f1c)break;else _0xe61bb8['push'](_0xe61bb8['shift']());}catch(_0x59adb5){_0xe61bb8['push'](_0xe61bb8['shift']());}}}(a71_0x56a6,0xc3cf6));import{LineString}from'ol/geom';import a71_0x5c20c2 from'ol/format/GeoJSON';function a71_0x48a5(_0xe40d3f,_0x157dcb){var _0x56a6e1=a71_0x56a6();return a71_0x48a5=function(_0x48a5b0,_0x40e231){_0x48a5b0=_0x48a5b0-0x1d8;var _0x4d8cad=_0x56a6e1[_0x48a5b0];return _0x4d8cad;},a71_0x48a5(_0xe40d3f,_0x157dcb);}import a71_0x43111d from'../../../mapView/Map';function a71_0x56a6(){var _0x2e8e9b=['slice','1904901vFnSsC','getGeoJson','getPointCount','points','1214865MLdEpJ','generate','50fENBjF','731ulpNCf','writeGeometryObject','3289012okaWYx','map','5iZFmLI','2340582hxRjXV','8193360BArtWj','setStyle','856byvmfZ','setPoints','length','getPlotType','parse','getMap','getPoints','finishDrawing','9500288oRDrJS','setMap'];a71_0x56a6=function(){return _0x2e8e9b;};return a71_0x56a6();}class Plot extends LineString{constructor(){super([]),this['points']=[];}[a71_0x1a7a8c(0x1da)](){return this['type'];}[a71_0x1a7a8c(0x1e3)](){var _0x2cf7e9=a71_0x1a7a8c;return new a71_0x5c20c2()[_0x2cf7e9(0x1ea)](this);}[a71_0x1a7a8c(0x1f0)](_0x35bb97){var _0x595ccc=a71_0x1a7a8c;this['style']=JSON[_0x595ccc(0x1db)](JSON['stringify'](_0x35bb97));}[a71_0x1a7a8c(0x1e0)](_0x4d8932){var _0xc9c99d=a71_0x1a7a8c;if(_0x4d8932&&_0x4d8932 instanceof a71_0x43111d)this[_0xc9c99d(0x1ec)]=_0x4d8932;else throw new Error('传入的不是地图对象!');}[a71_0x1a7a8c(0x1dc)](){var _0x2f95ef=a71_0x1a7a8c;return this[_0x2f95ef(0x1ec)];}['isPlot'](){return!![];}[a71_0x1a7a8c(0x1d8)](_0x5ae131){var _0x3cae2b=a71_0x1a7a8c;this[_0x3cae2b(0x1e5)]=!_0x5ae131?[]:_0x5ae131,this[_0x3cae2b(0x1e5)]['length']>=0x1&&(this[_0x3cae2b(0x1e7)]&&this[_0x3cae2b(0x1e7)]());}['generate'](){}[a71_0x1a7a8c(0x1dd)](){var _0x705e2b=a71_0x1a7a8c;return this[_0x705e2b(0x1e5)][_0x705e2b(0x1e1)](0x0);}[a71_0x1a7a8c(0x1e4)](){var _0x366fa9=a71_0x1a7a8c;return this['points'][_0x366fa9(0x1d9)];}[a71_0x1a7a8c(0x1de)](){}}export default Plot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a72_0x43a7(){var _0x2e1031=['80570vgUxKL','updateLastPoint','length','style','updatePoint','type','5973114yYwEWs','1732744pFUQtv','752444okJfaw','1050306ZnEfTH','6804875qRaxiq','setCoordinates','5aIshMz','points','setStyle','127534JuaNen','LineString'];a72_0x43a7=function(){return _0x2e1031;};return a72_0x43a7();}var a72_0x3d7600=a72_0x40d5;(function(_0x1e8fc0,_0x55efd7){var _0x3d5bfa=a72_0x40d5,_0x1a0747=_0x1e8fc0();while(!![]){try{var _0x249d2e=parseInt(_0x3d5bfa(0x1f4))/0x1+parseInt(_0x3d5bfa(0x1f6))/0x2+parseInt(_0x3d5bfa(0x1ee))/0x3+-parseInt(_0x3d5bfa(0x1fe))/0x4*(parseInt(_0x3d5bfa(0x1f1))/0x5)+parseInt(_0x3d5bfa(0x1fc))/0x6+-parseInt(_0x3d5bfa(0x1ef))/0x7+parseInt(_0x3d5bfa(0x1fd))/0x8;if(_0x249d2e===_0x55efd7)break;else _0x1a0747['push'](_0x1a0747['shift']());}catch(_0x3e951e){_0x1a0747['push'](_0x1a0747['shift']());}}}(a72_0x43a7,0x8b1c5));import a72_0x55493a from'./BaseLine';class Polyline extends a72_0x55493a{constructor(_0xb3537f){var _0x438c2c=a72_0x40d5;super(),this[_0x438c2c(0x1fb)]=_0x438c2c(0x1f5),this[_0x438c2c(0x1f0)](_0xb3537f);}['generate'](){var _0x518aca=a72_0x40d5;this['setCoordinates'](this[_0x518aca(0x1f2)]);}['updatePoint'](_0x2f0f06,_0x111b81){var _0x2f9089=a72_0x40d5;_0x111b81>=0x0&&_0x111b81<this[_0x2f9089(0x1f2)][_0x2f9089(0x1f8)]&&(this[_0x2f9089(0x1f2)][_0x111b81]=_0x2f0f06,this['generate']());}[a72_0x3d7600(0x1f7)](_0x247d49){var _0x637b9=a72_0x3d7600;this[_0x637b9(0x1fa)](_0x247d49,this[_0x637b9(0x1f2)][_0x637b9(0x1f8)]-0x1);}['isPlot'](){return![];}[a72_0x3d7600(0x1f3)](_0x4d4fa1){var _0x3560ca=a72_0x3d7600;this[_0x3560ca(0x1f9)]=JSON['parse'](JSON['stringify'](_0x4d4fa1));}}function a72_0x40d5(_0x524616,_0x2a0f0a){var _0x43a76a=a72_0x43a7();return a72_0x40d5=function(_0x40d53b,_0x2c9d52){_0x40d53b=_0x40d53b-0x1ee;var _0x544ae2=_0x43a76a[_0x40d53b];return _0x544ae2;},a72_0x40d5(_0x524616,_0x2a0f0a);}export default Polyline;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x379467,_0x30e83e){const _0x3cfe83=a75_0x362c,_0x31fb4b=_0x379467();while(!![]){try{const _0x9e5cad=parseInt(_0x3cfe83(0x8e))/0x1*(-parseInt(_0x3cfe83(0xd0))/0x2)+parseInt(_0x3cfe83(0x8d))/0x3*(parseInt(_0x3cfe83(0xc0))/0x4)+parseInt(_0x3cfe83(0xba))/0x5+-parseInt(_0x3cfe83(0xcc))/0x6+-parseInt(_0x3cfe83(0xcb))/0x7+-parseInt(_0x3cfe83(0x97))/0x8*(-parseInt(_0x3cfe83(0xa0))/0x9)+-parseInt(_0x3cfe83(0xa8))/0xa*(parseInt(_0x3cfe83(0xaa))/0xb);if(_0x9e5cad===_0x30e83e)break;else _0x31fb4b['push'](_0x31fb4b['shift']());}catch(_0x50d492){_0x31fb4b['push'](_0x31fb4b['shift']());}}}(a75_0x10ec,0x231b3));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';function a75_0x10ec(){const _0x30196d=['scale','TOP','4agLYkU','MultiPolygon','.png','getType','text','getContext','drawImage','getPixelFromCoordinate','horizontalOrigin','image','imgUrl','114156iYbcii','449952JVKJBL','show','restore','pixelOffset','8bPJnCH','pixelOffsetY','getFlatInteriorPoint','modelKind','642909GUkhKW','47668BUMAGS','color','stringify','verticalOrigin','model/','data','zIndex','height','parse','876776kQNtIz','pixelRatio','pixelSize','putImageData','save','getStride','replace','rotation','match','9IsnTos','changeColor','globalAlpha','LEFT','translate','pixelOffsetX','toUpperCase','opacity','241880VotqwL','context','11iojbQJ','rotate','getImageData','width','model','point','markerColor','CENTER','MultiLineString','LineString','outlineColor','MultiPoint','getFlatInteriorPoints','canvas','push','label','630275XfbdVH','length','radius','billboard'];a75_0x10ec=function(){return _0x30196d;};return a75_0x10ec();}import a75_0x320375 from'ol/style/Style';import a75_0x102ce8 from'ol/style/Circle';import a75_0x373067 from'ol/style/Fill';import a75_0x3ab6fa from'ol/style/Stroke';function getMainStyle(_0x430fd1,_0x1e1610=0x0,_0xc0b9e5){const _0x3bc649=a75_0x362c;let _0x1a111e;return _0x430fd1['image']||_0x430fd1[_0x3bc649(0xb0)]?_0x1a111e=new a75_0x320375({'renderer':(_0x2ef664,_0x28072d)=>{preLoadImageRenderFunction(_0x430fd1,_0x2ef664,_0x28072d,_0xc0b9e5,_rendererFunction);},'zIndex':Number(_0x1e1610)}):_0x1a111e=new a75_0x320375({'image':new a75_0x102ce8({'radius':_0x430fd1[_0x3bc649(0xbc)]?_0x430fd1[_0x3bc649(0xbc)]:_0x430fd1[_0x3bc649(0x99)],'fill':new a75_0x373067({'color':getColor(_0x430fd1['color'],_0x430fd1[_0x3bc649(0xa7)])}),'stroke':_0x430fd1['outline']&&_0x430fd1['outlineColor']?new a75_0x3ab6fa({'color':getColor(_0x430fd1[_0x3bc649(0xb4)],_0x430fd1['outlineOpacity']),'width':_0x430fd1['outlineWidth']}):undefined}),'zIndex':Number(_0x1e1610)}),_0x1a111e;}function _rendererFunction(_0x1c1594,_0x3577d2,_0x58ba42,_0x4d71c4,_0x1a1f7b){const _0x5beedd=a75_0x362c;if(!_0x1a1f7b||_0x1a1f7b['width']===0x0){let _0x154e81=new Image();_0x154e81['src']=_0x1c1594['image'];}if(_0x1c1594[_0x5beedd(0xa1)]&&_0x1c1594[_0x5beedd(0x8f)]!==''){let _0x429e3b=_0x1c1594['scale']||0x1,_0x12618d=_0x1c1594[_0x5beedd(0xad)]||_0x1a1f7b[_0x5beedd(0xad)]*_0x429e3b,_0x230e5e=_0x1c1594['height']||_0x1a1f7b[_0x5beedd(0x95)]*_0x429e3b;_0x12618d=_0x12618d*_0x58ba42['pixelRatio'],_0x230e5e=_0x230e5e*_0x58ba42[_0x5beedd(0x98)];const _0x561e5f=document['createElement'](_0x5beedd(0xb7));_0x561e5f['width']=_0x12618d,_0x561e5f[_0x5beedd(0x95)]=_0x230e5e;const _0x1b2c85=_0x561e5f[_0x5beedd(0xc5)]('2d');_0x1b2c85===null||_0x1b2c85===void 0x0?void 0x0:_0x1b2c85['drawImage'](_0x1a1f7b,0x0,0x0,_0x12618d,_0x230e5e);let _0x3226ed=_0x1b2c85===null||_0x1b2c85===void 0x0?void 0x0:_0x1b2c85[_0x5beedd(0xac)](0x0,0x0,_0x12618d,_0x230e5e),_0xd55865=_0x3226ed===null||_0x3226ed===void 0x0?void 0x0:_0x3226ed[_0x5beedd(0x93)];_0x1a1f7b=_0x561e5f;let _0x4d410b=HexToRgb(_0x1c1594[_0x5beedd(0x8f)]);if(_0xd55865&&_0x4d410b)for(var _0x2fff2a=0x0;_0x2fff2a<_0xd55865[_0x5beedd(0xbb)];_0x2fff2a+=0x4){_0xd55865[_0x2fff2a]=_0x4d410b[0x0],_0xd55865[_0x2fff2a+0x1]=_0x4d410b[0x1],_0xd55865[_0x2fff2a+0x2]=_0x4d410b[0x2];}_0x3226ed&&(_0x1b2c85===null||_0x1b2c85===void 0x0?void 0x0:_0x1b2c85[_0x5beedd(0x9a)](_0x3226ed,0x0,0x0));}let _0x520bed=_0x58ba42['geometry'],_0xa95541=_0x58ba42[_0x5beedd(0x98)],_0x40fd8e=_0x520bed[_0x5beedd(0x9c)](),_0x3d1c07=_0x520bed[_0x5beedd(0xc3)](),_0x49f5f3=[];switch(_0x3d1c07){case _0x5beedd(0xb3):_0x49f5f3=_0x520bed['getFlatMidpoint']();break;case _0x5beedd(0xb2):_0x49f5f3=_0x520bed['getFlatMidpoints'](),_0x40fd8e=0x2;break;case'Polygon':_0x49f5f3=_0x520bed[_0x5beedd(0xd2)](),_0x40fd8e=0x3;break;case _0x5beedd(0xc1):{let _0x3d78e0=_0x520bed[_0x5beedd(0xb6)]();_0x49f5f3=[];for(let _0x47482c=0x0,_0x32b873=_0x3d78e0['length'];_0x47482c<_0x32b873;_0x47482c+=0x3){_0x49f5f3['push'](_0x3d78e0[_0x47482c],_0x3d78e0[_0x47482c+0x1]);}if(_0x49f5f3['length']===0x0)return;_0x40fd8e=0x2;break;}}if(_0x49f5f3[_0x5beedd(0xbb)]>0x0&&_0x4d71c4)for(let _0x424e09=0x0,_0x2200fe=_0x49f5f3['length'];_0x424e09<_0x2200fe;_0x424e09+=_0x40fd8e){let _0x379226=[_0x49f5f3[_0x424e09],_0x49f5f3[_0x424e09+0x1]],_0x203a86=_0x4d71c4[_0x5beedd(0xc7)](_0x379226);_0x203a86=[_0x203a86[0x0]*_0xa95541,_0x203a86[0x1]*_0xa95541],drawImage(_0x1c1594,_0x203a86,_0x58ba42,_0x1a1f7b);}else{if(_0x3d1c07===_0x5beedd(0xb5))for(let _0xd4662b of _0x3577d2){drawImage(_0x1c1594,_0xd4662b,_0x58ba42,_0x1a1f7b);}else drawImage(_0x1c1594,_0x3577d2,_0x58ba42,_0x1a1f7b);}}function HexToRgb(_0x370564){const _0x26d134=a75_0x362c;_0x370564=_0x370564[_0x26d134(0x9d)]('#','');let _0x222656=_0x370564[_0x26d134(0x9f)](/../g);if(_0x222656){for(let _0x130063=0x0;_0x130063<0x3;_0x130063++)_0x222656[_0x130063]=parseInt(_0x222656[_0x130063],0x10);}return _0x222656;}export function getImageOlStyle(_0x201cbc,_0x497bc9,_0x1ca792,_0x18e869){const _0x129baf=a75_0x362c;var _0x3f7ccb;if(_0x201cbc&&_0x201cbc['show']!==![]){_0x201cbc=JSON[_0x129baf(0x96)](JSON[_0x129baf(0x90)](_0x201cbc)),_0x497bc9=(_0x3f7ccb=_0x201cbc[_0x129baf(0x94)])!==null&&_0x3f7ccb!==void 0x0?_0x3f7ccb:_0x497bc9;let _0x27668c=isShowStyle(_0x201cbc,_0x1ca792,_0x18e869);if(_0x27668c)return _0x201cbc[_0x129baf(0xc9)]=parseImage(_0x201cbc['image']),getMainStyle(_0x201cbc,_0x497bc9,_0x18e869);}}export function getPointStyle(_0x51f4bf,_0x595cea,_0x3f425e,_0x5689da){const _0x40f215=a75_0x362c;var _0x4c03bf,_0x20bf56;_0x51f4bf=JSON[_0x40f215(0x96)](JSON[_0x40f215(0x90)](_0x51f4bf));let _0x1db5df=(_0x4c03bf=_0x51f4bf[_0x40f215(0x94)])!==null&&_0x4c03bf!==void 0x0?_0x4c03bf:0x0,_0x278a5f=[],_0x20e941=getImageOlStyle(_0x51f4bf,_0x1db5df,_0x3f425e,_0x5689da);_0x20e941&&_0x278a5f[_0x40f215(0xb8)](_0x20e941);let _0x37645d=getImageOlStyle(_0x51f4bf['billboard'],_0x1db5df,_0x3f425e,_0x5689da);_0x37645d&&_0x278a5f[_0x40f215(0xb8)](_0x37645d);if(_0x51f4bf['model']&&_0x51f4bf['model']['show']!==![]){let _0x5ac857=isShowStyle(_0x51f4bf[_0x40f215(0xae)],_0x3f425e,_0x5689da);if(_0x5ac857){let _0x43ec19=(_0x20bf56=_0x51f4bf[_0x40f215(0xae)][_0x40f215(0x94)])!==null&&_0x20bf56!==void 0x0?_0x20bf56:_0x1db5df,_0x1f23ae=_0x51f4bf[_0x40f215(0xae)][_0x40f215(0xca)]||_0x40f215(0x92)+_0x51f4bf[_0x40f215(0xae)][_0x40f215(0x8c)]+_0x40f215(0xc2);_0x51f4bf[_0x40f215(0xbe)]=0x1,_0x51f4bf[_0x40f215(0xad)]=0x30,_0x51f4bf[_0x40f215(0x95)]=0x30,_0x51f4bf[_0x40f215(0x91)]=_0x40f215(0xb1),_0x278a5f[_0x40f215(0xb8)](getMainStyle(_0x51f4bf['model'],_0x43ec19,_0x5689da));}}if(_0x51f4bf['label']&&_0x51f4bf['label'][_0x40f215(0xcd)]!==![]){let _0x1ba6c4=new a75_0x320375({'text':createTextStyle(_0x51f4bf[_0x40f215(0xb9)],_0x595cea,_0x3f425e,_0x5689da),'zIndex':Number(_0x1db5df)+0x1});_0x278a5f['push'](_0x1ba6c4);}return _0x278a5f;}export function getPointSingleStyle(_0x2e743b,_0x42057c,_0x26961f,_0x4f941b){const _0x43e8e0=a75_0x362c;_0x42057c=JSON[_0x43e8e0(0x96)](JSON['stringify'](_0x42057c));let _0x43469d=_0x42057c['label'],_0x5a3510;_0x43469d&&(_0x5a3510=_0x43469d[_0x43e8e0(0xc4)]?_0x43469d[_0x43e8e0(0xc4)]:'');if(_0x2e743b===_0x43e8e0(0xbd))return _0x42057c['image']=parseImage(_0x42057c[_0x43e8e0(0xc9)]),getPointStyle(_0x42057c,_0x5a3510,_0x26961f,_0x4f941b);else{if(_0x2e743b===_0x43e8e0(0xae)){let _0x2e77c2=_0x42057c[_0x43e8e0(0xca)]||'model/'+_0x42057c[_0x43e8e0(0x8c)]+_0x43e8e0(0xc2);return _0x42057c[_0x43e8e0(0xbe)]=0x1,_0x42057c[_0x43e8e0(0xad)]=0x30,_0x42057c[_0x43e8e0(0x95)]=0x30,_0x42057c[_0x43e8e0(0x91)]=_0x43e8e0(0xb1),getPointStyle(_0x42057c,_0x5a3510,_0x26961f,_0x4f941b);}else{if(_0x2e743b==='cloud')return getPointStyle(_0x42057c,_0x5a3510,_0x26961f,_0x4f941b);else{if(_0x2e743b===_0x43e8e0(0xaf))return getPointStyle(_0x42057c,_0x5a3510,_0x26961f,_0x4f941b);else return _0x2e743b===_0x43e8e0(0xb9)?new a75_0x320375({'text':createTextStyle(_0x42057c,_0x42057c[_0x43e8e0(0xc4)],_0x26961f,_0x4f941b),'zIndex':_0x42057c[_0x43e8e0(0x94)]}):getPointStyle(_0x42057c,_0x5a3510,_0x26961f,_0x4f941b);}}}}function a75_0x362c(_0x21c137,_0x562591){const _0x10ec00=a75_0x10ec();return a75_0x362c=function(_0x362cf4,_0x5692a2){_0x362cf4=_0x362cf4-0x8c;let _0x378f07=_0x10ec00[_0x362cf4];return _0x378f07;},a75_0x362c(_0x21c137,_0x562591);}function drawImage(_0x1e4a24,_0x5bdb2d,_0xd2ef92,_0x2c1382){const _0x11ba68=a75_0x362c;var _0x466006,_0x1bff72,_0x48a3c8,_0x127d11;let _0x570b21=_0xd2ef92[_0x11ba68(0xa9)];try{_0x570b21[_0x11ba68(0x9b)]();let _0x1ceec6=Number(_0x1e4a24[_0x11ba68(0xa5)]||((_0x466006=_0x1e4a24['pixelOffset'])===null||_0x466006===void 0x0?void 0x0:_0x466006[0x0])||0x0),_0x5051dd=Number(_0x1e4a24[_0x11ba68(0xd1)]||((_0x1bff72=_0x1e4a24[_0x11ba68(0xcf)])===null||_0x1bff72===void 0x0?void 0x0:_0x1bff72[0x1])||0x0);_0x570b21[_0x11ba68(0xa4)](_0x5bdb2d[0x0]+_0x1ceec6,_0x5bdb2d[0x1]+_0x5051dd);if(_0x1e4a24[_0x11ba68(0x9e)])_0x570b21[_0x11ba68(0xab)](toRadians(_0x1e4a24[_0x11ba68(0x9e)]));_0x570b21[_0x11ba68(0xa2)]=_0x1e4a24['opacity']!=null?_0x1e4a24['opacity']:0x1;if(_0x2c1382['width']>0x0){let _0x182bf2=_0x1e4a24[_0x11ba68(0xbe)]||0x1,_0x47f759=_0x1e4a24[_0x11ba68(0xad)]||_0x2c1382[_0x11ba68(0xad)]*_0x182bf2,_0x1d354b=_0x1e4a24[_0x11ba68(0x95)]||_0x2c1382['height']*_0x182bf2;_0x47f759=_0x47f759*_0xd2ef92[_0x11ba68(0x98)],_0x1d354b=_0x1d354b*_0xd2ef92[_0x11ba68(0x98)];_0x1e4a24['changeColor']&&(_0x47f759=_0x2c1382['width'],_0x1d354b=_0x2c1382[_0x11ba68(0x95)]);let _0x45e20b;switch((_0x48a3c8=_0x1e4a24[_0x11ba68(0xc8)])===null||_0x48a3c8===void 0x0?void 0x0:_0x48a3c8[_0x11ba68(0xa6)]()){default:case _0x11ba68(0xb1):_0x45e20b=-_0x47f759/0x2;break;case _0x11ba68(0xa3):_0x45e20b=0x0;break;case'RIGHT':_0x45e20b=-_0x47f759;break;}let _0x3bc5fa;switch((_0x127d11=_0x1e4a24[_0x11ba68(0x91)])===null||_0x127d11===void 0x0?void 0x0:_0x127d11['toUpperCase']()){default:case'BOTTOM':_0x3bc5fa=-_0x1d354b;break;case _0x11ba68(0xb1):_0x3bc5fa=-_0x1d354b/0x2;break;case _0x11ba68(0xbf):_0x3bc5fa=0x0;break;}_0x570b21[_0x11ba68(0xc6)](_0x2c1382,_0x45e20b,_0x3bc5fa,_0x47f759,_0x1d354b);}else _0x570b21[_0x11ba68(0xc6)](_0x2c1382,0x0,0x0);_0x570b21['restore']();}catch(_0x687a17){_0x570b21[_0x11ba68(0xce)](),console['warn'](_0x687a17);}}
|
|
1
|
+
(function(_0x519223,_0x5c43ef){const _0x1e5103=a75_0x28b7,_0x590ca5=_0x519223();while(!![]){try{const _0x6499f0=parseInt(_0x1e5103(0x1bb))/0x1+parseInt(_0x1e5103(0x1d6))/0x2*(-parseInt(_0x1e5103(0x1b3))/0x3)+-parseInt(_0x1e5103(0x1b6))/0x4*(-parseInt(_0x1e5103(0x1eb))/0x5)+parseInt(_0x1e5103(0x1da))/0x6+-parseInt(_0x1e5103(0x1ca))/0x7+-parseInt(_0x1e5103(0x1c7))/0x8+parseInt(_0x1e5103(0x1b4))/0x9*(parseInt(_0x1e5103(0x1f6))/0xa);if(_0x6499f0===_0x5c43ef)break;else _0x590ca5['push'](_0x590ca5['shift']());}catch(_0x8c54f1){_0x590ca5['push'](_0x590ca5['shift']());}}}(a75_0x45a0,0x52d0d));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';import a75_0xc96a1c from'ol/style/Style';import a75_0x149c6a from'ol/style/Circle';import a75_0x36ee80 from'ol/style/Fill';import a75_0x2675a5 from'ol/style/Stroke';function getMainStyle(_0x57f1c6,_0x1f093d=0x0,_0x39d8b8){const _0x4421ce=a75_0x28b7;let _0x57e278;return _0x57f1c6[_0x4421ce(0x1f4)]||_0x57f1c6['markerColor']?_0x57e278=new a75_0xc96a1c({'renderer':(_0x10e745,_0x241598)=>{preLoadImageRenderFunction(_0x57f1c6,_0x10e745,_0x241598,_0x39d8b8,_rendererFunction);},'zIndex':Number(_0x1f093d)}):_0x57e278=new a75_0xc96a1c({'image':new a75_0x149c6a({'radius':_0x57f1c6[_0x4421ce(0x1c9)]?_0x57f1c6['radius']:_0x57f1c6['pixelSize'],'fill':new a75_0x36ee80({'color':getColor(_0x57f1c6[_0x4421ce(0x1d2)],_0x57f1c6[_0x4421ce(0x1e2)])}),'stroke':_0x57f1c6[_0x4421ce(0x1e0)]&&_0x57f1c6['outlineColor']?new a75_0x2675a5({'color':getColor(_0x57f1c6[_0x4421ce(0x1cd)],_0x57f1c6['outlineOpacity']),'width':_0x57f1c6[_0x4421ce(0x1de)]}):undefined}),'zIndex':Number(_0x1f093d)}),_0x57e278;}function a75_0x45a0(){const _0x47c5a3=['pixelOffsetX','height','MultiLineString','image','push','350tyDdJq','getFlatMidpoint','putImageData','cloud','show','18bxgbmA','191817buYJXO','match','1014236cpCCvB','label','RIGHT','CENTER','rotate','20648mMpgfR','warn','stringify','getFlatInteriorPoints','restore','width','modelKind','model','horizontalOrigin','LineString','scale','getImageData','379664caBDib','zIndex','radius','2486645JpgTLo','pixelOffset','parse','outlineColor','context','drawImage','imgUrl','src','color','canvas','LEFT','getPixelFromCoordinate','170402xTzTim','.png','replace','save','1397700anfDqs','model/','MultiPoint','createElement','outlineWidth','BOTTOM','outline','billboard','opacity','geometry','text','changeColor','toUpperCase','pixelRatio','getFlatInteriorPoint','getStride','Polygon','5GbYrmC','getContext','data','length','verticalOrigin','rotation'];a75_0x45a0=function(){return _0x47c5a3;};return a75_0x45a0();}function a75_0x28b7(_0x2000f6,_0x38c68e){const _0x45a019=a75_0x45a0();return a75_0x28b7=function(_0x28b701,_0x8702cb){_0x28b701=_0x28b701-0x1b0;let _0x362f1a=_0x45a019[_0x28b701];return _0x362f1a;},a75_0x28b7(_0x2000f6,_0x38c68e);}function _rendererFunction(_0x3996db,_0x152b89,_0x58ed84,_0x1208fd,_0x290001){const _0xdca86b=a75_0x28b7;if(!_0x290001||_0x290001['width']===0x0){let _0x46715f=new Image();_0x46715f[_0xdca86b(0x1d1)]=_0x3996db[_0xdca86b(0x1f4)];}if(_0x3996db[_0xdca86b(0x1e5)]&&_0x3996db[_0xdca86b(0x1d2)]!==''){let _0x36577c=_0x3996db[_0xdca86b(0x1c5)]||0x1,_0x46e0e1=_0x3996db['width']||_0x290001[_0xdca86b(0x1c0)]*_0x36577c,_0x19eeb9=_0x3996db[_0xdca86b(0x1f2)]||_0x290001['height']*_0x36577c;_0x46e0e1=_0x46e0e1*_0x58ed84[_0xdca86b(0x1e7)],_0x19eeb9=_0x19eeb9*_0x58ed84['pixelRatio'];const _0x52d7d8=document[_0xdca86b(0x1dd)](_0xdca86b(0x1d3));_0x52d7d8['width']=_0x46e0e1,_0x52d7d8[_0xdca86b(0x1f2)]=_0x19eeb9;const _0x53c3de=_0x52d7d8[_0xdca86b(0x1ec)]('2d');_0x53c3de===null||_0x53c3de===void 0x0?void 0x0:_0x53c3de[_0xdca86b(0x1cf)](_0x290001,0x0,0x0,_0x46e0e1,_0x19eeb9);let _0x301d3a=_0x53c3de===null||_0x53c3de===void 0x0?void 0x0:_0x53c3de[_0xdca86b(0x1c6)](0x0,0x0,_0x46e0e1,_0x19eeb9),_0x2cecd8=_0x301d3a===null||_0x301d3a===void 0x0?void 0x0:_0x301d3a[_0xdca86b(0x1ed)];_0x290001=_0x52d7d8;let _0x3d382c=HexToRgb(_0x3996db[_0xdca86b(0x1d2)]);if(_0x2cecd8&&_0x3d382c)for(var _0x3b9c13=0x0;_0x3b9c13<_0x2cecd8['length'];_0x3b9c13+=0x4){_0x2cecd8[_0x3b9c13]=_0x3d382c[0x0],_0x2cecd8[_0x3b9c13+0x1]=_0x3d382c[0x1],_0x2cecd8[_0x3b9c13+0x2]=_0x3d382c[0x2];}_0x301d3a&&(_0x53c3de===null||_0x53c3de===void 0x0?void 0x0:_0x53c3de[_0xdca86b(0x1b0)](_0x301d3a,0x0,0x0));}let _0x228d4b=_0x58ed84[_0xdca86b(0x1e3)],_0x1dc9bb=_0x58ed84['pixelRatio'],_0x1f3db5=_0x228d4b[_0xdca86b(0x1e9)](),_0xda4a35=_0x228d4b['getType'](),_0x1c9bbf=[];switch(_0xda4a35){case _0xdca86b(0x1c4):_0x1c9bbf=_0x228d4b[_0xdca86b(0x1f7)]();break;case _0xdca86b(0x1f3):_0x1c9bbf=_0x228d4b['getFlatMidpoints'](),_0x1f3db5=0x2;break;case _0xdca86b(0x1ea):_0x1c9bbf=_0x228d4b[_0xdca86b(0x1e8)](),_0x1f3db5=0x3;break;case'MultiPolygon':{let _0x1b552c=_0x228d4b[_0xdca86b(0x1be)]();_0x1c9bbf=[];for(let _0x5296ca=0x0,_0x4df988=_0x1b552c[_0xdca86b(0x1ee)];_0x5296ca<_0x4df988;_0x5296ca+=0x3){_0x1c9bbf['push'](_0x1b552c[_0x5296ca],_0x1b552c[_0x5296ca+0x1]);}if(_0x1c9bbf[_0xdca86b(0x1ee)]===0x0)return;_0x1f3db5=0x2;break;}}if(_0x1c9bbf[_0xdca86b(0x1ee)]>0x0&&_0x1208fd)for(let _0x466ede=0x0,_0x59f22d=_0x1c9bbf['length'];_0x466ede<_0x59f22d;_0x466ede+=_0x1f3db5){let _0x41a187=[_0x1c9bbf[_0x466ede],_0x1c9bbf[_0x466ede+0x1]],_0x3a47e8=_0x1208fd[_0xdca86b(0x1d5)](_0x41a187);_0x3a47e8=[_0x3a47e8[0x0]*_0x1dc9bb,_0x3a47e8[0x1]*_0x1dc9bb],drawImage(_0x3996db,_0x3a47e8,_0x58ed84,_0x290001);}else{if(_0xda4a35===_0xdca86b(0x1dc))for(let _0x4a200b of _0x152b89){drawImage(_0x3996db,_0x4a200b,_0x58ed84,_0x290001);}else drawImage(_0x3996db,_0x152b89,_0x58ed84,_0x290001);}}function HexToRgb(_0x3f0c1c){const _0x37e0b6=a75_0x28b7;_0x3f0c1c=_0x3f0c1c[_0x37e0b6(0x1d8)]('#','');let _0x486996=_0x3f0c1c[_0x37e0b6(0x1b5)](/../g);if(_0x486996){for(let _0xe7b785=0x0;_0xe7b785<0x3;_0xe7b785++)_0x486996[_0xe7b785]=parseInt(_0x486996[_0xe7b785],0x10);}return _0x486996;}export function getImageOlStyle(_0x405e32,_0x56d2ac,_0x39e079,_0x3ce823){const _0x218d7e=a75_0x28b7;var _0x577041;if(_0x405e32&&_0x405e32[_0x218d7e(0x1b2)]!==![]){_0x405e32=JSON['parse'](JSON['stringify'](_0x405e32)),_0x56d2ac=(_0x577041=_0x405e32[_0x218d7e(0x1c8)])!==null&&_0x577041!==void 0x0?_0x577041:_0x56d2ac;let _0xd9d3bd=isShowStyle(_0x405e32,_0x39e079,_0x3ce823);if(_0xd9d3bd)return _0x405e32[_0x218d7e(0x1f4)]=parseImage(_0x405e32[_0x218d7e(0x1f4)]),getMainStyle(_0x405e32,_0x56d2ac,_0x3ce823);}}export function getPointStyle(_0x229561,_0x219f6f,_0x35c158,_0x140aef){const _0x5f560f=a75_0x28b7;var _0x3d53bd,_0x1c4942;_0x229561=JSON[_0x5f560f(0x1cc)](JSON['stringify'](_0x229561));let _0x5df3c3=(_0x3d53bd=_0x229561[_0x5f560f(0x1c8)])!==null&&_0x3d53bd!==void 0x0?_0x3d53bd:0x0,_0x3a144d=[],_0x1f1897=getImageOlStyle(_0x229561,_0x5df3c3,_0x35c158,_0x140aef);_0x1f1897&&_0x3a144d[_0x5f560f(0x1f5)](_0x1f1897);let _0x58a103=getImageOlStyle(_0x229561[_0x5f560f(0x1e1)],_0x5df3c3,_0x35c158,_0x140aef);_0x58a103&&_0x3a144d[_0x5f560f(0x1f5)](_0x58a103);if(_0x229561[_0x5f560f(0x1c2)]&&_0x229561[_0x5f560f(0x1c2)][_0x5f560f(0x1b2)]!==![]){let _0x284c7d=isShowStyle(_0x229561['model'],_0x35c158,_0x140aef);if(_0x284c7d){let _0x433c96=(_0x1c4942=_0x229561['model']['zIndex'])!==null&&_0x1c4942!==void 0x0?_0x1c4942:_0x5df3c3,_0x40e5ac=_0x229561['model'][_0x5f560f(0x1d0)]||_0x5f560f(0x1db)+_0x229561['model'][_0x5f560f(0x1c1)]+_0x5f560f(0x1d7);_0x229561['scale']=0x1,_0x229561[_0x5f560f(0x1c0)]=0x30,_0x229561['height']=0x30,_0x229561[_0x5f560f(0x1ef)]=_0x5f560f(0x1b9),_0x3a144d[_0x5f560f(0x1f5)](getMainStyle(_0x229561[_0x5f560f(0x1c2)],_0x433c96,_0x140aef));}}if(_0x229561[_0x5f560f(0x1b7)]&&_0x229561[_0x5f560f(0x1b7)][_0x5f560f(0x1b2)]!==![]){let _0x33bd83=new a75_0xc96a1c({'text':createTextStyle(_0x229561[_0x5f560f(0x1b7)],_0x219f6f,_0x35c158,_0x140aef),'zIndex':Number(_0x5df3c3)+0x1});_0x3a144d[_0x5f560f(0x1f5)](_0x33bd83);}return _0x3a144d;}export function getPointSingleStyle(_0xe78826,_0x3dd865,_0x2319d7,_0x353fde){const _0x556c0e=a75_0x28b7;_0x3dd865=JSON['parse'](JSON[_0x556c0e(0x1bd)](_0x3dd865));let _0x2f4ada=_0x3dd865[_0x556c0e(0x1b7)],_0x355426;_0x2f4ada&&(_0x355426=_0x2f4ada[_0x556c0e(0x1e4)]?_0x2f4ada[_0x556c0e(0x1e4)]:'');if(_0xe78826===_0x556c0e(0x1e1))return _0x3dd865[_0x556c0e(0x1f4)]=parseImage(_0x3dd865[_0x556c0e(0x1f4)]),getPointStyle(_0x3dd865,_0x355426,_0x2319d7,_0x353fde);else{if(_0xe78826===_0x556c0e(0x1c2)){let _0x7ef7af=_0x3dd865['imgUrl']||_0x556c0e(0x1db)+_0x3dd865['modelKind']+_0x556c0e(0x1d7);return _0x3dd865[_0x556c0e(0x1c5)]=0x1,_0x3dd865[_0x556c0e(0x1c0)]=0x30,_0x3dd865[_0x556c0e(0x1f2)]=0x30,_0x3dd865[_0x556c0e(0x1ef)]=_0x556c0e(0x1b9),getPointStyle(_0x3dd865,_0x355426,_0x2319d7,_0x353fde);}else{if(_0xe78826===_0x556c0e(0x1b1))return getPointStyle(_0x3dd865,_0x355426,_0x2319d7,_0x353fde);else{if(_0xe78826==='point')return getPointStyle(_0x3dd865,_0x355426,_0x2319d7,_0x353fde);else return _0xe78826===_0x556c0e(0x1b7)?new a75_0xc96a1c({'text':createTextStyle(_0x3dd865,_0x3dd865[_0x556c0e(0x1e4)],_0x2319d7,_0x353fde),'zIndex':_0x3dd865[_0x556c0e(0x1c8)]}):getPointStyle(_0x3dd865,_0x355426,_0x2319d7,_0x353fde);}}}}function drawImage(_0x24f5c0,_0x7b903,_0x1e3dde,_0x198bae){const _0x24f9c2=a75_0x28b7;var _0x4eacb2,_0x21e7a7,_0x268ba9,_0x51fcf3;let _0x5eb1cb=_0x1e3dde[_0x24f9c2(0x1ce)];try{_0x5eb1cb[_0x24f9c2(0x1d9)]();let _0x4cb4ff=Number(_0x24f5c0[_0x24f9c2(0x1f1)]||((_0x4eacb2=_0x24f5c0[_0x24f9c2(0x1cb)])===null||_0x4eacb2===void 0x0?void 0x0:_0x4eacb2[0x0])||0x0),_0x2c534b=Number(_0x24f5c0['pixelOffsetY']||((_0x21e7a7=_0x24f5c0['pixelOffset'])===null||_0x21e7a7===void 0x0?void 0x0:_0x21e7a7[0x1])||0x0);_0x5eb1cb['translate'](_0x7b903[0x0]+_0x4cb4ff,_0x7b903[0x1]+_0x2c534b);if(_0x24f5c0[_0x24f9c2(0x1f0)])_0x5eb1cb[_0x24f9c2(0x1ba)](toRadians(_0x24f5c0[_0x24f9c2(0x1f0)]));_0x5eb1cb['globalAlpha']=_0x24f5c0['opacity']!=null?_0x24f5c0['opacity']:0x1;if(_0x198bae[_0x24f9c2(0x1c0)]>0x0){let _0x6a699f=_0x24f5c0[_0x24f9c2(0x1c5)]||0x1,_0x35c26b=_0x24f5c0[_0x24f9c2(0x1c0)]||_0x198bae[_0x24f9c2(0x1c0)]*_0x6a699f,_0x1f7eaf=_0x24f5c0[_0x24f9c2(0x1f2)]||_0x198bae[_0x24f9c2(0x1f2)]*_0x6a699f;_0x35c26b=_0x35c26b*_0x1e3dde[_0x24f9c2(0x1e7)],_0x1f7eaf=_0x1f7eaf*_0x1e3dde[_0x24f9c2(0x1e7)];_0x24f5c0[_0x24f9c2(0x1e5)]&&(_0x35c26b=_0x198bae[_0x24f9c2(0x1c0)],_0x1f7eaf=_0x198bae[_0x24f9c2(0x1f2)]);let _0x1e9af3;switch((_0x268ba9=_0x24f5c0[_0x24f9c2(0x1c3)])===null||_0x268ba9===void 0x0?void 0x0:_0x268ba9['toUpperCase']()){default:case _0x24f9c2(0x1b9):_0x1e9af3=-_0x35c26b/0x2;break;case _0x24f9c2(0x1d4):_0x1e9af3=0x0;break;case _0x24f9c2(0x1b8):_0x1e9af3=-_0x35c26b;break;}let _0x24904f;switch((_0x51fcf3=_0x24f5c0[_0x24f9c2(0x1ef)])===null||_0x51fcf3===void 0x0?void 0x0:_0x51fcf3[_0x24f9c2(0x1e6)]()){default:case _0x24f9c2(0x1df):_0x24904f=-_0x1f7eaf;break;case _0x24f9c2(0x1b9):_0x24904f=-_0x1f7eaf/0x2;break;case'TOP':_0x24904f=0x0;break;}_0x5eb1cb[_0x24f9c2(0x1cf)](_0x198bae,_0x1e9af3,_0x24904f,_0x35c26b,_0x1f7eaf);}else _0x5eb1cb[_0x24f9c2(0x1cf)](_0x198bae,0x0,0x0);_0x5eb1cb['restore']();}catch(_0x1b4258){_0x5eb1cb[_0x24f9c2(0x1bf)](),console[_0x24f9c2(0x1bc)](_0x1b4258);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x585d75,_0x234ffb){var _0x58a5ef=a76_0x3ffc,_0x5b577d=_0x585d75();while(!![]){try{var _0x1f1402=parseInt(_0x58a5ef(0x21f))/0x1*(-parseInt(_0x58a5ef(0x1ee))/0x2)+parseInt(_0x58a5ef(0x209))/0x3+parseInt(_0x58a5ef(0x1f6))/0x4+parseInt(_0x58a5ef(0x20e))/0x5*(-parseInt(_0x58a5ef(0x1ec))/0x6)+parseInt(_0x58a5ef(0x213))/0x7*(-parseInt(_0x58a5ef(0x21d))/0x8)+parseInt(_0x58a5ef(0x1ff))/0x9*(-parseInt(_0x58a5ef(0x21b))/0xa)+parseInt(_0x58a5ef(0x225))/0xb;if(_0x1f1402===_0x234ffb)break;else _0x5b577d['push'](_0x5b577d['shift']());}catch(_0x389007){_0x5b577d['push'](_0x5b577d['shift']());}}}(a76_0x1964,0x84db2));function a76_0x3ffc(_0x19d172,_0x5da126){var _0x19640c=a76_0x1964();return a76_0x3ffc=function(_0x3ffc51,_0x18206b){_0x3ffc51=_0x3ffc51-0x1ea;var _0x4f3ff0=_0x19640c[_0x3ffc51];return _0x4f3ff0;},a76_0x3ffc(_0x19d172,_0x5da126);}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(_0x29fe52,_0x1b0509,_0x1f6ce6,_0xfb08f){var _0x37cdf9=a76_0x3ffc,_0x3f2076;let _0x119971=(_0x3f2076=_0x29fe52[_0x37cdf9(0x227)])!==null&&_0x3f2076!==void 0x0?_0x3f2076:0x0,_0x1e02f7=new Style();_0x1e02f7[_0x37cdf9(0x202)](_0x119971),_0x1e02f7['setFill'](new Fill({'color':_0x37cdf9(0x20f)}));if(_0x29fe52[_0x37cdf9(0x1f5)]!==![]){if(!_0x29fe52[_0x37cdf9(0x1fd)]||_0x29fe52[_0x37cdf9(0x1fd)]===_0x37cdf9(0x1ea))_0x1e02f7[_0x37cdf9(0x20d)](new Fill({'color':getColor(_0x29fe52[_0x37cdf9(0x1ea)],_0x29fe52[_0x37cdf9(0x222)])}));else{if(_0x29fe52[_0x37cdf9(0x1fd)]===_0x37cdf9(0x1fe))_0x1e02f7[_0x37cdf9(0x1f2)]((_0x46f4b7,_0x1172ad)=>{preLoadImageRenderFunction(_0x29fe52,_0x46f4b7,_0x1172ad,_0xfb08f,_rendererFunction);});else _0x29fe52[_0x37cdf9(0x1fd)]==='grid'||_0x29fe52[_0x37cdf9(0x1fd)]===_0x37cdf9(0x1f4)||_0x29fe52['fillType']==='checkerboard'?_0x1e02f7[_0x37cdf9(0x1f2)]((_0x291119,_0x452068)=>{_rendererFunction(_0x29fe52,_0x291119,_0x452068,_0xfb08f,null);}):_0x1e02f7[_0x37cdf9(0x20d)](new Fill({'color':getColor(_0x29fe52[_0x37cdf9(0x1ea)],_0x29fe52['opacity'])}));}}_0x29fe52['outline']!==![]&&_0x1e02f7[_0x37cdf9(0x219)](new Stroke({'color':getColor(_0x29fe52[_0x37cdf9(0x20b)],_0x29fe52[_0x37cdf9(0x211)]),'width':_0x29fe52[_0x37cdf9(0x21e)]}));let _0x243dc5=[_0x1e02f7];_0x29fe52[_0x37cdf9(0x218)]&&!_0x29fe52[_0x37cdf9(0x218)][_0x37cdf9(0x223)]&&(_0x29fe52['billboard'][_0x37cdf9(0x223)]=_0x37cdf9(0x205));let _0x207db8=getImageOlStyle(_0x29fe52['billboard'],_0x119971,_0x1f6ce6,_0xfb08f);_0x207db8&&_0x243dc5['push'](_0x207db8);if(_0x1b0509){const _0x590305=createTextStyle(_0x29fe52,_0x1b0509,_0x1f6ce6,_0xfb08f);_0x590305&&(_0x1e02f7[_0x37cdf9(0x204)](_0x590305),_0x1e02f7[_0x37cdf9(0x202)](Number(_0x119971)+0x1));}return _0x243dc5;}function _rendererFunction(_0xf9269c,_0x433764,_0x40d05b,_0x13dceb,_0x561219){var _0x504043=a76_0x3ffc;try{var _0xa68a75=_0x40d05b[_0x504043(0x1ef)];for(var _0x1db637=0x0,_0x14a1c5=_0x433764[_0x504043(0x207)];_0x1db637<_0x14a1c5;_0x1db637++){_0xa68a75[_0x504043(0x1f8)](),_0xa68a75[_0x504043(0x1f0)]();var _0xd9623e=_0x433764[_0x1db637];let _0x54a52c=boundingExtent(_0xd9623e);_0xa68a75['translate'](_0x54a52c[0x0],_0x54a52c[0x1]);let _0x6b5011;switch(_0xf9269c[_0x504043(0x1fd)]){case _0x504043(0x1fe):_0x6b5011=_getImagePattern(_0xa68a75,_0x54a52c,_0xf9269c,_0x561219);break;case _0x504043(0x228):_0x6b5011=_getGridPattern(_0xa68a75,_0x54a52c,_0xf9269c);break;case _0x504043(0x1f4):_0x6b5011=_getStripePattern(_0xa68a75,_0x54a52c,_0xf9269c);break;case _0x504043(0x221):_0x6b5011=_getCheckerBoardPattern(_0xa68a75,_0x54a52c,_0xf9269c);break;default:_0x6b5011=_0x504043(0x226);break;}for(var _0x34ea19=0x0,_0x1c6702=_0xd9623e[_0x504043(0x207)];_0x34ea19<_0x1c6702;_0x34ea19++){var _0x33e161=_0xd9623e[_0x34ea19];_0x34ea19===0x0?_0xa68a75[_0x504043(0x201)](_0x33e161[0x0]-_0x54a52c[0x0],_0x33e161[0x1]-_0x54a52c[0x1]):_0xa68a75[_0x504043(0x216)](_0x33e161[0x0]-_0x54a52c[0x0],_0x33e161[0x1]-_0x54a52c[0x1]);}_0xa68a75[_0x504043(0x1f3)](),_0xa68a75['fillStyle']='rgba(0,0,0,0.01)',_0xa68a75[_0x504043(0x1f5)](),_0xa68a75['fillStyle']=_0x6b5011,_0xa68a75[_0x504043(0x1f5)](),_0xf9269c[_0x504043(0x1fb)]?(_0xa68a75[_0x504043(0x1f1)]=getColor(_0xf9269c[_0x504043(0x20b)],_0xf9269c[_0x504043(0x211)]),_0xa68a75[_0x504043(0x215)]=_0xf9269c[_0x504043(0x21e)]):_0xa68a75[_0x504043(0x1f1)]=_0x504043(0x1eb),_0xa68a75[_0x504043(0x1f9)](),_0xa68a75[_0x504043(0x21c)]();}}catch(_0x3b4bd7){_0xa68a75[_0x504043(0x21c)](),console[_0x504043(0x220)](_0x3b4bd7);}}function _getImagePattern(_0x371ac4,_0x2331b5,_0x2a0daf,_0x399fdf){var _0x2ed9a1=a76_0x3ffc;if(!_0x399fdf||_0x399fdf['width']===0x0){let _0x259d8e=new Image();_0x259d8e[_0x2ed9a1(0x20a)]=_0x2a0daf['image'];}var _0x1db34f=getSize(_0x2331b5);const _0xdc9a76=document[_0x2ed9a1(0x224)](_0x2ed9a1(0x217)),_0x1a346c=_0xdc9a76['getContext']('2d');return _0xdc9a76[_0x2ed9a1(0x21a)]=Math[_0x2ed9a1(0x203)](_0x1db34f[0x0]/_0x2a0daf['repeatX'],0x1),_0xdc9a76[_0x2ed9a1(0x206)]=Math[_0x2ed9a1(0x203)](_0x1db34f[0x1]/_0x2a0daf['repeatY'],0x1),_0x1a346c&&(_0x1a346c['globalAlpha']=_0x2a0daf[_0x2ed9a1(0x222)],_0x1a346c[_0x2ed9a1(0x214)](_0x399fdf,0x0,0x0,_0xdc9a76[_0x2ed9a1(0x21a)],_0xdc9a76[_0x2ed9a1(0x206)])),_0x371ac4['createPattern'](_0xdc9a76,'repeat');}function _getGridPattern(_0x492ce3,_0x211a8a,_0x290853){var _0x3f320=a76_0x3ffc,_0x560f9f=getSize(_0x211a8a);const _0x1104b5=document['createElement'](_0x3f320(0x217)),_0x27d60b=_0x1104b5[_0x3f320(0x1fa)]('2d');return _0x1104b5[_0x3f320(0x21a)]=Math[_0x3f320(0x203)](_0x560f9f[0x0]/_0x290853['grid_lineCount'],0x1),_0x1104b5['height']=Math[_0x3f320(0x203)](_0x560f9f[0x1]/_0x290853[_0x3f320(0x1ed)],0x1),_0x27d60b&&(_0x27d60b[_0x3f320(0x1f1)]=getColor(_0x290853[_0x3f320(0x1ea)],_0x290853[_0x3f320(0x222)]),_0x27d60b['lineWidth']=_0x290853[_0x3f320(0x212)]*0x4,_0x27d60b['beginPath'](),_0x27d60b['moveTo'](0x0,_0x1104b5[_0x3f320(0x206)]),_0x27d60b[_0x3f320(0x216)](_0x1104b5['width'],_0x1104b5[_0x3f320(0x206)]),_0x27d60b[_0x3f320(0x201)](_0x1104b5[_0x3f320(0x21a)],0x0),_0x27d60b[_0x3f320(0x216)](_0x1104b5[_0x3f320(0x21a)],_0x1104b5[_0x3f320(0x206)]),_0x27d60b[_0x3f320(0x1f9)]()),_0x492ce3[_0x3f320(0x1fc)](_0x1104b5,_0x3f320(0x200));}function _getStripePattern(_0x76f7ef,_0x457a90,_0x3448b7){var _0x814cff=a76_0x3ffc,_0x29a8f9=getSize(_0x457a90);const _0xac0904=document[_0x814cff(0x224)](_0x814cff(0x217)),_0x21d4a6=_0xac0904[_0x814cff(0x1fa)]('2d');let _0x4b93f4=Math[_0x814cff(0x203)](_0x29a8f9[0x1]/_0x3448b7[_0x814cff(0x210)],0x1);return _0xac0904['width']=_0x29a8f9[0x0],_0xac0904[_0x814cff(0x206)]=_0x4b93f4*0x2,_0x21d4a6&&(_0x21d4a6['beginPath'](),_0x21d4a6[_0x814cff(0x201)](0x0,0x0),_0x21d4a6[_0x814cff(0x216)](_0xac0904['width'],0x0),_0x21d4a6[_0x814cff(0x216)](_0xac0904[_0x814cff(0x21a)],_0x4b93f4),_0x21d4a6[_0x814cff(0x216)](0x0,_0x4b93f4),_0x21d4a6['closePath'](),_0x21d4a6[_0x814cff(0x229)]=getColor(_0x3448b7[_0x814cff(0x208)],_0x3448b7['opacity']),_0x21d4a6[_0x814cff(0x1f5)](),_0x21d4a6[_0x814cff(0x1f0)](),_0x21d4a6[_0x814cff(0x201)](0x0,_0x4b93f4),_0x21d4a6[_0x814cff(0x216)](_0xac0904[_0x814cff(0x21a)],_0x4b93f4),_0x21d4a6[_0x814cff(0x216)](_0xac0904[_0x814cff(0x21a)],_0x4b93f4*0x2),_0x21d4a6[_0x814cff(0x216)](0x0,_0x4b93f4*0x2),_0x21d4a6[_0x814cff(0x1f3)](),_0x21d4a6[_0x814cff(0x229)]=getColor(_0x3448b7[_0x814cff(0x1ea)],_0x3448b7[_0x814cff(0x222)]),_0x21d4a6['fill']()),_0x76f7ef[_0x814cff(0x1fc)](_0xac0904,_0x814cff(0x200));}function _getCheckerBoardPattern(_0x58a21a,_0x10d347,_0x15c04d){var _0x58233a=a76_0x3ffc,_0x22ee4b=getSize(_0x10d347);const _0x54ed0e=document[_0x58233a(0x224)](_0x58233a(0x217)),_0x29b1a2=_0x54ed0e[_0x58233a(0x1fa)]('2d');let _0x3b0e00=Math[_0x58233a(0x203)](_0x22ee4b[0x0]/_0x15c04d['checkerboard_repeat'],0x1),_0x3ebb97=Math['max'](_0x22ee4b[0x1]/_0x15c04d[_0x58233a(0x1f7)],0x1);return _0x54ed0e[_0x58233a(0x21a)]=_0x3b0e00*0x2,_0x54ed0e[_0x58233a(0x206)]=_0x3ebb97*0x2,_0x29b1a2&&(_0x29b1a2['beginPath'](),_0x29b1a2['moveTo'](0x0,0x0),_0x29b1a2[_0x58233a(0x216)](_0x3b0e00,0x0),_0x29b1a2[_0x58233a(0x216)](_0x3b0e00,_0x3ebb97),_0x29b1a2[_0x58233a(0x216)](0x0,_0x3ebb97),_0x29b1a2['closePath'](),_0x29b1a2[_0x58233a(0x229)]=getColor(_0x15c04d['oddColor'],_0x15c04d[_0x58233a(0x222)]),_0x29b1a2[_0x58233a(0x1f5)](),_0x29b1a2[_0x58233a(0x1f0)](),_0x29b1a2[_0x58233a(0x201)](_0x3b0e00,0x0),_0x29b1a2['lineTo'](_0x54ed0e[_0x58233a(0x21a)],0x0),_0x29b1a2['lineTo'](_0x54ed0e[_0x58233a(0x21a)],_0x3ebb97),_0x29b1a2[_0x58233a(0x216)](_0x3b0e00,_0x3ebb97),_0x29b1a2[_0x58233a(0x1f3)](),_0x29b1a2[_0x58233a(0x229)]=getColor(_0x15c04d['color'],_0x15c04d[_0x58233a(0x222)]),_0x29b1a2[_0x58233a(0x1f5)](),_0x29b1a2[_0x58233a(0x1f0)](),_0x29b1a2[_0x58233a(0x201)](0x0,_0x3ebb97),_0x29b1a2[_0x58233a(0x216)](_0x3b0e00,_0x3ebb97),_0x29b1a2[_0x58233a(0x216)](_0x3b0e00,_0x54ed0e[_0x58233a(0x206)]),_0x29b1a2[_0x58233a(0x216)](0x0,_0x54ed0e[_0x58233a(0x206)]),_0x29b1a2['closePath'](),_0x29b1a2[_0x58233a(0x229)]=getColor(_0x15c04d[_0x58233a(0x1ea)],_0x15c04d[_0x58233a(0x222)]),_0x29b1a2['fill'](),_0x29b1a2['beginPath'](),_0x29b1a2[_0x58233a(0x201)](_0x3b0e00,_0x3ebb97),_0x29b1a2['lineTo'](_0x54ed0e[_0x58233a(0x21a)],_0x3ebb97),_0x29b1a2[_0x58233a(0x216)](_0x54ed0e[_0x58233a(0x21a)],_0x54ed0e[_0x58233a(0x206)]),_0x29b1a2['lineTo'](_0x3b0e00,_0x54ed0e[_0x58233a(0x206)]),_0x29b1a2[_0x58233a(0x1f3)](),_0x29b1a2['fillStyle']=getColor(_0x15c04d[_0x58233a(0x20c)],_0x15c04d['opacity']),_0x29b1a2['fill']()),_0x58a21a['createPattern'](_0x54ed0e,_0x58233a(0x200));}function a76_0x1964(){var _0x1ed833=['lineTo','canvas','billboard','setStroke','width','3460wofgZN','restore','1719752pWvfoW','outlineWidth','6998rdZESc','warn','checkerboard','opacity','verticalOrigin','createElement','21258666ZWUTuz','rgba(0,0,0,0.01)','zIndex','grid','fillStyle','color','rgba(0,0,0,0.0)','60zsQJbt','grid_lineCount','118CwsZis','context','beginPath','strokeStyle','setRenderer','closePath','stripe','fill','18264dPCEkd','checkerboard_repeat','save','stroke','getContext','outline','createPattern','fillType','image','10494iQUllJ','repeat','moveTo','setZIndex','max','setText','CENTER','height','length','stripe_oddcolor','1481940xVOwwW','src','outlineColor','oddColor','setFill','105390cIZzzE','rgba(0,0,0,0)','stripe_repeat','outlineOpacity','grid_lineThickness','28oVJOeH','drawImage','lineWidth'];a76_0x1964=function(){return _0x1ed833;};return a76_0x1964();}
|
|
1
|
+
(function(_0x2b36fd,_0x52db2a){var _0x14d9ac=a76_0x43e8,_0x361201=_0x2b36fd();while(!![]){try{var _0x4727f3=-parseInt(_0x14d9ac(0x1ed))/0x1*(parseInt(_0x14d9ac(0x1e6))/0x2)+-parseInt(_0x14d9ac(0x1e9))/0x3+-parseInt(_0x14d9ac(0x21a))/0x4*(-parseInt(_0x14d9ac(0x209))/0x5)+parseInt(_0x14d9ac(0x206))/0x6+parseInt(_0x14d9ac(0x21d))/0x7+-parseInt(_0x14d9ac(0x1f6))/0x8+parseInt(_0x14d9ac(0x202))/0x9*(-parseInt(_0x14d9ac(0x20c))/0xa);if(_0x4727f3===_0x52db2a)break;else _0x361201['push'](_0x361201['shift']());}catch(_0x522b4){_0x361201['push'](_0x361201['shift']());}}}(a76_0x11dc,0xd2b1c));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(_0x1e0c13,_0x5316b7,_0x7a3dd8,_0x262457){var _0x48f259=a76_0x43e8,_0x5e3e60;let _0xabbdc1=(_0x5e3e60=_0x1e0c13[_0x48f259(0x1f1)])!==null&&_0x5e3e60!==void 0x0?_0x5e3e60:0x0,_0x51decd=new Style();_0x51decd[_0x48f259(0x21c)](_0xabbdc1),_0x51decd[_0x48f259(0x208)](new Fill({'color':_0x48f259(0x1ea)}));if(_0x1e0c13['fill']!==![]){if(!_0x1e0c13[_0x48f259(0x20f)]||_0x1e0c13['fillType']===_0x48f259(0x1fc))_0x51decd[_0x48f259(0x208)](new Fill({'color':getColor(_0x1e0c13[_0x48f259(0x1fc)],_0x1e0c13['opacity'])}));else{if(_0x1e0c13[_0x48f259(0x20f)]===_0x48f259(0x1e5))_0x51decd['setRenderer']((_0x26fc78,_0x30cc91)=>{preLoadImageRenderFunction(_0x1e0c13,_0x26fc78,_0x30cc91,_0x262457,_rendererFunction);});else _0x1e0c13['fillType']==='grid'||_0x1e0c13[_0x48f259(0x20f)]===_0x48f259(0x215)||_0x1e0c13[_0x48f259(0x20f)]===_0x48f259(0x217)?_0x51decd[_0x48f259(0x20b)]((_0xf89e53,_0x22879c)=>{_rendererFunction(_0x1e0c13,_0xf89e53,_0x22879c,_0x262457,null);}):_0x51decd[_0x48f259(0x208)](new Fill({'color':getColor(_0x1e0c13[_0x48f259(0x1fc)],_0x1e0c13[_0x48f259(0x203)])}));}}_0x1e0c13[_0x48f259(0x1ee)]!==![]&&_0x51decd[_0x48f259(0x1f9)](new Stroke({'color':getColor(_0x1e0c13[_0x48f259(0x219)],_0x1e0c13['outlineOpacity']),'width':_0x1e0c13[_0x48f259(0x21f)]}));let _0x443907=[_0x51decd];_0x1e0c13['billboard']&&!_0x1e0c13[_0x48f259(0x1f3)][_0x48f259(0x207)]&&(_0x1e0c13[_0x48f259(0x1f3)][_0x48f259(0x207)]=_0x48f259(0x1e7));let _0x102d08=getImageOlStyle(_0x1e0c13[_0x48f259(0x1f3)],_0xabbdc1,_0x7a3dd8,_0x262457);_0x102d08&&_0x443907[_0x48f259(0x1ff)](_0x102d08);if(_0x5316b7){const _0x21acbf=createTextStyle(_0x1e0c13,_0x5316b7,_0x7a3dd8,_0x262457);_0x21acbf&&(_0x51decd['setText'](_0x21acbf),_0x51decd[_0x48f259(0x21c)](Number(_0xabbdc1)+0x1));}return _0x443907;}function _rendererFunction(_0x1a8623,_0x12a0a4,_0x4aa206,_0x1e3958,_0x28cd07){var _0x38a884=a76_0x43e8;try{var _0x33f6c1=_0x4aa206['context'];for(var _0x2718b1=0x0,_0x5ace08=_0x12a0a4[_0x38a884(0x21e)];_0x2718b1<_0x5ace08;_0x2718b1++){_0x33f6c1['save'](),_0x33f6c1[_0x38a884(0x21b)]();var _0x422bbd=_0x12a0a4[_0x2718b1];let _0x42f7b2=boundingExtent(_0x422bbd);_0x33f6c1[_0x38a884(0x1f8)](_0x42f7b2[0x0],_0x42f7b2[0x1]);let _0x399568;switch(_0x1a8623[_0x38a884(0x20f)]){case _0x38a884(0x1e5):_0x399568=_getImagePattern(_0x33f6c1,_0x42f7b2,_0x1a8623,_0x28cd07);break;case _0x38a884(0x212):_0x399568=_getGridPattern(_0x33f6c1,_0x42f7b2,_0x1a8623);break;case'stripe':_0x399568=_getStripePattern(_0x33f6c1,_0x42f7b2,_0x1a8623);break;case'checkerboard':_0x399568=_getCheckerBoardPattern(_0x33f6c1,_0x42f7b2,_0x1a8623);break;default:_0x399568=_0x38a884(0x204);break;}for(var _0x54d38b=0x0,_0x571c6d=_0x422bbd['length'];_0x54d38b<_0x571c6d;_0x54d38b++){var _0x4a283e=_0x422bbd[_0x54d38b];_0x54d38b===0x0?_0x33f6c1[_0x38a884(0x1f4)](_0x4a283e[0x0]-_0x42f7b2[0x0],_0x4a283e[0x1]-_0x42f7b2[0x1]):_0x33f6c1[_0x38a884(0x1fa)](_0x4a283e[0x0]-_0x42f7b2[0x0],_0x4a283e[0x1]-_0x42f7b2[0x1]);}_0x33f6c1[_0x38a884(0x1f5)](),_0x33f6c1[_0x38a884(0x1fe)]=_0x38a884(0x204),_0x33f6c1['fill'](),_0x33f6c1['fillStyle']=_0x399568,_0x33f6c1['fill'](),_0x1a8623[_0x38a884(0x1ee)]?(_0x33f6c1['strokeStyle']=getColor(_0x1a8623['outlineColor'],_0x1a8623[_0x38a884(0x1e8)]),_0x33f6c1[_0x38a884(0x205)]=_0x1a8623[_0x38a884(0x21f)]):_0x33f6c1['strokeStyle']='rgba(0,0,0,0.0)',_0x33f6c1[_0x38a884(0x20e)](),_0x33f6c1[_0x38a884(0x1fb)]();}}catch(_0xe50d9){_0x33f6c1[_0x38a884(0x1fb)](),console[_0x38a884(0x1ef)](_0xe50d9);}}function a76_0x43e8(_0x22fbc5,_0x1ac69f){var _0x11dc3c=a76_0x11dc();return a76_0x43e8=function(_0x43e894,_0x175f74){_0x43e894=_0x43e894-0x1e4;var _0x248607=_0x11dc3c[_0x43e894];return _0x248607;},a76_0x43e8(_0x22fbc5,_0x1ac69f);}function a76_0x11dc(){var _0x5350c5=['rgba(0,0,0,0.01)','lineWidth','3910914TfJJwd','verticalOrigin','setFill','109490KTDrPE','repeat','setRenderer','20inFfSr','max','stroke','fillType','drawImage','grid_lineCount','grid','width','oddColor','stripe','repeatY','checkerboard','canvas','outlineColor','100WGoLcY','beginPath','setZIndex','11446043KmeGuc','length','outlineWidth','fill','grid_lineThickness','image','942878DHCzIF','CENTER','outlineOpacity','6936LVGWdR','rgba(0,0,0,0)','globalAlpha','createElement','1KaxLdO','outline','warn','createPattern','zIndex','src','billboard','moveTo','closePath','3123976kyZqMp','checkerboard_repeat','translate','setStroke','lineTo','restore','color','strokeStyle','fillStyle','push','height','getContext','4982247GMgQBL','opacity'];a76_0x11dc=function(){return _0x5350c5;};return a76_0x11dc();}function _getImagePattern(_0xb7b535,_0x35ea66,_0x2cd63c,_0x183fe3){var _0x19dcd6=a76_0x43e8;if(!_0x183fe3||_0x183fe3[_0x19dcd6(0x213)]===0x0){let _0x5a8cc8=new Image();_0x5a8cc8[_0x19dcd6(0x1f2)]=_0x2cd63c[_0x19dcd6(0x1e5)];}var _0x361d9f=getSize(_0x35ea66);const _0x414f6a=document[_0x19dcd6(0x1ec)](_0x19dcd6(0x218)),_0x366824=_0x414f6a['getContext']('2d');return _0x414f6a[_0x19dcd6(0x213)]=Math[_0x19dcd6(0x20d)](_0x361d9f[0x0]/_0x2cd63c['repeatX'],0x1),_0x414f6a['height']=Math[_0x19dcd6(0x20d)](_0x361d9f[0x1]/_0x2cd63c[_0x19dcd6(0x216)],0x1),_0x366824&&(_0x366824[_0x19dcd6(0x1eb)]=_0x2cd63c[_0x19dcd6(0x203)],_0x366824[_0x19dcd6(0x210)](_0x183fe3,0x0,0x0,_0x414f6a[_0x19dcd6(0x213)],_0x414f6a[_0x19dcd6(0x200)])),_0xb7b535[_0x19dcd6(0x1f0)](_0x414f6a,_0x19dcd6(0x20a));}function _getGridPattern(_0x44eab0,_0x10dce6,_0x3683b8){var _0x48bab4=a76_0x43e8,_0x4ed649=getSize(_0x10dce6);const _0x598d84=document['createElement'](_0x48bab4(0x218)),_0x26aa73=_0x598d84[_0x48bab4(0x201)]('2d');return _0x598d84[_0x48bab4(0x213)]=Math[_0x48bab4(0x20d)](_0x4ed649[0x0]/_0x3683b8[_0x48bab4(0x211)],0x1),_0x598d84['height']=Math[_0x48bab4(0x20d)](_0x4ed649[0x1]/_0x3683b8[_0x48bab4(0x211)],0x1),_0x26aa73&&(_0x26aa73[_0x48bab4(0x1fd)]=getColor(_0x3683b8[_0x48bab4(0x1fc)],_0x3683b8['opacity']),_0x26aa73[_0x48bab4(0x205)]=_0x3683b8[_0x48bab4(0x1e4)]*0x4,_0x26aa73[_0x48bab4(0x21b)](),_0x26aa73['moveTo'](0x0,_0x598d84['height']),_0x26aa73[_0x48bab4(0x1fa)](_0x598d84[_0x48bab4(0x213)],_0x598d84[_0x48bab4(0x200)]),_0x26aa73['moveTo'](_0x598d84['width'],0x0),_0x26aa73[_0x48bab4(0x1fa)](_0x598d84[_0x48bab4(0x213)],_0x598d84[_0x48bab4(0x200)]),_0x26aa73['stroke']()),_0x44eab0['createPattern'](_0x598d84,_0x48bab4(0x20a));}function _getStripePattern(_0x12833e,_0x244749,_0x461bc1){var _0x24ce75=a76_0x43e8,_0x44a501=getSize(_0x244749);const _0x51476d=document[_0x24ce75(0x1ec)]('canvas'),_0x4695fd=_0x51476d[_0x24ce75(0x201)]('2d');let _0x487d13=Math[_0x24ce75(0x20d)](_0x44a501[0x1]/_0x461bc1['stripe_repeat'],0x1);return _0x51476d[_0x24ce75(0x213)]=_0x44a501[0x0],_0x51476d['height']=_0x487d13*0x2,_0x4695fd&&(_0x4695fd[_0x24ce75(0x21b)](),_0x4695fd[_0x24ce75(0x1f4)](0x0,0x0),_0x4695fd[_0x24ce75(0x1fa)](_0x51476d[_0x24ce75(0x213)],0x0),_0x4695fd[_0x24ce75(0x1fa)](_0x51476d[_0x24ce75(0x213)],_0x487d13),_0x4695fd[_0x24ce75(0x1fa)](0x0,_0x487d13),_0x4695fd[_0x24ce75(0x1f5)](),_0x4695fd[_0x24ce75(0x1fe)]=getColor(_0x461bc1['stripe_oddcolor'],_0x461bc1[_0x24ce75(0x203)]),_0x4695fd[_0x24ce75(0x220)](),_0x4695fd[_0x24ce75(0x21b)](),_0x4695fd[_0x24ce75(0x1f4)](0x0,_0x487d13),_0x4695fd[_0x24ce75(0x1fa)](_0x51476d[_0x24ce75(0x213)],_0x487d13),_0x4695fd[_0x24ce75(0x1fa)](_0x51476d['width'],_0x487d13*0x2),_0x4695fd[_0x24ce75(0x1fa)](0x0,_0x487d13*0x2),_0x4695fd[_0x24ce75(0x1f5)](),_0x4695fd['fillStyle']=getColor(_0x461bc1[_0x24ce75(0x1fc)],_0x461bc1[_0x24ce75(0x203)]),_0x4695fd[_0x24ce75(0x220)]()),_0x12833e[_0x24ce75(0x1f0)](_0x51476d,_0x24ce75(0x20a));}function _getCheckerBoardPattern(_0x518a3e,_0xc6e8e5,_0x11b68b){var _0x480c8e=a76_0x43e8,_0x345bd8=getSize(_0xc6e8e5);const _0x4a216c=document[_0x480c8e(0x1ec)](_0x480c8e(0x218)),_0x34ef19=_0x4a216c[_0x480c8e(0x201)]('2d');let _0x1e5400=Math[_0x480c8e(0x20d)](_0x345bd8[0x0]/_0x11b68b[_0x480c8e(0x1f7)],0x1),_0x41dd0c=Math[_0x480c8e(0x20d)](_0x345bd8[0x1]/_0x11b68b[_0x480c8e(0x1f7)],0x1);return _0x4a216c[_0x480c8e(0x213)]=_0x1e5400*0x2,_0x4a216c[_0x480c8e(0x200)]=_0x41dd0c*0x2,_0x34ef19&&(_0x34ef19[_0x480c8e(0x21b)](),_0x34ef19[_0x480c8e(0x1f4)](0x0,0x0),_0x34ef19[_0x480c8e(0x1fa)](_0x1e5400,0x0),_0x34ef19['lineTo'](_0x1e5400,_0x41dd0c),_0x34ef19[_0x480c8e(0x1fa)](0x0,_0x41dd0c),_0x34ef19[_0x480c8e(0x1f5)](),_0x34ef19[_0x480c8e(0x1fe)]=getColor(_0x11b68b[_0x480c8e(0x214)],_0x11b68b[_0x480c8e(0x203)]),_0x34ef19[_0x480c8e(0x220)](),_0x34ef19[_0x480c8e(0x21b)](),_0x34ef19[_0x480c8e(0x1f4)](_0x1e5400,0x0),_0x34ef19[_0x480c8e(0x1fa)](_0x4a216c[_0x480c8e(0x213)],0x0),_0x34ef19[_0x480c8e(0x1fa)](_0x4a216c['width'],_0x41dd0c),_0x34ef19[_0x480c8e(0x1fa)](_0x1e5400,_0x41dd0c),_0x34ef19[_0x480c8e(0x1f5)](),_0x34ef19[_0x480c8e(0x1fe)]=getColor(_0x11b68b[_0x480c8e(0x1fc)],_0x11b68b[_0x480c8e(0x203)]),_0x34ef19[_0x480c8e(0x220)](),_0x34ef19[_0x480c8e(0x21b)](),_0x34ef19[_0x480c8e(0x1f4)](0x0,_0x41dd0c),_0x34ef19[_0x480c8e(0x1fa)](_0x1e5400,_0x41dd0c),_0x34ef19['lineTo'](_0x1e5400,_0x4a216c[_0x480c8e(0x200)]),_0x34ef19[_0x480c8e(0x1fa)](0x0,_0x4a216c[_0x480c8e(0x200)]),_0x34ef19[_0x480c8e(0x1f5)](),_0x34ef19[_0x480c8e(0x1fe)]=getColor(_0x11b68b[_0x480c8e(0x1fc)],_0x11b68b[_0x480c8e(0x203)]),_0x34ef19['fill'](),_0x34ef19[_0x480c8e(0x21b)](),_0x34ef19[_0x480c8e(0x1f4)](_0x1e5400,_0x41dd0c),_0x34ef19[_0x480c8e(0x1fa)](_0x4a216c['width'],_0x41dd0c),_0x34ef19[_0x480c8e(0x1fa)](_0x4a216c['width'],_0x4a216c[_0x480c8e(0x200)]),_0x34ef19[_0x480c8e(0x1fa)](_0x1e5400,_0x4a216c[_0x480c8e(0x200)]),_0x34ef19[_0x480c8e(0x1f5)](),_0x34ef19['fillStyle']=getColor(_0x11b68b[_0x480c8e(0x214)],_0x11b68b[_0x480c8e(0x203)]),_0x34ef19['fill']()),_0x518a3e[_0x480c8e(0x1f0)](_0x4a216c,_0x480c8e(0x20a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1bf8ed,_0x5ac330){const _0x2060d4=a77_0x15ad,_0x20e2dc=_0x1bf8ed();while(!![]){try{const _0x27351a=-parseInt(_0x2060d4(0x8b))/0x1+parseInt(_0x2060d4(0x8d))/0x2+parseInt(_0x2060d4(0x98))/0x3*(parseInt(_0x2060d4(0x76))/0x4)+-parseInt(_0x2060d4(0x72))/0x5*(-parseInt(_0x2060d4(0x6c))/0x6)+parseInt(_0x2060d4(0x86))/0x7+parseInt(_0x2060d4(0x82))/0x8+-parseInt(_0x2060d4(0x6b))/0x9;if(_0x27351a===_0x5ac330)break;else _0x20e2dc['push'](_0x20e2dc['shift']());}catch(_0x1467ba){_0x20e2dc['push'](_0x20e2dc['shift']());}}}(a77_0x1eaa,0x61a4d));function a77_0x15ad(_0x4cbd98,_0x48c562){const _0x1eaa63=a77_0x1eaa();return a77_0x15ad=function(_0x15ad2f,_0x297325){_0x15ad2f=_0x15ad2f-0x69;let _0x10ea01=_0x1eaa63[_0x15ad2f];return _0x10ea01;},a77_0x15ad(_0x4cbd98,_0x48c562);}import{createTextStyle,getColor}from'./common';function a77_0x1eaa(){const _0x32f552=['2882036sghGPq','lineTo','sqrt','setRenderer','pow','color','width','arrow','LineString','outline','butt','setGeometry','4455280nlHcSW','outlineOpacity','moveTo','lineCap','2269036CFZgYj','restore','outlineWidth','beginPath','strokeStyle','434249mZtqfh','shadowColor','1003322qSjTVf','sin','toString','label','cos','getFirstCoordinate','glow','getGeometry','getType','concat','glowPower','3hFmcee','getCoordinates','context','lineType','closed','17349696YbrDKu','282306oFkFHk','length','opacity','atan2','push','lineWidth','70hZZXKm','stroke','save','show'];a77_0x1eaa=function(){return _0x32f552;};return a77_0x1eaa();}import{Stroke,Style}from'ol/style';import{getImageOlStyle}from'./PointStyleFormat';import{LineString,Point,MultiLineString,MultiPoint}from'ol/geom';export function getPolylineStyle(_0xc1c79,_0x343f4f,_0x7d95d,_0x354452){const _0x55124a=a77_0x15ad;var _0x364bf9,_0x35d1c8,_0x5acc15;let _0x497fc1=(_0x364bf9=_0xc1c79['zIndex'])!==null&&_0x364bf9!==void 0x0?_0x364bf9:0x0;const _0x12439c=_0x373ba0=>{const _0x2cfcc7=a77_0x15ad;var _0x458492=_0x373ba0[_0x2cfcc7(0x94)]();if(_0x458492)return _getRealPolyline(_0x458492,_0xc1c79);return _0x458492;},_0x357e81=_0x562eba=>{const _0x3882dc=a77_0x15ad;var _0x19d3cf=_0x562eba[_0x3882dc(0x94)]();let _0x58b2bb=_0x19d3cf;_0x19d3cf&&(_0x58b2bb=_getRealPolyline(_0x19d3cf,_0xc1c79));if(_0x58b2bb&&_0x58b2bb['getType']()===_0x3882dc(0x7e))return new Point(_0x58b2bb['getFlatMidpoint']());else{let _0x31180f=_0x58b2bb['getFlatMidpoints'](),_0x2b8fda=0x2,_0x564551=[];for(let _0x5bbeec=0x0,_0x5c8c7f=_0x31180f['length'];_0x5bbeec<_0x5c8c7f;_0x5bbeec+=_0x2b8fda){let _0x283ebb=[_0x31180f[_0x5bbeec],_0x31180f[_0x5bbeec+0x1]];_0x564551[_0x3882dc(0x70)](_0x283ebb);}return new MultiPoint(_0x564551);}};let _0xbd5258=new Style({'geometry':_0x12439c,'stroke':new Stroke({'color':getColor(_0xc1c79['outlineColor'],_0xc1c79[_0x55124a(0x83)]),'width':_0xc1c79[_0x55124a(0x88)]}),'zIndex':_0x497fc1}),_0x120bbc=[_0xbd5258];if(_0xc1c79[_0x55124a(0x69)]==='dash'){let _0x52647b=_0xc1c79[_0x55124a(0x88)]/0x2,_0x230b7a=new Style({'geometry':_0x12439c,'zIndex':_0x497fc1,'stroke':new Stroke({'color':getColor(_0xc1c79['color'],_0xc1c79['opacity']),'width':_0xc1c79[_0x55124a(0x7c)],'lineCap':_0x55124a(0x80),'lineDash':[_0x52647b,_0x52647b]})}),_0x68394f=new Style({'geometry':_0x12439c,'zIndex':_0x497fc1+0.5,'stroke':new Stroke({'color':getColor(_0xc1c79['outlineColor'],Number((_0x5acc15=(_0x35d1c8=_0xc1c79[_0x55124a(0x83)])!==null&&_0x35d1c8!==void 0x0?_0x35d1c8:_0xc1c79['opacity'])!==null&&_0x5acc15!==void 0x0?_0x5acc15:0x1)),'width':_0xc1c79[_0x55124a(0x7c)],'lineCap':'butt','lineDash':[_0x52647b,_0x52647b],'lineDashOffset':_0x52647b})});_0x120bbc=[_0x230b7a,_0x68394f];}_0xc1c79[_0x55124a(0x69)]===_0x55124a(0x7d)&&_0xbd5258[_0x55124a(0x79)]((_0x58a608,_0x287221)=>{const _0x42ea73=_0x55124a;let _0x58262e=_0x287221[_0x42ea73(0x9a)],_0x363c01=parseInt((_0xc1c79[_0x42ea73(0x7c)]/0x4)[_0x42ea73(0x8f)]()),_0x5de2ef=0xa,_0x5990f2=Math[_0x42ea73(0x78)](Math[_0x42ea73(0x7a)](_0x5de2ef,0x2)+Math[_0x42ea73(0x7a)](_0xc1c79['width']/0x2,0x2)),_0x3155d2=0x2d,_0x5045b7=_0x58a608[_0x58a608[_0x42ea73(0x6d)]-0x2][0x0],_0x1d0a0a=_0x58a608[_0x58a608[_0x42ea73(0x6d)]-0x2][0x1],_0x5b915b=_0x58a608[_0x58a608[_0x42ea73(0x6d)]-0x1][0x0],_0x2b2e6=_0x58a608[_0x58a608[_0x42ea73(0x6d)]-0x1][0x1],_0x7658c4=Math[_0x42ea73(0x6f)](_0x1d0a0a-_0x2b2e6,_0x5045b7-_0x5b915b)*0xb4/Math['PI'],_0x3c130a=(_0x7658c4+_0x3155d2)*Math['PI']/0xb4,_0x1e7e70=(_0x7658c4-_0x3155d2)*Math['PI']/0xb4,_0x561641=_0x5990f2*Math[_0x42ea73(0x91)](_0x3c130a),_0x45500c=_0x5990f2*Math['sin'](_0x3c130a),_0x1bdfb8=_0x5990f2*Math[_0x42ea73(0x91)](_0x1e7e70),_0x14650e=_0x5990f2*Math[_0x42ea73(0x8e)](_0x1e7e70);_0x58262e[_0x42ea73(0x74)](),_0x58262e[_0x42ea73(0x89)]();let _0x175db7,_0x3b33da;for(let _0x336cbd=0x0;_0x336cbd<_0x58a608[_0x42ea73(0x6d)];_0x336cbd++){_0x336cbd===0x0?_0x58262e[_0x42ea73(0x84)](_0x58a608[_0x336cbd][0x0],_0x58a608[_0x336cbd][0x1]):_0x58262e['lineTo'](_0x58a608[_0x336cbd][0x0],_0x58a608[_0x336cbd][0x1]);}_0x58262e['strokeStyle']=getColor(_0xc1c79[_0x42ea73(0x7b)],_0xc1c79['opacity']),_0x58262e[_0x42ea73(0x71)]=_0x363c01,_0x58262e[_0x42ea73(0x85)]=_0x42ea73(0x80),_0x58262e[_0x42ea73(0x73)](),_0x175db7=_0x5b915b+_0x561641,_0x3b33da=_0x2b2e6+_0x45500c,_0x58262e[_0x42ea73(0x84)](_0x175db7,_0x3b33da),_0x58262e['lineTo'](_0x5b915b,_0x2b2e6),_0x175db7=_0x5b915b+_0x1bdfb8,_0x3b33da=_0x2b2e6+_0x14650e,_0x58262e[_0x42ea73(0x77)](_0x175db7,_0x3b33da),_0x58262e['lineCap']='butt',_0x58262e['stroke'](),_0x58262e[_0x42ea73(0x87)]();});_0xc1c79[_0x55124a(0x69)]===_0x55124a(0x93)&&_0xbd5258['setRenderer']((_0x2af5fe,_0x2bfa9e)=>{const _0x17e2f9=_0x55124a;let _0x5be303=_0x2bfa9e[_0x17e2f9(0x9a)];_0x5be303[_0x17e2f9(0x74)]();for(let _0x59cfad=0x0;_0x59cfad<0x4;_0x59cfad++){let _0x3f50eb=_0xc1c79['width']/0xa*(_0xc1c79[_0x17e2f9(0x97)]===0x0?0x1:_0xc1c79['glowPower']);_0x5be303[_0x17e2f9(0x8c)]=getColor(_0xc1c79['color'],_0xc1c79[_0x17e2f9(0x6e)]),_0x5be303['shadowBlur']=_0xc1c79['width']/0x5*0x2,_0x5be303[_0x17e2f9(0x89)]();for(let _0x5d597d=0x0;_0x5d597d<_0x2af5fe[_0x17e2f9(0x6d)];_0x5d597d++){_0x5d597d===0x0?_0x5be303[_0x17e2f9(0x84)](_0x2af5fe[_0x5d597d][0x0],_0x2af5fe[_0x5d597d][0x1]):_0x5be303[_0x17e2f9(0x77)](_0x2af5fe[_0x5d597d][0x0],_0x2af5fe[_0x5d597d][0x1]);}_0x5be303[_0x17e2f9(0x85)]='butt',_0x5be303['lineWidth']=_0x3f50eb,_0x5be303[_0x17e2f9(0x8a)]=getColor('white',_0xc1c79['opacity']),_0x5be303[_0x17e2f9(0x73)]();}_0x5be303[_0x17e2f9(0x87)]();});_0xc1c79[_0x55124a(0x69)]===_0x55124a(0x7f)&&_0xbd5258[_0x55124a(0x79)]((_0x28d852,_0x5d7502)=>{const _0x284a1b=_0x55124a;let _0xd13fa3=_0x5d7502[_0x284a1b(0x9a)];_0xd13fa3[_0x284a1b(0x74)](),_0xd13fa3[_0x284a1b(0x89)]();for(let _0x24d999=0x0;_0x24d999<_0x28d852[_0x284a1b(0x6d)];_0x24d999++){_0x24d999===0x0?_0xd13fa3[_0x284a1b(0x84)](_0x28d852[_0x24d999][0x0],_0x28d852[_0x24d999][0x1]):_0xd13fa3[_0x284a1b(0x77)](_0x28d852[_0x24d999][0x0],_0x28d852[_0x24d999][0x1]);}_0xd13fa3['lineCap']=_0x284a1b(0x80),_0xd13fa3[_0x284a1b(0x71)]=_0xc1c79[_0x284a1b(0x7c)],_0xd13fa3[_0x284a1b(0x8a)]=getColor(_0xc1c79['outlineColor'],_0xc1c79['opacity']),_0xd13fa3[_0x284a1b(0x73)](),_0xd13fa3[_0x284a1b(0x89)]();for(let _0x2e2218=0x0;_0x2e2218<_0x28d852[_0x284a1b(0x6d)];_0x2e2218++){_0x2e2218===0x0?_0xd13fa3['moveTo'](_0x28d852[_0x2e2218][0x0],_0x28d852[_0x2e2218][0x1]):_0xd13fa3['lineTo'](_0x28d852[_0x2e2218][0x0],_0x28d852[_0x2e2218][0x1]);}_0xd13fa3[_0x284a1b(0x85)]=_0x284a1b(0x80),_0xc1c79[_0x284a1b(0x88)]>=_0xc1c79[_0x284a1b(0x7c)]&&(_0xc1c79[_0x284a1b(0x88)]=_0xc1c79[_0x284a1b(0x7c)]-0x1),_0xd13fa3['lineWidth']=_0xc1c79[_0x284a1b(0x7c)]-_0xc1c79[_0x284a1b(0x88)],_0xd13fa3[_0x284a1b(0x8a)]=getColor(_0xc1c79[_0x284a1b(0x7b)],_0xc1c79[_0x284a1b(0x6e)]),_0xd13fa3[_0x284a1b(0x73)](),_0xd13fa3[_0x284a1b(0x87)]();});let _0x1a9534=getImageOlStyle(_0xc1c79['billboard'],_0x497fc1,_0x7d95d,_0x354452);_0x1a9534&&(_0x1a9534[_0x55124a(0x81)](_0x357e81),_0x120bbc[_0x55124a(0x70)](_0x1a9534));if(_0xc1c79['label']&&_0xc1c79['label'][_0x55124a(0x75)]!==![]){let _0x4087d3=new Style({'geometry':_0x357e81,'text':createTextStyle(_0xc1c79[_0x55124a(0x90)],_0x343f4f,_0x7d95d,_0x354452),'zIndex':Number(_0x497fc1)+0x1});_0x120bbc[_0x55124a(0x70)](_0x4087d3);}return _0x120bbc;}function _getRealPolyline(_0x101e16,_0x136238){const _0x349838=a77_0x15ad;if(!(_0x136238===null||_0x136238===void 0x0?void 0x0:_0x136238[_0x349838(0x6a)]))return _0x101e16;else{if(_0x101e16[_0x349838(0x95)]()==='MultiLineString'){let _0x5f1d7b=_0x101e16[_0x349838(0x99)]();for(let _0x7dc54c in _0x5f1d7b){let _0x3ae6b9=_0x5f1d7b[_0x7dc54c];_0x5f1d7b[_0x7dc54c]=_0x3ae6b9[_0x349838(0x96)]([_0x3ae6b9[0x0]]);}return new MultiLineString(_0x5f1d7b);}else return new LineString(_0x101e16[_0x349838(0x99)]()['concat']([_0x101e16[_0x349838(0x92)]()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a78_0x2ab3(_0x1dd853,_0x267090){const _0xa115f4=a78_0xa115();return a78_0x2ab3=function(_0x2ab325,_0x10e1af){_0x2ab325=_0x2ab325-0x188;let _0x3db2cb=_0xa115f4[_0x2ab325];return _0x3db2cb;},a78_0x2ab3(_0x1dd853,_0x267090);}(function(_0x41a7d6,_0x1f8600){const _0xeb3505=a78_0x2ab3,_0x2b9d03=_0x41a7d6();while(!![]){try{const _0x555b1f=parseInt(_0xeb3505(0x1a7))/0x1*(-parseInt(_0xeb3505(0x1a1))/0x2)+parseInt(_0xeb3505(0x190))/0x3+parseInt(_0xeb3505(0x197))/0x4*(-parseInt(_0xeb3505(0x192))/0x5)+parseInt(_0xeb3505(0x18d))/0x6+parseInt(_0xeb3505(0x199))/0x7*(parseInt(_0xeb3505(0x18f))/0x8)+-parseInt(_0xeb3505(0x18b))/0x9+parseInt(_0xeb3505(0x1a2))/0xa*(parseInt(_0xeb3505(0x195))/0xb);if(_0x555b1f===_0x1f8600)break;else _0x2b9d03['push'](_0x2b9d03['shift']());}catch(_0x44afb8){_0x2b9d03['push'](_0x2b9d03['shift']());}}}(a78_0xa115,0x50b02));function a78_0xa115(){const _0x4c4d61=['rotation','rgba(0,\x20255,0,\x200)','opacity','setText','scale','rgba(121,\x20243,\x20238,\x201)','1283184rkccMi','pointType','956490RqbovU','radius','15608uAaifr','450sxgkKN','setImage','1280fRYipA','MultiPolygon','outlineColor','11UplJkU','setFill','8552UnaEFg','Polygon','350elWlEz','rgba(0,\x20255,0,\x201)','icon','imgurl','text','rgba(121,\x20243,\x20238,\x200.3)','MultiLineString','outlineOpacity','62FKCWDL','10782160BRJsXx','rgba(121,\x20243,\x20238,\x200)','setZIndex','outlineWidth','color','10159wLUINg'];a78_0xa115=function(){return _0x4c4d61;};return a78_0xa115();}import a78_0x413f28 from'ol/style/Circle';import a78_0x4bd9cd from'ol/style/Fill';import a78_0x3ffedd from'ol/style/Stroke';import a78_0x38331d from'ol/style/Style';import{createTextStyle,getColor}from'./common';import{Icon}from'ol/style';export function getSelectPointStyle(){const _0x7f493=a78_0x2ab3;return new a78_0x38331d({'image':new a78_0x413f28({'radius':0x5,'fill':new a78_0x4bd9cd({'color':'rgba(121,\x20243,\x20238,\x201)'}),'stroke':new a78_0x3ffedd({'color':_0x7f493(0x18a),'width':0x1})})});}export function getSelectCancePointStyle(){const _0x22b3b7=a78_0x2ab3;return new a78_0x38331d({'image':new a78_0x413f28({'radius':0x5,'fill':new a78_0x4bd9cd({'color':_0x22b3b7(0x1a3)}),'stroke':new a78_0x3ffedd({'color':_0x22b3b7(0x18a),'width':0x1})})});}export function getSelectLineStyle(){const _0x33f27a=a78_0x2ab3;return new a78_0x38331d({'stroke':new a78_0x3ffedd({'color':_0x33f27a(0x18a),'width':0x2})});}export function getSelectCancelLineStyle(){const _0x30c1e9=a78_0x2ab3;return new a78_0x38331d({'stroke':new a78_0x3ffedd({'color':_0x30c1e9(0x19a),'width':0x2})});}export function getSelectPolygonStyle(){const _0x1e87cb=a78_0x2ab3;return new a78_0x38331d({'stroke':new a78_0x3ffedd({'color':_0x1e87cb(0x18a),'width':0x2}),'fill':new a78_0x4bd9cd({'color':_0x1e87cb(0x19e)})});}export function getSelectCancelPolygonStyle(){const _0x2ddc32=a78_0x2ab3;return new a78_0x38331d({'stroke':new a78_0x3ffedd({'color':_0x2ddc32(0x19a),'width':0x2}),'fill':new a78_0x4bd9cd({'color':_0x2ddc32(0x1a9)})});}export function getStyle(_0x57fc96){const _0x3f952f=a78_0x2ab3;if(_0x57fc96){const _0x315e8b=new a78_0x38331d();if(_0x57fc96[_0x3f952f(0x19d)]){const _0x133639=createTextStyle(_0x57fc96,_0x57fc96[_0x3f952f(0x19d)]);_0x133639&&_0x315e8b[_0x3f952f(0x188)](_0x133639),_0x315e8b[_0x3f952f(0x1a4)](0x1);}return _0x57fc96[_0x3f952f(0x194)]&&_0x315e8b['setStroke'](new a78_0x3ffedd({'color':getColor(_0x57fc96[_0x3f952f(0x194)],_0x57fc96[_0x3f952f(0x1a0)]),'width':_0x57fc96[_0x3f952f(0x1a5)]||0x1})),_0x57fc96[_0x3f952f(0x1a6)]&&_0x315e8b[_0x3f952f(0x196)](new a78_0x4bd9cd({'color':getColor(_0x57fc96[_0x3f952f(0x1a6)],_0x57fc96[_0x3f952f(0x1aa)])})),_0x57fc96[_0x3f952f(0x18c)]=='circle'&&_0x315e8b['setImage'](new a78_0x413f28({'radius':_0x57fc96[_0x3f952f(0x18e)]||0x5,'fill':new a78_0x4bd9cd({'color':getColor(_0x57fc96['color'],_0x57fc96[_0x3f952f(0x1aa)])})})),(_0x57fc96[_0x3f952f(0x18c)]==_0x3f952f(0x19b)||_0x57fc96['imgurl'])&&_0x315e8b[_0x3f952f(0x191)](new Icon({'src':_0x57fc96[_0x3f952f(0x19c)],'anchor':_0x57fc96['anchor']||[0.5,0.5],'scale':_0x57fc96[_0x3f952f(0x189)]||0x1,'rotation':_0x57fc96[_0x3f952f(0x1a8)]||0x0})),_0x315e8b;}return new a78_0x38331d({'stroke':new a78_0x3ffedd({'color':_0x3f952f(0x18a),'width':0x2}),'fill':new a78_0x4bd9cd({'color':'rgba(121,\x20243,\x20238,\x200.3)'})});}export function getSelectStyle(_0x415e39){const _0x39d244=a78_0x2ab3;let _0x1c568c=getSelectPolygonStyle();switch(_0x415e39){case _0x39d244(0x193):case _0x39d244(0x198):_0x1c568c=getSelectPolygonStyle();break;case _0x39d244(0x19f):case'LineString':_0x1c568c=getSelectLineStyle();break;case'MultiPoint':case'Point':_0x1c568c=getSelectPointStyle();break;default:break;}return _0x1c568c;}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f50c3,_0x54be59){const _0x1e47d4=a74_0x2072,_0x2421c3=_0x3f50c3();while(!![]){try{const _0x1d62b7=parseInt(_0x1e47d4(0x137))/0x1*(parseInt(_0x1e47d4(0x14f))/0x2)+parseInt(_0x1e47d4(0x150))/0x3*(parseInt(_0x1e47d4(0x13f))/0x4)+parseInt(_0x1e47d4(0x13b))/0x5+parseInt(_0x1e47d4(0x14e))/0x6+-parseInt(_0x1e47d4(0x158))/0x7+-parseInt(_0x1e47d4(0x146))/0x8+-parseInt(_0x1e47d4(0x144))/0x9;if(_0x1d62b7===_0x54be59)break;else _0x2421c3['push'](_0x2421c3['shift']());}catch(_0x484fce){_0x2421c3['push'](_0x2421c3['shift']());}}}(a74_0x1093,0x51084));function a74_0x2072(_0x5f00b2,_0x19ed70){const _0x1093b7=a74_0x1093();return a74_0x2072=function(_0x207288,_0xd594f8){_0x207288=_0x207288-0x137;let _0x345421=_0x1093b7[_0x207288];return _0x345421;},a74_0x2072(_0x5f00b2,_0x19ed70);}import a74_0x4547c4 from'color';import{Fill,Icon,Stroke,Text}from'ol/style';import a74_0x5ba4ff from'../utils/plug/canvas/PinIcon';import a74_0x32d9ee from'ol/ImageState';export function isShowStyle(_0x1ea0df,_0x5d859e,_0x428193){const _0x2517e0=a74_0x2072;let _0xeb43f3=!![];if(_0x5d859e==undefined||_0x428193==undefined)return _0xeb43f3;if(_0x1ea0df&&typeof _0x1ea0df[_0x2517e0(0x15d)]!=undefined&&typeof _0x1ea0df[_0x2517e0(0x13c)]!=undefined){if(_0x1ea0df[_0x2517e0(0x15d)]&&_0x428193){_0xeb43f3=![];let _0x535e7d=getLevel(_0x1ea0df['distanceDisplayFar']),_0x1d19e0=_0x428193[_0x2517e0(0x14c)]()[_0x2517e0(0x152)](_0x535e7d);_0x5d859e<_0x1d19e0&&(_0xeb43f3=!![]);}if(_0xeb43f3&&_0x1ea0df[_0x2517e0(0x13c)]&&_0x428193){_0xeb43f3=![];let _0x6844c6=getLevel(_0x1ea0df['distanceDisplayNear']),_0x58575f=_0x428193[_0x2517e0(0x14c)]()[_0x2517e0(0x152)](_0x6844c6);_0x5d859e>_0x58575f&&(_0xeb43f3=!![]);}}return _0xeb43f3;}export function getLevel(_0x45ff76){const _0xd9420b=a74_0x2072,_0x3eac70=3252.745,_0x813547=0.0009198301,_0x2ddc5d=52977.61,_0x1e6161=-3228.107;return _0x1e6161+(_0x3eac70-_0x1e6161)/(0x1+Math[_0xd9420b(0x155)](_0x45ff76/_0x2ddc5d,_0x813547));}export function toRadians(_0x35bbc5){if(_0x35bbc5)return-(_0x35bbc5*Math['PI'])/0xb4;return 0x0;}function a74_0x1093(){const _0x468c86=['distanceDisplayNear','load','alpha','32UxLDfi','\x20normal\x20','listenImageChange','bold','center','10643661QrhWLr','getImageState','1298816iYSMMM','opacity','weight','textBaseline','offsetX','offsetY','getView','italic','1916622Lzjwnm','2svZrFH','202521eyJqsR','middle','getResolutionForZoom','#2A2A2A','family','pow','borderLineWidth','normal','310128uQjiht','getImage','haloColor','backgroundOpacity','ERROR','distanceDisplayFar','backgroundColor','IDLE','#000000','size','263601orxFAM','px\x20','font','borderLineOpacity','2990495cgGvwS'];a74_0x1093=function(){return _0x468c86;};return a74_0x1093();}export function createTextStyle(_0xab4844,_0x250776,_0x37aa38,_0xbf712){const _0x318e7a=a74_0x2072;var _0x211c25,_0x3aa7fb,_0x49f681,_0x4daa7d,_0x46a70,_0x1578bc,_0x523d01,_0x1c789e;if(_0xab4844){let _0x370750=isShowStyle(_0xab4844,_0x37aa38,_0xbf712);if(_0x370750===![])return undefined;else{const _0x19f5e4=_0xab4844[_0x318e7a(0x139)],_0x33d745=(_0x19f5e4===null||_0x19f5e4===void 0x0?void 0x0:_0x19f5e4[_0x318e7a(0x14d)])?_0x318e7a(0x14d):_0x318e7a(0x157),_0x366109=(_0x19f5e4===null||_0x19f5e4===void 0x0?void 0x0:_0x19f5e4[_0x318e7a(0x148)])?_0x318e7a(0x142):'normal',_0x308b9c=(_0x19f5e4===null||_0x19f5e4===void 0x0?void 0x0:_0x19f5e4[_0x318e7a(0x161)])||'25',_0x3abb65=(_0x19f5e4===null||_0x19f5e4===void 0x0?void 0x0:_0x19f5e4[_0x318e7a(0x154)])||'楷体';let _0x3cd6ee=_0x33d745+_0x318e7a(0x140)+_0x366109+'\x20'+_0x308b9c+_0x318e7a(0x138)+_0x3abb65,_0x1d844c=(_0x19f5e4===null||_0x19f5e4===void 0x0?void 0x0:_0x19f5e4[_0x318e7a(0x14a)])||0x0,_0x5d7e5b=(_0x19f5e4===null||_0x19f5e4===void 0x0?void 0x0:_0x19f5e4[_0x318e7a(0x14b)])||0x0,_0x2aa6dd=(_0x19f5e4===null||_0x19f5e4===void 0x0?void 0x0:_0x19f5e4[_0x318e7a(0x149)])||_0x318e7a(0x151),_0x38f679=(_0x19f5e4===null||_0x19f5e4===void 0x0?void 0x0:_0x19f5e4['textAlign'])||_0x318e7a(0x143);const _0x307293=_0xab4844[_0x318e7a(0x147)]||0x1;let _0x2db0e7=undefined;return(_0x19f5e4===null||_0x19f5e4===void 0x0?void 0x0:_0x19f5e4['haloColor'])&&(_0x2db0e7=_getStroke(_0x19f5e4[_0x318e7a(0x15a)],_0x19f5e4['haloOpacity'],_0x19f5e4['haloWidth'])),new Text({'overflow':!![],'text':_0x250776,'font':_0x3cd6ee,'offsetX':_0x1d844c,'offsetY':_0x5d7e5b,'textAlign':_0x38f679,'textBaseline':_0x2aa6dd,'fill':new Fill({'color':getColor(((_0x211c25=_0xab4844[_0x318e7a(0x139)])===null||_0x211c25===void 0x0?void 0x0:_0x211c25['color'])||_0x318e7a(0x160),_0x307293)}),'stroke':_0x2db0e7,'backgroundFill':((_0x3aa7fb=_0xab4844[_0x318e7a(0x139)])===null||_0x3aa7fb===void 0x0?void 0x0:_0x3aa7fb[_0x318e7a(0x15e)])?new Fill({'color':getColor(((_0x49f681=_0xab4844['font'])===null||_0x49f681===void 0x0?void 0x0:_0x49f681[_0x318e7a(0x15e)])||_0x318e7a(0x153),((_0x4daa7d=_0xab4844[_0x318e7a(0x139)])===null||_0x4daa7d===void 0x0?void 0x0:_0x4daa7d[_0x318e7a(0x15b)])||0x1)}):undefined,'backgroundStroke':((_0x46a70=_0xab4844['font'])===null||_0x46a70===void 0x0?void 0x0:_0x46a70['borderLineColor'])?_getStroke((_0x1578bc=_0xab4844[_0x318e7a(0x139)])===null||_0x1578bc===void 0x0?void 0x0:_0x1578bc['borderLineColor'],((_0x523d01=_0xab4844[_0x318e7a(0x139)])===null||_0x523d01===void 0x0?void 0x0:_0x523d01[_0x318e7a(0x13a)])||0x1,((_0x1c789e=_0xab4844[_0x318e7a(0x139)])===null||_0x1c789e===void 0x0?void 0x0:_0x1c789e[_0x318e7a(0x156)])||0x1):undefined});}}else return undefined;}export function getColor(_0xf4c543,_0xacf2d4){const _0x2c0e0e=a74_0x2072;return a74_0x4547c4(_0xf4c543)[_0x2c0e0e(0x13e)](_0xacf2d4!=undefined?_0xacf2d4:0x1)['hexa']();}function _getStroke(_0x40d1f3,_0x12149c,_0x176cb7){return new Stroke({'color':getColor(_0x40d1f3,_0x12149c),'width':_0x176cb7==undefined?0x1:_0x176cb7});}export function preLoadImageRenderFunction(_0x5bea63,_0xe530dd,_0x5120ad,_0x59bab6,_0x4c1fc8){const _0x628880=a74_0x2072;let _0x82f011;_0x5bea63['markerColor']?_0x82f011=new a74_0x5ba4ff(_0x5bea63):_0x82f011=new Icon({'src':_0x5bea63['image']});let _0x20f7f7=_0x82f011[_0x628880(0x145)]();_0x20f7f7===a74_0x32d9ee['LOADED']||_0x20f7f7===a74_0x32d9ee['ERROR']?_0x4c1fc8(_0x5bea63,_0xe530dd,_0x5120ad,_0x59bab6,_0x82f011[_0x628880(0x159)](0x60)):(_0x20f7f7===a74_0x32d9ee[_0x628880(0x15f)]&&_0x82f011[_0x628880(0x13d)](),_0x82f011[_0x628880(0x141)](_0x2ee49d=>{const _0x1d689b=_0x628880;_0x20f7f7=_0x2ee49d['target'][_0x1d689b(0x145)](),(_0x20f7f7===a74_0x32d9ee['LOADED']||_0x20f7f7===a74_0x32d9ee[_0x1d689b(0x15c)])&&_0x4c1fc8(_0x5bea63,_0xe530dd,_0x5120ad,_0x59bab6,_0x82f011[_0x1d689b(0x159)](0x60));}));}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a79_0x45b8(_0x292c5b,_0x4fbecc){const _0x40f624=a79_0x40f6();return a79_0x45b8=function(_0x45b8c2,_0x1a5685){_0x45b8c2=_0x45b8c2-0x13c;let _0xb0b1bd=_0x40f624[_0x45b8c2];return _0xb0b1bd;},a79_0x45b8(_0x292c5b,_0x4fbecc);}function a79_0x40f6(){const _0x64a582=['153505yVVkFT','every','isArray','7479186rSRzuW','672fHvNtU','3173100qSDliV','keys','39776icJWjq','4428290ojTIwL','reduce','96OTxYoz','1TwcOGH','8MoobcP','842678Pwgowj','length','9BssOuF','object','5241159dgXbma'];a79_0x40f6=function(){return _0x64a582;};return a79_0x40f6();}(function(_0x3b1b99,_0x4864b7){const _0x16e935=a79_0x45b8,_0x9584e2=_0x3b1b99();while(!![]){try{const _0x56a432=-parseInt(_0x16e935(0x14d))/0x1*(-parseInt(_0x16e935(0x13d))/0x2)+parseInt(_0x16e935(0x147))/0x3+-parseInt(_0x16e935(0x14c))/0x4*(parseInt(_0x16e935(0x142))/0x5)+-parseInt(_0x16e935(0x145))/0x6+-parseInt(_0x16e935(0x141))/0x7*(-parseInt(_0x16e935(0x13c))/0x8)+-parseInt(_0x16e935(0x13f))/0x9*(-parseInt(_0x16e935(0x14a))/0xa)+-parseInt(_0x16e935(0x149))/0xb*(-parseInt(_0x16e935(0x146))/0xc);if(_0x56a432===_0x4864b7)break;else _0x9584e2['push'](_0x9584e2['shift']());}catch(_0x5233d8){_0x9584e2['push'](_0x9584e2['shift']());}}}(a79_0x40f6,0xd9392));export function getDeepth(_0x5e3495){function _0x4ad3e8(_0x1c4e62,_0xff98f7){const _0x5eb840=a79_0x45b8;return _0x1c4e62[_0x5eb840(0x14b)](function(_0x186248,_0x4e4055){const _0x3879f7=_0x5eb840;var _0x5b9e22;return Array[_0x3879f7(0x144)](_0x4e4055)&&(_0x5b9e22=_0x4ad3e8(_0x4e4055,_0xff98f7+0x1)),_0x5b9e22>_0x186248?_0x5b9e22:_0x186248;},_0xff98f7);}return _0x4ad3e8(_0x5e3495,0x1);}export function compareArray(_0x257a7c,_0x45d18e){const _0x34cfd4=a79_0x45b8;if(_0x257a7c[_0x34cfd4(0x13e)]!==_0x45d18e['length'])return![];const _0x1f2139=_0x257a7c['length'];for(let _0x16c10b=0x0;_0x16c10b<_0x1f2139;_0x16c10b++){if(!compare(_0x257a7c[_0x16c10b],_0x45d18e[_0x16c10b]))return![];}return!![];}export function compare(_0x5048ae,_0xc04d9f){const _0xfcb56e=a79_0x45b8;if(_0x5048ae===_0xc04d9f)return!![];if(typeof _0x5048ae!==typeof _0xc04d9f||_0x5048ae===null||_0xc04d9f===null)return![];if(Array[_0xfcb56e(0x144)](_0x5048ae)){if(!Array['isArray'](_0xc04d9f))return![];return compareArray(_0x5048ae,_0xc04d9f);}if(typeof _0x5048ae===_0xfcb56e(0x140))return compareObject(_0x5048ae,_0xc04d9f);return![];}export function compareObject(_0x58c7ae,_0x2487db){const _0x4922d5=a79_0x45b8,_0x212833=Object[_0x4922d5(0x148)](_0x58c7ae),_0x1d579b=Object[_0x4922d5(0x148)](_0x2487db);if(_0x212833[_0x4922d5(0x13e)]!==_0x1d579b[_0x4922d5(0x13e)])return![];return _0x212833[_0x4922d5(0x143)](_0x5e6efb=>{if(!compare(_0x58c7ae[_0x5e6efb],_0x2487db[_0x5e6efb]))return![];return!![];});}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a80_0x48a4(_0x3843c6,_0x85c3b5){const _0x3e1e91=a80_0x3e1e();return a80_0x48a4=function(_0x48a4c7,_0x10a58e){_0x48a4c7=_0x48a4c7-0x98;let _0x38e169=_0x3e1e91[_0x48a4c7];return _0x38e169;},a80_0x48a4(_0x3843c6,_0x85c3b5);}const a80_0x27d3f8=a80_0x48a4;(function(_0x52a0fb,_0x293fc7){const _0x590595=a80_0x48a4,_0x2ca236=_0x52a0fb();while(!![]){try{const _0x38b8b4=-parseInt(_0x590595(0xa5))/0x1*(parseInt(_0x590595(0x9e))/0x2)+parseInt(_0x590595(0xa6))/0x3+parseInt(_0x590595(0xa8))/0x4+parseInt(_0x590595(0x98))/0x5+-parseInt(_0x590595(0x9a))/0x6+-parseInt(_0x590595(0xa4))/0x7*(parseInt(_0x590595(0xa1))/0x8)+parseInt(_0x590595(0x9f))/0x9;if(_0x38b8b4===_0x293fc7)break;else _0x2ca236['push'](_0x2ca236['shift']());}catch(_0xb1cc7f){_0x2ca236['push'](_0x2ca236['shift']());}}}(a80_0x3e1e,0x7a888));import a80_0x4b10a8 from'axios';import a80_0x1a39fe from'jquery';const request=a80_0x4b10a8[a80_0x27d3f8(0x9b)]({'timeout':0xb4*0x3e8});export function jsonp(_0x11c3b9){return new Promise((_0x536ce5,_0x333f47)=>{const _0x3ccf71=a80_0x48a4;a80_0x1a39fe[_0x3ccf71(0xa0)]({'url':_0x11c3b9,'type':_0x3ccf71(0x9c),'dataType':_0x3ccf71(0xa3),'success':_0x130537=>{_0x536ce5(_0x130537);},'error':_0x232334=>{_0x333f47(_0x232334);}});});}export function stringify(_0x29f2cf){const _0x1d59d7=a80_0x27d3f8,_0x385bbc=new FormData();for(const _0x1f7336 in _0x29f2cf){if(_0x29f2cf['hasOwnProperty'](_0x1f7336)){if(_0x29f2cf[_0x1f7336]){if(_0x29f2cf[_0x1f7336][_0x1d59d7(0x99)]===Array)_0x29f2cf[_0x1f7336][0x0]?_0x29f2cf[_0x1f7336][0x0][_0x1d59d7(0x99)]===Object?_0x385bbc['append'](_0x1f7336,JSON[_0x1d59d7(0xa2)](_0x29f2cf[_0x1f7336])):_0x29f2cf[_0x1f7336][_0x1d59d7(0xa7)]((_0x2ecff4,_0x385c1f)=>{const _0x555a6a=_0x1d59d7;_0x385bbc[_0x555a6a(0x9d)](_0x1f7336+('['+_0x385c1f+']'),_0x2ecff4);}):_0x385bbc[_0x1d59d7(0x9d)](_0x1f7336+'[]','');else _0x29f2cf[_0x1f7336][_0x1d59d7(0x99)]===Object?_0x385bbc[_0x1d59d7(0x9d)](_0x1f7336,JSON['stringify'](_0x29f2cf[_0x1f7336])):_0x385bbc[_0x1d59d7(0x9d)](_0x1f7336,_0x29f2cf[_0x1f7336]);}else _0x29f2cf[_0x1f7336]===0x0?_0x385bbc[_0x1d59d7(0x9d)](_0x1f7336,'0'):_0x385bbc[_0x1d59d7(0x9d)](_0x1f7336,'');}}return _0x385bbc;}export default request;function a80_0x3e1e(){const _0x4b0d11=['3770636xzzZWB','4845990lRnZSM','constructor','5738808bDajRw','create','get','append','692758NrTWVj','1196640bxMJgP','ajax','8phRQpm','stringify','jsonp','2501723plOVnT','2MuzqEZ','1391082DCPJqr','forEach'];a80_0x3e1e=function(){return _0x4b0d11;};return a80_0x3e1e();}
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a81_0xf85b(){const _0x58597b=['10vZAfnR','2331MsuWwm','indexOf','replace','2166336MZFXsl','8JWGhMs','24vmeUwP','4503dQFHgI','200905IRAvyH','689406bcOOzh','EPSG:','188uigspv','664447XEAdZz','5023623eyHFwO'];a81_0xf85b=function(){return _0x58597b;};return a81_0xf85b();}function a81_0x4dd3(_0x326ffa,_0x5e272e){const _0xf85b06=a81_0xf85b();return a81_0x4dd3=function(_0x4dd3d1,_0x4c68b3){_0x4dd3d1=_0x4dd3d1-0x1c1;let _0x384be7=_0xf85b06[_0x4dd3d1];return _0x384be7;},a81_0x4dd3(_0x326ffa,_0x5e272e);}(function(_0x555b1f,_0x413bd8){const _0x1d58a4=a81_0x4dd3,_0x5d3951=_0x555b1f();while(!![]){try{const _0x30a591=parseInt(_0x1d58a4(0x1cd))/0x1+-parseInt(_0x1d58a4(0x1c3))/0x2*(parseInt(_0x1d58a4(0x1c7))/0x3)+-parseInt(_0x1d58a4(0x1cb))/0x4*(-parseInt(_0x1d58a4(0x1ce))/0x5)+parseInt(_0x1d58a4(0x1c1))/0x6+-parseInt(_0x1d58a4(0x1c4))/0x7*(-parseInt(_0x1d58a4(0x1cc))/0x8)+parseInt(_0x1d58a4(0x1ca))/0x9+parseInt(_0x1d58a4(0x1c6))/0xa*(-parseInt(_0x1d58a4(0x1c5))/0xb);if(_0x30a591===_0x413bd8)break;else _0x5d3951['push'](_0x5d3951['shift']());}catch(_0x2715aa){_0x5d3951['push'](_0x5d3951['shift']());}}}(a81_0xf85b,0x2fbae));export function getEsriSpatialReference(_0x387e46){const _0x1c127e=a81_0x4dd3;let _0x30528a;if(_0x387e46){let _0x345589=_0x387e46['toUpperCase']();_0x345589[_0x1c127e(0x1c8)](_0x1c127e(0x1c2))===0x0?_0x30528a=_0x387e46[_0x1c127e(0x1c9)](_0x1c127e(0x1c2),''):_0x30528a=_0x387e46;}return _0x30528a;}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x233320,_0x442440){const _0x4f2b13=a84_0x450d,_0x3f49aa=_0x233320();while(!![]){try{const _0x2fec6d=-parseInt(_0x4f2b13(0x1f2))/0x1+-parseInt(_0x4f2b13(0x1fb))/0x2*(parseInt(_0x4f2b13(0x1de))/0x3)+parseInt(_0x4f2b13(0x1d5))/0x4*(parseInt(_0x4f2b13(0x1f7))/0x5)+-parseInt(_0x4f2b13(0x1f4))/0x6*(-parseInt(_0x4f2b13(0x1ec))/0x7)+parseInt(_0x4f2b13(0x201))/0x8*(parseInt(_0x4f2b13(0x1d6))/0x9)+-parseInt(_0x4f2b13(0x20b))/0xa*(parseInt(_0x4f2b13(0x1d2))/0xb)+-parseInt(_0x4f2b13(0x1f9))/0xc*(-parseInt(_0x4f2b13(0x1f6))/0xd);if(_0x2fec6d===_0x442440)break;else _0x3f49aa['push'](_0x3f49aa['shift']());}catch(_0x817b7e){_0x3f49aa['push'](_0x3f49aa['shift']());}}}(a84_0x91fa,0x2f450));import a84_0x29ee89 from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a84_0x1bd0e7}from'ol/coordinate';function a84_0x91fa(){const _0x2d2cf5=['10075BOuYbQ','error','27660jpFQZZ','MultiPoint','2FFqsws','isEmpty','getPolygons','map','sort','getCoordinates','16cooTfQ','union','getExtent','readGeometry','bufferOp','无法识别的数据类型','difference','toArray','getStartIndex','getGeometryType','20WkOjao','size','extractLine','abs','write','contains','transform','1251349sqOgtu','未找到投影信息','some','44HcuTTF','139941MHvLHX','getInteriorPoint','getCoordinate','clone','getGeometryN','getLinearRings','warn','getPixelFromCoordinate','179679YbpMDz','getLength','Polygon','intersects','getArea','indexOf','string','writeGeometry','getLineStrings','read','length','getType','MultiPolygon','getEndIndex','1024492cgDzlw','push','distance','Point','crosses','getInteriorRingN','370907thrCnd','forEach','6GnPIHv','getNumGeometries','3679Myfjqi'];a84_0x91fa=function(){return _0x2d2cf5;};return a84_0x91fa();}import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a84_0x543bf4,getArea as a84_0x36a5ec}from'ol/sphere';import a84_0x2beac7 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a84_0x43023c from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a84_0x3272e0 from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a84_0x17e094 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a84_0xa8f0e2 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a84_0x458b66 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a84_0x36330d from'ol/format/GeoJSON';import a84_0x1497f2 from'jsts/org/locationtech/jts/geom/GeometryFactory';import a84_0x2212ce from'jsts/org/locationtech/jts/linearref/LengthIndexedLine';import{Circle,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import{fromCircle}from'ol/geom/Polygon';import a84_0x414f9f from'ol/format/WKT';import a84_0x2addcc from'ol/format/EsriJSON';const _parser=new a84_0x17e094(undefined,undefined);_parser['inject'](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x4d517a,_0x4ab20a,_0xbca119=![]){const _0x5d5cc2=a84_0x450d;if(!_0x4d517a)return 0x0;if(typeof _0x4ab20a==_0x5d5cc2(0x1e4)){let _0x17b7ec=registerProj(_0x4ab20a);if(_0x17b7ec==null)return console[_0x5d5cc2(0x1f8)]('未找到投影信息'),0x0;_0x4ab20a=_0x17b7ec;}const _0x3412ab=isSpheroid(_0x4ab20a);if(_0xbca119)return a84_0x36a5ec(_0x4d517a,{'projection':_0x4ab20a});else{if(_0x3412ab){const _0x842bfc=getGeoProjection(_0x4d517a,_0x4ab20a);return _0x4d517a[_0x5d5cc2(0x1d9)]()['transform'](_0x4ab20a,_0x842bfc)[_0x5d5cc2(0x1e2)]();}return _0x4d517a[_0x5d5cc2(0x1e2)]();}}export function getLength(_0x35d9fa,_0x33c157,_0xc7974c=![]){const _0xa07a13=a84_0x450d;if(!_0x35d9fa)return 0x0;if(typeof _0x33c157=='string'){let _0xd64b3a=registerProj(_0x33c157);if(_0xd64b3a==null)return console[_0xa07a13(0x1f8)](_0xa07a13(0x1d3)),0x0;_0x33c157=_0xd64b3a;}const _0x19bea2=isSpheroid(_0x33c157);if(_0xc7974c)return a84_0x543bf4(_0x35d9fa,{'projection':_0x33c157});else{let _0x472c49=_0x35d9fa;if(_0x19bea2){const _0x1579ab=getGeoProjection(_0x35d9fa,_0x33c157);_0x472c49=_0x35d9fa[_0xa07a13(0x1d9)]()[_0xa07a13(0x1d1)](_0x33c157,_0x1579ab);}if(_0x472c49 instanceof LineString)return _0x472c49['getLength']();else{let _0x175bf6=0x0;for(let _0x7fe151=0x0;_0x7fe151<_0x472c49[_0xa07a13(0x1e6)]()[_0xa07a13(0x1e8)];_0x7fe151++){_0x175bf6+=_0x472c49[_0xa07a13(0x1e6)]()[_0x7fe151][_0xa07a13(0x1df)]();}return _0x175bf6;}}}export function bufferOp(_0x45c66d,_0x2d3535){const _0x51fed1=a84_0x450d,_0x31dec5=_parser['read'](_0x45c66d),_0x2bca7d=a84_0x2beac7[_0x51fed1(0x205)](_0x31dec5,_0x2d3535);return _parser[_0x51fed1(0x1cf)](_0x2bca7d);}export function bufferPixel(_0x3597fa,_0xc06d5a,_0x5bf3be){const _0x5a2121=a84_0x450d,_0x27219a=_0x5bf3be[_0x5a2121(0x1dd)](_0x3597fa[_0x5a2121(0x200)]()),_0x1ecd47=_0x5bf3be['getCoordinateFromPixel']([_0x27219a[0x0]+_0xc06d5a,_0x27219a[0x1]]),_0x5e1083=a84_0x1bd0e7(_0x3597fa[_0x5a2121(0x200)](),_0x1ecd47),_0x1097bb=bufferOp(_0x3597fa,_0x5e1083);return _0x1097bb;}export function contains(_0x1fdc6f,_0x400ef4){const _0x201cd7=a84_0x450d,_0x36887c=_parser['read'](_0x1fdc6f),_0x59c724=_parser[_0x201cd7(0x1e7)](_0x400ef4);return a84_0x43023c[_0x201cd7(0x1d0)](_0x36887c,_0x59c724);}export function crosses(_0x51e0a8,_0x2e414b){const _0x244e17=a84_0x450d,_0x185c00=_parser['read'](_0x51e0a8),_0x15c33a=_parser['read'](_0x2e414b);return a84_0x43023c[_0x244e17(0x1f0)](_0x185c00,_0x15c33a);}export function intersects(_0xa51bd9,_0x9dc3a6){const _0x71df20=a84_0x450d,_0x1385ce=_parser['read'](_0xa51bd9),_0x6cef91=_parser[_0x71df20(0x1e7)](_0x9dc3a6);return a84_0x43023c[_0x71df20(0x1e1)](_0x1385ce,_0x6cef91);}export function intersection(_0x334ced,_0x17fd41){const _0x5b2710=a84_0x450d,_0x37eccf=_parser[_0x5b2710(0x1e7)](_0x334ced),_0x215eb3=_parser[_0x5b2710(0x1e7)](_0x17fd41);return _parser[_0x5b2710(0x1cf)](a84_0x3272e0['intersection'](_0x37eccf,_0x215eb3));}export function union(_0x169c5c,_0x455d09){const _0x169a20=a84_0x450d,_0xbef299=_parser[_0x169a20(0x1e7)](_0x169c5c),_0x24a460=_parser['read'](_0x455d09);return _parser[_0x169a20(0x1cf)](a84_0x3272e0[_0x169a20(0x202)](_0xbef299,_0x24a460));}export function unions(_0x42b0ad){const _0x3a7195=a84_0x450d;if(!_0x42b0ad||_0x42b0ad['length']===0x0)return;if(_0x42b0ad[_0x3a7195(0x1e8)]===0x1)return _0x42b0ad[0x0][_0x3a7195(0x1d9)]();let _0x22d022=_parser[_0x3a7195(0x1e7)](_0x42b0ad[0x0]);for(let _0x3fd5d6=0x1;_0x3fd5d6<_0x42b0ad['length'];_0x3fd5d6++){const _0x497f51=_parser[_0x3a7195(0x1e7)](_0x42b0ad[_0x3fd5d6]);_0x22d022=a84_0x3272e0['union'](_0x22d022,_0x497f51);}return _parser[_0x3a7195(0x1cf)](_0x22d022);}export function difference(_0x50127d,_0x2233e8){const _0x1510f6=a84_0x450d,_0x1a86ed=_parser[_0x1510f6(0x1e7)](_0x50127d),_0x557c48=_parser['read'](_0x2233e8);return _parser[_0x1510f6(0x1cf)](a84_0x3272e0['difference'](_0x1a86ed,_0x557c48));}export function distance(_0x42a4ea,_0x321f41){const _0x11db69=a84_0x450d,_0x2867bd=_parser[_0x11db69(0x1e7)](_0x42a4ea),_0x3449eb=_parser[_0x11db69(0x1e7)](_0x321f41);return _parser[_0x11db69(0x1cf)](a84_0x458b66[_0x11db69(0x1ee)](_0x2867bd,_0x3449eb));}export function jstlSplit(_0x4a5930,_0x373880){const _0x996118=a84_0x450d,_0x5ef2f9=_parser['read'](_0x4a5930),_0x40dbeb=_parser[_0x996118(0x1e7)](_0x373880),_0x25d0c8=_0x5ef2f9[_0x996118(0x20a)]();let _0x3e937e=[];function _0x2191d9(_0x2dbf16,_0x3f40eb){const _0x1aede6=_0x996118,_0x145ac3=_0x2dbf16['getExteriorRing'](),_0x2206e3=_0x2dbf16['getNumInteriorRing'](),_0x83d416=[];for(let _0x5a4e81=0x0;_0x5a4e81<_0x2206e3;_0x5a4e81++){_0x83d416[_0x1aede6(0x1ed)](_0x2dbf16[_0x1aede6(0x1f1)](_0x5a4e81));}const _0xb2163=a84_0x3272e0['union'](_0x145ac3,_0x3f40eb),_0x84a61f=new a84_0xa8f0e2();_0x84a61f['add'](_0xb2163);const _0x901ce0=_0x84a61f[_0x1aede6(0x1fd)](),_0x189cca=new a84_0x1497f2();_0x901ce0[_0x1aede6(0x1cc)]()>0x1?_0x901ce0[_0x1aede6(0x208)]()['forEach'](_0x106353=>{const _0x34326a=_0x1aede6;let _0x497ddd=_0x106353;_0x83d416[_0x34326a(0x1f3)](_0x526e58=>{const _0x3475f9=_0x34326a,_0x243b11=_0x189cca['createPolygon'](_0x526e58);try{_0x497ddd=a84_0x3272e0[_0x3475f9(0x207)](_0x497ddd,_0x243b11);}catch(_0x5abe53){console[_0x3475f9(0x1dc)]('孔洞操作失败:',_0x5abe53);}}),_0x497ddd&&_0x3e937e[_0x34326a(0x1ed)](_parser['write'](_0x497ddd));}):_0x3e937e[_0x1aede6(0x1ed)](_parser[_0x1aede6(0x1cf)](_0x2dbf16));}if(_0x25d0c8==='Polygon')_0x2191d9(_0x5ef2f9,_0x40dbeb);else{if(_0x25d0c8===_0x996118(0x1ea)){const _0xa62b57=_0x5ef2f9[_0x996118(0x1f5)]();for(let _0x1142dc=0x0;_0x1142dc<_0xa62b57;_0x1142dc++){const _0x56a027=_0x5ef2f9[_0x996118(0x1da)](_0x1142dc);_0x2191d9(_0x56a027,_0x40dbeb);}}else throw new Error(_0x996118(0x206));}return _0x3e937e;}export function splitLineByLine(_0xa62922,_0x2de9ce){const _0x275a88=a84_0x450d,_0x80492c=_parser[_0x275a88(0x1e7)](_0xa62922),_0x52eeb3=_parser['read'](_0x2de9ce),_0x4e36d7=a84_0x3272e0['intersection'](_0x80492c,_0x52eeb3);if(!_0x4e36d7||_0x4e36d7[_0x275a88(0x1fc)]())return[_0xa62922];const _0x453601=[];if(_0x4e36d7[_0x275a88(0x20a)]()===_0x275a88(0x1ef))_0x453601[_0x275a88(0x1ed)](_0x4e36d7[_0x275a88(0x1d8)]());else{if(_0x4e36d7[_0x275a88(0x20a)]()===_0x275a88(0x1fa))for(let _0x254415=0x0;_0x254415<_0x4e36d7[_0x275a88(0x1f5)]();_0x254415++){_0x453601[_0x275a88(0x1ed)](_0x4e36d7['getGeometryN'](_0x254415)[_0x275a88(0x1d8)]());}}const _0x2e52df=new a84_0x2212ce(_0x80492c),_0x3fd29d=_0x453601[_0x275a88(0x1fe)](_0x1363b0=>_0x2e52df[_0x275a88(0x1e3)](_0x1363b0))[_0x275a88(0x1ff)]((_0x37436c,_0x8feab9)=>_0x37436c-_0x8feab9),_0x52a8c4=[],_0xcb07b1=1e-9;for(let _0x175681=0x0;_0x175681<_0x3fd29d[_0x275a88(0x1e8)];_0x175681++){if(_0x175681===0x0||Math[_0x275a88(0x1ce)](_0x3fd29d[_0x175681]-_0x3fd29d[_0x175681-0x1])>_0xcb07b1)_0x52a8c4['push'](_0x3fd29d[_0x175681]);}const _0x28ee26=[];let _0x22d8e3=_0x2e52df['getStartIndex']?_0x2e52df[_0x275a88(0x209)]():0x0;const _0x5263c2=_0x2e52df['getEndIndex']&&_0x2e52df[_0x275a88(0x1eb)]()||_0x80492c[_0x275a88(0x1df)]();for(let _0x418b81=0x0;_0x418b81<_0x52a8c4[_0x275a88(0x1e8)];_0x418b81++){const _0x341a20=_0x52a8c4[_0x418b81];if(_0x341a20-_0x22d8e3>_0xcb07b1){const _0x85e103=_0x2e52df[_0x275a88(0x1cd)](_0x22d8e3,_0x341a20);_0x28ee26[_0x275a88(0x1ed)](_parser[_0x275a88(0x1cf)](_0x85e103));}_0x22d8e3=_0x341a20;}if(_0x5263c2-_0x22d8e3>_0xcb07b1){const _0x4e2ce4=_0x2e52df[_0x275a88(0x1cd)](_0x22d8e3,_0x5263c2);_0x28ee26[_0x275a88(0x1ed)](_parser[_0x275a88(0x1cf)](_0x4e2ce4));}const _0x3404ff=_0x28ee26['filter'](_0x3917d4=>{const _0x34a537=_0x275a88,_0x1dc21b=_0x3917d4[_0x34a537(0x200)]();return _0x1dc21b&&_0x1dc21b[_0x34a537(0x1e8)]>=0x2&&!(_0x1dc21b[_0x34a537(0x1e8)]===0x2&&_0x1dc21b[0x0][0x0]===_0x1dc21b[0x1][0x0]&&_0x1dc21b[0x0][0x1]===_0x1dc21b[0x1][0x1]);});return _0x3404ff;}function a84_0x450d(_0x5af2ad,_0x2f19da){const _0x91fad6=a84_0x91fa();return a84_0x450d=function(_0x450df1,_0x4e0cdd){_0x450df1=_0x450df1-0x1cc;let _0x23668d=_0x91fad6[_0x450df1];return _0x23668d;},a84_0x450d(_0x5af2ad,_0x2f19da);}export function fromWKT(_0x8c1e56,_0x4d6200,_0x2d7455){const _0x4b5427=a84_0x450d,_0x5cdd1b=new a84_0x414f9f();_0x4d6200&®isterProj(_0x4d6200);_0x2d7455&®isterProj(_0x2d7455);const _0x442724=_0x5cdd1b[_0x4b5427(0x204)](_0x8c1e56);if(isGeometryEmpty(_0x442724))return null;return _0x4d6200&&_0x2d7455?_0x442724[_0x4b5427(0x1d1)](new a84_0x29ee89({'code':_0x4d6200}),new a84_0x29ee89({'code':_0x2d7455})):_0x442724;}export function fromWKTs(_0x35b692,_0x2f393e,_0x7fd2dc){const _0x404012=a84_0x450d,_0x2720d9=new a84_0x414f9f();let _0x18d3cb=[];_0x2f393e&®isterProj(_0x2f393e);_0x7fd2dc&®isterProj(_0x7fd2dc);let _0x152911,_0x3f3a4f;_0x2f393e&&_0x7fd2dc&&(_0x152911=new a84_0x29ee89({'code':_0x2f393e}),_0x3f3a4f=new a84_0x29ee89({'code':_0x7fd2dc}));for(let _0x1b8da7=0x0;_0x1b8da7<_0x35b692[_0x404012(0x1e8)];_0x1b8da7++){const _0x34fd09=_0x2720d9[_0x404012(0x204)](_0x35b692[_0x1b8da7]);if(isGeometryEmpty(_0x34fd09))continue;_0x152911&&_0x3f3a4f?_0x18d3cb['push'](_0x34fd09['transform'](_0x152911,_0x3f3a4f)):_0x18d3cb[_0x404012(0x1ed)](_0x34fd09);}return _0x18d3cb;}export function toWKT(_0x2d2fb8){const _0x1da6c4=a84_0x450d,_0x5a1f7f=new a84_0x414f9f();if(isGeometryEmpty(_0x2d2fb8))return'';if(_0x2d2fb8 instanceof Circle){const _0x6036fd=fromCircle(_0x2d2fb8);return _0x5a1f7f[_0x1da6c4(0x1e5)](_0x6036fd);}else return _0x5a1f7f[_0x1da6c4(0x1e5)](_0x2d2fb8);}export function toGeoJSON(_0x11d1c4){const _0x5efd4b=new a84_0x36330d();return _0x5efd4b['writeGeometry'](_0x11d1c4);}export function fromGeoJSON(_0x2ce7fb){const _0x2fc0d4=a84_0x450d,_0x1e6a67=new a84_0x36330d();return _0x1e6a67[_0x2fc0d4(0x204)](_0x2ce7fb);}export function toEsriJSON(_0xdadbac){const _0x4d328d=a84_0x450d,_0x1d006=new a84_0x2addcc();return _0x1d006[_0x4d328d(0x1e5)](_0xdadbac);}export function fromEsriJSON(_0x344afe){const _0x11106a=new a84_0x2addcc();return _0x11106a['readGeometry'](_0x344afe);}export function expandExtent(_0x51f9ee,_0x5aa008){const _0x33239f=_0x51f9ee[0x0],_0x58846d=_0x51f9ee[0x1],_0x4e9360=_0x51f9ee[0x2],_0x303cd0=_0x51f9ee[0x3],_0x40ba8c=(_0x33239f+_0x4e9360)/0x2,_0xbaa466=(_0x58846d+_0x303cd0)/0x2,_0xe73722=_0x4e9360-_0x33239f,_0x2fce1e=_0x303cd0-_0x58846d,_0x465b0b=_0xe73722*_0x5aa008,_0x3a393d=_0x2fce1e*_0x5aa008,_0xe1fe76=_0x40ba8c-_0x465b0b/0x2,_0x9f37b2=_0x40ba8c+_0x465b0b/0x2,_0x195e2b=_0xbaa466-_0x3a393d/0x2,_0x128296=_0xbaa466+_0x3a393d/0x2;return[_0xe1fe76,_0x195e2b,_0x9f37b2,_0x128296];}export function isGeometryEmpty(_0x530e48){const _0x1ca954=a84_0x450d;if(!_0x530e48)return!![];if(_0x530e48 instanceof Point||_0x530e48 instanceof MultiPoint){const _0x150f67=_0x530e48['getCoordinates']();return!_0x150f67||_0x150f67[_0x1ca954(0x1d4)](_0x59fea7=>isNaN(_0x59fea7));}else{if(_0x530e48 instanceof LineString||_0x530e48 instanceof MultiLineString)return _0x530e48[_0x1ca954(0x200)]()[_0x1ca954(0x1e8)]<0x2;else{if(_0x530e48 instanceof Polygon){const _0xb34685=_0x530e48[_0x1ca954(0x200)]();return!_0xb34685||_0xb34685[_0x1ca954(0x1e8)]===0x0||_0xb34685[0x0][_0x1ca954(0x1e8)]<0x4;}else{if(_0x530e48 instanceof MultiPolygon){const _0x3c899e=_0x530e48['getCoordinates']();return!_0x3c899e||_0x3c899e[_0x1ca954(0x1e8)]===0x0||_0x3c899e[0x0][0x0][_0x1ca954(0x1e8)]<0x4;}}}}return![];}export function polygonToLines(_0x1b0290){const _0x4315a6=a84_0x450d;if(!_0x1b0290)return[];const _0x24622f=_0x1b0290[_0x4315a6(0x1db)]();return _0x24622f[_0x4315a6(0x1fe)](_0xc98fad=>new LineString(_0xc98fad['getCoordinates']()));}export function getGeometryCenter(_0x1e3db4){const _0x5d195a=a84_0x450d;if(!_0x1e3db4)return undefined;const _0x36c924=_0x1e3db4[_0x5d195a(0x1e9)]();if(_0x36c924==='Point')return new Point(_0x1e3db4[_0x5d195a(0x200)]());if(_0x36c924===_0x5d195a(0x1e0)||_0x36c924===_0x5d195a(0x1ea))return _0x1e3db4[_0x5d195a(0x1d7)]();const _0xf42291=getCenter(_0x1e3db4[_0x5d195a(0x203)]());return new Point(_0xf42291);}
|
|
1
|
+
(function(_0x8981d1,_0x14afb5){const _0x2bed5c=a84_0x5596,_0x15f5ac=_0x8981d1();while(!![]){try{const _0x202564=-parseInt(_0x2bed5c(0x148))/0x1+parseInt(_0x2bed5c(0x137))/0x2*(-parseInt(_0x2bed5c(0x136))/0x3)+-parseInt(_0x2bed5c(0x156))/0x4+parseInt(_0x2bed5c(0x161))/0x5*(parseInt(_0x2bed5c(0x138))/0x6)+parseInt(_0x2bed5c(0x157))/0x7+-parseInt(_0x2bed5c(0x160))/0x8*(parseInt(_0x2bed5c(0x145))/0x9)+-parseInt(_0x2bed5c(0x13d))/0xa*(-parseInt(_0x2bed5c(0x15c))/0xb);if(_0x202564===_0x14afb5)break;else _0x15f5ac['push'](_0x15f5ac['shift']());}catch(_0x5de20d){_0x15f5ac['push'](_0x15f5ac['shift']());}}}(a84_0x2c29,0xe4108));import a84_0x21d1b6 from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a84_0x1f7977}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a84_0x1d4870,getArea as a84_0x3570c8}from'ol/sphere';import a84_0x2ed749 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a84_0x478fc0 from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a84_0x2006ce from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a84_0x12dae from'jsts/org/locationtech/jts/io/OL3Parser.js';import a84_0x576277 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a84_0x3b9c99 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a84_0x577696 from'ol/format/GeoJSON';import a84_0x59e11e from'jsts/org/locationtech/jts/geom/GeometryFactory';import a84_0x16153c from'jsts/org/locationtech/jts/linearref/LengthIndexedLine';import{Circle,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import{fromCircle}from'ol/geom/Polygon';import a84_0x1237cc from'ol/format/WKT';import a84_0x54cbb3 from'ol/format/EsriJSON';const _parser=new a84_0x12dae(undefined,undefined);_parser['inject'](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x188349,_0x5d11a3,_0x448479=![]){const _0x56e1ec=a84_0x5596;if(!_0x188349)return 0x0;if(typeof _0x5d11a3=='string'){let _0x36b236=registerProj(_0x5d11a3);if(_0x36b236==null)return console['error'](_0x56e1ec(0x154)),0x0;_0x5d11a3=_0x36b236;}const _0x4dac45=isSpheroid(_0x5d11a3);if(_0x448479)return a84_0x3570c8(_0x188349,{'projection':_0x5d11a3});else{if(_0x4dac45){const _0x4e5c0a=getGeoProjection(_0x188349,_0x5d11a3);return _0x188349[_0x56e1ec(0x162)]()['transform'](_0x5d11a3,_0x4e5c0a)[_0x56e1ec(0x130)]();}return _0x188349[_0x56e1ec(0x130)]();}}export function getLength(_0x12c8e9,_0x1bc070,_0x1d19b0=![]){const _0x50f72e=a84_0x5596;if(!_0x12c8e9)return 0x0;if(typeof _0x1bc070==_0x50f72e(0x13b)){let _0x545f16=registerProj(_0x1bc070);if(_0x545f16==null)return console[_0x50f72e(0x163)](_0x50f72e(0x154)),0x0;_0x1bc070=_0x545f16;}const _0x4fa258=isSpheroid(_0x1bc070);if(_0x1d19b0)return a84_0x1d4870(_0x12c8e9,{'projection':_0x1bc070});else{let _0x5ab265=_0x12c8e9;if(_0x4fa258){const _0x252d37=getGeoProjection(_0x12c8e9,_0x1bc070);_0x5ab265=_0x12c8e9[_0x50f72e(0x162)]()[_0x50f72e(0x14b)](_0x1bc070,_0x252d37);}if(_0x5ab265 instanceof LineString)return _0x5ab265[_0x50f72e(0x14e)]();else{let _0x199c8f=0x0;for(let _0x224fc7=0x0;_0x224fc7<_0x5ab265[_0x50f72e(0x14d)]()['length'];_0x224fc7++){_0x199c8f+=_0x5ab265[_0x50f72e(0x14d)]()[_0x224fc7][_0x50f72e(0x14e)]();}return _0x199c8f;}}}export function bufferOp(_0x2a2ef0,_0x7d782){const _0x449e16=a84_0x5596,_0x3709dd=_parser['read'](_0x2a2ef0),_0x3bff98=a84_0x2ed749['bufferOp'](_0x3709dd,_0x7d782);return _parser[_0x449e16(0x158)](_0x3bff98);}export function bufferPixel(_0x464179,_0x244abc,_0x135879){const _0x21b1e8=a84_0x5596,_0x18b200=_0x135879['getPixelFromCoordinate'](_0x464179[_0x21b1e8(0x155)]()),_0xc30a74=_0x135879['getCoordinateFromPixel']([_0x18b200[0x0]+_0x244abc,_0x18b200[0x1]]),_0x28bdd5=a84_0x1f7977(_0x464179[_0x21b1e8(0x155)](),_0xc30a74),_0x59ffb0=bufferOp(_0x464179,_0x28bdd5);return _0x59ffb0;}export function contains(_0x42f369,_0x39ab3d){const _0x520220=a84_0x5596,_0x153baa=_parser['read'](_0x42f369),_0x24646a=_parser[_0x520220(0x144)](_0x39ab3d);return a84_0x478fc0['contains'](_0x153baa,_0x24646a);}export function crosses(_0x35a9ac,_0x21ac4a){const _0x79850d=a84_0x5596,_0x5bb80e=_parser[_0x79850d(0x144)](_0x35a9ac),_0x37eda3=_parser[_0x79850d(0x144)](_0x21ac4a);return a84_0x478fc0[_0x79850d(0x15e)](_0x5bb80e,_0x37eda3);}export function intersects(_0x3372d5,_0x5a1a5a){const _0x4754aa=a84_0x5596,_0x1897a1=_parser[_0x4754aa(0x144)](_0x3372d5),_0x191fd5=_parser[_0x4754aa(0x144)](_0x5a1a5a);return a84_0x478fc0['intersects'](_0x1897a1,_0x191fd5);}export function intersection(_0x3abe07,_0x22b06e){const _0xe37c0a=a84_0x5596,_0x4e87ec=_parser[_0xe37c0a(0x144)](_0x3abe07),_0x4c71f0=_parser[_0xe37c0a(0x144)](_0x22b06e);return _parser[_0xe37c0a(0x158)](a84_0x2006ce[_0xe37c0a(0x12e)](_0x4e87ec,_0x4c71f0));}export function union(_0x5dc546,_0xdf3c70){const _0x3236c7=a84_0x5596,_0x4e1fd0=_parser[_0x3236c7(0x144)](_0x5dc546),_0x2cf120=_parser[_0x3236c7(0x144)](_0xdf3c70);return _parser[_0x3236c7(0x158)](a84_0x2006ce[_0x3236c7(0x165)](_0x4e1fd0,_0x2cf120));}export function unions(_0x5615d6){const _0x1aaa64=a84_0x5596;if(!_0x5615d6||_0x5615d6[_0x1aaa64(0x141)]===0x0)return;if(_0x5615d6['length']===0x1)return _0x5615d6[0x0][_0x1aaa64(0x162)]();let _0x559359=_parser['read'](_0x5615d6[0x0]);for(let _0x1a59cd=0x1;_0x1a59cd<_0x5615d6['length'];_0x1a59cd++){const _0x4f24c8=_parser[_0x1aaa64(0x144)](_0x5615d6[_0x1a59cd]);_0x559359=a84_0x2006ce[_0x1aaa64(0x165)](_0x559359,_0x4f24c8);}return _parser[_0x1aaa64(0x158)](_0x559359);}export function difference(_0x27bdaa,_0x35cea4){const _0x1c650d=a84_0x5596,_0x33c0dd=_parser['read'](_0x27bdaa),_0x546e7a=_parser[_0x1c650d(0x144)](_0x35cea4);return _parser[_0x1c650d(0x158)](a84_0x2006ce[_0x1c650d(0x15f)](_0x33c0dd,_0x546e7a));}export function distance(_0x3b1d37,_0xc5f4ac){const _0x286448=a84_0x5596,_0x3b525b=_parser['read'](_0x3b1d37),_0x2a8aa1=_parser['read'](_0xc5f4ac);return _parser[_0x286448(0x158)](a84_0x3b9c99[_0x286448(0x13c)](_0x3b525b,_0x2a8aa1));}export function jstlSplit(_0x48270f,_0x21c278){const _0x5b7a53=a84_0x5596,_0x1a2fd4=_parser[_0x5b7a53(0x144)](_0x48270f),_0x1fa244=_parser['read'](_0x21c278),_0x32c773=_0x1a2fd4[_0x5b7a53(0x153)]();let _0x49f6ff=[];function _0x4097be(_0x2211c1,_0x4e5bf9){const _0x235fd5=_0x5b7a53,_0x9351a2=_0x2211c1[_0x235fd5(0x146)](),_0x4db72a=_0x2211c1[_0x235fd5(0x147)](),_0x544a63=[];for(let _0x2e4c9e=0x0;_0x2e4c9e<_0x4db72a;_0x2e4c9e++){_0x544a63[_0x235fd5(0x150)](_0x2211c1['getInteriorRingN'](_0x2e4c9e));}const _0x4b97b0=a84_0x2006ce[_0x235fd5(0x165)](_0x9351a2,_0x4e5bf9),_0x420460=new a84_0x576277();_0x420460[_0x235fd5(0x134)](_0x4b97b0);const _0x476f26=_0x420460[_0x235fd5(0x135)](),_0x2eabe2=new a84_0x59e11e();_0x476f26[_0x235fd5(0x143)]()>0x1?_0x476f26['toArray']()['forEach'](_0x11e574=>{const _0x304932=_0x235fd5;let _0x44fed4=_0x11e574;_0x544a63[_0x304932(0x142)](_0x28b516=>{const _0x6a920c=_0x304932,_0x50960a=_0x2eabe2['createPolygon'](_0x28b516);try{_0x44fed4=a84_0x2006ce[_0x6a920c(0x15f)](_0x44fed4,_0x50960a);}catch(_0x53cca9){console[_0x6a920c(0x133)]('孔洞操作失败:',_0x53cca9);}}),_0x44fed4&&_0x49f6ff[_0x304932(0x150)](_parser[_0x304932(0x158)](_0x44fed4));}):_0x49f6ff[_0x235fd5(0x150)](_parser['write'](_0x2211c1));}if(_0x32c773===_0x5b7a53(0x152))_0x4097be(_0x1a2fd4,_0x1fa244);else{if(_0x32c773===_0x5b7a53(0x15b)){const _0x3cf4bd=_0x1a2fd4['getNumGeometries']();for(let _0x271230=0x0;_0x271230<_0x3cf4bd;_0x271230++){const _0x2e8f60=_0x1a2fd4[_0x5b7a53(0x13a)](_0x271230);_0x4097be(_0x2e8f60,_0x1fa244);}}else throw new Error(_0x5b7a53(0x151));}return _0x49f6ff;}export function splitLineByLine(_0x58e0bc,_0x1d670c){const _0x47dd19=a84_0x5596,_0x63e149=_parser['read'](_0x58e0bc),_0x258942=_parser[_0x47dd19(0x144)](_0x1d670c),_0x12448c=a84_0x2006ce[_0x47dd19(0x12e)](_0x63e149,_0x258942);if(!_0x12448c||_0x12448c[_0x47dd19(0x14c)]())return[_0x58e0bc];const _0x25b968=[];if(_0x12448c[_0x47dd19(0x153)]()===_0x47dd19(0x132))_0x25b968['push'](_0x12448c[_0x47dd19(0x13f)]());else{if(_0x12448c['getGeometryType']()===_0x47dd19(0x14a))for(let _0x3dd24d=0x0;_0x3dd24d<_0x12448c['getNumGeometries']();_0x3dd24d++){_0x25b968[_0x47dd19(0x150)](_0x12448c[_0x47dd19(0x13a)](_0x3dd24d)[_0x47dd19(0x13f)]());}}const _0x24a794=new a84_0x16153c(_0x63e149),_0x4d30e8=_0x25b968[_0x47dd19(0x15d)](_0x500e3a=>_0x24a794[_0x47dd19(0x164)](_0x500e3a))[_0x47dd19(0x13e)]((_0x1d3012,_0x820fb5)=>_0x1d3012-_0x820fb5),_0x47fa23=[],_0x1ea9a2=1e-9;for(let _0xc0a3e4=0x0;_0xc0a3e4<_0x4d30e8[_0x47dd19(0x141)];_0xc0a3e4++){if(_0xc0a3e4===0x0||Math[_0x47dd19(0x15a)](_0x4d30e8[_0xc0a3e4]-_0x4d30e8[_0xc0a3e4-0x1])>_0x1ea9a2)_0x47fa23[_0x47dd19(0x150)](_0x4d30e8[_0xc0a3e4]);}const _0x535c6f=[];let _0x5511d8=_0x24a794[_0x47dd19(0x159)]?_0x24a794[_0x47dd19(0x159)]():0x0;const _0x254102=_0x24a794[_0x47dd19(0x12f)]&&_0x24a794[_0x47dd19(0x12f)]()||_0x63e149['getLength']();for(let _0x27c993=0x0;_0x27c993<_0x47fa23['length'];_0x27c993++){const _0x1e3087=_0x47fa23[_0x27c993];if(_0x1e3087-_0x5511d8>_0x1ea9a2){const _0x5c9ad1=_0x24a794[_0x47dd19(0x149)](_0x5511d8,_0x1e3087);_0x535c6f['push'](_parser[_0x47dd19(0x158)](_0x5c9ad1));}_0x5511d8=_0x1e3087;}if(_0x254102-_0x5511d8>_0x1ea9a2){const _0x3f1638=_0x24a794['extractLine'](_0x5511d8,_0x254102);_0x535c6f[_0x47dd19(0x150)](_parser[_0x47dd19(0x158)](_0x3f1638));}const _0x2ad272=_0x535c6f[_0x47dd19(0x166)](_0x766d4b=>{const _0x1b2a43=_0x47dd19,_0x130eda=_0x766d4b['getCoordinates']();return _0x130eda&&_0x130eda[_0x1b2a43(0x141)]>=0x2&&!(_0x130eda[_0x1b2a43(0x141)]===0x2&&_0x130eda[0x0][0x0]===_0x130eda[0x1][0x0]&&_0x130eda[0x0][0x1]===_0x130eda[0x1][0x1]);});return _0x2ad272;}export function fromWKT(_0x594f55,_0x3346bc,_0x4f9c82){const _0x435976=a84_0x5596,_0x1427d0=new a84_0x1237cc();_0x3346bc&®isterProj(_0x3346bc);_0x4f9c82&®isterProj(_0x4f9c82);const _0x277876=_0x1427d0[_0x435976(0x140)](_0x594f55);if(isGeometryEmpty(_0x277876))return null;return _0x3346bc&&_0x4f9c82?_0x277876[_0x435976(0x14b)](new a84_0x21d1b6({'code':_0x3346bc}),new a84_0x21d1b6({'code':_0x4f9c82})):_0x277876;}export function fromWKTs(_0x2dd377,_0x255208,_0x18bf3d){const _0x362377=a84_0x5596,_0x35e815=new a84_0x1237cc();let _0x3ddb85=[];_0x255208&®isterProj(_0x255208);_0x18bf3d&®isterProj(_0x18bf3d);let _0x13fc75,_0x6e8cc0;_0x255208&&_0x18bf3d&&(_0x13fc75=new a84_0x21d1b6({'code':_0x255208}),_0x6e8cc0=new a84_0x21d1b6({'code':_0x18bf3d}));for(let _0x198e4b=0x0;_0x198e4b<_0x2dd377['length'];_0x198e4b++){const _0x21751d=_0x35e815[_0x362377(0x140)](_0x2dd377[_0x198e4b]);if(isGeometryEmpty(_0x21751d))continue;_0x13fc75&&_0x6e8cc0?_0x3ddb85[_0x362377(0x150)](_0x21751d[_0x362377(0x14b)](_0x13fc75,_0x6e8cc0)):_0x3ddb85['push'](_0x21751d);}return _0x3ddb85;}export function toWKT(_0x3dd721){const _0x22b4b2=a84_0x5596,_0x3a645c=new a84_0x1237cc();if(isGeometryEmpty(_0x3dd721))return'';if(_0x3dd721 instanceof Circle){const _0x9264d9=fromCircle(_0x3dd721);return _0x3a645c[_0x22b4b2(0x14f)](_0x9264d9);}else return _0x3a645c[_0x22b4b2(0x14f)](_0x3dd721);}export function toGeoJSON(_0x12cad6){const _0x320136=a84_0x5596,_0x556b63=new a84_0x577696();return _0x556b63[_0x320136(0x14f)](_0x12cad6);}export function fromGeoJSON(_0x58539e){const _0x3caa31=a84_0x5596,_0x3fc6e1=new a84_0x577696();return _0x3fc6e1[_0x3caa31(0x140)](_0x58539e);}function a84_0x2c29(){const _0x35b482=['getGeometryType','未找到投影信息','getCoordinates','1669552zDmRLR','6875715GDpRAC','write','getStartIndex','abs','MultiPolygon','77JmjIae','map','crosses','difference','1717016mYHDHa','4010bGNLUy','clone','error','indexOf','union','filter','getType','intersection','getEndIndex','getArea','getLinearRings','Point','warn','add','getPolygons','1971633hpqiHm','2JiqNbQ','2658EPrxLt','getInteriorPoint','getGeometryN','string','distance','5974330GmjaXE','sort','getCoordinate','readGeometry','length','forEach','size','read','72XXLqff','getExteriorRing','getNumInteriorRing','1793795jCrSJj','extractLine','MultiPoint','transform','isEmpty','getLineStrings','getLength','writeGeometry','push','无法识别的数据类型','Polygon'];a84_0x2c29=function(){return _0x35b482;};return a84_0x2c29();}function a84_0x5596(_0x5b3975,_0x2ba787){const _0x2c2924=a84_0x2c29();return a84_0x5596=function(_0x55964e,_0x27a3ee){_0x55964e=_0x55964e-0x12d;let _0x2b3ef2=_0x2c2924[_0x55964e];return _0x2b3ef2;},a84_0x5596(_0x5b3975,_0x2ba787);}export function toEsriJSON(_0x4b60cf){const _0x21efc4=new a84_0x54cbb3();return _0x21efc4['writeGeometry'](_0x4b60cf);}export function fromEsriJSON(_0x31354f){const _0x3168c4=new a84_0x54cbb3();return _0x3168c4['readGeometry'](_0x31354f);}export function expandExtent(_0x8cc526,_0x51b376){const _0x539fc6=_0x8cc526[0x0],_0x43a504=_0x8cc526[0x1],_0x3f156=_0x8cc526[0x2],_0x57f212=_0x8cc526[0x3],_0xa28d45=(_0x539fc6+_0x3f156)/0x2,_0x3f6a69=(_0x43a504+_0x57f212)/0x2,_0x495961=_0x3f156-_0x539fc6,_0x301cdc=_0x57f212-_0x43a504,_0x4a62d7=_0x495961*_0x51b376,_0x447aaf=_0x301cdc*_0x51b376,_0x37c594=_0xa28d45-_0x4a62d7/0x2,_0xe5572e=_0xa28d45+_0x4a62d7/0x2,_0x12ca80=_0x3f6a69-_0x447aaf/0x2,_0x380c0d=_0x3f6a69+_0x447aaf/0x2;return[_0x37c594,_0x12ca80,_0xe5572e,_0x380c0d];}export function isGeometryEmpty(_0x31e51f){const _0x3464e4=a84_0x5596;if(!_0x31e51f)return!![];if(_0x31e51f instanceof Point||_0x31e51f instanceof MultiPoint){const _0x9139fc=_0x31e51f[_0x3464e4(0x155)]();return!_0x9139fc||_0x9139fc['some'](_0x161db6=>isNaN(_0x161db6));}else{if(_0x31e51f instanceof LineString||_0x31e51f instanceof MultiLineString)return _0x31e51f[_0x3464e4(0x155)]()[_0x3464e4(0x141)]<0x2;else{if(_0x31e51f instanceof Polygon){const _0x3e527a=_0x31e51f['getCoordinates']();return!_0x3e527a||_0x3e527a[_0x3464e4(0x141)]===0x0||_0x3e527a[0x0]['length']<0x4;}else{if(_0x31e51f instanceof MultiPolygon){const _0x42949c=_0x31e51f[_0x3464e4(0x155)]();return!_0x42949c||_0x42949c[_0x3464e4(0x141)]===0x0||_0x42949c[0x0][0x0][_0x3464e4(0x141)]<0x4;}}}}return![];}export function polygonToLines(_0x18d7cc){const _0x4e687b=a84_0x5596;if(!_0x18d7cc)return[];const _0x1289ab=_0x18d7cc[_0x4e687b(0x131)]();return _0x1289ab[_0x4e687b(0x15d)](_0x798fd5=>new LineString(_0x798fd5['getCoordinates']()));}export function getGeometryCenter(_0x2f963b){const _0x1fd9cf=a84_0x5596;if(!_0x2f963b)return undefined;const _0x5d5ba5=_0x2f963b[_0x1fd9cf(0x12d)]();if(_0x5d5ba5===_0x1fd9cf(0x132))return new Point(_0x2f963b[_0x1fd9cf(0x155)]());if(_0x5d5ba5==='Polygon'||_0x5d5ba5===_0x1fd9cf(0x15b))return _0x2f963b[_0x1fd9cf(0x139)]();const _0x310474=getCenter(_0x2f963b['getExtent']());return new Point(_0x310474);}
|