Skip to content

Commit 5313b2f

Browse files
committed
Bugfix: auto-detect which view is active on page load.
1 parent d0328ba commit 5313b2f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

site/src/components/MapContainer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ onMounted(async () => {
128128
const osmLyr = getOsmLayer()
129129
const overtureLyr = getOvertureLayer()
130130
const conflatedLyr = getConflatedLayer()
131-
osmLyr.setVisible(true)
132-
overtureLyr.setVisible(false)
133-
conflatedLyr.setVisible(false)
131+
osmLyr.setVisible(props.activeSource === 'osm')
132+
overtureLyr.setVisible(props.activeSource === 'overture')
133+
conflatedLyr.setVisible(props.activeSource === 'conflated')
134134
135135
const olMap = new Map({
136136
target: mapEl.value,

0 commit comments

Comments
 (0)