@abi-software/flatmapvuer 1.13.1 → 1.13.2-demo.0
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": "@abi-software/flatmapvuer",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2-demo.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/*",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"./src/*": "./src/*"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@abi-software/map-utilities": "1.8.
|
|
47
|
+
"@abi-software/map-utilities": "^1.8.2-demo.0",
|
|
48
48
|
"@abi-software/sparc-annotation": "0.3.2",
|
|
49
49
|
"@abi-software/svg-sprite": "1.0.3",
|
|
50
50
|
"@element-plus/icons-vue": "^2.3.1",
|
|
@@ -1283,6 +1283,11 @@ export default {
|
|
|
1283
1283
|
if (this.$refs.pathwaysSelection) {
|
|
1284
1284
|
this.$refs.pathwaysSelection.reset()
|
|
1285
1285
|
}
|
|
1286
|
+
|
|
1287
|
+
this.trackEvent({
|
|
1288
|
+
'event_name': `portal_maps_zoom`,
|
|
1289
|
+
'category': 'reset',
|
|
1290
|
+
});
|
|
1286
1291
|
}
|
|
1287
1292
|
},
|
|
1288
1293
|
/**
|
|
@@ -1293,6 +1298,11 @@ export default {
|
|
|
1293
1298
|
zoomIn: function () {
|
|
1294
1299
|
if (this.mapImp) {
|
|
1295
1300
|
this.mapImp.zoomIn()
|
|
1301
|
+
|
|
1302
|
+
this.trackEvent({
|
|
1303
|
+
'event_name': `portal_maps_zoom`,
|
|
1304
|
+
'category': 'zoom_in',
|
|
1305
|
+
});
|
|
1296
1306
|
}
|
|
1297
1307
|
},
|
|
1298
1308
|
/**
|
|
@@ -1303,6 +1313,11 @@ export default {
|
|
|
1303
1313
|
zoomOut: function () {
|
|
1304
1314
|
if (this.mapImp) {
|
|
1305
1315
|
this.mapImp.zoomOut()
|
|
1316
|
+
|
|
1317
|
+
this.trackEvent({
|
|
1318
|
+
'event_name': `portal_maps_zoom`,
|
|
1319
|
+
'category': 'zoom_out',
|
|
1320
|
+
});
|
|
1306
1321
|
}
|
|
1307
1322
|
},
|
|
1308
1323
|
onSelectionsDataChanged: function (data) {
|
|
@@ -2822,8 +2837,6 @@ export default {
|
|
|
2822
2837
|
}
|
|
2823
2838
|
}
|
|
2824
2839
|
|
|
2825
|
-
console.log("tooltip delay")
|
|
2826
|
-
|
|
2827
2840
|
let promise1 = this.mapManagerRef.loadMap(
|
|
2828
2841
|
identifier,
|
|
2829
2842
|
this.eventCallback(),
|
|
@@ -3155,6 +3168,19 @@ export default {
|
|
|
3155
3168
|
setConnectionType: function (type) {
|
|
3156
3169
|
this.connectionType = type;
|
|
3157
3170
|
},
|
|
3171
|
+
/**
|
|
3172
|
+
* @public
|
|
3173
|
+
* Function to track events.
|
|
3174
|
+
* @arg {Object} `data`
|
|
3175
|
+
*/
|
|
3176
|
+
trackEvent: function (data) {
|
|
3177
|
+
const taggingData = {
|
|
3178
|
+
'event': 'interaction_event',
|
|
3179
|
+
'location': 'flatmap',
|
|
3180
|
+
...data,
|
|
3181
|
+
};
|
|
3182
|
+
this.$emit('trackEvent', taggingData);
|
|
3183
|
+
},
|
|
3158
3184
|
},
|
|
3159
3185
|
props: {
|
|
3160
3186
|
/**
|
|
@@ -3503,12 +3529,12 @@ export default {
|
|
|
3503
3529
|
containsAlert: false,
|
|
3504
3530
|
alertOptions: [
|
|
3505
3531
|
{
|
|
3506
|
-
label: 'Display Path With
|
|
3532
|
+
label: 'Display Path With Notes',
|
|
3507
3533
|
key: 'alert',
|
|
3508
3534
|
enabled: true,
|
|
3509
3535
|
},
|
|
3510
3536
|
{
|
|
3511
|
-
label: 'Display Path Without
|
|
3537
|
+
label: 'Display Path Without Notes',
|
|
3512
3538
|
key: 'withoutAlert',
|
|
3513
3539
|
enabled: true,
|
|
3514
3540
|
},
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
:showLocalSettings="showLocalSettings"
|
|
94
94
|
:showOpenMapButton="showOpenMapButton"
|
|
95
95
|
:showPathwayFilter="showPathwayFilter"
|
|
96
|
+
@trackEvent="trackEvent"
|
|
96
97
|
:externalLegends="externalLegends"
|
|
97
98
|
/>
|
|
98
99
|
|
|
@@ -643,6 +644,19 @@ export default {
|
|
|
643
644
|
let map = this.getCurrentFlatmap();
|
|
644
645
|
map.setConnectionType(type);
|
|
645
646
|
},
|
|
647
|
+
/**
|
|
648
|
+
* @public
|
|
649
|
+
* Function to track events.
|
|
650
|
+
* @arg {Object} `data`
|
|
651
|
+
*/
|
|
652
|
+
trackEvent: function (data) {
|
|
653
|
+
const taggingData = {
|
|
654
|
+
'event': 'interaction_event',
|
|
655
|
+
'location': 'flatmap',
|
|
656
|
+
...data,
|
|
657
|
+
};
|
|
658
|
+
this.$emit('trackEvent', taggingData);
|
|
659
|
+
},
|
|
646
660
|
},
|
|
647
661
|
props: {
|
|
648
662
|
/**
|