ym-gis-2d 1.0.39 → 1.0.40
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 +5 -0
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a67_0x35be11=a67_0x1e67;function a67_0x40bd(){var _0x3f099f=['307180FyZerZ','249088DwiTef','generate','19500613LsrcNZ','getGeoJson','822IOstWB','length','getType','10pArvuI','finishDrawing','setMap','isPlot','179370zivQmu','points','stringify','writeGeometryObject','927291TbLmqG','setPoints','27335jDqKEU','slice','4eunSTV','8mkwjkv','style','type','getPointCount','258683pOiwYB'];a67_0x40bd=function(){return _0x3f099f;};return a67_0x40bd();}(function(_0x2598f2,_0x1f07b5){var _0x425898=a67_0x1e67,_0xa2dd03=_0x2598f2();while(!![]){try{var _0x1deaef=parseInt(_0x425898(0x1cb))/0x1*(-parseInt(_0x425898(0x1c6))/0x2)+-parseInt(_0x425898(0x1c2))/0x3+-parseInt(_0x425898(0x1cd))/0x4+-parseInt(_0x425898(0x1cc))/0x5+parseInt(_0x425898(0x1b7))/0x6*(-parseInt(_0x425898(0x1c4))/0x7)+-parseInt(_0x425898(0x1c7))/0x8*(parseInt(_0x425898(0x1be))/0x9)+-parseInt(_0x425898(0x1ba))/0xa*(-parseInt(_0x425898(0x1cf))/0xb);if(_0x1deaef===_0x1f07b5)break;else _0xa2dd03['push'](_0xa2dd03['shift']());}catch(_0x1fdae3){_0xa2dd03['push'](_0xa2dd03['shift']());}}}(a67_0x40bd,0x415b1));function a67_0x1e67(_0x4a4ec0,_0x3c7ce5){var _0x40bddb=a67_0x40bd();return a67_0x1e67=function(_0x1e6755,_0x201c37){_0x1e6755=_0x1e6755-0x1b6;var _0x12f070=_0x40bddb[_0x1e6755];return _0x12f070;},a67_0x1e67(_0x4a4ec0,_0x3c7ce5);}import{Polygon}from'ol/geom';import a67_0xb54264 from'ol/format/GeoJSON';import a67_0x42dddc from'../../../mapView/Map';class BasePolygon extends Polygon{constructor(){var _0x54c4e8=a67_0x1e67;super([]),this[_0x54c4e8(0x1bf)]=[];}['getType'](){var _0x5d2cfc=a67_0x1e67;return this[_0x5d2cfc(0x1c9)]?this[_0x5d2cfc(0x1c9)]:super[_0x5d2cfc(0x1b9)]();}[a67_0x35be11(0x1b6)](){var _0x611807=a67_0x35be11;return new a67_0xb54264()[_0x611807(0x1c1)](this);}['setStyle'](_0xf0fe0){var _0x54931c=a67_0x35be11;_0xf0fe0&&(this[_0x54931c(0x1c8)]=JSON['parse'](JSON[_0x54931c(0x1c0)](_0xf0fe0)));}[a67_0x35be11(0x1bc)](_0x263907){if(_0x263907&&_0x263907 instanceof a67_0x42dddc)this['map']=_0x263907;else throw new Error('传入的不是地图对象!');}['getMap'](){return this['map'];}[a67_0x35be11(0x1bd)](){return!![];}[a67_0x35be11(0x1c3)](_0x50bd12){var _0x103719=a67_0x35be11;this[_0x103719(0x1bf)]=!_0x50bd12?[]:_0x50bd12,this['points']['length']>=0x1&&this['generate']();}[a67_0x35be11(0x1ce)](){}['getPoints'](){var _0x2199ff=a67_0x35be11;return this[_0x2199ff(0x1bf)][_0x2199ff(0x1c5)](0x0);}[a67_0x35be11(0x1ca)](){var _0x262a52=a67_0x35be11;return this['points'][_0x262a52(0x1b8)];}[a67_0x35be11(0x1bb)](){}}export default BasePolygon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x2100b0=a68_0x5107;(function(_0x43307d,_0x417ce5){const _0xe28b0a=a68_0x5107,_0x28f52a=_0x43307d();while(!![]){try{const _0x1675c0=parseInt(_0xe28b0a(0x11b))/0x1+parseInt(_0xe28b0a(0x11e))/0x2+parseInt(_0xe28b0a(0x11a))/0x3+-parseInt(_0xe28b0a(0x115))/0x4*(parseInt(_0xe28b0a(0x117))/0x5)+-parseInt(_0xe28b0a(0x10f))/0x6+parseInt(_0xe28b0a(0x119))/0x7*(-parseInt(_0xe28b0a(0x10e))/0x8)+parseInt(_0xe28b0a(0x10a))/0x9;if(_0x1675c0===_0x417ce5)break;else _0x28f52a['push'](_0x28f52a['shift']());}catch(_0x5d39b9){_0x28f52a['push'](_0x28f52a['shift']());}}}(a68_0x28a7,0xdb5eb));import{Circle as a68_0x229030}from'ol/geom';import a68_0x113fea from'ol/format/GeoJSON';import{offset}from'ol/sphere';import{squaredDistance as a68_0x1e5634}from'ol/coordinate';import{fromCircle}from'ol/geom/Polygon';import{compareArray}from'../../../utils/ArrayUtil';class Circle extends a68_0x229030{constructor(_0x4fb80b){const _0x3167bf=a68_0x5107;super([]),this[_0x3167bf(0x11c)]=_0x4fb80b,this[_0x3167bf(0x10d)]=_0x3167bf(0x114),_0x4fb80b&&_0x4fb80b[_0x3167bf(0x109)]>0x0&&this[_0x3167bf(0x111)](_0x4fb80b);}[a68_0x2100b0(0x111)](_0x40a4d5){const _0x1f20c8=a68_0x2100b0;var _0x18fa55;((_0x18fa55=this[_0x1f20c8(0x11c)])===null||_0x18fa55===void 0x0?void 0x0:_0x18fa55[_0x1f20c8(0x109)])>0x0&&(_0x40a4d5===null||_0x40a4d5===void 0x0?void 0x0:_0x40a4d5[_0x1f20c8(0x109)])>0x0&&!compareArray(this[_0x1f20c8(0x11c)][0x0],_0x40a4d5[0x0])?this[_0x1f20c8(0x113)](_0x40a4d5[0x0]):(this[_0x1f20c8(0x11c)]=!_0x40a4d5?[]:_0x40a4d5,this[_0x1f20c8(0x11c)][_0x1f20c8(0x109)]>=0x1&&(this[_0x1f20c8(0x10c)]&&this[_0x1f20c8(0x10c)]()));}[a68_0x2100b0(0x10c)](){const _0x17da1d=a68_0x2100b0;let _0x4a4137=this[_0x17da1d(0x11c)][_0x17da1d(0x109)];if(_0x4a4137<0x2)return![];else{const _0x1f0b23=this[_0x17da1d(0x11c)][0x0],_0x1f2e40=a68_0x1e5634(_0x1f0b23,this['points'][0x1]);this['setCenterAndRadius'](_0x1f0b23,Math[_0x17da1d(0x118)](_0x1f2e40));}}[a68_0x2100b0(0x113)](_0x4dbc80){const _0x135f58=a68_0x2100b0;this[_0x135f58(0x113)](_0x4dbc80),this['points']=[_0x4dbc80,offset(_0x4dbc80,this[_0x135f58(0x10b)](),this[_0x135f58(0x11d)](0x5a))],this['generate']();}[a68_0x2100b0(0x11d)](_0x4c02fb){return _0x4c02fb*Math['PI']/0xb4;}[a68_0x2100b0(0x112)](){const _0x37f21d=a68_0x2100b0;return new a68_0x113fea()[_0x37f21d(0x110)](fromCircle(this));}[a68_0x2100b0(0x116)](_0x5a2ef1,_0x3abf1e){const _0x383fff=a68_0x2100b0;_0x3abf1e>=0x0&&_0x3abf1e<this[_0x383fff(0x11c)]['length']&&(this['points'][_0x3abf1e]=_0x5a2ef1,this[_0x383fff(0x10c)]());}['updateLastPoint'](_0x541d68){const _0x5617c0=a68_0x2100b0;this[_0x5617c0(0x116)](_0x541d68,this[_0x5617c0(0x11c)][_0x5617c0(0x109)]-0x1);}}export default Circle;function a68_0x5107(_0x37cef3,_0x49f0eb){const _0x28a760=a68_0x28a7();return a68_0x5107=function(_0x5107aa,_0x575313){_0x5107aa=_0x5107aa-0x109;let _0x34d379=_0x28a760[_0x5107aa];return _0x34d379;},a68_0x5107(_0x37cef3,_0x49f0eb);}function a68_0x28a7(){const _0x2e190c=['updatePoint','55dmsWOL','sqrt','7svpSPJ','830376XFEFbO','630782MqTxDx','points','toRadians','2106560xWtSzb','length','18422235FaGHIn','getRadius','generate','type','6177448nvdRgM','8846508BqERaO','writeGeometryObject','setPoints','getGeoJson','setCenter','Circle','313684YvNvZB'];a68_0x28a7=function(){return _0x2e190c;};return a68_0x28a7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x26171a=a69_0x14be;function a69_0x4e29(){const _0x266779=['1890748HseBTl','3iVEhaj','70LYgZZZ','2610976oOdsDg','push','1839607xTJRFA','updatePoint','points','length','50390KsvFdO','setCoordinates','30UKagla','stringify','Polygon','type','parse','668197FzkZLD','generate','setPoints','602524WiRvYA','updateLastPoint','2334942VFXniD','getPointCount'];a69_0x4e29=function(){return _0x266779;};return a69_0x4e29();}(function(_0x5c63fb,_0x157330){const _0x419c4c=a69_0x14be,_0x2322fe=_0x5c63fb();while(!![]){try{const _0x3bbdec=-parseInt(_0x419c4c(0x1aa))/0x1+parseInt(_0x419c4c(0x1ad))/0x2+-parseInt(_0x419c4c(0x1b2))/0x3*(parseInt(_0x419c4c(0x1b1))/0x4)+parseInt(_0x419c4c(0x1a3))/0x5*(-parseInt(_0x419c4c(0x1a5))/0x6)+-parseInt(_0x419c4c(0x19f))/0x7+-parseInt(_0x419c4c(0x1b4))/0x8+-parseInt(_0x419c4c(0x1af))/0x9*(-parseInt(_0x419c4c(0x1b3))/0xa);if(_0x3bbdec===_0x157330)break;else _0x2322fe['push'](_0x2322fe['shift']());}catch(_0x5072a0){_0x2322fe['push'](_0x2322fe['shift']());}}}(a69_0x4e29,0x523f1));function a69_0x14be(_0xa1a600,_0x3912c1){const _0x4e29a2=a69_0x4e29();return a69_0x14be=function(_0x14bec9,_0x325267){_0x14bec9=_0x14bec9-0x19e;let _0x5e6514=_0x4e29a2[_0x14bec9];return _0x5e6514;},a69_0x14be(_0xa1a600,_0x3912c1);}import a69_0x54bce5 from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';class Polygon extends a69_0x54bce5{constructor(_0x50b42c){const _0x314c50=a69_0x14be;super(),this[_0x314c50(0x1a8)]=_0x314c50(0x1a7),_0x50b42c&&_0x50b42c['length']>0x0&&getDeepth(_0x50b42c)==0x2?this[_0x314c50(0x1ac)](_0x50b42c):this[_0x314c50(0x1a4)](_0x50b42c);}['_closed'](_0x305aef){const _0x3788e3=a69_0x14be;let _0x1b041e=_0x305aef[0x0],_0x504aaa=_0x305aef[_0x305aef[_0x3788e3(0x1a2)]-0x1];return _0x1b041e[0x0]===_0x504aaa[0x0]&&_0x1b041e[0x1]===_0x504aaa[0x1]&&_0x1b041e[0x2]===_0x504aaa[0x2];}[a69_0x26171a(0x1ab)](){const _0x53c040=a69_0x26171a;let _0x4cf4ba=this[_0x53c040(0x1b0)]();if(_0x4cf4ba<0x2)return![];else{let _0x4814cb=JSON[_0x53c040(0x1a9)](JSON[_0x53c040(0x1a6)](this[_0x53c040(0x1a1)]));_0x4cf4ba>=0x3&&(!this['_closed'](_0x4814cb)&&_0x4814cb[_0x53c040(0x19e)](_0x4814cb[0x0])),this[_0x53c040(0x1a4)]([_0x4814cb]);}}[a69_0x26171a(0x1a0)](_0x265e2a,_0x5200ac){const _0x46d5a0=a69_0x26171a;_0x5200ac>=0x0&&_0x5200ac<this[_0x46d5a0(0x1a1)][_0x46d5a0(0x1a2)]&&(this[_0x46d5a0(0x1a1)][_0x5200ac]=_0x265e2a,this[_0x46d5a0(0x1ab)]());}['isPlot'](){return![];}[a69_0x26171a(0x1ae)](_0x15b951){const _0x2887cf=a69_0x26171a;this[_0x2887cf(0x1a0)](_0x15b951,this[_0x2887cf(0x1a1)][_0x2887cf(0x1a2)]-0x1);}}export default Polygon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a70_0x25b2(_0xbe35da,_0x475f59){const _0x29b7ed=a70_0x29b7();return a70_0x25b2=function(_0x25b287,_0x59219a){_0x25b287=_0x25b287-0xef;let _0x495cd0=_0x29b7ed[_0x25b287];return _0x495cd0;},a70_0x25b2(_0xbe35da,_0x475f59);}function a70_0x29b7(){const _0x2d6407=['type','44265790aFDVDu','371iYidDr','generate','9RxKGff','setPoints','updatePoint','9753312AdBrGa','setCoordinates','3756507Crymuq','833564GMMxcf','1QEIxSq','updateLastPoint','7269145UQhoZE','points','36138UzKBya','Polygon','length','6019120PNGkQm'];a70_0x29b7=function(){return _0x2d6407;};return a70_0x29b7();}const a70_0x39fc37=a70_0x25b2;(function(_0x27b6f7,_0x3c4abc){const _0x5c8a72=a70_0x25b2,_0x22256f=_0x27b6f7();while(!![]){try{const _0x2893ab=-parseInt(_0x5c8a72(0xf1))/0x1*(parseInt(_0x5c8a72(0xf0))/0x2)+parseInt(_0x5c8a72(0xef))/0x3+-parseInt(_0x5c8a72(0xf8))/0x4+-parseInt(_0x5c8a72(0xf3))/0x5+parseInt(_0x5c8a72(0xf5))/0x6*(-parseInt(_0x5c8a72(0xfb))/0x7)+-parseInt(_0x5c8a72(0x100))/0x8+parseInt(_0x5c8a72(0xfd))/0x9*(parseInt(_0x5c8a72(0xfa))/0xa);if(_0x2893ab===_0x3c4abc)break;else _0x22256f['push'](_0x22256f['shift']());}catch(_0x3bd418){_0x22256f['push'](_0x22256f['shift']());}}}(a70_0x29b7,0xbac2e));import{fromExtent}from'ol/geom/Polygon';import{boundingExtent}from'ol/extent';import a70_0x3d977f from'./BasePolygon';import{getDeepth}from'../../../utils/ArrayUtil';class RectAngle extends a70_0x3d977f{constructor(_0x48619c){const _0x2e5d7c=a70_0x25b2;super(),this[_0x2e5d7c(0xf9)]=_0x2e5d7c(0xf6),_0x48619c&&_0x48619c['length']>0x0&&getDeepth(_0x48619c)==0x2?this[_0x2e5d7c(0xfe)](_0x48619c):this[_0x2e5d7c(0x101)](_0x48619c);}[a70_0x39fc37(0xfc)](){const _0x263006=a70_0x39fc37;if(this[_0x263006(0xf4)][_0x263006(0xf7)]===0x2){let _0x3034a7=[],_0x511218=boundingExtent(this[_0x263006(0xf4)]),_0x5831be=fromExtent(_0x511218);_0x3034a7=_0x5831be['getCoordinates'](),this[_0x263006(0x101)](_0x3034a7);}}['updatePoint'](_0x4698c2,_0x36e222){const _0x4bee55=a70_0x39fc37;_0x36e222>=0x0&&_0x36e222<this['points'][_0x4bee55(0xf7)]&&(this[_0x4bee55(0xf4)][_0x36e222]=_0x4698c2,this[_0x4bee55(0xfc)]());}[a70_0x39fc37(0xf2)](_0x5dbedb){const _0x34336d=a70_0x39fc37;this[_0x34336d(0xff)](_0x5dbedb,this[_0x34336d(0xf4)][_0x34336d(0xf7)]-0x1);}}export default RectAngle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a71_0x8d852b=a71_0xe9df;function a71_0x539a(){var _0x132798=['2261144eLWsyL','setStyle','parse','points','getPointCount','5FOFESu','setMap','2144622BsEvwg','generate','17070kcAHxI','getPlotType','36bKtzMF','isPlot','slice','2766410YRODfI','stringify','getMap','2043789dXrhDB','style','2954916zyrrFE','12CrSniS','writeGeometryObject','length','114eEfPIm','97LhPESF','423647ZxDBYy','map','getPoints'];a71_0x539a=function(){return _0x132798;};return a71_0x539a();}(function(_0x1f0a69,_0x14eb59){var _0x330091=a71_0xe9df,_0xed8663=_0x1f0a69();while(!![]){try{var _0x506f7e=parseInt(_0x330091(0x1b3))/0x1*(parseInt(_0x330091(0x1c0))/0x2)+-parseInt(_0x330091(0x1be))/0x3+-parseInt(_0x330091(0x1ca))/0x4*(-parseInt(_0x330091(0x1bc))/0x5)+-parseInt(_0x330091(0x1b2))/0x6*(-parseInt(_0x330091(0x1b4))/0x7)+-parseInt(_0x330091(0x1b7))/0x8*(parseInt(_0x330091(0x1c2))/0x9)+-parseInt(_0x330091(0x1c5))/0xa+-parseInt(_0x330091(0x1c8))/0xb*(-parseInt(_0x330091(0x1cb))/0xc);if(_0x506f7e===_0x14eb59)break;else _0xed8663['push'](_0xed8663['shift']());}catch(_0x458566){_0xed8663['push'](_0xed8663['shift']());}}}(a71_0x539a,0xbe7cb));import{LineString}from'ol/geom';import a71_0x28cd41 from'ol/format/GeoJSON';import a71_0x3cf974 from'../../../mapView/Map';class Plot extends LineString{constructor(){var _0x341f1b=a71_0xe9df;super([]),this[_0x341f1b(0x1ba)]=[];}[a71_0x8d852b(0x1c1)](){return this['type'];}['getGeoJson'](){var _0xb50e42=a71_0x8d852b;return new a71_0x28cd41()[_0xb50e42(0x1cc)](this);}[a71_0x8d852b(0x1b8)](_0x53f8af){var _0x486ea5=a71_0x8d852b;this[_0x486ea5(0x1c9)]=JSON[_0x486ea5(0x1b9)](JSON[_0x486ea5(0x1c6)](_0x53f8af));}[a71_0x8d852b(0x1bd)](_0x47a761){var _0x5af114=a71_0x8d852b;if(_0x47a761&&_0x47a761 instanceof a71_0x3cf974)this[_0x5af114(0x1b5)]=_0x47a761;else throw new Error('传入的不是地图对象!');}[a71_0x8d852b(0x1c7)](){var _0x1c8f4b=a71_0x8d852b;return this[_0x1c8f4b(0x1b5)];}[a71_0x8d852b(0x1c3)](){return!![];}['setPoints'](_0x52eeeb){var _0x3dc92a=a71_0x8d852b;this[_0x3dc92a(0x1ba)]=!_0x52eeeb?[]:_0x52eeeb,this['points'][_0x3dc92a(0x1cd)]>=0x1&&(this[_0x3dc92a(0x1bf)]&&this[_0x3dc92a(0x1bf)]());}[a71_0x8d852b(0x1bf)](){}[a71_0x8d852b(0x1b6)](){var _0x43ed21=a71_0x8d852b;return this[_0x43ed21(0x1ba)][_0x43ed21(0x1c4)](0x0);}[a71_0x8d852b(0x1bb)](){var _0x2cffa2=a71_0x8d852b;return this[_0x2cffa2(0x1ba)]['length'];}['finishDrawing'](){}}function a71_0xe9df(_0x1035cc,_0x5163fe){var _0x539ac6=a71_0x539a();return a71_0xe9df=function(_0xe9df3b,_0x3e40c7){_0xe9df3b=_0xe9df3b-0x1b2;var _0x2f6bfc=_0x539ac6[_0xe9df3b];return _0x2f6bfc;},a71_0xe9df(_0x1035cc,_0x5163fe);}export default Plot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a72_0x478f(){var _0x59e848=['setCoordinates','18KvCCGk','points','71464hBfcYY','updatePoint','679129VuWNQG','style','3tcbkTs','isPlot','266128VLteIO','70ZJDdUp','stringify','generate','setStyle','203768EekuNk','115338EPBztk','updateLastPoint','252649DHHska','parse','length','1323930TbsiuC','15OTKdSe'];a72_0x478f=function(){return _0x59e848;};return a72_0x478f();}function a72_0x4040(_0x481aac,_0xf1ea7b){var _0x478f7c=a72_0x478f();return a72_0x4040=function(_0x404051,_0x303c34){_0x404051=_0x404051-0x1a1;var _0x4f2808=_0x478f7c[_0x404051];return _0x4f2808;},a72_0x4040(_0x481aac,_0xf1ea7b);}var a72_0x558af4=a72_0x4040;(function(_0x3065ab,_0x308aff){var _0x2ed49a=a72_0x4040,_0x28a4a9=_0x3065ab();while(!![]){try{var _0x10c3b3=parseInt(_0x2ed49a(0x1b5))/0x1+-parseInt(_0x2ed49a(0x1b2))/0x2*(parseInt(_0x2ed49a(0x1ab))/0x3)+parseInt(_0x2ed49a(0x1a7))/0x4*(-parseInt(_0x2ed49a(0x1a3))/0x5)+-parseInt(_0x2ed49a(0x1b3))/0x6*(-parseInt(_0x2ed49a(0x1ae))/0x7)+-parseInt(_0x2ed49a(0x1ad))/0x8*(parseInt(_0x2ed49a(0x1a5))/0x9)+-parseInt(_0x2ed49a(0x1a2))/0xa+parseInt(_0x2ed49a(0x1a9))/0xb;if(_0x10c3b3===_0x308aff)break;else _0x28a4a9['push'](_0x28a4a9['shift']());}catch(_0x71d9bf){_0x28a4a9['push'](_0x28a4a9['shift']());}}}(a72_0x478f,0x25293));import a72_0x2866d5 from'./BaseLine';class Polyline extends a72_0x2866d5{constructor(_0x48090f){super(),this['type']='LineString',this['setCoordinates'](_0x48090f);}[a72_0x558af4(0x1b0)](){var _0x177b01=a72_0x558af4;this[_0x177b01(0x1a4)](this[_0x177b01(0x1a6)]);}['updatePoint'](_0x4ff1b0,_0x946f39){var _0x552d54=a72_0x558af4;_0x946f39>=0x0&&_0x946f39<this[_0x552d54(0x1a6)]['length']&&(this[_0x552d54(0x1a6)][_0x946f39]=_0x4ff1b0,this[_0x552d54(0x1b0)]());}[a72_0x558af4(0x1b4)](_0x39734e){var _0x4ee289=a72_0x558af4;this[_0x4ee289(0x1a8)](_0x39734e,this[_0x4ee289(0x1a6)][_0x4ee289(0x1a1)]-0x1);}[a72_0x558af4(0x1ac)](){return![];}[a72_0x558af4(0x1b1)](_0x5584be){var _0x33e8e1=a72_0x558af4;this[_0x33e8e1(0x1aa)]=JSON[_0x33e8e1(0x1b6)](JSON[_0x33e8e1(0x1af)](_0x5584be));}}export default Polyline;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x1c66ba,_0x1e674d){const _0x17a488=a75_0x2841,_0x182814=_0x1c66ba();while(!![]){try{const _0x15fb84=parseInt(_0x17a488(0x10b))/0x1*(-parseInt(_0x17a488(0x11e))/0x2)+-parseInt(_0x17a488(0x131))/0x3*(-parseInt(_0x17a488(0x105))/0x4)+-parseInt(_0x17a488(0x110))/0x5+parseInt(_0x17a488(0x12a))/0x6*(parseInt(_0x17a488(0x11a))/0x7)+parseInt(_0x17a488(0xf8))/0x8*(parseInt(_0x17a488(0x134))/0x9)+parseInt(_0x17a488(0x10c))/0xa+-parseInt(_0x17a488(0xfa))/0xb*(parseInt(_0x17a488(0x11c))/0xc);if(_0x15fb84===_0x1e674d)break;else _0x182814['push'](_0x182814['shift']());}catch(_0x520733){_0x182814['push'](_0x182814['shift']());}}}(a75_0x3319,0x67eef));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';function a75_0x3319(){const _0x4cc7fb=['getPixelFromCoordinate','globalAlpha','text','pixelOffsetX','drawImage','length','warn','match','1076oqlpUH','getType','getFlatInteriorPoints','toUpperCase','markerColor','opacity','6353geQLQK','6603080HMtZFr','getStride','image','model/','141850VgkBsE','billboard','CENTER','pixelOffset','cloud','parse','createElement','width','data','src','35UICglK','model','12NjywSX','.png','212NLIzLR','rotate','RIGHT','putImageData','pixelSize','outlineWidth','outlineOpacity','context','modelKind','radius','label','pixelRatio','940098MEVgOJ','scale','Polygon','verticalOrigin','outline','color','restore','321IsTBSI','stringify','pixelOffsetY','9olOvGb','imgUrl','TOP','horizontalOrigin','show','rotation','getContext','geometry','push','height','4839160tYvsJX','getFlatMidpoints','10448922vLHUfr','zIndex','outlineColor'];a75_0x3319=function(){return _0x4cc7fb;};return a75_0x3319();}import a75_0x6acbd from'ol/style/Style';import a75_0x31997d from'ol/style/Circle';import a75_0x191af5 from'ol/style/Fill';import a75_0x25d7f2 from'ol/style/Stroke';function getMainStyle(_0x2da309,_0x2f7662=0x0,_0x1f8df2){const _0x2951e5=a75_0x2841;let _0x599634;return _0x2da309[_0x2951e5(0x10e)]||_0x2da309[_0x2951e5(0x109)]?_0x599634=new a75_0x6acbd({'renderer':(_0x43f32f,_0x5811d2)=>{preLoadImageRenderFunction(_0x2da309,_0x43f32f,_0x5811d2,_0x1f8df2,_rendererFunction);},'zIndex':Number(_0x2f7662)}):_0x599634=new a75_0x6acbd({'image':new a75_0x31997d({'radius':_0x2da309[_0x2951e5(0x127)]?_0x2da309['radius']:_0x2da309[_0x2951e5(0x122)],'fill':new a75_0x191af5({'color':getColor(_0x2da309[_0x2951e5(0x12f)],_0x2da309[_0x2951e5(0x10a)])}),'stroke':_0x2da309[_0x2951e5(0x12e)]&&_0x2da309[_0x2951e5(0xfc)]?new a75_0x25d7f2({'color':getColor(_0x2da309[_0x2951e5(0xfc)],_0x2da309[_0x2951e5(0x124)]),'width':_0x2da309[_0x2951e5(0x123)]}):undefined}),'zIndex':Number(_0x2f7662)}),_0x599634;}function a75_0x2841(_0x57a61a,_0x2107f6){const _0x3319fd=a75_0x3319();return a75_0x2841=function(_0x284141,_0x2e85af){_0x284141=_0x284141-0xf6;let _0x3a29a3=_0x3319fd[_0x284141];return _0x3a29a3;},a75_0x2841(_0x57a61a,_0x2107f6);}function _rendererFunction(_0x14ae08,_0x58e61d,_0x1db7ea,_0x3e01f3,_0x1b2673){const _0x209b5b=a75_0x2841;if(!_0x1b2673||_0x1b2673[_0x209b5b(0x117)]===0x0){let _0xbbf52f=new Image();_0xbbf52f[_0x209b5b(0x119)]=_0x14ae08[_0x209b5b(0x10e)];}if(_0x14ae08['changeColor']&&_0x14ae08[_0x209b5b(0x12f)]!==''){let _0x47154c=_0x14ae08[_0x209b5b(0x12b)]||0x1,_0x5bf34b=_0x14ae08['width']||_0x1b2673[_0x209b5b(0x117)]*_0x47154c,_0x490e54=_0x14ae08[_0x209b5b(0xf7)]||_0x1b2673['height']*_0x47154c;_0x5bf34b=_0x5bf34b*_0x1db7ea[_0x209b5b(0x129)],_0x490e54=_0x490e54*_0x1db7ea['pixelRatio'];const _0x3a60c7=document[_0x209b5b(0x116)]('canvas');_0x3a60c7[_0x209b5b(0x117)]=_0x5bf34b,_0x3a60c7[_0x209b5b(0xf7)]=_0x490e54;const _0x17610f=_0x3a60c7[_0x209b5b(0x13a)]('2d');_0x17610f===null||_0x17610f===void 0x0?void 0x0:_0x17610f['drawImage'](_0x1b2673,0x0,0x0,_0x5bf34b,_0x490e54);let _0x59ba3c=_0x17610f===null||_0x17610f===void 0x0?void 0x0:_0x17610f['getImageData'](0x0,0x0,_0x5bf34b,_0x490e54),_0x5c1723=_0x59ba3c===null||_0x59ba3c===void 0x0?void 0x0:_0x59ba3c[_0x209b5b(0x118)];_0x1b2673=_0x3a60c7;let _0x293831=HexToRgb(_0x14ae08[_0x209b5b(0x12f)]);if(_0x5c1723&&_0x293831)for(var _0x275c65=0x0;_0x275c65<_0x5c1723[_0x209b5b(0x102)];_0x275c65+=0x4){_0x5c1723[_0x275c65]=_0x293831[0x0],_0x5c1723[_0x275c65+0x1]=_0x293831[0x1],_0x5c1723[_0x275c65+0x2]=_0x293831[0x2];}_0x59ba3c&&(_0x17610f===null||_0x17610f===void 0x0?void 0x0:_0x17610f[_0x209b5b(0x121)](_0x59ba3c,0x0,0x0));}let _0x410b50=_0x1db7ea[_0x209b5b(0x13b)],_0x3d88dc=_0x1db7ea[_0x209b5b(0x129)],_0x17fd7d=_0x410b50[_0x209b5b(0x10d)](),_0x3dfc49=_0x410b50[_0x209b5b(0x106)](),_0x5a796f=[];switch(_0x3dfc49){case'LineString':_0x5a796f=_0x410b50['getFlatMidpoint']();break;case'MultiLineString':_0x5a796f=_0x410b50[_0x209b5b(0xf9)](),_0x17fd7d=0x2;break;case _0x209b5b(0x12c):_0x5a796f=_0x410b50['getFlatInteriorPoint'](),_0x17fd7d=0x3;break;case'MultiPolygon':{let _0x54df79=_0x410b50[_0x209b5b(0x107)]();_0x5a796f=[];for(let _0x3c7375=0x0,_0x2fade1=_0x54df79[_0x209b5b(0x102)];_0x3c7375<_0x2fade1;_0x3c7375+=0x3){_0x5a796f[_0x209b5b(0xf6)](_0x54df79[_0x3c7375],_0x54df79[_0x3c7375+0x1]);}if(_0x5a796f[_0x209b5b(0x102)]===0x0)return;_0x17fd7d=0x2;break;}}if(_0x5a796f[_0x209b5b(0x102)]>0x0&&_0x3e01f3)for(let _0x3983e4=0x0,_0x5a3033=_0x5a796f[_0x209b5b(0x102)];_0x3983e4<_0x5a3033;_0x3983e4+=_0x17fd7d){let _0x4b860e=[_0x5a796f[_0x3983e4],_0x5a796f[_0x3983e4+0x1]],_0x1e4d83=_0x3e01f3[_0x209b5b(0xfd)](_0x4b860e);_0x1e4d83=[_0x1e4d83[0x0]*_0x3d88dc,_0x1e4d83[0x1]*_0x3d88dc],drawImage(_0x14ae08,_0x1e4d83,_0x1db7ea,_0x1b2673);}else{if(_0x3dfc49==='MultiPoint')for(let _0x1756b3 of _0x58e61d){drawImage(_0x14ae08,_0x1756b3,_0x1db7ea,_0x1b2673);}else drawImage(_0x14ae08,_0x58e61d,_0x1db7ea,_0x1b2673);}}function HexToRgb(_0x4136c6){const _0x475e26=a75_0x2841;_0x4136c6=_0x4136c6['replace']('#','');let _0x503e63=_0x4136c6[_0x475e26(0x104)](/../g);if(_0x503e63){for(let _0x152192=0x0;_0x152192<0x3;_0x152192++)_0x503e63[_0x152192]=parseInt(_0x503e63[_0x152192],0x10);}return _0x503e63;}export function getImageOlStyle(_0x5f502a,_0x2ec7db,_0x1fde06,_0x1a8153){const _0x30d20c=a75_0x2841;var _0x5a9142;if(_0x5f502a&&_0x5f502a['show']!==![]){_0x5f502a=JSON[_0x30d20c(0x115)](JSON[_0x30d20c(0x132)](_0x5f502a)),_0x2ec7db=(_0x5a9142=_0x5f502a[_0x30d20c(0xfb)])!==null&&_0x5a9142!==void 0x0?_0x5a9142:_0x2ec7db;let _0x38b611=isShowStyle(_0x5f502a,_0x1fde06,_0x1a8153);if(_0x38b611)return _0x5f502a['image']=parseImage(_0x5f502a['image']),getMainStyle(_0x5f502a,_0x2ec7db,_0x1a8153);}}export function getPointStyle(_0x556016,_0x22bc35,_0x32ba39,_0x3941af){const _0x3cd324=a75_0x2841;var _0x5dfc4e,_0x34e32c;_0x556016=JSON['parse'](JSON[_0x3cd324(0x132)](_0x556016));let _0xaef0fd=(_0x5dfc4e=_0x556016['zIndex'])!==null&&_0x5dfc4e!==void 0x0?_0x5dfc4e:0x0,_0x183c46=[],_0x2f476f=getImageOlStyle(_0x556016,_0xaef0fd,_0x32ba39,_0x3941af);_0x2f476f&&_0x183c46[_0x3cd324(0xf6)](_0x2f476f);let _0x488f73=getImageOlStyle(_0x556016[_0x3cd324(0x111)],_0xaef0fd,_0x32ba39,_0x3941af);_0x488f73&&_0x183c46[_0x3cd324(0xf6)](_0x488f73);if(_0x556016[_0x3cd324(0x11b)]&&_0x556016['model'][_0x3cd324(0x138)]!==![]){let _0x13c91f=isShowStyle(_0x556016[_0x3cd324(0x11b)],_0x32ba39,_0x3941af);if(_0x13c91f){let _0x50298d=(_0x34e32c=_0x556016['model']['zIndex'])!==null&&_0x34e32c!==void 0x0?_0x34e32c:_0xaef0fd,_0x2b3da4=_0x556016['model']['imgUrl']||_0x3cd324(0x10f)+_0x556016['model']['modelKind']+_0x3cd324(0x11d);_0x556016['scale']=0x1,_0x556016[_0x3cd324(0x117)]=0x30,_0x556016[_0x3cd324(0xf7)]=0x30,_0x556016[_0x3cd324(0x12d)]=_0x3cd324(0x112),_0x183c46[_0x3cd324(0xf6)](getMainStyle(_0x556016[_0x3cd324(0x11b)],_0x50298d,_0x3941af));}}if(_0x556016[_0x3cd324(0x128)]&&_0x556016[_0x3cd324(0x128)][_0x3cd324(0x138)]!==![]){let _0x45f234=new a75_0x6acbd({'text':createTextStyle(_0x556016[_0x3cd324(0x128)],_0x22bc35,_0x32ba39,_0x3941af),'zIndex':Number(_0xaef0fd)+0x1});_0x183c46[_0x3cd324(0xf6)](_0x45f234);}return _0x183c46;}export function getPointSingleStyle(_0x56241a,_0xb894a6,_0x3fa8e0,_0x3cbe99){const _0x3d2ee2=a75_0x2841;_0xb894a6=JSON['parse'](JSON['stringify'](_0xb894a6));let _0x37dd8e=_0xb894a6[_0x3d2ee2(0x128)],_0x42f3d7;_0x37dd8e&&(_0x42f3d7=_0x37dd8e['text']?_0x37dd8e[_0x3d2ee2(0xff)]:'');if(_0x56241a===_0x3d2ee2(0x111))return _0xb894a6[_0x3d2ee2(0x10e)]=parseImage(_0xb894a6[_0x3d2ee2(0x10e)]),getPointStyle(_0xb894a6,_0x42f3d7,_0x3fa8e0,_0x3cbe99);else{if(_0x56241a===_0x3d2ee2(0x11b)){let _0xe172f=_0xb894a6[_0x3d2ee2(0x135)]||'model/'+_0xb894a6[_0x3d2ee2(0x126)]+_0x3d2ee2(0x11d);return _0xb894a6[_0x3d2ee2(0x12b)]=0x1,_0xb894a6[_0x3d2ee2(0x117)]=0x30,_0xb894a6['height']=0x30,_0xb894a6[_0x3d2ee2(0x12d)]='CENTER',getPointStyle(_0xb894a6,_0x42f3d7,_0x3fa8e0,_0x3cbe99);}else{if(_0x56241a===_0x3d2ee2(0x114))return getPointStyle(_0xb894a6,_0x42f3d7,_0x3fa8e0,_0x3cbe99);else{if(_0x56241a==='point')return getPointStyle(_0xb894a6,_0x42f3d7,_0x3fa8e0,_0x3cbe99);else return _0x56241a===_0x3d2ee2(0x128)?new a75_0x6acbd({'text':createTextStyle(_0xb894a6,_0xb894a6[_0x3d2ee2(0xff)],_0x3fa8e0,_0x3cbe99),'zIndex':_0xb894a6[_0x3d2ee2(0xfb)]}):getPointStyle(_0xb894a6,_0x42f3d7,_0x3fa8e0,_0x3cbe99);}}}}function drawImage(_0x5c970f,_0xf9063f,_0x3d4a2c,_0x4280b8){const _0x1a9c32=a75_0x2841;var _0x29a047,_0x4f48e0,_0x21e3f8,_0x17a02c;let _0x3e4115=_0x3d4a2c[_0x1a9c32(0x125)];try{_0x3e4115['save']();let _0x4a4bfc=Number(_0x5c970f[_0x1a9c32(0x100)]||((_0x29a047=_0x5c970f[_0x1a9c32(0x113)])===null||_0x29a047===void 0x0?void 0x0:_0x29a047[0x0])||0x0),_0x3f940d=Number(_0x5c970f[_0x1a9c32(0x133)]||((_0x4f48e0=_0x5c970f[_0x1a9c32(0x113)])===null||_0x4f48e0===void 0x0?void 0x0:_0x4f48e0[0x1])||0x0);_0x3e4115['translate'](_0xf9063f[0x0]+_0x4a4bfc,_0xf9063f[0x1]+_0x3f940d);if(_0x5c970f[_0x1a9c32(0x139)])_0x3e4115[_0x1a9c32(0x11f)](toRadians(_0x5c970f['rotation']));_0x3e4115[_0x1a9c32(0xfe)]=_0x5c970f[_0x1a9c32(0x10a)]!=null?_0x5c970f['opacity']:0x1;if(_0x4280b8['width']>0x0){let _0x389cf3=_0x5c970f[_0x1a9c32(0x12b)]||0x1,_0x1334df=_0x5c970f[_0x1a9c32(0x117)]||_0x4280b8['width']*_0x389cf3,_0x4a14e0=_0x5c970f[_0x1a9c32(0xf7)]||_0x4280b8['height']*_0x389cf3;_0x1334df=_0x1334df*_0x3d4a2c[_0x1a9c32(0x129)],_0x4a14e0=_0x4a14e0*_0x3d4a2c[_0x1a9c32(0x129)];_0x5c970f['changeColor']&&(_0x1334df=_0x4280b8[_0x1a9c32(0x117)],_0x4a14e0=_0x4280b8[_0x1a9c32(0xf7)]);let _0x51fc1f;switch((_0x21e3f8=_0x5c970f[_0x1a9c32(0x137)])===null||_0x21e3f8===void 0x0?void 0x0:_0x21e3f8[_0x1a9c32(0x108)]()){default:case _0x1a9c32(0x112):_0x51fc1f=-_0x1334df/0x2;break;case'LEFT':_0x51fc1f=0x0;break;case _0x1a9c32(0x120):_0x51fc1f=-_0x1334df;break;}let _0x4b8866;switch((_0x17a02c=_0x5c970f['verticalOrigin'])===null||_0x17a02c===void 0x0?void 0x0:_0x17a02c[_0x1a9c32(0x108)]()){default:case'BOTTOM':_0x4b8866=-_0x4a14e0;break;case _0x1a9c32(0x112):_0x4b8866=-_0x4a14e0/0x2;break;case _0x1a9c32(0x136):_0x4b8866=0x0;break;}_0x3e4115['drawImage'](_0x4280b8,_0x51fc1f,_0x4b8866,_0x1334df,_0x4a14e0);}else _0x3e4115[_0x1a9c32(0x101)](_0x4280b8,0x0,0x0);_0x3e4115['restore']();}catch(_0x4a38cf){_0x3e4115[_0x1a9c32(0x130)](),console[_0x1a9c32(0x103)](_0x4a38cf);}}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x437f10,_0x41a981){var _0x1bd563=a76_0x43e3,_0xfc85=_0x437f10();while(!![]){try{var _0x1f39f9=parseInt(_0x1bd563(0xa9))/0x1*(parseInt(_0x1bd563(0xbb))/0x2)+-parseInt(_0x1bd563(0xca))/0x3+-parseInt(_0x1bd563(0xaa))/0x4*(-parseInt(_0x1bd563(0xb6))/0x5)+parseInt(_0x1bd563(0xdb))/0x6*(-parseInt(_0x1bd563(0xad))/0x7)+-parseInt(_0x1bd563(0xdd))/0x8*(parseInt(_0x1bd563(0xb7))/0x9)+-parseInt(_0x1bd563(0xb5))/0xa*(-parseInt(_0x1bd563(0xaf))/0xb)+parseInt(_0x1bd563(0xb1))/0xc*(-parseInt(_0x1bd563(0xeb))/0xd);if(_0x1f39f9===_0x41a981)break;else _0xfc85['push'](_0xfc85['shift']());}catch(_0x5c93ac){_0xfc85['push'](_0xfc85['shift']());}}}(a76_0x5892,0x427f7));import{getColor,createTextStyle,preLoadImageRenderFunction}from'./common';import{Fill,Stroke,Style}from'ol/style';import{getSize,boundingExtent}from'ol/extent';function a76_0x5892(){var _0x49a818=['setFill','closePath','oddColor','max','outlineColor','stripe_repeat','drawImage','color','checkerboard','checkerboard_repeat','26okHvGD','428905lvTbPZ','5244ycqgyM','src','outlineWidth','7lqNfuV','canvas','33yJxdGi','rgba(0,0,0,0.01)','2026488FeaOuc','outline','zIndex','rgba(0,0,0,0.0)','1346770DlkXGM','1255QEREmR','1692DjCoaN','width','beginPath','verticalOrigin','2QpVgkB','restore','stroke','fill','grid','stripe','billboard','translate','height','repeat','createElement','fillStyle','image','repeatY','length','461481bQLsRb','getContext','setRenderer','save','repeatX','strokeStyle','moveTo','rgba(0,0,0,0)','fillType','outlineOpacity','lineWidth','setStroke','createPattern','opacity','push','grid_lineCount','context','2356698wmbYxk','setZIndex','224nSvHNc','globalAlpha','CENTER','lineTo'];a76_0x5892=function(){return _0x49a818;};return a76_0x5892();}function a76_0x43e3(_0x506e51,_0x167a29){var _0x5892ba=a76_0x5892();return a76_0x43e3=function(_0x43e362,_0x1d35e9){_0x43e362=_0x43e362-0xa9;var _0x4bc5cf=_0x5892ba[_0x43e362];return _0x4bc5cf;},a76_0x43e3(_0x506e51,_0x167a29);}import{getImageOlStyle}from'./PointStyleFormat';export function getPolygonStyle(_0xab9fcb,_0x2ebf6e,_0x58c26c,_0x4dd709){var _0x1bc0a1=a76_0x43e3,_0x5420bb;let _0x2e8fa2=(_0x5420bb=_0xab9fcb[_0x1bc0a1(0xb3)])!==null&&_0x5420bb!==void 0x0?_0x5420bb:0x0,_0x89c6cd=new Style();_0x89c6cd[_0x1bc0a1(0xdc)](_0x2e8fa2),_0x89c6cd[_0x1bc0a1(0xe1)](new Fill({'color':_0x1bc0a1(0xd1)}));if(_0xab9fcb[_0x1bc0a1(0xbe)]!==![]){if(!_0xab9fcb[_0x1bc0a1(0xd2)]||_0xab9fcb[_0x1bc0a1(0xd2)]===_0x1bc0a1(0xe8))_0x89c6cd[_0x1bc0a1(0xe1)](new Fill({'color':getColor(_0xab9fcb[_0x1bc0a1(0xe8)],_0xab9fcb[_0x1bc0a1(0xd7)])}));else{if(_0xab9fcb[_0x1bc0a1(0xd2)]===_0x1bc0a1(0xc7))_0x89c6cd[_0x1bc0a1(0xcc)]((_0x1e035d,_0x2a3572)=>{preLoadImageRenderFunction(_0xab9fcb,_0x1e035d,_0x2a3572,_0x4dd709,_rendererFunction);});else _0xab9fcb[_0x1bc0a1(0xd2)]===_0x1bc0a1(0xbf)||_0xab9fcb['fillType']==='stripe'||_0xab9fcb[_0x1bc0a1(0xd2)]===_0x1bc0a1(0xe9)?_0x89c6cd['setRenderer']((_0x55770a,_0x4e05f5)=>{_rendererFunction(_0xab9fcb,_0x55770a,_0x4e05f5,_0x4dd709,null);}):_0x89c6cd[_0x1bc0a1(0xe1)](new Fill({'color':getColor(_0xab9fcb[_0x1bc0a1(0xe8)],_0xab9fcb[_0x1bc0a1(0xd7)])}));}}_0xab9fcb[_0x1bc0a1(0xb2)]!==![]&&_0x89c6cd[_0x1bc0a1(0xd5)](new Stroke({'color':getColor(_0xab9fcb[_0x1bc0a1(0xe5)],_0xab9fcb[_0x1bc0a1(0xd3)]),'width':_0xab9fcb[_0x1bc0a1(0xac)]}));let _0x2f6e08=[_0x89c6cd];_0xab9fcb['billboard']&&!_0xab9fcb[_0x1bc0a1(0xc1)][_0x1bc0a1(0xba)]&&(_0xab9fcb[_0x1bc0a1(0xc1)]['verticalOrigin']=_0x1bc0a1(0xdf));let _0x5eaa1f=getImageOlStyle(_0xab9fcb['billboard'],_0x2e8fa2,_0x58c26c,_0x4dd709);_0x5eaa1f&&_0x2f6e08[_0x1bc0a1(0xd8)](_0x5eaa1f);if(_0x2ebf6e){const _0x1aba5f=createTextStyle(_0xab9fcb,_0x2ebf6e,_0x58c26c,_0x4dd709);_0x1aba5f&&(_0x89c6cd['setText'](_0x1aba5f),_0x89c6cd[_0x1bc0a1(0xdc)](Number(_0x2e8fa2)+0x1));}return _0x2f6e08;}function _rendererFunction(_0x11c457,_0x24beb2,_0x57397a,_0x1a06d1,_0xf1ae8d){var _0x1f6e82=a76_0x43e3;try{var _0x1bbea4=_0x57397a[_0x1f6e82(0xda)];for(var _0x4cba40=0x0,_0x477a06=_0x24beb2[_0x1f6e82(0xc9)];_0x4cba40<_0x477a06;_0x4cba40++){_0x1bbea4[_0x1f6e82(0xcd)](),_0x1bbea4['beginPath']();var _0xd0cc9a=_0x24beb2[_0x4cba40];let _0xcfbe29=boundingExtent(_0xd0cc9a);_0x1bbea4[_0x1f6e82(0xc2)](_0xcfbe29[0x0],_0xcfbe29[0x1]);let _0x40e46c;switch(_0x11c457[_0x1f6e82(0xd2)]){case'image':_0x40e46c=_getImagePattern(_0x1bbea4,_0xcfbe29,_0x11c457,_0xf1ae8d);break;case _0x1f6e82(0xbf):_0x40e46c=_getGridPattern(_0x1bbea4,_0xcfbe29,_0x11c457);break;case _0x1f6e82(0xc0):_0x40e46c=_getStripePattern(_0x1bbea4,_0xcfbe29,_0x11c457);break;case _0x1f6e82(0xe9):_0x40e46c=_getCheckerBoardPattern(_0x1bbea4,_0xcfbe29,_0x11c457);break;default:_0x40e46c=_0x1f6e82(0xb0);break;}for(var _0x398150=0x0,_0x3add2c=_0xd0cc9a[_0x1f6e82(0xc9)];_0x398150<_0x3add2c;_0x398150++){var _0x2e685a=_0xd0cc9a[_0x398150];_0x398150===0x0?_0x1bbea4['moveTo'](_0x2e685a[0x0]-_0xcfbe29[0x0],_0x2e685a[0x1]-_0xcfbe29[0x1]):_0x1bbea4[_0x1f6e82(0xe0)](_0x2e685a[0x0]-_0xcfbe29[0x0],_0x2e685a[0x1]-_0xcfbe29[0x1]);}_0x1bbea4[_0x1f6e82(0xe2)](),_0x1bbea4['fillStyle']=_0x1f6e82(0xb0),_0x1bbea4[_0x1f6e82(0xbe)](),_0x1bbea4[_0x1f6e82(0xc6)]=_0x40e46c,_0x1bbea4[_0x1f6e82(0xbe)](),_0x11c457[_0x1f6e82(0xb2)]?(_0x1bbea4['strokeStyle']=getColor(_0x11c457[_0x1f6e82(0xe5)],_0x11c457['outlineOpacity']),_0x1bbea4['lineWidth']=_0x11c457['outlineWidth']):_0x1bbea4['strokeStyle']=_0x1f6e82(0xb4),_0x1bbea4[_0x1f6e82(0xbd)](),_0x1bbea4[_0x1f6e82(0xbc)]();}}catch(_0x2344e6){_0x1bbea4[_0x1f6e82(0xbc)](),console['warn'](_0x2344e6);}}function _getImagePattern(_0x4eaa52,_0x45fde3,_0x1dd330,_0x7e4469){var _0x542b1f=a76_0x43e3;if(!_0x7e4469||_0x7e4469[_0x542b1f(0xb8)]===0x0){let _0x4e087f=new Image();_0x4e087f[_0x542b1f(0xab)]=_0x1dd330[_0x542b1f(0xc7)];}var _0xa44b04=getSize(_0x45fde3);const _0x510d29=document[_0x542b1f(0xc5)]('canvas'),_0x12ae7c=_0x510d29[_0x542b1f(0xcb)]('2d');return _0x510d29['width']=Math['max'](_0xa44b04[0x0]/_0x1dd330[_0x542b1f(0xce)],0x1),_0x510d29[_0x542b1f(0xc3)]=Math['max'](_0xa44b04[0x1]/_0x1dd330[_0x542b1f(0xc8)],0x1),_0x12ae7c&&(_0x12ae7c[_0x542b1f(0xde)]=_0x1dd330['opacity'],_0x12ae7c[_0x542b1f(0xe7)](_0x7e4469,0x0,0x0,_0x510d29[_0x542b1f(0xb8)],_0x510d29[_0x542b1f(0xc3)])),_0x4eaa52['createPattern'](_0x510d29,_0x542b1f(0xc4));}function _getGridPattern(_0x4ca23b,_0x4438d9,_0x20aca9){var _0x2e7f3f=a76_0x43e3,_0x19415a=getSize(_0x4438d9);const _0x44e1dd=document[_0x2e7f3f(0xc5)](_0x2e7f3f(0xae)),_0x5417e6=_0x44e1dd['getContext']('2d');return _0x44e1dd[_0x2e7f3f(0xb8)]=Math[_0x2e7f3f(0xe4)](_0x19415a[0x0]/_0x20aca9[_0x2e7f3f(0xd9)],0x1),_0x44e1dd[_0x2e7f3f(0xc3)]=Math[_0x2e7f3f(0xe4)](_0x19415a[0x1]/_0x20aca9['grid_lineCount'],0x1),_0x5417e6&&(_0x5417e6[_0x2e7f3f(0xcf)]=getColor(_0x20aca9['color'],_0x20aca9['opacity']),_0x5417e6[_0x2e7f3f(0xd4)]=_0x20aca9['grid_lineThickness']*0x4,_0x5417e6[_0x2e7f3f(0xb9)](),_0x5417e6[_0x2e7f3f(0xd0)](0x0,_0x44e1dd[_0x2e7f3f(0xc3)]),_0x5417e6['lineTo'](_0x44e1dd['width'],_0x44e1dd[_0x2e7f3f(0xc3)]),_0x5417e6[_0x2e7f3f(0xd0)](_0x44e1dd['width'],0x0),_0x5417e6[_0x2e7f3f(0xe0)](_0x44e1dd[_0x2e7f3f(0xb8)],_0x44e1dd[_0x2e7f3f(0xc3)]),_0x5417e6[_0x2e7f3f(0xbd)]()),_0x4ca23b[_0x2e7f3f(0xd6)](_0x44e1dd,'repeat');}function _getStripePattern(_0x54ba62,_0x46791f,_0x23c9ef){var _0x2749e1=a76_0x43e3,_0x29c1c1=getSize(_0x46791f);const _0x410ea5=document[_0x2749e1(0xc5)]('canvas'),_0x35b47a=_0x410ea5[_0x2749e1(0xcb)]('2d');let _0x5bcc9e=Math[_0x2749e1(0xe4)](_0x29c1c1[0x1]/_0x23c9ef[_0x2749e1(0xe6)],0x1);return _0x410ea5[_0x2749e1(0xb8)]=_0x29c1c1[0x0],_0x410ea5[_0x2749e1(0xc3)]=_0x5bcc9e*0x2,_0x35b47a&&(_0x35b47a[_0x2749e1(0xb9)](),_0x35b47a['moveTo'](0x0,0x0),_0x35b47a[_0x2749e1(0xe0)](_0x410ea5[_0x2749e1(0xb8)],0x0),_0x35b47a[_0x2749e1(0xe0)](_0x410ea5[_0x2749e1(0xb8)],_0x5bcc9e),_0x35b47a[_0x2749e1(0xe0)](0x0,_0x5bcc9e),_0x35b47a[_0x2749e1(0xe2)](),_0x35b47a[_0x2749e1(0xc6)]=getColor(_0x23c9ef['stripe_oddcolor'],_0x23c9ef[_0x2749e1(0xd7)]),_0x35b47a[_0x2749e1(0xbe)](),_0x35b47a[_0x2749e1(0xb9)](),_0x35b47a[_0x2749e1(0xd0)](0x0,_0x5bcc9e),_0x35b47a[_0x2749e1(0xe0)](_0x410ea5[_0x2749e1(0xb8)],_0x5bcc9e),_0x35b47a[_0x2749e1(0xe0)](_0x410ea5[_0x2749e1(0xb8)],_0x5bcc9e*0x2),_0x35b47a[_0x2749e1(0xe0)](0x0,_0x5bcc9e*0x2),_0x35b47a[_0x2749e1(0xe2)](),_0x35b47a[_0x2749e1(0xc6)]=getColor(_0x23c9ef[_0x2749e1(0xe8)],_0x23c9ef['opacity']),_0x35b47a[_0x2749e1(0xbe)]()),_0x54ba62[_0x2749e1(0xd6)](_0x410ea5,'repeat');}function _getCheckerBoardPattern(_0x2dce43,_0x1c12f3,_0x5b7e3a){var _0x35d70f=a76_0x43e3,_0x125ef2=getSize(_0x1c12f3);const _0x5ed694=document[_0x35d70f(0xc5)](_0x35d70f(0xae)),_0x524e67=_0x5ed694['getContext']('2d');let _0x93809f=Math['max'](_0x125ef2[0x0]/_0x5b7e3a[_0x35d70f(0xea)],0x1),_0x36b9d5=Math[_0x35d70f(0xe4)](_0x125ef2[0x1]/_0x5b7e3a[_0x35d70f(0xea)],0x1);return _0x5ed694['width']=_0x93809f*0x2,_0x5ed694['height']=_0x36b9d5*0x2,_0x524e67&&(_0x524e67[_0x35d70f(0xb9)](),_0x524e67[_0x35d70f(0xd0)](0x0,0x0),_0x524e67[_0x35d70f(0xe0)](_0x93809f,0x0),_0x524e67[_0x35d70f(0xe0)](_0x93809f,_0x36b9d5),_0x524e67[_0x35d70f(0xe0)](0x0,_0x36b9d5),_0x524e67[_0x35d70f(0xe2)](),_0x524e67['fillStyle']=getColor(_0x5b7e3a[_0x35d70f(0xe3)],_0x5b7e3a['opacity']),_0x524e67[_0x35d70f(0xbe)](),_0x524e67['beginPath'](),_0x524e67[_0x35d70f(0xd0)](_0x93809f,0x0),_0x524e67[_0x35d70f(0xe0)](_0x5ed694[_0x35d70f(0xb8)],0x0),_0x524e67[_0x35d70f(0xe0)](_0x5ed694[_0x35d70f(0xb8)],_0x36b9d5),_0x524e67['lineTo'](_0x93809f,_0x36b9d5),_0x524e67[_0x35d70f(0xe2)](),_0x524e67[_0x35d70f(0xc6)]=getColor(_0x5b7e3a[_0x35d70f(0xe8)],_0x5b7e3a[_0x35d70f(0xd7)]),_0x524e67[_0x35d70f(0xbe)](),_0x524e67['beginPath'](),_0x524e67[_0x35d70f(0xd0)](0x0,_0x36b9d5),_0x524e67[_0x35d70f(0xe0)](_0x93809f,_0x36b9d5),_0x524e67['lineTo'](_0x93809f,_0x5ed694[_0x35d70f(0xc3)]),_0x524e67[_0x35d70f(0xe0)](0x0,_0x5ed694[_0x35d70f(0xc3)]),_0x524e67[_0x35d70f(0xe2)](),_0x524e67[_0x35d70f(0xc6)]=getColor(_0x5b7e3a[_0x35d70f(0xe8)],_0x5b7e3a[_0x35d70f(0xd7)]),_0x524e67[_0x35d70f(0xbe)](),_0x524e67[_0x35d70f(0xb9)](),_0x524e67[_0x35d70f(0xd0)](_0x93809f,_0x36b9d5),_0x524e67[_0x35d70f(0xe0)](_0x5ed694['width'],_0x36b9d5),_0x524e67['lineTo'](_0x5ed694[_0x35d70f(0xb8)],_0x5ed694[_0x35d70f(0xc3)]),_0x524e67[_0x35d70f(0xe0)](_0x93809f,_0x5ed694[_0x35d70f(0xc3)]),_0x524e67[_0x35d70f(0xe2)](),_0x524e67[_0x35d70f(0xc6)]=getColor(_0x5b7e3a[_0x35d70f(0xe3)],_0x5b7e3a[_0x35d70f(0xd7)]),_0x524e67['fill']()),_0x2dce43[_0x35d70f(0xd6)](_0x5ed694,_0x35d70f(0xc4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x374263,_0x3c3ca2){const _0xf7b423=a77_0x3ddc,_0x1b04e1=_0x374263();while(!![]){try{const _0x92ff62=parseInt(_0xf7b423(0x1d1))/0x1+parseInt(_0xf7b423(0x1d8))/0x2*(-parseInt(_0xf7b423(0x1de))/0x3)+parseInt(_0xf7b423(0x1cf))/0x4+parseInt(_0xf7b423(0x1f7))/0x5*(parseInt(_0xf7b423(0x1ef))/0x6)+-parseInt(_0xf7b423(0x1d6))/0x7*(parseInt(_0xf7b423(0x1d7))/0x8)+-parseInt(_0xf7b423(0x1d0))/0x9*(parseInt(_0xf7b423(0x1c5))/0xa)+-parseInt(_0xf7b423(0x1f8))/0xb;if(_0x92ff62===_0x3c3ca2)break;else _0x1b04e1['push'](_0x1b04e1['shift']());}catch(_0x3dade5){_0x1b04e1['push'](_0x1b04e1['shift']());}}}(a77_0xf429,0x8422f));import{createTextStyle,getColor}from'./common';import{Stroke,Style}from'ol/style';function a77_0x3ddc(_0x4c4a36,_0x1b0d2d){const _0xf429ae=a77_0xf429();return a77_0x3ddc=function(_0x3ddcf5,_0x16b8d5){_0x3ddcf5=_0x3ddcf5-0x1c4;let _0xde11a0=_0xf429ae[_0x3ddcf5];return _0xde11a0;},a77_0x3ddc(_0x4c4a36,_0x1b0d2d);}import{getImageOlStyle}from'./PointStyleFormat';import{LineString,Point,MultiLineString,MultiPoint}from'ol/geom';export function getPolylineStyle(_0x3c7e63,_0x329ea8,_0x749c77,_0x709d2e){const _0x2a3f51=a77_0x3ddc;var _0x1d2145,_0x1d2595,_0x389750;let _0x3b2c01=(_0x1d2145=_0x3c7e63['zIndex'])!==null&&_0x1d2145!==void 0x0?_0x1d2145:0x0;const _0x1624e5=_0x496e3e=>{var _0x431589=_0x496e3e['getGeometry']();if(_0x431589)return _getRealPolyline(_0x431589,_0x3c7e63);return _0x431589;},_0x1933de=_0x5baf6d=>{const _0x4ffc58=a77_0x3ddc;var _0x57e3fb=_0x5baf6d['getGeometry']();let _0x574b46=_0x57e3fb;_0x57e3fb&&(_0x574b46=_getRealPolyline(_0x57e3fb,_0x3c7e63));if(_0x574b46&&_0x574b46[_0x4ffc58(0x1f0)]()===_0x4ffc58(0x1f3))return new Point(_0x574b46[_0x4ffc58(0x1dd)]());else{let _0x2de995=_0x574b46[_0x4ffc58(0x1ea)](),_0xbc8785=0x2,_0x2ba2e7=[];for(let _0x1b0f42=0x0,_0x2fba22=_0x2de995[_0x4ffc58(0x1dc)];_0x1b0f42<_0x2fba22;_0x1b0f42+=_0xbc8785){let _0x2b262f=[_0x2de995[_0x1b0f42],_0x2de995[_0x1b0f42+0x1]];_0x2ba2e7[_0x4ffc58(0x1ce)](_0x2b262f);}return new MultiPoint(_0x2ba2e7);}};let _0x31bcce=new Style({'geometry':_0x1624e5,'stroke':new Stroke({'color':getColor(_0x3c7e63[_0x2a3f51(0x1db)],_0x3c7e63[_0x2a3f51(0x1f6)]),'width':_0x3c7e63[_0x2a3f51(0x1ec)]}),'zIndex':_0x3b2c01}),_0x309821=[_0x31bcce];if(_0x3c7e63[_0x2a3f51(0x1f9)]==='dash'){let _0x8c91e3=_0x3c7e63[_0x2a3f51(0x1ec)]/0x2,_0x5c841e=new Style({'geometry':_0x1624e5,'zIndex':_0x3b2c01,'stroke':new Stroke({'color':getColor(_0x3c7e63['color'],_0x3c7e63[_0x2a3f51(0x1d9)]),'width':_0x3c7e63[_0x2a3f51(0x1f4)],'lineCap':'butt','lineDash':[_0x8c91e3,_0x8c91e3]})}),_0x22c40d=new Style({'geometry':_0x1624e5,'zIndex':_0x3b2c01+0.5,'stroke':new Stroke({'color':getColor(_0x3c7e63[_0x2a3f51(0x1db)],Number((_0x389750=(_0x1d2595=_0x3c7e63[_0x2a3f51(0x1f6)])!==null&&_0x1d2595!==void 0x0?_0x1d2595:_0x3c7e63[_0x2a3f51(0x1d9)])!==null&&_0x389750!==void 0x0?_0x389750:0x1)),'width':_0x3c7e63[_0x2a3f51(0x1f4)],'lineCap':_0x2a3f51(0x1e3),'lineDash':[_0x8c91e3,_0x8c91e3],'lineDashOffset':_0x8c91e3})});_0x309821=[_0x5c841e,_0x22c40d];}_0x3c7e63[_0x2a3f51(0x1f9)]===_0x2a3f51(0x1c6)&&_0x31bcce['setRenderer']((_0x263bc6,_0x36af85)=>{const _0x5de5b5=_0x2a3f51;let _0x100026=_0x36af85[_0x5de5b5(0x1c8)],_0xe4e190=parseInt((_0x3c7e63[_0x5de5b5(0x1f4)]/0x4)[_0x5de5b5(0x1ee)]()),_0x461ce8=0xa,_0x44f460=Math[_0x5de5b5(0x1c7)](Math[_0x5de5b5(0x1cc)](_0x461ce8,0x2)+Math[_0x5de5b5(0x1cc)](_0x3c7e63[_0x5de5b5(0x1f4)]/0x2,0x2)),_0x587d72=0x2d,_0x19f45b=_0x263bc6[_0x263bc6[_0x5de5b5(0x1dc)]-0x2][0x0],_0x191793=_0x263bc6[_0x263bc6[_0x5de5b5(0x1dc)]-0x2][0x1],_0xaab9b9=_0x263bc6[_0x263bc6[_0x5de5b5(0x1dc)]-0x1][0x0],_0x5937a0=_0x263bc6[_0x263bc6[_0x5de5b5(0x1dc)]-0x1][0x1],_0x1d289b=Math['atan2'](_0x191793-_0x5937a0,_0x19f45b-_0xaab9b9)*0xb4/Math['PI'],_0x3d02b8=(_0x1d289b+_0x587d72)*Math['PI']/0xb4,_0x1d036a=(_0x1d289b-_0x587d72)*Math['PI']/0xb4,_0x2c1b17=_0x44f460*Math[_0x5de5b5(0x1c9)](_0x3d02b8),_0x376ed9=_0x44f460*Math[_0x5de5b5(0x1d5)](_0x3d02b8),_0x4988b2=_0x44f460*Math[_0x5de5b5(0x1c9)](_0x1d036a),_0x1625f2=_0x44f460*Math[_0x5de5b5(0x1d5)](_0x1d036a);_0x100026[_0x5de5b5(0x1ed)](),_0x100026[_0x5de5b5(0x1e9)]();let _0x14f891,_0x14b4f1;for(let _0x458514=0x0;_0x458514<_0x263bc6[_0x5de5b5(0x1dc)];_0x458514++){_0x458514===0x0?_0x100026['moveTo'](_0x263bc6[_0x458514][0x0],_0x263bc6[_0x458514][0x1]):_0x100026[_0x5de5b5(0x1e7)](_0x263bc6[_0x458514][0x0],_0x263bc6[_0x458514][0x1]);}_0x100026[_0x5de5b5(0x1cb)]=getColor(_0x3c7e63['color'],_0x3c7e63['opacity']),_0x100026[_0x5de5b5(0x1f1)]=_0xe4e190,_0x100026['lineCap']=_0x5de5b5(0x1e3),_0x100026[_0x5de5b5(0x1e2)](),_0x14f891=_0xaab9b9+_0x2c1b17,_0x14b4f1=_0x5937a0+_0x376ed9,_0x100026['moveTo'](_0x14f891,_0x14b4f1),_0x100026['lineTo'](_0xaab9b9,_0x5937a0),_0x14f891=_0xaab9b9+_0x4988b2,_0x14b4f1=_0x5937a0+_0x1625f2,_0x100026['lineTo'](_0x14f891,_0x14b4f1),_0x100026[_0x5de5b5(0x1d3)]='butt',_0x100026[_0x5de5b5(0x1e2)](),_0x100026[_0x5de5b5(0x1e8)]();});_0x3c7e63[_0x2a3f51(0x1f9)]===_0x2a3f51(0x1e6)&&_0x31bcce[_0x2a3f51(0x1e5)]((_0x2fb2c,_0x2d7119)=>{const _0x4c4702=_0x2a3f51;let _0x2f65e2=_0x2d7119[_0x4c4702(0x1c8)];_0x2f65e2[_0x4c4702(0x1ed)]();for(let _0x42e5c1=0x0;_0x42e5c1<0x4;_0x42e5c1++){let _0x100064=_0x3c7e63[_0x4c4702(0x1f4)]/0xa*(_0x3c7e63['glowPower']===0x0?0x1:_0x3c7e63[_0x4c4702(0x1d2)]);_0x2f65e2[_0x4c4702(0x1cd)]=getColor(_0x3c7e63[_0x4c4702(0x1f2)],_0x3c7e63[_0x4c4702(0x1d9)]),_0x2f65e2['shadowBlur']=_0x3c7e63[_0x4c4702(0x1f4)]/0x5*0x2,_0x2f65e2[_0x4c4702(0x1e9)]();for(let _0x747c7e=0x0;_0x747c7e<_0x2fb2c[_0x4c4702(0x1dc)];_0x747c7e++){_0x747c7e===0x0?_0x2f65e2[_0x4c4702(0x1eb)](_0x2fb2c[_0x747c7e][0x0],_0x2fb2c[_0x747c7e][0x1]):_0x2f65e2['lineTo'](_0x2fb2c[_0x747c7e][0x0],_0x2fb2c[_0x747c7e][0x1]);}_0x2f65e2['lineCap']=_0x4c4702(0x1e3),_0x2f65e2['lineWidth']=_0x100064,_0x2f65e2['strokeStyle']=getColor(_0x4c4702(0x1ca),_0x3c7e63[_0x4c4702(0x1d9)]),_0x2f65e2[_0x4c4702(0x1e2)]();}_0x2f65e2['restore']();});_0x3c7e63[_0x2a3f51(0x1f9)]==='outline'&&_0x31bcce[_0x2a3f51(0x1e5)]((_0x49f88e,_0x590f29)=>{const _0x4d8144=_0x2a3f51;let _0x3114e7=_0x590f29['context'];_0x3114e7[_0x4d8144(0x1ed)](),_0x3114e7[_0x4d8144(0x1e9)]();for(let _0x2ff765=0x0;_0x2ff765<_0x49f88e[_0x4d8144(0x1dc)];_0x2ff765++){_0x2ff765===0x0?_0x3114e7['moveTo'](_0x49f88e[_0x2ff765][0x0],_0x49f88e[_0x2ff765][0x1]):_0x3114e7[_0x4d8144(0x1e7)](_0x49f88e[_0x2ff765][0x0],_0x49f88e[_0x2ff765][0x1]);}_0x3114e7[_0x4d8144(0x1d3)]=_0x4d8144(0x1e3),_0x3114e7[_0x4d8144(0x1f1)]=_0x3c7e63['width'],_0x3114e7[_0x4d8144(0x1cb)]=getColor(_0x3c7e63[_0x4d8144(0x1db)],_0x3c7e63[_0x4d8144(0x1d9)]),_0x3114e7[_0x4d8144(0x1e2)](),_0x3114e7[_0x4d8144(0x1e9)]();for(let _0x374c75=0x0;_0x374c75<_0x49f88e[_0x4d8144(0x1dc)];_0x374c75++){_0x374c75===0x0?_0x3114e7['moveTo'](_0x49f88e[_0x374c75][0x0],_0x49f88e[_0x374c75][0x1]):_0x3114e7[_0x4d8144(0x1e7)](_0x49f88e[_0x374c75][0x0],_0x49f88e[_0x374c75][0x1]);}_0x3114e7[_0x4d8144(0x1d3)]=_0x4d8144(0x1e3),_0x3c7e63['outlineWidth']>=_0x3c7e63[_0x4d8144(0x1f4)]&&(_0x3c7e63[_0x4d8144(0x1ec)]=_0x3c7e63[_0x4d8144(0x1f4)]-0x1),_0x3114e7[_0x4d8144(0x1f1)]=_0x3c7e63['width']-_0x3c7e63[_0x4d8144(0x1ec)],_0x3114e7[_0x4d8144(0x1cb)]=getColor(_0x3c7e63[_0x4d8144(0x1f2)],_0x3c7e63[_0x4d8144(0x1d9)]),_0x3114e7['stroke'](),_0x3114e7[_0x4d8144(0x1e8)]();});let _0x48a32f=getImageOlStyle(_0x3c7e63[_0x2a3f51(0x1f5)],_0x3b2c01,_0x749c77,_0x709d2e);_0x48a32f&&(_0x48a32f[_0x2a3f51(0x1df)](_0x1933de),_0x309821[_0x2a3f51(0x1ce)](_0x48a32f));if(_0x3c7e63[_0x2a3f51(0x1e0)]&&_0x3c7e63[_0x2a3f51(0x1e0)]['show']!==![]){let _0x3e85a7=new Style({'geometry':_0x1933de,'text':createTextStyle(_0x3c7e63[_0x2a3f51(0x1e0)],_0x329ea8,_0x749c77,_0x709d2e),'zIndex':Number(_0x3b2c01)+0x1});_0x309821[_0x2a3f51(0x1ce)](_0x3e85a7);}return _0x309821;}function a77_0xf429(){const _0x4874a5=['256644BCkRxe','288982WWtpLC','glowPower','lineCap','concat','sin','864829ceuhQb','24IixEsR','150622LvnZZd','opacity','getCoordinates','outlineColor','length','getFlatMidpoint','3eLGllh','setGeometry','label','MultiLineString','stroke','butt','closed','setRenderer','glow','lineTo','restore','beginPath','getFlatMidpoints','moveTo','outlineWidth','save','toString','30RAwOTT','getType','lineWidth','color','LineString','width','billboard','outlineOpacity','335945xbqTOM','3725425EfYNne','lineType','getFirstCoordinate','10WDhXwE','arrow','sqrt','context','cos','white','strokeStyle','pow','shadowColor','push','2917788rGpzwt'];a77_0xf429=function(){return _0x4874a5;};return a77_0xf429();}function _getRealPolyline(_0x2dc059,_0x5b91c2){const _0x8e53e4=a77_0x3ddc;if(!(_0x5b91c2===null||_0x5b91c2===void 0x0?void 0x0:_0x5b91c2[_0x8e53e4(0x1e4)]))return _0x2dc059;else{if(_0x2dc059['getType']()===_0x8e53e4(0x1e1)){let _0x480b5d=_0x2dc059[_0x8e53e4(0x1da)]();for(let _0x15c2ef in _0x480b5d){let _0x32bf3d=_0x480b5d[_0x15c2ef];_0x480b5d[_0x15c2ef]=_0x32bf3d['concat']([_0x32bf3d[0x0]]);}return new MultiLineString(_0x480b5d);}else return new LineString(_0x2dc059[_0x8e53e4(0x1da)]()[_0x8e53e4(0x1d4)]([_0x2dc059[_0x8e53e4(0x1c4)]()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a78_0xd940(){const _0x466512=['rgba(0,\x20255,0,\x201)','circle','opacity','20344wjrrHr','807304vRNlfC','radius','136424uXahzC','icon','rgba(121,\x20243,\x20238,\x200.3)','setStroke','rgba(121,\x20243,\x20238,\x201)','pointType','MultiPolygon','MultiLineString','outlineColor','text','rgba(121,\x20243,\x20238,\x200)','Point','setImage','2173959XTagKw','5xxEXSa','imgurl','1288440FGAexN','rotation','563091wffVUA','203TMukmg','rgba(0,\x20255,0,\x200)','setZIndex','MultiPoint','setText','color','outlineOpacity','352010uUcnWD'];a78_0xd940=function(){return _0x466512;};return a78_0xd940();}(function(_0x48b253,_0x3d1ab7){const _0x1edc1f=a78_0x1eea,_0x4fd59e=_0x48b253();while(!![]){try{const _0x5be3ab=-parseInt(_0x1edc1f(0x1ec))/0x1+-parseInt(_0x1edc1f(0x1e5))/0x2+parseInt(_0x1edc1f(0x1dd))/0x3+parseInt(_0x1edc1f(0x1ea))/0x4*(parseInt(_0x1edc1f(0x1d9))/0x5)+parseInt(_0x1edc1f(0x1db))/0x6+-parseInt(_0x1edc1f(0x1de))/0x7*(-parseInt(_0x1edc1f(0x1e9))/0x8)+-parseInt(_0x1edc1f(0x1f9))/0x9;if(_0x5be3ab===_0x3d1ab7)break;else _0x4fd59e['push'](_0x4fd59e['shift']());}catch(_0x342965){_0x4fd59e['push'](_0x4fd59e['shift']());}}}(a78_0xd940,0x1e47e));import a78_0x4a5190 from'ol/style/Circle';import a78_0x16df88 from'ol/style/Fill';import a78_0x4d1a26 from'ol/style/Stroke';import a78_0xfae3a2 from'ol/style/Style';import{createTextStyle,getColor}from'./common';import{Icon}from'ol/style';export function getSelectPointStyle(){const _0x1be82f=a78_0x1eea;return new a78_0xfae3a2({'image':new a78_0x4a5190({'radius':0x5,'fill':new a78_0x16df88({'color':_0x1be82f(0x1f0)}),'stroke':new a78_0x4d1a26({'color':_0x1be82f(0x1f0),'width':0x1})})});}export function getSelectCancePointStyle(){const _0x3b4eb8=a78_0x1eea;return new a78_0xfae3a2({'image':new a78_0x4a5190({'radius':0x5,'fill':new a78_0x16df88({'color':_0x3b4eb8(0x1f6)}),'stroke':new a78_0x4d1a26({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x1})})});}export function getSelectLineStyle(){const _0x223854=a78_0x1eea;return new a78_0xfae3a2({'stroke':new a78_0x4d1a26({'color':_0x223854(0x1f0),'width':0x2})});}function a78_0x1eea(_0x1154dc,_0x1e0867){const _0xd94086=a78_0xd940();return a78_0x1eea=function(_0x1eea89,_0x144d4c){_0x1eea89=_0x1eea89-0x1d9;let _0x5f1fa6=_0xd94086[_0x1eea89];return _0x5f1fa6;},a78_0x1eea(_0x1154dc,_0x1e0867);}export function getSelectCancelLineStyle(){const _0x39ab70=a78_0x1eea;return new a78_0xfae3a2({'stroke':new a78_0x4d1a26({'color':_0x39ab70(0x1e6),'width':0x2})});}export function getSelectPolygonStyle(){const _0x55e8c0=a78_0x1eea;return new a78_0xfae3a2({'stroke':new a78_0x4d1a26({'color':_0x55e8c0(0x1f0),'width':0x2}),'fill':new a78_0x16df88({'color':_0x55e8c0(0x1ee)})});}export function getSelectCancelPolygonStyle(){const _0x274396=a78_0x1eea;return new a78_0xfae3a2({'stroke':new a78_0x4d1a26({'color':_0x274396(0x1e6),'width':0x2}),'fill':new a78_0x16df88({'color':_0x274396(0x1df)})});}export function getStyle(_0x2906eb){const _0x3308cd=a78_0x1eea;if(_0x2906eb){const _0x4b5c3b=new a78_0xfae3a2();if(_0x2906eb[_0x3308cd(0x1f5)]){const _0x2a29d4=createTextStyle(_0x2906eb,_0x2906eb['text']);_0x2a29d4&&_0x4b5c3b[_0x3308cd(0x1e2)](_0x2a29d4),_0x4b5c3b[_0x3308cd(0x1e0)](0x1);}return _0x2906eb['outlineColor']&&_0x4b5c3b[_0x3308cd(0x1ef)](new a78_0x4d1a26({'color':getColor(_0x2906eb[_0x3308cd(0x1f4)],_0x2906eb[_0x3308cd(0x1e4)]),'width':_0x2906eb['outlineWidth']||0x1})),_0x2906eb['color']&&_0x4b5c3b['setFill'](new a78_0x16df88({'color':getColor(_0x2906eb[_0x3308cd(0x1e3)],_0x2906eb[_0x3308cd(0x1e8)])})),_0x2906eb[_0x3308cd(0x1f1)]==_0x3308cd(0x1e7)&&_0x4b5c3b[_0x3308cd(0x1f8)](new a78_0x4a5190({'radius':_0x2906eb[_0x3308cd(0x1eb)]||0x5,'fill':new a78_0x16df88({'color':getColor(_0x2906eb[_0x3308cd(0x1e3)],_0x2906eb[_0x3308cd(0x1e8)])})})),(_0x2906eb[_0x3308cd(0x1f1)]==_0x3308cd(0x1ed)||_0x2906eb['imgurl'])&&_0x4b5c3b[_0x3308cd(0x1f8)](new Icon({'src':_0x2906eb[_0x3308cd(0x1da)],'anchor':_0x2906eb['anchor']||[0.5,0.5],'scale':_0x2906eb['scale']||0x1,'rotation':_0x2906eb[_0x3308cd(0x1dc)]||0x0})),_0x4b5c3b;}return new a78_0xfae3a2({'stroke':new a78_0x4d1a26({'color':_0x3308cd(0x1f0),'width':0x2}),'fill':new a78_0x16df88({'color':'rgba(121,\x20243,\x20238,\x200.3)'})});}export function getSelectStyle(_0x364de1){const _0x5e1774=a78_0x1eea;let _0x327ef9=getSelectPolygonStyle();switch(_0x364de1){case _0x5e1774(0x1f2):case'Polygon':_0x327ef9=getSelectPolygonStyle();break;case _0x5e1774(0x1f3):case'LineString':_0x327ef9=getSelectLineStyle();break;case _0x5e1774(0x1e1):case _0x5e1774(0x1f7):_0x327ef9=getSelectPointStyle();break;default:break;}return _0x327ef9;}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29b20d,_0x40e407){const _0x105f2e=a74_0x1d63,_0x10b8f2=_0x29b20d();while(!![]){try{const _0x245879=parseInt(_0x105f2e(0xe8))/0x1*(-parseInt(_0x105f2e(0xed))/0x2)+-parseInt(_0x105f2e(0xe2))/0x3+parseInt(_0x105f2e(0xfb))/0x4+parseInt(_0x105f2e(0xf8))/0x5*(-parseInt(_0x105f2e(0xef))/0x6)+parseInt(_0x105f2e(0xfd))/0x7*(-parseInt(_0x105f2e(0xd4))/0x8)+parseInt(_0x105f2e(0xec))/0x9*(parseInt(_0x105f2e(0xf7))/0xa)+parseInt(_0x105f2e(0xe1))/0xb;if(_0x245879===_0x40e407)break;else _0x10b8f2['push'](_0x10b8f2['shift']());}catch(_0x44ddad){_0x10b8f2['push'](_0x10b8f2['shift']());}}}(a74_0x9354,0xe847b));import a74_0x5b6f31 from'color';import{Fill,Icon,Stroke,Text}from'ol/style';import a74_0x5042a6 from'../utils/plug/canvas/PinIcon';function a74_0x1d63(_0x2ce1c6,_0x3aa371){const _0x93540c=a74_0x9354();return a74_0x1d63=function(_0x1d639a,_0x348f94){_0x1d639a=_0x1d639a-0xd4;let _0x4294f2=_0x93540c[_0x1d639a];return _0x4294f2;},a74_0x1d63(_0x2ce1c6,_0x3aa371);}import a74_0x289fef from'ol/ImageState';export function isShowStyle(_0x46530a,_0x40415a,_0x4601d9){const _0x5c47b1=a74_0x1d63;let _0x552e1b=!![];if(_0x40415a==undefined||_0x4601d9==undefined)return _0x552e1b;if(_0x46530a&&typeof _0x46530a['distanceDisplayFar']!=undefined&&typeof _0x46530a[_0x5c47b1(0xf4)]!=undefined){if(_0x46530a[_0x5c47b1(0xf3)]&&_0x4601d9){_0x552e1b=![];let _0x241324=getLevel(_0x46530a[_0x5c47b1(0xf3)]),_0x473bc5=_0x4601d9[_0x5c47b1(0xee)]()['getResolutionForZoom'](_0x241324);_0x40415a<_0x473bc5&&(_0x552e1b=!![]);}if(_0x552e1b&&_0x46530a[_0x5c47b1(0xf4)]&&_0x4601d9){_0x552e1b=![];let _0x5ddac5=getLevel(_0x46530a['distanceDisplayNear']),_0x5acf1f=_0x4601d9['getView']()[_0x5c47b1(0xf0)](_0x5ddac5);_0x40415a>_0x5acf1f&&(_0x552e1b=!![]);}}return _0x552e1b;}export function getLevel(_0xca9ce){const _0x4b5371=a74_0x1d63,_0x1f433c=3252.745,_0x2e6d6d=0.0009198301,_0x5d7eaf=52977.61,_0x1d6474=-3228.107;return _0x1d6474+(_0x1f433c-_0x1d6474)/(0x1+Math[_0x4b5371(0xe6)](_0xca9ce/_0x5d7eaf,_0x2e6d6d));}function a74_0x9354(){const _0x29e8e8=['163736BvnjPn','haloOpacity','borderLineColor','listenImageChange','offsetY','color','getImage','offsetX','font','borderLineOpacity','center','bold','textBaseline','42148216ZvkQEe','4394424jYrGqD','hexa','LOADED','IDLE','pow','getImageState','1043673gYZDds','size','haloWidth','middle','671202vgXkQg','2anaWVr','getView','6ESREmY','getResolutionForZoom','normal','ERROR','distanceDisplayFar','distanceDisplayNear','haloColor','\x20normal\x20','20LOYWTn','1160035BGBOYv','italic','#000000','4329536YvUlDF','px\x20','469rYaGwL','backgroundColor','opacity','textAlign'];a74_0x9354=function(){return _0x29e8e8;};return a74_0x9354();}export function toRadians(_0x140243){if(_0x140243)return-(_0x140243*Math['PI'])/0xb4;return 0x0;}export function createTextStyle(_0x3be3a8,_0x1f4a42,_0x2c5f2b,_0x233fff){const _0xe5d9fd=a74_0x1d63;var _0x3a4fc9,_0x3406dc,_0x4467fe,_0x51d48d,_0x4b6bda,_0x11ab7b,_0x30254b,_0x47f1d8;if(_0x3be3a8){let _0x58df43=isShowStyle(_0x3be3a8,_0x2c5f2b,_0x233fff);if(_0x58df43===![])return undefined;else{const _0x2e476c=_0x3be3a8[_0xe5d9fd(0xdc)],_0x58904a=(_0x2e476c===null||_0x2e476c===void 0x0?void 0x0:_0x2e476c[_0xe5d9fd(0xf9)])?_0xe5d9fd(0xf9):_0xe5d9fd(0xf1),_0x1845f4=(_0x2e476c===null||_0x2e476c===void 0x0?void 0x0:_0x2e476c['weight'])?_0xe5d9fd(0xdf):'normal',_0x304ff0=(_0x2e476c===null||_0x2e476c===void 0x0?void 0x0:_0x2e476c[_0xe5d9fd(0xe9)])||'25',_0x56fc89=(_0x2e476c===null||_0x2e476c===void 0x0?void 0x0:_0x2e476c['family'])||'楷体';let _0x3a2dec=_0x58904a+_0xe5d9fd(0xf6)+_0x1845f4+'\x20'+_0x304ff0+_0xe5d9fd(0xfc)+_0x56fc89,_0x2e7d1f=(_0x2e476c===null||_0x2e476c===void 0x0?void 0x0:_0x2e476c[_0xe5d9fd(0xdb)])||0x0,_0x1ea418=(_0x2e476c===null||_0x2e476c===void 0x0?void 0x0:_0x2e476c[_0xe5d9fd(0xd8)])||0x0,_0x1ec34b=(_0x2e476c===null||_0x2e476c===void 0x0?void 0x0:_0x2e476c[_0xe5d9fd(0xe0)])||_0xe5d9fd(0xeb),_0xfb4fa9=(_0x2e476c===null||_0x2e476c===void 0x0?void 0x0:_0x2e476c[_0xe5d9fd(0x100)])||_0xe5d9fd(0xde);const _0x542e66=_0x3be3a8[_0xe5d9fd(0xff)]||0x1;let _0x1642c7=undefined;return(_0x2e476c===null||_0x2e476c===void 0x0?void 0x0:_0x2e476c['haloColor'])&&(_0x1642c7=_getStroke(_0x2e476c[_0xe5d9fd(0xf5)],_0x2e476c[_0xe5d9fd(0xd5)],_0x2e476c[_0xe5d9fd(0xea)])),new Text({'overflow':!![],'text':_0x1f4a42,'font':_0x3a2dec,'offsetX':_0x2e7d1f,'offsetY':_0x1ea418,'textAlign':_0xfb4fa9,'textBaseline':_0x1ec34b,'fill':new Fill({'color':getColor(((_0x3a4fc9=_0x3be3a8[_0xe5d9fd(0xdc)])===null||_0x3a4fc9===void 0x0?void 0x0:_0x3a4fc9[_0xe5d9fd(0xd9)])||_0xe5d9fd(0xfa),_0x542e66)}),'stroke':_0x1642c7,'backgroundFill':((_0x3406dc=_0x3be3a8[_0xe5d9fd(0xdc)])===null||_0x3406dc===void 0x0?void 0x0:_0x3406dc[_0xe5d9fd(0xfe)])?new Fill({'color':getColor(((_0x4467fe=_0x3be3a8[_0xe5d9fd(0xdc)])===null||_0x4467fe===void 0x0?void 0x0:_0x4467fe[_0xe5d9fd(0xfe)])||'#2A2A2A',((_0x51d48d=_0x3be3a8[_0xe5d9fd(0xdc)])===null||_0x51d48d===void 0x0?void 0x0:_0x51d48d['backgroundOpacity'])||0x1)}):undefined,'backgroundStroke':((_0x4b6bda=_0x3be3a8[_0xe5d9fd(0xdc)])===null||_0x4b6bda===void 0x0?void 0x0:_0x4b6bda[_0xe5d9fd(0xd6)])?_getStroke((_0x11ab7b=_0x3be3a8[_0xe5d9fd(0xdc)])===null||_0x11ab7b===void 0x0?void 0x0:_0x11ab7b[_0xe5d9fd(0xd6)],((_0x30254b=_0x3be3a8[_0xe5d9fd(0xdc)])===null||_0x30254b===void 0x0?void 0x0:_0x30254b[_0xe5d9fd(0xdd)])||0x1,((_0x47f1d8=_0x3be3a8[_0xe5d9fd(0xdc)])===null||_0x47f1d8===void 0x0?void 0x0:_0x47f1d8['borderLineWidth'])||0x1):undefined});}}else return undefined;}export function getColor(_0x272bdb,_0x3f4579){const _0x26dfc8=a74_0x1d63;return a74_0x5b6f31(_0x272bdb)['alpha'](_0x3f4579!=undefined?_0x3f4579:0x1)[_0x26dfc8(0xe3)]();}function _getStroke(_0x46b8fa,_0x345936,_0x55a690){return new Stroke({'color':getColor(_0x46b8fa,_0x345936),'width':_0x55a690==undefined?0x1:_0x55a690});}export function preLoadImageRenderFunction(_0x491589,_0x2faa46,_0x16a136,_0x2d967a,_0x2a35f2){const _0x3bb31d=a74_0x1d63;let _0x8068f0;_0x491589['markerColor']?_0x8068f0=new a74_0x5042a6(_0x491589):_0x8068f0=new Icon({'src':_0x491589['image']});let _0x27fa43=_0x8068f0[_0x3bb31d(0xe7)]();_0x27fa43===a74_0x289fef[_0x3bb31d(0xe4)]||_0x27fa43===a74_0x289fef[_0x3bb31d(0xf2)]?_0x2a35f2(_0x491589,_0x2faa46,_0x16a136,_0x2d967a,_0x8068f0[_0x3bb31d(0xda)](0x60)):(_0x27fa43===a74_0x289fef[_0x3bb31d(0xe5)]&&_0x8068f0['load'](),_0x8068f0[_0x3bb31d(0xd7)](_0x11ec5b=>{const _0x61e7e7=_0x3bb31d;_0x27fa43=_0x11ec5b['target']['getImageState'](),(_0x27fa43===a74_0x289fef[_0x61e7e7(0xe4)]||_0x27fa43===a74_0x289fef[_0x61e7e7(0xf2)])&&_0x2a35f2(_0x491589,_0x2faa46,_0x16a136,_0x2d967a,_0x8068f0[_0x61e7e7(0xda)](0x60));}));}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe8e2d1,_0xab7634){const _0x361328=a79_0xd8e6,_0x4d6ce2=_0xe8e2d1();while(!![]){try{const _0x41a776=-parseInt(_0x361328(0x18b))/0x1+parseInt(_0x361328(0x183))/0x2+-parseInt(_0x361328(0x180))/0x3+-parseInt(_0x361328(0x181))/0x4*(-parseInt(_0x361328(0x185))/0x5)+parseInt(_0x361328(0x182))/0x6+-parseInt(_0x361328(0x187))/0x7+-parseInt(_0x361328(0x184))/0x8;if(_0x41a776===_0xab7634)break;else _0x4d6ce2['push'](_0x4d6ce2['shift']());}catch(_0x12636b){_0x4d6ce2['push'](_0x4d6ce2['shift']());}}}(a79_0x3fdc,0x96463));export function getDeepth(_0x18f19d){function _0x2ed744(_0x4324a2,_0x1210da){return _0x4324a2['reduce'](function(_0x25f2d3,_0x548df6){const _0x534fb6=a79_0xd8e6;var _0x38328d;return Array[_0x534fb6(0x18a)](_0x548df6)&&(_0x38328d=_0x2ed744(_0x548df6,_0x1210da+0x1)),_0x38328d>_0x25f2d3?_0x38328d:_0x25f2d3;},_0x1210da);}return _0x2ed744(_0x18f19d,0x1);}export function compareArray(_0x1d8f5d,_0x491604){const _0x4ea54f=a79_0xd8e6;if(_0x1d8f5d[_0x4ea54f(0x189)]!==_0x491604[_0x4ea54f(0x189)])return![];const _0xe02e3e=_0x1d8f5d[_0x4ea54f(0x189)];for(let _0x123128=0x0;_0x123128<_0xe02e3e;_0x123128++){if(!compare(_0x1d8f5d[_0x123128],_0x491604[_0x123128]))return![];}return!![];}function a79_0xd8e6(_0x4e0c93,_0x3d669f){const _0x3fdc71=a79_0x3fdc();return a79_0xd8e6=function(_0xd8e607,_0x1e1085){_0xd8e607=_0xd8e607-0x180;let _0x2eec87=_0x3fdc71[_0xd8e607];return _0x2eec87;},a79_0xd8e6(_0x4e0c93,_0x3d669f);}export function compare(_0x18d06a,_0x119f92){const _0x3acf67=a79_0xd8e6;if(_0x18d06a===_0x119f92)return!![];if(typeof _0x18d06a!==typeof _0x119f92||_0x18d06a===null||_0x119f92===null)return![];if(Array[_0x3acf67(0x18a)](_0x18d06a)){if(!Array[_0x3acf67(0x18a)](_0x119f92))return![];return compareArray(_0x18d06a,_0x119f92);}if(typeof _0x18d06a==='object')return compareObject(_0x18d06a,_0x119f92);return![];}function a79_0x3fdc(){const _0x5adee5=['keys','length','isArray','66700kQgjvL','657099UgAuts','32ntMhmS','4786056ZyinuC','2400582KnSWSb','10951768ficZUH','382050fQclJA','every','2373140nbswwe'];a79_0x3fdc=function(){return _0x5adee5;};return a79_0x3fdc();}export function compareObject(_0x36158b,_0x3bdded){const _0x3ef269=a79_0xd8e6,_0x609511=Object['keys'](_0x36158b),_0x1cd54f=Object[_0x3ef269(0x188)](_0x3bdded);if(_0x609511['length']!==_0x1cd54f[_0x3ef269(0x189)])return![];return _0x609511[_0x3ef269(0x186)](_0x41595d=>{if(!compare(_0x36158b[_0x41595d],_0x3bdded[_0x41595d]))return![];return!![];});}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a80_0x16d6(_0x46ea6e,_0x4dba5a){const _0x10ae54=a80_0x10ae();return a80_0x16d6=function(_0x16d6ad,_0x26967b){_0x16d6ad=_0x16d6ad-0x174;let _0x506e16=_0x10ae54[_0x16d6ad];return _0x506e16;},a80_0x16d6(_0x46ea6e,_0x4dba5a);}const a80_0x3b0f31=a80_0x16d6;(function(_0x28ed33,_0x35e803){const _0x80b3c5=a80_0x16d6,_0x970db8=_0x28ed33();while(!![]){try{const _0x43240d=-parseInt(_0x80b3c5(0x184))/0x1*(-parseInt(_0x80b3c5(0x17b))/0x2)+-parseInt(_0x80b3c5(0x17e))/0x3+parseInt(_0x80b3c5(0x176))/0x4*(parseInt(_0x80b3c5(0x174))/0x5)+parseInt(_0x80b3c5(0x177))/0x6+-parseInt(_0x80b3c5(0x17d))/0x7+parseInt(_0x80b3c5(0x179))/0x8+parseInt(_0x80b3c5(0x17f))/0x9*(parseInt(_0x80b3c5(0x180))/0xa);if(_0x43240d===_0x35e803)break;else _0x970db8['push'](_0x970db8['shift']());}catch(_0x259de1){_0x970db8['push'](_0x970db8['shift']());}}}(a80_0x10ae,0x56a85));import a80_0x4c6341 from'axios';function a80_0x10ae(){const _0x1b3627=['492156COJUCb','forEach','1562792rftGQJ','ajax','6uWieSM','stringify','2692907mxbwZh','1792548bYcXdI','14139nGqbpS','3650HqtWTQ','jsonp','hasOwnProperty','append','34909ZvvHLt','create','5hcYrtV','constructor','1526596uZhnfU'];a80_0x10ae=function(){return _0x1b3627;};return a80_0x10ae();}import a80_0x5c1a1c from'jquery';const request=a80_0x4c6341[a80_0x3b0f31(0x185)]({'timeout':0xb4*0x3e8});export function jsonp(_0x114f1a){return new Promise((_0x28afb8,_0x3c6ca7)=>{const _0x53808c=a80_0x16d6;a80_0x5c1a1c[_0x53808c(0x17a)]({'url':_0x114f1a,'type':'get','dataType':_0x53808c(0x181),'success':_0x5317b7=>{_0x28afb8(_0x5317b7);},'error':_0x40d5e7=>{_0x3c6ca7(_0x40d5e7);}});});}export function stringify(_0x2f2e02){const _0x5baa1b=a80_0x3b0f31,_0x80da9b=new FormData();for(const _0x513094 in _0x2f2e02){if(_0x2f2e02[_0x5baa1b(0x182)](_0x513094)){if(_0x2f2e02[_0x513094]){if(_0x2f2e02[_0x513094][_0x5baa1b(0x175)]===Array)_0x2f2e02[_0x513094][0x0]?_0x2f2e02[_0x513094][0x0][_0x5baa1b(0x175)]===Object?_0x80da9b[_0x5baa1b(0x183)](_0x513094,JSON[_0x5baa1b(0x17c)](_0x2f2e02[_0x513094])):_0x2f2e02[_0x513094][_0x5baa1b(0x178)]((_0x5cf3e4,_0xfdff92)=>{_0x80da9b['append'](_0x513094+('['+_0xfdff92+']'),_0x5cf3e4);}):_0x80da9b['append'](_0x513094+'[]','');else _0x2f2e02[_0x513094][_0x5baa1b(0x175)]===Object?_0x80da9b[_0x5baa1b(0x183)](_0x513094,JSON[_0x5baa1b(0x17c)](_0x2f2e02[_0x513094])):_0x80da9b['append'](_0x513094,_0x2f2e02[_0x513094]);}else _0x2f2e02[_0x513094]===0x0?_0x80da9b[_0x5baa1b(0x183)](_0x513094,'0'):_0x80da9b[_0x5baa1b(0x183)](_0x513094,'');}}return _0x80da9b;}export default request;
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a81_0x57fe(){const _0x521b87=['indexOf','EPSG:','33700410VTDsbR','7149247BCFtVt','20xjXPox','920525tsXmKS','51UEQNyu','210298svREGz','replace','11381490sPbNYk','1738312wlHwKd','4795664zVmTps','toUpperCase'];a81_0x57fe=function(){return _0x521b87;};return a81_0x57fe();}(function(_0x5e5f84,_0x226920){const _0x5edbe3=a81_0x5bc8,_0x5f5e0e=_0x5e5f84();while(!![]){try{const _0x4c3c44=parseInt(_0x5edbe3(0x17f))/0x1+-parseInt(_0x5edbe3(0x17c))/0x2*(-parseInt(_0x5edbe3(0x17b))/0x3)+-parseInt(_0x5edbe3(0x186))/0x4*(-parseInt(_0x5edbe3(0x187))/0x5)+parseInt(_0x5edbe3(0x17e))/0x6+-parseInt(_0x5edbe3(0x185))/0x7+-parseInt(_0x5edbe3(0x180))/0x8+-parseInt(_0x5edbe3(0x184))/0x9;if(_0x4c3c44===_0x226920)break;else _0x5f5e0e['push'](_0x5f5e0e['shift']());}catch(_0x3cf15c){_0x5f5e0e['push'](_0x5f5e0e['shift']());}}}(a81_0x57fe,0xeec60));function a81_0x5bc8(_0x41db7b,_0x5aefbd){const _0x57fe47=a81_0x57fe();return a81_0x5bc8=function(_0x5bc86c,_0x5236a3){_0x5bc86c=_0x5bc86c-0x17b;let _0x1c9a5f=_0x57fe47[_0x5bc86c];return _0x1c9a5f;},a81_0x5bc8(_0x41db7b,_0x5aefbd);}export function getEsriSpatialReference(_0x2c3cbb){const _0x5f17ff=a81_0x5bc8;let _0x40128d;if(_0x2c3cbb){let _0xb6a77e=_0x2c3cbb[_0x5f17ff(0x181)]();_0xb6a77e[_0x5f17ff(0x182)](_0x5f17ff(0x183))===0x0?_0x40128d=_0x2c3cbb[_0x5f17ff(0x17d)](_0x5f17ff(0x183),''):_0x40128d=_0x2c3cbb;}return _0x40128d;}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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);}
|
|
1
|
+
const a84_0x3825b6=a84_0x39a9;(function(_0x5cb1d2,_0x21385e){const _0x8b7bfc=a84_0x39a9,_0x2c060f=_0x5cb1d2();while(!![]){try{const _0x2f2d20=-parseInt(_0x8b7bfc(0x112))/0x1+parseInt(_0x8b7bfc(0x110))/0x2+parseInt(_0x8b7bfc(0xf3))/0x3+parseInt(_0x8b7bfc(0x119))/0x4+parseInt(_0x8b7bfc(0xe7))/0x5+parseInt(_0x8b7bfc(0xf5))/0x6+-parseInt(_0x8b7bfc(0xf7))/0x7;if(_0x2f2d20===_0x21385e)break;else _0x2c060f['push'](_0x2c060f['shift']());}catch(_0x25a3a7){_0x2c060f['push'](_0x2c060f['shift']());}}}(a84_0x1123,0x4df22));import a84_0x5158f9 from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a84_0x51775d}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a84_0x39851c,getArea as a84_0x377a14}from'ol/sphere';import a84_0x34793d from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a84_0x5b70d2 from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a84_0x463048 from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a84_0x4e01d5 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a84_0x2ba736 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a84_0x18e747 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a84_0x413e7a from'ol/format/GeoJSON';import a84_0x199f65 from'jsts/org/locationtech/jts/geom/GeometryFactory';import a84_0x59c39b 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_0x3a6fb7 from'ol/format/WKT';import a84_0x20f929 from'ol/format/EsriJSON';const _parser=new a84_0x4e01d5(undefined,undefined);_parser[a84_0x3825b6(0xe5)](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x446bd2,_0x2b584a,_0x404ae8=![]){const _0x114a13=a84_0x3825b6;if(!_0x446bd2)return 0x0;if(typeof _0x2b584a==_0x114a13(0xed)){let _0x596c18=registerProj(_0x2b584a);if(_0x596c18==null)return console['error'](_0x114a13(0xfd)),0x0;_0x2b584a=_0x596c18;}const _0x326c83=isSpheroid(_0x2b584a);if(_0x404ae8)return a84_0x377a14(_0x446bd2,{'projection':_0x2b584a});else{if(_0x326c83){const _0x2bee10=getGeoProjection(_0x446bd2,_0x2b584a);return _0x446bd2[_0x114a13(0xee)]()[_0x114a13(0xfe)](_0x2b584a,_0x2bee10)[_0x114a13(0x109)]();}return _0x446bd2[_0x114a13(0x109)]();}}export function getLength(_0x1bf17e,_0x3df959,_0x1fbe5c=![]){const _0x4ebeca=a84_0x3825b6;if(!_0x1bf17e)return 0x0;if(typeof _0x3df959=='string'){let _0x217e88=registerProj(_0x3df959);if(_0x217e88==null)return console[_0x4ebeca(0x108)](_0x4ebeca(0xfd)),0x0;_0x3df959=_0x217e88;}const _0x18276b=isSpheroid(_0x3df959);if(_0x1fbe5c)return a84_0x39851c(_0x1bf17e,{'projection':_0x3df959});else{let _0x38a807=_0x1bf17e;if(_0x18276b){const _0x4323d2=getGeoProjection(_0x1bf17e,_0x3df959);_0x38a807=_0x1bf17e[_0x4ebeca(0xee)]()[_0x4ebeca(0xfe)](_0x3df959,_0x4323d2);}if(_0x38a807 instanceof LineString)return _0x38a807['getLength']();else{let _0x429947=0x0;for(let _0x3cb84f=0x0;_0x3cb84f<_0x38a807[_0x4ebeca(0x103)]()[_0x4ebeca(0xec)];_0x3cb84f++){_0x429947+=_0x38a807[_0x4ebeca(0x103)]()[_0x3cb84f][_0x4ebeca(0x102)]();}return _0x429947;}}}export function bufferOp(_0x5c8367,_0x1f2c87){const _0x37cf1b=a84_0x3825b6,_0x75b127=_parser['read'](_0x5c8367),_0x5eda37=a84_0x34793d['bufferOp'](_0x75b127,_0x1f2c87);return _parser[_0x37cf1b(0x10f)](_0x5eda37);}export function bufferPixel(_0x2c32a4,_0x279e2e,_0x51ef30){const _0x4201ba=a84_0x3825b6,_0x574227=_0x51ef30['getPixelFromCoordinate'](_0x2c32a4[_0x4201ba(0x10d)]()),_0x1a5e15=_0x51ef30[_0x4201ba(0xea)]([_0x574227[0x0]+_0x279e2e,_0x574227[0x1]]),_0x224133=a84_0x51775d(_0x2c32a4[_0x4201ba(0x10d)](),_0x1a5e15),_0x4b55e4=bufferOp(_0x2c32a4,_0x224133);return _0x4b55e4;}export function contains(_0x45d177,_0x1789be){const _0x1b4070=a84_0x3825b6,_0x219588=_parser[_0x1b4070(0x113)](_0x45d177),_0x50e93f=_parser[_0x1b4070(0x113)](_0x1789be);return a84_0x5b70d2[_0x1b4070(0x105)](_0x219588,_0x50e93f);}export function crosses(_0x3e2dea,_0x1f0a6f){const _0x170c92=a84_0x3825b6,_0x46fd85=_parser[_0x170c92(0x113)](_0x3e2dea),_0x166ae6=_parser[_0x170c92(0x113)](_0x1f0a6f);return a84_0x5b70d2['crosses'](_0x46fd85,_0x166ae6);}export function intersects(_0x48212a,_0x39e2e8){const _0x3e8bef=a84_0x3825b6,_0x370ce1=_parser[_0x3e8bef(0x113)](_0x48212a),_0x22601f=_parser[_0x3e8bef(0x113)](_0x39e2e8);return a84_0x5b70d2['intersects'](_0x370ce1,_0x22601f);}export function intersection(_0xe27a05,_0x50e742){const _0x37652b=a84_0x3825b6,_0x4294be=_parser['read'](_0xe27a05),_0x47feca=_parser[_0x37652b(0x113)](_0x50e742);return _parser[_0x37652b(0x10f)](a84_0x463048[_0x37652b(0x107)](_0x4294be,_0x47feca));}export function union(_0x1a0ad3,_0x5ea01c){const _0x682d8a=a84_0x3825b6,_0x9a7459=_parser[_0x682d8a(0x113)](_0x1a0ad3),_0x238811=_parser['read'](_0x5ea01c);return _parser[_0x682d8a(0x10f)](a84_0x463048[_0x682d8a(0x10c)](_0x9a7459,_0x238811));}function a84_0x39a9(_0x31f752,_0x4d27eb){const _0x1123a1=a84_0x1123();return a84_0x39a9=function(_0x39a9ce,_0xa03f7){_0x39a9ce=_0x39a9ce-0xe4;let _0x2fbbd3=_0x1123a1[_0x39a9ce];return _0x2fbbd3;},a84_0x39a9(_0x31f752,_0x4d27eb);}export function unions(_0x51b4ad){const _0x5ad45a=a84_0x3825b6;if(!_0x51b4ad||_0x51b4ad[_0x5ad45a(0xec)]===0x0)return;if(_0x51b4ad[_0x5ad45a(0xec)]===0x1)return _0x51b4ad[0x0][_0x5ad45a(0xee)]();let _0x5b9593=_parser[_0x5ad45a(0x113)](_0x51b4ad[0x0]);for(let _0x5565c7=0x1;_0x5565c7<_0x51b4ad['length'];_0x5565c7++){const _0x4aa59a=_parser[_0x5ad45a(0x113)](_0x51b4ad[_0x5565c7]);_0x5b9593=a84_0x463048[_0x5ad45a(0x10c)](_0x5b9593,_0x4aa59a);}return _parser['write'](_0x5b9593);}export function difference(_0x8b2e25,_0x384c43){const _0x32ab5c=a84_0x3825b6,_0x452f5f=_parser[_0x32ab5c(0x113)](_0x8b2e25),_0x20290c=_parser[_0x32ab5c(0x113)](_0x384c43);return _parser[_0x32ab5c(0x10f)](a84_0x463048[_0x32ab5c(0x11a)](_0x452f5f,_0x20290c));}export function distance(_0x19fdc4,_0x5f4510){const _0x578aa0=a84_0x3825b6,_0x1feb41=_parser[_0x578aa0(0x113)](_0x19fdc4),_0x3041ab=_parser[_0x578aa0(0x113)](_0x5f4510);return _parser['write'](a84_0x18e747[_0x578aa0(0xf8)](_0x1feb41,_0x3041ab));}export function jstlSplit(_0x3de027,_0x54971b){const _0x3c5027=a84_0x3825b6,_0x37d576=_parser[_0x3c5027(0x113)](_0x3de027),_0x53868a=_parser[_0x3c5027(0x113)](_0x54971b),_0x10ecc6=_0x37d576[_0x3c5027(0xeb)]();let _0x1dd1b0=[];function _0x2121eb(_0x4f9304,_0x279f78){const _0x201f8d=_0x3c5027,_0xb25c81=_0x4f9304[_0x201f8d(0xf6)](),_0x2921ad=_0x4f9304[_0x201f8d(0x104)](),_0x2aa160=[];for(let _0x1edbec=0x0;_0x1edbec<_0x2921ad;_0x1edbec++){_0x2aa160[_0x201f8d(0x11d)](_0x4f9304[_0x201f8d(0xe4)](_0x1edbec));}const _0xe461d8=a84_0x463048[_0x201f8d(0x10c)](_0xb25c81,_0x279f78),_0x363a4a=new a84_0x2ba736();_0x363a4a[_0x201f8d(0x116)](_0xe461d8);const _0x18c329=_0x363a4a['getPolygons'](),_0x438b24=new a84_0x199f65();_0x18c329[_0x201f8d(0x10a)]()>0x1?_0x18c329[_0x201f8d(0xf1)]()['forEach'](_0x375090=>{const _0x1cdab4=_0x201f8d;let _0x445b2f=_0x375090;_0x2aa160[_0x1cdab4(0xfc)](_0x25b205=>{const _0x2122fb=_0x1cdab4,_0x105155=_0x438b24[_0x2122fb(0xe8)](_0x25b205);try{_0x445b2f=a84_0x463048['difference'](_0x445b2f,_0x105155);}catch(_0x1e5f95){console[_0x2122fb(0xf4)]('孔洞操作失败:',_0x1e5f95);}}),_0x445b2f&&_0x1dd1b0[_0x1cdab4(0x11d)](_parser[_0x1cdab4(0x10f)](_0x445b2f));}):_0x1dd1b0[_0x201f8d(0x11d)](_parser[_0x201f8d(0x10f)](_0x4f9304));}if(_0x10ecc6==='Polygon')_0x2121eb(_0x37d576,_0x53868a);else{if(_0x10ecc6===_0x3c5027(0x117)){const _0x11d06d=_0x37d576[_0x3c5027(0xe6)]();for(let _0x22844a=0x0;_0x22844a<_0x11d06d;_0x22844a++){const _0x166730=_0x37d576[_0x3c5027(0x10b)](_0x22844a);_0x2121eb(_0x166730,_0x53868a);}}else throw new Error('无法识别的数据类型');}return _0x1dd1b0;}export function splitLineByLine(_0x626859,_0x3b49df){const _0x2482c3=a84_0x3825b6,_0x12630c=_parser[_0x2482c3(0x113)](_0x626859),_0x9475b=_parser[_0x2482c3(0x113)](_0x3b49df),_0x3c9fad=a84_0x463048['intersection'](_0x12630c,_0x9475b);if(!_0x3c9fad||_0x3c9fad[_0x2482c3(0x100)]())return[_0x626859];const _0x4b1831=[];if(_0x3c9fad[_0x2482c3(0xeb)]()===_0x2482c3(0x10e))_0x4b1831[_0x2482c3(0x11d)](_0x3c9fad[_0x2482c3(0x101)]());else{if(_0x3c9fad[_0x2482c3(0xeb)]()===_0x2482c3(0x11c))for(let _0x1f7279=0x0;_0x1f7279<_0x3c9fad['getNumGeometries']();_0x1f7279++){_0x4b1831[_0x2482c3(0x11d)](_0x3c9fad[_0x2482c3(0x10b)](_0x1f7279)[_0x2482c3(0x101)]());}}const _0x1ea52f=new a84_0x59c39b(_0x12630c),_0x4b4d75=_0x4b1831['map'](_0x578faa=>_0x1ea52f[_0x2482c3(0x111)](_0x578faa))[_0x2482c3(0xff)]((_0x22ec3e,_0x48ca36)=>_0x22ec3e-_0x48ca36),_0x28fa5d=[],_0x448347=1e-9;for(let _0x476d67=0x0;_0x476d67<_0x4b4d75[_0x2482c3(0xec)];_0x476d67++){if(_0x476d67===0x0||Math[_0x2482c3(0x11b)](_0x4b4d75[_0x476d67]-_0x4b4d75[_0x476d67-0x1])>_0x448347)_0x28fa5d[_0x2482c3(0x11d)](_0x4b4d75[_0x476d67]);}const _0x2bb38e=[];let _0x2b1e5e=_0x1ea52f['getStartIndex']?_0x1ea52f[_0x2482c3(0x114)]():0x0;const _0x5c30bc=_0x1ea52f[_0x2482c3(0xef)]&&_0x1ea52f['getEndIndex']()||_0x12630c['getLength']();for(let _0x47c3d0=0x0;_0x47c3d0<_0x28fa5d[_0x2482c3(0xec)];_0x47c3d0++){const _0x3ac1a4=_0x28fa5d[_0x47c3d0];if(_0x3ac1a4-_0x2b1e5e>_0x448347){const _0x2c4c83=_0x1ea52f[_0x2482c3(0xfa)](_0x2b1e5e,_0x3ac1a4);_0x2bb38e[_0x2482c3(0x11d)](_parser[_0x2482c3(0x10f)](_0x2c4c83));}_0x2b1e5e=_0x3ac1a4;}if(_0x5c30bc-_0x2b1e5e>_0x448347){const _0x10e686=_0x1ea52f[_0x2482c3(0xfa)](_0x2b1e5e,_0x5c30bc);_0x2bb38e['push'](_parser[_0x2482c3(0x10f)](_0x10e686));}const _0x3fc88c=_0x2bb38e[_0x2482c3(0xf2)](_0x5056e4=>{const _0x175a92=_0x2482c3,_0x573ccc=_0x5056e4[_0x175a92(0x10d)]();return _0x573ccc&&_0x573ccc[_0x175a92(0xec)]>=0x2&&!(_0x573ccc[_0x175a92(0xec)]===0x2&&_0x573ccc[0x0][0x0]===_0x573ccc[0x1][0x0]&&_0x573ccc[0x0][0x1]===_0x573ccc[0x1][0x1]);});return _0x3fc88c;}export function fromWKT(_0x229934,_0x3be42b,_0x1f11ac){const _0xc26a4e=a84_0x3825b6,_0x58d1d2=new a84_0x3a6fb7();_0x3be42b&®isterProj(_0x3be42b);_0x1f11ac&®isterProj(_0x1f11ac);const _0x3da5c1=_0x58d1d2[_0xc26a4e(0xfb)](_0x229934);if(isGeometryEmpty(_0x3da5c1))return null;return _0x3be42b&&_0x1f11ac?_0x3da5c1['transform'](new a84_0x5158f9({'code':_0x3be42b}),new a84_0x5158f9({'code':_0x1f11ac})):_0x3da5c1;}export function fromWKTs(_0x2b1a02,_0x2870e9,_0x1ffe5f){const _0x5e200e=a84_0x3825b6,_0xb261f6=new a84_0x3a6fb7();let _0x5bab49=[];_0x2870e9&®isterProj(_0x2870e9);_0x1ffe5f&®isterProj(_0x1ffe5f);let _0x1067b8,_0x17e228;_0x2870e9&&_0x1ffe5f&&(_0x1067b8=new a84_0x5158f9({'code':_0x2870e9}),_0x17e228=new a84_0x5158f9({'code':_0x1ffe5f}));for(let _0x33624e=0x0;_0x33624e<_0x2b1a02[_0x5e200e(0xec)];_0x33624e++){const _0x326ef3=_0xb261f6['readGeometry'](_0x2b1a02[_0x33624e]);if(isGeometryEmpty(_0x326ef3))continue;_0x1067b8&&_0x17e228?_0x5bab49[_0x5e200e(0x11d)](_0x326ef3[_0x5e200e(0xfe)](_0x1067b8,_0x17e228)):_0x5bab49[_0x5e200e(0x11d)](_0x326ef3);}return _0x5bab49;}export function toWKT(_0x54f5f7){const _0x3f88da=a84_0x3825b6,_0x37ae8e=new a84_0x3a6fb7();if(isGeometryEmpty(_0x54f5f7))return'';if(_0x54f5f7 instanceof Circle){const _0x3c9be6=fromCircle(_0x54f5f7);return _0x37ae8e[_0x3f88da(0x115)](_0x3c9be6);}else return _0x37ae8e[_0x3f88da(0x115)](_0x54f5f7);}export function toGeoJSON(_0x33dd59){const _0x418c1c=new a84_0x413e7a();return _0x418c1c['writeGeometry'](_0x33dd59);}export function fromGeoJSON(_0x3f7ff6){const _0x5ca284=a84_0x3825b6,_0x3dfab8=new a84_0x413e7a();return _0x3dfab8[_0x5ca284(0xfb)](_0x3f7ff6);}export function toEsriJSON(_0x17b861){const _0x5705bd=new a84_0x20f929();return _0x5705bd['writeGeometry'](_0x17b861);}export function fromEsriJSON(_0x3eb31e){const _0x571791=a84_0x3825b6,_0x29be94=new a84_0x20f929();return _0x29be94[_0x571791(0xfb)](_0x3eb31e);}export function expandExtent(_0x160c97,_0x4cdb7d){const _0x452f30=_0x160c97[0x0],_0x398c95=_0x160c97[0x1],_0x7c3886=_0x160c97[0x2],_0x21aa79=_0x160c97[0x3],_0x178fd2=(_0x452f30+_0x7c3886)/0x2,_0x1db82f=(_0x398c95+_0x21aa79)/0x2,_0x58f00f=_0x7c3886-_0x452f30,_0x1f3bc7=_0x21aa79-_0x398c95,_0x5282a3=_0x58f00f*_0x4cdb7d,_0x6142ef=_0x1f3bc7*_0x4cdb7d,_0x237cc1=_0x178fd2-_0x5282a3/0x2,_0x266c5b=_0x178fd2+_0x5282a3/0x2,_0x449b9a=_0x1db82f-_0x6142ef/0x2,_0x5e7312=_0x1db82f+_0x6142ef/0x2;return[_0x237cc1,_0x449b9a,_0x266c5b,_0x5e7312];}function a84_0x1123(){const _0x35ef05=['getNumGeometries','209670gbnYRI','createPolygon','getInteriorPoint','getCoordinateFromPixel','getGeometryType','length','string','clone','getEndIndex','getType','toArray','filter','1659669pNxJDa','warn','1323552OfjbdW','getExteriorRing','4433562RcAHxF','distance','map','extractLine','readGeometry','forEach','未找到投影信息','transform','sort','isEmpty','getCoordinate','getLength','getLineStrings','getNumInteriorRing','contains','getExtent','intersection','error','getArea','size','getGeometryN','union','getCoordinates','Point','write','707254vGeHam','indexOf','416285rpwPwG','read','getStartIndex','writeGeometry','add','MultiPolygon','Polygon','798164RKdgRA','difference','abs','MultiPoint','push','getInteriorRingN','inject'];a84_0x1123=function(){return _0x35ef05;};return a84_0x1123();}export function isGeometryEmpty(_0x347fb5){const _0x34c594=a84_0x3825b6;if(!_0x347fb5)return!![];if(_0x347fb5 instanceof Point||_0x347fb5 instanceof MultiPoint){const _0x51c48f=_0x347fb5[_0x34c594(0x10d)]();return!_0x51c48f||_0x51c48f['some'](_0x109502=>isNaN(_0x109502));}else{if(_0x347fb5 instanceof LineString||_0x347fb5 instanceof MultiLineString)return _0x347fb5['getCoordinates']()[_0x34c594(0xec)]<0x2;else{if(_0x347fb5 instanceof Polygon){const _0x17fe84=_0x347fb5[_0x34c594(0x10d)]();return!_0x17fe84||_0x17fe84[_0x34c594(0xec)]===0x0||_0x17fe84[0x0][_0x34c594(0xec)]<0x4;}else{if(_0x347fb5 instanceof MultiPolygon){const _0x1b6024=_0x347fb5[_0x34c594(0x10d)]();return!_0x1b6024||_0x1b6024[_0x34c594(0xec)]===0x0||_0x1b6024[0x0][0x0][_0x34c594(0xec)]<0x4;}}}}return![];}export function polygonToLines(_0x36546e){const _0x49c560=a84_0x3825b6;if(!_0x36546e)return[];const _0x494707=_0x36546e['getLinearRings']();return _0x494707[_0x49c560(0xf9)](_0xed2d0a=>new LineString(_0xed2d0a[_0x49c560(0x10d)]()));}export function getGeometryCenter(_0x1ac70c){const _0x3e72c8=a84_0x3825b6;if(!_0x1ac70c)return undefined;const _0x4e1c35=_0x1ac70c[_0x3e72c8(0xf0)]();if(_0x4e1c35===_0x3e72c8(0x10e))return new Point(_0x1ac70c[_0x3e72c8(0x10d)]());if(_0x4e1c35===_0x3e72c8(0x118)||_0x4e1c35===_0x3e72c8(0x117))return _0x1ac70c[_0x3e72c8(0xe9)]();const _0x3b6799=getCenter(_0x1ac70c[_0x3e72c8(0x106)]());return new Point(_0x3b6799);}
|