Skip to content

Commit

Permalink
fix: hide place info box when no place is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Aug 4, 2021
1 parent 6913fe7 commit 18096c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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 :style="{display:showControls ? '' : 'none'}" :current-zoom="zoom" @closed="clickLatlng = null" @directionsToPoint="directionsToPoint"></map-left-click>
<map-left-click :show="showControls" :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 @@ -24,6 +24,15 @@ export default {
currentZoom: {
required: true,
type: Number
},
show: {
type: Boolean,
default: true
}
},
watch: {
show: function (newVal) {
this.showLeftClickPopup = newVal
}
},
computed: {
Expand Down

0 comments on commit 18096c2

Please sign in to comment.