@anov/gis 1.5.1 → 1.5.3
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.
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anov/gis",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "基于Cesium封装的二次开发SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"homepage": "http://172.16.222.31:8866",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"dev": "yarn run copy_css_dev && yarn run doc && yarn run dev:sdk",
|
|
9
|
-
"build": "yarn run clean && yarn run copy_css && yarn run build:sdk && yarn run doc && yarn run docs:build && ncp ./docs/.vuepress/dist ./dist/docs && ncp ./dist/Documentation ./dist/docs/Documentation && rimraf ./dist/Documentation",
|
|
8
|
+
"dev": "yarn run copy_css_dev && yarn run doc && yarn run dev:sdk && yarn run dev:applyfn",
|
|
9
|
+
"build": "yarn run clean && yarn run copy_css && yarn run build:sdk && yarn run build:applyfn && yarn run doc && yarn run docs:build && ncp ./docs/.vuepress/dist ./dist/docs && ncp ./dist/Documentation ./dist/docs/Documentation && rimraf ./dist/Documentation",
|
|
10
10
|
"dev:sdk": "yarn run copy_css_dev && cross-env NODE_ENV=development webpack --config config/webpack.config.js --mode development",
|
|
11
11
|
"build:sdk": "yarn run copy_css && cross-env NODE_ENV=production webpack --config config/webpack.config.js --mode production",
|
|
12
12
|
"doc": "npx jsdoc --configure tools/jsdoc/conf.json",
|
|
13
13
|
"clean": "rimraf ./dist",
|
|
14
|
-
"pdoc":"npm run docs:dev",
|
|
14
|
+
"pdoc": "npm run docs:dev",
|
|
15
15
|
"copy_css_dev": "ncp src/themes node_modules/cesium/Build/CesiumUnminified/as_css",
|
|
16
|
-
"copy_css":
|
|
16
|
+
"copy_css": "ncp src/themes node_modules/cesium/Build/Cesium/as_css",
|
|
17
17
|
"test": "cd ./examples && yarn dev",
|
|
18
18
|
"test2": "cd ./examples && yarn dev2",
|
|
19
19
|
"serve": "cd ./examples && yarn serve",
|
|
20
20
|
"buildexample": "cd ./examples && yarn build",
|
|
21
21
|
"docs:dev": "vuepress dev docs",
|
|
22
|
-
"docs:build": "vuepress build docs"
|
|
22
|
+
"docs:build": "vuepress build docs",
|
|
23
|
+
"dev:applyfn": "webpack --config config/webpack.config.applyfn.js --mode development",
|
|
24
|
+
"build:applyfn": "cross-env NODE_ENV=production webpack --config config/webpack.config.applyfn.js --mode production"
|
|
23
25
|
},
|
|
24
26
|
"repository": {
|
|
25
27
|
"type": "git",
|
|
@@ -72,6 +74,5 @@
|
|
|
72
74
|
"wellknown": "^0.5.0",
|
|
73
75
|
"yarn": "^1.22.19"
|
|
74
76
|
},
|
|
75
|
-
"dependencies": {
|
|
76
|
-
}
|
|
77
|
+
"dependencies": {}
|
|
77
78
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("anovgis_applyfn",[],r):"object"==typeof exports?exports.anovgis_applyfn=r():e.anovgis_applyfn=r()}(self,(()=>(()=>{"use strict";var e={879:(e,r,t)=>{function i(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){var r=function(e,r){if("object"!==o(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(r)?r:String(r)}function n(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function l(e,r,t){return r&&n(e.prototype,r),t&&n(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}t.d(r,{Z:()=>O});const s=function(){function e(){i(this,e),this._imageLayer=null,this._vectorLayer=null,this._terrianLayer=null,this._labelMarkLayer=null,this._imageLayer_gd=null,this._vectorLayer_gd=null,this._labelMarkLayer_gd=null,this._imageLayer_bd=null,this._vectorLayer_bd=null,this._labelMarkLayer_bd=null}return l(e,null,[{key:"addWorldLayer",value:function(e){e.key||(e.key="b832b9764939cbb0919148c548b669ba"),0==e.type&&(this._imageLayer=e.viewer.imageryLayers.addImageryProvider(ANOVGIS.ImageryLayerFactory.createImageryLayer(ANOVGIS.ImageryType.TDT,{style:"img",key:worldOption.key}))),1==e.type&&(this._vectorLayer=e.viewer.imageryLayers.addImageryProvider(ANOVGIS.ImageryLayerFactory.createTdtImageryLayer({key:e.key}))),2==e.type&&(this._terrianLayer=e.viewer.imageryLayers.addImageryProvider(ANOVGIS.ImageryLayerFactory.createTdtImageryLayer({style:"ter",key:e.key}))),this._labelMarkLayer=e.viewer.imageryLayers.addImageryProvider(ANOVGIS.ImageryLayerFactory.createImageryLayer(ANOVGIS.ImageryType.TDT,{style:"cva",key:e.key}))}},{key:"setWorldLayer",value:function(e,r){0==e&&this._imageLayer&&(this._imageLayer.show=r),1==e&&this._vectorLayer&&(this._vectorLayer.show=r),2==e&&this._terrianLayer&&(this._terrianLayer.show=r)}},{key:"setWorldMark",value:function(e){this._labelMarkLayer&&(this._labelMarkLayer.show=e)}},{key:"addAmapLayer",value:function(e){e.key||(e.key="9d167bfcf179354f55833ee5603c2423"),0==e.type&&(this._imageLayer_gd=e.viewer.imageryLayers.addImageryProvider(ANOVGIS.ImageryLayerFactory.createAmapImageryLayer({style:"img",crs:"WGS84"}))),1==e.type&&(this._vectorLayer_gd=e.viewer.imageryLayers.addImageryProvider(ANOVGIS.ImageryLayerFactory.createAmapImageryLayer({crs:"WGS84"}))),this._labelMarkLayer_gd=e.viewer.imageryLayers.addImageryProvider(ANOVGIS.ImageryLayerFactory.createAmapImageryLayer({style:"cva",crs:"WGS84"}))}},{key:"setAmapLayer",value:function(e,r){0==e&&this._imageLayer&&(this._imageLayer_bd.show=r),1==e&&this._vectorLayer&&(this._vectorLayer_bd.show=r)}},{key:"setAmapMaker",value:function(e){this._labelMarkLayer_bd&&(this.this._labelMarkLayer_bd.show=e)}},{key:"addBmapLayer",value:function(e){0==e.type&&(this._imageLayer_bd=e.viewer.imageryLayers.addImageryProvider(ANOVGIS.ImageryLayerFactory.createBaiduImageryLayer({style:"img",crs:"WGS84"}))),1==e.type&&(this._vectorLayer_bd=e.viewer.imageryLayers.addImageryProvider(ANOVGIS.ImageryLayerFactory.createBaiduImageryLayer({crs:"WGS84"})))}}]),e}();function u(e,r,t){var i="",o=r,a=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];e&&(o=Math.round(Math.random()*(t-r))+r);for(var n=0;n<o;n++)i+=a[Math.round(Math.random()*(a.length-1))];return i}function y(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return c(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,n=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return n=e.done,e},e:function(e){l=!0,a=e},f:function(){try{n||null==t.return||t.return()}finally{if(l)throw a}}}}function c(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}function f(e,r){var t,i=null,o=y(r.viewer.dataSources.getByName(r.roofDSName)[0].entities.values);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(a.name==e){i=a;break}}}catch(e){o.e(e)}finally{o.f()}return i}function d(e,r){var t,i=null,o=y(r.viewer.entities.values);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(a.id==e){i=a;break}}}catch(e){o.e(e)}finally{o.f()}return i}function m(e,r,t){var i=0;if(0==r.showType)i=e<=6?0:e>6&&e<=80?1:2;else{var o,a=!1,n=y(r.keyInfoList);try{for(n.s();!(o=n.n()).done;){var l=o.value,s=h(l.keyPosition,t,l.f_range,0);if(a=h(l.keyPosition,t,l.s_range,0),s)return 2}}catch(e){n.e(e)}finally{n.f()}if(a)return 1}return i}function h(e,r,t,i){var o=!1,a=new ANOVGIS.Position(e[0],e[1]),n=new ANOVGIS.Position(r[0],r[1]);return a.distance(n)<=t+i&&(o=!0),o}function v(e){return e>0&&e<4?8:e>=4&&e<=10?6:3}function g(e){return Array.prototype.concat.apply([],e)}const p=function(){function e(r){i(this,e),this.viewer=r,this.floorHeight=3,this.distanceMax=1e3,this.curBuildRange=100,this.keyRange=30,this.showType=0,this.clickWall=null,this.wallMaterial=null,this.clickRoof=null,this.roofMaterial=null,this.dataIndex=-1,this.roofDSName=null,this.selectEntityId=null,this.useMaterial=!0,this.selectColor="",this.buildInfo={geojsonData:null,buildObj:{color:"rgba(73,137,255,1)",defColor:"#324f7b",keyColor:"rgba(10,231,241,0.5)",isOutline:!1,outlineColor:"rgba(59,179,249,0.1)",useMaterial:!0,selectColor:"rgba(237,175,67,1)"},showInfo:{showType:0,keyInfoList:[{keyPosition:[116.39831273,39.97880908],f_range:30,s_range:1e3}]}}}return l(e,[{key:"addGeojsonBuild",value:function(e,r){var t,i=function(e,r,t){t.useMaterial=e.buildObj.useMaterial,t.selectColor=e.buildObj.selectColor;var i,o={wall:null,geojson:null},a=[],n={type:"FeatureCollection",features:[]},l=y(r.features);try{for(l.s();!(i=l.n()).done;){var s=i.value,c=""+u(!1,10,10);s.properties.buildId=c;var f=s.properties.height-0,d=v(f),h=m(f,e.showInfo,s.geometry.coordinates[0][0]);a.push({buildId:c,wallType:h,height:f*d,coordinates:s.geometry.coordinates[0]}),s.properties.showType=h,n.features.push(s)}}catch(e){l.e(e)}finally{l.f()}return o.wall=a,o.geojson=n,o}(e,r,this);this.addWall(i.wall,e.buildObj,this.viewer),this.addRoof(i.geojson,e.buildObj,this.viewer),t=this,new Cesium.ScreenSpaceEventHandler(t.viewer.scene.canvas).setInputAction((function(e){var r=t.viewer.scene.pick(e.position);console.log("position",e.position),console.log("position",Cesium.Cartographic.fromCartesian(e.position));var i=t.viewer.scene.globe.pick(t.viewer.camera.getPickRay(e.position),t.viewer.scene),o=t.viewer.scene.globe.ellipsoid.cartesianToCartographic(i),a=Cesium.Math.toDegrees(o.longitude),n=Cesium.Math.toDegrees(o.latitude);if(console.log("坐标",[a,n]),r&&r.id){var l=null;r.id.wall&&(l=r.id.id),r.id.polygon&&(l=r.id.name),function(e,r){(function(e){if(e.selectEntityId){var r=e.selectEntityId,t=d("wall_"+r,e);console.log("setPreMaterial",t);var i=f("roof_"+r,e);console.log("setPreMaterial",i),t.wall.material=e.wallMaterial,i.polygon.material=e.roofMaterial}})(r),e?function(e,r){var t=e.replace("wall_","").replace("roof_",""),i=d("wall_"+t,r);console.log("setCurMaterial",i);var o=f("roof_"+t,r);console.log("setCurMaterial",o),r.wallMaterial=i.wall.material,r.roofMaterial=o.polygon.material,r.useMaterial?i.wall.material=new ANOVGIS.WallFlowMaterialProperty({color:Cesium.Color.fromCssColorString(r.selectColor),duration:2600}):i.wall.material=new ANOVGIS.WallGradientMaterialProperty({color:Cesium.Color.fromCssColorString(r.selectColor),duration:2500}),o.polygon.material=Cesium.Color.fromCssColorString(r.selectColor),r.selectEntityId=t}(e,r):console.log("没有找到entityId!")}(l,t),console.log("点击建筑的id:",r.id)}}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}},{key:"addWall",value:function(e,r,t){var i,o=y(e);try{for(o.s();!(i=o.n()).done;){var a=i.value,n=g(a.coordinates),l={id:"wall_"+a.buildId,wall:{outline:r.isOutline,outlineColor:Cesium.Color.fromCssColorString(r.outlineColor),positions:Cesium.Cartesian3.fromDegreesArray(n),maximumHeights:new Array(a.coordinates.length).fill(a.height),minimumHeights:new Array(a.coordinates.length).fill(0)}};0==a.wallType?(l.wall.outline=!1,l.wall.material=Cesium.Color.fromCssColorString(r.defColor)):2==a.wallType?l.wall.material=new ANOVGIS.WallFlowMaterialProperty({color:Cesium.Color.fromCssColorString(r.keyColor),duration:2600}):l.wall.material=new ANOVGIS.WallGradientMaterialProperty({color:Cesium.Color.fromCssColorString(r.color),duration:2500}),t.entities.add(l)}}catch(e){o.e(e)}finally{o.f()}}},{key:"addRoof",value:function(e,r,t){var i=this;Cesium.GeoJsonDataSource.load(e).then((function(e){e.name=r.name+"-DS",i.roofDSName=e.name,t.dataSources.add(e);var o,a=y(e.entities.values);try{for(a.s();!(o=a.n()).done;){var n=o.value,l=n.properties.buildId.getValue();n.name="roof_"+l;var s=n.properties.height.getValue()-0,u=n.properties.showType.getValue()-0;n.polygon.height=s*v(s),0==u&&(n.polygon.material=Cesium.Color.fromCssColorString(r.defColor)),1==u&&(n.polygon.material=Cesium.Color.fromCssColorString(r.color)),2==u&&(n.polygon.material=Cesium.Color.fromCssColorString(r.keyColor)),n.polygon.outline=r.isOutline,r.isOutline&&(n.polygon.outlineColor=Cesium.Color.fromCssColorString(r.outlineColor))}}catch(e){a.e(e)}finally{a.f()}}))}}]),e}();function w(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return C(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?C(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,n=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return n=e.done,e},e:function(e){l=!0,a=e},f:function(){try{n||null==t.return||t.return()}finally{if(l)throw a}}}}function C(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}function b(e){return e+u(!1,10,10)}function I(e,r){return r.entities.getById(e)}const L=function(){function e(r){i(this,e),this.viewer=r,this.rangeKey=.02,this.circleWaveOption={id:"circlewave1",position:[116.397428,39.90923,0],maxRadius:800,duration:3e3,color:"rgba(59,179,249,0.7)",count:4},this.raderOption={position:[116.397428,39.90923],radius:500,colorType:0,outline:!1,speed:-1.5},this.FlywireOption={position:[116.397428,39.90923],height:1e4,speed:8,color:"rgba(63,140,255,0.8)",num:500,density:.02},this.vfwIdList=[],this.flowLightLineOp={geojson:"",width:8,color:"rgba(255,255,0,0.5)",speed:8}}return l(e,[{key:"createCircleWave",value:function(e){var r=b("cw_"),t={id:r,position:Cesium.Cartesian3.fromDegrees(e.position[0],e.position[1],e.position[2]),ellipse:{semiMinorAxis:new Cesium.CallbackProperty((function(r){return e.maxRadius}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(r){return e.maxRadius}),!1),material:new ANOVGIS.CircleWaveMaterialProperty({duration:e.duration,gradient:.5,color:new Cesium.Color.fromCssColorString(e.color),count:e.count})}};return this.viewer.entities.add(t),r}},{key:"deleteEffect",value:function(e){var r=I(e,this.viewer);this.viewer.entities.remove(r)}},{key:"showEffect",value:function(e,r){I(e,this.viewer).show=r}},{key:"addRader",value:function(e){var r=b("rd_"),t=Cesium.buildModuleUrl("static/images/rader-g.png"),i=Cesium.Color.fromCssColorString("rgba(36,229,104,0.7)");1==e.colorType&&(t=Cesium.buildModuleUrl("static/images/rader-y.png"),i=Cesium.Color.fromCssColorString("rgba(229, 225, 36 , 0.8)")),2==e.colorType&&(t=Cesium.buildModuleUrl("static/images/rader-r.png"),i=Cesium.Color.fromCssColorString("rgba(229, 225, 36 , 0.8)"));var o,a,n,l={position:Cesium.Cartesian3.fromDegrees(e.position[0],e.position[1]),name:"图片雷达",ellipse:{semiMajorAxis:e.radius,semiMinorAxis:e.radius,material:new Cesium.ImageMaterialProperty({image:t,color:i}),height:20,heightReference:Cesium.HeightReference.RELATIVE_TO_GROUND,outline:e.outline,outlineWidth:5,outlineColor:i}};return o=this.viewer.entities.add(l).ellipse,a=0,n=e.speed,o.stRotation=new Cesium.CallbackProperty((function(){return((a+=n)>=360||a<=-360)&&(a=0),Cesium.Math.toRadians(a)}),!1),r}},{key:"addVerFlywire",value:function(e){if(this.vfwIdList&&this.vfwIdList.length>0){var r,t=w(this.vfwIdList);try{for(t.s();!(r=t.n()).done;){var i=r.value;this.deleteEffect(i,this.viewer)}}catch(e){t.e(e)}finally{t.f()}this.vfwIdList=[]}var o,a=w(function(e,r,t){for(var i=[],o=0;o<4;o++)for(var a=0;a<r;a++)if(0!=o)if(1!=o)if(2!=o){if(3==o){var n=e[0]+Math.random()*t,l=e[1]-Math.random()*t;i.push([n,l])}}else{var s=e[0]+Math.random()*t,u=e[1]+Math.random()*t;i.push([s,u])}else{var y=e[0]-Math.random()*t,c=e[1]-Math.random()*t;i.push([y,c])}else{var f=e[0]-Math.random()*t,d=e[1]+Math.random()*t;i.push([f,d])}return i}(e.position,e.num,e.density));try{for(a.s();!(o=a.n()).done;){var n=o.value,l=n[0],s=n[1],u=new Cesium.Cartesian3.fromDegrees(l,s,0),y=Math.round(Math.random()*e.height),c=new Cesium.Cartesian3.fromDegrees(l,s,y),f=[];f.push(u),f.push(c);var d=b("vfw_");this.viewer.entities.add({id:d,polyline:{positions:f,width:1.5,material:new ANOVGIS.PolylineVFlywireMaterialPoperty({color:Cesium.Color.fromCssColorString(e.color),speed:Math.round(Math.random()*e.speed),percent:.1,gradient:.01})}}),this.vfwIdList.push(d)}}catch(e){a.e(e)}finally{a.f()}}},{key:"deleteVerFlywire",value:function(){if(this.vfwIdList&&this.vfwIdList.length>0){var e,r=w(this.vfwIdList);try{for(r.s();!(e=r.n()).done;){var t=e.value;this.deleteEffect(t)}}catch(e){r.e(e)}finally{r.f()}this.vfwIdList=[]}}},{key:"showVerFlywire",value:function(e){if(this.vfwIdList&&this.vfwIdList.length>0){var r,t=w(this.vfwIdList);try{for(t.s();!(r=t.n()).done;){var i=r.value;this.showEffect(i,e)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"addFlowLightLine",value:function(e){var r=this,t=b("dsfll_");return Cesium.GeoJsonDataSource.load(e.geojson).then((function(i){i.name=t,r.viewer.dataSources.add(i);var o,a=w(i.entities.values);try{for(a.s();!(o=a.n()).done;){var n=o.value;n.polyline.width=e.width,n.polyline.material=new ANOVGIS.PolylineLightingTrailMaterialProperty({color:Cesium.Color.fromCssColorString(e.color),speed:e.speed})}}catch(e){a.e(e)}finally{a.f()}return t}))}},{key:"deleteFlowLightLine",value:function(e){var r=this.viewer.dataSources.getByName(e);r&&this.viewer.dataSources.remove(r)}}]),e}(),S=function(){function e(r,t){i(this,e),this.viewer=t,this.layerName=r,this.htmlLayer=null,this.option={position:[],height:100,horizontalOrigin:"RIGHT",verticalOrigin:"TOP",offsetX:0,offsetY:0,near:0,nearValue:1,far:1e4,farValue:0,html:"",pointerEvents:!1,extraData:null,winClickHandle:null},this.htmlLayer=function(e,r){var t=new ANOVGIS.HtmlLayer(e);return r.addLayer(t),t}(r,t)}return l(e,[{key:"createInfoWin",value:function(e){var r=new ANOVGIS.DivIcon(new ANOVGIS.Position(e.position[0],e.position[1],e.height),e.html),t={horizontalOrigin:e.horizontalOrigin,verticalOrigin:e.verticalOrigin,offsetX:e.offsetX,offsetY:e.offsetY,pointerEvents:e.pointerEvents,scaleByDistance:{near:e.near,nearValue:e.nearValue,far:e.far,farValue:e.farValue}};r.setOptions(t);var i=e.extraData;e.pointerEvents&&"function"==typeof e.winClickHandle&&r.addEventListener(ANOVGIS.MouseEventType.CLICK,(function(){e.winClickHandle(i)})),this.htmlLayer.addGraphic(r)}}]),e}();var _,k,M=function(){function e(){i(this,e)}return l(e,null,[{key:"addWorldLayer",value:function(e){s.addWorldLayer(e)}},{key:"setWorldLayer",value:function(e,r){s.addWorldLayer(e,r)}},{key:"addGeojsonBuild",value:function(e,r,t){new p(t).addGeojsonBuild(e,r)}},{key:"createMapEffect",value:function(e){return new L(e)}},{key:"createInfoWin",value:function(e,r){return new S(e,r)}}]),e}();_=M,(k=a(k="effectObj"))in _?Object.defineProperty(_,k,{value:null,enumerable:!0,configurable:!0,writable:!0}):_[k]=null;const O={ApplyApi:M}}},r={};function t(i){var o=r[i];if(void 0!==o)return o.exports;var a=r[i]={exports:{}};return e[i](a,a.exports,t),a.exports}t.d=(e,r)=>{for(var i in r)t.o(r,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{t.r(i),t.d(i,{default:()=>r});var e=function(e){if(!e)throw new Error("Missing ANOVGIS Package");e.Initialized_applyfn||(e.initEnvironment(),e.Initialized&&e.mixin(t(879).Z),e.Initialized_applyfn=!0)};"undefined"!=typeof window&&window.ANOVGIS&&e(window.ANOVGIS);const r={version:"1.0.1",author:"huj75@chinaunicom.cn",install:e}})(),i})()));
|