Skip to content

Commit

Permalink
fix(map-left-click): do not show place info when sidebar is open and …
Browse files Browse the repository at this point in the history
…map view is clicked
  • Loading branch information
amoncaldas committed Aug 4, 2021
1 parent 4ec0ab4 commit 318c2f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fragments/map-view/MapView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
</l-map>
<v-btn v-if="$store.getters.embed" small :title="$t('mapView.viewOnORS')" class="view-on-ors" target="_blank" :href="nonEmbedUrl" > {{$t('mapView.viewOnORS')}} <v-icon right small >open_in_new</v-icon> </v-btn>
<map-right-click v-if="!$store.getters.embed" :map-view-data="mapViewData" @closed="clickLatlng = null" @rightClickEvent="handleRightClickEvent"></map-right-click>
<map-left-click :show="showControls" :current-zoom="zoom" @closed="clickLatlng = null" @directionsToPoint="directionsToPoint"></map-left-click>
<map-left-click :show="showControls && showClickPopups" :current-zoom="zoom" @closed="clickLatlng = null" @directionsToPoint="directionsToPoint"></map-left-click>

<div v-if="$store.getters.mapSettings.accessibleModeActive">
<v-btn fab small @click="moveMapCenter('left')" :title="$t('mapView.moveMapPositionToLeft')" class="move-map-arrow left do-not-trigger-close-bottom-nav" > <v-icon large color="primary" >arrow_back</v-icon> </v-btn>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export default {
},
watch: {
show: function (newVal) {
this.showLeftClickPopup = newVal
if (newVal === false) {
this.showLeftClickPopup = false
}
}
},
computed: {
Expand Down

0 comments on commit 318c2f9

Please sign in to comment.