diff --git a/src/modules/map/components/CompareSlider.vue b/src/modules/map/components/CompareSlider.vue index 5d0f143e4..dd0ce16d8 100644 --- a/src/modules/map/components/CompareSlider.vue +++ b/src/modules/map/components/CompareSlider.vue @@ -14,6 +14,7 @@ const olMap = inject('olMap') const preRenderKey = ref(null) const postRenderKey = ref(null) const compareSliderOffset = ref(0) +const showLayerName = ref(false) const compareRatio = ref(-0.5) const store = useStore() @@ -138,22 +139,28 @@ function releaseSlider() { :style="compareSliderPosition" @touchstart.passive="grabSlider" @mousedown.passive="grabSlider" + @mouseenter="showLayerName = true" + @mouseleave="showLayerName = false" >
- +
+ + {{ visibleLayerOnTop.name }} +