@abi-software/flatmapvuer 1.4.1 → 1.4.3
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/README.md +4 -3
- package/dist/flatmapvuer.js +20963 -20907
- package/dist/flatmapvuer.umd.cjs +101 -100
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/FlatmapVuer.vue +47 -23
- package/src/services/flatmapQueries.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/flatmapvuer",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/*",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"./src/*": "./src/*"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@abi-software/flatmap-viewer": "3.1.
|
|
46
|
+
"@abi-software/flatmap-viewer": "3.1.7",
|
|
47
47
|
"@abi-software/map-utilities": "1.1.0",
|
|
48
48
|
"@abi-software/sparc-annotation": "0.3.1",
|
|
49
49
|
"@abi-software/svg-sprite": "1.0.0",
|
|
@@ -176,13 +176,17 @@ Please use `const` to assign meaningful names to them...
|
|
|
176
176
|
ref="zoomInPopover"
|
|
177
177
|
>
|
|
178
178
|
<template #reference>
|
|
179
|
-
<
|
|
180
|
-
|
|
181
|
-
class="icon-button zoomIn"
|
|
179
|
+
<div
|
|
180
|
+
class="icon-button-container"
|
|
182
181
|
@click="zoomIn()"
|
|
183
182
|
@mouseover="showTooltip(1)"
|
|
184
183
|
@mouseout="hideTooltip(1)"
|
|
185
|
-
|
|
184
|
+
>
|
|
185
|
+
<map-svg-icon
|
|
186
|
+
class="icon-button zoomIn"
|
|
187
|
+
icon="zoomIn"
|
|
188
|
+
/>
|
|
189
|
+
</div>
|
|
186
190
|
</template>
|
|
187
191
|
</el-popover>
|
|
188
192
|
<el-popover
|
|
@@ -196,13 +200,17 @@ Please use `const` to assign meaningful names to them...
|
|
|
196
200
|
ref="zoomOutPopover"
|
|
197
201
|
>
|
|
198
202
|
<template #reference>
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
class="icon-button zoomOut"
|
|
203
|
+
<div
|
|
204
|
+
class="icon-button-container"
|
|
202
205
|
@click="zoomOut()"
|
|
203
206
|
@mouseover="showTooltip(2)"
|
|
204
207
|
@mouseout="hideTooltip(2)"
|
|
205
|
-
|
|
208
|
+
>
|
|
209
|
+
<map-svg-icon
|
|
210
|
+
class="icon-button zoomOut"
|
|
211
|
+
icon="zoomOut"
|
|
212
|
+
/>
|
|
213
|
+
</div>
|
|
206
214
|
</template>
|
|
207
215
|
</el-popover>
|
|
208
216
|
<el-popover
|
|
@@ -221,13 +229,17 @@ Please use `const` to assign meaningful names to them...
|
|
|
221
229
|
window
|
|
222
230
|
</div>
|
|
223
231
|
<template #reference>
|
|
224
|
-
<
|
|
225
|
-
|
|
226
|
-
class="icon-button fitWindow"
|
|
232
|
+
<div
|
|
233
|
+
class="icon-button-container"
|
|
227
234
|
@click="resetView()"
|
|
228
235
|
@mouseover="showTooltip(3)"
|
|
229
236
|
@mouseout="hideTooltip(3)"
|
|
230
|
-
|
|
237
|
+
>
|
|
238
|
+
<map-svg-icon
|
|
239
|
+
class="icon-button fitWindow"
|
|
240
|
+
icon="fitWindow"
|
|
241
|
+
/>
|
|
242
|
+
</div>
|
|
231
243
|
</template>
|
|
232
244
|
</el-popover>
|
|
233
245
|
</div>
|
|
@@ -285,7 +297,7 @@ Please use `const` to assign meaningful names to them...
|
|
|
285
297
|
width="200"
|
|
286
298
|
trigger="manual"
|
|
287
299
|
popper-class="flatmap-popper flatmap-marker-popper"
|
|
288
|
-
:visible="hoverVisibilities[
|
|
300
|
+
:visible="hoverVisibilities[0].value"
|
|
289
301
|
ref="markerPopover"
|
|
290
302
|
>
|
|
291
303
|
<template #reference>
|
|
@@ -565,14 +577,18 @@ Please use `const` to assign meaningful names to them...
|
|
|
565
577
|
ref="openMapPopover"
|
|
566
578
|
>
|
|
567
579
|
<template #reference>
|
|
568
|
-
<
|
|
580
|
+
<div
|
|
569
581
|
v-if="enableOpenMapUI && openMapOptions.length > 0"
|
|
570
582
|
ref="openMapRef"
|
|
571
|
-
|
|
572
|
-
class="icon-button open-map-button"
|
|
583
|
+
class="icon-button-container"
|
|
573
584
|
@mouseover="showTooltip(4)"
|
|
574
585
|
@mouseout="hideTooltip(4)"
|
|
575
|
-
|
|
586
|
+
>
|
|
587
|
+
<map-svg-icon
|
|
588
|
+
icon="openMap"
|
|
589
|
+
class="icon-button open-map-button"
|
|
590
|
+
/>
|
|
591
|
+
</div>
|
|
576
592
|
</template>
|
|
577
593
|
</el-popover>
|
|
578
594
|
</el-row>
|
|
@@ -587,13 +603,17 @@ Please use `const` to assign meaningful names to them...
|
|
|
587
603
|
ref="settingsPopover"
|
|
588
604
|
>
|
|
589
605
|
<template #reference>
|
|
590
|
-
<
|
|
606
|
+
<div
|
|
591
607
|
ref="backgroundIconRef"
|
|
592
|
-
|
|
593
|
-
class="icon-button"
|
|
608
|
+
class="icon-button-container"
|
|
594
609
|
@mouseover="showTooltip(5)"
|
|
595
610
|
@mouseout="hideTooltip(5)"
|
|
596
|
-
|
|
611
|
+
>
|
|
612
|
+
<map-svg-icon
|
|
613
|
+
icon="changeBckgd"
|
|
614
|
+
class="icon-button"
|
|
615
|
+
/>
|
|
616
|
+
</div>
|
|
597
617
|
</template>
|
|
598
618
|
</el-popover>
|
|
599
619
|
</el-row>
|
|
@@ -1494,7 +1514,7 @@ export default {
|
|
|
1494
1514
|
this.mapImp.zoomToGeoJSONFeatures(gid, {noZoomIn: true})
|
|
1495
1515
|
} else {
|
|
1496
1516
|
// reset visibility of paths
|
|
1497
|
-
this.mapImp.
|
|
1517
|
+
this.mapImp.unselectGeoJSONFeatures()
|
|
1498
1518
|
payload.selections.forEach((item) => {
|
|
1499
1519
|
let show = payload.checked.includes(item.taxon)
|
|
1500
1520
|
this.mapImp.enableConnectivityByTaxonIds(item.taxon, show)
|
|
@@ -2334,7 +2354,7 @@ export default {
|
|
|
2334
2354
|
this.addResizeButtonToMinimap()
|
|
2335
2355
|
this.loading = false
|
|
2336
2356
|
this.computePathControlsMaximumHeight()
|
|
2337
|
-
this.drawerOpen = !this.isCentreLine
|
|
2357
|
+
this.drawerOpen = !this.isCentreLine
|
|
2338
2358
|
this.mapResize()
|
|
2339
2359
|
this.handleMapClick();
|
|
2340
2360
|
/**
|
|
@@ -3251,6 +3271,10 @@ export default {
|
|
|
3251
3271
|
}
|
|
3252
3272
|
}
|
|
3253
3273
|
|
|
3274
|
+
.icon-button-container {
|
|
3275
|
+
display: inline-block;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3254
3278
|
.icon-button {
|
|
3255
3279
|
height: 24px !important;
|
|
3256
3280
|
width: 24px !important;
|
|
@@ -256,7 +256,11 @@ let FlatmapQueries = function () {
|
|
|
256
256
|
}
|
|
257
257
|
})
|
|
258
258
|
.catch((error) => {
|
|
259
|
-
|
|
259
|
+
if (error.name === 'AbortError') {
|
|
260
|
+
// This error is from AbortController's abort method.
|
|
261
|
+
} else {
|
|
262
|
+
console.error('Error:', error)
|
|
263
|
+
}
|
|
260
264
|
resolve(false)
|
|
261
265
|
})
|
|
262
266
|
})
|