Make pins explicit and selection open info
All checks were successful
Build Docker Image / build (push) Successful in 5m24s
All checks were successful
Build Docker Image / build (push) Successful in 5m24s
This commit is contained in:
@@ -94,7 +94,8 @@ export function useCatalogSearch() {
|
||||
})
|
||||
|
||||
// Filter by bounds checkbox state from URL
|
||||
const filterByBounds = computed(() => route.query.bounds !== undefined)
|
||||
// Use explicit flag so bounds don't auto-enable filtering.
|
||||
const filterByBounds = computed(() => route.query.boundsFilter === '1')
|
||||
|
||||
// Get label for a filter (from cache or fallback to ID)
|
||||
const getLabel = (type: string, id: string | undefined): string | null => {
|
||||
@@ -261,7 +262,7 @@ export function useCatalogSearch() {
|
||||
const setBoundsInUrl = (bounds: { west: number; south: number; east: number; north: number } | null) => {
|
||||
if (bounds) {
|
||||
const boundsStr = `${bounds.west.toFixed(4)},${bounds.south.toFixed(4)},${bounds.east.toFixed(4)},${bounds.north.toFixed(4)}`
|
||||
updateQuery({ bounds: boundsStr })
|
||||
updateQuery({ bounds: boundsStr, boundsFilter: '1' })
|
||||
} else {
|
||||
updateQuery({ bounds: null })
|
||||
}
|
||||
@@ -269,7 +270,12 @@ export function useCatalogSearch() {
|
||||
|
||||
// Clear bounds from URL
|
||||
const clearBoundsFromUrl = () => {
|
||||
updateQuery({ bounds: null })
|
||||
updateQuery({ bounds: null, boundsFilter: null })
|
||||
}
|
||||
|
||||
// Explicitly enable/disable bounds filter flag in URL
|
||||
const setBoundsFilterEnabled = (enabled: boolean) => {
|
||||
updateQuery({ boundsFilter: enabled ? '1' : null })
|
||||
}
|
||||
|
||||
const openInfo = (type: InfoEntityType, uuid: string) => {
|
||||
@@ -427,6 +433,7 @@ export function useCatalogSearch() {
|
||||
setQuantity,
|
||||
setBoundsInUrl,
|
||||
clearBoundsFromUrl,
|
||||
setBoundsFilterEnabled,
|
||||
openInfo,
|
||||
closeInfo,
|
||||
setInfoTab,
|
||||
|
||||
Reference in New Issue
Block a user