@gis_victory/gismap 1.0.51 → 1.0.53
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.es.js +21 -12
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -83085,24 +83085,27 @@ class TDTManager {
|
|
|
83085
83085
|
this.tdtLayer.set(this.tdtVecId, {
|
|
83086
83086
|
type: "raster",
|
|
83087
83087
|
tiles: [
|
|
83088
|
-
`
|
|
83089
|
-
`
|
|
83090
|
-
`
|
|
83091
|
-
`
|
|
83092
|
-
`
|
|
83093
|
-
`
|
|
83094
|
-
`
|
|
83095
|
-
`
|
|
83088
|
+
`https://t0.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,
|
|
83089
|
+
`https://t1.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,
|
|
83090
|
+
`https://t2.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,
|
|
83091
|
+
`https://t3.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,
|
|
83092
|
+
`https://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,
|
|
83093
|
+
`https://t5.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,
|
|
83094
|
+
`https://t6.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,
|
|
83095
|
+
`https://t7.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`
|
|
83096
83096
|
],
|
|
83097
83097
|
tileSize: 256,
|
|
83098
83098
|
maxzoom: 18,
|
|
83099
83099
|
crs: "EPSG:4326"
|
|
83100
83100
|
});
|
|
83101
83101
|
}
|
|
83102
|
-
addImgLayer(beforeId) {
|
|
83102
|
+
addImgLayer(sourceConfig, beforeId) {
|
|
83103
83103
|
let source2 = this.map.getSource(this.tdtImgId);
|
|
83104
83104
|
if (!source2) {
|
|
83105
83105
|
source2 = this.tdtLayer.get(this.tdtImgId);
|
|
83106
|
+
if (sourceConfig) {
|
|
83107
|
+
source2 = Object.assign(source2, sourceConfig);
|
|
83108
|
+
}
|
|
83106
83109
|
this.map.addSource(this.tdtImgId, source2);
|
|
83107
83110
|
}
|
|
83108
83111
|
if (beforeId && this.map.getLayer(beforeId)) {
|
|
@@ -83124,10 +83127,13 @@ class TDTManager {
|
|
|
83124
83127
|
this.map.removeLayer(this.tdtImgId);
|
|
83125
83128
|
}
|
|
83126
83129
|
}
|
|
83127
|
-
addVecLayer(beforeId) {
|
|
83130
|
+
addVecLayer(sourceConfig, beforeId) {
|
|
83128
83131
|
let source2 = this.map.getSource(this.tdtVecId);
|
|
83129
83132
|
if (!source2) {
|
|
83130
83133
|
source2 = this.tdtLayer.get(this.tdtVecId);
|
|
83134
|
+
if (sourceConfig) {
|
|
83135
|
+
source2 = Object.assign(source2, sourceConfig);
|
|
83136
|
+
}
|
|
83131
83137
|
this.map.addSource(this.tdtVecId, source2);
|
|
83132
83138
|
}
|
|
83133
83139
|
if (beforeId && this.map.getLayer(beforeId)) {
|
|
@@ -83149,10 +83155,13 @@ class TDTManager {
|
|
|
83149
83155
|
this.map.removeLayer(this.tdtVecId);
|
|
83150
83156
|
}
|
|
83151
83157
|
}
|
|
83152
|
-
addCiaLayer(beforeId) {
|
|
83158
|
+
addCiaLayer(sourceConfig, beforeId) {
|
|
83153
83159
|
let source2 = this.map.getSource(this.tdtCiaId);
|
|
83154
83160
|
if (!source2) {
|
|
83155
83161
|
source2 = this.tdtLayer.get(this.tdtCiaId);
|
|
83162
|
+
if (sourceConfig) {
|
|
83163
|
+
source2 = Object.assign(source2, sourceConfig);
|
|
83164
|
+
}
|
|
83156
83165
|
this.map.addSource(this.tdtCiaId, source2);
|
|
83157
83166
|
}
|
|
83158
83167
|
if (beforeId && this.map.getLayer(beforeId)) {
|
|
@@ -98005,7 +98014,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
98005
98014
|
onMounted(() => {
|
|
98006
98015
|
formInit();
|
|
98007
98016
|
});
|
|
98008
|
-
watch(() => props.data, (
|
|
98017
|
+
watch(() => props.data, () => {
|
|
98009
98018
|
formInit();
|
|
98010
98019
|
});
|
|
98011
98020
|
return (_ctx, _cache) => {
|