Map View in Fredy :D (#253)

* init map view

* switching off 3d buildings when sattelite view is on

* rename menu items

* upgrading dependencies, adding provider to popups

* adding screenshot for map view

* fixing readme

* next release version
This commit is contained in:
Christian Kellner
2026-01-12 15:00:36 +01:00
committed by GitHub
parent 7fd8be07a2
commit d43c5b3f97
168 changed files with 16264 additions and 1510 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 by Christian Kellner.
* Copyright (c) 2026 by Christian Kellner.
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 by Christian Kellner.
* Copyright (c) 2026 by Christian Kellner.
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 by Christian Kellner.
* Copyright (c) 2026 by Christian Kellner.
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
*/
@@ -205,6 +205,28 @@ export const useFredyState = create(
console.error('Error while trying to get resource for api/listings. Error:', Exception);
}
},
async getListingsForMap({ jobId, minPrice, maxPrice } = {}) {
try {
const qryString = queryString.stringify(
{
jobId,
minPrice,
maxPrice,
},
{ skipNull: true, skipEmptyString: true },
);
const response = await xhrGet(`/api/listings/map?${qryString}`);
set((state) => ({
listingsData: {
...state.listingsData,
mapListings: response.json?.listings || [],
maxPrice: response.json?.maxPrice || 0,
},
}));
} catch (Exception) {
console.error('Error while trying to get resource for api/listings/map. Error:', Exception);
}
},
},
};
@@ -216,6 +238,8 @@ export const useFredyState = create(
totalNumber: 0,
page: 1,
result: [],
mapListings: [],
maxPrice: 0,
},
features: {},
generalSettings: { settings: {} },

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 by Christian Kellner.
* Copyright (c) 2026 by Christian Kellner.
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 by Christian Kellner.
* Copyright (c) 2026 by Christian Kellner.
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 by Christian Kellner.
* Copyright (c) 2026 by Christian Kellner.
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 by Christian Kellner.
* Copyright (c) 2026 by Christian Kellner.
* Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause
*/