gis-cesium-helper 1.0.26 → 1.1.1

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/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  ## Usage
2
2
 
3
- + 项目依赖了我封装的库,使用npm i gis-cesium-helper -S即可
4
- + BaseGlobe组件可选择传入配置文件的url或json对象,scene节点为cesium自带的构造参数,control为地图控件,terrain为高程,models为三维模型,basemaps为底图,layers为业务数据图层
3
+ + 项目依赖了我封装的库,使用npm i gis-cesium-helper -S安装即可,Cesium和gis3d已进行minify处理,提升运行性能,建议直接在html中引用
4
+ + BaseGlobe组件可选择传入配置文件的url或json对象,scene节点为cesium自带的构造参数,control为地图控件,terrain为高程,models为三维模型,basemaps为底图,layers为业务数据图层
5
+ + 地图要素状态的变更可直接对实例化类的属性赋值或使用set方法进行实时响应
@@ -16,7 +16,6 @@ var __spreadValues = (a, b) => {
16
16
  };
17
17
  import * as Gis from "gis-common";
18
18
  import { EventDispatcher, DomUtils, BrowserUtils, Utils } from "gis-common";
19
- import { openBlock, createElementBlock, createElementVNode, renderSlot } from "vue";
20
19
  var initialize = "";
21
20
  var main = "";
22
21
  var overrideMap = "";
@@ -28,10 +27,10 @@ class BaseObject extends EventDispatcher {
28
27
  }
29
28
  BaseObject.CLS = "gis";
