Skip to content

Commit

Permalink
chore(refactor): apply script setup style to MapBase and MapFeatures #…
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab authored and frodrigo committed Feb 12, 2025
1 parent e97643d commit 10d64fe
Show file tree
Hide file tree
Showing 7 changed files with 563 additions and 691 deletions.
4 changes: 2 additions & 2 deletions components/Home/Embedded.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const { isochroneCurrentFeature } = useIsochrone()
//
// Data
//
const initialBbox = ref<LngLatBounds | null>(null)
const initialBbox = ref<LngLatBounds>()
const mapFeaturesRef = ref<InstanceType<typeof MapFeatures>>()
//
Expand Down Expand Up @@ -110,7 +110,7 @@ const poiFilters = computed(() => {
.map(c => c.category?.style_class)
.filter(s => s !== undefined) as string[][])
)
|| null
|| undefined
)
})
Expand Down
4 changes: 2 additions & 2 deletions components/Home/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const { isochroneCurrentFeature } = useIsochrone()
//
const allowRegionBackZoom = ref<boolean>(false)
const isFilterActive = ref<boolean>(false)
const initialBbox = ref<LngLatBounds | null>(null)
const initialBbox = ref<LngLatBounds>()
const isMenuItemOpen = ref<boolean>(false)
const isOnSearch = ref<boolean>(false)
const showFavoritesOverlay = ref<boolean>(false)
Expand Down Expand Up @@ -212,7 +212,7 @@ const poiFilters = computed(() => {
.map(c => c.category?.style_class)
.filter(s => s !== undefined) as string[][])
)
|| null
|| undefined
)
})
Expand Down
1 change: 1 addition & 0 deletions components/MainMap/MapFeatures.story.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const defaultProps = {
},
} as ApiMenuCategory,
],
features: [],
}
const feature1: ApiPoi = {
Expand Down
Loading

0 comments on commit 10d64fe

Please sign in to comment.