Can't even keep track anymore

This commit is contained in:
Andras Schmelczer 2026-02-13 09:16:28 +00:00
parent dccc1e439d
commit 3a3f899ea2
50 changed files with 1144 additions and 560 deletions

View file

@ -31,7 +31,7 @@ export function parseUrlState(): {
viewState?: ViewState;
filters?: FeatureFilters;
poiCategories?: Set<string>;
tab?: 'pois' | 'properties' | 'area';
tab?: 'properties' | 'area';
travelTime?: TravelTimeInitial;
} {
const params = new URLSearchParams(window.location.search);
@ -61,7 +61,7 @@ export function parseUrlState(): {
// Tab: full name
const tab = params.get('tab');
if (tab === 'properties' || tab === 'pois' || tab === 'area') {
if (tab === 'properties' || tab === 'area') {
result.tab = tab;
}
@ -94,7 +94,7 @@ export function stateToParams(
filters: FeatureFilters,
features: FeatureMeta[],
selectedPOICategories: Set<string>,
rightPaneTab: 'pois' | 'properties' | 'area',
rightPaneTab: 'properties' | 'area',
travelTime?: { enabled: boolean; destination: [number, number] | null; destinationLabel: string; mode: string; timeRange: [number, number] | null }
): URLSearchParams {
const params = new URLSearchParams();
@ -121,8 +121,6 @@ export function stateToParams(
if (rightPaneTab === 'properties') {
params.set('tab', 'properties');
} else if (rightPaneTab === 'area') {
params.set('tab', 'area');
}
if (travelTime?.enabled && travelTime.destination) {