mapboxgl-tools 2.1.0 → 2.2.0
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/dist/index.css +1 -1
- package/dist/ui.es.js +505 -480
- package/dist/ui.umd.js +1 -1
- package/package.json +3 -3
package/dist/ui.es.js
CHANGED
|
@@ -1,475 +1,6 @@
|
|
|
1
|
-
import "vue";
|
|
2
1
|
import "@wbiokr/css-class";
|
|
3
2
|
import { coordListByStr } from "@wbiokr/geo";
|
|
4
|
-
|
|
5
|
-
function S4() {
|
|
6
|
-
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
7
|
-
}
|
|
8
|
-
var uuid = S4() + S4() + S4() + S4() + S4() + S4() + S4() + S4();
|
|
9
|
-
if (!num) {
|
|
10
|
-
return uuid;
|
|
11
|
-
} else {
|
|
12
|
-
return uuid.substr(0, num);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function mercatorToLnglat(mercatorX, mercatorY) {
|
|
16
|
-
let x = mercatorX / 2003750834e-2 * 180;
|
|
17
|
-
let y = mercatorY / 2003750834e-2 * 180;
|
|
18
|
-
y = 180 / Math.PI * (2 * Math.atan(Math.exp(y * Math.PI / 180)) - Math.PI / 2);
|
|
19
|
-
return [x, y];
|
|
20
|
-
}
|
|
21
|
-
function transformRequest4326(url) {
|
|
22
|
-
if (url.includes("4326")) {
|
|
23
|
-
url = url.toLowerCase().replace(/(bbox=)([^&]+)/, ($0, $1, $2) => {
|
|
24
|
-
let points = $2.split(",");
|
|
25
|
-
let leftLngLat = mercatorToLnglat(points[0], points[1]);
|
|
26
|
-
let rightLngLat = mercatorToLnglat(points[2], points[3]);
|
|
27
|
-
return `${$1}${leftLngLat[0]},${leftLngLat[1]},${rightLngLat[0]},${rightLngLat[1]}`;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
url
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function copyContent(text) {
|
|
35
|
-
const input = document.createElement("input");
|
|
36
|
-
input.value = text;
|
|
37
|
-
document.body.appendChild(input);
|
|
38
|
-
input.select();
|
|
39
|
-
document.execCommand("copy");
|
|
40
|
-
document.body.removeChild(input);
|
|
41
|
-
}
|
|
42
|
-
function e$1(e2 = "WBIOKR-DB", t2 = 1, n2 = "WBIOKR-STORE", r2 = "id") {
|
|
43
|
-
let o;
|
|
44
|
-
const s2 = window.indexedDB || window.webikitIndexedDB || window.mozIndexedDB || window.msIndexedDB;
|
|
45
|
-
if (!s2)
|
|
46
|
-
return u;
|
|
47
|
-
const c = s2 == null ? void 0 : s2.open(e2, t2);
|
|
48
|
-
function u(e3, t3) {
|
|
49
|
-
try {
|
|
50
|
-
return 0 === arguments.length ? new Promise((e4, t4) => {
|
|
51
|
-
const r3 = o.transaction([n2]).objectStore(n2).getAll();
|
|
52
|
-
r3.onsuccess = () => {
|
|
53
|
-
r3.result ? e4(r3.result) : t4("\u83B7\u53D6\u5931\u8D25");
|
|
54
|
-
}, r3.onerror = (e5) => {
|
|
55
|
-
t4(e5);
|
|
56
|
-
};
|
|
57
|
-
}) : 1 === arguments.length ? function(e4) {
|
|
58
|
-
return new Promise((t4, r3) => {
|
|
59
|
-
const s3 = o.transaction([n2]).objectStore(n2).get(e4);
|
|
60
|
-
s3.onsuccess = (e5) => {
|
|
61
|
-
s3.result ? t4(s3.result) : r3(null);
|
|
62
|
-
}, s3.onerror = (e5) => {
|
|
63
|
-
r3(e5);
|
|
64
|
-
};
|
|
65
|
-
});
|
|
66
|
-
}(e3) : 2 === arguments.length ? function(e4, t4) {
|
|
67
|
-
return new Promise((e5, r3) => {
|
|
68
|
-
const s3 = o.transaction([n2], "readwrite").objectStore(n2).put(t4);
|
|
69
|
-
s3.onsuccess = (t5) => {
|
|
70
|
-
e5(t5);
|
|
71
|
-
}, s3.onerror = (e6) => {
|
|
72
|
-
r3(e6);
|
|
73
|
-
};
|
|
74
|
-
});
|
|
75
|
-
}(0, t3) : Promise.reject("\u53C2\u6570\u6709\u95EE\u9898");
|
|
76
|
-
} catch (e4) {
|
|
77
|
-
return Promise.reject(e4);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return c.onsuccess = function(e3) {
|
|
81
|
-
o = e3.target.result;
|
|
82
|
-
}, c.onerror = function(e3) {
|
|
83
|
-
console.error(e3);
|
|
84
|
-
}, c.onupgradeneeded = function(e3) {
|
|
85
|
-
o = e3.target.result, o.objectStoreNames.contains(n2) || o.createObjectStore(n2, { keyPath: r2 });
|
|
86
|
-
}, u;
|
|
87
|
-
}
|
|
88
|
-
const myDb = new e$1("WBIOKR-MAPBOX-TOOLS", 1, "WBIOKR-STORE", "id");
|
|
89
|
-
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
90
|
-
var options2 = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
91
|
-
if (render2) {
|
|
92
|
-
options2.render = render2;
|
|
93
|
-
options2.staticRenderFns = staticRenderFns2;
|
|
94
|
-
options2._compiled = true;
|
|
95
|
-
}
|
|
96
|
-
if (functionalTemplate) {
|
|
97
|
-
options2.functional = true;
|
|
98
|
-
}
|
|
99
|
-
if (scopeId) {
|
|
100
|
-
options2._scopeId = "data-v-" + scopeId;
|
|
101
|
-
}
|
|
102
|
-
var hook;
|
|
103
|
-
if (moduleIdentifier) {
|
|
104
|
-
hook = function(context) {
|
|
105
|
-
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
106
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
107
|
-
context = __VUE_SSR_CONTEXT__;
|
|
108
|
-
}
|
|
109
|
-
if (injectStyles) {
|
|
110
|
-
injectStyles.call(this, context);
|
|
111
|
-
}
|
|
112
|
-
if (context && context._registeredComponents) {
|
|
113
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
options2._ssrRegister = hook;
|
|
117
|
-
} else if (injectStyles) {
|
|
118
|
-
hook = shadowMode ? function() {
|
|
119
|
-
injectStyles.call(
|
|
120
|
-
this,
|
|
121
|
-
(options2.functional ? this.parent : this).$root.$options.shadowRoot
|
|
122
|
-
);
|
|
123
|
-
} : injectStyles;
|
|
124
|
-
}
|
|
125
|
-
if (hook) {
|
|
126
|
-
if (options2.functional) {
|
|
127
|
-
options2._injectStyles = hook;
|
|
128
|
-
var originalRender = options2.render;
|
|
129
|
-
options2.render = function renderWithStyleInjection(h, context) {
|
|
130
|
-
hook.call(context);
|
|
131
|
-
return originalRender(h, context);
|
|
132
|
-
};
|
|
133
|
-
} else {
|
|
134
|
-
var existing = options2.beforeCreate;
|
|
135
|
-
options2.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return {
|
|
139
|
-
exports: scriptExports,
|
|
140
|
-
options: options2
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
var render$1 = function() {
|
|
144
|
-
var _vm = this;
|
|
145
|
-
var _h = _vm.$createElement;
|
|
146
|
-
var _c = _vm._self._c || _h;
|
|
147
|
-
return _c("div", [_vm._l(_vm.tiles, function(item, index2) {
|
|
148
|
-
return _c("section", {
|
|
149
|
-
key: item.id,
|
|
150
|
-
class: `w-per-100 f-b-c ${_vm.itemClass}`
|
|
151
|
-
}, [_c("Checkbox", {
|
|
152
|
-
staticClass: "d-f-t white-1 f-s-c",
|
|
153
|
-
on: {
|
|
154
|
-
"change": function($event) {
|
|
155
|
-
return _vm.onChangeGeo(item);
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
model: {
|
|
159
|
-
value: item.checked,
|
|
160
|
-
callback: function($$v) {
|
|
161
|
-
_vm.$set(item, "checked", $$v);
|
|
162
|
-
},
|
|
163
|
-
expression: "item.checked"
|
|
164
|
-
}
|
|
165
|
-
}, [_c("div", {
|
|
166
|
-
staticClass: "white-1",
|
|
167
|
-
staticStyle: {
|
|
168
|
-
"max-width": "150px"
|
|
169
|
-
},
|
|
170
|
-
attrs: {
|
|
171
|
-
"title": item.name || `\u81EA\u5B9A\u4E49\u56FE\u5C42${index2 + 1}`
|
|
172
|
-
}
|
|
173
|
-
}, [_vm._v(" " + _vm._s(item.name || `\u81EA\u5B9A\u4E49\u56FE\u5C42${index2 + 1}`) + " ")])]), _c("div", {
|
|
174
|
-
staticClass: "f-s-c"
|
|
175
|
-
}, [_c("a", {
|
|
176
|
-
staticClass: "m-l-10",
|
|
177
|
-
attrs: {
|
|
178
|
-
"type": "link"
|
|
179
|
-
},
|
|
180
|
-
on: {
|
|
181
|
-
"click": function($event) {
|
|
182
|
-
return _vm.onEdit(item);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}, [_vm._v("Edit")]), _c("span", {
|
|
186
|
-
staticClass: "c-red c-p o-hover-70 m-l-10",
|
|
187
|
-
attrs: {
|
|
188
|
-
"danger": ""
|
|
189
|
-
},
|
|
190
|
-
on: {
|
|
191
|
-
"click": function($event) {
|
|
192
|
-
return _vm.onDelete(item);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}, [_vm._v("Delete")])])], 1);
|
|
196
|
-
}), _c("section", {
|
|
197
|
-
class: `m-t-10 ${_vm.addClass}`
|
|
198
|
-
}, [_c("Button", {
|
|
199
|
-
attrs: {
|
|
200
|
-
"type": _vm.addBtnProps.type || "primary",
|
|
201
|
-
"ghost": _vm.addBtnProps.ghost || false,
|
|
202
|
-
"size": _vm.addBtnProps.size || "small"
|
|
203
|
-
},
|
|
204
|
-
on: {
|
|
205
|
-
"click": _vm.onAdd
|
|
206
|
-
}
|
|
207
|
-
}, [_vm._v(_vm._s(_vm.addBtnProps.text || "\u65B0\u589E\u56FE\u5C42"))])], 1), _c("Tile", {
|
|
208
|
-
ref: "tile",
|
|
209
|
-
on: {
|
|
210
|
-
"confirm": _vm.onConfrim
|
|
211
|
-
}
|
|
212
|
-
})], 2);
|
|
213
|
-
};
|
|
214
|
-
var staticRenderFns$1 = [];
|
|
215
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
216
|
-
const WBIOKR_GEOSERVERS_LIST_ALL = "WBIOKR_GEOSERVERS_LIST_ALL";
|
|
217
|
-
const __vue2_script$1 = {
|
|
218
|
-
name: "Geoservers",
|
|
219
|
-
components: {},
|
|
220
|
-
props: {
|
|
221
|
-
map: {
|
|
222
|
-
type: Object,
|
|
223
|
-
default: () => ({}),
|
|
224
|
-
required: true
|
|
225
|
-
},
|
|
226
|
-
itemClass: {
|
|
227
|
-
type: String,
|
|
228
|
-
default: "",
|
|
229
|
-
required: false
|
|
230
|
-
},
|
|
231
|
-
addClass: {
|
|
232
|
-
type: String,
|
|
233
|
-
default: "",
|
|
234
|
-
required: false
|
|
235
|
-
},
|
|
236
|
-
addBtnProps: {
|
|
237
|
-
type: Object,
|
|
238
|
-
default: () => ({}),
|
|
239
|
-
required: false
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
data() {
|
|
243
|
-
return {
|
|
244
|
-
tiles: []
|
|
245
|
-
};
|
|
246
|
-
},
|
|
247
|
-
mounted() {
|
|
248
|
-
setTimeout(() => {
|
|
249
|
-
this.onInit();
|
|
250
|
-
}, 500);
|
|
251
|
-
},
|
|
252
|
-
methods: {
|
|
253
|
-
onAdd() {
|
|
254
|
-
this.$refs.tile.onAddModal();
|
|
255
|
-
},
|
|
256
|
-
onEdit(item) {
|
|
257
|
-
this.$refs.tile.onEditModal(item);
|
|
258
|
-
},
|
|
259
|
-
onDelete(item) {
|
|
260
|
-
Modal.confirm({
|
|
261
|
-
title: "\u63D0\u793A",
|
|
262
|
-
content: "\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",
|
|
263
|
-
onOk: () => {
|
|
264
|
-
const idx = this.tiles.findIndex((o) => o.id === item.id);
|
|
265
|
-
this.onRemoveGeoserver(this.tiles[idx]);
|
|
266
|
-
this.tiles.splice(idx, 1);
|
|
267
|
-
this.onSyncLocal();
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
},
|
|
271
|
-
async onInit() {
|
|
272
|
-
try {
|
|
273
|
-
const allTiles = await myDb(WBIOKR_GEOSERVERS_LIST_ALL);
|
|
274
|
-
this.tiles = allTiles.data || [];
|
|
275
|
-
} catch (error) {
|
|
276
|
-
this.tiles = [];
|
|
277
|
-
}
|
|
278
|
-
const initTiles = () => {
|
|
279
|
-
this.tiles.forEach((o) => {
|
|
280
|
-
if (o.checked) {
|
|
281
|
-
this.onChangeGeo(o);
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
};
|
|
285
|
-
try {
|
|
286
|
-
initTiles();
|
|
287
|
-
} catch (error) {
|
|
288
|
-
this.map.on("style.load", () => {
|
|
289
|
-
initTiles();
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
onRemoveGeoserver(tileItem) {
|
|
294
|
-
this.map.getLayer(tileItem.id) && this.map.removeLayer(tileItem.id);
|
|
295
|
-
this.map.getSource(tileItem.id) && this.map.removeSource(tileItem.id);
|
|
296
|
-
},
|
|
297
|
-
onChangeGeo(tileItem) {
|
|
298
|
-
if (!tileItem.checked) {
|
|
299
|
-
this.onRemoveGeoserver(tileItem);
|
|
300
|
-
} else {
|
|
301
|
-
const layers = this.map.getStyle().layers.filter((o) => ["fill", "raster", "background", "sky"].includes(o.type));
|
|
302
|
-
layers.length > 0 ? layers[layers.length - 1].id : null;
|
|
303
|
-
!this.map.getSource(tileItem.id) && this.map.addSource(tileItem.id, {
|
|
304
|
-
type: "raster",
|
|
305
|
-
tiles: [tileItem.url.replace(/bbox={bbox}|BBOX={bbox}|BBOX={BBOX}/, "bbox={bbox-epsg-3857}")],
|
|
306
|
-
tileSize: 256
|
|
307
|
-
});
|
|
308
|
-
!this.map.getLayer(tileItem.id) && this.map.addLayer({
|
|
309
|
-
id: tileItem.id,
|
|
310
|
-
type: "raster",
|
|
311
|
-
source: tileItem.id,
|
|
312
|
-
paint: {},
|
|
313
|
-
minZoom: 15
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
this.onSyncLocal();
|
|
317
|
-
},
|
|
318
|
-
onConfrim(form, historyList, type) {
|
|
319
|
-
const idx = this.tiles.findIndex((o) => o.id === form.id);
|
|
320
|
-
if (idx > -1) {
|
|
321
|
-
this.tiles.splice(idx, 1, form);
|
|
322
|
-
if (form.checked) {
|
|
323
|
-
form.checked = false;
|
|
324
|
-
this.onChangeGeo(form);
|
|
325
|
-
this.$nextTick(() => {
|
|
326
|
-
this.onChangeGeo(form);
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
} else {
|
|
330
|
-
this.tiles.push(form);
|
|
331
|
-
}
|
|
332
|
-
this.onSyncLocal();
|
|
333
|
-
},
|
|
334
|
-
onSyncLocal() {
|
|
335
|
-
myDb(WBIOKR_GEOSERVERS_LIST_ALL, {
|
|
336
|
-
id: WBIOKR_GEOSERVERS_LIST_ALL,
|
|
337
|
-
data: this.tiles
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
const __cssModules$1 = {};
|
|
343
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
344
|
-
__vue2_script$1,
|
|
345
|
-
render$1,
|
|
346
|
-
staticRenderFns$1,
|
|
347
|
-
false,
|
|
348
|
-
__vue2_injectStyles$1,
|
|
349
|
-
"15a7d97a",
|
|
350
|
-
null,
|
|
351
|
-
null
|
|
352
|
-
);
|
|
353
|
-
function __vue2_injectStyles$1(context) {
|
|
354
|
-
for (let o in __cssModules$1) {
|
|
355
|
-
this[o] = __cssModules$1[o];
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
var Component$1 = /* @__PURE__ */ function() {
|
|
359
|
-
return __component__$1.exports;
|
|
360
|
-
}();
|
|
361
|
-
Component$1.install = (app) => {
|
|
362
|
-
app.component(Component$1.name || "Geoserver", Component$1);
|
|
363
|
-
};
|
|
364
|
-
var render = function() {
|
|
365
|
-
var _vm = this;
|
|
366
|
-
var _h = _vm.$createElement;
|
|
367
|
-
var _c = _vm._self._c || _h;
|
|
368
|
-
return _c("aside", {
|
|
369
|
-
staticClass: "com- p-a-xr-yt d-i z-100",
|
|
370
|
-
style: {
|
|
371
|
-
right: `${_vm.right}px`,
|
|
372
|
-
top: `${_vm.top}px`
|
|
373
|
-
}
|
|
374
|
-
}, [_c("Button", {
|
|
375
|
-
staticClass: "ease-400",
|
|
376
|
-
class: _vm.visible ? "btn-hidden" : "btn-visible",
|
|
377
|
-
attrs: {
|
|
378
|
-
"icon": "global"
|
|
379
|
-
},
|
|
380
|
-
on: {
|
|
381
|
-
"click": function($event) {
|
|
382
|
-
_vm.visible = !_vm.visible;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}), _c("div", {
|
|
386
|
-
staticClass: "aside-content p-a-xr-yt ease-300 p-lr-20 p-tb-15 bg-color-fff b-r-4",
|
|
387
|
-
class: _vm.visible ? "aside-visible" : "aside-hidden"
|
|
388
|
-
}, [_c("Icon", {
|
|
389
|
-
staticClass: "c-red c-p p-a-xr-yt m-t-5 m-r-5",
|
|
390
|
-
attrs: {
|
|
391
|
-
"type": "close"
|
|
392
|
-
},
|
|
393
|
-
on: {
|
|
394
|
-
"click": function($event) {
|
|
395
|
-
_vm.visible = false;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}), _c("Geoserver", {
|
|
399
|
-
attrs: {
|
|
400
|
-
"map": _vm.map,
|
|
401
|
-
"itemClass": _vm.itemClass,
|
|
402
|
-
"addClass": _vm.addClass,
|
|
403
|
-
"addBtnProps": _vm.addBtnProps
|
|
404
|
-
}
|
|
405
|
-
})], 1)], 1);
|
|
406
|
-
};
|
|
407
|
-
var staticRenderFns = [];
|
|
408
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
409
|
-
const __vue2_script = {
|
|
410
|
-
name: "GeoserverAside",
|
|
411
|
-
components: {},
|
|
412
|
-
props: {
|
|
413
|
-
map: {
|
|
414
|
-
type: Object,
|
|
415
|
-
default: () => ({}),
|
|
416
|
-
required: true
|
|
417
|
-
},
|
|
418
|
-
itemClass: {
|
|
419
|
-
type: String,
|
|
420
|
-
default: "",
|
|
421
|
-
required: false
|
|
422
|
-
},
|
|
423
|
-
addClass: {
|
|
424
|
-
type: String,
|
|
425
|
-
default: "",
|
|
426
|
-
required: false
|
|
427
|
-
},
|
|
428
|
-
addBtnProps: {
|
|
429
|
-
type: Object,
|
|
430
|
-
default: () => ({}),
|
|
431
|
-
required: false
|
|
432
|
-
},
|
|
433
|
-
top: {
|
|
434
|
-
type: Number,
|
|
435
|
-
default: 100,
|
|
436
|
-
required: false
|
|
437
|
-
},
|
|
438
|
-
right: {
|
|
439
|
-
type: Number,
|
|
440
|
-
default: 20,
|
|
441
|
-
required: false
|
|
442
|
-
}
|
|
443
|
-
},
|
|
444
|
-
data() {
|
|
445
|
-
return {
|
|
446
|
-
visible: false
|
|
447
|
-
};
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
|
-
const __cssModules = {};
|
|
451
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
452
|
-
__vue2_script,
|
|
453
|
-
render,
|
|
454
|
-
staticRenderFns,
|
|
455
|
-
false,
|
|
456
|
-
__vue2_injectStyles,
|
|
457
|
-
"6fb8c34c",
|
|
458
|
-
null,
|
|
459
|
-
null
|
|
460
|
-
);
|
|
461
|
-
function __vue2_injectStyles(context) {
|
|
462
|
-
for (let o in __cssModules) {
|
|
463
|
-
this[o] = __cssModules[o];
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
var Component = /* @__PURE__ */ function() {
|
|
467
|
-
return __component__.exports;
|
|
468
|
-
}();
|
|
469
|
-
Component.install = (app) => {
|
|
470
|
-
app.component(Component.name || "Geoserver", Component);
|
|
471
|
-
};
|
|
472
|
-
var style = "";
|
|
3
|
+
var style$2 = "";
|
|
473
4
|
class CommonCtrol {
|
|
474
5
|
_onOpen() {
|
|
475
6
|
this._container.className += " wbiokr-ctrl-active";
|
|
@@ -1213,7 +744,7 @@ Selection.prototype = {
|
|
|
1213
744
|
dispatch: selection_dispatch,
|
|
1214
745
|
[Symbol.iterator]: selection_iterator
|
|
1215
746
|
};
|
|
1216
|
-
function e(selector2) {
|
|
747
|
+
function e$1(selector2) {
|
|
1217
748
|
return typeof selector2 === "string" ? new Selection([[document.querySelector(selector2)]], [document.documentElement]) : new Selection([[selector2]], root$1);
|
|
1218
749
|
}
|
|
1219
750
|
const t = { "\u21E7": 16, shift: 16, "\u2303": 17, ctrl: 17, "\u2325": 18, alt: 18, option: 18, "\u2318": 91, meta: 91, cmd: 91, super: 91, win: 91 }, r = { 16: "shiftKey", 17: "ctrlKey", 18: "altKey", 91: "metaKey" }, n = { "\u232B": "Backspace", backspace: "Backspace", "\u21E5": "Tab", "\u21C6": "Tab", tab: "Tab", "\u21A9": "Enter", "\u21B5": "Enter", "\u23CE": "Enter", return: "Enter", enter: "Enter", "\u2305": "Enter", pause: "Pause", "pause-break": "Pause", "\u21EA": "CapsLock", caps: "CapsLock", "caps-lock": "CapsLock", "\u238B": ["Escape", "Esc"], escape: ["Escape", "Esc"], esc: ["Escape", "Esc"], space: [" ", "Spacebar"], "": "PageUp", pgup: "PageUp", "page-up": "PageUp", "": "PageDown", pgdown: "PageDown", "page-down": "PageDown", "\u21DF": "End", end: "End", "\u21DE": "Home", home: "Home", ins: "Insert", insert: "Insert", "\u2326": ["Delete", "Del"], del: ["Delete", "Del"], delete: ["Delete", "Del"], "\u2190": ["ArrowLeft", "Left"], left: ["ArrowLeft", "Left"], "arrow-left": ["ArrowLeft", "Left"], "\u2191": ["ArrowUp", "Up"], up: ["ArrowUp", "Up"], "arrow-up": ["ArrowUp", "Up"], "\u2192": ["ArrowRight", "Right"], right: ["ArrowRight", "Right"], "arrow-right": ["ArrowRight", "Right"], "\u2193": ["ArrowDown", "Down"], down: ["ArrowDown", "Down"], "arrow-down": ["ArrowDown", "Down"], "*": ["*", "Multiply"], star: ["*", "Multiply"], asterisk: ["*", "Multiply"], multiply: ["*", "Multiply"], "+": ["+", "Add"], plus: ["+", "Add"], "-": ["-", "Subtract"], subtract: ["-", "Subtract"], dash: ["-", "Subtract"], semicolon: ";", equals: "=", comma: ",", period: ".", "full-stop": ".", slash: "/", "forward-slash": "/", tick: "`", "back-quote": "`", "open-bracket": "[", "back-slash": "\\", "close-bracket": "]", quote: "'", apostrophe: "'", "num-0": "0", "num-1": "1", "num-2": "2", "num-3": "3", "num-4": "4", "num-5": "5", "num-6": "6", "num-7": "7", "num-8": "8", "num-9": "9", f1: "F1", f2: "F2", f3: "F3", f4: "F4", f5: "F5", f6: "F6", f7: "F7", f8: "F8", f9: "F9", f10: "F10", f11: "F11", f12: "F12", f13: "F13", f14: "F14", f15: "F15", f16: "F16", f17: "F17", f18: "F18", f19: "F19", f20: "F20", f21: "F21", f22: "F22", f23: "F23", f24: "F24", f25: "F25" }, s = { "\u232B": 8, backspace: 8, "\u21E5": 9, "\u21C6": 9, tab: 9, "\u21A9": 13, "\u21B5": 13, "\u23CE": 13, return: 13, enter: 13, "\u2305": 13, pause: 19, "pause-break": 19, "\u21EA": 20, caps: 20, "caps-lock": 20, "\u238B": 27, escape: 27, esc: 27, space: 32, "": 33, pgup: 33, "page-up": 33, "": 34, pgdown: 34, "page-down": 34, "\u21DF": 35, end: 35, "\u21DE": 36, home: 36, ins: 45, insert: 45, "\u2326": 46, del: 46, delete: 46, "\u2190": 37, left: 37, "arrow-left": 37, "\u2191": 38, up: 38, "arrow-up": 38, "\u2192": 39, right: 39, "arrow-right": 39, "\u2193": 40, down: 40, "arrow-down": 40, ffequals: 61, "*": 106, star: 106, asterisk: 106, multiply: 106, "+": 107, plus: 107, "-": 109, subtract: 109, "|": 124, ffplus: 171, ffminus: 173, ";": 186, semicolon: 186, "=": 187, equals: 187, ",": 188, comma: 188, dash: 189, ".": 190, period: 190, "full-stop": 190, "/": 191, slash: 191, "forward-slash": 191, "`": 192, tick: 192, "back-quote": 192, "[": 219, "open-bracket": 219, "\\": 220, "back-slash": 220, "]": 221, "close-bracket": 221, "'": 222, quote: 222, apostrophe: 222 };
|
|
@@ -1224,7 +755,7 @@ class i {
|
|
|
1224
755
|
constructor(t2 = "global", r2 = document, n2 = "keydown") {
|
|
1225
756
|
if ("keydown" !== n2 && "keyup" !== n2)
|
|
1226
757
|
throw new Error(n2, "\u4E8B\u4EF6\u7C7B\u578B\u4EC5\u652F\u6301keydown\u3001keyup");
|
|
1227
|
-
this.eventType = n2, this.namespace = t2, this.selection = e(r2), this.bindedKeys = [], this.bindings = this.bindings.bind(this), this.capture = this.capture.bind(this), this.bubble = this.bubble.bind(this), this.init();
|
|
758
|
+
this.eventType = n2, this.namespace = t2, this.selection = e$1(r2), this.bindedKeys = [], this.bindings = this.bindings.bind(this), this.capture = this.capture.bind(this), this.bubble = this.bubble.bind(this), this.init();
|
|
1228
759
|
}
|
|
1229
760
|
init() {
|
|
1230
761
|
return this.selection.on(`${this.eventType}.capture.${this.namespace}`, this.capture, true), this.selection.on(`${this.eventType}.bubble.${this.namespace}`, this.bubble, false), this;
|
|
@@ -1264,7 +795,7 @@ class i {
|
|
|
1264
795
|
this.bindings(e2, true);
|
|
1265
796
|
}
|
|
1266
797
|
bubble(t2) {
|
|
1267
|
-
var r2 = e(t2.target).node().tagName;
|
|
798
|
+
var r2 = e$1(t2.target).node().tagName;
|
|
1268
799
|
"INPUT" !== r2 && "SELECT" !== r2 && "TEXTAREA" !== r2 && "true" !== String(t2.target.getAttribute("contenteditable")) && this.bindings(t2, false);
|
|
1269
800
|
}
|
|
1270
801
|
on(e2, i2, o2) {
|
|
@@ -1355,7 +886,6 @@ class ContextMenu extends KeyboardControl {
|
|
|
1355
886
|
this.props.left = e2.clientX;
|
|
1356
887
|
this.props.top = e2.clientY;
|
|
1357
888
|
this.render({ left: e2.clientX, top: e2.clientY });
|
|
1358
|
-
console.log(1, e2);
|
|
1359
889
|
});
|
|
1360
890
|
}
|
|
1361
891
|
onEmpty() {
|
|
@@ -1390,6 +920,7 @@ class ContextMenu extends KeyboardControl {
|
|
|
1390
920
|
render({ left, top }) {
|
|
1391
921
|
this.onEmpty();
|
|
1392
922
|
if (this.props.menus.length > 0) {
|
|
923
|
+
const { x, y } = this.container.getBoundingClientRect();
|
|
1393
924
|
const menuElement = document.createElement("aside");
|
|
1394
925
|
menuElement.classList.add(
|
|
1395
926
|
"wbk-contextmenus",
|
|
@@ -1402,8 +933,8 @@ class ContextMenu extends KeyboardControl {
|
|
|
1402
933
|
"d-b",
|
|
1403
934
|
"c-auto"
|
|
1404
935
|
);
|
|
1405
|
-
menuElement.style.left = `${left}px`;
|
|
1406
|
-
menuElement.style.top = `${top}px`;
|
|
936
|
+
menuElement.style.left = `${left - x}px`;
|
|
937
|
+
menuElement.style.top = `${top - y}px`;
|
|
1407
938
|
menuElement.style.display = "block";
|
|
1408
939
|
this.props.menus.forEach((item) => {
|
|
1409
940
|
const itemElement = document.createElement("div");
|
|
@@ -1454,6 +985,502 @@ class ContextMenu extends KeyboardControl {
|
|
|
1454
985
|
}
|
|
1455
986
|
}
|
|
1456
987
|
}
|
|
988
|
+
var style$1 = "";
|
|
989
|
+
var style = "";
|
|
990
|
+
function e(e2 = "WBIOKR-DB", t2 = 1, n2 = "WBIOKR-STORE", r2 = "id") {
|
|
991
|
+
let o;
|
|
992
|
+
const s2 = window.indexedDB || window.webikitIndexedDB || window.mozIndexedDB || window.msIndexedDB;
|
|
993
|
+
if (!s2)
|
|
994
|
+
return u;
|
|
995
|
+
const c = s2 == null ? void 0 : s2.open(e2, t2);
|
|
996
|
+
function u(e3, t3) {
|
|
997
|
+
try {
|
|
998
|
+
return 0 === arguments.length ? new Promise((e4, t4) => {
|
|
999
|
+
const r3 = o.transaction([n2]).objectStore(n2).getAll();
|
|
1000
|
+
r3.onsuccess = () => {
|
|
1001
|
+
r3.result ? e4(r3.result) : t4("\u83B7\u53D6\u5931\u8D25");
|
|
1002
|
+
}, r3.onerror = (e5) => {
|
|
1003
|
+
t4(e5);
|
|
1004
|
+
};
|
|
1005
|
+
}) : 1 === arguments.length ? function(e4) {
|
|
1006
|
+
return new Promise((t4, r3) => {
|
|
1007
|
+
const s3 = o.transaction([n2]).objectStore(n2).get(e4);
|
|
1008
|
+
s3.onsuccess = (e5) => {
|
|
1009
|
+
s3.result ? t4(s3.result) : r3(null);
|
|
1010
|
+
}, s3.onerror = (e5) => {
|
|
1011
|
+
r3(e5);
|
|
1012
|
+
};
|
|
1013
|
+
});
|
|
1014
|
+
}(e3) : 2 === arguments.length ? function(e4, t4) {
|
|
1015
|
+
return new Promise((e5, r3) => {
|
|
1016
|
+
const s3 = o.transaction([n2], "readwrite").objectStore(n2).put(t4);
|
|
1017
|
+
s3.onsuccess = (t5) => {
|
|
1018
|
+
e5(t5);
|
|
1019
|
+
}, s3.onerror = (e6) => {
|
|
1020
|
+
r3(e6);
|
|
1021
|
+
};
|
|
1022
|
+
});
|
|
1023
|
+
}(0, t3) : Promise.reject("\u53C2\u6570\u6709\u95EE\u9898");
|
|
1024
|
+
} catch (e4) {
|
|
1025
|
+
return Promise.reject(e4);
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
return c.onsuccess = function(e3) {
|
|
1029
|
+
o = e3.target.result;
|
|
1030
|
+
}, c.onerror = function(e3) {
|
|
1031
|
+
console.error(e3);
|
|
1032
|
+
}, c.onupgradeneeded = function(e3) {
|
|
1033
|
+
o = e3.target.result, o.objectStoreNames.contains(n2) || o.createObjectStore(n2, { keyPath: r2 });
|
|
1034
|
+
}, u;
|
|
1035
|
+
}
|
|
1036
|
+
const myDb = new e("WBIOKR-MAPBOX-TOOLS", 1, "WBIOKR-STORE", "id");
|
|
1037
|
+
function createUuid(num) {
|
|
1038
|
+
function S4() {
|
|
1039
|
+
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
1040
|
+
}
|
|
1041
|
+
var uuid = S4() + S4() + S4() + S4() + S4() + S4() + S4() + S4();
|
|
1042
|
+
if (!num) {
|
|
1043
|
+
return uuid;
|
|
1044
|
+
} else {
|
|
1045
|
+
return uuid.substr(0, num);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
function mercatorToLnglat(mercatorX, mercatorY) {
|
|
1049
|
+
let x = mercatorX / 2003750834e-2 * 180;
|
|
1050
|
+
let y = mercatorY / 2003750834e-2 * 180;
|
|
1051
|
+
y = 180 / Math.PI * (2 * Math.atan(Math.exp(y * Math.PI / 180)) - Math.PI / 2);
|
|
1052
|
+
return [x, y];
|
|
1053
|
+
}
|
|
1054
|
+
function transformRequest4326(url) {
|
|
1055
|
+
if (url.includes("4326")) {
|
|
1056
|
+
url = url.toLowerCase().replace(/(bbox=)([^&]+)/, ($0, $1, $2) => {
|
|
1057
|
+
let points = $2.split(",");
|
|
1058
|
+
let leftLngLat = mercatorToLnglat(points[0], points[1]);
|
|
1059
|
+
let rightLngLat = mercatorToLnglat(points[2], points[3]);
|
|
1060
|
+
return `${$1}${leftLngLat[0]},${leftLngLat[1]},${rightLngLat[0]},${rightLngLat[1]}`;
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
return {
|
|
1064
|
+
url
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
function copyContent(text) {
|
|
1068
|
+
const input = document.createElement("input");
|
|
1069
|
+
input.value = text;
|
|
1070
|
+
document.body.appendChild(input);
|
|
1071
|
+
input.select();
|
|
1072
|
+
document.execCommand("copy");
|
|
1073
|
+
document.body.removeChild(input);
|
|
1074
|
+
}
|
|
1075
|
+
const initForm = {
|
|
1076
|
+
id: "",
|
|
1077
|
+
name: "",
|
|
1078
|
+
url: "",
|
|
1079
|
+
checked: false
|
|
1080
|
+
};
|
|
1081
|
+
class Tile extends KeyboardControl {
|
|
1082
|
+
constructor(container, props) {
|
|
1083
|
+
super();
|
|
1084
|
+
this.container = container;
|
|
1085
|
+
this.type = "";
|
|
1086
|
+
this.tempDom = null;
|
|
1087
|
+
this.cacheUrls = [];
|
|
1088
|
+
this.form = { ...initForm };
|
|
1089
|
+
this.props = {
|
|
1090
|
+
confirm() {
|
|
1091
|
+
},
|
|
1092
|
+
...props
|
|
1093
|
+
};
|
|
1094
|
+
this._onBindKeyboards([{ code: "esc", action: this.onClose.bind(this) }], "geoservers");
|
|
1095
|
+
}
|
|
1096
|
+
render() {
|
|
1097
|
+
const html = `
|
|
1098
|
+
<div class="wbiokr-geoserver-modal-wrappper w-700 bg-color-fff b-r-6 ">
|
|
1099
|
+
<div class="modal-content">
|
|
1100
|
+
<div class="modal-header h-50 f-b-c b-eee b-no-lr b-no-t p-lr-20">
|
|
1101
|
+
<span class='f-s-16 f-w-600'>${this.type === "add" ? "\u65B0\u589E" : "\u8BBE\u7F6E"}\u81EA\u5B9A\u4E49\u56FE\u5C42\u5730\u5740</span>
|
|
1102
|
+
<svg class="close-btn c-red o-hover-70 c-p ease-400" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2011" width="14" height="14"><path d="M585.412525 512.594747L973.601616 124.418586c19.600808-19.600808 19.600808-51.898182 0-71.49899l-2.120404-2.120404c-19.600808-19.600808-51.898182-19.600808-71.49899 0L511.793131 439.518384 123.61697 50.799192c-19.600808-19.600808-51.898182-19.600808-71.49899 0l-2.120404 2.120404c-20.11798 19.600808-20.11798 51.898182 0 71.49899l388.189091 388.189091L49.997576 900.783838c-19.587879 19.600808-19.587879 51.898182 0 71.49899l2.120404 2.120404c19.600808 19.600808 51.898182 19.600808 71.49899 0L511.793131 586.214141l388.189091 388.176162c19.600808 19.600808 51.898182 19.600808 71.49899 0l2.120404-2.120404c19.600808-19.600808 19.600808-51.898182 0-71.49899L585.412525 512.594747z m0 0"></path></svg>
|
|
1103
|
+
</div>
|
|
1104
|
+
<div class="modal-body p-20">
|
|
1105
|
+
<section class='p-b-20 b-eee b-no-lr b-no-t'>
|
|
1106
|
+
<div class='f-b-c'>
|
|
1107
|
+
<span class='f-s-c f-s-14 c-999'>\u56FE\u5C42\u4FE1\u606F\uFF1A</span>
|
|
1108
|
+
<div>
|
|
1109
|
+
<button class="template-btn h-30 p-lr-10 b-r-4 o-hover-70 ease-300 c-app b-eee b-c-app f-s-14 c-p m-l-10">\u6A21\u677F</button>
|
|
1110
|
+
<button class="confirm-btn h-30 p-lr-40 b-r-4 o-hover-70 ease-300 c-fff bg-color-app f-s-14 c-p m-l-10">\u786E\u5B9A</button>
|
|
1111
|
+
<button class="clear-btn h-30 p-lr-40 b-r-4 o-hover-70 ease-300 c-fff bg-color-danger f-s-14 c-p m-l-10">\u6E05\u7A7A</button>
|
|
1112
|
+
</div>
|
|
1113
|
+
</div>
|
|
1114
|
+
<div class='p-t-15 f-column'>
|
|
1115
|
+
<input type="text" class="name-input w-per-100 h-30 b-eee b-r-4 p-lr-15 border-focus-app border-hover-app shadow-focus-app ease-300" placeholder="\u8BF7\u8F93\u5165\u540D\u79F0" value="${this.form.name}">
|
|
1116
|
+
<textarea class="url-input w-per-100 h-120 b-eee b-r-4 p-lr-15 border-focus-app border-hover-app shadow-focus-app ease-300 l-h-25 m-t-10" placeholder="\u8BF7\u8F93\u5165\u5730\u5740" rows="3">${this.form.url}</textarea>
|
|
1117
|
+
<div class="warning c-aaa f-s-14 m-t-5">\u6CE8\u610F\uFF1A\u8BF7\u52A1\u5FC5\u8F93\u5165\u5408\u6CD5URL\uFF0C\u5426\u5219\u53EF\u80FD\u5F15\u53D1\u9875\u9762\u5D29\u6E83\uFF01</div>
|
|
1118
|
+
</div>
|
|
1119
|
+
</section>
|
|
1120
|
+
<section class="modal-main p-tb-20">
|
|
1121
|
+
${this.cacheUrls.length === 0 ? '<div class="empty h-100 w-per-100 f-c c-ccc f-s-16">\u6682\u65E0\u6570\u636E</div>' : ""}
|
|
1122
|
+
<ul>
|
|
1123
|
+
${this.cacheUrls.map(
|
|
1124
|
+
(item) => `
|
|
1125
|
+
<li class="custom-url-item f-b-c p-lr-10 p-tb-5 m-b-5 ease-300 ${this.form.url === item.url ? "bg-color-f6f6f6" : ""}" title="${item.url}" >
|
|
1126
|
+
<div class='f-1 f-s-c white-1 o-h'>
|
|
1127
|
+
<h5 class='c-333 f-w-600'>${item.name}</h5>
|
|
1128
|
+
<div class='white-1 f-s-12 c-666 m-l-5'>${item.url}</div>
|
|
1129
|
+
</div>
|
|
1130
|
+
<div class='p-l-10'>
|
|
1131
|
+
<button class="select-btn c-app c-p">\u9009\u62E9</button>
|
|
1132
|
+
<button class="remove-btn c-danger c-p m-l-5">\u79FB\u9664</button>
|
|
1133
|
+
</div>
|
|
1134
|
+
</li>
|
|
1135
|
+
`
|
|
1136
|
+
).join("")}
|
|
1137
|
+
</ul>
|
|
1138
|
+
</section>
|
|
1139
|
+
</div>
|
|
1140
|
+
</div>
|
|
1141
|
+
</div>
|
|
1142
|
+
`;
|
|
1143
|
+
const dom = document.createElement("div");
|
|
1144
|
+
dom.innerHTML = html;
|
|
1145
|
+
dom.className = "wbiokr-geoserver-modal p-f-xl-yt z-1000 w-per-100 h-per-100 animated fadeIn f-c";
|
|
1146
|
+
this.tempDom = dom;
|
|
1147
|
+
this.container.appendChild(dom);
|
|
1148
|
+
this.bindEvents();
|
|
1149
|
+
}
|
|
1150
|
+
bindEvents() {
|
|
1151
|
+
this.tempDom.querySelector(".close-btn").onclick = () => this.onClose();
|
|
1152
|
+
this.tempDom.querySelector(".template-btn").onclick = () => this.onCase();
|
|
1153
|
+
this.tempDom.querySelector(".confirm-btn").onclick = () => this.onConfirm();
|
|
1154
|
+
this.tempDom.querySelector(".clear-btn").onclick = () => this.onClearCustom();
|
|
1155
|
+
this.tempDom.querySelector(".name-input").onblur = (e2) => {
|
|
1156
|
+
this.form.name = e2.target.value;
|
|
1157
|
+
};
|
|
1158
|
+
this.tempDom.querySelector(".url-input").onblur = (e2) => {
|
|
1159
|
+
this.form.url = e2.target.value;
|
|
1160
|
+
};
|
|
1161
|
+
this.tempDom.querySelectorAll(".select-btn").forEach((btn, index2) => {
|
|
1162
|
+
btn.onclick = () => this.onSelect(index2);
|
|
1163
|
+
});
|
|
1164
|
+
this.tempDom.querySelectorAll(".remove-btn").forEach((btn, index2) => {
|
|
1165
|
+
btn.onclick = () => this.onRemoveUrl(index2);
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
onAddModal() {
|
|
1169
|
+
this.onReset();
|
|
1170
|
+
this.type = "add";
|
|
1171
|
+
this.form = {
|
|
1172
|
+
...initForm,
|
|
1173
|
+
id: createUuid()
|
|
1174
|
+
};
|
|
1175
|
+
this.render();
|
|
1176
|
+
}
|
|
1177
|
+
async onEditModal(item) {
|
|
1178
|
+
this.type = "edit";
|
|
1179
|
+
this.form = { ...item };
|
|
1180
|
+
try {
|
|
1181
|
+
const data = await myDb(this.id);
|
|
1182
|
+
this.cacheUrls = data.data || [];
|
|
1183
|
+
} catch (error) {
|
|
1184
|
+
this.cacheUrls = [];
|
|
1185
|
+
}
|
|
1186
|
+
this.render();
|
|
1187
|
+
}
|
|
1188
|
+
onCase() {
|
|
1189
|
+
this.form.url = "http://xx.com/?tiled=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=xx&SRS=EPSG:4326&bbox={bbox-epsg-3857}&WIDTH=256&HEIGHT=256";
|
|
1190
|
+
this.tempDom.querySelector(".url-input").value = this.form.url;
|
|
1191
|
+
}
|
|
1192
|
+
onReset() {
|
|
1193
|
+
this.type = "";
|
|
1194
|
+
this.cacheUrls = [];
|
|
1195
|
+
this.form = {
|
|
1196
|
+
id: "",
|
|
1197
|
+
name: "",
|
|
1198
|
+
url: "",
|
|
1199
|
+
checked: false
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
onClose() {
|
|
1203
|
+
this.tempDom.remove();
|
|
1204
|
+
this.onReset();
|
|
1205
|
+
}
|
|
1206
|
+
onConfirm() {
|
|
1207
|
+
const url = this.form.url;
|
|
1208
|
+
const lowerUrl = url.toLowerCase();
|
|
1209
|
+
if (!lowerUrl.startsWith("http") || !((lowerUrl.includes("x={-x}") || lowerUrl.includes("x={x}")) && lowerUrl.includes("y=") && lowerUrl.includes("z=") || lowerUrl.includes("bbox={") && lowerUrl.includes("service=") && lowerUrl.includes("width=256") && lowerUrl.includes("height=256") || lowerUrl.includes("{x}") && lowerUrl.includes("{y}") && lowerUrl.includes("{z}"))) {
|
|
1210
|
+
alert("\u8BF7\u8F93\u5165\u5408\u6CD5URL");
|
|
1211
|
+
return false;
|
|
1212
|
+
}
|
|
1213
|
+
const historyItem = this.cacheUrls.find((o) => o.url === url);
|
|
1214
|
+
if (!historyItem) {
|
|
1215
|
+
this.cacheUrls.push({ ...this.form });
|
|
1216
|
+
myDb(this.id, {
|
|
1217
|
+
id: this.id,
|
|
1218
|
+
data: this.cacheUrls
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
this.props.confirm({ ...this.form }, historyItem, this.type);
|
|
1222
|
+
this.onClose();
|
|
1223
|
+
}
|
|
1224
|
+
onClearCustom() {
|
|
1225
|
+
this.form.url = "";
|
|
1226
|
+
this.form.name = "";
|
|
1227
|
+
this.tempDom.querySelector(".url-input").value = this.form.url;
|
|
1228
|
+
this.tempDom.querySelector(".name-input").value = this.form.name;
|
|
1229
|
+
}
|
|
1230
|
+
onSelect(index2) {
|
|
1231
|
+
this.form = this.cacheUrls[index2];
|
|
1232
|
+
this.tempDom.querySelector(".url-input").value = this.form.url;
|
|
1233
|
+
this.tempDom.querySelector(".name-input").value = this.form.name;
|
|
1234
|
+
this.tempDom.querySelectorAll(".custom-url-item").forEach((item, i2) => {
|
|
1235
|
+
item.className = `custom-url-item f-b-c p-lr-10 p-tb-5 m-b-5 ease-300 ${i2 === index2 ? "bg-color-f6f6f6" : ""}`;
|
|
1236
|
+
});
|
|
1237
|
+
}
|
|
1238
|
+
onRemoveUrl(idx) {
|
|
1239
|
+
this.cacheUrls.splice(idx, 1);
|
|
1240
|
+
myDb(this.id, {
|
|
1241
|
+
id: this.id,
|
|
1242
|
+
data: this.cacheUrls
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
get id() {
|
|
1246
|
+
return `WBIOKR_ML_GEO_HIS_${this.form.id}`;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
class Geoservers {
|
|
1250
|
+
constructor(container, map, itemClass = "", addClass = "", addBtnProps = {}) {
|
|
1251
|
+
this.container = container;
|
|
1252
|
+
this.map = map;
|
|
1253
|
+
this.tempDom = null;
|
|
1254
|
+
this.itemClass = itemClass;
|
|
1255
|
+
this.addClass = addClass;
|
|
1256
|
+
this.addBtnProps = addBtnProps;
|
|
1257
|
+
this.tiles = [];
|
|
1258
|
+
}
|
|
1259
|
+
async init() {
|
|
1260
|
+
if (this.tempDom) {
|
|
1261
|
+
this.tempDom.remove();
|
|
1262
|
+
}
|
|
1263
|
+
await this.loadTiles();
|
|
1264
|
+
this.render();
|
|
1265
|
+
this.refTile = new Tile(document.body, {
|
|
1266
|
+
confirm: this.onConfirm.bind(this)
|
|
1267
|
+
});
|
|
1268
|
+
this.initializeCheckedTiles();
|
|
1269
|
+
}
|
|
1270
|
+
async loadTiles() {
|
|
1271
|
+
try {
|
|
1272
|
+
const allTiles = await myDb("WBIOKR_GEOSERVERS_LIST_ALL");
|
|
1273
|
+
this.tiles = allTiles.data || [];
|
|
1274
|
+
} catch (error) {
|
|
1275
|
+
this.tiles = [];
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
render() {
|
|
1279
|
+
const html = `
|
|
1280
|
+
<div>
|
|
1281
|
+
${this.tiles.map(
|
|
1282
|
+
(item, index2) => `
|
|
1283
|
+
<section class="w-per-100 f-b-c p-tb-5 ${this.itemClass}">
|
|
1284
|
+
<label class="d-f-t white-1 f-s-c">
|
|
1285
|
+
<input type="checkbox" ${item.checked ? "checked" : ""} data-id="${item.id}" />
|
|
1286
|
+
<div class="white-1 h-15 m-l-5" style="max-width: 150px" title="${item.name || `\u81EA\u5B9A\u4E49\u56FE\u5C42${index2 + 1}`}">
|
|
1287
|
+
${item.name || `\u81EA\u5B9A\u4E49\u56FE\u5C42${index2 + 1}`}
|
|
1288
|
+
</div>
|
|
1289
|
+
</label>
|
|
1290
|
+
<div class="f-s-c p-l-10">
|
|
1291
|
+
<a class="m-l-10 w-nowrap c-app c-p f-s-12" data-id="${item.id}">Edit</a>
|
|
1292
|
+
<span class="c-red c-p o-hover-70 m-l-10 w-nowrap f-s-12" data-id="${item.id}">Delete</span>
|
|
1293
|
+
</div>
|
|
1294
|
+
</section>
|
|
1295
|
+
`
|
|
1296
|
+
).join("")}
|
|
1297
|
+
<section class="m-t-10 ${this.addClass}">
|
|
1298
|
+
<button
|
|
1299
|
+
class="bg-color-app f-c f-s-12 c-fff b-r-4 ease-400 o-hover-70 w-nowrap p-lr-10 h-20"
|
|
1300
|
+
>
|
|
1301
|
+
${this.addBtnProps.text || "\u65B0\u589E\u56FE\u5C42"}
|
|
1302
|
+
</button>
|
|
1303
|
+
</section>
|
|
1304
|
+
</div>
|
|
1305
|
+
`;
|
|
1306
|
+
const dom = document.createElement("div");
|
|
1307
|
+
dom.innerHTML = html;
|
|
1308
|
+
this.tempDom = dom;
|
|
1309
|
+
this.container.appendChild(dom);
|
|
1310
|
+
this.bindEvents();
|
|
1311
|
+
}
|
|
1312
|
+
bindEvents() {
|
|
1313
|
+
this.container.querySelectorAll('input[type="checkbox"]').forEach((checkbox) => {
|
|
1314
|
+
checkbox.onchange = (e2) => {
|
|
1315
|
+
this.onChangeGeo(checkbox);
|
|
1316
|
+
};
|
|
1317
|
+
});
|
|
1318
|
+
this.tempDom.querySelectorAll("a[data-id]").forEach((link) => {
|
|
1319
|
+
link.onclick = () => this.onEdit(link);
|
|
1320
|
+
});
|
|
1321
|
+
this.tempDom.querySelectorAll("span[data-id]").forEach((span) => {
|
|
1322
|
+
span.onclick = () => this.onDelete(span);
|
|
1323
|
+
});
|
|
1324
|
+
this.tempDom.querySelector("button").onclick = () => this.onAdd();
|
|
1325
|
+
}
|
|
1326
|
+
onAdd() {
|
|
1327
|
+
this.refTile.onAddModal();
|
|
1328
|
+
}
|
|
1329
|
+
onEdit(element) {
|
|
1330
|
+
const id = element.getAttribute("data-id");
|
|
1331
|
+
const item = this.tiles.find((o) => o.id === id);
|
|
1332
|
+
if (item) {
|
|
1333
|
+
this.refTile.onEditModal(item);
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
onDelete(element) {
|
|
1337
|
+
const id = element.getAttribute("data-id");
|
|
1338
|
+
const index2 = this.tiles.findIndex((o) => o.id === id);
|
|
1339
|
+
if (index2 > -1) {
|
|
1340
|
+
const item = this.tiles[index2];
|
|
1341
|
+
this.onRemoveGeoserver(item);
|
|
1342
|
+
this.tiles.splice(index2, 1);
|
|
1343
|
+
this.onSyncLocal();
|
|
1344
|
+
this.tempDom.remove();
|
|
1345
|
+
this.render();
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
initializeCheckedTiles() {
|
|
1349
|
+
const initTiles = () => {
|
|
1350
|
+
this.tiles.forEach((o) => {
|
|
1351
|
+
if (o.checked) {
|
|
1352
|
+
this.onChangeGeo(o, true);
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
};
|
|
1356
|
+
try {
|
|
1357
|
+
initTiles();
|
|
1358
|
+
} catch (error) {
|
|
1359
|
+
this.map.on("style.load", () => {
|
|
1360
|
+
initTiles();
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
onRemoveGeoserver(tileItem) {
|
|
1365
|
+
if (this.map.getLayer(tileItem.id)) {
|
|
1366
|
+
this.map.removeLayer(tileItem.id);
|
|
1367
|
+
}
|
|
1368
|
+
if (this.map.getSource(tileItem.id)) {
|
|
1369
|
+
this.map.removeSource(tileItem.id);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
onChangeGeo(element, isObject2) {
|
|
1373
|
+
const id = isObject2 ? element.id : element.getAttribute("data-id");
|
|
1374
|
+
const tileItem = this.tiles.find((o) => o.id === id);
|
|
1375
|
+
if (tileItem) {
|
|
1376
|
+
tileItem.checked = typeof element === "object" ? element.checked : element.checked;
|
|
1377
|
+
if (!tileItem.checked) {
|
|
1378
|
+
this.onRemoveGeoserver(tileItem);
|
|
1379
|
+
} else {
|
|
1380
|
+
const layers = this.map.getStyle().layers.filter((o) => ["fill", "raster", "background", "sky"].includes(o.type));
|
|
1381
|
+
layers.length > 0 ? layers[layers.length - 1].id : null;
|
|
1382
|
+
if (!this.map.getSource(tileItem.id)) {
|
|
1383
|
+
this.map.addSource(tileItem.id, {
|
|
1384
|
+
type: "raster",
|
|
1385
|
+
tiles: [tileItem.url.replace(/bbox={bbox}|BBOX={bbox}|BBOX={BBOX}/, "bbox={bbox-epsg-3857}")],
|
|
1386
|
+
tileSize: 256
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
if (!this.map.getLayer(tileItem.id)) {
|
|
1390
|
+
this.map.addLayer({
|
|
1391
|
+
id: tileItem.id,
|
|
1392
|
+
type: "raster",
|
|
1393
|
+
source: tileItem.id,
|
|
1394
|
+
paint: {},
|
|
1395
|
+
minZoom: 15
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
this.onSyncLocal();
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
onConfirm(form, historyList, type) {
|
|
1403
|
+
const index2 = this.tiles.findIndex((o) => o.id === form.id);
|
|
1404
|
+
if (index2 > -1) {
|
|
1405
|
+
this.tiles.splice(index2, 1, form);
|
|
1406
|
+
if (form.checked) {
|
|
1407
|
+
form.checked = false;
|
|
1408
|
+
this.onChangeGeo(form, true);
|
|
1409
|
+
setTimeout(() => this.onChangeGeo(form, true), 0);
|
|
1410
|
+
}
|
|
1411
|
+
} else {
|
|
1412
|
+
this.tiles.push(form);
|
|
1413
|
+
}
|
|
1414
|
+
this.onSyncLocal();
|
|
1415
|
+
this.tempDom && this.tempDom.remove();
|
|
1416
|
+
this.render();
|
|
1417
|
+
}
|
|
1418
|
+
onSyncLocal() {
|
|
1419
|
+
myDb("WBIOKR_GEOSERVERS_LIST_ALL", {
|
|
1420
|
+
id: "WBIOKR_GEOSERVERS_LIST_ALL",
|
|
1421
|
+
data: this.tiles
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
class GeoserverAside {
|
|
1426
|
+
constructor(container, map, itemClass = "", addClass = "", addBtnProps = {}, top = 100, right = 20) {
|
|
1427
|
+
this.container = container;
|
|
1428
|
+
this.top = top;
|
|
1429
|
+
this.right = right;
|
|
1430
|
+
this.visible = false;
|
|
1431
|
+
this.tempDom = null;
|
|
1432
|
+
this.render();
|
|
1433
|
+
this.bindEvents();
|
|
1434
|
+
this.geoserverObj = new Geoservers(
|
|
1435
|
+
this.tempDom.querySelector(".aside-content"),
|
|
1436
|
+
map,
|
|
1437
|
+
itemClass,
|
|
1438
|
+
addClass,
|
|
1439
|
+
addBtnProps
|
|
1440
|
+
);
|
|
1441
|
+
setTimeout(() => {
|
|
1442
|
+
this.geoserverObj.init();
|
|
1443
|
+
}, 300);
|
|
1444
|
+
}
|
|
1445
|
+
render() {
|
|
1446
|
+
const html = `
|
|
1447
|
+
<aside class="com- p-a-xr-yt d-i z-100" style="right: ${this.right}px; top: ${this.top}px;">
|
|
1448
|
+
<button class="btn-entry ease-400 btn-visible h-30 w-30 b-r-4 c-p hover-70 bg-color-fff d-i-c b-ccc animate fadeIn ease-400 o-hover-70">
|
|
1449
|
+
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
|
|
1450
|
+
<path d="M901.547833 843.270597c1.499414-1.699336 2.998829-3.498633 4.398282-5.197969 1.199531-1.399453 2.299102-2.798907 3.498633-4.19836 1.299492-1.599375 2.598985-3.19875 3.898477-4.898087 1.199531-1.499414 2.299102-2.998829 3.498634-4.498243 1.199531-1.599375 2.499024-3.19875 3.698555-4.798125 1.199531-1.499414 2.299102-3.09879 3.398672-4.598204 1.199531-1.599375 2.399063-3.19875 3.598595-4.898087 1.09957-1.599375 2.199141-3.09879 3.298711-4.698165 1.199531-1.699336 2.299102-3.298711 3.498633-4.998047 1.09957-1.599375 2.09918-3.09879 3.198751-4.698165 1.09957-1.699336 2.299102-3.398672 3.398672-5.098009 0.99961-1.599375 2.09918-3.19875 3.09879-4.798125 1.09957-1.699336 2.199141-3.498633 3.298711-5.297931 0.99961-1.599375 1.999219-3.19875 2.898868-4.798126 1.09957-1.799297 2.199141-3.698555 3.298711-5.597813 0.899649-1.499414 1.799297-3.09879 2.698946-4.598204 1.199531-2.09918 2.399063-4.19836 3.598594-6.397501 0.699727-1.299492 1.499414-2.598985 2.199141-3.998438l5.397892-10.196017c0.699727-1.299492 1.299492-2.598985 1.999219-3.998438 1.09957-2.199141 2.199141-4.398282 3.298711-6.697384 0.699727-1.499414 1.499414-3.09879 2.199141-4.598204 0.99961-1.999219 1.899258-4.098399 2.898868-6.097618 0.699727-1.599375 1.499414-3.298711 2.199141-4.898087 0.899649-1.999219 1.799297-3.998438 2.598985-5.997657 0.699727-1.699336 1.399453-3.398672 2.09918-4.998048 0.799688-1.999219 1.699336-3.998438 2.499023-5.997657 0.699727-1.699336 1.299492-3.398672 1.999219-5.098008 0.799688-1.999219 1.599375-4.098399 2.299102-6.097618 0.599766-1.699336 1.299492-3.398672 1.899258-5.098009 0.799688-2.09918 1.499414-4.19836 2.199141-6.29754 0.599766-1.699336 1.199531-3.398672 1.699337-5.098009l2.09918-6.597422c0.499805-1.599375 0.99961-3.19875 1.599375-4.898087 0.699727-2.399063 1.399453-4.698165 2.09918-7.097228 0.399844-1.499414 0.899649-2.898868 1.299492-4.398282 0.899649-3.09879 1.699336-6.097618 2.499024-9.196407 0.199922-0.799688 0.399844-1.599375 0.699727-2.399063 0.99961-3.898477 1.999219-7.796954 2.898867-11.695432 0.299883-1.299492 0.599766-2.499024 0.799688-3.798516l1.799297-8.096837c0.299883-1.599375 0.599766-3.19875 0.899649-4.698165 0.499805-2.399063 0.99961-4.798126 1.399453-7.297149l0.899649-5.098009c0.399844-2.299102 0.799688-4.698165 1.199531-6.997267 0.299883-1.699336 0.499805-3.498633 0.799688-5.197969 0.299883-2.299102 0.699727-4.698165 0.999609-6.997267 0.199922-1.799297 0.499805-3.498633 0.699727-5.29793 0.299883-2.299102 0.599766-4.698165 0.799688-6.997267 0.199922-1.799297 0.399844-3.498633 0.599765-5.297931l0.599766-7.197188c0.099961-1.699336 0.299883-3.498633 0.399844-5.19797 0.199922-2.499024 0.299883-4.998048 0.499805-7.497071 0.099961-1.599375 0.199922-3.298711 0.299882-4.898087l0.299883-8.39672c0-1.399453 0.099961-2.798907 0.099961-4.098399 0.099961-4.19836 0.199922-8.39672 0.199922-12.59508 0-148.841859-63.875049-282.989457-165.635299-376.552909l-0.399843-0.399844c-2.698946-2.499024-5.497852-4.898087-8.196799-7.39711-0.299883-0.199922-0.499805-0.499805-0.799687-0.699727L840.671613 120.153065c-0.399844-0.299883-0.799688-0.699727-1.199532-0.999609-2.598985-2.199141-5.29793-4.398282-7.996876-6.497462-0.499805-0.399844-0.99961-0.799688-1.399453-1.199532-2.598985-2.09918-5.19797-4.098399-7.896916-6.097618-0.599766-0.399844-1.09957-0.899649-1.699336-1.299492-2.598985-1.899258-5.19797-3.898477-7.796954-5.797735-0.699727-0.499805-1.299492-0.99961-1.999219-1.499415-2.499024-1.799297-5.098009-3.598594-7.696994-5.397891-0.799688-0.499805-1.499414-1.09957-2.299101-1.599375-2.499024-1.699336-5.098009-3.398672-7.597033-5.098009-0.799688-0.599766-1.699336-1.09957-2.499024-1.699336-2.499024-1.599375-4.998048-3.19875-7.597032-4.798126-0.899649-0.599766-1.799297-1.09957-2.698946-1.699336-2.499024-1.499414-4.998048-3.09879-7.497071-4.598204l-2.998829-1.799297c-2.499024-1.399453-4.898087-2.898868-7.39711-4.298321-1.09957-0.599766-2.09918-1.199531-3.198751-1.799297-2.399063-1.399453-4.898087-2.698946-7.39711-3.998438-1.09957-0.599766-2.299102-1.199531-3.398673-1.799297-2.399063-1.299492-4.898087-2.499024-7.297149-3.698556-1.199531-0.599766-2.399063-1.199531-3.698556-1.799297-2.399063-1.199531-4.798126-2.399063-7.197188-3.498633l-3.898477-1.799297-7.197189-3.298712c-1.399453-0.599766-2.698946-1.199531-4.098399-1.799297-2.399063-0.99961-4.698165-1.999219-7.097228-2.998829-1.399453-0.599766-2.898868-1.199531-4.298321-1.799297-2.299102-0.99961-4.698165-1.899258-6.997266-2.798906-1.499414-0.599766-2.998829-1.09957-4.498243-1.699337-2.299102-0.899649-4.698165-1.699336-6.997267-2.598984-1.599375-0.599766-3.09879-1.09957-4.698165-1.699337l-6.897305-2.399062c-1.599375-0.499805-3.298711-1.09957-4.898087-1.599376-2.299102-0.699727-4.598204-1.499414-6.797345-2.199141l-5.098008-1.499414c-2.299102-0.699727-4.498243-1.299492-6.797345-1.999219-1.799297-0.499805-3.498633-0.99961-5.297931-1.399453-2.199141-0.599766-4.498243-1.199531-6.697384-1.799297-1.799297-0.499805-3.698555-0.899649-5.497852-1.399454-2.199141-0.499805-4.398282-1.09957-6.597423-1.599375-1.899258-0.399844-3.798516-0.799688-5.697774-1.299492-2.199141-0.499805-4.298321-0.899649-6.497462-1.399454-1.999219-0.399844-3.998438-0.799688-5.997657-1.09957-2.09918-0.399844-4.298321-0.799688-6.397501-1.199532-1.999219-0.399844-4.098399-0.699727-6.197579-0.999609-2.09918-0.299883-4.19836-0.699727-6.29754-0.99961-2.09918-0.299883-4.298321-0.599766-6.397501-0.899648-2.09918-0.299883-4.098399-0.599766-6.197579-0.799688-2.199141-0.299883-4.398282-0.499805-6.697384-0.799688-1.999219-0.199922-3.998438-0.499805-5.997657-0.699726l-6.897306-0.599766c-1.899258-0.199922-3.898477-0.399844-5.797735-0.499805-2.499024-0.199922-4.998048-0.299883-7.397111-0.499804l-5.397891-0.299883c-2.898868-0.099961-5.697774-0.199922-8.596642-0.299883-1.499414 0-2.898868-0.099961-4.398282-0.199922-4.298321-0.099961-8.696603-0.199922-12.994924-0.199922-4.398282 0-8.696603 0.099961-12.994924 0.199922-1.499414 0-2.898868 0.099961-4.398282 0.199922-2.898868 0.099961-5.697774 0.199922-8.596642 0.299883l-5.397891 0.299883c-2.499024 0.199922-4.998048 0.299883-7.397111 0.499804-1.999219 0.099961-3.898477 0.299883-5.797735 0.499805l-6.897306 0.599766c-1.999219 0.199922-3.998438 0.399844-5.997657 0.699726-2.199141 0.299883-4.398282 0.499805-6.697384 0.799688-2.09918 0.299883-4.098399 0.599766-6.197579 0.799688-2.09918 0.299883-4.298321 0.599766-6.397501 0.899648-2.09918 0.299883-4.19836 0.699727-6.29754 0.99961-2.09918 0.299883-4.098399 0.699727-6.197579 0.999609-2.09918 0.399844-4.298321 0.799688-6.397501 1.199532-1.999219 0.399844-3.998438 0.699727-5.997657 1.09957-2.199141 0.399844-4.298321 0.899649-6.497462 1.399454-1.899258 0.399844-3.798516 0.799688-5.697774 1.299492-2.199141 0.499805-4.398282 0.99961-6.597423 1.599375-1.799297 0.399844-3.698555 0.899649-5.497852 1.399454-2.199141 0.599766-4.498243 1.199531-6.697384 1.799297-1.799297 0.499805-3.498633 0.899649-5.297931 1.399453-2.299102 0.599766-4.498243 1.299492-6.797345 1.999219l-5.098008 1.499414c-2.299102 0.699727-4.598204 1.399453-6.797345 2.199141-1.599375 0.499805-3.298711 1.09957-4.898087 1.599376l-6.897305 2.399062c-1.599375 0.499805-3.09879 1.09957-4.698165 1.699337-2.299102 0.799688-4.698165 1.699336-6.997267 2.598984-1.499414 0.599766-2.998829 1.09957-4.498243 1.699337-2.399063 0.899649-4.698165 1.899258-6.997266 2.798906-1.399453 0.599766-2.898868 1.199531-4.298321 1.799297-2.399063 0.99961-4.698165 1.999219-7.097228 2.998829-1.399453 0.599766-2.698946 1.199531-4.098399 1.799297l-7.197189 3.298712-3.898477 1.799297c-2.399063 1.09957-4.798126 2.299102-7.197188 3.498633-1.199531 0.599766-2.399063 1.199531-3.698556 1.799297-2.399063 1.199531-4.898087 2.499024-7.297149 3.698556-1.199531 0.599766-2.299102 1.199531-3.398673 1.799297-2.499024 1.299492-4.898087 2.698946-7.39711 3.998438-1.09957 0.599766-2.09918 1.199531-3.198751 1.799297-2.499024 1.399453-4.998048 2.798907-7.497071 4.298321-0.99961 0.599766-1.999219 1.199531-2.998829 1.699336-2.499024 1.499414-4.998048 2.998829-7.497071 4.598204-0.899649 0.599766-1.799297 1.09957-2.698946 1.699336-2.499024 1.599375-5.098009 3.19875-7.597032 4.798126-0.799688 0.499805-1.699336 1.09957-2.499024 1.699336-2.598985 1.699336-5.098009 3.398672-7.597033 5.098009-0.799688 0.499805-1.499414 0.99961-2.299101 1.599375-2.598985 1.799297-5.098009 3.598594-7.696994 5.397891-0.699727 0.499805-1.299492 0.99961-1.999219 1.499415-2.598985 1.899258-5.19797 3.798516-7.796954 5.797735-0.599766 0.399844-1.09957 0.899649-1.699336 1.299492-2.598985 1.999219-5.29793 4.098399-7.896916 6.097618-0.499805 0.399844-0.99961 0.799688-1.399453 1.199532-2.698946 2.09918-5.29793 4.298321-7.996876 6.497462-0.399844 0.299883-0.799688 0.699727-1.199532 0.999609l-8.096837 6.897306c-0.299883 0.199922-0.499805 0.499805-0.799687 0.699727-2.798907 2.399063-5.497852 4.898087-8.196799 7.39711l-0.399843 0.399844C63.875049 229.010543 0 363.158141 0 512c0 4.19836 0.099961 8.39672 0.199922 12.59508 0 1.399453 0.099961 2.798907 0.099961 4.098399l0.299883 8.39672c0.099961 1.599375 0.199922 3.298711 0.299883 4.898087 0.099961 2.499024 0.299883 4.998048 0.499804 7.497071 0.099961 1.699336 0.299883 3.498633 0.399844 5.19797l0.599766 7.197188c0.199922 1.799297 0.399844 3.498633 0.599766 5.297931 0.299883 2.399063 0.499805 4.698165 0.799687 6.997267 0.199922 1.799297 0.399844 3.498633 0.699727 5.29793 0.299883 2.299102 0.599766 4.698165 0.999609 6.997267 0.299883 1.699336 0.499805 3.498633 0.799688 5.197969 0.399844 2.399063 0.799688 4.698165 1.199531 7.097228l0.899649 5.098009c0.399844 2.399063 0.899649 4.798126 1.399453 7.297149 0.299883 1.599375 0.599766 3.19875 0.899649 4.698165l1.799297 8.096837c0.299883 1.299492 0.499805 2.499024 0.799688 3.798516 0.899649 3.898477 1.899258 7.796954 2.898867 11.695432 0.199922 0.799688 0.399844 1.599375 0.699727 2.399063 0.799688 3.09879 1.599375 6.197579 2.499024 9.196407 0.399844 1.499414 0.899649 2.898868 1.299492 4.398282 0.699727 2.399063 1.399453 4.798126 2.09918 7.097228 0.499805 1.599375 0.99961 3.19875 1.499415 4.898087l2.09918 6.597422c0.599766 1.699336 1.199531 3.398672 1.699336 4.998048 0.699727 2.09918 1.499414 4.19836 2.199141 6.29754 0.599766 1.699336 1.199531 3.398672 1.899258 5.098009 0.799688 1.999219 1.499414 4.098399 2.299102 6.097618 0.699727 1.699336 1.299492 3.398672 1.999219 5.098008 0.799688 1.999219 1.599375 3.998438 2.499024 5.997658 0.699727 1.699336 1.399453 3.398672 2.09918 4.998047 0.899649 1.999219 1.699336 3.998438 2.598984 5.997657 0.699727 1.599375 1.499414 3.298711 2.199141 4.898087 0.899649 1.999219 1.899258 4.098399 2.798907 6.097618 0.699727 1.599375 1.499414 3.09879 2.199141 4.698165 1.09957 2.199141 2.199141 4.398282 3.298711 6.697384 0.699727 1.299492 1.299492 2.598985 1.999219 3.998438l5.397892 10.196017c0.699727 1.299492 1.499414 2.598985 2.199141 3.998438 1.199531 2.09918 2.299102 4.19836 3.598594 6.29754 0.899649 1.499414 1.799297 3.09879 2.698946 4.598204 1.09957 1.899258 2.199141 3.698555 3.298711 5.597813 0.99961 1.599375 1.999219 3.19875 2.898868 4.798126 1.09957 1.799297 2.199141 3.498633 3.298711 5.297931 0.99961 1.599375 2.09918 3.19875 3.09879 4.798125 1.09957 1.699336 2.199141 3.398672 3.398672 5.098009 1.09957 1.599375 2.09918 3.19875 3.198751 4.698165 1.09957 1.699336 2.299102 3.298711 3.498633 4.998047 1.09957 1.599375 2.199141 3.09879 3.298712 4.698165 1.199531 1.599375 2.399063 3.298711 3.598594 4.898087 1.09957 1.499414 2.299102 3.09879 3.398672 4.598204 1.199531 1.599375 2.499024 3.19875 3.698556 4.798125 1.199531 1.499414 2.299102 2.998829 3.498633 4.498243 1.299492 1.599375 2.598985 3.298711 3.898477 4.898087 1.199531 1.399453 2.299102 2.798907 3.498633 4.298321 1.499414 1.799297 2.898868 3.498633 4.398282 5.197969 11.095666 12.994924 22.791097 25.490043 35.186256 37.385397 2.798907 2.598985 5.497852 5.29793 8.39672 7.896915 0.199922 0.099961 0.299883 0.299883 0.499804 0.399844 2.698946 2.499024 5.397891 4.898087 8.196799 7.39711 0.299883 0.199922 0.499805 0.499805 0.799687 0.699727 2.698946 2.299102 5.29793 4.598204 7.996876 6.897306 0.399844 0.299883 0.799688 0.699727 1.199532 0.999609 2.598985 2.199141 5.29793 4.298321 7.896915 6.497462 0.499805 0.399844 0.99961 0.799688 1.399453 1.199532 2.598985 2.09918 5.19797 4.098399 7.796955 6.097618 0.599766 0.399844 1.199531 0.899649 1.799297 1.299492 2.598985 1.899258 5.19797 3.898477 7.796954 5.797735 0.699727 0.499805 1.299492 0.99961 1.999219 1.499415 2.499024 1.799297 5.098009 3.598594 7.696994 5.397891 0.799688 0.499805 1.499414 1.09957 2.299102 1.599375 2.499024 1.699336 5.098009 3.398672 7.597032 5.098009 0.799688 0.599766 1.699336 1.09957 2.499024 1.699336l7.497071 4.798126c0.899649 0.599766 1.799297 1.199531 2.798907 1.699336l7.497071 4.498243 2.998829 1.799297c2.499024 1.399453 4.898087 2.898868 7.39711 4.298321 1.09957 0.599766 2.09918 1.199531 3.198751 1.799297 2.399063 1.399453 4.898087 2.698946 7.39711 3.998438 1.199531 0.599766 2.299102 1.199531 3.498634 1.799297 2.399063 1.299492 4.798126 2.499024 7.297149 3.698556 1.199531 0.599766 2.399063 1.199531 3.698556 1.799297 2.399063 1.199531 4.798126 2.299102 7.197188 3.498633l3.898477 1.799297 7.197189 3.298712c1.399453 0.599766 2.698946 1.199531 4.098399 1.799297 2.399063 0.99961 4.698165 1.999219 7.097228 2.998829 1.399453 0.599766 2.898868 1.199531 4.298321 1.799297 2.299102 0.99961 4.698165 1.899258 7.097227 2.798906 1.499414 0.599766 2.998829 1.09957 4.498243 1.699337 2.299102 0.899649 4.698165 1.799297 6.997267 2.598984 1.599375 0.599766 3.09879 1.09957 4.698165 1.699337l6.897305 2.399062c1.599375 0.499805 3.298711 1.09957 4.898087 1.599376 2.299102 0.699727 4.498243 1.499414 6.797345 2.199141l5.098008 1.499414c2.199141 0.699727 4.498243 1.299492 6.797345 1.999219 1.799297 0.499805 3.498633 0.99961 5.297931 1.399453 2.199141 0.599766 4.498243 1.199531 6.697384 1.799297 1.799297 0.499805 3.698555 0.899649 5.497852 1.399454 2.199141 0.499805 4.398282 1.09957 6.597423 1.599375 1.899258 0.399844 3.798516 0.799688 5.697774 1.299492 2.199141 0.499805 4.298321 0.899649 6.497462 1.399454 1.999219 0.399844 3.998438 0.799688 5.897696 1.09957 2.09918 0.399844 4.298321 0.799688 6.397501 1.199532 1.999219 0.399844 4.098399 0.699727 6.197579 0.999609 2.09918 0.299883 4.19836 0.699727 6.29754 0.99961 2.09918 0.299883 4.298321 0.599766 6.397501 0.899648 2.09918 0.299883 4.098399 0.599766 6.197579 0.799688 2.199141 0.299883 4.398282 0.499805 6.697384 0.799688 1.999219 0.199922 3.998438 0.499805 5.997657 0.699726l6.897306 0.599766c1.899258 0.199922 3.898477 0.399844 5.797735 0.499805 2.499024 0.199922 4.998048 0.299883 7.397111 0.499804l5.397891 0.299883c2.898868 0.099961 5.697774 0.199922 8.596642 0.299883 1.499414 0 2.898868 0.099961 4.398282 0.199922 4.298321 0.099961 8.696603 0.199922 12.994924 0.199922 4.398282 0 8.696603-0.099961 12.994924-0.199922 1.499414 0 2.898868-0.099961 4.398282-0.199922 2.898868-0.099961 5.697774-0.199922 8.596642-0.299883l5.397891-0.299883c2.499024-0.199922 4.998048-0.299883 7.397111-0.499804 1.999219-0.099961 3.898477-0.299883 5.797735-0.499805l6.897306-0.599766c1.999219-0.199922 3.998438-0.399844 5.997657-0.699726 2.199141-0.299883 4.398282-0.499805 6.697384-0.799688 2.09918-0.299883 4.098399-0.599766 6.197579-0.799688 2.09918-0.299883 4.298321-0.599766 6.397501-0.899648 2.09918-0.299883 4.19836-0.699727 6.29754-0.99961 2.09918-0.299883 4.098399-0.699727 6.197579-0.999609 2.09918-0.399844 4.298321-0.799688 6.397501-1.199532 1.999219-0.399844 3.998438-0.699727 5.897696-1.09957 2.199141-0.399844 4.298321-0.899649 6.497462-1.399454 1.899258-0.399844 3.798516-0.799688 5.697774-1.299492 2.199141-0.499805 4.398282-0.99961 6.597423-1.599375 1.799297-0.399844 3.698555-0.899649 5.497853-1.399454 2.199141-0.599766 4.498243-1.199531 6.697383-1.799297 1.799297-0.499805 3.498633-0.899649 5.297931-1.399453 2.299102-0.599766 4.498243-1.299492 6.797345-1.999219l5.098008-1.499414c2.299102-0.699727 4.598204-1.399453 6.797345-2.199141 1.599375-0.499805 3.298711-1.09957 4.898087-1.599376l6.897306-2.399062c1.599375-0.499805 3.09879-1.09957 4.698164-1.699337 2.299102-0.799688 4.698165-1.699336 6.997267-2.598984 1.499414-0.599766 2.998829-1.09957 4.498243-1.699337 2.399063-0.899649 4.698165-1.899258 7.097228-2.798906 1.399453-0.599766 2.898868-1.199531 4.29832-1.799297 2.399063-0.99961 4.798126-1.999219 7.097228-2.998829 1.399453-0.599766 2.698946-1.199531 4.098399-1.799297l7.197189-3.298712 3.898477-1.799297c2.399063-1.09957 4.798126-2.299102 7.197189-3.498633 1.199531-0.599766 2.499024-1.199531 3.698555-1.799297 2.399063-1.199531 4.898087-2.499024 7.297149-3.698556 1.199531-0.599766 2.299102-1.199531 3.498634-1.799297 2.499024-1.299492 4.898087-2.598985 7.39711-3.998438 1.09957-0.599766 2.09918-1.199531 3.198751-1.799297 2.499024-1.399453 4.998048-2.798907 7.39711-4.298321l2.998829-1.799297 7.497071-4.498243c0.899649-0.599766 1.799297-1.199531 2.798907-1.699336l7.497071-4.798126c0.799688-0.499805 1.699336-1.09957 2.499024-1.699336 2.499024-1.699336 5.098009-3.398672 7.597033-5.098009 0.799688-0.499805 1.499414-1.09957 2.299102-1.599375 2.598985-1.799297 5.098009-3.598594 7.696993-5.397891 0.699727-0.499805 1.299492-0.99961 1.999219-1.499415 2.598985-1.899258 5.19797-3.798516 7.796954-5.797735 0.599766-0.399844 1.199531-0.899649 1.799297-1.299492 2.598985-1.999219 5.29793-3.998438 7.796955-6.097618 0.499805-0.399844 0.99961-0.799688 1.399453-1.199532 2.698946-2.09918 5.29793-4.298321 7.896915-6.497462 0.399844-0.299883 0.799688-0.699727 1.199532-0.999609 2.698946-2.299102 5.397891-4.598204 7.996876-6.897306 0.299883-0.199922 0.499805-0.499805 0.799688-0.699727 2.798907-2.399063 5.497852-4.898087 8.196798-7.39711 0.199922-0.099961 0.299883-0.299883 0.499804-0.399844 2.798907-2.598985 5.597813-5.19797 8.396721-7.896915 12.395158-11.795392 24.09059-24.290512 35.186255-37.385397z m76.270207-296.484185c-0.099961 1.599375-0.299883 3.298711-0.399844 4.898086l-0.599766 6.597423c-0.199922 1.699336-0.399844 3.398672-0.499804 5.098009-0.199922 2.09918-0.499805 4.19836-0.699727 6.29754-0.199922 1.699336-0.399844 3.398672-0.699727 5.098008-0.299883 2.09918-0.599766 4.098399-0.899648 6.097618-0.299883 1.699336-0.499805 3.498633-0.799688 5.19797-0.299883 1.999219-0.699727 3.998438-0.99961 5.997657-0.299883 1.699336-0.599766 3.498633-0.899648 5.19797-0.399844 1.999219-0.699727 3.998438-1.099571 5.897696-0.299883 1.699336-0.699727 3.498633-1.09957 5.197969-0.399844 1.999219-0.799688 3.898477-1.299492 5.797736-0.399844 1.699336-0.799688 3.398672-1.199532 5.197969-0.499805 1.899258-0.899649 3.898477-1.399453 5.797736-0.399844 1.699336-0.799688 3.398672-1.299493 5.098008-0.499805 1.899258-0.99961 3.798516-1.599375 5.797735-0.499805 1.699336-0.899649 3.398672-1.399453 4.998048-0.599766 1.899258-1.09957 3.798516-1.699336 5.697774-0.499805 1.699336-0.99961 3.298711-1.499415 4.998048-0.599766 1.899258-1.199531 3.798516-1.899258 5.697774-0.499805 1.599375-0.99961 3.19875-1.599375 4.898087-0.699727 1.999219-1.399453 3.998438-2.09918 5.897696-0.499805 1.499414-1.09957 2.998829-1.599375 4.498243-1.199531 3.398672-2.499024 6.697384-3.798516 10.096056-0.599766 1.599375-1.299492 3.298711-1.99922 4.898087-0.699727 1.799297-1.399453 3.498633-2.19914 5.29793-0.699727 1.699336-1.499414 3.398672-2.199141 5.098009-0.699727 1.599375-1.399453 3.298711-2.199141 4.898087-0.799688 1.699336-1.599375 3.498633-2.399063 5.197969-0.699727 1.599375-1.499414 3.19875-2.199141 4.798126-0.799688 1.699336-1.699336 3.498633-2.499024 5.19797-0.799688 1.499414-1.499414 3.09879-2.299102 4.598203-0.899649 1.699336-1.799297 3.398672-2.698946 5.19797l-2.399063 4.498243c-0.899649 1.699336-1.899258 3.398672-2.798906 5.197969-0.799688 1.499414-1.599375 2.898868-2.499024 4.398282l-2.998829 5.098009c-0.799688 1.399453-1.699336 2.898868-2.499023 4.298321-0.99961 1.699336-1.999219 3.398672-3.09879 5.098008-0.899649 1.399453-1.699336 2.798907-2.598985 4.19836-1.09957 1.699336-2.09918 3.398672-3.19875 5.098009-0.899649 1.399453-1.799297 2.698946-2.698946 3.998438-1.09957 1.699336-2.199141 3.398672-3.398672 4.998048l-2.698946 3.898477-3.598594 5.098008c-0.899649 1.199531-1.799297 2.399063-2.698946 3.698556-1.199531 1.699336-2.499024 3.398672-3.798516 5.098008-0.899649 1.09957-1.799297 2.299102-2.598985 3.398673-1.299492 1.699336-2.698946 3.498633-3.998438 5.197969-0.799688 0.99961-1.599375 1.999219-2.399063 2.898868-1.499414 1.799297-2.998829 3.698555-4.498243 5.497852-0.299883 0.399844-0.599766 0.799688-0.999609 1.099571-4.19836 4.998048-8.496681 9.896134-12.795002 14.794221-35.286216-16.693479-75.170636-30.787973-118.753612-41.783678 23.09098-71.871925 37.085513-156.139008 39.284654-247.203437h199.921906c-0.099961 1.09957-0.099961 2.299102-0.199922 3.398673 0.099961 2.199141 0 4.498243-0.199922 6.797345zM765.600937 904.146818c-2.598985 1.699336-5.19797 3.298711-7.796954 4.898086-0.499805 0.299883-0.899649 0.599766-1.399454 0.899649-2.399063 1.499414-4.898087 2.998829-7.39711 4.398282-0.599766 0.399844-1.299492 0.799688-1.899258 1.09957-2.399063 1.399453-4.698165 2.698946-7.097228 4.098399-0.799688 0.399844-1.499414 0.899649-2.299102 1.299493-2.299102 1.299492-4.698165 2.598985-6.997266 3.798516-0.799688 0.499805-1.699336 0.899649-2.499024 1.299492l-6.897306 3.598595c-0.899649 0.499805-1.799297 0.899649-2.698946 1.399453-2.299102 1.09957-4.598204 2.299102-6.897305 3.398672-0.899649 0.399844-1.899258 0.899649-2.798907 1.299493-2.299102 1.09957-4.598204 2.199141-6.997267 3.19875-0.899649 0.399844-1.899258 0.799688-2.798906 1.199532-2.399063 0.99961-4.698165 2.09918-7.097228 3.098789-0.899649 0.399844-1.699336 0.699727-2.598985 1.099571l-7.497071 2.998828c-0.599766 0.199922-1.199531 0.499805-1.799297 0.699727-8.796564 3.398672-17.693089 6.497462-26.789536 9.39633l-1.799297 0.599765c-2.199141 0.699727-4.398282 1.299492-6.497462 1.999219-0.899649 0.299883-1.899258 0.599766-2.798907 0.799688 31.987505-33.58688 59.77665-79.368996 81.868021-134.347521 36.085904 8.996486 69.672784 20.192112 99.761031 33.187037-17.992971 16.193674-37.285435 30.987895-57.67747 44.182741-0.299883 0.199922-0.499805 0.299883-0.599766 0.399844z m-393.346349 53.878953l-1.799297-0.599766c-9.096447-2.898868-17.992971-5.997657-26.789535-9.396329-0.599766-0.199922-1.199531-0.399844-1.699337-0.699727l-7.497071-2.998828c-0.899649-0.399844-1.699336-0.699727-2.598985-0.99961-2.399063-0.99961-4.798126-1.999219-7.097228-3.098789-0.899649-0.399844-1.899258-0.799688-2.798906-1.199532-2.299102-0.99961-4.698165-2.09918-6.997267-3.19875-0.899649-0.399844-1.899258-0.899649-2.798907-1.299493-2.299102-1.09957-4.598204-2.199141-6.897305-3.398672-0.899649-0.499805-1.799297-0.899649-2.698946-1.399453l-6.897306-3.598595c-0.799688-0.399844-1.699336-0.899649-2.499024-1.299492-2.399063-1.299492-4.698165-2.499024-6.997266-3.798516-0.799688-0.399844-1.499414-0.799688-2.299102-1.299493-2.399063-1.299492-4.798126-2.698946-7.097228-4.098399-0.599766-0.399844-1.299492-0.799688-1.899258-1.09957-2.499024-1.499414-4.898087-2.898868-7.39711-4.398282-0.499805-0.299883-0.899649-0.599766-1.399454-0.799688-2.598985-1.599375-5.19797-3.298711-7.796954-4.898086-0.099961-0.099961-0.299883-0.199922-0.399844-0.299883-20.392034-13.294807-39.584537-27.989067-57.577509-44.182741 30.088247-12.994924 63.675127-24.190551 99.761031-33.187037 21.99141 54.978524 49.880515 100.76064 81.86802 134.347521-0.899649-0.299883-1.899258-0.599766-2.798906-0.799688-2.598985-0.99961-4.798126-1.699336-6.897306-2.299102zM151.840687 809.583756c-1.499414-1.799297-2.998829-3.698555-4.498243-5.497852-0.799688-0.99961-1.599375-1.899258-2.299102-2.898868-1.399453-1.699336-2.698946-3.498633-3.998438-5.197969-0.899649-1.09957-1.699336-2.199141-2.598984-3.398673-1.299492-1.699336-2.499024-3.398672-3.798517-5.098008-0.899649-1.199531-1.799297-2.399063-2.698945-3.698555l-3.598595-5.098009-2.698945-3.898477c-1.09957-1.699336-2.299102-3.398672-3.398673-5.098009-0.899649-1.299492-1.799297-2.698946-2.598985-3.998438-1.09957-1.699336-2.199141-3.398672-3.19875-5.098009-0.899649-1.399453-1.699336-2.798907-2.598985-4.19836-0.99961-1.699336-2.09918-3.398672-3.098789-5.098008-0.899649-1.399453-1.699336-2.898868-2.499024-4.298321-0.99961-1.699336-1.999219-3.398672-2.898868-5.098009-0.799688-1.499414-1.599375-2.898868-2.499024-4.398282-0.899649-1.699336-1.899258-3.398672-2.798906-5.098008l-2.399063-4.498243c-0.899649-1.699336-1.799297-3.398672-2.698946-5.19797-0.799688-1.499414-1.499414-3.09879-2.299102-4.598203-0.899649-1.699336-1.699336-3.498633-2.499024-5.19797-0.799688-1.599375-1.499414-3.19875-2.199141-4.798126-0.799688-1.699336-1.599375-3.398672-2.399062-5.197969-0.699727-1.599375-1.399453-3.298711-2.199141-4.898087-0.699727-1.699336-1.499414-3.398672-2.199141-5.098009-0.699727-1.799297-1.499414-3.598594-2.199141-5.397891-0.699727-1.599375-1.299492-3.19875-1.999219-4.798126-1.299492-3.298711-2.598985-6.697384-3.798517-10.096056-0.499805-1.499414-1.09957-2.998829-1.599375-4.498243l-2.09918-5.997657c-0.499805-1.599375-1.09957-3.19875-1.599375-4.898087-0.599766-1.899258-1.299492-3.798516-1.899258-5.697774-0.499805-1.699336-0.99961-3.298711-1.499414-4.998048-0.599766-1.899258-1.199531-3.798516-1.699337-5.697774-0.499805-1.699336-0.899649-3.398672-1.399453-5.098008-0.499805-1.899258-1.09957-3.798516-1.599375-5.797736-0.399844-1.699336-0.899649-3.398672-1.299493-5.098008-0.499805-1.899258-0.99961-3.898477-1.399453-5.797736l-1.199531-5.098008c-0.399844-1.999219-0.899649-3.898477-1.299493-5.897696-0.399844-1.699336-0.699727-3.398672-1.09957-5.19797-0.399844-1.999219-0.799688-3.998438-1.099571-5.897696-0.299883-1.699336-0.599766-3.498633-0.899648-5.19797-0.299883-1.999219-0.699727-3.998438-0.99961-5.997657-0.299883-1.699336-0.499805-3.498633-0.799687-5.197969-0.299883-1.999219-0.599766-4.098399-0.899649-6.097619-0.199922-1.699336-0.499805-3.398672-0.699727-5.098008-0.299883-2.09918-0.499805-4.19836-0.699726-6.29754-0.199922-1.699336-0.399844-3.398672-0.499805-5.098009l-0.599766-6.597423c-0.099961-1.599375-0.299883-3.298711-0.399844-4.898086-0.199922-2.299102-0.299883-4.598204-0.399843-6.897306-0.099961-1.09957-0.099961-2.299102-0.199922-3.398672h199.921905c2.09918 91.164389 16.193674 175.331511 39.284655 247.203436-43.483014 10.995705-83.467396 25.090199-118.753612 41.783678-4.398282-4.898087-8.696603-9.896134-12.994924-14.894182-0.399844 0-0.699727-0.299883-0.899649-0.699727z m106.158532-689.730574c2.598985-1.699336 5.19797-3.298711 7.796954-4.898086 0.499805-0.299883 0.899649-0.599766 1.399454-0.899649 2.399063-1.499414 4.898087-2.998829 7.39711-4.398282 0.599766-0.399844 1.299492-0.799688 1.899258-1.09957 2.399063-1.399453 4.798126-2.698946 7.097228-4.098399 0.799688-0.399844 1.499414-0.899649 2.299102-1.299493 2.299102-1.299492 4.698165-2.598985 6.997267-3.798516 0.799688-0.499805 1.699336-0.899649 2.499023-1.299492l6.897306-3.598595c0.899649-0.499805 1.799297-0.899649 2.698946-1.399453 2.299102-1.09957 4.598204-2.299102 6.897306-3.398672 0.899649-0.399844 1.899258-0.899649 2.798906-1.299493 2.299102-1.09957 4.598204-2.199141 6.997267-3.19875 0.899649-0.399844 1.899258-0.799688 2.798907-1.199532 2.399063-0.99961 4.798126-2.09918 7.097227-3.098789 0.899649-0.399844 1.699336-0.699727 2.598985-1.099571 2.499024-0.99961 4.998048-2.09918 7.497072-2.998828 0.599766-0.199922 1.199531-0.499805 1.799297-0.699727 8.796564-3.398672 17.693089-6.497462 26.689574-9.39633l1.799297-0.599765c2.199141-0.699727 4.398282-1.299492 6.597423-1.999219 0.899649-0.299883 1.799297-0.599766 2.798907-0.799688-31.987505 33.58688-59.77665 79.368996-81.868021 134.347521-36.085904-8.996486-69.672784-20.192112-99.76103-33.187037 17.992971-16.193674 37.285435-30.987895 57.577508-44.182741 0.399844-0.199922 0.599766-0.299883 0.699727-0.399844z m393.44631-53.878953l1.799297 0.599766c8.996486 2.898868 17.992971 5.997657 26.789536 9.396329 0.599766 0.199922 1.199531 0.499805 1.799297 0.699727l7.497071 2.998828c0.899649 0.399844 1.799297 0.699727 2.598985 1.099571 2.399063 0.99961 4.798126 1.999219 7.097228 3.098789 0.899649 0.399844 1.899258 0.799688 2.798906 1.199532 2.299102 0.99961 4.698165 2.09918 6.997267 3.19875 0.899649 0.399844 1.899258 0.899649 2.798907 1.299493 2.299102 1.09957 4.598204 2.199141 6.997266 3.398672 0.899649 0.399844 1.799297 0.899649 2.698946 1.299492 2.299102 1.199531 4.698165 2.399063 6.997267 3.598595 0.799688 0.399844 1.699336 0.899649 2.499024 1.299492 2.299102 1.299492 4.698165 2.499024 6.997266 3.798516 0.799688 0.399844 1.499414 0.899649 2.299102 1.299493 2.399063 1.299492 4.798126 2.698946 7.097228 4.098399 0.599766 0.399844 1.299492 0.799688 1.899258 1.09957 2.499024 1.499414 4.898087 2.898868 7.39711 4.398282 0.499805 0.299883 0.899649 0.599766 1.399454 0.899649 2.598985 1.599375 5.19797 3.298711 7.796954 4.898086 0.099961 0.099961 0.299883 0.199922 0.399844 0.299883 20.392034 13.294807 39.584537 28.089028 57.67747 44.182741-30.088247 12.994924-63.675127 24.190551-99.761031 33.187037-21.99141-54.978524-49.880515-100.76064-81.868021-134.347521 0.899649 0.299883 1.799297 0.499805 2.698946 0.799688 2.199141 0.899649 4.398282 1.499414 6.597423 2.199141z m127.050371 421.535338c-2.09918-91.164389-16.193674-175.331511-39.284654-247.203437 43.483014-10.995705 83.467396-25.090199 118.753611-41.783678 70.072628 77.269816 114.655213 178.130418 120.452949 289.087076h-199.921906zM487.309645 222.41312c-49.780554-1.299492-97.861773-6.497462-142.744241-14.994143 35.985943-86.566185 86.566185-146.142913 142.744241-159.737603v174.731746z m0 44.482624v220.613823H289.58688c2.299102-86.966029 16.493557-168.534166 39.184694-237.307302 49.380711 9.596251 102.659898 15.393987 158.538071 16.693479z m0 269.594689v220.613823c-55.878173 1.299492-109.15736 7.097228-158.538071 16.693479-22.691136-68.873096-36.885592-150.341273-39.184694-237.307302h197.722765z m0 265.096447v174.731746c-56.178055-13.59469-106.758298-73.171417-142.744241-159.737603 44.982429-8.496681 92.963686-13.694651 142.744241-14.994143z m48.980867 0c49.780554 1.299492 97.861773 6.497462 142.74424 14.994143-35.985943 86.566185-86.566185 146.142913-142.74424 159.737603V801.58688z m0-44.482624V536.490433h197.722764c-2.299102 86.966029-16.493557 168.534166-39.184693 237.307302-49.380711-9.596251-102.659898-15.393987-158.538071-16.693479z m0-269.594689V266.895744c55.878173-1.299492 109.15736-7.097228 158.538071-16.693479 22.691136 68.873096 36.885592 150.341273 39.184693 237.307302H536.290512z m0-265.096447V47.681374c56.178055 13.59469 106.758298 73.171417 142.74424 159.737603-44.982429 8.496681-92.963686 13.694651-142.74424 14.994143z m-370.655213-23.990629c35.286216 16.693479 75.170636 30.787973 118.753612 41.783678-23.09098 71.871925-37.085513 156.139008-39.284655 247.203437h-199.921905c5.697774-110.856697 50.280359-211.617337 120.452948-288.987115z" fill=""></path>
|
|
1451
|
+
</svg>
|
|
1452
|
+
</button>
|
|
1453
|
+
<div
|
|
1454
|
+
class="aside-content p-a-xr-yt ease-300 p-lr-20 p-tb-15 bg-color-fff b-r-4 aside-hidden"
|
|
1455
|
+
>
|
|
1456
|
+
<svg class="btn-close c-red c-p p-a-xr-yt m-t-5 m-r-5 o-hover-70 ease-400" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="14" height="14">
|
|
1457
|
+
<path d="M567.719936 491.383467l400.315733-400.315734a52.4288 52.4288 0 0 0 0-73.728l-2.184533-2.184533a52.4288 52.4288 0 0 0-73.728 0L491.807403 416.017067 91.491669 15.1552a52.4288 52.4288 0 0 0-73.728 0L15.579136 17.339733a51.4048 51.4048 0 0 0 0 73.728l400.315733 400.315734-400.315733 400.315733a52.4288 52.4288 0 0 0 0 73.728l2.184533 2.184533a52.4288 52.4288 0 0 0 73.728 0L491.807403 567.296l400.315733 400.315733a52.4288 52.4288 0 0 0 73.728 0l2.184533-2.184533a52.4288 52.4288 0 0 0 0-73.728L567.719936 491.383467z" fill="#ff6300""></path>
|
|
1458
|
+
</svg>
|
|
1459
|
+
</div>
|
|
1460
|
+
</aside>
|
|
1461
|
+
`;
|
|
1462
|
+
const dom = document.createElement("div");
|
|
1463
|
+
dom.innerHTML = html;
|
|
1464
|
+
this.tempDom = dom;
|
|
1465
|
+
this.container.appendChild(dom);
|
|
1466
|
+
}
|
|
1467
|
+
bindEvents() {
|
|
1468
|
+
this.container.querySelector(".btn-entry").addEventListener("click", () => this.toggleVisibility());
|
|
1469
|
+
this.container.querySelector(".btn-close").addEventListener("click", () => this.toggleVisibility());
|
|
1470
|
+
}
|
|
1471
|
+
toggleVisibility() {
|
|
1472
|
+
const btn = this.container.querySelector(".btn-entry");
|
|
1473
|
+
const aside = this.container.querySelector(".aside-content");
|
|
1474
|
+
if (btn.className.includes("btn-visible")) {
|
|
1475
|
+
btn.className = btn.className.replace("btn-visible", "btn-hidden");
|
|
1476
|
+
aside.className = aside.className.replace("aside-hidden", "aside-visible");
|
|
1477
|
+
this.geoserverObj.init();
|
|
1478
|
+
} else {
|
|
1479
|
+
btn.className = btn.className.replace("btn-hidden", "btn-visible");
|
|
1480
|
+
aside.className = aside.className.replace("aside-visible", "aside-hidden");
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1457
1484
|
var index = "";
|
|
1458
1485
|
const options$6 = {
|
|
1459
1486
|
className: "",
|
|
@@ -2316,9 +2343,7 @@ class MeasureAreaControl extends KeyboardControl {
|
|
|
2316
2343
|
this._renderEntry();
|
|
2317
2344
|
this._resetData();
|
|
2318
2345
|
this._eventMeasure();
|
|
2319
|
-
this._onBindKeyboards([
|
|
2320
|
-
{ code: "esc", action: this._close.bind(this) }
|
|
2321
|
-
], "measureArea");
|
|
2346
|
+
this._onBindKeyboards([{ code: "esc", action: this._close.bind(this) }], "measureArea");
|
|
2322
2347
|
return this._container;
|
|
2323
2348
|
}
|
|
2324
2349
|
onRemove() {
|
|
@@ -3739,4 +3764,4 @@ class LayerTreeControl extends KeyboardControl {
|
|
|
3739
3764
|
});
|
|
3740
3765
|
}
|
|
3741
3766
|
}
|
|
3742
|
-
export { Checkbox, ContextMenu,
|
|
3767
|
+
export { Checkbox, ContextMenu, GeoserverAside, Geoservers, LayerTreeControl, MeasureAreaControl, MeasureDistanceControl, MouseRectControl, PickCoordControl, PositionControl, copyContent, createUuid, mercatorToLnglat, transformRequest4326 };
|