@abi-software/flatmapvuer 1.8.3-beta.2 → 1.8.3-beta.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/dist/flatmapvuer.js +68192 -65226
- package/dist/flatmapvuer.umd.cjs +1300 -651
- package/dist/style.css +1 -1
- package/package.json +5 -1
- package/src/components/FlatmapVuer.vue +7 -7
- package/src/services/flatmapQueries.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/flatmapvuer",
|
|
3
|
-
"version": "1.8.3-beta.
|
|
3
|
+
"version": "1.8.3-beta.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/*",
|
|
@@ -74,6 +74,10 @@
|
|
|
74
74
|
"vitepress": "^1.0.0-rc.44",
|
|
75
75
|
"vue-docgen-api": "^4.79.2"
|
|
76
76
|
},
|
|
77
|
+
"optionalDependencies": {
|
|
78
|
+
"@rollup/rollup-linux-x64-gnu": "4.23.0",
|
|
79
|
+
"@esbuild/linux-x64": "0.25.3"
|
|
80
|
+
},
|
|
77
81
|
"eslintConfig": {
|
|
78
82
|
"root": true,
|
|
79
83
|
"env": {
|
|
@@ -449,7 +449,7 @@ Please use `const` to assign meaningful names to them...
|
|
|
449
449
|
{{ modeDescription }}
|
|
450
450
|
</el-row>
|
|
451
451
|
<el-row v-if="viewingMode === 'Annotation' && offlineAnnotationEnabled" class="viewing-mode-description">
|
|
452
|
-
(
|
|
452
|
+
(Anonymous annotate)
|
|
453
453
|
</el-row>
|
|
454
454
|
</el-row>
|
|
455
455
|
<template v-if="viewingMode === 'Annotation' && authorisedUser">
|
|
@@ -939,14 +939,14 @@ export default {
|
|
|
939
939
|
commitAnnotationEvent: function (annotation) {
|
|
940
940
|
if (this.mapImp) {
|
|
941
941
|
if (this.offlineAnnotationEnabled) {
|
|
942
|
-
this.offlineAnnotations = JSON.parse(sessionStorage.getItem('
|
|
942
|
+
this.offlineAnnotations = JSON.parse(sessionStorage.getItem('anonymous-annotation')) || []
|
|
943
943
|
this.offlineAnnotations.push(annotation)
|
|
944
944
|
if (this.annotationEntry.type === 'deleted') {
|
|
945
945
|
this.offlineAnnotations = this.offlineAnnotations.filter((offline) => {
|
|
946
946
|
return offline.resource !== this.serverURL || offline.item.id !== annotation.item.id
|
|
947
947
|
})
|
|
948
948
|
}
|
|
949
|
-
sessionStorage.setItem('
|
|
949
|
+
sessionStorage.setItem('anonymous-annotation', JSON.stringify(this.offlineAnnotations))
|
|
950
950
|
}
|
|
951
951
|
if (['created', 'updated', 'deleted'].includes(this.annotationEntry.type)) {
|
|
952
952
|
this.featureAnnotationSubmitted = true
|
|
@@ -972,7 +972,7 @@ export default {
|
|
|
972
972
|
fetchAnnotatedItemIds: async function (userId = undefined, participated = undefined) {
|
|
973
973
|
let annotatedItemIds
|
|
974
974
|
if (this.offlineAnnotationEnabled) {
|
|
975
|
-
this.offlineAnnotations = JSON.parse(sessionStorage.getItem('
|
|
975
|
+
this.offlineAnnotations = JSON.parse(sessionStorage.getItem('anonymous-annotation')) || []
|
|
976
976
|
annotatedItemIds = this.offlineAnnotations.filter((offline) => {
|
|
977
977
|
return offline.resource === this.serverURL
|
|
978
978
|
}).map(offline => offline.item.id)
|
|
@@ -1004,7 +1004,7 @@ export default {
|
|
|
1004
1004
|
fetchDrawnFeatures: async function (userId, participated) {
|
|
1005
1005
|
let drawnFeatures
|
|
1006
1006
|
if (this.offlineAnnotationEnabled) {
|
|
1007
|
-
this.offlineAnnotations = JSON.parse(sessionStorage.getItem('
|
|
1007
|
+
this.offlineAnnotations = JSON.parse(sessionStorage.getItem('anonymous-annotation')) || []
|
|
1008
1008
|
drawnFeatures = this.offlineAnnotations.filter((offline) => {
|
|
1009
1009
|
return offline.feature && offline.resource === this.serverURL
|
|
1010
1010
|
}).map(offline => offline.feature)
|
|
@@ -2409,7 +2409,7 @@ export default {
|
|
|
2409
2409
|
state['outlinesRadio'] = this.outlinesRadio
|
|
2410
2410
|
state['background'] = this.currentBackground
|
|
2411
2411
|
if (this.offlineAnnotationEnabled) {
|
|
2412
|
-
state['offlineAnnotations'] = sessionStorage.getItem('
|
|
2412
|
+
state['offlineAnnotations'] = sessionStorage.getItem('anonymous-annotation')
|
|
2413
2413
|
}
|
|
2414
2414
|
this.getVisibilityState(state)
|
|
2415
2415
|
return state
|
|
@@ -2446,7 +2446,7 @@ export default {
|
|
|
2446
2446
|
if (state) {
|
|
2447
2447
|
if (state.viewport) this.mapImp.setState(state.viewport)
|
|
2448
2448
|
if (state.offlineAnnotations) {
|
|
2449
|
-
sessionStorage.setItem('
|
|
2449
|
+
sessionStorage.setItem('anonymous-annotation', state.offlineAnnotations)
|
|
2450
2450
|
}
|
|
2451
2451
|
if (state.viewingMode) this.changeViewingMode(state.viewingMode)
|
|
2452
2452
|
//The following three are boolean
|