xy-map 1.1.40 → 1.1.43
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/package.json +1 -1
- package/xy-map.common.js +11 -14
- package/xy-map.umd.js +11 -14
- package/xy-map.umd.min.js +1 -1
package/package.json
CHANGED
package/xy-map.common.js
CHANGED
|
@@ -71186,22 +71186,19 @@ const addFlashPoint = (option = {}, layerId) => {
|
|
|
71186
71186
|
}); // 2倍屏分辨率
|
|
71187
71187
|
}
|
|
71188
71188
|
|
|
71189
|
-
|
|
71190
|
-
|
|
71191
|
-
|
|
71192
|
-
|
|
71193
|
-
|
|
71194
|
-
|
|
71195
|
-
|
|
71196
|
-
|
|
71197
|
-
'text-opacity': 0
|
|
71198
|
-
}
|
|
71199
|
-
}
|
|
71189
|
+
//自定义点图层样式
|
|
71190
|
+
option.style = {
|
|
71191
|
+
layout: Object.assign({}, option.layout || {}, {
|
|
71192
|
+
'icon-image': imgId
|
|
71193
|
+
}),
|
|
71194
|
+
paint: Object.assign({}, option.paint || {}, {
|
|
71195
|
+
'text-opacity': 0
|
|
71196
|
+
})
|
|
71200
71197
|
};
|
|
71201
|
-
if (hasLayer(
|
|
71202
|
-
setSource(
|
|
71198
|
+
if (hasLayer(option.id)) {
|
|
71199
|
+
setSource(option.id, option.data);
|
|
71203
71200
|
} else {
|
|
71204
|
-
addDiyPoint(
|
|
71201
|
+
addDiyPoint(option, layerId);
|
|
71205
71202
|
}
|
|
71206
71203
|
if (option.time > 0) {
|
|
71207
71204
|
window.clearInterval(clock);
|
package/xy-map.umd.js
CHANGED
|
@@ -71204,22 +71204,19 @@ const addFlashPoint = (option = {}, layerId) => {
|
|
|
71204
71204
|
}); // 2倍屏分辨率
|
|
71205
71205
|
}
|
|
71206
71206
|
|
|
71207
|
-
|
|
71208
|
-
|
|
71209
|
-
|
|
71210
|
-
|
|
71211
|
-
|
|
71212
|
-
|
|
71213
|
-
|
|
71214
|
-
|
|
71215
|
-
'text-opacity': 0
|
|
71216
|
-
}
|
|
71217
|
-
}
|
|
71207
|
+
//自定义点图层样式
|
|
71208
|
+
option.style = {
|
|
71209
|
+
layout: Object.assign({}, option.layout || {}, {
|
|
71210
|
+
'icon-image': imgId
|
|
71211
|
+
}),
|
|
71212
|
+
paint: Object.assign({}, option.paint || {}, {
|
|
71213
|
+
'text-opacity': 0
|
|
71214
|
+
})
|
|
71218
71215
|
};
|
|
71219
|
-
if (hasLayer(
|
|
71220
|
-
setSource(
|
|
71216
|
+
if (hasLayer(option.id)) {
|
|
71217
|
+
setSource(option.id, option.data);
|
|
71221
71218
|
} else {
|
|
71222
|
-
addDiyPoint(
|
|
71219
|
+
addDiyPoint(option, layerId);
|
|
71223
71220
|
}
|
|
71224
71221
|
if (option.time > 0) {
|
|
71225
71222
|
window.clearInterval(clock);
|