30
29
  class ToolBar extends BaseObject {
31
- constructor(earth, options2 = {}) {
30
+ constructor(earth, options = {}) {
32
31
  super(earth);
33
- this.position = options2.position || "topright";
34
- this.orientation = options2.orientation || "horizontal";
32
+ this.position = options.position || "topright";
33
+ this.orientation = options.orientation || "horizontal";
35
34
  this.container = DomUtils.create("div", ToolBar.CLS + " " + this.position, this.earth.container);
36
35
  this.container.style.flexDirection = this.orientation === "vertical" ? "column" : "initial";
37
36
  this.measure = new gis3d.thing.Measure({
@@ -69,14 +68,14 @@ class ToolBar extends BaseObject {
69
68
  }
70
69
  }
71
70
  class ToolBarItem {
72
- constructor(options2 = {}) {
73
- this.iconCls = options2.iconCls;
74
- this.iconUrl = options2.iconUrl;
75
- this.insertIndex = Utils.isEmpty(options2.insertIndex) ? 9999 : options2.insertIndex;
71
+ constructor(options = {}) {
72
+ this.iconCls = options.iconCls;
73
+ this.iconUrl = options.iconUrl;
74
+ this.insertIndex = Utils.isEmpty(options.insertIndex) ? 9999 : options.insertIndex;
76
75
  this.container = DomUtils.create("div", ToolBarItem.CLS);
77
- this.container.title = options2.title || "";
76
+ this.container.title = options.title || "";
78
77
  this.container.innerHTML = this.iconCls ? `<i class="${this.iconCls}"></i>` : this.iconUrl ? `<img style="width: 100%; height: 100%; object-fit: none;" src="${this.iconUrl}"/>` : "";
79
- this.container.addEventListener("click", options2.click);
78
+ this.container.addEventListener("click", options.click);
80
79
  }
81
80
  }
82
81
  const switchFullScreen = function(ctx) {
@@ -152,94 +151,14 @@ const clear = function(ctx) {
152
151
  };
153
152
  ToolBar.CLS = BaseObject.CLS + "-toolbar";
154
153
  ToolBarItem.CLS = ToolBar.CLS + "-item";
155
- var main_vue_vue_type_style_index_0_lang = "";
156
- var _export_sfc = (sfc, props) => {
157
- const target = sfc.__vccOpts || sfc;
158
- for (const [key, val] of props) {
159
- target[key] = val;
160
- }
161
- return target;
162
- };
163
- const _sfc_main = {
164
- name: "BaseGlobe",
165
- props: {
166
- mapKey: {
167
- type: String,
168
- default: ""
169
- },
170
- url: String,
171
- options: Object
172
- },
173
- data() {
174
- return {};
175
- },
176
- mounted() {
177
- if (this.url) {
178
- gis3d.Resource.fetchJson({ url: this.url }).then((data) => {
179
- const options2 = __spreadValues(__spreadValues({}, data.map3d), this.options);
180
- console.log("\u8BFB\u53D6\u53C2\u6570", options2);
181
- this.initMars3d(options2);
182
- });
183
- } else {
184
- options = this.options;
185
- this.initMars3d(this.options);
186
- console.log("\u8BFB\u53D6\u53C2\u6570", this.options);
187
- }
188
- },
189
- provide() {
190
- return {
191
- getEarthInstance: () => this.map
192
- };
193
- },
194
- methods: {
195
- initMars3d(mapOptions) {
196
- if (this.map) {
197
- this.map.destroy();
198
- }
199
- const map = new gis3d.Map(`gis-container${this.mapKey}`, mapOptions);
200
- this.map = map;
201
- map.scene.globe.depthTestAgainstTerrain;
202
- console.log("\u521B\u5EFA\u5730\u56FE", map);
203
- console.log("\u72B6\u6001\u680F", map.controls.locationBar);
204
- mapOptions.scene.loadAnimation && map.openFlyAnimation();
205
- mapOptions.control.toolbar && (map.controls.toolbar = new ToolBar(map, {}));
206
- this.$emit("ready", map);
207
- }
208
- },
209
- beforeDestroy() {
210
- this.map && this.map.destroy();
211
- this.$emit("destroyed", this.map);
212
- delete this.map;
213
- }
214
- };
215
- const _hoisted_1 = { class: "gis-earth" };
216
- const _hoisted_2 = ["id"];
217
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", { class: "gis-mark" }, null, -1);
218
- const _hoisted_4 = [
219
- _hoisted_3
220
- ];
221
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
222
- return openBlock(), createElementBlock("div", _hoisted_1, [
223
- createElementVNode("div", {
224
- id: `gis-container${$props.mapKey}`,
225
- class: "gis-container"
226
- }, _hoisted_4, 8, _hoisted_2),
227
- renderSlot(_ctx.$slots, "default")
228
- ]);
229
- }
230
- var Main = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
231
- var MyComponents = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
232
- __proto__: null,
233
- BaseGlobe: Main
234
- }, Symbol.toStringTag, { value: "Module" }));
235
154
  class GraphicLayerLayer extends BaseObject {
236
- constructor(earth, options2 = {}) {
155
+ constructor(earth, options = {}) {
237
156
  super(earth);
238
- this.options = options2;
239
- this.graphicLayer = new gis3d.layer.GraphicLayer(options2).addTo(earth);
240
- this.id = options2.id;
241
- this.show = options2.show || false;
242
- this.editCapacity = options2.hasEdit || false;
157
+ this.options = options;
158
+ this.graphicLayer = new gis3d.layer.GraphicLayer(options).addTo(earth);
159
+ this.id = options.id;
160
+ this.show = options.show || false;
161
+ this.editCapacity = options.hasEdit || false;
243
162
  }
244
163
  setLayerVisible(val) {
245
164
  this.graphicLayer.show = val;
@@ -254,19 +173,17 @@ class GraphicLayerLayer extends BaseObject {
254
173
  this.setEditCapacity(val);
255
174
  }
256
175
  }
257
- const install = function(Vue, options2 = {}) {
176
+ const install = function(Vue, options = {}) {
177
+ window.Gis = Gis;
178
+ Vue.config.globalProperties ? Vue.config.globalProperties.utils = Gis.Utils : Vue.prototype.utils = Gis.Utils;
258
179
  if (install.installed)
259
180
  return;
260
- window.Gis = Gis;
261
- Object.values(MyComponents).map((component) => {
262
- Vue.component(component.name, component);
263
- });
264
181
  };
265
182
  if (typeof window !== "undefined" && window.Vue) {
266
183
  install(window.Vue);
267
184
  }
268
185
  var index = __spreadValues({
269
186
  install
270
- }, MyComponents);
187
+ }, Gis);
271
188
  export { GraphicLayerLayer as BaseGraphicLayer, BaseObject, ToolBar, index as default };
272
189
  //# sourceMappingURL=gis-cesium-helper.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gis-cesium-helper.es.js","sources":["../src/class/core/BaseObject.js","../src/class/control/ToolBar.js","../plugin-vue:export-helper","../src/components/BaseGlobe/main.vue","../src/class/core/BaseGraphicLayer.js","../src/index.js"],"sourcesContent":["import { EventDispatcher } from 'gis-common'\r\nexport default class BaseObject extends EventDispatcher {\r\n constructor(earth) {\r\n super()\r\n this.earth = earth\r\n }\r\n}\r\nBaseObject.CLS = 'gis'\r\n","import { BrowserUtils, DomUtils, Utils } from 'gis-common'\r\nimport BaseObject from '../core/BaseObject'\r\nexport default class ToolBar extends BaseObject {\r\n\tconstructor(earth, options = {}) {\r\n\t\tsuper(earth)\r\n\t\tthis.position = options.position || 'topright'\r\n\t\tthis.orientation = options.orientation || 'horizontal'\r\n\t\tthis.container = DomUtils.create('div', ToolBar.CLS + ' ' + this.position, this.earth.container)\r\n\t\tthis.container.style.flexDirection = this.orientation === 'vertical' ? 'column' : 'initial'\r\n\t\tthis.measure = new gis3d.thing.Measure({\r\n\t\t\tlabel: {\r\n\t\t\t\tcolor: '#ffffff',\r\n\t\t\t\tfont_family: '楷体',\r\n\t\t\t\tfont_size: 18,\r\n\t\t\t\tbackground: false,\r\n\t\t\t},\r\n\t\t}).addTo(this.earth)\r\n\t\tthis.items = [\r\n\t\t\tnew measureDis(this),\r\n\t\t\tnew measureArea(this),\r\n\t\t\tnew measureHeightTriangle(this),\r\n\t\t\tnew clear(this),\r\n\t\t\tnew refresh(this),\r\n\t\t\tnew switchFullScreen(this),\r\n\t\t]\r\n\t\tthis.createDom()\r\n\t\tconsole.log('工具栏', this)\r\n\t}\r\n\tcreateDom() {\r\n\t\tfor (let i = 0, l = this.items.length; i < l; i++) {\r\n\t\t\tconst item = this.items[i]\r\n\t\t\tthis.container.appendChild(item.container)\r\n\t\t}\r\n\t}\r\n\tinsertItem(item) {\r\n\t\tif (item.insertIndex > this.items.length) {\r\n\t\t\tthis.container.appendChild(item.container)\r\n\t\t} else {\r\n\t\t\tconst nearestNode = this.items.find(d => d.insertIndex >= item.insertIndex)\r\n\t\t\tnearestNode && this.container.insertBefore(item.container, nearestNode.container)\r\n\t\t}\r\n\t}\r\n}\r\nexport class ToolBarItem {\r\n\tconstructor(options = {}) {\r\n\t\tthis.iconCls = options.iconCls\r\n\t\tthis.iconUrl = options.iconUrl\r\n\t\tthis.insertIndex = Utils.isEmpty(options.insertIndex) ? 9999 : options.insertIndex\r\n\t\tthis.container = DomUtils.create('div', ToolBarItem.CLS)\r\n\t\tthis.container.title = options.title || ''\r\n\t\tthis.container.innerHTML = this.iconCls\r\n\t\t\t? `<i class=\"${this.iconCls}\"></i>`\r\n\t\t\t: this.iconUrl\r\n\t\t\t? `<img style=\"width: 100%; height: 100%; object-fit: none;\" src=\"${this.iconUrl}\"/>`\r\n\t\t\t: ''\r\n\t\tthis.container.addEventListener('click', options.click)\r\n\t}\r\n}\r\nexport const switchFullScreen = function (ctx) {\r\n\tthis.context = ctx\r\n\tthis.isFull = false\r\n\tconst toolBarItem = new ToolBarItem({\r\n\t\ttitle: '全屏',\r\n\t\ticonUrl: new URL('../../assets/images/full.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.isFull = !this.isFull\r\n\t\t\ttoolBarItem.container.title = this.isFull ? '退出全屏' : '全屏'\r\n\t\t\ttoolBarItem.container.firstElementChild.src = this.isFull\r\n\t\t\t\t? new URL('../../assets/images/exit-full.png', import.meta.url).href\r\n\t\t\t\t: new URL('../../assets/images/full.png', import.meta.url).href\r\n\t\t\tthis.isFull ? BrowserUtils.switchFullScreen(true) : BrowserUtils.switchFullScreen(false)\r\n\t\t},\r\n\t})\r\n\treturn toolBarItem\r\n}\r\nexport const refresh = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '刷新',\r\n\t\ticonUrl: new URL('../../assets/images/refresh.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\twindow.document.location.reload()\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureDis = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '距离',\r\n\t\ticonUrl: new URL('../../assets/images/distance.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.distanceSurface()\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureArea = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '面积',\r\n\t\ticonUrl: new URL('../../assets/images/area.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.areaSurface({ splitNum: 10 })\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureHeightTriangle = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '三角测量',\r\n\t\ticonUrl: new URL('../../assets/images/triangle.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.heightTriangle()\r\n\t\t},\r\n\t})\r\n}\r\nexport const clear = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '清除',\r\n\t\ticonUrl: new URL('../../assets/images/delete.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.clear()\r\n\t\t},\r\n\t})\r\n}\r\nToolBar.CLS = BaseObject.CLS + '-toolbar'\r\nToolBarItem.CLS = ToolBar.CLS + '-item'\r\n","\nexport default (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n}\n","<template>\n\t<div class=\"gis-earth\">\n\t\t<div :id=\"`gis-container${mapKey}`\" class=\"gis-container\">\n\t\t\t<div class=\"gis-mark\"></div>\n\t\t</div>\n\t\t<slot></slot>\n\t</div>\n</template>\n<script>\nimport ToolBar from '../../class/control/ToolBar'\nexport default {\n\tname: 'BaseGlobe',\n\tprops: {\n\t\t// 地图唯一性标识\n\t\tmapKey: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t// 初始化配置config.json的地址\n\t\turl: String,\n\t\t// 自定义参数\n\t\toptions: Object,\n\t},\n\tdata() {\n\t\treturn {}\n\t},\n\tmounted() {\n\t\tif (this.url) {\n\t\t\tgis3d.Resource.fetchJson({ url: this.url }).then(data => {\n\t\t\t\tconst options = { ...data.map3d, ...this.options }\n\t\t\t\tconsole.log('读取参数', options)\n\t\t\t\tthis.initMars3d(options)\n\t\t\t})\n\t\t} else {\n\t\t\toptions = this.options\n\t\t\tthis.initMars3d(this.options)\n\t\t\tconsole.log('读取参数', this.options)\n\t\t}\n\t},\n\tprovide() {\n\t\treturn {\n\t\t\tgetEarthInstance: () => this.map,\n\t\t}\n\t},\n\tmethods: {\n\t\tinitMars3d(mapOptions) {\n\t\t\tif (this.map) {\n\t\t\t\tthis.map.destroy()\n\t\t\t}\n\t\t\tconst map = new gis3d.Map(`gis-container${this.mapKey}`, mapOptions)\n\t\t\tthis.map = map\n\t\t\tmap.scene.globe.depthTestAgainstTerrain\n\t\t\tconsole.log('创建地图', map)\n\t\t\tconsole.log('状态栏', map.controls.locationBar)\n\t\t\tmapOptions.scene.loadAnimation && map.openFlyAnimation()\n\t\t\tmapOptions.control.toolbar && (map.controls.toolbar = new ToolBar(map, {}))\n\t\t\t// 抛出事件\n\t\t\tthis.$emit('ready', map)\n\t\t},\n\t},\n\tbeforeDestroy() {\n\t\tthis.map && this.map.destroy()\n\t\tthis.$emit('destroyed', this.map)\n\t\tdelete this.map\n\t},\n}\n</script>\n<style lang=\"scss\">\n.gis-earth,\n.gis-container {\n\twidth: 100%;\n\theight: 100%;\n\tuser-select: none;\n\toverflow: hidden;\n\tposition: relative;\n}\n\n/**cesium 工具按钮栏*/\n.cesium-viewer-toolbar {\n\ttop: auto;\n\tbottom: 35px;\n\tleft: 12px;\n\tright: auto;\n}\n.cesium-toolbar-button img {\n\theight: 100%;\n}\n.cesium-viewer-toolbar > .cesium-toolbar-button,\n.cesium-navigationHelpButton-wrapper,\n.cesium-viewer-geocoderContainer {\n\tmargin-bottom: 5px;\n\tfloat: left;\n\tclear: both;\n\ttext-align: center;\n}\n.cesium-button {\n\tbackground-color: #3f4854;\n\tcolor: #e6e6e6;\n\tfill: #e6e6e6;\n\tbox-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);\n\tline-height: 32px;\n}\n\n/**cesium 底图切换面板*/\n.cesium-baseLayerPicker-dropDown {\n\tbottom: 0;\n\tleft: 40px;\n\tmax-height: 700px;\n\tmargin-bottom: 5px;\n}\n\n/**cesium 帮助面板*/\n.cesium-navigation-help {\n\ttop: auto;\n\tbottom: 0;\n\tleft: 40px;\n\ttransform-origin: left bottom;\n}\n\n/**cesium 二维三维切换*/\n.cesium-sceneModePicker-wrapper {\n\twidth: auto;\n}\n.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon {\n\tfloat: right;\n\tmargin: 0 3px;\n}\n\n/**cesium POI查询输入框*/\n.cesium-viewer-geocoderContainer .search-results {\n\tleft: 0;\n\tright: 40px;\n\twidth: auto;\n\tz-index: 9999;\n}\n.cesium-geocoder-searchButton {\n\tbackground-color: #3f4854;\n}\n.cesium-viewer-geocoderContainer .cesium-geocoder-input {\n\tbackground-color: rgba(63, 72, 84, 0.7);\n}\n.cesium-viewer-geocoderContainer .cesium-geocoder-input:focus {\n\tbackground-color: rgba(63, 72, 84, 0.9);\n}\n.cesium-viewer-geocoderContainer .search-results {\n\tbackground-color: #3f4854;\n}\n\n/**cesium info信息框*/\n.cesium-infoBox {\n\ttop: 50px;\n\tbackground: rgba(63, 72, 84, 0.9);\n}\n.cesium-infoBox-title {\n\tbackground-color: #3f4854;\n}\n\n/**cesium 任务栏的FPS信息*/\n.cesium-performanceDisplay-defaultContainer {\n\ttop: auto;\n\tbottom: 35px;\n\tright: 50px;\n}\n.cesium-performanceDisplay-ms,\n.cesium-performanceDisplay-fps {\n\tcolor: #fff;\n}\n\n/**cesium tileset调试信息面板*/\n.cesium-viewer-cesiumInspectorContainer {\n\ttop: 10px;\n\tleft: 10px;\n\tright: auto;\n\tbackground-color: #3f4854;\n}\n.gis-mark {\n\tposition: absolute;\n\tbackground: linear-gradient(45deg, #000, transparent, #000);\n\tz-index: 990;\n\twidth: 100%;\n\theight: 30px;\n\tbottom: 0;\n}\n</style>\n","import BaseObject from './BaseObject'\r\nexport default class GraphicLayerLayer extends BaseObject {\r\n\tconstructor(earth, options = {}) {\r\n\t\tsuper(earth)\r\n\t\tthis.options = options\r\n\t\tthis.graphicLayer = new gis3d.layer.GraphicLayer(options).addTo(earth)\r\n\t\tthis.id = options.id\r\n\t\tthis.show = options.show || false\r\n\t\tthis.editCapacity = options.hasEdit || false\r\n\t}\r\n\tsetLayerVisible(val) {\r\n\t\tthis.graphicLayer.show = val\r\n\t}\r\n\tsetEditCapacity(val) {\r\n\t\tthis.graphicLayer.hasEdit = val\r\n\t}\r\n\tset show(val) {\r\n\t\tthis.setLayerVisible(val)\r\n\t}\r\n\tset editCapacity(val) {\r\n\t\tthis.setEditCapacity(val)\r\n\t}\r\n}\r\n","import * as Gis from 'gis-common'\r\nimport './assets/style/initialize.scss'\r\nimport './assets/style/main.scss'\r\nimport './assets/style/override-map.css'\r\nimport * as MyComponents from './components'\r\nconst install = function (Vue, options = {}) {\r\n\tif (install.installed) return\r\n\twindow.Gis = Gis\r\n\tObject.values(MyComponents).map(component => {\r\n\t\tVue.component(component.name, component)\r\n\t})\r\n}\r\nif (typeof window !== 'undefined' && window.Vue) {\r\n\tinstall(window.Vue)\r\n}\r\nexport * from './class'\r\nexport default {\r\n\tinstall,\r\n\t...MyComponents,\r\n}\r\n"],"names":["_openBlock","_createElementBlock","_createElementVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACe,MAAM,mBAAmB,gBAAgB;AAAA,EACpD,YAAY,OAAO;AACf,UAAO;AACP,SAAK,QAAQ;AAAA,EAChB;AACL;AACA,WAAW,MAAM;ACLF,MAAM,gBAAgB,WAAW;AAAA,EAC/C,YAAY,OAAO,WAAU,IAAI;AAChC,UAAM,KAAK;AACX,SAAK,WAAW,SAAQ,YAAY;AACpC,SAAK,cAAc,SAAQ,eAAe;AAC1C,SAAK,YAAY,SAAS,OAAO,OAAO,QAAQ,MAAM,MAAM,KAAK,UAAU,KAAK,MAAM,SAAS;AAC/F,SAAK,UAAU,MAAM,gBAAgB,KAAK,gBAAgB,aAAa,WAAW;AAClF,SAAK,UAAU,IAAI,MAAM,MAAM,QAAQ;AAAA,MACtC,OAAO;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,QACb,WAAW;AAAA,QACX,YAAY;AAAA,MACZ;AAAA,IACJ,CAAG,EAAE,MAAM,KAAK,KAAK;AACnB,SAAK,QAAQ;AAAA,MACZ,IAAI,WAAW,IAAI;AAAA,MACnB,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AACb,SAAO,OAAO,YAAY,EAAE,IAAI,eAAa;AAC5C,QAAI,UAAU,UAAU,MAAM,SAAS;AAAA,EACzC,CAAE;AACF;AACA,IAAI,OAAO,WAAW,eAAe,OAAO,KAAK;AAChD,UAAQ,OAAO,GAAG;AACnB;AAEA,IAAe,QAAA;AAAA,EACd;AAAA,GACG;;"}
1
+ {"version":3,"file":"gis-cesium-helper.es.js","sources":["../src/class/core/BaseObject.js","../src/class/control/ToolBar.js","../src/class/core/BaseGraphicLayer.js","../src/index.js"],"sourcesContent":["import { EventDispatcher } from 'gis-common'\r\nexport default class BaseObject extends EventDispatcher {\r\n constructor(earth) {\r\n super()\r\n this.earth = earth\r\n }\r\n}\r\nBaseObject.CLS = 'gis'\r\n","import { BrowserUtils, DomUtils, Utils } from 'gis-common'\r\nimport BaseObject from '../core/BaseObject'\r\nexport default class ToolBar extends BaseObject {\r\n\tconstructor(earth, options = {}) {\r\n\t\tsuper(earth)\r\n\t\tthis.position = options.position || 'topright'\r\n\t\tthis.orientation = options.orientation || 'horizontal'\r\n\t\tthis.container = DomUtils.create('div', ToolBar.CLS + ' ' + this.position, this.earth.container)\r\n\t\tthis.container.style.flexDirection = this.orientation === 'vertical' ? 'column' : 'initial'\r\n\t\tthis.measure = new gis3d.thing.Measure({\r\n\t\t\tlabel: {\r\n\t\t\t\tcolor: '#ffffff',\r\n\t\t\t\tfont_family: '楷体',\r\n\t\t\t\tfont_size: 18,\r\n\t\t\t\tbackground: false,\r\n\t\t\t},\r\n\t\t}).addTo(this.earth)\r\n\t\tthis.items = [\r\n\t\t\tnew measureDis(this),\r\n\t\t\tnew measureArea(this),\r\n\t\t\tnew measureHeightTriangle(this),\r\n\t\t\tnew clear(this),\r\n\t\t\tnew refresh(this),\r\n\t\t\tnew switchFullScreen(this),\r\n\t\t]\r\n\t\tthis.createDom()\r\n\t\tconsole.log('工具栏', this)\r\n\t}\r\n\tcreateDom() {\r\n\t\tfor (let i = 0, l = this.items.length; i < l; i++) {\r\n\t\t\tconst item = this.items[i]\r\n\t\t\tthis.container.appendChild(item.container)\r\n\t\t}\r\n\t}\r\n\tinsertItem(item) {\r\n\t\tif (item.insertIndex > this.items.length) {\r\n\t\t\tthis.container.appendChild(item.container)\r\n\t\t} else {\r\n\t\t\tconst nearestNode = this.items.find(d => d.insertIndex >= item.insertIndex)\r\n\t\t\tnearestNode && this.container.insertBefore(item.container, nearestNode.container)\r\n\t\t}\r\n\t}\r\n}\r\nexport class ToolBarItem {\r\n\tconstructor(options = {}) {\r\n\t\tthis.iconCls = options.iconCls\r\n\t\tthis.iconUrl = options.iconUrl\r\n\t\tthis.insertIndex = Utils.isEmpty(options.insertIndex) ? 9999 : options.insertIndex\r\n\t\tthis.container = DomUtils.create('div', ToolBarItem.CLS)\r\n\t\tthis.container.title = options.title || ''\r\n\t\tthis.container.innerHTML = this.iconCls\r\n\t\t\t? `<i class=\"${this.iconCls}\"></i>`\r\n\t\t\t: this.iconUrl\r\n\t\t\t? `<img style=\"width: 100%; height: 100%; object-fit: none;\" src=\"${this.iconUrl}\"/>`\r\n\t\t\t: ''\r\n\t\tthis.container.addEventListener('click', options.click)\r\n\t}\r\n}\r\nexport const switchFullScreen = function (ctx) {\r\n\tthis.context = ctx\r\n\tthis.isFull = false\r\n\tconst toolBarItem = new ToolBarItem({\r\n\t\ttitle: '全屏',\r\n\t\ticonUrl: new URL('../../assets/images/full.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.isFull = !this.isFull\r\n\t\t\ttoolBarItem.container.title = this.isFull ? '退出全屏' : '全屏'\r\n\t\t\ttoolBarItem.container.firstElementChild.src = this.isFull\r\n\t\t\t\t? new URL('../../assets/images/exit-full.png', import.meta.url).href\r\n\t\t\t\t: new URL('../../assets/images/full.png', import.meta.url).href\r\n\t\t\tthis.isFull ? BrowserUtils.switchFullScreen(true) : BrowserUtils.switchFullScreen(false)\r\n\t\t},\r\n\t})\r\n\treturn toolBarItem\r\n}\r\nexport const refresh = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '刷新',\r\n\t\ticonUrl: new URL('../../assets/images/refresh.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\twindow.document.location.reload()\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureDis = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '距离',\r\n\t\ticonUrl: new URL('../../assets/images/distance.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.distanceSurface()\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureArea = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '面积',\r\n\t\ticonUrl: new URL('../../assets/images/area.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.areaSurface({ splitNum: 10 })\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureHeightTriangle = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '三角测量',\r\n\t\ticonUrl: new URL('../../assets/images/triangle.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.heightTriangle()\r\n\t\t},\r\n\t})\r\n}\r\nexport const clear = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '清除',\r\n\t\ticonUrl: new URL('../../assets/images/delete.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.clear()\r\n\t\t},\r\n\t})\r\n}\r\nToolBar.CLS = BaseObject.CLS + '-toolbar'\r\nToolBarItem.CLS = ToolBar.CLS + '-item'\r\n","import BaseObject from './BaseObject'\r\nexport default class GraphicLayerLayer extends BaseObject {\r\n\tconstructor(earth, options = {}) {\r\n\t\tsuper(earth)\r\n\t\tthis.options = options\r\n\t\tthis.graphicLayer = new gis3d.layer.GraphicLayer(options).addTo(earth)\r\n\t\tthis.id = options.id\r\n\t\tthis.show = options.show || false\r\n\t\tthis.editCapacity = options.hasEdit || false\r\n\t}\r\n\tsetLayerVisible(val) {\r\n\t\tthis.graphicLayer.show = val\r\n\t}\r\n\tsetEditCapacity(val) {\r\n\t\tthis.graphicLayer.hasEdit = val\r\n\t}\r\n\tset show(val) {\r\n\t\tthis.setLayerVisible(val)\r\n\t}\r\n\tset editCapacity(val) {\r\n\t\tthis.setEditCapacity(val)\r\n\t}\r\n}\r\n","import * as Gis from 'gis-common'\r\nimport './assets/style/initialize.scss'\r\nimport './assets/style/main.scss'\r\nimport './assets/style/override-map.css'\r\nconst install = function (Vue, options = {}) {\r\n\twindow.Gis = Gis\r\n\tVue.config.globalProperties ? (Vue.config.globalProperties.utils = Gis.Utils) : (Vue.prototype.utils = Gis.Utils)\r\n\tif (install.installed) return\r\n}\r\nif (typeof window !== 'undefined' && window.Vue) {\r\n\tinstall(window.Vue)\r\n}\r\nexport * from './class'\r\nexport default {\r\n\tinstall,\r\n\t...Gis,\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACe,MAAM,mBAAmB,gBAAgB;AAAA,EACpD,YAAY,OAAO;AACf,UAAO;AACP,SAAK,QAAQ;AAAA,EAChB;AACL;AACA,WAAW,MAAM;ACLF,MAAM,gBAAgB,WAAW;AAAA,EAC/C,YAAY,OAAO,UAAU,IAAI;AAChC,UAAM,KAAK;AACX,SAAK,WAAW,QAAQ,YAAY;AACpC,SAAK,cAAc,QAAQ,eAAe;AAC1C,SAAK,YAAY,SAAS,OAAO,OAAO,QAAQ,MAAM,MAAM,KAAK,UAAU,KAAK,MAAM,SAAS;AAC/F,SAAK,UAAU,MAAM,gBAAgB,KAAK,gBAAgB,aAAa,WAAW;AAClF,SAAK,UAAU,IAAI,MAA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AAChD,UAAQ,OAAO,GAAG;AACnB;AAEA,IAAe,QAAA;AAAA,EACd;AAAA,GACG;;"}
@@ -1,2 +1,2 @@
1
- var L=Object.defineProperty;var u=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var f=(A,n,s)=>n in A?L(A,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):A[n]=s,l=(A,n)=>{for(var s in n||(n={}))v.call(n,s)&&f(A,s,n[s]);if(u)for(var s of u(n))G.call(n,s)&&f(A,s,n[s]);return A};(function(A,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("gis-common"),require("vue")):typeof define=="function"&&define.amd?define(["exports","gis-common","vue"],n):(A=typeof globalThis!="undefined"?globalThis:A||self,n(A["gis-cesium-helper"]={},A.Gis,A.Vue))})(this,function(A,n,s){"use strict";function m(t){if(t&&t.__esModule)return t;var e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var w=m(n),M="",D="",T="";class c extends n.EventDispatcher{constructor(e){super(),this.earth=e}}c.CLS="gis";class a extends c{constructor(e,i={}){super(e),this.position=i.position||"topright",this.orientation=i.orientation||"horizontal",this.container=n.DomUtils.create("div",a.CLS+" "+this.position,this.earth.container),this.container.style.flexDirection=this.orientation==="vertical"?"column":"initial",this.measure=new gis3d.thing.Measure({label:{color:"#ffffff",font_family:"\u6977\u4F53",font_size:18,background:!1}}).addTo(this.earth),this.items=[new S(this),new R(this),new B(this),new E(this),new C(this),new p(this)],this.createDom(),console.log("\u5DE5\u5177\u680F",this)}createDom(){for(let e=0,i=this.items.length;e<i;e++){const r=this.items[e];this.container.appendChild(r.container)}}insertItem(e){if(e.insertIndex>this.items.length)this.container.appendChild(e.container);else{const i=this.items.find(r=>r.insertIndex>=e.insertIndex);i&&this.container.insertBefore(e.container,i.container)}}}class o{constructor(e={}){this.iconCls=e.iconCls,this.iconUrl=e.iconUrl,this.insertIndex=n.Utils.isEmpty(e.insertIndex)?9999:e.insertIndex,this.container=n.DomUtils.create("div",o.CLS),this.container.title=e.title||"",this.container.innerHTML=this.iconCls?`<i class="${this.iconCls}"></i>`:this.iconUrl?`<img style="width: 100%; height: 100%; object-fit: none;" src="${this.iconUrl}"/>`:"",this.container.addEventListener("click",e.click)}}const p=function(t){this.context=t,this.isFull=!1;const e=new o({title:"\u5168\u5C4F",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANRJREFUOE+tU8sNwlAMs5dgiMIenIATTAOCCqYpp5YTewBDsIRRqgSF8pGgRKrU6j07juMSPYuGl6QOzxnAguTFzwsAFYBhvkerFwQP4ABIeiJ5R2CYkuQmd5Nk3+tPCqxzlngnkbQFsEzg9m5WcLKZ/YkuDcmZj9gAmDhB6X5UJEfhQZEMM6kGHJO8OsEAwBFAHaOZJ4ZpCfrUfwhCjsv9fgRJYeIcQKzvQHLqpDWA9t3P92ZkNtGS2F3jjuQqqcoZeFpjN8o/BSmW8Zcof/cz9cnBDVdRjBGrLGoRAAAAAElFTkSuQmCC",self.location).href,insertIndex:6,click:i=>{this.isFull=!this.isFull,e.container.title=this.isFull?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F",e.container.firstElementChild.src=this.isFull?new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAASRJREFUOE+lkz1KBUEQhL/yGN7A5yXUGwgqKF5A1BP4wF3wBv7cwEATM1MFU0P1gbmRmWBiYEuPPcswDLI8g2V3drqrumaqBGBm18CXpF1fx7+JpJf6O9aXwKukXtG8GX1nkg7NbAKcS1qNhidgywHN7BQ4iPoE4Gg7mRk4AdaB9wLAgGfgBpgWtb2C4QLYKzb8874CqLbpkoRCszMfFVV/AaRmr80TrAAuZXEkwBuwLenBz8CbnT2piefb34WEO2AhCJ00Tz4dJNQCx67/D5DvvMVYSWiV7OdDdOO4G5dHHqJ7Ihlr3mvsJXXlNc5jpATSsrIbZKNh5VvgE8i58QFSFnyU4yEcUtcI0yOwJumjCt+QhV89oasR5yVJs8L2V8DM638ATvezacWYQNMAAAAASUVORK5CYII=",self.location).href:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANRJREFUOE+tU8sNwlAMs5dgiMIenIATTAOCCqYpp5YTewBDsIRRqgSF8pGgRKrU6j07juMSPYuGl6QOzxnAguTFzwsAFYBhvkerFwQP4ABIeiJ5R2CYkuQmd5Nk3+tPCqxzlngnkbQFsEzg9m5WcLKZ/YkuDcmZj9gAmDhB6X5UJEfhQZEMM6kGHJO8OsEAwBFAHaOZJ4ZpCfrUfwhCjsv9fgRJYeIcQKzvQHLqpDWA9t3P92ZkNtGS2F3jjuQqqcoZeFpjN8o/BSmW8Zcof/cz9cnBDVdRjBGrLGoRAAAAAElFTkSuQmCC",self.location).href,this.isFull?n.BrowserUtils.switchFullScreen(!0):n.BrowserUtils.switchFullScreen(!1)}});return e},C=function(t){return this.context=t,new o({title:"\u5237\u65B0",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP9JREFUOE+lkrFKwlEUxn/fC6RrVOAi2GbOQfkCbj5AizYFRUM4CQ5N5ao+RmtDDc7pENRY1AMEPcAnF/7J9S92FS8cLtxzzu+ce84ntjzaMp+NALZbkkZx0SWA7TJwBuwCJeAD+ASegSegI+n2D7IAsH0B9ICdf772K2nuzwOawF5WtQgcA0dALQe8ktQPb2vNwPYAaEeQb0kHmwAMTDN7A94lPSwAbDeACnAIVINJSnY4D7AdqsRnKOk8pZMYEFZzk0t4ASbAGPjJ1lqU1F1ao+0C8ArsJ6peS7pbpYNL4B6oA6fASXYHMX0FjUh6TCmxG7e49gxSgav8yTWlwDOVHkYR/UKtxwAAAABJRU5ErkJggg==",self.location).href,insertIndex:6,click:e=>{window.document.location.reload()}})},S=function(t){return this.context=t,new o({title:"\u8DDD\u79BB",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANdJREFUOE/FkjFqQkEURc9dQcwiLC3tJP//NoWFnTa2dsGsIFlAiBtIlSVkASq4E0FbrS2uzDCGjzgE+R8yzQxv3r2c+3ii4VFDPe0a2B4De0mrHJntGfAl6RR6IoHtNfCURFlx+i/T/SNp+BvB9hR4AV7/mMs3sJD0UScoc9i2A1kl6b1ubDtqLhEsSaEIFKHZ9lJSZbsPPKda7Eux4/vaoACCc92gB4yaGHSBSTLYSBrcJABCxh3wCGyBIDwAncxQ3+oR5sDDnVt5lPTZ7ibeSRDb/5/gDJ+3dxGvCwbzAAAAAElFTkSuQmCC",self.location).href,insertIndex:6,click:e=>{this.context.measure.distanceSurface()}})},R=function(t){return this.context=t,new o({title:"\u9762\u79EF",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAW5JREFUOE+lkztLXVEQhb+lQbT0F6S2ExFsfCRNDNooxN4iECIaRSEpQgpBJMotFDRPMbGI+Cqt0vhMIwb8JZZCEFkyMlduLt6D4DR7zt571llrzR7ZNhmSVM6L1v9q8uMV8BV4moX1wBVQXivxngPvgJsa2d7K06H7/L3iznbkt5STSTtwAVwCTcA50Aw0Sjq1PSRpO+6W5VYD/AA+JXAUHdnulHRs+4WkHdsfQ0ItgGAQ8Rg4BTqAQ6ArGf0BngGf7wSITdu/gGWgDmiR9N32S0krtuclvS2SEM7+TRa9wCowCGwCI8AZ8A/4XUvCB0kztjeyrcGiX9Kk7RIwDewC3UUSXgMnyWICeAOMAgvAl9APHNViMA40SCrZXgPW04sxSX2253LvrBbAoqQJ21PAPvAoDe0BZvMFRifaiiT8jBZKWrL9LTWHF8OSBmzPAO9vAR78lKuGKVwO6hGt2bbIQ8IB8CTP9yqH6UHjfA0Eb75Pw0PdcAAAAABJRU5ErkJggg==",self.location).href,insertIndex:6,click:e=>{this.context.measure.areaSurface({splitNum:10})}})},B=function(t){return this.context=t,new o({title:"\u4E09\u89D2\u6D4B\u91CF",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANNJREFUOE+l0k1qQjEUhuH33YLQaencVQjdQp04KzhzbHFQuIUO3EKXYLuJ6x507h5cQMoBUyT3pxEDmeV7cnJO5M5lzqeUGrW51bsGEvCjzm9BOgBwVD9qkRI4AlNgq25qkBKITPQhEGqe0wfki1fAo/o2VskYELkzsFR3Q0gfcALWwDfwEpMZm04f0KqzlFKEA4m1AJ7V17KSQSAOFsgXMCkbO9SD9nLTExA7Tycm9Km+50r+a2JZcfyTPfCQK7kGDnn+NR8ImKntH1AZ6hy7G/gFmCdTEUwMAYcAAAAASUVORK5CYII=",self.location).href,insertIndex:6,click:e=>{this.context.measure.heightTriangle()}})},E=function(t){return this.context=t,new o({title:"\u6E05\u9664",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAI1JREFUOE/tU1sOgCAM687jIZVDep6ZGkoGCCH6677Ko10pYPhY1vLd/QCwD3STmXG91JOAz0yZWcW5B7mreKPuWk8CdCMBkojZXR3kpHPZCWiicVKm2yPHHCp1d4/nZ1gKLGLEHIYC3CTBiOnmF1jMAMAG4MxXGPFaiJlMIotCwlOB2UcqT3n4kN787At9tmwRnBNp5wAAAABJRU5ErkJggg==",self.location).href,insertIndex:6,click:e=>{this.context.measure.clear()}})};a.CLS=c.CLS+"-toolbar",o.CLS=a.CLS+"-item";var J="",U=(t,e)=>{const i=t.__vccOpts||t;for(const[r,g]of e)i[r]=g;return i};const F={name:"BaseGlobe",props:{mapKey:{type:String,default:""},url:String,options:Object},data(){return{}},mounted(){this.url?gis3d.Resource.fetchJson({url:this.url}).then(t=>{const e=l(l({},t.map3d),this.options);console.log("\u8BFB\u53D6\u53C2\u6570",e),this.initMars3d(e)}):(options=this.options,this.initMars3d(this.options),console.log("\u8BFB\u53D6\u53C2\u6570",this.options))},provide(){return{getEarthInstance:()=>this.map}},methods:{initMars3d(t){this.map&&this.map.destroy();const e=new gis3d.Map(`gis-container${this.mapKey}`,t);this.map=e,e.scene.globe.depthTestAgainstTerrain,console.log("\u521B\u5EFA\u5730\u56FE",e),console.log("\u72B6\u6001\u680F",e.controls.locationBar),t.scene.loadAnimation&&e.openFlyAnimation(),t.control.toolbar&&(e.controls.toolbar=new a(e,{})),this.$emit("ready",e)}},beforeDestroy(){this.map&&this.map.destroy(),this.$emit("destroyed",this.map),delete this.map}},b={class:"gis-earth"},Q=["id"],k=[s.createElementVNode("div",{class:"gis-mark"},null,-1)];function I(t,e,i,r,g,V){return s.openBlock(),s.createElementBlock("div",b,[s.createElementVNode("div",{id:`gis-container${i.mapKey}`,class:"gis-container"},k,8,Q),s.renderSlot(t.$slots,"default")])}var O=U(F,[["render",I]]),d=Object.freeze(Object.defineProperty({__proto__:null,BaseGlobe:O},Symbol.toStringTag,{value:"Module"}));class y extends c{constructor(e,i={}){super(e),this.options=i,this.graphicLayer=new gis3d.layer.GraphicLayer(i).addTo(e),this.id=i.id,this.show=i.show||!1,this.editCapacity=i.hasEdit||!1}setLayerVisible(e){this.graphicLayer.show=e}setEditCapacity(e){this.graphicLayer.hasEdit=e}set show(e){this.setLayerVisible(e)}set editCapacity(e){this.setEditCapacity(e)}}const h=function(t,e={}){h.installed||(window.Gis=w,Object.values(d).map(i=>{t.component(i.name,i)}))};typeof window!="undefined"&&window.Vue&&h(window.Vue);var N=l({install:h},d);A.BaseGraphicLayer=y,A.BaseObject=c,A.ToolBar=a,A.default=N,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ var E=Object.defineProperty;var g=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var f=(n,A,s)=>A in n?E(n,A,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[A]=s,u=(n,A)=>{for(var s in A||(A={}))p.call(A,s)&&f(n,s,A[s]);if(g)for(var s of g(A))F.call(A,s)&&f(n,s,A[s]);return n};(function(n,A){typeof exports=="object"&&typeof module!="undefined"?A(exports,require("gis-common")):typeof define=="function"&&define.amd?define(["exports","gis-common"],A):(n=typeof globalThis!="undefined"?globalThis:n||self,A(n["gis-cesium-helper"]={},n.Gis))})(this,function(n,A){"use strict";function s(t){if(t&&t.__esModule)return t;var e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var c=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,c.get?c:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var l=s(A),Q="",I="",k="";class o extends A.EventDispatcher{constructor(e){super(),this.earth=e}}o.CLS="gis";class a extends o{constructor(e,i={}){super(e),this.position=i.position||"topright",this.orientation=i.orientation||"horizontal",this.container=A.DomUtils.create("div",a.CLS+" "+this.position,this.earth.container),this.container.style.flexDirection=this.orientation==="vertical"?"column":"initial",this.measure=new gis3d.thing.Measure({label:{color:"#ffffff",font_family:"\u6977\u4F53",font_size:18,background:!1}}).addTo(this.earth),this.items=[new C(this),new R(this),new S(this),new m(this),new w(this),new d(this)],this.createDom(),console.log("\u5DE5\u5177\u680F",this)}createDom(){for(let e=0,i=this.items.length;e<i;e++){const c=this.items[e];this.container.appendChild(c.container)}}insertItem(e){if(e.insertIndex>this.items.length)this.container.appendChild(e.container);else{const i=this.items.find(c=>c.insertIndex>=e.insertIndex);i&&this.container.insertBefore(e.container,i.container)}}}class r{constructor(e={}){this.iconCls=e.iconCls,this.iconUrl=e.iconUrl,this.insertIndex=A.Utils.isEmpty(e.insertIndex)?9999:e.insertIndex,this.container=A.DomUtils.create("div",r.CLS),this.container.title=e.title||"",this.container.innerHTML=this.iconCls?`<i class="${this.iconCls}"></i>`:this.iconUrl?`<img style="width: 100%; height: 100%; object-fit: none;" src="${this.iconUrl}"/>`:"",this.container.addEventListener("click",e.click)}}const d=function(t){this.context=t,this.isFull=!1;const e=new r({title:"\u5168\u5C4F",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANRJREFUOE+tU8sNwlAMs5dgiMIenIATTAOCCqYpp5YTewBDsIRRqgSF8pGgRKrU6j07juMSPYuGl6QOzxnAguTFzwsAFYBhvkerFwQP4ABIeiJ5R2CYkuQmd5Nk3+tPCqxzlngnkbQFsEzg9m5WcLKZ/YkuDcmZj9gAmDhB6X5UJEfhQZEMM6kGHJO8OsEAwBFAHaOZJ4ZpCfrUfwhCjsv9fgRJYeIcQKzvQHLqpDWA9t3P92ZkNtGS2F3jjuQqqcoZeFpjN8o/BSmW8Zcof/cz9cnBDVdRjBGrLGoRAAAAAElFTkSuQmCC",self.location).href,insertIndex:6,click:i=>{this.isFull=!this.isFull,e.container.title=this.isFull?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F",e.container.firstElementChild.src=this.isFull?new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAASRJREFUOE+lkz1KBUEQhL/yGN7A5yXUGwgqKF5A1BP4wF3wBv7cwEATM1MFU0P1gbmRmWBiYEuPPcswDLI8g2V3drqrumaqBGBm18CXpF1fx7+JpJf6O9aXwKukXtG8GX1nkg7NbAKcS1qNhidgywHN7BQ4iPoE4Gg7mRk4AdaB9wLAgGfgBpgWtb2C4QLYKzb8874CqLbpkoRCszMfFVV/AaRmr80TrAAuZXEkwBuwLenBz8CbnT2piefb34WEO2AhCJ00Tz4dJNQCx67/D5DvvMVYSWiV7OdDdOO4G5dHHqJ7Ihlr3mvsJXXlNc5jpATSsrIbZKNh5VvgE8i58QFSFnyU4yEcUtcI0yOwJumjCt+QhV89oasR5yVJs8L2V8DM638ATvezacWYQNMAAAAASUVORK5CYII=",self.location).href:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANRJREFUOE+tU8sNwlAMs5dgiMIenIATTAOCCqYpp5YTewBDsIRRqgSF8pGgRKrU6j07juMSPYuGl6QOzxnAguTFzwsAFYBhvkerFwQP4ABIeiJ5R2CYkuQmd5Nk3+tPCqxzlngnkbQFsEzg9m5WcLKZ/YkuDcmZj9gAmDhB6X5UJEfhQZEMM6kGHJO8OsEAwBFAHaOZJ4ZpCfrUfwhCjsv9fgRJYeIcQKzvQHLqpDWA9t3P92ZkNtGS2F3jjuQqqcoZeFpjN8o/BSmW8Zcof/cz9cnBDVdRjBGrLGoRAAAAAElFTkSuQmCC",self.location).href,this.isFull?A.BrowserUtils.switchFullScreen(!0):A.BrowserUtils.switchFullScreen(!1)}});return e},w=function(t){return this.context=t,new r({title:"\u5237\u65B0",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP9JREFUOE+lkrFKwlEUxn/fC6RrVOAi2GbOQfkCbj5AizYFRUM4CQ5N5ao+RmtDDc7pENRY1AMEPcAnF/7J9S92FS8cLtxzzu+ce84ntjzaMp+NALZbkkZx0SWA7TJwBuwCJeAD+ASegSegI+n2D7IAsH0B9ICdf772K2nuzwOawF5WtQgcA0dALQe8ktQPb2vNwPYAaEeQb0kHmwAMTDN7A94lPSwAbDeACnAIVINJSnY4D7AdqsRnKOk8pZMYEFZzk0t4ASbAGPjJ1lqU1F1ao+0C8ArsJ6peS7pbpYNL4B6oA6fASXYHMX0FjUh6TCmxG7e49gxSgav8yTWlwDOVHkYR/UKtxwAAAABJRU5ErkJggg==",self.location).href,insertIndex:6,click:e=>{window.document.location.reload()}})},C=function(t){return this.context=t,new r({title:"\u8DDD\u79BB",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANdJREFUOE/FkjFqQkEURc9dQcwiLC3tJP//NoWFnTa2dsGsIFlAiBtIlSVkASq4E0FbrS2uzDCGjzgE+R8yzQxv3r2c+3ii4VFDPe0a2B4De0mrHJntGfAl6RR6IoHtNfCURFlx+i/T/SNp+BvB9hR4AV7/mMs3sJD0UScoc9i2A1kl6b1ubDtqLhEsSaEIFKHZ9lJSZbsPPKda7Eux4/vaoACCc92gB4yaGHSBSTLYSBrcJABCxh3wCGyBIDwAncxQ3+oR5sDDnVt5lPTZ7ibeSRDb/5/gDJ+3dxGvCwbzAAAAAElFTkSuQmCC",self.location).href,insertIndex:6,click:e=>{this.context.measure.distanceSurface()}})},R=function(t){return this.context=t,new r({title:"\u9762\u79EF",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAW5JREFUOE+lkztLXVEQhb+lQbT0F6S2ExFsfCRNDNooxN4iECIaRSEpQgpBJMotFDRPMbGI+Cqt0vhMIwb8JZZCEFkyMlduLt6D4DR7zt571llrzR7ZNhmSVM6L1v9q8uMV8BV4moX1wBVQXivxngPvgJsa2d7K06H7/L3iznbkt5STSTtwAVwCTcA50Aw0Sjq1PSRpO+6W5VYD/AA+JXAUHdnulHRs+4WkHdsfQ0ItgGAQ8Rg4BTqAQ6ArGf0BngGf7wSITdu/gGWgDmiR9N32S0krtuclvS2SEM7+TRa9wCowCGwCI8AZ8A/4XUvCB0kztjeyrcGiX9Kk7RIwDewC3UUSXgMnyWICeAOMAgvAl9APHNViMA40SCrZXgPW04sxSX2253LvrBbAoqQJ21PAPvAoDe0BZvMFRifaiiT8jBZKWrL9LTWHF8OSBmzPAO9vAR78lKuGKVwO6hGt2bbIQ8IB8CTP9yqH6UHjfA0Eb75Pw0PdcAAAAABJRU5ErkJggg==",self.location).href,insertIndex:6,click:e=>{this.context.measure.areaSurface({splitNum:10})}})},S=function(t){return this.context=t,new r({title:"\u4E09\u89D2\u6D4B\u91CF",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANNJREFUOE+l0k1qQjEUhuH33YLQaencVQjdQp04KzhzbHFQuIUO3EKXYLuJ6x507h5cQMoBUyT3pxEDmeV7cnJO5M5lzqeUGrW51bsGEvCjzm9BOgBwVD9qkRI4AlNgq25qkBKITPQhEGqe0wfki1fAo/o2VskYELkzsFR3Q0gfcALWwDfwEpMZm04f0KqzlFKEA4m1AJ7V17KSQSAOFsgXMCkbO9SD9nLTExA7Tycm9Km+50r+a2JZcfyTPfCQK7kGDnn+NR8ImKntH1AZ6hy7G/gFmCdTEUwMAYcAAAAASUVORK5CYII=",self.location).href,insertIndex:6,click:e=>{this.context.measure.heightTriangle()}})},m=function(t){return this.context=t,new r({title:"\u6E05\u9664",iconUrl:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAI1JREFUOE/tU1sOgCAM687jIZVDep6ZGkoGCCH6677Ko10pYPhY1vLd/QCwD3STmXG91JOAz0yZWcW5B7mreKPuWk8CdCMBkojZXR3kpHPZCWiicVKm2yPHHCp1d4/nZ1gKLGLEHIYC3CTBiOnmF1jMAMAG4MxXGPFaiJlMIotCwlOB2UcqT3n4kN787At9tmwRnBNp5wAAAABJRU5ErkJggg==",self.location).href,insertIndex:6,click:e=>{this.context.measure.clear()}})};a.CLS=o.CLS+"-toolbar",r.CLS=a.CLS+"-item";class U extends o{constructor(e,i={}){super(e),this.options=i,this.graphicLayer=new gis3d.layer.GraphicLayer(i).addTo(e),this.id=i.id,this.show=i.show||!1,this.editCapacity=i.hasEdit||!1}setLayerVisible(e){this.graphicLayer.show=e}setEditCapacity(e){this.graphicLayer.hasEdit=e}set show(e){this.setLayerVisible(e)}set editCapacity(e){this.setEditCapacity(e)}}const h=function(t,e={}){window.Gis=l,t.config.globalProperties?t.config.globalProperties.utils=l.Utils:t.prototype.utils=l.Utils,h.installed};typeof window!="undefined"&&window.Vue&&h(window.Vue);var B=u({install:h},l);n.BaseGraphicLayer=U,n.BaseObject=o,n.ToolBar=a,n.default=B,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2
2
  //# sourceMappingURL=gis-cesium-helper.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gis-cesium-helper.umd.js","sources":["../src/class/core/BaseObject.js","../src/class/control/ToolBar.js","../plugin-vue:export-helper","../src/components/BaseGlobe/main.vue","../src/class/core/BaseGraphicLayer.js","../src/index.js"],"sourcesContent":["import { EventDispatcher } from 'gis-common'\r\nexport default class BaseObject extends EventDispatcher {\r\n constructor(earth) {\r\n super()\r\n this.earth = earth\r\n }\r\n}\r\nBaseObject.CLS = 'gis'\r\n","import { BrowserUtils, DomUtils, Utils } from 'gis-common'\r\nimport BaseObject from '../core/BaseObject'\r\nexport default class ToolBar extends BaseObject {\r\n\tconstructor(earth, options = {}) {\r\n\t\tsuper(earth)\r\n\t\tthis.position = options.position || 'topright'\r\n\t\tthis.orientation = options.orientation || 'horizontal'\r\n\t\tthis.container = DomUtils.create('div', ToolBar.CLS + ' ' + this.position, this.earth.container)\r\n\t\tthis.container.style.flexDirection = this.orientation === 'vertical' ? 'column' : 'initial'\r\n\t\tthis.measure = new gis3d.thing.Measure({\r\n\t\t\tlabel: {\r\n\t\t\t\tcolor: '#ffffff',\r\n\t\t\t\tfont_family: '楷体',\r\n\t\t\t\tfont_size: 18,\r\n\t\t\t\tbackground: false,\r\n\t\t\t},\r\n\t\t}).addTo(this.earth)\r\n\t\tthis.items = [\r\n\t\t\tnew measureDis(this),\r\n\t\t\tnew measureArea(this),\r\n\t\t\tnew measureHeightTriangle(this),\r\n\t\t\tnew clear(this),\r\n\t\t\tnew refresh(this),\r\n\t\t\tnew switchFullScreen(this),\r\n\t\t]\r\n\t\tthis.createDom()\r\n\t\tconsole.log('工具栏', this)\r\n\t}\r\n\tcreateDom() {\r\n\t\tfor (let i = 0, l = this.items.length; i < l; i++) {\r\n\t\t\tconst item = this.items[i]\r\n\t\t\tthis.container.appendChild(item.container)\r\n\t\t}\r\n\t}\r\n\tinsertItem(item) {\r\n\t\tif (item.insertIndex > this.items.length) {\r\n\t\t\tthis.container.appendChild(item.container)\r\n\t\t} else {\r\n\t\t\tconst nearestNode = this.items.find(d => d.insertIndex >= item.insertIndex)\r\n\t\t\tnearestNode && this.container.insertBefore(item.container, nearestNode.container)\r\n\t\t}\r\n\t}\r\n}\r\nexport class ToolBarItem {\r\n\tconstructor(options = {}) {\r\n\t\tthis.iconCls = options.iconCls\r\n\t\tthis.iconUrl = options.iconUrl\r\n\t\tthis.insertIndex = Utils.isEmpty(options.insertIndex) ? 9999 : options.insertIndex\r\n\t\tthis.container = DomUtils.create('div', ToolBarItem.CLS)\r\n\t\tthis.container.title = options.title || ''\r\n\t\tthis.container.innerHTML = this.iconCls\r\n\t\t\t? `<i class=\"${this.iconCls}\"></i>`\r\n\t\t\t: this.iconUrl\r\n\t\t\t? `<img style=\"width: 100%; height: 100%; object-fit: none;\" src=\"${this.iconUrl}\"/>`\r\n\t\t\t: ''\r\n\t\tthis.container.addEventListener('click', options.click)\r\n\t}\r\n}\r\nexport const switchFullScreen = function (ctx) {\r\n\tthis.context = ctx\r\n\tthis.isFull = false\r\n\tconst toolBarItem = new ToolBarItem({\r\n\t\ttitle: '全屏',\r\n\t\ticonUrl: new URL('../../assets/images/full.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.isFull = !this.isFull\r\n\t\t\ttoolBarItem.container.title = this.isFull ? '退出全屏' : '全屏'\r\n\t\t\ttoolBarItem.container.firstElementChild.src = this.isFull\r\n\t\t\t\t? new URL('../../assets/images/exit-full.png', import.meta.url).href\r\n\t\t\t\t: new URL('../../assets/images/full.png', import.meta.url).href\r\n\t\t\tthis.isFull ? BrowserUtils.switchFullScreen(true) : BrowserUtils.switchFullScreen(false)\r\n\t\t},\r\n\t})\r\n\treturn toolBarItem\r\n}\r\nexport const refresh = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '刷新',\r\n\t\ticonUrl: new URL('../../assets/images/refresh.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\twindow.document.location.reload()\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureDis = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '距离',\r\n\t\ticonUrl: new URL('../../assets/images/distance.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.distanceSurface()\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureArea = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '面积',\r\n\t\ticonUrl: new URL('../../assets/images/area.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.areaSurface({ splitNum: 10 })\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureHeightTriangle = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '三角测量',\r\n\t\ticonUrl: new URL('../../assets/images/triangle.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.heightTriangle()\r\n\t\t},\r\n\t})\r\n}\r\nexport const clear = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '清除',\r\n\t\ticonUrl: new URL('../../assets/images/delete.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.clear()\r\n\t\t},\r\n\t})\r\n}\r\nToolBar.CLS = BaseObject.CLS + '-toolbar'\r\nToolBarItem.CLS = ToolBar.CLS + '-item'\r\n","\nexport default (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n}\n","<template>\n\t<div class=\"gis-earth\">\n\t\t<div :id=\"`gis-container${mapKey}`\" class=\"gis-container\">\n\t\t\t<div class=\"gis-mark\"></div>\n\t\t</div>\n\t\t<slot></slot>\n\t</div>\n</template>\n<script>\nimport ToolBar from '../../class/control/ToolBar'\nexport default {\n\tname: 'BaseGlobe',\n\tprops: {\n\t\t// 地图唯一性标识\n\t\tmapKey: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t// 初始化配置config.json的地址\n\t\turl: String,\n\t\t// 自定义参数\n\t\toptions: Object,\n\t},\n\tdata() {\n\t\treturn {}\n\t},\n\tmounted() {\n\t\tif (this.url) {\n\t\t\tgis3d.Resource.fetchJson({ url: this.url }).then(data => {\n\t\t\t\tconst options = { ...data.map3d, ...this.options }\n\t\t\t\tconsole.log('读取参数', options)\n\t\t\t\tthis.initMars3d(options)\n\t\t\t})\n\t\t} else {\n\t\t\toptions = this.options\n\t\t\tthis.initMars3d(this.options)\n\t\t\tconsole.log('读取参数', this.options)\n\t\t}\n\t},\n\tprovide() {\n\t\treturn {\n\t\t\tgetEarthInstance: () => this.map,\n\t\t}\n\t},\n\tmethods: {\n\t\tinitMars3d(mapOptions) {\n\t\t\tif (this.map) {\n\t\t\t\tthis.map.destroy()\n\t\t\t}\n\t\t\tconst map = new gis3d.Map(`gis-container${this.mapKey}`, mapOptions)\n\t\t\tthis.map = map\n\t\t\tmap.scene.globe.depthTestAgainstTerrain\n\t\t\tconsole.log('创建地图', map)\n\t\t\tconsole.log('状态栏', map.controls.locationBar)\n\t\t\tmapOptions.scene.loadAnimation && map.openFlyAnimation()\n\t\t\tmapOptions.control.toolbar && (map.controls.toolbar = new ToolBar(map, {}))\n\t\t\t// 抛出事件\n\t\t\tthis.$emit('ready', map)\n\t\t},\n\t},\n\tbeforeDestroy() {\n\t\tthis.map && this.map.destroy()\n\t\tthis.$emit('destroyed', this.map)\n\t\tdelete this.map\n\t},\n}\n</script>\n<style lang=\"scss\">\n.gis-earth,\n.gis-container {\n\twidth: 100%;\n\theight: 100%;\n\tuser-select: none;\n\toverflow: hidden;\n\tposition: relative;\n}\n\n/**cesium 工具按钮栏*/\n.cesium-viewer-toolbar {\n\ttop: auto;\n\tbottom: 35px;\n\tleft: 12px;\n\tright: auto;\n}\n.cesium-toolbar-button img {\n\theight: 100%;\n}\n.cesium-viewer-toolbar > .cesium-toolbar-button,\n.cesium-navigationHelpButton-wrapper,\n.cesium-viewer-geocoderContainer {\n\tmargin-bottom: 5px;\n\tfloat: left;\n\tclear: both;\n\ttext-align: center;\n}\n.cesium-button {\n\tbackground-color: #3f4854;\n\tcolor: #e6e6e6;\n\tfill: #e6e6e6;\n\tbox-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);\n\tline-height: 32px;\n}\n\n/**cesium 底图切换面板*/\n.cesium-baseLayerPicker-dropDown {\n\tbottom: 0;\n\tleft: 40px;\n\tmax-height: 700px;\n\tmargin-bottom: 5px;\n}\n\n/**cesium 帮助面板*/\n.cesium-navigation-help {\n\ttop: auto;\n\tbottom: 0;\n\tleft: 40px;\n\ttransform-origin: left bottom;\n}\n\n/**cesium 二维三维切换*/\n.cesium-sceneModePicker-wrapper {\n\twidth: auto;\n}\n.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon {\n\tfloat: right;\n\tmargin: 0 3px;\n}\n\n/**cesium POI查询输入框*/\n.cesium-viewer-geocoderContainer .search-results {\n\tleft: 0;\n\tright: 40px;\n\twidth: auto;\n\tz-index: 9999;\n}\n.cesium-geocoder-searchButton {\n\tbackground-color: #3f4854;\n}\n.cesium-viewer-geocoderContainer .cesium-geocoder-input {\n\tbackground-color: rgba(63, 72, 84, 0.7);\n}\n.cesium-viewer-geocoderContainer .cesium-geocoder-input:focus {\n\tbackground-color: rgba(63, 72, 84, 0.9);\n}\n.cesium-viewer-geocoderContainer .search-results {\n\tbackground-color: #3f4854;\n}\n\n/**cesium info信息框*/\n.cesium-infoBox {\n\ttop: 50px;\n\tbackground: rgba(63, 72, 84, 0.9);\n}\n.cesium-infoBox-title {\n\tbackground-color: #3f4854;\n}\n\n/**cesium 任务栏的FPS信息*/\n.cesium-performanceDisplay-defaultContainer {\n\ttop: auto;\n\tbottom: 35px;\n\tright: 50px;\n}\n.cesium-performanceDisplay-ms,\n.cesium-performanceDisplay-fps {\n\tcolor: #fff;\n}\n\n/**cesium tileset调试信息面板*/\n.cesium-viewer-cesiumInspectorContainer {\n\ttop: 10px;\n\tleft: 10px;\n\tright: auto;\n\tbackground-color: #3f4854;\n}\n.gis-mark {\n\tposition: absolute;\n\tbackground: linear-gradient(45deg, #000, transparent, #000);\n\tz-index: 990;\n\twidth: 100%;\n\theight: 30px;\n\tbottom: 0;\n}\n</style>\n","import BaseObject from './BaseObject'\r\nexport default class GraphicLayerLayer extends BaseObject {\r\n\tconstructor(earth, options = {}) {\r\n\t\tsuper(earth)\r\n\t\tthis.options = options\r\n\t\tthis.graphicLayer = new gis3d.layer.GraphicLayer(options).addTo(earth)\r\n\t\tthis.id = options.id\r\n\t\tthis.show = options.show || false\r\n\t\tthis.editCapacity = options.hasEdit || false\r\n\t}\r\n\tsetLayerVisible(val) {\r\n\t\tthis.graphicLayer.show = val\r\n\t}\r\n\tsetEditCapacity(val) {\r\n\t\tthis.graphicLayer.hasEdit = val\r\n\t}\r\n\tset show(val) {\r\n\t\tthis.setLayerVisible(val)\r\n\t}\r\n\tset editCapacity(val) {\r\n\t\tthis.setEditCapacity(val)\r\n\t}\r\n}\r\n","import * as Gis from 'gis-common'\r\nimport './assets/style/initialize.scss'\r\nimport './assets/style/main.scss'\r\nimport './assets/style/override-map.css'\r\nimport * as MyComponents from './components'\r\nconst install = function (Vue, options = {}) {\r\n\tif (install.installed) return\r\n\twindow.Gis = Gis\r\n\tObject.values(MyComponents).map(component => {\r\n\t\tVue.component(component.name, component)\r\n\t})\r\n}\r\nif (typeof window !== 'undefined' && window.Vue) {\r\n\tinstall(window.Vue)\r\n}\r\nexport * from './class'\r\nexport default {\r\n\tinstall,\r\n\t...MyComponents,\r\n}\r\n"],"names":["EventDispatcher","DomUtils","Utils","BrowserUtils","_openBlock","_createElementBlock","_createElementVNode","Gis"],"mappings":"8/BACe,MAAM,SAAmBA,GAAAA,eAAgB,CACpD,YAAY,EAAO,CACf,MAAO,EACP,KAAK,MAAQ,CAChB,CACL,CACA,EAAW,IAAM,MCLF,MAAM,SAAgB,EAAW,CAC/C,YAAY,EAAO,EAAU,GAAI,CAChC,MAAM,CAAK,EACX,KAAK,SAAW,EAAQ,UAAY,WACpC,KAAK,YAAc,EAAQ,aAAe,aAC1C,KAAK,UAAYC,EAAAA,SAAS,OAAO,MAAO,EAAQ,IAAM,IAAM,KAAK,SAAU,KAAK,MAAM,SAAS,EAC/F,KAAK,UAAU,MAAM,cAAgB,KAAK,cAAgB,WAAa,SAAW,UAClF,KAAK,QAAU,GAAI,OAAM,MAAM,QAAQ,CACtC,MAAO,CACN,MAAO,UACP,YAAa,eACb,UAAW,GACX,WAAY,EACZ,CACJ,CAAG,EAAE,MAAM,KAAK,KAAK,EACnB,KAAK,MAAQ,CACZ,GAAI,GAAW,IAAI,EACnB,GAAI,GAAY,IAAI,EACpB,GAAI,GAAsB,IAAI,EAC9B,GAAI,GAAM,IAAI,EACd,GAAI,GAAQ,IAAI,EAChB,GAAI,GAAiB,IAAI,CACzB,EACD,KAAK,UAAW,EAChB,Q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Aa,CAAO,EAAE,MAAM,CAAK,EACrE,KAAK,GAAK,EAAQ,GAClB,KAAK,KAAO,EAAQ,MAAQ,GAC5B,KAAK,aAAe,EAAQ,SAAW,EACvC,CACD,gBAAgB,EAAK,CACpB,KAAK,aAAa,KAAO,CACzB,CACD,gBAAgB,EAAK,CACpB,KAAK,aAAa,QAAU,CAC5B,IACG,MAAK,EAAK,CACb,KAAK,gBAAgB,CAAG,CACxB,IACG,cAAa,EAAK,CACrB,KAAK,gBAAgB,CAAG,CACxB,CACF,CCjBA,KAAM,GAAU,SAAU,EAAK,EAAU,GAAI,CAC5C,AAAI,EAAQ,WACZ,QAAO,IAAMC,EACb,OAAO,OAAO,CAAY,EAAE,IAAI,GAAa,CAC5C,EAAI,UAAU,EAAU,KAAM,CAAS,CACzC,CAAE,EACF,EACA,AAAI,MAAO,SAAW,aAAe,OAAO,KAC3C,EAAQ,OAAO,GAAG,EAGJ,GAAA,GAAA,GACd,WACG"}
1
+ {"version":3,"file":"gis-cesium-helper.umd.js","sources":["../src/class/core/BaseObject.js","../src/class/control/ToolBar.js","../src/class/core/BaseGraphicLayer.js","../src/index.js"],"sourcesContent":["import { EventDispatcher } from 'gis-common'\r\nexport default class BaseObject extends EventDispatcher {\r\n constructor(earth) {\r\n super()\r\n this.earth = earth\r\n }\r\n}\r\nBaseObject.CLS = 'gis'\r\n","import { BrowserUtils, DomUtils, Utils } from 'gis-common'\r\nimport BaseObject from '../core/BaseObject'\r\nexport default class ToolBar extends BaseObject {\r\n\tconstructor(earth, options = {}) {\r\n\t\tsuper(earth)\r\n\t\tthis.position = options.position || 'topright'\r\n\t\tthis.orientation = options.orientation || 'horizontal'\r\n\t\tthis.container = DomUtils.create('div', ToolBar.CLS + ' ' + this.position, this.earth.container)\r\n\t\tthis.container.style.flexDirection = this.orientation === 'vertical' ? 'column' : 'initial'\r\n\t\tthis.measure = new gis3d.thing.Measure({\r\n\t\t\tlabel: {\r\n\t\t\t\tcolor: '#ffffff',\r\n\t\t\t\tfont_family: '楷体',\r\n\t\t\t\tfont_size: 18,\r\n\t\t\t\tbackground: false,\r\n\t\t\t},\r\n\t\t}).addTo(this.earth)\r\n\t\tthis.items = [\r\n\t\t\tnew measureDis(this),\r\n\t\t\tnew measureArea(this),\r\n\t\t\tnew measureHeightTriangle(this),\r\n\t\t\tnew clear(this),\r\n\t\t\tnew refresh(this),\r\n\t\t\tnew switchFullScreen(this),\r\n\t\t]\r\n\t\tthis.createDom()\r\n\t\tconsole.log('工具栏', this)\r\n\t}\r\n\tcreateDom() {\r\n\t\tfor (let i = 0, l = this.items.length; i < l; i++) {\r\n\t\t\tconst item = this.items[i]\r\n\t\t\tthis.container.appendChild(item.container)\r\n\t\t}\r\n\t}\r\n\tinsertItem(item) {\r\n\t\tif (item.insertIndex > this.items.length) {\r\n\t\t\tthis.container.appendChild(item.container)\r\n\t\t} else {\r\n\t\t\tconst nearestNode = this.items.find(d => d.insertIndex >= item.insertIndex)\r\n\t\t\tnearestNode && this.container.insertBefore(item.container, nearestNode.container)\r\n\t\t}\r\n\t}\r\n}\r\nexport class ToolBarItem {\r\n\tconstructor(options = {}) {\r\n\t\tthis.iconCls = options.iconCls\r\n\t\tthis.iconUrl = options.iconUrl\r\n\t\tthis.insertIndex = Utils.isEmpty(options.insertIndex) ? 9999 : options.insertIndex\r\n\t\tthis.container = DomUtils.create('div', ToolBarItem.CLS)\r\n\t\tthis.container.title = options.title || ''\r\n\t\tthis.container.innerHTML = this.iconCls\r\n\t\t\t? `<i class=\"${this.iconCls}\"></i>`\r\n\t\t\t: this.iconUrl\r\n\t\t\t? `<img style=\"width: 100%; height: 100%; object-fit: none;\" src=\"${this.iconUrl}\"/>`\r\n\t\t\t: ''\r\n\t\tthis.container.addEventListener('click', options.click)\r\n\t}\r\n}\r\nexport const switchFullScreen = function (ctx) {\r\n\tthis.context = ctx\r\n\tthis.isFull = false\r\n\tconst toolBarItem = new ToolBarItem({\r\n\t\ttitle: '全屏',\r\n\t\ticonUrl: new URL('../../assets/images/full.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.isFull = !this.isFull\r\n\t\t\ttoolBarItem.container.title = this.isFull ? '退出全屏' : '全屏'\r\n\t\t\ttoolBarItem.container.firstElementChild.src = this.isFull\r\n\t\t\t\t? new URL('../../assets/images/exit-full.png', import.meta.url).href\r\n\t\t\t\t: new URL('../../assets/images/full.png', import.meta.url).href\r\n\t\t\tthis.isFull ? BrowserUtils.switchFullScreen(true) : BrowserUtils.switchFullScreen(false)\r\n\t\t},\r\n\t})\r\n\treturn toolBarItem\r\n}\r\nexport const refresh = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '刷新',\r\n\t\ticonUrl: new URL('../../assets/images/refresh.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\twindow.document.location.reload()\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureDis = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '距离',\r\n\t\ticonUrl: new URL('../../assets/images/distance.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.distanceSurface()\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureArea = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '面积',\r\n\t\ticonUrl: new URL('../../assets/images/area.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.areaSurface({ splitNum: 10 })\r\n\t\t},\r\n\t})\r\n}\r\nexport const measureHeightTriangle = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '三角测量',\r\n\t\ticonUrl: new URL('../../assets/images/triangle.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.heightTriangle()\r\n\t\t},\r\n\t})\r\n}\r\nexport const clear = function (ctx) {\r\n\tthis.context = ctx\r\n\treturn new ToolBarItem({\r\n\t\ttitle: '清除',\r\n\t\ticonUrl: new URL('../../assets/images/delete.png', import.meta.url).href,\r\n\t\tinsertIndex: 6,\r\n\t\tclick: e => {\r\n\t\t\tthis.context.measure.clear()\r\n\t\t},\r\n\t})\r\n}\r\nToolBar.CLS = BaseObject.CLS + '-toolbar'\r\nToolBarItem.CLS = ToolBar.CLS + '-item'\r\n","import BaseObject from './BaseObject'\r\nexport default class GraphicLayerLayer extends BaseObject {\r\n\tconstructor(earth, options = {}) {\r\n\t\tsuper(earth)\r\n\t\tthis.options = options\r\n\t\tthis.graphicLayer = new gis3d.layer.GraphicLayer(options).addTo(earth)\r\n\t\tthis.id = options.id\r\n\t\tthis.show = options.show || false\r\n\t\tthis.editCapacity = options.hasEdit || false\r\n\t}\r\n\tsetLayerVisible(val) {\r\n\t\tthis.graphicLayer.show = val\r\n\t}\r\n\tsetEditCapacity(val) {\r\n\t\tthis.graphicLayer.hasEdit = val\r\n\t}\r\n\tset show(val) {\r\n\t\tthis.setLayerVisible(val)\r\n\t}\r\n\tset editCapacity(val) {\r\n\t\tthis.setEditCapacity(val)\r\n\t}\r\n}\r\n","import * as Gis from 'gis-common'\r\nimport './assets/style/initialize.scss'\r\nimport './assets/style/main.scss'\r\nimport './assets/style/override-map.css'\r\nconst install = function (Vue, options = {}) {\r\n\twindow.Gis = Gis\r\n\tVue.config.globalProperties ? (Vue.config.globalProperties.utils = Gis.Utils) : (Vue.prototype.utils = Gis.Utils)\r\n\tif (install.installed) return\r\n}\r\nif (typeof window !== 'undefined' && window.Vue) {\r\n\tinstall(window.Vue)\r\n}\r\nexport * from './class'\r\nexport default {\r\n\tinstall,\r\n\t...Gis,\r\n}\r\n"],"names":["EventDispatcher","DomUtils","Utils","BrowserUtils","Gis"],"mappings":"i+BACe,MAAM,SAAmBA,GAAAA,eAAgB,CACp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F-8";*{margin:0;padding:0;list-style-type:none;box-sizing:border-box;outline:none}html{margin:0;padding:0;font-size:14px;height:100%}body{font-family:Arial,Helvetica,sans-serif;line-height:1.4em;margin:0;padding:0;height:100%}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,fieldset,lengend,button,input,textarea,th,td{margin:0;padding:0;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none;list-style:none}a{text-decoration:none;cursor:pointer}i{font-style:normal}::-webkit-scrollbar{width:4px;height:3px}::-webkit-scrollbar-track{background:#fcfcfc;width:2px;border-radius:8px}::-webkit-scrollbar-thumb{background:#c1c4c7;border-radius:2px}::-webkit-scrollbar-thumb:hover{background:#a8abad}::-webkit-scrollbar-corner{background:#dadfe3}.hidden{visibility:hidden}.visible{visibility:visible}.fwb{font-weight:700}.w1,.wh1{width:100%}.h1,.wh1{height:100%}.flex,.flex-c{display:flex}.flex-c{flex-direction:column}.clearfix:after{content:"";display:table;height:0;line-height:0;visibility:hidden;clear:both}.nowrap{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.text-a{color:#666}.bg-a{background-color:#666}.text-w{color:#fff}.bg-w{background-color:#fff}.text-d{color:#000}.bg-d{background-color:#000}.text-r{color:red}.bg-r{background-color:red}.text-p{color:#f0f}.bg-p{background-color:#f0f}.text-y{color:#ff0}.bg-y{background-color:#ff0}.text-b{color:#00f}.bg-b{background-color:#00f}.text-g{color:#0f0}.bg-g{background-color:#0f0}.text-t{color:#0ff}.bg-t{background-color:#0ff}.tr{text-align:right}.fr{float:right}.tc{text-align:center}.fc{float:center}.tl{text-align:left}.fl{float:left}.jc-start{justify-content:flex-start}.jc-end{justify-content:flex-end}.jc-center{justify-content:center}.jc-between{justify-content:space-between}.jc-around{justify-content:space-around}.jc-evenly{justify-content:space-evenly}.ai-start{align-items:flex-start}.ai-end{align-items:flex-end}.ai-center{align-items:center}.ai-stretch{align-items:stretch}.fs-xxs{font-size:1rem}.fs-xs{font-size:1.2rem}.fs-s{font-size:1.4rem}.fs-m{font-size:1.6rem}.fs-l{font-size:1.8rem}.fs-xl{font-size:2rem}.fs-xxl{font-size:2.2rem}.fs-xxxl{font-size:2.4rem}.flex-0{flex:0}.flex-1{flex:.1}.flex-2{flex:.2}.flex-3{flex:.3}.flex-4{flex:.4}.flex-5{flex:.5}.flex-6{flex:.6}.flex-7{flex:.7}.flex-8{flex:.8}.flex-9{flex:.9}.flex-10{flex:1}.m-0{margin:0rem}.m-1{margin:.1rem}.m-2{margin:.2rem}.m-3{margin:.3rem}.m-4{margin:.4rem}.m-5{margin:.5rem}.m-6{margin:.6rem}.m-7{margin:.7rem}.m-8{margin:.8rem}.m-9{margin:.9rem}.m-10{margin:1rem}.mx-0{margin-left:0rem;margin-right:0rem}.my-0{margin-top:0rem;margin-bottom:0rem}.mx-1{margin-left:.1rem;margin-right:.1rem}.my-1{margin-top:.1rem;margin-bottom:.1rem}.mx-2{margin-left:.2rem;margin-right:.2rem}.my-2{margin-top:.2rem;margin-bottom:.2rem}.mx-3{margin-left:.3rem;margin-right:.3rem}.my-3{margin-top:.3rem;margin-bottom:.3rem}.mx-4{margin-left:.4rem;margin-right:.4rem}.my-4{margin-top:.4rem;margin-bottom:.4rem}.mx-5{margin-left:.5rem;margin-right:.5rem}.my-5{margin-top:.5rem;margin-bottom:.5rem}.mx-6{margin-left:.6rem;margin-right:.6rem}.my-6{margin-top:.6rem;margin-bottom:.6rem}.mx-7{margin-left:.7rem;margin-right:.7rem}.my-7{margin-top:.7rem;margin-bottom:.7rem}.mx-8{margin-left:.8rem;margin-right:.8rem}.my-8{margin-top:.8rem;margin-bottom:.8rem}.mx-9{margin-left:.9rem;margin-right:.9rem}.my-9{margin-top:.9rem;margin-bottom:.9rem}.mx-10{margin-left:1rem;margin-right:1rem}.my-10{margin-top:1rem;margin-bottom:1rem}.mt-0{margin-top:0rem}.mt-1{margin-top:.1rem}.mt-2{margin-top:.2rem}.mt-3{margin-top:.3rem}.mt-4{margin-top:.4rem}.mt-5{margin-top:.5rem}.mt-6{margin-top:.6rem}.mt-7{margin-top:.7rem}.mt-8{margin-top:.8rem}.mt-9{margin-top:.9rem}.mt-10{margin-top:1rem}.mr-0{margin-right:0rem}.mr-1{margin-right:.1rem}.mr-2{margin-right:.2rem}.mr-3{margin-right:.3rem}.mr-4{margin-right:.4rem}.mr-5{margin-right:.5rem}.mr-6{margin-right:.6rem}.mr-7{margin-right:.7rem}.mr-8{margin-right:.8rem}.mr-9{margin-right:.9rem}.mr-10{margin-right:1rem}.mb-0{margin-bottom:0rem}.mb-1{margin-bottom:.1rem}.mb-2{margin-bottom:.2rem}.mb-3{margin-bottom:.3rem}.mb-4{margin-bottom:.4rem}.mb-5{margin-bottom:.5rem}.mb-6{margin-bottom:.6rem}.mb-7{margin-bottom:.7rem}.mb-8{margin-bottom:.8rem}.mb-9{margin-bottom:.9rem}.mb-10{margin-bottom:1rem}.ml-0{margin-left:0rem}.ml-1{margin-left:.1rem}.ml-2{margin-left:.2rem}.ml-3{margin-left:.3rem}.ml-4{margin-left:.4rem}.ml-5{margin-left:.5rem}.ml-6{margin-left:.6rem}.ml-7{margin-left:.7rem}.ml-8{margin-left:.8rem}.ml-9{margin-left:.9rem}.ml-10{margin-left:1rem}.m{margin:0}.p-0{padding:0rem}.p-1{padding:.1rem}.p-2{padding:.2rem}.p-3{padding:.3rem}.p-4{padding:.4rem}.p-5{padding:.5rem}.p-6{padding:.6rem}.p-7{padding:.7rem}.p-8{padding:.8rem}.p-9{padding:.9rem}.p-10{padding:1rem}.px-0{padding-left:0rem;padding-right:0rem}.py-0{padding-top:0rem;padding-bottom:0rem}.px-1{padding-left:.1rem;padding-right:.1rem}.py-1{padding-top:.1rem;padding-bottom:.1rem}.px-2{padding-left:.2rem;padding-right:.2rem}.py-2{padding-top:.2rem;padding-bottom:.2rem}.px-3{padding-left:.3rem;padding-right:.3rem}.py-3{padding-top:.3rem;padding-bottom:.3rem}.px-4{padding-left:.4rem;padding-right:.4rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.px-5{padding-left:.5rem;padding-right:.5rem}.py-5{padding-top:.5rem;padding-bottom:.5rem}.px-6{padding-left:.6rem;padding-right:.6rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.px-7{padding-left:.7rem;padding-right:.7rem}.py-7{padding-top:.7rem;padding-bottom:.7rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-9{padding-left:.9rem;padding-right:.9rem}.py-9{padding-top:.9rem;padding-bottom:.9rem}.px-10{padding-left:1rem;padding-right:1rem}.py-10{padding-top:1rem;padding-bottom:1rem}.pt-0{padding-top:0rem}.pt-1{padding-top:.1rem}.pt-2{padding-top:.2rem}.pt-3{padding-top:.3rem}.pt-4{padding-top:.4rem}.pt-5{padding-top:.5rem}.pt-6{padding-top:.6rem}.pt-7{padding-top:.7rem}.pt-8{padding-top:.8rem}.pt-9{padding-top:.9rem}.pt-10{padding-top:1rem}.pr-0{padding-right:0rem}.pr-1{padding-right:.1rem}.pr-2{padding-right:.2rem}.pr-3{padding-right:.3rem}.pr-4{padding-right:.4rem}.pr-5{padding-right:.5rem}.pr-6{padding-right:.6rem}.pr-7{padding-right:.7rem}.pr-8{padding-right:.8rem}.pr-9{padding-right:.9rem}.pr-10{padding-right:1rem}.pb-0{padding-bottom:0rem}.pb-1{padding-bottom:.1rem}.pb-2{padding-bottom:.2rem}.pb-3{padding-bottom:.3rem}.pb-4{padding-bottom:.4rem}.pb-5{padding-bottom:.5rem}.pb-6{padding-bottom:.6rem}.pb-7{padding-bottom:.7rem}.pb-8{padding-bottom:.8rem}.pb-9{padding-bottom:.9rem}.pb-10{padding-bottom:1rem}.pl-0{padding-left:0rem}.pl-1{padding-left:.1rem}.pl-2{padding-left:.2rem}.pl-3{padding-left:.3rem}.pl-4{padding-left:.4rem}.pl-5{padding-left:.5rem}.pl-6{padding-left:.6rem}.pl-7{padding-left:.7rem}.pl-8{padding-left:.8rem}.pl-9{padding-left:.9rem}.pl-10{padding-left:1rem}.p{padding:0}.gis-toolbar{position:absolute;display:flex;align-items:center;z-index:1000;background-color:#212121cc;border-radius:4px}.gis-toolbar-item{display:inline-block;color:#eee;text-align:center;width:32px;height:28px;margin:4px 0;cursor:pointer}.gis-toolbar-item+.gis-toolbar-item{border-left:1px solid rgba(110,110,110,.9);margin-left:1px}.gis-toolbar-item:hover{filter:invert(40%)}.topleft{left:10px;top:10px}.topright{right:10px;top:10px}.bottomleft{left:10px;bottom:10px}.bottomright{right:10px;bottom:10px}.mars3d-locationbar{line-height:24px;min-height:24px;left:125px!important}.mars3d-distance-legend{z-index:999}.mars3d-locationbar-content{float:left}.mars3d-contextmenu-ul>li>a{padding:6px 22px 6px 8px}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0px;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.gis-select{color:#ffffffd9;background-color:#3f4854b3!important;background:none}.gis-select *{color:#ffffffd9}.gis-select .ant-select-selector{border-color:gray!important;background:none;background-color:transparent!important}.ant-select:not(.ant-select-disabled):hover,.ant-select:not(.ant-select-disabled):focus{border-color:#4db3ff}.ant-select:not(.ant-select-disabled):hover .ant-select-selector,.ant-select:not(.ant-select-disabled):focus .ant-select-selector{border-color:#4db3ff}.gis-button{font-size:14px;background:#20a0ff33;border-color:#20a0ff;padding-left:10px;padding-right:10px;color:#fff}.gis-button .i-icon{font-size:18px!important;line-height:18px;vertical-align:middle!important;padding-left:2px;padding-right:2px}.gis-button:not([disabled]):hover{color:#fff;border-color:#89bceb;background:#20a0ff33}.gis-button:not([disabled]):focus{color:#fff;border-color:#89bceb;background:#20a0ff33}.ant-btn:disabled{color:#fff;border-color:#89bceb;background:rgba(32,160,255,.2)}.ant-btn:disabled:hover{background:rgba(32,160,255,.2);color:#ccc}.ant-btn-primary{background:#4db3ff;border:none}.ant-btn-link{border:none!important;background:none!important;padding:0;height:initial}.small-btn{padding:4px 5px}.gis-input{color:#ffffffd9;background-color:#3f4854b3!important;border-color:gray;font-size:12px!important}.gis-input .ant-input{background-color:#3f4854b3!important;border-color:gray;color:#ffffffd9}.gis-input .ant-input-suffix .anticon{color:#ffffffd9}.gis-input[disabled]{color:#ccc}.gis-textarea{color:#ffffffd9;background-color:#3f4854b3!important}.gis-textarea .ant-input{background-color:#3f4854b3!important;color:#ffffffd9}.gis-textarea .ant-input-suffix .anticon{color:#ffffffd9}.gis-textarea[disabled]{color:#ccc}.gis-input-number{color:#ffffffd9;background-color:#3f4854b3!important;border-color:gray}.gis-input-number *{color:#ffffffd9}.ant-input-number-handler-wrap{background:none}.gis-date-picker{color:#ffffffd9;border-color:gray!important;background-color:#3f4854b3!important}.gis-date-picker .ant-picker-input>input{color:#ffffffd9!important}.gis-date-picker .ant-picker-clear{background:transparent}.gis-date-picker *{color:#ffffffd9!important}.gis-range-picker{color:#ffffffd9;background-color:#3f4854b3!important}.gis-range-picker .ant-picker-input>input{color:#ffffffd9!important}.gis-range-picker .ant-picker-clear{display:none}.ant-picker-header-view{color:red!important}.hu-color-picker{padding:10px;background:#1d2024;border-radius:4px;box-shadow:0 0 16px #00000029;z-index:1}.hu-color-picker{width:220px!important;background-color:#202a44e6!important;box-shadow:none}.hu-color-picker.light{background:#f7f8f9}.hu-color-picker.light .color-show .sucker{background:#eceef0}.hu-color-picker.light .color-type .name{background:#e7e8e9}.hu-color-picker.light .color-type .value{color:#666;background:#eceef0}.hu-color-picker.light .colors.history{border-top:1px solid #eee}.hu-color-picker canvas{vertical-align:top}.hu-color-picker .color-set{display:flex}.hu-color-picker .color-show{margin-top:8px;display:flex}.saturation{position:relative;cursor:pointer}.saturation .slide{position:absolute;left:100px;top:0;width:10px;height:10px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 1px 1px #0000004d;pointer-events:none}.color-alpha{position:relative;margin-left:8px;cursor:pointer}.color-alpha .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.sucker{width:30px;fill:#9099a4;background:#2e333a;cursor:pointer;transition:all .3s}.sucker.active,.sucker:hover{fill:#1593ff}.hue{position:relative;margin-left:8px;cursor:pointer}.hue .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.colors{padding:0;margin:0}.colors.history{margin-top:10px;border-top:1px solid #2e333a}.colors .item{position:relative;width:16px;height:16px;margin:10px 0 0 10px;border-radius:3px;box-sizing:border-box;vertical-align:top;display:inline-block;transition:all .1s;cursor:pointer}.colors .item:nth-child(8n + 1){margin-left:0}.colors .item:hover{transform:scale(1.4)}.colors .item .alpha{height:100%;border-radius:4px}.colors .item .color{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:3px}.color-type{display:flex;margin-top:8px;font-size:12px}.color-type .name{width:60px;height:30px;float:left;display:flex;justify-content:center;align-items:center;color:#999;background:#252930}.color-type .value{flex:1;height:30px;min-width:100px;padding:0 12px;border:0;color:#fff;background:#2e333a;box-sizing:border-box}.gisColorView{display:inline-block;height:20px;width:80px;cursor:pointer}.ml5{margin-left:5px}.gis-icon{vertical-align:middle}.pannel-model{position:absolute;padding:0;border-radius:4px;border:1px solid #4db3ff70;z-index:100;background:linear-gradient(to left,#4db3ff,#4db3ff) left top no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) left top no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right top no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) right top no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) left bottom no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) left bottom no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right bottom no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right bottom no-repeat;background-size:1px 20px,20px 1px,1px 20px,20px 1px;background-color:#14141480}.pannel-model__header{height:40px;line-height:40px;cursor:move;overflow:hidden;padding:0 5px 0 15px;border-bottom:1px solid grey;background-color:#202a4480;color:#ffffffd9}.pannel-model__header .icon{vertical-align:middle;margin-right:5px}.pannel-model__header .title{font-size:16px}.pannel-model__header .close-btn{float:right;cursor:pointer;font-size:16px;margin-top:2px}.pannel-model__body{width:100%;height:calc(100% - 40px);padding:0 5px 10px 10px;overflow:hidden}.content{height:calc(100% - 40px);overflow-y:auto}.full-content{height:100%}.footer{height:40px}.footer .footer-content{height:40px;width:100%;padding-left:10px;padding-right:10px;position:absolute;left:0;bottom:0;display:flex;align-items:center;background:#14141480}.active{touch-action:none;z-index:999!important}.handle{box-sizing:border-box;position:absolute;z-index:1;width:10px;height:10px;opacity:0}.handle-x{height:auto;top:10px;right:0;bottom:10px;cursor:e-resize}.handle-y{width:auto;bottom:0;left:10px;right:10px;cursor:s-resize}.handle-xy{bottom:0;right:0;cursor:se-resize}@media only screen and (max-width: 768px){[class*=handle-]:before{content:"";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}@keyframes fadeInRight-7c2836fe{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:none}}.fadein-right{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInRight-7c2836fe;animation-name:fadeInRight-7c2836fe}@keyframes fadeInLeft-7c2836fe{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:none}}.fadein-left{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInLeft-7c2836fe;animation-name:fadeInLeft-7c2836fe}@keyframes fadeInUp-7c2836fe{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translateY(100%)}to{opacity:1;-webkit-transform:none;transform:none}}.fadein-up{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInUp-7c2836fe;animation-name:fadeInUp-7c2836fe}@keyframes fadeInDown-7c2836fe{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translateY(-100%)}to{opacity:1;-webkit-transform:none;transform:none}}.fadein-down{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInDown-7c2836fe;animation-name:fadeInDown-7c2836fe}@keyframes fadeInCenter-7c2836fe{0%{opacity:0;transform:scale(.1)}to{opacity:1;transform:none}}.fadein-center{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInCenter-7c2836fe;animation-name:fadeInCenter-7c2836fe}.ant-slider-rail{background-color:#cde1de}.gis-slider{margin:0 6px 6px}.gis-slider .ant-slider-mark-text{color:#ffffffd9!important}.gis-slider .ant-slider-rail{height:10px;border-radius:5px;background-color:#20a0ff33!important}.gis-slider .ant-slider-track{height:10px;border-radius:5px;background-color:#4db3ff!important}.gis-slider .ant-slider-dot{border-color:#ececec;background-color:#16212c7d;top:-1px;height:12px;width:12px}.gis-slider .ant-slider-dot:first-child{margin-left:-1px}.gis-slider .ant-slider-dot:last-child{right:-1px;left:auto!important}.gis-slider .ant-slider-handle{position:absolute;width:16px;height:16px;margin-top:-4px}.gis-slider .ant-slider-dot-active{border-color:#4db3ff!important}.gis-main-view .ant-tabs-tab,.gis-main-view .ant-pagination *{color:#ffffffd9!important}.pannel-box{position:absolute;padding:10px;border-radius:4px;z-index:1000;border:1px solid #4db3ff70;background:linear-gradient(to left,#4db3ff,#4db3ff) left top no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) left top no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right top no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) right top no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) left bottom no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) left bottom no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right bottom no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right bottom no-repeat;background-size:1px 20px,20px 1px,1px 20px,20px 1px;background-color:#14141480}.pannel-box .pannel-content{overflow-y:auto;width:100%;height:100%}.pannel-box .pannel-close-icon{position:absolute;right:-8px;top:-8px;cursor:pointer}@keyframes fadeInRight-96bc74c6{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:none}}.fadein-right{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInRight-96bc74c6;animation-name:fadeInRight-96bc74c6}@keyframes fadeInLeft-96bc74c6{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:none}}.fadein-left{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInLeft-96bc74c6;animation-name:fadeInLeft-96bc74c6}@keyframes fadeInUp-96bc74c6{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translateY(100%)}to{opacity:1;-webkit-transform:none;transform:none}}.fadein-up{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInUp-96bc74c6;animation-name:fadeInUp-96bc74c6}@keyframes fadeInDown-96bc74c6{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translateY(-100%)}to{opacity:1;-webkit-transform:none;transform:none}}.fadein-down{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInDown-96bc74c6;animation-name:fadeInDown-96bc74c6}@keyframes fadeInCenter-96bc74c6{0%{opacity:0;transform:scale(.1)}to{opacity:1;transform:none}}.fadein-center{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInCenter-96bc74c6;animation-name:fadeInCenter-96bc74c6}.gis-dropdown *{color:#ffffffd9!important}.gis-dropdown .ant-dropdown-menu{background-color:#3f4854b3!important}.gis-dropdown .ant-dropdown-menu .i-icon{vertical-align:middle;margin-right:4px}.gis-dropdown .ant-dropdown-menu-item:hover,.gis-dropdown .ant-dropdown-menu-submenu-title:hover{background-color:#ffffff14}.gis-message .ant-message-notice-content{background:#14141480!important;color:#ffffffd9;border:1px solid #ececec}.gis-message .ant-message-info .anticon *{color:#4db3ff!important}.gis-global-alert *{color:#ffffffd9}.gis-global-alert .ant-modal-confirm-title{margin:0;font-size:16px;color:#ffffffd9!important}.gis-global-alert .ant-modal-confirm-content{font-size:14px;color:#ffffffd9!important;user-select:text}.gis-global-alert .ant-modal-confirm-btns{margin-top:20px}.gis-global-alert .ant-modal-confirm-btns .ant-btn{background:#14141480;background-color:#14141480}.gis-global-alert .ant-modal-content{background:#14141480;border:1px solid #ececec}.gis-global-alert .ant-modal-body{padding:15px}.gis-global-alert .anticon *{color:#4db3ff!important;font-size:20px}.gis-notify-message{right:30px!important;padding:15px 10px;border:1px solid #ececec;background:#14141480!important}.gis-notify-message *{color:#ffffffd9}.gis-notify-message .ant-notification-notice-icon{margin:0;font-size:22px;line-height:22px}.gis-notify-message .ant-notification-notice-message{height:30px;margin-left:30px;color:#ffffffd9;font-size:16px;border-color:#ececec}.gis-notify-message .ant-notification-notice-description{color:#ffffffd9;margin-left:5px;line-height:21px;text-indent:25px;user-select:text}.gis-notify-message .ant-notification-notice-close{color:#ffffffd9;top:10px;right:10px}.gis-notify-message .anticon *{color:#4db3ff!important;font-size:20px}.gis-main-view .ant-tree{background:none;color:#ffffffd9}.gis-main-view .ant-tree-checkbox{margin-right:0}.gis-main-view .ant-tree-show-line .ant-tree-switcher,.gis-main-view .ant-tree-checkbox-inner{background:none!important;border-color:#ccc}.gis-main-view .ant-tree-checkbox-checked{background:#4db3ff}.gis-main-view .ant-tree-checkbox-checked .ant-tree-checkbox-inner{border-color:#4db3ff}.gis-main-view .anticon-file.ant-tree-switcher-line-icon{display:none}.gis-main-view .ant-tree-show-line .ant-tree-indent-unit:before{border-right:1px dotted #ffffffd9}.gis-main-view .ant-tree-switcher-noop{width:20px}.gis-main-view .ant-tree-switcher-noop:before{content:"";display:inline-block;position:absolute;height:26px;border-right:1px dotted #ffffffd9}.gis-main-view .ant-tree-treenode-leaf-last .ant-tree-switcher-noop:before{content:"";display:inline-block;position:absolute;height:10px;border-right:1px dotted #ffffffd9}.gis-main-view .ant-tree-switcher-noop:after{content:"";display:inline-block;width:8px;position:absolute;top:10px;border-bottom:1px dotted #ffffffd9}.gis-main-view .ant-tree-node-content-wrapper .ant-tree-iconEle{line-height:2.2}.gis-main-view .ant-tree-node-content-wrapper:hover{background:hsla(0,0%,100%,.08)!important}.gis-link-btn-primary *{color:#4db3ff!important}.base-overlay .ant-dropdown-menu{background-color:#3f4854b3!important}.base-overlay .ant-dropdown-menu .i-icon{vertical-align:middle;margin-right:4px}.gis-popup-btn-custom{padding:3px 10px;border:1px solid #209ffd;background:#209ffd1c}.gis-template-content label{padding-right:6px}.gis-template-titile a{font-size:16px}.icon-vertical-a{width:20px;height:20px;vertical-align:-.3em!important}.ant-popover .ant-popover-title{color:#ffffffd9}.ant-popover-inner-content a{color:#4db3ff!important}.ant-popover-inner-content a:hover{text-decoration:underline}.gis-primary-table{width:100%}.gis-primary-table tr td:nth-of-type(1){width:100px}.gis-primary-table td{padding:5px}.gis-main-view{color:#ffffffd9}.gis-main-view .ant-collapse,.gis-main-view .ant-collapse-item,.gis-main-view .ant-collapse-content{background:none!important;border:none}.gis-main-view .ant-collapse-content-box{padding:5px}.gis-main-view .ant-collapse-header{background-color:#202a4480!important;padding:5px 10px!important;border-bottom:1px solid #000;color:#fff!important}.gis-main-view .ant-collapse-header .i-icon{font-size:16px!important;line-height:16px;vertical-align:middle!important}.gis-main-view .ant-collapse-content{color:#ffffffd9!important}.gis-main-view .ant-collapse-extra .i-icon{font-size:16px;line-height:16px;vertical-align:middle}.gis-main-view .ant-radio-button-wrapper{background:rgba(32,160,255,.2);color:#ffffffd9;box-shadow:none!important}.gis-main-view .ant-form{color:#ffffffec}.gis-main-view .ant-form-item{margin-bottom:10px!important;color:#ffffffd9}.gis-main-view .ant-form-item .ant-form-item-label>label{color:#ffffffd9}.gis-main-view .ant-form-item:nth-last-child(1){margin-bottom:0!important}.gis-main-view .gis-ant-card{background:none;border:1px solid #ffffffd9;color:#ffffffd9}.gis-main-view .gis-ant-card .ant-card-head{border-color:#ffffffd9;min-height:auto;padding:0 10px;color:#fff}.gis-main-view .gis-ant-card .ant-card-head .ant-card-head-title{padding:8px 0}.gis-main-view .gis-ant-card .ant-card-body{padding:10px}.gis-main-view .ant-upload,.gis-main-view .ant-checkbox-wrapper{color:#ffffffd9}.gis-main-view .ant-checkbox-wrapper .ant-checkbox-inner{background-color:#fff;border-color:gray}.gis-main-view .ant-checkbox-wrapper .ant-checkbox-checked{background:#4db3ff}.gis-main-view .ant-checkbox-wrapper .ant-checkbox-checked .ant-checkbox-inner{background-color:#4db3ff;border-color:#4db3ff}.gis-main-view .ant-radio-wrapper{color:#ffffffd9}.gis-main-view .ant-radio-wrapper .ant-radio-inner{background-color:#fff;border-color:gray;box-shadow:none!important;outline:none!important}.gis-main-view .ant-radio-wrapper .ant-radio-checked .ant-radio-inner{border-color:#4db3ff}.gis-main-view .ant-radio-wrapper .ant-radio-input{box-shadow:none!important;outline:none!important}.gis-main-view .ant-switch{background-color:#ffffff4d}.gis-main-view .ant-switch-checked{background-color:#4db3ff!important}.gis-main-view .ant-table,.gis-main-view .ant-table-thead>tr>th{color:#ffffffd9;background:none!important}.gis-main-view .ant-table .ant-table-thead{background-color:#20a0ff33}.gis-main-view .ant-table-tbody>tr.ant-table-placeholder>td{background:#141414}.gis-main-view .ant-table-row:hover>td,.gis-main-view .ant-table-row-selected>td{background-color:#20a0ff33!important}.gis-main-view .ant-table-container,.gis-main-view .ant-table-cell{border-color:#cde1de!important;background:transparent!important}.gis-main-view .ant-table-container{border:1px solid #cde1de!important}.gis-main-view .ant-table-cell:last-child{border-right:0!important}.gis-main-view .ant-table-placeholder>td{background:rgba(32,42,68,.3)!important}.gis-main-view .ant-table-row:nth-last-child(1) .ant-table-cell{border-bottom:none}.gis-main-view :deep(.ant-tabs-tab){color:#ffffffd9!important}.gis-main-view .ant-pagination *{color:#ffffffd9!important}.gis-main-view .ant-pagination .ant-pagination-item,.gis-main-view .ant-pagination .ant-pagination-prev,.gis-main-view .ant-pagination .ant-pagination-next,.gis-main-view .ant-pagination .ant-pagination-simple-pager input{background:none;background-color:transparent!important}.gis-main-view .ant-select-dropdown{background-color:#3f4854b3!important}.gis-main-view .ant-select-dropdown .ant-select-item{transition:none}.gis-main-view .ant-select-dropdown .ant-select-item:hover,.gis-main-view .ant-select-dropdown .ant-select-item:focus{background-color:#25313fc9}.gis-main-view .ant-select-dropdown .ant-select-item-option-active{background-color:#25313fc9!important}.gis-main-view .ant-select:not(.ant-select-customize-input) .ant-select-selector{background-color:transparent!important}.gis-main-view .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:#000000d9!important}.gis-main-view .ant-select-arrow{color:#ffffffd9!important}.gis-main-view .ant-list-items *{color:#ffffffd9}.gis-main-view .ant-list-items .ant-list-item{border-bottom:1px solid #303030}.gis-main-view .ant-list-items .ant-list-item-meta-description{color:#ffffff73}.gis-main-view .ant-divider-vertical{border-color:#ffffffd9}.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected,.ant-input-number-handler-wrap{background-color:#3f4854b3!important}.ant-table-body::-webkit-scrollbar{height:0;width:0}.gis-pannel-item-label{display:block;text-align:right;width:60px}.gis-earth,.gis-container{width:100%;height:100%;user-select:none;overflow:hidden;position:relative}.cesium-viewer-toolbar{top:auto;bottom:35px;left:12px;right:auto}.cesium-toolbar-button img{height:100%}.cesium-viewer-toolbar>.cesium-toolbar-button,.cesium-navigationHelpButton-wrapper,.cesium-viewer-geocoderContainer{margin-bottom:5px;float:left;clear:both;text-align:center}.cesium-button{background-color:#3f4854;color:#e6e6e6;fill:#e6e6e6;box-shadow:0 1px 4px #0000004d;line-height:32px}.cesium-baseLayerPicker-dropDown{bottom:0;left:40px;max-height:700px;margin-bottom:5px}.cesium-navigation-help{top:auto;bottom:0;left:40px;transform-origin:left bottom}.cesium-sceneModePicker-wrapper{width:auto}.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon{float:right;margin:0 3px}.cesium-viewer-geocoderContainer .search-results{left:0;right:40px;width:auto;z-index:9999}.cesium-geocoder-searchButton{background-color:#3f4854}.cesium-viewer-geocoderContainer .cesium-geocoder-input{background-color:#3f4854b3}.cesium-viewer-geocoderContainer .cesium-geocoder-input:focus{background-color:#3f4854e6}.cesium-viewer-geocoderContainer .search-results{background-color:#3f4854}.cesium-infoBox{top:50px;background:rgba(63,72,84,.9)}.cesium-infoBox-title{background-color:#3f4854}.cesium-performanceDisplay-defaultContainer{top:auto;bottom:35px;right:50px}.cesium-performanceDisplay-ms,.cesium-performanceDisplay-fps{color:#fff}.cesium-viewer-cesiumInspectorContainer{top:10px;left:10px;right:auto;background-color:#3f4854}.gis-mark{position:absolute;background:linear-gradient(45deg,#000,transparent,#000);z-index:990;width:100%;height:30px;bottom:0}
1
+ @charset "UTF-8";*{margin:0;padding:0;list-style-type:none;box-sizing:border-box;outline:none}html{margin:0;padding:0;font-size:14px;height:100%}body{font-family:Arial,Helvetica,sans-serif;line-height:1.4em;margin:0;padding:0;height:100%}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,fieldset,lengend,button,input,textarea,th,td{margin:0;padding:0;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none;list-style:none}a{text-decoration:none;cursor:pointer}i{font-style:normal}::-webkit-scrollbar{width:4px;height:3px}::-webkit-scrollbar-track{background:#fcfcfc;width:2px;border-radius:8px}::-webkit-scrollbar-thumb{background:#c1c4c7;border-radius:2px}::-webkit-scrollbar-thumb:hover{background:#a8abad}::-webkit-scrollbar-corner{background:#dadfe3}.hidden{visibility:hidden}.visible{visibility:visible}.fwb{font-weight:700}.w1,.wh1{width:100%}.h1,.wh1{height:100%}.flex,.flex-c{display:flex}.flex-c{flex-direction:column}.clearfix:after{content:"";display:table;height:0;line-height:0;visibility:hidden;clear:both}.nowrap{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.text-a{color:#666}.bg-a{background-color:#666}.text-w{color:#fff}.bg-w{background-color:#fff}.text-d{color:#000}.bg-d{background-color:#000}.text-r{color:red}.bg-r{background-color:red}.text-p{color:#f0f}.bg-p{background-color:#f0f}.text-y{color:#ff0}.bg-y{background-color:#ff0}.text-b{color:#00f}.bg-b{background-color:#00f}.text-g{color:#0f0}.bg-g{background-color:#0f0}.text-t{color:#0ff}.bg-t{background-color:#0ff}.tr{text-align:right}.fr{float:right}.tc{text-align:center}.fc{float:center}.tl{text-align:left}.fl{float:left}.jc-start{justify-content:flex-start}.jc-end{justify-content:flex-end}.jc-center{justify-content:center}.jc-between{justify-content:space-between}.jc-around{justify-content:space-around}.jc-evenly{justify-content:space-evenly}.ai-start{align-items:flex-start}.ai-end{align-items:flex-end}.ai-center{align-items:center}.ai-stretch{align-items:stretch}.fs-xxs{font-size:1rem}.fs-xs{font-size:1.2rem}.fs-s{font-size:1.4rem}.fs-m{font-size:1.6rem}.fs-l{font-size:1.8rem}.fs-xl{font-size:2rem}.fs-xxl{font-size:2.2rem}.fs-xxxl{font-size:2.4rem}.flex-0{flex:0}.flex-1{flex:.1}.flex-2{flex:.2}.flex-3{flex:.3}.flex-4{flex:.4}.flex-5{flex:.5}.flex-6{flex:.6}.flex-7{flex:.7}.flex-8{flex:.8}.flex-9{flex:.9}.flex-10{flex:1}.m-0{margin:0rem}.m-1{margin:.1rem}.m-2{margin:.2rem}.m-3{margin:.3rem}.m-4{margin:.4rem}.m-5{margin:.5rem}.m-6{margin:.6rem}.m-7{margin:.7rem}.m-8{margin:.8rem}.m-9{margin:.9rem}.m-10{margin:1rem}.mx-0{margin-left:0rem;margin-right:0rem}.my-0{margin-top:0rem;margin-bottom:0rem}.mx-1{margin-left:.1rem;margin-right:.1rem}.my-1{margin-top:.1rem;margin-bottom:.1rem}.mx-2{margin-left:.2rem;margin-right:.2rem}.my-2{margin-top:.2rem;margin-bottom:.2rem}.mx-3{margin-left:.3rem;margin-right:.3rem}.my-3{margin-top:.3rem;margin-bottom:.3rem}.mx-4{margin-left:.4rem;margin-right:.4rem}.my-4{margin-top:.4rem;margin-bottom:.4rem}.mx-5{margin-left:.5rem;margin-right:.5rem}.my-5{margin-top:.5rem;margin-bottom:.5rem}.mx-6{margin-left:.6rem;margin-right:.6rem}.my-6{margin-top:.6rem;margin-bottom:.6rem}.mx-7{margin-left:.7rem;margin-right:.7rem}.my-7{margin-top:.7rem;margin-bottom:.7rem}.mx-8{margin-left:.8rem;margin-right:.8rem}.my-8{margin-top:.8rem;margin-bottom:.8rem}.mx-9{margin-left:.9rem;margin-right:.9rem}.my-9{margin-top:.9rem;margin-bottom:.9rem}.mx-10{margin-left:1rem;margin-right:1rem}.my-10{margin-top:1rem;margin-bottom:1rem}.mt-0{margin-top:0rem}.mt-1{margin-top:.1rem}.mt-2{margin-top:.2rem}.mt-3{margin-top:.3rem}.mt-4{margin-top:.4rem}.mt-5{margin-top:.5rem}.mt-6{margin-top:.6rem}.mt-7{margin-top:.7rem}.mt-8{margin-top:.8rem}.mt-9{margin-top:.9rem}.mt-10{margin-top:1rem}.mr-0{margin-right:0rem}.mr-1{margin-right:.1rem}.mr-2{margin-right:.2rem}.mr-3{margin-right:.3rem}.mr-4{margin-right:.4rem}.mr-5{margin-right:.5rem}.mr-6{margin-right:.6rem}.mr-7{margin-right:.7rem}.mr-8{margin-right:.8rem}.mr-9{margin-right:.9rem}.mr-10{margin-right:1rem}.mb-0{margin-bottom:0rem}.mb-1{margin-bottom:.1rem}.mb-2{margin-bottom:.2rem}.mb-3{margin-bottom:.3rem}.mb-4{margin-bottom:.4rem}.mb-5{margin-bottom:.5rem}.mb-6{margin-bottom:.6rem}.mb-7{margin-bottom:.7rem}.mb-8{margin-bottom:.8rem}.mb-9{margin-bottom:.9rem}.mb-10{margin-bottom:1rem}.ml-0{margin-left:0rem}.ml-1{margin-left:.1rem}.ml-2{margin-left:.2rem}.ml-3{margin-left:.3rem}.ml-4{margin-left:.4rem}.ml-5{margin-left:.5rem}.ml-6{margin-left:.6rem}.ml-7{margin-left:.7rem}.ml-8{margin-left:.8rem}.ml-9{margin-left:.9rem}.ml-10{margin-left:1rem}.m{margin:0}.p-0{padding:0rem}.p-1{padding:.1rem}.p-2{padding:.2rem}.p-3{padding:.3rem}.p-4{padding:.4rem}.p-5{padding:.5rem}.p-6{padding:.6rem}.p-7{padding:.7rem}.p-8{padding:.8rem}.p-9{padding:.9rem}.p-10{padding:1rem}.px-0{padding-left:0rem;padding-right:0rem}.py-0{padding-top:0rem;padding-bottom:0rem}.px-1{padding-left:.1rem;padding-right:.1rem}.py-1{padding-top:.1rem;padding-bottom:.1rem}.px-2{padding-left:.2rem;padding-right:.2rem}.py-2{padding-top:.2rem;padding-bottom:.2rem}.px-3{padding-left:.3rem;padding-right:.3rem}.py-3{padding-top:.3rem;padding-bottom:.3rem}.px-4{padding-left:.4rem;padding-right:.4rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.px-5{padding-left:.5rem;padding-right:.5rem}.py-5{padding-top:.5rem;padding-bottom:.5rem}.px-6{padding-left:.6rem;padding-right:.6rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.px-7{padding-left:.7rem;padding-right:.7rem}.py-7{padding-top:.7rem;padding-bottom:.7rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-9{padding-left:.9rem;padding-right:.9rem}.py-9{padding-top:.9rem;padding-bottom:.9rem}.px-10{padding-left:1rem;padding-right:1rem}.py-10{padding-top:1rem;padding-bottom:1rem}.pt-0{padding-top:0rem}.pt-1{padding-top:.1rem}.pt-2{padding-top:.2rem}.pt-3{padding-top:.3rem}.pt-4{padding-top:.4rem}.pt-5{padding-top:.5rem}.pt-6{padding-top:.6rem}.pt-7{padding-top:.7rem}.pt-8{padding-top:.8rem}.pt-9{padding-top:.9rem}.pt-10{padding-top:1rem}.pr-0{padding-right:0rem}.pr-1{padding-right:.1rem}.pr-2{padding-right:.2rem}.pr-3{padding-right:.3rem}.pr-4{padding-right:.4rem}.pr-5{padding-right:.5rem}.pr-6{padding-right:.6rem}.pr-7{padding-right:.7rem}.pr-8{padding-right:.8rem}.pr-9{padding-right:.9rem}.pr-10{padding-right:1rem}.pb-0{padding-bottom:0rem}.pb-1{padding-bottom:.1rem}.pb-2{padding-bottom:.2rem}.pb-3{padding-bottom:.3rem}.pb-4{padding-bottom:.4rem}.pb-5{padding-bottom:.5rem}.pb-6{padding-bottom:.6rem}.pb-7{padding-bottom:.7rem}.pb-8{padding-bottom:.8rem}.pb-9{padding-bottom:.9rem}.pb-10{padding-bottom:1rem}.pl-0{padding-left:0rem}.pl-1{padding-left:.1rem}.pl-2{padding-left:.2rem}.pl-3{padding-left:.3rem}.pl-4{padding-left:.4rem}.pl-5{padding-left:.5rem}.pl-6{padding-left:.6rem}.pl-7{padding-left:.7rem}.pl-8{padding-left:.8rem}.pl-9{padding-left:.9rem}.pl-10{padding-left:1rem}.p{padding:0}.gis-toolbar{position:absolute;display:flex;align-items:center;z-index:1000;background-color:#212121cc;border-radius:4px}.gis-toolbar-item{display:inline-block;color:#eee;text-align:center;width:32px;height:28px;margin:4px 0;cursor:pointer}.gis-toolbar-item+.gis-toolbar-item{border-left:1px solid rgba(110,110,110,.9);margin-left:1px}.gis-toolbar-item:hover{filter:invert(40%)}.topleft{left:10px;top:10px}.topright{right:10px;top:10px}.bottomleft{left:10px;bottom:10px}.bottomright{right:10px;bottom:10px}.mars3d-locationbar{line-height:24px;min-height:24px;left:125px!important}.mars3d-distance-legend{z-index:999}.mars3d-locationbar-content{float:left}.mars3d-contextmenu-ul>li>a{padding:6px 22px 6px 8px}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0px;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.gis-select{color:#ffffffd9;background-color:#3f4854b3!important;background:none}.gis-select *{color:#ffffffd9}.gis-select .ant-select-selector{border-color:gray!important;background:none;background-color:transparent!important}.ant-select:not(.ant-select-disabled):hover,.ant-select:not(.ant-select-disabled):focus{border-color:#4db3ff}.ant-select:not(.ant-select-disabled):hover .ant-select-selector,.ant-select:not(.ant-select-disabled):focus .ant-select-selector{border-color:#4db3ff}.gis-button{font-size:14px;background:#20a0ff33;border-color:#20a0ff;padding-left:10px;padding-right:10px;color:#fff}.gis-button .i-icon{font-size:18px!important;line-height:18px;vertical-align:middle!important;padding-left:2px;padding-right:2px}.gis-button:not([disabled]):hover{color:#fff;border-color:#89bceb;background:#20a0ff33}.gis-button:not([disabled]):focus{color:#fff;border-color:#89bceb;background:#20a0ff33}.ant-btn:disabled{color:#fff;border-color:#89bceb;background:rgba(32,160,255,.2)}.ant-btn:disabled:hover{background:rgba(32,160,255,.2);color:#ccc}.ant-btn-primary{background:#4db3ff;border:none}.ant-btn-link{border:none!important;background:none!important;padding:0;height:initial}.small-btn{padding:4px 5px}.gis-input{color:#ffffffd9;background-color:#3f4854b3!important;border-color:gray;font-size:12px!important}.gis-input .ant-input{background-color:#3f4854b3!important;border-color:gray;color:#ffffffd9}.gis-input .ant-input-suffix .anticon{color:#ffffffd9}.gis-input[disabled]{color:#ccc}.gis-textarea{color:#ffffffd9;background-color:#3f4854b3!important}.gis-textarea .ant-input{background-color:#3f4854b3!important;color:#ffffffd9}.gis-textarea .ant-input-suffix .anticon{color:#ffffffd9}.gis-textarea[disabled]{color:#ccc}.gis-input-number{color:#ffffffd9;background-color:#3f4854b3!important;border-color:gray}.gis-input-number *{color:#ffffffd9}.ant-input-number-handler-wrap{background:none}.gis-date-picker{color:#ffffffd9;border-color:gray!important;background-color:#3f4854b3!important}.gis-date-picker .ant-picker-input>input{color:#ffffffd9!important}.gis-date-picker .ant-picker-clear{background:transparent}.gis-date-picker *{color:#ffffffd9!important}.gis-range-picker{color:#ffffffd9;background-color:#3f4854b3!important}.gis-range-picker .ant-picker-input>input{color:#ffffffd9!important}.gis-range-picker .ant-picker-clear{display:none}.ant-picker-header-view{color:red!important}.hu-color-picker{padding:10px;background:#1d2024;border-radius:4px;box-shadow:0 0 16px #00000029;z-index:1}.hu-color-picker{width:220px!important;background-color:#202a44e6!important;box-shadow:none}.hu-color-picker.light{background:#f7f8f9}.hu-color-picker.light .color-show .sucker{background:#eceef0}.hu-color-picker.light .color-type .name{background:#e7e8e9}.hu-color-picker.light .color-type .value{color:#666;background:#eceef0}.hu-color-picker.light .colors.history{border-top:1px solid #eee}.hu-color-picker canvas{vertical-align:top}.hu-color-picker .color-set{display:flex}.hu-color-picker .color-show{margin-top:8px;display:flex}.saturation{position:relative;cursor:pointer}.saturation .slide{position:absolute;left:100px;top:0;width:10px;height:10px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 1px 1px #0000004d;pointer-events:none}.color-alpha{position:relative;margin-left:8px;cursor:pointer}.color-alpha .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.sucker{width:30px;fill:#9099a4;background:#2e333a;cursor:pointer;transition:all .3s}.sucker.active,.sucker:hover{fill:#1593ff}.hue{position:relative;margin-left:8px;cursor:pointer}.hue .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.colors{padding:0;margin:0}.colors.history{margin-top:10px;border-top:1px solid #2e333a}.colors .item{position:relative;width:16px;height:16px;margin:10px 0 0 10px;border-radius:3px;box-sizing:border-box;vertical-align:top;display:inline-block;transition:all .1s;cursor:pointer}.colors .item:nth-child(8n + 1){margin-left:0}.colors .item:hover{transform:scale(1.4)}.colors .item .alpha{height:100%;border-radius:4px}.colors .item .color{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:3px}.color-type{display:flex;margin-top:8px;font-size:12px}.color-type .name{width:60px;height:30px;float:left;display:flex;justify-content:center;align-items:center;color:#999;background:#252930}.color-type .value{flex:1;height:30px;min-width:100px;padding:0 12px;border:0;color:#fff;background:#2e333a;box-sizing:border-box}.gisColorView{display:inline-block;height:20px;width:80px;cursor:pointer}.ml5{margin-left:5px}.gis-icon{vertical-align:middle}.pannel-model{position:absolute;padding:0;border-radius:4px;border:1px solid #4db3ff70;z-index:100;background:linear-gradient(to left,#4db3ff,#4db3ff) left top no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) left top no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right top no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) right top no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) left bottom no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) left bottom no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right bottom no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right bottom no-repeat;background-size:1px 20px,20px 1px,1px 20px,20px 1px;background-color:#14141480}.pannel-model__header{height:40px;line-height:40px;cursor:move;overflow:hidden;padding:0 5px 0 15px;border-bottom:1px solid grey;background-color:#202a4480;color:#ffffffd9}.pannel-model__header .icon{vertical-align:middle;margin-right:5px}.pannel-model__header .title{font-size:16px}.pannel-model__header .close-btn{float:right;cursor:pointer;font-size:16px;margin-top:2px}.pannel-model__body{width:100%;height:calc(100% - 40px);padding:0 5px 10px 10px;overflow:hidden}.content{height:calc(100% - 40px);overflow-y:auto}.full-content{height:100%}.footer{height:40px}.footer .footer-content{height:40px;width:100%;padding-left:10px;padding-right:10px;position:absolute;left:0;bottom:0;display:flex;align-items:center;background:#14141480}.active{touch-action:none;z-index:999!important}.handle{box-sizing:border-box;position:absolute;z-index:1;width:10px;height:10px;opacity:0}.handle-x{height:auto;top:10px;right:0;bottom:10px;cursor:e-resize}.handle-y{width:auto;bottom:0;left:10px;right:10px;cursor:s-resize}.handle-xy{bottom:0;right:0;cursor:se-resize}@media only screen and (max-width: 768px){[class*=handle-]:before{content:"";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}@keyframes fadeInRight-7c2836fe{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:none}}.fadein-right{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInRight-7c2836fe;animation-name:fadeInRight-7c2836fe}@keyframes fadeInLeft-7c2836fe{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:none}}.fadein-left{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInLeft-7c2836fe;animation-name:fadeInLeft-7c2836fe}@keyframes fadeInUp-7c2836fe{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translateY(100%)}to{opacity:1;-webkit-transform:none;transform:none}}.fadein-up{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInUp-7c2836fe;animation-name:fadeInUp-7c2836fe}@keyframes fadeInDown-7c2836fe{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translateY(-100%)}to{opacity:1;-webkit-transform:none;transform:none}}.fadein-down{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInDown-7c2836fe;animation-name:fadeInDown-7c2836fe}@keyframes fadeInCenter-7c2836fe{0%{opacity:0;transform:scale(.1)}to{opacity:1;transform:none}}.fadein-center{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInCenter-7c2836fe;animation-name:fadeInCenter-7c2836fe}.ant-slider-rail{background-color:#cde1de}.gis-slider{margin:0 6px 6px}.gis-slider .ant-slider-mark-text{color:#ffffffd9!important}.gis-slider .ant-slider-rail{height:10px;border-radius:5px;background-color:#20a0ff33!important}.gis-slider .ant-slider-track{height:10px;border-radius:5px;background-color:#4db3ff!important}.gis-slider .ant-slider-dot{border-color:#ececec;background-color:#16212c7d;top:-1px;height:12px;width:12px}.gis-slider .ant-slider-dot:first-child{margin-left:-1px}.gis-slider .ant-slider-dot:last-child{right:-1px;left:auto!important}.gis-slider .ant-slider-handle{position:absolute;width:16px;height:16px;margin-top:-4px}.gis-slider .ant-slider-dot-active{border-color:#4db3ff!important}.gis-main-view .ant-tabs-tab,.gis-main-view .ant-pagination *{color:#ffffffd9!important}.pannel-box{position:absolute;padding:10px;border-radius:4px;z-index:1000;border:1px solid #4db3ff70;background:linear-gradient(to left,#4db3ff,#4db3ff) left top no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) left top no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right top no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) right top no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) left bottom no-repeat,linear-gradient(to bottom,#4db3ff,#4db3ff) left bottom no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right bottom no-repeat,linear-gradient(to left,#4db3ff,#4db3ff) right bottom no-repeat;background-size:1px 20px,20px 1px,1px 20px,20px 1px;background-color:#14141480}.pannel-box .pannel-content{overflow-y:auto;width:100%;height:100%}.pannel-box .pannel-close-icon{position:absolute;right:-8px;top:-8px;cursor:pointer}@keyframes fadeInRight-96bc74c6{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:none}}.fadein-right{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInRight-96bc74c6;animation-name:fadeInRight-96bc74c6}@keyframes fadeInLeft-96bc74c6{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:none}}.fadein-left{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInLeft-96bc74c6;animation-name:fadeInLeft-96bc74c6}@keyframes fadeInUp-96bc74c6{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translateY(100%)}to{opacity:1;-webkit-transform:none;transform:none}}.fadein-up{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInUp-96bc74c6;animation-name:fadeInUp-96bc74c6}@keyframes fadeInDown-96bc74c6{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translateY(-100%)}to{opacity:1;-webkit-transform:none;transform:none}}.fadein-down{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInDown-96bc74c6;animation-name:fadeInDown-96bc74c6}@keyframes fadeInCenter-96bc74c6{0%{opacity:0;transform:scale(.1)}to{opacity:1;transform:none}}.fadein-center{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:fadeInCenter-96bc74c6;animation-name:fadeInCenter-96bc74c6}.gis-dropdown *{color:#ffffffd9!important}.gis-dropdown .ant-dropdown-menu{background-color:#3f4854b3!important}.gis-dropdown .ant-dropdown-menu .i-icon{vertical-align:middle;margin-right:4px}.gis-dropdown .ant-dropdown-menu-item:hover,.gis-dropdown .ant-dropdown-menu-submenu-title:hover{background-color:#ffffff14}.gis-message .ant-message-notice-content{background:#14141480!important;color:#ffffffd9;border:1px solid #ececec}.gis-message .ant-message-info .anticon *{color:#4db3ff!important}.gis-global-alert *{color:#ffffffd9}.gis-global-alert .ant-modal-confirm-title{margin:0;font-size:16px;color:#ffffffd9!important}.gis-global-alert .ant-modal-confirm-content{font-size:14px;color:#ffffffd9!important;user-select:text}.gis-global-alert .ant-modal-confirm-btns{margin-top:20px}.gis-global-alert .ant-modal-confirm-btns .ant-btn{background:#14141480;background-color:#14141480}.gis-global-alert .ant-modal-content{background:#14141480;border:1px solid #ececec}.gis-global-alert .ant-modal-body{padding:15px}.gis-global-alert .anticon *{color:#4db3ff!important;font-size:20px}.gis-notify-message{right:30px!important;padding:15px 10px;border:1px solid #ececec;background:#14141480!important}.gis-notify-message *{color:#ffffffd9}.gis-notify-message .ant-notification-notice-icon{margin:0;font-size:22px;line-height:22px}.gis-notify-message .ant-notification-notice-message{height:30px;margin-left:30px;color:#ffffffd9;font-size:16px;border-color:#ececec}.gis-notify-message .ant-notification-notice-description{color:#ffffffd9;margin-left:5px;line-height:21px;text-indent:25px;user-select:text}.gis-notify-message .ant-notification-notice-close{color:#ffffffd9;top:10px;right:10px}.gis-notify-message .anticon *{color:#4db3ff!important;font-size:20px}.gis-main-view .ant-tree{background:none;color:#ffffffd9}.gis-main-view .ant-tree-checkbox{margin-right:0}.gis-main-view .ant-tree-show-line .ant-tree-switcher,.gis-main-view .ant-tree-checkbox-inner{background:none!important;border-color:#ccc}.gis-main-view .ant-tree-checkbox-checked{background:#4db3ff}.gis-main-view .ant-tree-checkbox-checked .ant-tree-checkbox-inner{border-color:#4db3ff}.gis-main-view .anticon-file.ant-tree-switcher-line-icon{display:none}.gis-main-view .ant-tree-show-line .ant-tree-indent-unit:before{border-right:1px dotted #ffffffd9}.gis-main-view .ant-tree-switcher-noop{width:20px}.gis-main-view .ant-tree-switcher-noop:before{content:"";display:inline-block;position:absolute;height:26px;border-right:1px dotted #ffffffd9}.gis-main-view .ant-tree-treenode-leaf-last .ant-tree-switcher-noop:before{content:"";display:inline-block;position:absolute;height:10px;border-right:1px dotted #ffffffd9}.gis-main-view .ant-tree-switcher-noop:after{content:"";display:inline-block;width:8px;position:absolute;top:10px;border-bottom:1px dotted #ffffffd9}.gis-main-view .ant-tree-node-content-wrapper .ant-tree-iconEle{line-height:2.2}.gis-main-view .ant-tree-node-content-wrapper:hover{background:hsla(0,0%,100%,.08)!important}.gis-link-btn-primary *{color:#4db3ff!important}.base-overlay .ant-dropdown-menu{background-color:#3f4854b3!important}.base-overlay .ant-dropdown-menu .i-icon{vertical-align:middle;margin-right:4px}.gis-popup-btn-custom{padding:3px 10px;border:1px solid #209ffd;background:#209ffd1c}.gis-template-content label{padding-right:6px}.gis-template-titile a{font-size:16px}.icon-vertical-a{width:20px;height:20px;vertical-align:-.3em!important}.ant-popover .ant-popover-title{color:#ffffffd9}.ant-popover-inner-content a{color:#4db3ff!important}.ant-popover-inner-content a:hover{text-decoration:underline}.gis-primary-table{width:100%}.gis-primary-table tr td:nth-of-type(1){width:100px}.gis-primary-table td{padding:5px}.gis-main-view{color:#ffffffd9}.gis-main-view .ant-collapse,.gis-main-view .ant-collapse-item,.gis-main-view .ant-collapse-content{background:none!important;border:none}.gis-main-view .ant-collapse-content-box{padding:5px}.gis-main-view .ant-collapse-header{background-color:#202a4480!important;padding:5px 10px!important;border-bottom:1px solid #000;color:#fff!important}.gis-main-view .ant-collapse-header .i-icon{font-size:16px!important;line-height:16px;vertical-align:middle!important}.gis-main-view .ant-collapse-content{color:#ffffffd9!important}.gis-main-view .ant-collapse-extra .i-icon{font-size:16px;line-height:16px;vertical-align:middle}.gis-main-view .ant-radio-button-wrapper{background:rgba(32,160,255,.2);color:#ffffffd9;box-shadow:none!important}.gis-main-view .ant-form{color:#ffffffec}.gis-main-view .ant-form-item{margin-bottom:10px!important;color:#ffffffd9}.gis-main-view .ant-form-item .ant-form-item-label>label{color:#ffffffd9}.gis-main-view .ant-form-item:nth-last-child(1){margin-bottom:0!important}.gis-main-view .gis-ant-card{background:none;border:1px solid #ffffffd9;color:#ffffffd9}.gis-main-view .gis-ant-card .ant-card-head{border-color:#ffffffd9;min-height:auto;padding:0 10px;color:#fff}.gis-main-view .gis-ant-card .ant-card-head .ant-card-head-title{padding:8px 0}.gis-main-view .gis-ant-card .ant-card-body{padding:10px}.gis-main-view .ant-upload,.gis-main-view .ant-checkbox-wrapper{color:#ffffffd9}.gis-main-view .ant-checkbox-wrapper .ant-checkbox-inner{background-color:#fff;border-color:gray}.gis-main-view .ant-checkbox-wrapper .ant-checkbox-checked{background:#4db3ff}.gis-main-view .ant-checkbox-wrapper .ant-checkbox-checked .ant-checkbox-inner{background-color:#4db3ff;border-color:#4db3ff}.gis-main-view .ant-radio-wrapper{color:#ffffffd9}.gis-main-view .ant-radio-wrapper .ant-radio-inner{background-color:#fff;border-color:gray;box-shadow:none!important;outline:none!important}.gis-main-view .ant-radio-wrapper .ant-radio-checked .ant-radio-inner{border-color:#4db3ff}.gis-main-view .ant-radio-wrapper .ant-radio-input{box-shadow:none!important;outline:none!important}.gis-main-view .ant-switch{background-color:#ffffff4d}.gis-main-view .ant-switch-checked{background-color:#4db3ff!important}.gis-main-view .ant-table,.gis-main-view .ant-table-thead>tr>th{color:#ffffffd9;background:none!important}.gis-main-view .ant-table .ant-table-thead{background-color:#20a0ff33}.gis-main-view .ant-table-tbody>tr.ant-table-placeholder>td{background:#141414}.gis-main-view .ant-table-row:hover>td,.gis-main-view .ant-table-row-selected>td{background-color:#20a0ff33!important}.gis-main-view .ant-table-container,.gis-main-view .ant-table-cell{border-color:#cde1de!important;background:transparent!important}.gis-main-view .ant-table-container{border:1px solid #cde1de!important}.gis-main-view .ant-table-cell:last-child{border-right:0!important}.gis-main-view .ant-table-placeholder>td{background:rgba(32,42,68,.3)!important}.gis-main-view .ant-table-row:nth-last-child(1) .ant-table-cell{border-bottom:none}.gis-main-view :deep(.ant-tabs-tab){color:#ffffffd9!important}.gis-main-view .ant-pagination *{color:#ffffffd9!important}.gis-main-view .ant-pagination .ant-pagination-item,.gis-main-view .ant-pagination .ant-pagination-prev,.gis-main-view .ant-pagination .ant-pagination-next,.gis-main-view .ant-pagination .ant-pagination-simple-pager input{background:none;background-color:transparent!important}.gis-main-view .ant-select-dropdown{background-color:#3f4854b3!important}.gis-main-view .ant-select-dropdown .ant-select-item{transition:none}.gis-main-view .ant-select-dropdown .ant-select-item:hover,.gis-main-view .ant-select-dropdown .ant-select-item:focus{background-color:#25313fc9}.gis-main-view .ant-select-dropdown .ant-select-item-option-active{background-color:#25313fc9!important}.gis-main-view .ant-select:not(.ant-select-customize-input) .ant-select-selector{background-color:transparent!important}.gis-main-view .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:#000000d9!important}.gis-main-view .ant-select-arrow{color:#ffffffd9!important}.gis-main-view .ant-list-items *{color:#ffffffd9}.gis-main-view .ant-list-items .ant-list-item{border-bottom:1px solid #303030}.gis-main-view .ant-list-items .ant-list-item-meta-description{color:#ffffff73}.gis-main-view .ant-divider-vertical{border-color:#ffffffd9}.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected,.ant-input-number-handler-wrap{background-color:#3f4854b3!important}.ant-table-body::-webkit-scrollbar{height:0;width:0}.gis-pannel-item-label{display:block;text-align:right;width:60px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gis-cesium-helper",
3
- "version": "1.0.26",
3
+ "version": "1.1.1",
4
4
  "author": "Guo.Yan <luv02@vip.qq.com>",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -27,9 +27,10 @@
27
27
  "url": ""
28
28
  },
29
29
  "dependencies": {
30
- "gis-common": "^1.1.5",
30
+ "gis-common": "^1.1.18",
31
31
  "mars3d": "^3.3.5",
32
32
  "sass": "^1.50.1",
33
+ "vite-plugin-mars3d": "^1.1.4",
33
34
  "vue": "^3.2.16"
34
35
  },
35
36
  "devDependencies": {