Skip to content

Commit

Permalink
Merge pull request #213 from ABI-Software/flatmap-resource-selected-fix
Browse files Browse the repository at this point in the history
Fix an issue when clicking on a markers on the fc map
  • Loading branch information
alan-wu authored May 24, 2024
2 parents 76af6a6 + f882deb commit c95fd17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/viewers/Flatmap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

<script>
/* eslint-disable no-alert, no-console */
import Tagging from '../../services/tagging.js';
import { FlatmapVuer } from "@abi-software/flatmapvuer";
import EventBus from "../EventBus";
import ContentMixin from "../../mixins/ContentMixin";
Expand Down Expand Up @@ -50,8 +51,8 @@ export default {
return this.$refs.flatmap.mapImp;
},
flatmaprResourceSelected: function (type, resource) {
this.$refs.flatmap.resourceSelected(
type, resource, (this.$refs.map.viewingMode === "Exploration"));
this.resourceSelected(
type, resource, (this.$refs.flatmap.viewingMode === "Exploration"));
if (resource.eventType === 'click' && resource.feature.type === 'feature') {
const eventData = {
Expand All @@ -67,7 +68,7 @@ export default {
'event': 'interaction_event',
'event_name': 'portal_maps_connectivity',
'category': paramString,
"location": type + ' ' + this.$refs.map.viewingMode
"location": type + ' ' + this.$refs.flatmap.viewingMode
});
}
},
Expand Down

0 comments on commit c95fd17

Please sign in to comment.