xy-map 1.1.40 → 1.1.41
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 +7 -12
- package/xy-map.umd.js +7 -12
- package/xy-map.umd.min.js +1 -1
package/package.json
CHANGED
package/xy-map.common.js
CHANGED
|
@@ -71186,18 +71186,13 @@ const addFlashPoint = (option = {}, layerId) => {
|
|
|
71186
71186
|
}); // 2倍屏分辨率
|
|
71187
71187
|
}
|
|
71188
71188
|
|
|
71189
|
-
|
|
71190
|
-
|
|
71191
|
-
|
|
71192
|
-
|
|
71193
|
-
|
|
71194
|
-
|
|
71195
|
-
|
|
71196
|
-
paint: {
|
|
71197
|
-
'text-opacity': 0
|
|
71198
|
-
}
|
|
71199
|
-
}
|
|
71200
|
-
};
|
|
71189
|
+
let layout = option.layout || {};
|
|
71190
|
+
Object.assign(layout, {
|
|
71191
|
+
'icon-image': imgId
|
|
71192
|
+
});
|
|
71193
|
+
const opt = Object.assign({}, option, {
|
|
71194
|
+
layout
|
|
71195
|
+
});
|
|
71201
71196
|
if (hasLayer(opt.id)) {
|
|
71202
71197
|
setSource(opt.id, opt.data);
|
|
71203
71198
|
} else {
|
package/xy-map.umd.js
CHANGED
|
@@ -71204,18 +71204,13 @@ const addFlashPoint = (option = {}, layerId) => {
|
|
|
71204
71204
|
}); // 2倍屏分辨率
|
|
71205
71205
|
}
|
|
71206
71206
|
|
|
71207
|
-
|
|
71208
|
-
|
|
71209
|
-
|
|
71210
|
-
|
|
71211
|
-
|
|
71212
|
-
|
|
71213
|
-
|
|
71214
|
-
paint: {
|
|
71215
|
-
'text-opacity': 0
|
|
71216
|
-
}
|
|
71217
|
-
}
|
|
71218
|
-
};
|
|
71207
|
+
let layout = option.layout || {};
|
|
71208
|
+
Object.assign(layout, {
|
|
71209
|
+
'icon-image': imgId
|
|
71210
|
+
});
|
|
71211
|
+
const opt = Object.assign({}, option, {
|
|
71212
|
+
layout
|
|
71213
|
+
});
|
|
71219
71214
|
if (hasLayer(opt.id)) {
|
|
71220
71215
|
setSource(opt.id, opt.data);
|
|
71221
71216
|
} else {
|