xy-map 1.1.33 → 1.1.34

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xy-map",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "description": "雄越地图",
5
5
  "main": "xy-map.umd.min.js",
6
6
  "scripts": {
package/xy-map.common.js CHANGED
@@ -44186,9 +44186,10 @@ class mapSdk {
44186
44186
  * @param {*} position
44187
44187
  * @param {*} html
44188
44188
  * @param {*} option { offset: 25 }
44189
+ * @param {*} isClear // 是否情况上次的气泡
44189
44190
  */
44190
- addPopup(position, html, option) {
44191
- this.removePopup();
44191
+ addPopup(position, html, option, isClear = true) {
44192
+ if (isClear) this.removePopup();
44192
44193
  popup = new (mapbox_gl_default()).Popup(option).setLngLat(position).setHTML(html).addTo(this.map);
44193
44194
  popup.on('close', e => {
44194
44195
  popup = null;
package/xy-map.umd.js CHANGED
@@ -44204,9 +44204,10 @@ class mapSdk {
44204
44204
  * @param {*} position
44205
44205
  * @param {*} html
44206
44206
  * @param {*} option { offset: 25 }
44207
+ * @param {*} isClear // 是否情况上次的气泡
44207
44208
  */
44208
- addPopup(position, html, option) {
44209
- this.removePopup();
44209
+ addPopup(position, html, option, isClear = true) {
44210
+ if (isClear) this.removePopup();
44210
44211
  popup = new (mapbox_gl_default()).Popup(option).setLngLat(position).setHTML(html).addTo(this.map);
44211
44212
  popup.on('close', e => {
44212
44213
  popup = null;