@abi-software/flatmapvuer 1.13.0 → 1.13.1-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.0",
|
|
3
|
+
"version": "1.13.1-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.1",
|
|
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) {
|
|
@@ -3153,6 +3168,19 @@ export default {
|
|
|
3153
3168
|
setConnectionType: function (type) {
|
|
3154
3169
|
this.connectionType = type;
|
|
3155
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
|
+
},
|
|
3156
3184
|
},
|
|
3157
3185
|
props: {
|
|
3158
3186
|
/**
|
|
@@ -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
|
/**
|