tg-map-vue3 3.4.0 → 3.4.2
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/CHANGELOG.md +37 -0
- package/dist/src/map/map/here-map.d.ts +50 -33
- package/dist/src/map/map/overlay/baidu-info-box.d.ts +0 -4
- package/dist/src/map/map/overlay/google-label.d.ts +0 -6
- package/dist/tg-map.js +84 -89
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +1 -1
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +3 -2
package/dist/tg-map.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var _r = Object.defineProperty;
|
|
3
3
|
var br = (i, t, e) => t in i ? _r(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
4
4
|
var c = (i, t, e) => (br(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
5
|
-
import { createCommentVNode as He, computed as Dt, defineComponent as C, markRaw as Mr, watch as zt, openBlock as W, createElementBlock as j, mergeProps as ce, createElementVNode as Tr, normalizeClass as Se, renderSlot as N, normalizeStyle as Or, getCurrentInstance as Cr, inject as wr, onMounted as Er, onBeforeUnmount as
|
|
5
|
+
import { createCommentVNode as He, computed as Dt, defineComponent as C, markRaw as Mr, watch as zt, openBlock as W, createElementBlock as j, mergeProps as ce, createElementVNode as Tr, normalizeClass as Se, renderSlot as N, normalizeStyle as Or, getCurrentInstance as Cr, inject as wr, onMounted as Er, onBeforeUnmount as Lr, toRaw as Ae, withDirectives as xr, vShow as Pr } from "vue";
|
|
6
6
|
function V(i, t, e) {
|
|
7
7
|
Object.keys(i).forEach((r) => {
|
|
8
8
|
r.startsWith("update:") || e != null && e.includes(r) || t.addEventListener(r, i[r]);
|
|
@@ -58,12 +58,12 @@ var Gt = { exports: {} };
|
|
|
58
58
|
return !1;
|
|
59
59
|
}
|
|
60
60
|
function l(g, f) {
|
|
61
|
-
var v = g - 65e-4, O = f - 6e-3,
|
|
61
|
+
var v = g - 65e-4, O = f - 6e-3, x = Math.sqrt(v * v + O * O) - 2e-5 * Math.sin(O * t), w = Math.atan2(O, v) - 3e-6 * Math.cos(v * t), K = x * Math.cos(w), te = x * Math.sin(w);
|
|
62
62
|
return [K, te];
|
|
63
63
|
}
|
|
64
64
|
function d(g, f) {
|
|
65
|
-
var v = Math.sqrt(g * g + f * f) + 2e-5 * Math.sin(f * t), O = Math.atan2(f, g) + 3e-6 * Math.cos(g * t),
|
|
66
|
-
return [
|
|
65
|
+
var v = Math.sqrt(g * g + f * f) + 2e-5 * Math.sin(f * t), O = Math.atan2(f, g) + 3e-6 * Math.cos(g * t), x = v * Math.cos(O) + 65e-4, w = v * Math.sin(O) + 6e-3;
|
|
66
|
+
return [x, w];
|
|
67
67
|
}
|
|
68
68
|
function u(g, f) {
|
|
69
69
|
return o(g, f) ? b(g, f) : [g, f];
|
|
@@ -75,10 +75,10 @@ var Gt = { exports: {} };
|
|
|
75
75
|
return [g * 2 - v[0], f * 2 - v[1]];
|
|
76
76
|
}
|
|
77
77
|
function b(g, f) {
|
|
78
|
-
var v = _(g - 105, f - 35), O = M(g - 105, f - 35),
|
|
78
|
+
var v = _(g - 105, f - 35), O = M(g - 105, f - 35), x = f / 180 * e, w = Math.sin(x);
|
|
79
79
|
w = 1 - s * w * w;
|
|
80
80
|
var K = Math.sqrt(w);
|
|
81
|
-
v = v * 180 / (r * (1 - s) / (w * K) * e), O = O * 180 / (r / K * Math.cos(
|
|
81
|
+
v = v * 180 / (r * (1 - s) / (w * K) * e), O = O * 180 / (r / K * Math.cos(x) * e);
|
|
82
82
|
var te = f + v, ze = g + O;
|
|
83
83
|
return [ze, te];
|
|
84
84
|
}
|
|
@@ -361,7 +361,7 @@ function Wr(i) {
|
|
|
361
361
|
return Object.propertyIsEnumerable.call(i, t);
|
|
362
362
|
}) : [];
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Lt(i) {
|
|
365
365
|
return Object.keys(i).concat(Wr(i));
|
|
366
366
|
}
|
|
367
367
|
function Wt(i, t) {
|
|
@@ -376,9 +376,9 @@ function Hr(i, t) {
|
|
|
376
376
|
}
|
|
377
377
|
function jr(i, t, e) {
|
|
378
378
|
var r = {};
|
|
379
|
-
return e.isMergeableObject(i) &&
|
|
379
|
+
return e.isMergeableObject(i) && Lt(i).forEach(function(s) {
|
|
380
380
|
r[s] = fe(i[s], e);
|
|
381
|
-
}),
|
|
381
|
+
}), Lt(t).forEach(function(s) {
|
|
382
382
|
Hr(i, s) || (Wt(i, s) && e.isMergeableObject(t[s]) ? r[s] = Zr(s, e)(i[s], t[s], e) : r[s] = fe(t[s], e));
|
|
383
383
|
}), r;
|
|
384
384
|
}
|
|
@@ -395,7 +395,7 @@ oe.all = function(t, e) {
|
|
|
395
395
|
}, {});
|
|
396
396
|
};
|
|
397
397
|
var Vr = oe, Fr = Vr;
|
|
398
|
-
const Ht = /* @__PURE__ */ Ke(Fr),
|
|
398
|
+
const Ht = /* @__PURE__ */ Ke(Fr), Le = ["3.0"], Ur = {
|
|
399
399
|
baidu: {
|
|
400
400
|
version: "3.0",
|
|
401
401
|
// 在build时会被静态替换, 导致使用者不能无法设置它
|
|
@@ -410,7 +410,7 @@ const Ht = /* @__PURE__ */ Ke(Fr), xe = ["3.0"], Ur = {
|
|
|
410
410
|
libraries: ["places"]
|
|
411
411
|
},
|
|
412
412
|
here: {
|
|
413
|
-
version:
|
|
413
|
+
version: Le[0],
|
|
414
414
|
key: ""
|
|
415
415
|
}
|
|
416
416
|
};
|
|
@@ -511,7 +511,7 @@ function Yr(i, t, e) {
|
|
|
511
511
|
function Kr(i, t, e, r) {
|
|
512
512
|
return i.addEventListener(t, e, r), () => i.removeEventListener(t, e, r);
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function xt(i, t, e) {
|
|
515
515
|
return i.addEventListener(t, e), () => i.removeEventListener(t, e);
|
|
516
516
|
}
|
|
517
517
|
class Ut {
|
|
@@ -1058,7 +1058,7 @@ class si extends tr {
|
|
|
1058
1058
|
const s = () => {
|
|
1059
1059
|
this.inner.setLocation(this.map.innerMap);
|
|
1060
1060
|
};
|
|
1061
|
-
this.removeableArray.push(
|
|
1061
|
+
this.removeableArray.push(xt(this.map, "center-changed", s)), this.removeableArray.push(xt(this.map, "zoom-changed", s));
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
1064
|
setBounds(e) {
|
|
@@ -2249,7 +2249,7 @@ $.prototype.getBounds = function() {
|
|
|
2249
2249
|
$.prototype.getCenter = function() {
|
|
2250
2250
|
return this._center;
|
|
2251
2251
|
};
|
|
2252
|
-
var
|
|
2252
|
+
var xe;
|
|
2253
2253
|
((i) => {
|
|
2254
2254
|
function t(r) {
|
|
2255
2255
|
return {
|
|
@@ -2274,7 +2274,7 @@ var Le;
|
|
|
2274
2274
|
};
|
|
2275
2275
|
}
|
|
2276
2276
|
i.toGoogle = e;
|
|
2277
|
-
})(
|
|
2277
|
+
})(xe || (xe = {}));
|
|
2278
2278
|
class ar {
|
|
2279
2279
|
constructor(t) {
|
|
2280
2280
|
c(this, "inner");
|
|
@@ -2311,7 +2311,7 @@ class hi extends ar {
|
|
|
2311
2311
|
maxZoom: e.maxZoom,
|
|
2312
2312
|
minClusterSize: e.minClusterSize,
|
|
2313
2313
|
isAverageCenter: e.averageCenter,
|
|
2314
|
-
styles: (s = e.styles) == null ? void 0 : s.map((n) =>
|
|
2314
|
+
styles: (s = e.styles) == null ? void 0 : s.map((n) => xe.toBaidu(n)),
|
|
2315
2315
|
zIndex: e.zIndex
|
|
2316
2316
|
});
|
|
2317
2317
|
const r = e.stylesIndexCalculator;
|
|
@@ -2333,7 +2333,7 @@ class ci extends ar {
|
|
|
2333
2333
|
maxZoom: e.maxZoom,
|
|
2334
2334
|
minimumClusterSize: e.minClusterSize,
|
|
2335
2335
|
averageCenter: e.averageCenter,
|
|
2336
|
-
styles: (n = e.styles) == null ? void 0 : n.map((a) =>
|
|
2336
|
+
styles: (n = e.styles) == null ? void 0 : n.map((a) => xe.toGoogle(a)),
|
|
2337
2337
|
zIndex: e.zIndex
|
|
2338
2338
|
}
|
|
2339
2339
|
);
|
|
@@ -2867,11 +2867,9 @@ function _i() {
|
|
|
2867
2867
|
this.close(), this.dispatchEvent({ type: "onclickclose" });
|
|
2868
2868
|
}), this.inner.appendChild(r), this.border.appendChild(this.inner), this.border.appendChild(d), this.container.appendChild(this.border), a && this.setZIndex(a), this.setMaxWidth(h), this.onMarkerPositionChanged = this.onMarkerPositionChanged.bind(this);
|
|
2869
2869
|
}
|
|
2870
|
-
/** @override */
|
|
2871
2870
|
initialize(r) {
|
|
2872
2871
|
return this.map = r, r.getPanes().floatPane.appendChild(this.container), this.container;
|
|
2873
2872
|
}
|
|
2874
|
-
/** @override */
|
|
2875
2873
|
draw() {
|
|
2876
2874
|
if (!this.map)
|
|
2877
2875
|
return;
|
|
@@ -3139,12 +3137,10 @@ function Ti() {
|
|
|
3139
3137
|
const r = this.container.firstChild;
|
|
3140
3138
|
r !== e && (r ? this.container.replaceChild(r, e) : this.container.appendChild(e));
|
|
3141
3139
|
}
|
|
3142
|
-
/** @override */
|
|
3143
3140
|
onAdd() {
|
|
3144
3141
|
const e = this.getPanes() ?? E("onAdd回调中一定能够获取panes");
|
|
3145
3142
|
this.zIndex ? e.overlayMouseTarget.appendChild(this.container) : e.overlayLayer.appendChild(this.container);
|
|
3146
3143
|
}
|
|
3147
|
-
/** @override */
|
|
3148
3144
|
draw() {
|
|
3149
3145
|
var e, r;
|
|
3150
3146
|
if (this.container.style.display = this.position ? "block" : "none", this.position) {
|
|
@@ -3155,7 +3151,6 @@ function Ti() {
|
|
|
3155
3151
|
}
|
|
3156
3152
|
}
|
|
3157
3153
|
}
|
|
3158
|
-
/** @override */
|
|
3159
3154
|
onRemove() {
|
|
3160
3155
|
var e;
|
|
3161
3156
|
(e = this.container.parentNode) == null || e.removeChild(this.container);
|
|
@@ -4150,7 +4145,7 @@ class wi extends nt {
|
|
|
4150
4145
|
c(this, "defaultLayers");
|
|
4151
4146
|
this.mapOptions = r;
|
|
4152
4147
|
const s = Vt().here;
|
|
4153
|
-
|
|
4148
|
+
Le.includes(s.version) || E(`不支持${s.version}, HereMap当前只支持如下版本: ${Le}`);
|
|
4154
4149
|
const n = new H.service.Platform({
|
|
4155
4150
|
app_id: s.key.split(",")[0],
|
|
4156
4151
|
app_code: s.key.split(",")[1]
|
|
@@ -4176,10 +4171,7 @@ class wi extends nt {
|
|
|
4176
4171
|
this.map.setCenter(e.toHere(this.coordType));
|
|
4177
4172
|
}
|
|
4178
4173
|
// TODO: 实现其他方法
|
|
4179
|
-
|
|
4180
|
-
throw new Error("Method not implemented.");
|
|
4181
|
-
}
|
|
4182
|
-
setDisableDoubleClickZoom(e) {
|
|
4174
|
+
setGestureHandling(e) {
|
|
4183
4175
|
throw new Error("Method not implemented.");
|
|
4184
4176
|
}
|
|
4185
4177
|
fromContainerPointToLatLng(e) {
|
|
@@ -4188,28 +4180,19 @@ class wi extends nt {
|
|
|
4188
4180
|
fromLatLngToContainerPoint(e) {
|
|
4189
4181
|
throw new Error("Method not implemented.");
|
|
4190
4182
|
}
|
|
4191
|
-
|
|
4192
|
-
throw new Error("Method not implemented.");
|
|
4193
|
-
}
|
|
4194
|
-
removeElementOverlay(e) {
|
|
4195
|
-
throw new Error("Method not implemented.");
|
|
4196
|
-
}
|
|
4197
|
-
createInfoBox(e) {
|
|
4198
|
-
throw new Error("Method not implemented.");
|
|
4199
|
-
}
|
|
4200
|
-
createLabel(e) {
|
|
4183
|
+
setDraggable(e) {
|
|
4201
4184
|
throw new Error("Method not implemented.");
|
|
4202
4185
|
}
|
|
4203
|
-
|
|
4186
|
+
setDisableDoubleClickZoom(e) {
|
|
4204
4187
|
throw new Error("Method not implemented.");
|
|
4205
4188
|
}
|
|
4206
|
-
|
|
4189
|
+
setMinZoom(e) {
|
|
4207
4190
|
throw new Error("Method not implemented.");
|
|
4208
4191
|
}
|
|
4209
|
-
|
|
4192
|
+
setMaxZoom(e) {
|
|
4210
4193
|
throw new Error("Method not implemented.");
|
|
4211
4194
|
}
|
|
4212
|
-
|
|
4195
|
+
setMapStyle(e) {
|
|
4213
4196
|
throw new Error("Method not implemented.");
|
|
4214
4197
|
}
|
|
4215
4198
|
setBuildInMapTypeId(e) {
|
|
@@ -4227,16 +4210,22 @@ class wi extends nt {
|
|
|
4227
4210
|
removeLayer(e) {
|
|
4228
4211
|
throw new Error("Method not implemented.");
|
|
4229
4212
|
}
|
|
4230
|
-
|
|
4213
|
+
panTo(e) {
|
|
4231
4214
|
throw new Error("Method not implemented.");
|
|
4232
4215
|
}
|
|
4233
|
-
|
|
4216
|
+
panBy(e, r) {
|
|
4234
4217
|
throw new Error("Method not implemented.");
|
|
4235
4218
|
}
|
|
4236
|
-
|
|
4219
|
+
fitBounds(e, r) {
|
|
4237
4220
|
throw new Error("Method not implemented.");
|
|
4238
4221
|
}
|
|
4239
|
-
|
|
4222
|
+
getBounds() {
|
|
4223
|
+
throw new Error("Method not implemented.");
|
|
4224
|
+
}
|
|
4225
|
+
addElementOverlay(e) {
|
|
4226
|
+
throw new Error("Method not implemented.");
|
|
4227
|
+
}
|
|
4228
|
+
removeElementOverlay(e) {
|
|
4240
4229
|
throw new Error("Method not implemented.");
|
|
4241
4230
|
}
|
|
4242
4231
|
addOverlay(e) {
|
|
@@ -4251,9 +4240,21 @@ class wi extends nt {
|
|
|
4251
4240
|
createMarkerClusterer(e) {
|
|
4252
4241
|
throw new Error("Method not implemented.");
|
|
4253
4242
|
}
|
|
4243
|
+
createAutocomplete(e) {
|
|
4244
|
+
throw new Error("Method not implemented.");
|
|
4245
|
+
}
|
|
4246
|
+
createSearchBox(e) {
|
|
4247
|
+
throw new Error("Method not implemented.");
|
|
4248
|
+
}
|
|
4249
|
+
createPlaceService(e) {
|
|
4250
|
+
throw new Error("Method not implemented.");
|
|
4251
|
+
}
|
|
4254
4252
|
createInfoWindow(e) {
|
|
4255
4253
|
throw new Error("Method not implemented.");
|
|
4256
4254
|
}
|
|
4255
|
+
createInfoBox(e) {
|
|
4256
|
+
throw new Error("Method not implemented.");
|
|
4257
|
+
}
|
|
4257
4258
|
createPolyline(e) {
|
|
4258
4259
|
throw new Error("Method not implemented.");
|
|
4259
4260
|
}
|
|
@@ -4266,6 +4267,9 @@ class wi extends nt {
|
|
|
4266
4267
|
createCircle(e) {
|
|
4267
4268
|
throw new Error("Method not implemented.");
|
|
4268
4269
|
}
|
|
4270
|
+
createLabel(e) {
|
|
4271
|
+
throw new Error("Method not implemented.");
|
|
4272
|
+
}
|
|
4269
4273
|
addCustomControl(e) {
|
|
4270
4274
|
throw new Error("Method not implemented.");
|
|
4271
4275
|
}
|
|
@@ -4281,15 +4285,6 @@ class wi extends nt {
|
|
|
4281
4285
|
createScaleControl(e) {
|
|
4282
4286
|
throw new Error("Method not implemented.");
|
|
4283
4287
|
}
|
|
4284
|
-
createAutocomplete(e) {
|
|
4285
|
-
throw new Error("Method not implemented.");
|
|
4286
|
-
}
|
|
4287
|
-
createSearchBox(e) {
|
|
4288
|
-
throw new Error("Method not implemented.");
|
|
4289
|
-
}
|
|
4290
|
-
createPlaceService(e) {
|
|
4291
|
-
throw new Error("Method not implemented.");
|
|
4292
|
-
}
|
|
4293
4288
|
}
|
|
4294
4289
|
var z = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here = "here", i))(z || {}), qe;
|
|
4295
4290
|
((i) => {
|
|
@@ -4307,7 +4302,7 @@ var z = /* @__PURE__ */ ((i) => (i.google = "google", i.baidu = "baidu", i.here
|
|
|
4307
4302
|
i.createMap = t;
|
|
4308
4303
|
})(qe || (qe = {}));
|
|
4309
4304
|
function Ei({ type: i, config: t }) {
|
|
4310
|
-
const e = window, r =
|
|
4305
|
+
const e = window, r = Li(i);
|
|
4311
4306
|
if (e[r])
|
|
4312
4307
|
return Promise.resolve();
|
|
4313
4308
|
switch (i !== z.here && !t.key && E(`请先配置${i}地图的key`), i) {
|
|
@@ -4331,10 +4326,10 @@ function Ei({ type: i, config: t }) {
|
|
|
4331
4326
|
je(i);
|
|
4332
4327
|
}
|
|
4333
4328
|
}
|
|
4334
|
-
function de(i, t =
|
|
4329
|
+
function de(i, t = Le[0]) {
|
|
4335
4330
|
return `https://js.api.here.com/v3/${t}/mapsjs-${i}.js`;
|
|
4336
4331
|
}
|
|
4337
|
-
function
|
|
4332
|
+
function Li(i) {
|
|
4338
4333
|
switch (i) {
|
|
4339
4334
|
case z.google:
|
|
4340
4335
|
return "google";
|
|
@@ -4344,10 +4339,10 @@ function xi(i) {
|
|
|
4344
4339
|
return "H";
|
|
4345
4340
|
}
|
|
4346
4341
|
}
|
|
4347
|
-
let
|
|
4342
|
+
let xi = 0;
|
|
4348
4343
|
function Rt(i, t = "callback") {
|
|
4349
4344
|
return new Promise((e, r) => {
|
|
4350
|
-
const s = `__callback${
|
|
4345
|
+
const s = `__callback${xi++}`;
|
|
4351
4346
|
window[s] = e;
|
|
4352
4347
|
const n = document.createElement("script");
|
|
4353
4348
|
n.src = `${i}&${t}=${s}`, n.onerror = r, document.body.appendChild(n);
|
|
@@ -4458,7 +4453,7 @@ function Bi(i, t) {
|
|
|
4458
4453
|
function F(i, t) {
|
|
4459
4454
|
return Dt(() => Bi(i, t));
|
|
4460
4455
|
}
|
|
4461
|
-
function
|
|
4456
|
+
function L() {
|
|
4462
4457
|
return Function;
|
|
4463
4458
|
}
|
|
4464
4459
|
const Cs = () => {
|
|
@@ -4532,14 +4527,14 @@ const Cs = () => {
|
|
|
4532
4527
|
/** 地图类型对象, 优先级比mapTypeId高 */
|
|
4533
4528
|
mapType: m(Object),
|
|
4534
4529
|
hideLogo: m(Boolean),
|
|
4535
|
-
onLoad:
|
|
4536
|
-
"onUpdate:center":
|
|
4537
|
-
"onUpdate:current-center":
|
|
4538
|
-
"onUpdate:last-center":
|
|
4539
|
-
"onUpdate:map-type":
|
|
4540
|
-
"onUpdate:map-type-id":
|
|
4541
|
-
"onUpdate:zoom":
|
|
4542
|
-
onError:
|
|
4530
|
+
onLoad: L(),
|
|
4531
|
+
"onUpdate:center": L(),
|
|
4532
|
+
"onUpdate:current-center": L(),
|
|
4533
|
+
"onUpdate:last-center": L(),
|
|
4534
|
+
"onUpdate:map-type": L(),
|
|
4535
|
+
"onUpdate:map-type-id": L(),
|
|
4536
|
+
"onUpdate:zoom": L(),
|
|
4537
|
+
onError: L()
|
|
4543
4538
|
},
|
|
4544
4539
|
/** 声明事件的类型信息, 详见: {@link splitAttrs} */
|
|
4545
4540
|
emits: void 0,
|
|
@@ -4751,7 +4746,7 @@ function Ni(i, t, e, r, s, n) {
|
|
|
4751
4746
|
N(i.$slots, "default")
|
|
4752
4747
|
], 2);
|
|
4753
4748
|
}
|
|
4754
|
-
const Es = /* @__PURE__ */ U(zi, [["render", Ni]]),
|
|
4749
|
+
const Es = /* @__PURE__ */ U(zi, [["render", Ni]]), Ls = C({
|
|
4755
4750
|
name: "tg-map-type-control",
|
|
4756
4751
|
mixins: [P],
|
|
4757
4752
|
props: {
|
|
@@ -4784,7 +4779,7 @@ const Es = /* @__PURE__ */ U(zi, [["render", Ni]]), xs = C({
|
|
|
4784
4779
|
onDestroy() {
|
|
4785
4780
|
this.$map.removeControl(this.control);
|
|
4786
4781
|
}
|
|
4787
|
-
}),
|
|
4782
|
+
}), xs = C({
|
|
4788
4783
|
name: "tg-scale-control",
|
|
4789
4784
|
mixins: [P],
|
|
4790
4785
|
props: {
|
|
@@ -4832,7 +4827,7 @@ function Gi() {
|
|
|
4832
4827
|
},
|
|
4833
4828
|
/** 地图元素销毁回调 */
|
|
4834
4829
|
[Me](r) {
|
|
4835
|
-
|
|
4830
|
+
Lr(r), e && E(`${Me}只能调用一次`), e = r;
|
|
4836
4831
|
},
|
|
4837
4832
|
/** 重新创建地图元素 */
|
|
4838
4833
|
recreate() {
|
|
@@ -4960,8 +4955,8 @@ const Hi = /* @__PURE__ */ U(Zi, [["render", Wi]]), ks = C({
|
|
|
4960
4955
|
visible: m(Boolean),
|
|
4961
4956
|
fillColor: m(String),
|
|
4962
4957
|
fillOpacity: m(Number),
|
|
4963
|
-
"onUpdate:center":
|
|
4964
|
-
"onUpdate:radius":
|
|
4958
|
+
"onUpdate:center": L(),
|
|
4959
|
+
"onUpdate:radius": L()
|
|
4965
4960
|
},
|
|
4966
4961
|
emits: void 0,
|
|
4967
4962
|
setup(i, { attrs: t }) {
|
|
@@ -5202,7 +5197,7 @@ const Is = /* @__PURE__ */ U(Fi, [["render", Ui]]), qi = C({
|
|
|
5202
5197
|
cursor: m(String),
|
|
5203
5198
|
zIndex: m(Number),
|
|
5204
5199
|
visible: m(Boolean),
|
|
5205
|
-
"onUpdate:position":
|
|
5200
|
+
"onUpdate:position": L()
|
|
5206
5201
|
},
|
|
5207
5202
|
emits: void 0,
|
|
5208
5203
|
setup(i, { attrs: t }) {
|
|
@@ -5295,7 +5290,7 @@ const wt = /* @__PURE__ */ U(qi, [["render", Yi]]), Ki = C({
|
|
|
5295
5290
|
maxWidth: m(Number),
|
|
5296
5291
|
borderClass: m(String),
|
|
5297
5292
|
zIndex: m(Number),
|
|
5298
|
-
"onUpdate:show":
|
|
5293
|
+
"onUpdate:show": L()
|
|
5299
5294
|
},
|
|
5300
5295
|
emits: void 0,
|
|
5301
5296
|
setup(i, { attrs: t }) {
|
|
@@ -5374,7 +5369,7 @@ const Ss = /* @__PURE__ */ U(Ki, [["render", Xi]]), Ji = C({
|
|
|
5374
5369
|
maxWidth: m(Number),
|
|
5375
5370
|
offset: m(Object),
|
|
5376
5371
|
disableAutoPan: m(Boolean),
|
|
5377
|
-
"onUpdate:show":
|
|
5372
|
+
"onUpdate:show": L()
|
|
5378
5373
|
},
|
|
5379
5374
|
emits: void 0,
|
|
5380
5375
|
setup(i, { attrs: t }) {
|
|
@@ -5429,7 +5424,7 @@ const Ss = /* @__PURE__ */ U(Ki, [["render", Xi]]), Ji = C({
|
|
|
5429
5424
|
}
|
|
5430
5425
|
});
|
|
5431
5426
|
function Qi(i, t, e, r, s, n) {
|
|
5432
|
-
return
|
|
5427
|
+
return xr((W(), j("div", ce({
|
|
5433
5428
|
class: i.$options.name
|
|
5434
5429
|
}, i.attrs.binds), [
|
|
5435
5430
|
N(i.$slots, "default")
|
|
@@ -5515,7 +5510,7 @@ const Rs = /* @__PURE__ */ U(es, [["render", ts]]), $s = C({
|
|
|
5515
5510
|
visible: m(Boolean),
|
|
5516
5511
|
fillColor: m(String),
|
|
5517
5512
|
fillOpacity: m(Number),
|
|
5518
|
-
"onUpdate:paths":
|
|
5513
|
+
"onUpdate:paths": L()
|
|
5519
5514
|
},
|
|
5520
5515
|
emits: void 0,
|
|
5521
5516
|
setup(i, { attrs: t }) {
|
|
@@ -5582,7 +5577,7 @@ const Rs = /* @__PURE__ */ U(es, [["render", ts]]), $s = C({
|
|
|
5582
5577
|
strokeOpacity: m(Number),
|
|
5583
5578
|
strokeWeight: m(Number),
|
|
5584
5579
|
visible: m(Boolean),
|
|
5585
|
-
"onUpdate:path":
|
|
5580
|
+
"onUpdate:path": L()
|
|
5586
5581
|
},
|
|
5587
5582
|
emits: void 0,
|
|
5588
5583
|
setup(i, { attrs: t }) {
|
|
@@ -5645,7 +5640,7 @@ const Rs = /* @__PURE__ */ U(es, [["render", ts]]), $s = C({
|
|
|
5645
5640
|
visible: m(Boolean),
|
|
5646
5641
|
fillColor: m(String),
|
|
5647
5642
|
fillOpacity: m(Number),
|
|
5648
|
-
"onUpdate:bounds":
|
|
5643
|
+
"onUpdate:bounds": L()
|
|
5649
5644
|
},
|
|
5650
5645
|
emits: void 0,
|
|
5651
5646
|
setup(i, { attrs: t }) {
|
|
@@ -5762,16 +5757,16 @@ function ss(i, t) {
|
|
|
5762
5757
|
}
|
|
5763
5758
|
function ns(i, t, e) {
|
|
5764
5759
|
const s = 63567523142e-4, n = 1 / 298.257223563, a = ge(t), h = Math.sin(a), o = Math.cos(a), l = (1 - n) * Math.tan(ge(i.lat)), d = 1 / Math.sqrt(1 + l * l), u = l * d, p = Math.atan2(l, o), b = d * h, _ = 1 - b * b, M = _ * (6378137 * 6378137 - s * s) / (s * s), g = 1 + M / 16384 * (4096 + M * (-768 + M * (320 - 175 * M))), f = M / 1024 * (256 + M * (-128 + M * (74 - 47 * M)));
|
|
5765
|
-
let v = 0, O = 0,
|
|
5760
|
+
let v = 0, O = 0, x = 0, w = e / (s * g), K = 2 * Math.PI;
|
|
5766
5761
|
for (; Math.abs(w - K) > 1e-12; ) {
|
|
5767
|
-
v = Math.cos(2 * p + w), O = Math.sin(w),
|
|
5768
|
-
const vr = f * O * (v + f / 4 * (
|
|
5762
|
+
v = Math.cos(2 * p + w), O = Math.sin(w), x = Math.cos(w);
|
|
5763
|
+
const vr = f * O * (v + f / 4 * (x * (-1 + 2 * v * v) - f / 6 * v * (-3 + 4 * O * O) * (-3 + 4 * v * v)));
|
|
5769
5764
|
K = w, w = e / (s * g) + vr;
|
|
5770
5765
|
}
|
|
5771
|
-
const te = u * O - d *
|
|
5772
|
-
u *
|
|
5766
|
+
const te = u * O - d * x * o, ze = Math.atan2(
|
|
5767
|
+
u * x + d * O * o,
|
|
5773
5768
|
(1 - n) * Math.sqrt(b * b + te * te)
|
|
5774
|
-
), fr = Math.atan2(O * h, d *
|
|
5769
|
+
), fr = Math.atan2(O * h, d * x - u * O * o), Ne = n / 16 * _ * (4 + n * (4 - 3 * _)), yr = fr - (1 - Ne) * n * b * (w + Ne * O * (v + Ne * x * (-1 + 2 * v * v)));
|
|
5775
5770
|
return { lng: i.lng + $t(yr), lat: $t(ze) };
|
|
5776
5771
|
}
|
|
5777
5772
|
const Gs = {
|
|
@@ -5860,14 +5855,14 @@ export {
|
|
|
5860
5855
|
Ai as TgMap,
|
|
5861
5856
|
qe as TgMapFactory,
|
|
5862
5857
|
z as TgMapType,
|
|
5863
|
-
|
|
5858
|
+
Ls as TgMapTypeControl,
|
|
5864
5859
|
ws as TgMapWidget,
|
|
5865
5860
|
wt as TgMarker,
|
|
5866
5861
|
Hi as TgMarkerClusterer,
|
|
5867
5862
|
$s as TgPolygon,
|
|
5868
5863
|
Ds as TgPolyline,
|
|
5869
5864
|
zs as TgRectangle,
|
|
5870
|
-
|
|
5865
|
+
xs as TgScaleControl,
|
|
5871
5866
|
ks as TgTrafficLayer,
|
|
5872
5867
|
Ps as TgZoomControl,
|
|
5873
5868
|
Pe as UnionIcon,
|
|
@@ -5880,7 +5875,7 @@ export {
|
|
|
5880
5875
|
Ms as createPropertyObjectTyped,
|
|
5881
5876
|
cs as debug,
|
|
5882
5877
|
Zs as default,
|
|
5883
|
-
|
|
5878
|
+
L as eventProp,
|
|
5884
5879
|
Os as extractVNodeFromSlotsByComponent,
|
|
5885
5880
|
Ts as findByComponentType,
|
|
5886
5881
|
ns as getDestination,
|