Skip to content

Commit

Permalink
fix: extra info highlight drawn below route
Browse files Browse the repository at this point in the history
as showActiveRouteData is set in a timeout function in
setActiveRouteIndex, the drawing of the normal route was delayed
and drawn on top of the highlighted segments.
This is fixed by creating the extra-info-highlight component
only when displayActiveRouteData is true.
  • Loading branch information
TheGreatRefrigerator committed Oct 17, 2023
1 parent faf2ec9 commit 26271df
Showing 1 changed file with 1 addition 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 @@ -144,7 +144,7 @@
</v-btn>

<!-- highlight extra info polyline -->
<extra-info-highlight v-if="extraInfo" @closed="extraInfo = null" @beforeOpen="isAltitudeModalOpen = false" :extra-info="extraInfo" :polyline-data="activeRouteData.geometry.coordinates"/>
<extra-info-highlight v-if="displayActiveRouteData && extraInfo" @closed="extraInfo = null" @beforeOpen="isAltitudeModalOpen = false" :extra-info="extraInfo" :polyline-data="activeRouteData.geometry.coordinates"/>

<l-height-graph v-if="isAltitudeModalOpen" @closed="closeAltitudeInfo" lg8 sm11 :data="localMapViewDataRawData" :options="lHeightGraphOptions"/>
<my-location v-if="showMyLocationControl" class="my-location-btn" :active="myLocationActive" @updateLocation="updateMyLocation"></my-location>
Expand Down

0 comments on commit 26271df

Please sign in to comment.