ym-gis-2d 1.0.38 → 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.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
var
|
|
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 a75_0xb173(){const _0x89426f=['show','height','getStride','match','width','billboard','getContext','radius','changeColor','stringify','pixelOffsetY','verticalOrigin','push','context','getFlatMidpoint','drawImage','replace','save','outlineColor','Polygon','MultiPolygon','restore','parse','translate','LineString','cloud','canvas','114hSugeG','3203150KuayFt','model','TOP','horizontalOrigin','modelKind','pixelRatio','getFlatInteriorPoint','opacity','outlineWidth','getPixelFromCoordinate','outline','markerColor','model/','592220ZDllhQ','color','createElement','MultiLineString','92XJSweQ','pixelSize','scale','484994gdyPGF','point','toUpperCase','425117gwTafa','image','src','LEFT','rotation','text','getFlatMidpoints','length','BOTTOM','MultiPoint','data','imgUrl','pixelOffset','CENTER','label','rotate','1202872FEAehJ','358673lePinY','geometry','warn','.png','zIndex','149118tOBNRr','423lrVqce'];a75_0xb173=function(){return _0x89426f;};return a75_0xb173();}(function(_0x3805fb,_0x5e2a42){const _0x57b40d=a75_0x10ae,_0x215bb3=_0x3805fb();while(!![]){try{const _0x3b1cc7=-parseInt(_0x57b40d(0x179))/0x1+-parseInt(_0x57b40d(0x176))/0x2+-parseInt(_0x57b40d(0x144))/0x3*(parseInt(_0x57b40d(0x173))/0x4)+parseInt(_0x57b40d(0x162))/0x5+-parseInt(_0x57b40d(0x161))/0x6*(parseInt(_0x57b40d(0x13f))/0x7)+parseInt(_0x57b40d(0x13e))/0x8+-parseInt(_0x57b40d(0x145))/0x9*(-parseInt(_0x57b40d(0x16f))/0xa);if(_0x3b1cc7===_0x5e2a42)break;else _0x215bb3['push'](_0x215bb3['shift']());}catch(_0x1897c5){_0x215bb3['push'](_0x215bb3['shift']());}}}(a75_0xb173,0xc0e0e));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';import a75_0x5aac00 from'ol/style/Style';import a75_0x578f06 from'ol/style/Circle';function a75_0x10ae(_0x54c61a,_0x43d809){const _0xb17339=a75_0xb173();return a75_0x10ae=function(_0x10aef6,_0x294a9f){_0x10aef6=_0x10aef6-0x136;let _0x98bdf7=_0xb17339[_0x10aef6];return _0x98bdf7;},a75_0x10ae(_0x54c61a,_0x43d809);}import a75_0x519de3 from'ol/style/Fill';import a75_0x5b6d34 from'ol/style/Stroke';function getMainStyle(_0x2e86dc,_0x10c932=0x0,_0x3edb7d){const _0x53878f=a75_0x10ae;let _0x1bd96e;return _0x2e86dc[_0x53878f(0x17a)]||_0x2e86dc[_0x53878f(0x16d)]?_0x1bd96e=new a75_0x5aac00({'renderer':(_0x36a7b8,_0x174205)=>{preLoadImageRenderFunction(_0x2e86dc,_0x36a7b8,_0x174205,_0x3edb7d,_rendererFunction);},'zIndex':Number(_0x10c932)}):_0x1bd96e=new a75_0x5aac00({'image':new a75_0x578f06({'radius':_0x2e86dc[_0x53878f(0x14d)]?_0x2e86dc[_0x53878f(0x14d)]:_0x2e86dc[_0x53878f(0x174)],'fill':new a75_0x519de3({'color':getColor(_0x2e86dc[_0x53878f(0x170)],_0x2e86dc[_0x53878f(0x169)])}),'stroke':_0x2e86dc[_0x53878f(0x16c)]&&_0x2e86dc[_0x53878f(0x158)]?new a75_0x5b6d34({'color':getColor(_0x2e86dc[_0x53878f(0x158)],_0x2e86dc['outlineOpacity']),'width':_0x2e86dc[_0x53878f(0x16a)]}):undefined}),'zIndex':Number(_0x10c932)}),_0x1bd96e;}function _rendererFunction(_0x2bcd84,_0x5ee92a,_0x4dadbd,_0x2535b8,_0x26fb64){const _0x2bc8eb=a75_0x10ae;if(!_0x26fb64||_0x26fb64['width']===0x0){let _0x4581ea=new Image();_0x4581ea[_0x2bc8eb(0x17b)]=_0x2bcd84[_0x2bc8eb(0x17a)];}if(_0x2bcd84[_0x2bc8eb(0x14e)]&&_0x2bcd84['color']!==''){let _0x56a77f=_0x2bcd84[_0x2bc8eb(0x175)]||0x1,_0x5c8c90=_0x2bcd84[_0x2bc8eb(0x14a)]||_0x26fb64['width']*_0x56a77f,_0x131d83=_0x2bcd84[_0x2bc8eb(0x147)]||_0x26fb64[_0x2bc8eb(0x147)]*_0x56a77f;_0x5c8c90=_0x5c8c90*_0x4dadbd['pixelRatio'],_0x131d83=_0x131d83*_0x4dadbd[_0x2bc8eb(0x167)];const _0x351883=document[_0x2bc8eb(0x171)](_0x2bc8eb(0x160));_0x351883['width']=_0x5c8c90,_0x351883[_0x2bc8eb(0x147)]=_0x131d83;const _0x2dbe50=_0x351883[_0x2bc8eb(0x14c)]('2d');_0x2dbe50===null||_0x2dbe50===void 0x0?void 0x0:_0x2dbe50[_0x2bc8eb(0x155)](_0x26fb64,0x0,0x0,_0x5c8c90,_0x131d83);let _0x79e8aa=_0x2dbe50===null||_0x2dbe50===void 0x0?void 0x0:_0x2dbe50['getImageData'](0x0,0x0,_0x5c8c90,_0x131d83),_0x5abde5=_0x79e8aa===null||_0x79e8aa===void 0x0?void 0x0:_0x79e8aa[_0x2bc8eb(0x138)];_0x26fb64=_0x351883;let _0x40989f=HexToRgb(_0x2bcd84[_0x2bc8eb(0x170)]);if(_0x5abde5&&_0x40989f)for(var _0xcbdf66=0x0;_0xcbdf66<_0x5abde5['length'];_0xcbdf66+=0x4){_0x5abde5[_0xcbdf66]=_0x40989f[0x0],_0x5abde5[_0xcbdf66+0x1]=_0x40989f[0x1],_0x5abde5[_0xcbdf66+0x2]=_0x40989f[0x2];}_0x79e8aa&&(_0x2dbe50===null||_0x2dbe50===void 0x0?void 0x0:_0x2dbe50['putImageData'](_0x79e8aa,0x0,0x0));}let _0x1ba1ad=_0x4dadbd[_0x2bc8eb(0x140)],_0xe934cc=_0x4dadbd[_0x2bc8eb(0x167)],_0x39d1a6=_0x1ba1ad[_0x2bc8eb(0x148)](),_0x4b244f=_0x1ba1ad['getType'](),_0x2fa2b2=[];switch(_0x4b244f){case _0x2bc8eb(0x15e):_0x2fa2b2=_0x1ba1ad[_0x2bc8eb(0x154)]();break;case _0x2bc8eb(0x172):_0x2fa2b2=_0x1ba1ad[_0x2bc8eb(0x17f)](),_0x39d1a6=0x2;break;case _0x2bc8eb(0x159):_0x2fa2b2=_0x1ba1ad[_0x2bc8eb(0x168)](),_0x39d1a6=0x3;break;case _0x2bc8eb(0x15a):{let _0x3c55f2=_0x1ba1ad['getFlatInteriorPoints']();_0x2fa2b2=[];for(let _0x40a128=0x0,_0x1e7a99=_0x3c55f2[_0x2bc8eb(0x180)];_0x40a128<_0x1e7a99;_0x40a128+=0x3){_0x2fa2b2[_0x2bc8eb(0x152)](_0x3c55f2[_0x40a128],_0x3c55f2[_0x40a128+0x1]);}if(_0x2fa2b2['length']===0x0)return;_0x39d1a6=0x2;break;}}if(_0x2fa2b2[_0x2bc8eb(0x180)]>0x0&&_0x2535b8)for(let _0x58206f=0x0,_0x3eda61=_0x2fa2b2[_0x2bc8eb(0x180)];_0x58206f<_0x3eda61;_0x58206f+=_0x39d1a6){let _0xc01af5=[_0x2fa2b2[_0x58206f],_0x2fa2b2[_0x58206f+0x1]],_0x1b1e0f=_0x2535b8[_0x2bc8eb(0x16b)](_0xc01af5);_0x1b1e0f=[_0x1b1e0f[0x0]*_0xe934cc,_0x1b1e0f[0x1]*_0xe934cc],drawImage(_0x2bcd84,_0x1b1e0f,_0x4dadbd,_0x26fb64);}else{if(_0x4b244f===_0x2bc8eb(0x137))for(let _0x28165d of _0x5ee92a){drawImage(_0x2bcd84,_0x28165d,_0x4dadbd,_0x26fb64);}else drawImage(_0x2bcd84,_0x5ee92a,_0x4dadbd,_0x26fb64);}}function HexToRgb(_0x5cdedb){const _0x154d10=a75_0x10ae;_0x5cdedb=_0x5cdedb[_0x154d10(0x156)]('#','');let _0x27090b=_0x5cdedb[_0x154d10(0x149)](/../g);if(_0x27090b){for(let _0x50e88d=0x0;_0x50e88d<0x3;_0x50e88d++)_0x27090b[_0x50e88d]=parseInt(_0x27090b[_0x50e88d],0x10);}return _0x27090b;}export function getImageOlStyle(_0x2ea791,_0x522028,_0x4e67a3,_0x38fec9){const _0x40aad3=a75_0x10ae;var _0x334c49;if(_0x2ea791&&_0x2ea791[_0x40aad3(0x146)]!==![]){_0x2ea791=JSON[_0x40aad3(0x15c)](JSON[_0x40aad3(0x14f)](_0x2ea791)),_0x522028=(_0x334c49=_0x2ea791[_0x40aad3(0x143)])!==null&&_0x334c49!==void 0x0?_0x334c49:_0x522028;let _0x1fbfc4=isShowStyle(_0x2ea791,_0x4e67a3,_0x38fec9);if(_0x1fbfc4)return _0x2ea791[_0x40aad3(0x17a)]=parseImage(_0x2ea791[_0x40aad3(0x17a)]),getMainStyle(_0x2ea791,_0x522028,_0x38fec9);}}export function getPointStyle(_0xef3075,_0x53b686,_0x43261e,_0x295e29){const _0x30ee1d=a75_0x10ae;var _0x3c9413,_0x2f597e;_0xef3075=JSON[_0x30ee1d(0x15c)](JSON[_0x30ee1d(0x14f)](_0xef3075));let _0x7dc7e4=(_0x3c9413=_0xef3075[_0x30ee1d(0x143)])!==null&&_0x3c9413!==void 0x0?_0x3c9413:0x0,_0x172d77=[],_0xe652f9=getImageOlStyle(_0xef3075,_0x7dc7e4,_0x43261e,_0x295e29);_0xe652f9&&_0x172d77[_0x30ee1d(0x152)](_0xe652f9);let _0x52ff89=getImageOlStyle(_0xef3075[_0x30ee1d(0x14b)],_0x7dc7e4,_0x43261e,_0x295e29);_0x52ff89&&_0x172d77[_0x30ee1d(0x152)](_0x52ff89);if(_0xef3075[_0x30ee1d(0x163)]&&_0xef3075['model'][_0x30ee1d(0x146)]!==![]){let _0x8069e6=isShowStyle(_0xef3075[_0x30ee1d(0x163)],_0x43261e,_0x295e29);if(_0x8069e6){let _0x4ab163=(_0x2f597e=_0xef3075[_0x30ee1d(0x163)]['zIndex'])!==null&&_0x2f597e!==void 0x0?_0x2f597e:_0x7dc7e4,_0x10386c=_0xef3075[_0x30ee1d(0x163)][_0x30ee1d(0x139)]||_0x30ee1d(0x16e)+_0xef3075[_0x30ee1d(0x163)][_0x30ee1d(0x166)]+_0x30ee1d(0x142);_0xef3075['scale']=0x1,_0xef3075[_0x30ee1d(0x14a)]=0x30,_0xef3075[_0x30ee1d(0x147)]=0x30,_0xef3075[_0x30ee1d(0x151)]=_0x30ee1d(0x13b),_0x172d77[_0x30ee1d(0x152)](getMainStyle(_0xef3075[_0x30ee1d(0x163)],_0x4ab163,_0x295e29));}}if(_0xef3075[_0x30ee1d(0x13c)]&&_0xef3075['label'][_0x30ee1d(0x146)]!==![]){let _0x56b338=new a75_0x5aac00({'text':createTextStyle(_0xef3075[_0x30ee1d(0x13c)],_0x53b686,_0x43261e,_0x295e29),'zIndex':Number(_0x7dc7e4)+0x1});_0x172d77[_0x30ee1d(0x152)](_0x56b338);}return _0x172d77;}export function getPointSingleStyle(_0x6e411a,_0x3b48c1,_0x35ee54,_0x468139){const _0x2cebf4=a75_0x10ae;_0x3b48c1=JSON[_0x2cebf4(0x15c)](JSON[_0x2cebf4(0x14f)](_0x3b48c1));let _0x5dc931=_0x3b48c1[_0x2cebf4(0x13c)],_0x1d7655;_0x5dc931&&(_0x1d7655=_0x5dc931[_0x2cebf4(0x17e)]?_0x5dc931[_0x2cebf4(0x17e)]:'');if(_0x6e411a===_0x2cebf4(0x14b))return _0x3b48c1[_0x2cebf4(0x17a)]=parseImage(_0x3b48c1[_0x2cebf4(0x17a)]),getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);else{if(_0x6e411a===_0x2cebf4(0x163)){let _0x12bec4=_0x3b48c1[_0x2cebf4(0x139)]||_0x2cebf4(0x16e)+_0x3b48c1[_0x2cebf4(0x166)]+'.png';return _0x3b48c1['scale']=0x1,_0x3b48c1['width']=0x30,_0x3b48c1[_0x2cebf4(0x147)]=0x30,_0x3b48c1[_0x2cebf4(0x151)]=_0x2cebf4(0x13b),getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);}else{if(_0x6e411a===_0x2cebf4(0x15f))return getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);else{if(_0x6e411a===_0x2cebf4(0x177))return getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);else return _0x6e411a===_0x2cebf4(0x13c)?new a75_0x5aac00({'text':createTextStyle(_0x3b48c1,_0x3b48c1[_0x2cebf4(0x17e)],_0x35ee54,_0x468139),'zIndex':_0x3b48c1[_0x2cebf4(0x143)]}):getPointStyle(_0x3b48c1,_0x1d7655,_0x35ee54,_0x468139);}}}}function drawImage(_0x5f15f5,_0x626030,_0xa69333,_0x58d140){const _0x1b966e=a75_0x10ae;var _0x16b380,_0x2ba18b,_0x47280d,_0x3607e4;let _0x156c36=_0xa69333[_0x1b966e(0x153)];try{_0x156c36[_0x1b966e(0x157)]();let _0x1f5387=Number(_0x5f15f5['pixelOffsetX']||((_0x16b380=_0x5f15f5[_0x1b966e(0x13a)])===null||_0x16b380===void 0x0?void 0x0:_0x16b380[0x0])||0x0),_0x51e400=Number(_0x5f15f5[_0x1b966e(0x150)]||((_0x2ba18b=_0x5f15f5['pixelOffset'])===null||_0x2ba18b===void 0x0?void 0x0:_0x2ba18b[0x1])||0x0);_0x156c36[_0x1b966e(0x15d)](_0x626030[0x0]+_0x1f5387,_0x626030[0x1]+_0x51e400);if(_0x5f15f5[_0x1b966e(0x17d)])_0x156c36[_0x1b966e(0x13d)](toRadians(_0x5f15f5[_0x1b966e(0x17d)]));_0x156c36['globalAlpha']=_0x5f15f5[_0x1b966e(0x169)]!=null?_0x5f15f5[_0x1b966e(0x169)]:0x1;if(_0x58d140[_0x1b966e(0x14a)]>0x0){let _0x1d73cb=_0x5f15f5[_0x1b966e(0x175)]||0x1,_0x268654=_0x5f15f5[_0x1b966e(0x14a)]||_0x58d140[_0x1b966e(0x14a)]*_0x1d73cb,_0x4deb92=_0x5f15f5['height']||_0x58d140['height']*_0x1d73cb;_0x268654=_0x268654*_0xa69333[_0x1b966e(0x167)],_0x4deb92=_0x4deb92*_0xa69333['pixelRatio'];_0x5f15f5[_0x1b966e(0x14e)]&&(_0x268654=_0x58d140[_0x1b966e(0x14a)],_0x4deb92=_0x58d140[_0x1b966e(0x147)]);let _0x2624df;switch((_0x47280d=_0x5f15f5[_0x1b966e(0x165)])===null||_0x47280d===void 0x0?void 0x0:_0x47280d[_0x1b966e(0x178)]()){default:case _0x1b966e(0x13b):_0x2624df=-_0x268654/0x2;break;case _0x1b966e(0x17c):_0x2624df=0x0;break;case'RIGHT':_0x2624df=-_0x268654;break;}let _0x430e9c;switch((_0x3607e4=_0x5f15f5[_0x1b966e(0x151)])===null||_0x3607e4===void 0x0?void 0x0:_0x3607e4[_0x1b966e(0x178)]()){default:case _0x1b966e(0x136):_0x430e9c=-_0x4deb92;break;case _0x1b966e(0x13b):_0x430e9c=-_0x4deb92/0x2;break;case _0x1b966e(0x164):_0x430e9c=0x0;break;}_0x156c36['drawImage'](_0x58d140,_0x2624df,_0x430e9c,_0x268654,_0x4deb92);}else _0x156c36[_0x1b966e(0x155)](_0x58d140,0x0,0x0);_0x156c36[_0x1b966e(0x15b)]();}catch(_0x440ebd){_0x156c36[_0x1b966e(0x15b)](),console[_0x1b966e(0x141)](_0x440ebd);}}
|
|
1
|
+
(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(_0x56f533,_0x438a17){var _0x46f078=a76_0x132c,_0x25322c=_0x56f533();while(!![]){try{var _0x53b387=-parseInt(_0x46f078(0x1d5))/0x1+-parseInt(_0x46f078(0x1a7))/0x2+-parseInt(_0x46f078(0x1ab))/0x3+-parseInt(_0x46f078(0x1a0))/0x4*(-parseInt(_0x46f078(0x1ce))/0x5)+parseInt(_0x46f078(0x1d7))/0x6*(parseInt(_0x46f078(0x1b2))/0x7)+-parseInt(_0x46f078(0x1d3))/0x8*(-parseInt(_0x46f078(0x1c0))/0x9)+parseInt(_0x46f078(0x1d1))/0xa*(parseInt(_0x46f078(0x1bf))/0xb);if(_0x53b387===_0x438a17)break;else _0x25322c['push'](_0x25322c['shift']());}catch(_0x4ce33e){_0x25322c['push'](_0x25322c['shift']());}}}(a76_0x3990,0xeabc6));import{getColor,createTextStyle,preLoadImageRenderFunction}from'./common';import{Fill,Stroke,Style}from'ol/style';function a76_0x3990(){var _0x99fd0c=['rgba(0,0,0,0.0)','width','canvas','8FQwRwo','translate','rgba(0,0,0,0)','height','getContext','length','stripe_oddcolor','1568590AyjJdV','fillStyle','setFill','CENTER','3384828BioEHa','createElement','src','repeat','setStroke','grid_lineCount','strokeStyle','70qvTMTu','outlineWidth','fill','oddColor','warn','stripe','color','lineTo','max','setZIndex','repeatX','outline','checkerboard_repeat','10109DusPYt','2374659HNMVcL','moveTo','drawImage','restore','fillType','opacity','outlineOpacity','setRenderer','createPattern','save','grid_lineThickness','repeatY','stroke','push','4223090dBaNcr','globalAlpha','rgba(0,0,0,0.01)','15620wmfGKP','outlineColor','8vqiJxw','beginPath','1280616qcZIJC','context','459660yclIUs','checkerboard','closePath','zIndex','lineWidth','billboard','image','verticalOrigin'];a76_0x3990=function(){return _0x99fd0c;};return a76_0x3990();}import{getSize,boundingExtent}from'ol/extent';import{getImageOlStyle}from'./PointStyleFormat';export function getPolygonStyle(_0x3800c8,_0x1989b9,_0x278fdb,_0x5b1ce5){var _0x41d898=a76_0x132c,_0x5b656f;let _0x3e2e90=(_0x5b656f=_0x3800c8[_0x41d898(0x198)])!==null&&_0x5b656f!==void 0x0?_0x5b656f:0x0,_0x32dd68=new Style();_0x32dd68[_0x41d898(0x1bb)](_0x3e2e90),_0x32dd68[_0x41d898(0x1a9)](new Fill({'color':_0x41d898(0x1a2)}));if(_0x3800c8['fill']!==![]){if(!_0x3800c8[_0x41d898(0x1c4)]||_0x3800c8['fillType']===_0x41d898(0x1b8))_0x32dd68[_0x41d898(0x1a9)](new Fill({'color':getColor(_0x3800c8[_0x41d898(0x1b8)],_0x3800c8['opacity'])}));else{if(_0x3800c8['fillType']===_0x41d898(0x19b))_0x32dd68[_0x41d898(0x1c7)]((_0x399da8,_0x55d7ea)=>{preLoadImageRenderFunction(_0x3800c8,_0x399da8,_0x55d7ea,_0x5b1ce5,_rendererFunction);});else _0x3800c8['fillType']==='grid'||_0x3800c8[_0x41d898(0x1c4)]==='stripe'||_0x3800c8[_0x41d898(0x1c4)]===_0x41d898(0x1d8)?_0x32dd68['setRenderer']((_0x47510e,_0x2f4063)=>{_rendererFunction(_0x3800c8,_0x47510e,_0x2f4063,_0x5b1ce5,null);}):_0x32dd68[_0x41d898(0x1a9)](new Fill({'color':getColor(_0x3800c8[_0x41d898(0x1b8)],_0x3800c8[_0x41d898(0x1c5)])}));}}_0x3800c8[_0x41d898(0x1bd)]!==![]&&_0x32dd68[_0x41d898(0x1af)](new Stroke({'color':getColor(_0x3800c8[_0x41d898(0x1d2)],_0x3800c8[_0x41d898(0x1c6)]),'width':_0x3800c8[_0x41d898(0x1b3)]}));let _0x38f4b0=[_0x32dd68];_0x3800c8[_0x41d898(0x19a)]&&!_0x3800c8['billboard'][_0x41d898(0x19c)]&&(_0x3800c8[_0x41d898(0x19a)][_0x41d898(0x19c)]=_0x41d898(0x1aa));let _0x118670=getImageOlStyle(_0x3800c8[_0x41d898(0x19a)],_0x3e2e90,_0x278fdb,_0x5b1ce5);_0x118670&&_0x38f4b0[_0x41d898(0x1cd)](_0x118670);if(_0x1989b9){const _0x1ce93c=createTextStyle(_0x3800c8,_0x1989b9,_0x278fdb,_0x5b1ce5);_0x1ce93c&&(_0x32dd68['setText'](_0x1ce93c),_0x32dd68[_0x41d898(0x1bb)](Number(_0x3e2e90)+0x1));}return _0x38f4b0;}function _rendererFunction(_0x457d4c,_0x405274,_0x5ea3f5,_0xa349e1,_0xd89cc2){var _0x3cc00e=a76_0x132c;try{var _0xc877b6=_0x5ea3f5[_0x3cc00e(0x1d6)];for(var _0x2f0213=0x0,_0x3c57c0=_0x405274[_0x3cc00e(0x1a5)];_0x2f0213<_0x3c57c0;_0x2f0213++){_0xc877b6[_0x3cc00e(0x1c9)](),_0xc877b6[_0x3cc00e(0x1d4)]();var _0x4eb87a=_0x405274[_0x2f0213];let _0x5481ef=boundingExtent(_0x4eb87a);_0xc877b6[_0x3cc00e(0x1a1)](_0x5481ef[0x0],_0x5481ef[0x1]);let _0x53e64c;switch(_0x457d4c['fillType']){case'image':_0x53e64c=_getImagePattern(_0xc877b6,_0x5481ef,_0x457d4c,_0xd89cc2);break;case'grid':_0x53e64c=_getGridPattern(_0xc877b6,_0x5481ef,_0x457d4c);break;case _0x3cc00e(0x1b7):_0x53e64c=_getStripePattern(_0xc877b6,_0x5481ef,_0x457d4c);break;case _0x3cc00e(0x1d8):_0x53e64c=_getCheckerBoardPattern(_0xc877b6,_0x5481ef,_0x457d4c);break;default:_0x53e64c='rgba(0,0,0,0.01)';break;}for(var _0x464624=0x0,_0x6ffc86=_0x4eb87a[_0x3cc00e(0x1a5)];_0x464624<_0x6ffc86;_0x464624++){var _0xd64bd2=_0x4eb87a[_0x464624];_0x464624===0x0?_0xc877b6['moveTo'](_0xd64bd2[0x0]-_0x5481ef[0x0],_0xd64bd2[0x1]-_0x5481ef[0x1]):_0xc877b6[_0x3cc00e(0x1b9)](_0xd64bd2[0x0]-_0x5481ef[0x0],_0xd64bd2[0x1]-_0x5481ef[0x1]);}_0xc877b6['closePath'](),_0xc877b6[_0x3cc00e(0x1a8)]=_0x3cc00e(0x1d0),_0xc877b6['fill'](),_0xc877b6[_0x3cc00e(0x1a8)]=_0x53e64c,_0xc877b6[_0x3cc00e(0x1b4)](),_0x457d4c[_0x3cc00e(0x1bd)]?(_0xc877b6[_0x3cc00e(0x1b1)]=getColor(_0x457d4c['outlineColor'],_0x457d4c[_0x3cc00e(0x1c6)]),_0xc877b6[_0x3cc00e(0x199)]=_0x457d4c[_0x3cc00e(0x1b3)]):_0xc877b6[_0x3cc00e(0x1b1)]=_0x3cc00e(0x19d),_0xc877b6[_0x3cc00e(0x1cc)](),_0xc877b6[_0x3cc00e(0x1c3)]();}}catch(_0x58c5dc){_0xc877b6['restore'](),console[_0x3cc00e(0x1b6)](_0x58c5dc);}}function _getImagePattern(_0x12f04b,_0x4e46e9,_0x2fd10b,_0x5e11ed){var _0x54e625=a76_0x132c;if(!_0x5e11ed||_0x5e11ed[_0x54e625(0x19e)]===0x0){let _0x3d6b76=new Image();_0x3d6b76[_0x54e625(0x1ad)]=_0x2fd10b[_0x54e625(0x19b)];}var _0x45ad1a=getSize(_0x4e46e9);const _0x15f8fc=document['createElement']('canvas'),_0x2ad099=_0x15f8fc[_0x54e625(0x1a4)]('2d');return _0x15f8fc[_0x54e625(0x19e)]=Math[_0x54e625(0x1ba)](_0x45ad1a[0x0]/_0x2fd10b[_0x54e625(0x1bc)],0x1),_0x15f8fc[_0x54e625(0x1a3)]=Math[_0x54e625(0x1ba)](_0x45ad1a[0x1]/_0x2fd10b[_0x54e625(0x1cb)],0x1),_0x2ad099&&(_0x2ad099[_0x54e625(0x1cf)]=_0x2fd10b[_0x54e625(0x1c5)],_0x2ad099[_0x54e625(0x1c2)](_0x5e11ed,0x0,0x0,_0x15f8fc[_0x54e625(0x19e)],_0x15f8fc[_0x54e625(0x1a3)])),_0x12f04b[_0x54e625(0x1c8)](_0x15f8fc,_0x54e625(0x1ae));}function _getGridPattern(_0xf73057,_0x509d88,_0x2c5400){var _0x439a45=a76_0x132c,_0x15202f=getSize(_0x509d88);const _0x15338e=document[_0x439a45(0x1ac)](_0x439a45(0x19f)),_0x4a6e87=_0x15338e[_0x439a45(0x1a4)]('2d');return _0x15338e[_0x439a45(0x19e)]=Math['max'](_0x15202f[0x0]/_0x2c5400[_0x439a45(0x1b0)],0x1),_0x15338e[_0x439a45(0x1a3)]=Math[_0x439a45(0x1ba)](_0x15202f[0x1]/_0x2c5400['grid_lineCount'],0x1),_0x4a6e87&&(_0x4a6e87[_0x439a45(0x1b1)]=getColor(_0x2c5400['color'],_0x2c5400['opacity']),_0x4a6e87[_0x439a45(0x199)]=_0x2c5400[_0x439a45(0x1ca)]*0x4,_0x4a6e87['beginPath'](),_0x4a6e87[_0x439a45(0x1c1)](0x0,_0x15338e[_0x439a45(0x1a3)]),_0x4a6e87[_0x439a45(0x1b9)](_0x15338e['width'],_0x15338e[_0x439a45(0x1a3)]),_0x4a6e87[_0x439a45(0x1c1)](_0x15338e[_0x439a45(0x19e)],0x0),_0x4a6e87[_0x439a45(0x1b9)](_0x15338e[_0x439a45(0x19e)],_0x15338e['height']),_0x4a6e87[_0x439a45(0x1cc)]()),_0xf73057[_0x439a45(0x1c8)](_0x15338e,'repeat');}function a76_0x132c(_0x5a34c5,_0x4f7150){var _0x399057=a76_0x3990();return a76_0x132c=function(_0x132c86,_0x420c7a){_0x132c86=_0x132c86-0x197;var _0x57279a=_0x399057[_0x132c86];return _0x57279a;},a76_0x132c(_0x5a34c5,_0x4f7150);}function _getStripePattern(_0x2ae6a1,_0x4426ae,_0xd98aba){var _0x4809ed=a76_0x132c,_0x32042f=getSize(_0x4426ae);const _0x1f493e=document[_0x4809ed(0x1ac)]('canvas'),_0x1b15e6=_0x1f493e[_0x4809ed(0x1a4)]('2d');let _0x3cc3c1=Math['max'](_0x32042f[0x1]/_0xd98aba['stripe_repeat'],0x1);return _0x1f493e[_0x4809ed(0x19e)]=_0x32042f[0x0],_0x1f493e['height']=_0x3cc3c1*0x2,_0x1b15e6&&(_0x1b15e6[_0x4809ed(0x1d4)](),_0x1b15e6[_0x4809ed(0x1c1)](0x0,0x0),_0x1b15e6['lineTo'](_0x1f493e[_0x4809ed(0x19e)],0x0),_0x1b15e6['lineTo'](_0x1f493e[_0x4809ed(0x19e)],_0x3cc3c1),_0x1b15e6[_0x4809ed(0x1b9)](0x0,_0x3cc3c1),_0x1b15e6[_0x4809ed(0x197)](),_0x1b15e6[_0x4809ed(0x1a8)]=getColor(_0xd98aba[_0x4809ed(0x1a6)],_0xd98aba[_0x4809ed(0x1c5)]),_0x1b15e6[_0x4809ed(0x1b4)](),_0x1b15e6['beginPath'](),_0x1b15e6[_0x4809ed(0x1c1)](0x0,_0x3cc3c1),_0x1b15e6[_0x4809ed(0x1b9)](_0x1f493e[_0x4809ed(0x19e)],_0x3cc3c1),_0x1b15e6['lineTo'](_0x1f493e[_0x4809ed(0x19e)],_0x3cc3c1*0x2),_0x1b15e6[_0x4809ed(0x1b9)](0x0,_0x3cc3c1*0x2),_0x1b15e6['closePath'](),_0x1b15e6[_0x4809ed(0x1a8)]=getColor(_0xd98aba['color'],_0xd98aba[_0x4809ed(0x1c5)]),_0x1b15e6['fill']()),_0x2ae6a1[_0x4809ed(0x1c8)](_0x1f493e,_0x4809ed(0x1ae));}function _getCheckerBoardPattern(_0x4364d3,_0x52ace7,_0x3e03cf){var _0x11dded=a76_0x132c,_0x1c10e0=getSize(_0x52ace7);const _0x30f6b3=document['createElement'](_0x11dded(0x19f)),_0x1c25ea=_0x30f6b3[_0x11dded(0x1a4)]('2d');let _0x3cbf96=Math[_0x11dded(0x1ba)](_0x1c10e0[0x0]/_0x3e03cf[_0x11dded(0x1be)],0x1),_0x5df5ee=Math[_0x11dded(0x1ba)](_0x1c10e0[0x1]/_0x3e03cf[_0x11dded(0x1be)],0x1);return _0x30f6b3[_0x11dded(0x19e)]=_0x3cbf96*0x2,_0x30f6b3[_0x11dded(0x1a3)]=_0x5df5ee*0x2,_0x1c25ea&&(_0x1c25ea[_0x11dded(0x1d4)](),_0x1c25ea[_0x11dded(0x1c1)](0x0,0x0),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,0x0),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](0x0,_0x5df5ee),_0x1c25ea['closePath'](),_0x1c25ea[_0x11dded(0x1a8)]=getColor(_0x3e03cf[_0x11dded(0x1b5)],_0x3e03cf[_0x11dded(0x1c5)]),_0x1c25ea[_0x11dded(0x1b4)](),_0x1c25ea['beginPath'](),_0x1c25ea[_0x11dded(0x1c1)](_0x3cbf96,0x0),_0x1c25ea[_0x11dded(0x1b9)](_0x30f6b3[_0x11dded(0x19e)],0x0),_0x1c25ea[_0x11dded(0x1b9)](_0x30f6b3[_0x11dded(0x19e)],_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,_0x5df5ee),_0x1c25ea[_0x11dded(0x197)](),_0x1c25ea[_0x11dded(0x1a8)]=getColor(_0x3e03cf[_0x11dded(0x1b8)],_0x3e03cf['opacity']),_0x1c25ea[_0x11dded(0x1b4)](),_0x1c25ea[_0x11dded(0x1d4)](),_0x1c25ea[_0x11dded(0x1c1)](0x0,_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,_0x5df5ee),_0x1c25ea['lineTo'](_0x3cbf96,_0x30f6b3[_0x11dded(0x1a3)]),_0x1c25ea[_0x11dded(0x1b9)](0x0,_0x30f6b3['height']),_0x1c25ea[_0x11dded(0x197)](),_0x1c25ea[_0x11dded(0x1a8)]=getColor(_0x3e03cf[_0x11dded(0x1b8)],_0x3e03cf[_0x11dded(0x1c5)]),_0x1c25ea[_0x11dded(0x1b4)](),_0x1c25ea['beginPath'](),_0x1c25ea[_0x11dded(0x1c1)](_0x3cbf96,_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](_0x30f6b3['width'],_0x5df5ee),_0x1c25ea[_0x11dded(0x1b9)](_0x30f6b3[_0x11dded(0x19e)],_0x30f6b3['height']),_0x1c25ea[_0x11dded(0x1b9)](_0x3cbf96,_0x30f6b3[_0x11dded(0x1a3)]),_0x1c25ea[_0x11dded(0x197)](),_0x1c25ea[_0x11dded(0x1a8)]=getColor(_0x3e03cf[_0x11dded(0x1b5)],_0x3e03cf['opacity']),_0x1c25ea[_0x11dded(0x1b4)]()),_0x4364d3['createPattern'](_0x30f6b3,_0x11dded(0x1ae));}
|
|
1
|
+
(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
|
-
function
|
|
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(_0x47a328,_0x38afe5){const _0x3d01a6=a84_0x5553,_0x331c85=_0x47a328();while(!![]){try{const _0x2956e3=parseInt(_0x3d01a6(0x174))/0x1*(-parseInt(_0x3d01a6(0x17a))/0x2)+-parseInt(_0x3d01a6(0x175))/0x3+parseInt(_0x3d01a6(0x172))/0x4+parseInt(_0x3d01a6(0x178))/0x5+parseInt(_0x3d01a6(0x17b))/0x6+parseInt(_0x3d01a6(0x16a))/0x7+-parseInt(_0x3d01a6(0x199))/0x8;if(_0x2956e3===_0x38afe5)break;else _0x331c85['push'](_0x331c85['shift']());}catch(_0x39e977){_0x331c85['push'](_0x331c85['shift']());}}}(a84_0x16e7,0xf1b68));import a84_0x551570 from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a84_0x1bb6e9}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a84_0x47531a,getArea as a84_0xae087f}from'ol/sphere';import a84_0x1f1738 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a84_0x32fcca from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a84_0xabb0ab from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a84_0x2b5dd3 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a84_0x34d3f4 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a84_0x5edbc8 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a84_0x30a3a7 from'ol/format/GeoJSON';import a84_0x328ce4 from'jsts/org/locationtech/jts/geom/GeometryFactory';import a84_0x1cf901 from'jsts/org/locationtech/jts/linearref/LengthIndexedLine';import{Circle,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';function a84_0x5553(_0x4d8140,_0x508628){const _0x16e79a=a84_0x16e7();return a84_0x5553=function(_0x5553f6,_0x597e86){_0x5553f6=_0x5553f6-0x163;let _0x1d1fb6=_0x16e79a[_0x5553f6];return _0x1d1fb6;},a84_0x5553(_0x4d8140,_0x508628);}import{fromCircle}from'ol/geom/Polygon';import a84_0x133e62 from'ol/format/WKT';import a84_0x10aba2 from'ol/format/EsriJSON';const _parser=new a84_0x2b5dd3(undefined,undefined);_parser['inject'](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x5d0d94,_0x2b7026,_0x15fa8c=![]){const _0x254f77=a84_0x5553;if(!_0x5d0d94)return 0x0;if(typeof _0x2b7026==_0x254f77(0x17e)){let _0x4f6ebf=registerProj(_0x2b7026);if(_0x4f6ebf==null)return console['error'](_0x254f77(0x198)),0x0;_0x2b7026=_0x4f6ebf;}const _0x9cd37=isSpheroid(_0x2b7026);if(_0x15fa8c)return a84_0xae087f(_0x5d0d94,{'projection':_0x2b7026});else{if(_0x9cd37){const _0x13c06d=getGeoProjection(_0x5d0d94,_0x2b7026);return _0x5d0d94[_0x254f77(0x180)]()[_0x254f77(0x18d)](_0x2b7026,_0x13c06d)[_0x254f77(0x193)]();}return _0x5d0d94[_0x254f77(0x193)]();}}export function getLength(_0xd8de8d,_0x538c51,_0x268372=![]){const _0x80e16f=a84_0x5553;if(!_0xd8de8d)return 0x0;if(typeof _0x538c51==_0x80e16f(0x17e)){let _0x59aead=registerProj(_0x538c51);if(_0x59aead==null)return console[_0x80e16f(0x173)]('未找到投影信息'),0x0;_0x538c51=_0x59aead;}const _0x25157b=isSpheroid(_0x538c51);if(_0x268372)return a84_0x47531a(_0xd8de8d,{'projection':_0x538c51});else{let _0x5ef76b=_0xd8de8d;if(_0x25157b){const _0x33fc8a=getGeoProjection(_0xd8de8d,_0x538c51);_0x5ef76b=_0xd8de8d[_0x80e16f(0x180)]()[_0x80e16f(0x18d)](_0x538c51,_0x33fc8a);}if(_0x5ef76b instanceof LineString)return _0x5ef76b[_0x80e16f(0x171)]();else{let _0x4659f3=0x0;for(let _0x486304=0x0;_0x486304<_0x5ef76b[_0x80e16f(0x186)]()['length'];_0x486304++){_0x4659f3+=_0x5ef76b[_0x80e16f(0x186)]()[_0x486304][_0x80e16f(0x171)]();}return _0x4659f3;}}}export function bufferOp(_0x3f47d9,_0x38250b){const _0x32df2c=a84_0x5553,_0x3c78b9=_parser['read'](_0x3f47d9),_0x108da3=a84_0x1f1738['bufferOp'](_0x3c78b9,_0x38250b);return _parser[_0x32df2c(0x16f)](_0x108da3);}export function bufferPixel(_0x3157fa,_0x9f0b74,_0x583483){const _0x1d91c6=a84_0x5553,_0x52b909=_0x583483[_0x1d91c6(0x18a)](_0x3157fa['getCoordinates']()),_0x4efcb6=_0x583483['getCoordinateFromPixel']([_0x52b909[0x0]+_0x9f0b74,_0x52b909[0x1]]),_0x32a3c1=a84_0x1bb6e9(_0x3157fa[_0x1d91c6(0x16b)](),_0x4efcb6),_0x57c5b5=bufferOp(_0x3157fa,_0x32a3c1);return _0x57c5b5;}export function contains(_0x4a188b,_0x32e73c){const _0x3e1d26=a84_0x5553,_0x561bc0=_parser[_0x3e1d26(0x16d)](_0x4a188b),_0x38427d=_parser[_0x3e1d26(0x16d)](_0x32e73c);return a84_0x32fcca[_0x3e1d26(0x18f)](_0x561bc0,_0x38427d);}export function crosses(_0x31d9ae,_0x534f57){const _0x302b73=a84_0x5553,_0xe4a44=_parser[_0x302b73(0x16d)](_0x31d9ae),_0x5dd64e=_parser[_0x302b73(0x16d)](_0x534f57);return a84_0x32fcca[_0x302b73(0x18e)](_0xe4a44,_0x5dd64e);}export function intersects(_0x57ac31,_0x4f06e6){const _0x10a922=a84_0x5553,_0x166a6f=_parser[_0x10a922(0x16d)](_0x57ac31),_0x21bb01=_parser[_0x10a922(0x16d)](_0x4f06e6);return a84_0x32fcca[_0x10a922(0x190)](_0x166a6f,_0x21bb01);}export function intersection(_0x164132,_0x3265b7){const _0x5ccf25=a84_0x5553,_0x5d6803=_parser[_0x5ccf25(0x16d)](_0x164132),_0xffd35b=_parser[_0x5ccf25(0x16d)](_0x3265b7);return _parser[_0x5ccf25(0x16f)](a84_0xabb0ab[_0x5ccf25(0x187)](_0x5d6803,_0xffd35b));}export function union(_0x58e651,_0xeba87f){const _0x26d420=a84_0x5553,_0x4b6340=_parser[_0x26d420(0x16d)](_0x58e651),_0x30d85f=_parser[_0x26d420(0x16d)](_0xeba87f);return _parser[_0x26d420(0x16f)](a84_0xabb0ab[_0x26d420(0x16c)](_0x4b6340,_0x30d85f));}export function unions(_0x1eced9){const _0x285a40=a84_0x5553;if(!_0x1eced9||_0x1eced9['length']===0x0)return;if(_0x1eced9['length']===0x1)return _0x1eced9[0x0][_0x285a40(0x180)]();let _0x36f0dd=_parser['read'](_0x1eced9[0x0]);for(let _0x204005=0x1;_0x204005<_0x1eced9[_0x285a40(0x164)];_0x204005++){const _0x341db1=_parser[_0x285a40(0x16d)](_0x1eced9[_0x204005]);_0x36f0dd=a84_0xabb0ab[_0x285a40(0x16c)](_0x36f0dd,_0x341db1);}return _parser[_0x285a40(0x16f)](_0x36f0dd);}export function difference(_0x564f96,_0x3b09f1){const _0x3d3303=a84_0x5553,_0x3fadcb=_parser[_0x3d3303(0x16d)](_0x564f96),_0x4730c9=_parser[_0x3d3303(0x16d)](_0x3b09f1);return _parser[_0x3d3303(0x16f)](a84_0xabb0ab['difference'](_0x3fadcb,_0x4730c9));}export function distance(_0x3a612f,_0x5ab5be){const _0x5a16be=a84_0x5553,_0x1437f2=_parser['read'](_0x3a612f),_0x38dad1=_parser[_0x5a16be(0x16d)](_0x5ab5be);return _parser[_0x5a16be(0x16f)](a84_0x5edbc8['distance'](_0x1437f2,_0x38dad1));}export function jstlSplit(_0x35a674,_0x23faef){const _0xcda653=a84_0x5553,_0x38ce6a=_parser[_0xcda653(0x16d)](_0x35a674),_0x59be1b=_parser[_0xcda653(0x16d)](_0x23faef),_0x369fd2=_0x38ce6a['getGeometryType']();let _0x50b94f=[];function _0x40281c(_0x107388,_0x37c68e){const _0x54a294=_0xcda653,_0x2b4113=_0x107388['getExteriorRing'](),_0x461716=_0x107388[_0x54a294(0x195)](),_0x406066=[];for(let _0x2479c5=0x0;_0x2479c5<_0x461716;_0x2479c5++){_0x406066[_0x54a294(0x191)](_0x107388[_0x54a294(0x182)](_0x2479c5));}const _0xebbce5=a84_0xabb0ab['union'](_0x2b4113,_0x37c68e),_0x211de7=new a84_0x34d3f4();_0x211de7['add'](_0xebbce5);const _0x1c412b=_0x211de7[_0x54a294(0x177)](),_0x36fa04=new a84_0x328ce4();_0x1c412b['size']()>0x1?_0x1c412b[_0x54a294(0x185)]()['forEach'](_0x50dcfc=>{const _0x290147=_0x54a294;let _0x171e05=_0x50dcfc;_0x406066[_0x290147(0x17d)](_0x49f0f0=>{const _0x471f0d=_0x290147,_0x352b4b=_0x36fa04['createPolygon'](_0x49f0f0);try{_0x171e05=a84_0xabb0ab[_0x471f0d(0x163)](_0x171e05,_0x352b4b);}catch(_0x35ec95){console[_0x471f0d(0x18c)](_0x471f0d(0x197),_0x35ec95);}}),_0x171e05&&_0x50b94f[_0x290147(0x191)](_parser[_0x290147(0x16f)](_0x171e05));}):_0x50b94f[_0x54a294(0x191)](_parser[_0x54a294(0x16f)](_0x107388));}if(_0x369fd2===_0xcda653(0x196))_0x40281c(_0x38ce6a,_0x59be1b);else{if(_0x369fd2==='MultiPolygon'){const _0x41e1ca=_0x38ce6a['getNumGeometries']();for(let _0x2e9ce5=0x0;_0x2e9ce5<_0x41e1ca;_0x2e9ce5++){const _0x8ac8af=_0x38ce6a[_0xcda653(0x176)](_0x2e9ce5);_0x40281c(_0x8ac8af,_0x59be1b);}}else throw new Error(_0xcda653(0x17c));}return _0x50b94f;}export function splitLineByLine(_0x5e4978,_0x35ef6a){const _0x1abcbf=a84_0x5553,_0x2b7297=_parser['read'](_0x5e4978),_0x30c2e4=_parser['read'](_0x35ef6a),_0x500d92=a84_0xabb0ab['intersection'](_0x2b7297,_0x30c2e4);if(!_0x500d92||_0x500d92[_0x1abcbf(0x18b)]())return[_0x5e4978];const _0x547858=[];if(_0x500d92[_0x1abcbf(0x167)]()===_0x1abcbf(0x170))_0x547858['push'](_0x500d92['getCoordinate']());else{if(_0x500d92[_0x1abcbf(0x167)]()==='MultiPoint')for(let _0x51340b=0x0;_0x51340b<_0x500d92['getNumGeometries']();_0x51340b++){_0x547858[_0x1abcbf(0x191)](_0x500d92[_0x1abcbf(0x176)](_0x51340b)[_0x1abcbf(0x165)]());}}const _0x2b0611=new a84_0x1cf901(_0x2b7297),_0xc34c8e=_0x547858[_0x1abcbf(0x168)](_0x56e6e8=>_0x2b0611[_0x1abcbf(0x181)](_0x56e6e8))['sort']((_0x10a846,_0x4b268a)=>_0x10a846-_0x4b268a),_0x1e792b=[],_0x2cb7a4=1e-9;for(let _0x28ef10=0x0;_0x28ef10<_0xc34c8e[_0x1abcbf(0x164)];_0x28ef10++){if(_0x28ef10===0x0||Math[_0x1abcbf(0x166)](_0xc34c8e[_0x28ef10]-_0xc34c8e[_0x28ef10-0x1])>_0x2cb7a4)_0x1e792b[_0x1abcbf(0x191)](_0xc34c8e[_0x28ef10]);}const _0x4e04e2=[];let _0x316d52=_0x2b0611[_0x1abcbf(0x192)]?_0x2b0611[_0x1abcbf(0x192)]():0x0;const _0x52787d=_0x2b0611[_0x1abcbf(0x188)]&&_0x2b0611['getEndIndex']()||_0x2b7297[_0x1abcbf(0x171)]();for(let _0x13d6d1=0x0;_0x13d6d1<_0x1e792b[_0x1abcbf(0x164)];_0x13d6d1++){const _0x5a78c3=_0x1e792b[_0x13d6d1];if(_0x5a78c3-_0x316d52>_0x2cb7a4){const _0x185fc8=_0x2b0611['extractLine'](_0x316d52,_0x5a78c3);_0x4e04e2[_0x1abcbf(0x191)](_parser[_0x1abcbf(0x16f)](_0x185fc8));}_0x316d52=_0x5a78c3;}if(_0x52787d-_0x316d52>_0x2cb7a4){const _0x5564b2=_0x2b0611[_0x1abcbf(0x17f)](_0x316d52,_0x52787d);_0x4e04e2['push'](_parser[_0x1abcbf(0x16f)](_0x5564b2));}const _0x12b174=_0x4e04e2['filter'](_0xb7be84=>{const _0x3a91ba=_0x1abcbf,_0x31b5c9=_0xb7be84[_0x3a91ba(0x16b)]();return _0x31b5c9&&_0x31b5c9['length']>=0x2&&!(_0x31b5c9[_0x3a91ba(0x164)]===0x2&&_0x31b5c9[0x0][0x0]===_0x31b5c9[0x1][0x0]&&_0x31b5c9[0x0][0x1]===_0x31b5c9[0x1][0x1]);});return _0x12b174;}export function fromWKT(_0x59824b,_0x420d75,_0x5768a1){const _0x457a6a=a84_0x5553,_0x4dd3ec=new a84_0x133e62();_0x420d75&®isterProj(_0x420d75);_0x5768a1&®isterProj(_0x5768a1);const _0x206854=_0x4dd3ec['readGeometry'](_0x59824b);if(isGeometryEmpty(_0x206854))return null;return _0x420d75&&_0x5768a1?_0x206854[_0x457a6a(0x18d)](new a84_0x551570({'code':_0x420d75}),new a84_0x551570({'code':_0x5768a1})):_0x206854;}function a84_0x16e7(){const _0x21cc51=['getExtent','getNumInteriorRing','Polygon','孔洞操作失败:','未找到投影信息','6431344TiVHJh','difference','length','getCoordinate','abs','getGeometryType','map','getType','13754594UMumxD','getCoordinates','union','read','writeGeometry','write','Point','getLength','2281936gGsxsC','error','385831FiSBTl','4383222VwNWzX','getGeometryN','getPolygons','6690030pWXjkK','getLinearRings','4ybgWQj','919668ycsozE','无法识别的数据类型','forEach','string','extractLine','clone','indexOf','getInteriorRingN','readGeometry','MultiPolygon','toArray','getLineStrings','intersection','getEndIndex','getInteriorPoint','getPixelFromCoordinate','isEmpty','warn','transform','crosses','contains','intersects','push','getStartIndex','getArea'];a84_0x16e7=function(){return _0x21cc51;};return a84_0x16e7();}export function fromWKTs(_0x10b601,_0x12f4f2,_0x474ed6){const _0x32f07c=a84_0x5553,_0x157e20=new a84_0x133e62();let _0x595cdb=[];_0x12f4f2&®isterProj(_0x12f4f2);_0x474ed6&®isterProj(_0x474ed6);let _0x145860,_0xc3b219;_0x12f4f2&&_0x474ed6&&(_0x145860=new a84_0x551570({'code':_0x12f4f2}),_0xc3b219=new a84_0x551570({'code':_0x474ed6}));for(let _0x3cdbb2=0x0;_0x3cdbb2<_0x10b601['length'];_0x3cdbb2++){const _0x130918=_0x157e20['readGeometry'](_0x10b601[_0x3cdbb2]);if(isGeometryEmpty(_0x130918))continue;_0x145860&&_0xc3b219?_0x595cdb['push'](_0x130918[_0x32f07c(0x18d)](_0x145860,_0xc3b219)):_0x595cdb[_0x32f07c(0x191)](_0x130918);}return _0x595cdb;}export function toWKT(_0x2f0cbc){const _0xcdaa6e=a84_0x5553,_0x1220da=new a84_0x133e62();if(isGeometryEmpty(_0x2f0cbc))return'';if(_0x2f0cbc instanceof Circle){const _0x2fe8b8=fromCircle(_0x2f0cbc);return _0x1220da[_0xcdaa6e(0x16e)](_0x2fe8b8);}else return _0x1220da[_0xcdaa6e(0x16e)](_0x2f0cbc);}export function toGeoJSON(_0x1d52c4){const _0x1d96be=a84_0x5553,_0x274a82=new a84_0x30a3a7();return _0x274a82[_0x1d96be(0x16e)](_0x1d52c4);}export function fromGeoJSON(_0x49875b){const _0x325276=a84_0x5553,_0x5b65a3=new a84_0x30a3a7();return _0x5b65a3[_0x325276(0x183)](_0x49875b);}export function toEsriJSON(_0x11455c){const _0x54ac11=a84_0x5553,_0x5399af=new a84_0x10aba2();return _0x5399af[_0x54ac11(0x16e)](_0x11455c);}export function fromEsriJSON(_0x3bccff){const _0x4a1a88=a84_0x5553,_0x141e57=new a84_0x10aba2();return _0x141e57[_0x4a1a88(0x183)](_0x3bccff);}export function expandExtent(_0x826b79,_0x58ee78){const _0x41a285=_0x826b79[0x0],_0x1c5ade=_0x826b79[0x1],_0x248bd1=_0x826b79[0x2],_0x338e8a=_0x826b79[0x3],_0x25427e=(_0x41a285+_0x248bd1)/0x2,_0x54186c=(_0x1c5ade+_0x338e8a)/0x2,_0x13d491=_0x248bd1-_0x41a285,_0x5a95b6=_0x338e8a-_0x1c5ade,_0x22d806=_0x13d491*_0x58ee78,_0x335024=_0x5a95b6*_0x58ee78,_0x689e58=_0x25427e-_0x22d806/0x2,_0x2a31ce=_0x25427e+_0x22d806/0x2,_0x571b70=_0x54186c-_0x335024/0x2,_0x5bbbe1=_0x54186c+_0x335024/0x2;return[_0x689e58,_0x571b70,_0x2a31ce,_0x5bbbe1];}export function isGeometryEmpty(_0x53937d){const _0x46a6ef=a84_0x5553;if(!_0x53937d)return!![];if(_0x53937d instanceof Point||_0x53937d instanceof MultiPoint){const _0x49b371=_0x53937d[_0x46a6ef(0x16b)]();return!_0x49b371||_0x49b371['some'](_0x31fe81=>isNaN(_0x31fe81));}else{if(_0x53937d instanceof LineString||_0x53937d instanceof MultiLineString)return _0x53937d[_0x46a6ef(0x16b)]()[_0x46a6ef(0x164)]<0x2;else{if(_0x53937d instanceof Polygon){const _0x27cae9=_0x53937d[_0x46a6ef(0x16b)]();return!_0x27cae9||_0x27cae9[_0x46a6ef(0x164)]===0x0||_0x27cae9[0x0][_0x46a6ef(0x164)]<0x4;}else{if(_0x53937d instanceof MultiPolygon){const _0x48f4b5=_0x53937d[_0x46a6ef(0x16b)]();return!_0x48f4b5||_0x48f4b5['length']===0x0||_0x48f4b5[0x0][0x0][_0x46a6ef(0x164)]<0x4;}}}}return![];}export function polygonToLines(_0x359e4d){const _0x37d7ef=a84_0x5553;if(!_0x359e4d)return[];const _0x7c4181=_0x359e4d[_0x37d7ef(0x179)]();return _0x7c4181[_0x37d7ef(0x168)](_0x470cf8=>new LineString(_0x470cf8['getCoordinates']()));}export function getGeometryCenter(_0x497008){const _0x4cc756=a84_0x5553;if(!_0x497008)return undefined;const _0x10ed89=_0x497008[_0x4cc756(0x169)]();if(_0x10ed89===_0x4cc756(0x170))return new Point(_0x497008[_0x4cc756(0x16b)]());if(_0x10ed89===_0x4cc756(0x196)||_0x10ed89===_0x4cc756(0x184))return _0x497008[_0x4cc756(0x189)]();const _0x3cc008=getCenter(_0x497008[_0x4cc756(0x194)]());return new Point(_0x3cc008);}
|
|
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);}
|