feat: Duplikate im Stationen-Dropdown entfernt (Area_Name wird nur einmal angezeigt)
- Dropdown-Liste in MapLayersControlPanel.js angepasst - Mehrfach vorkommende Area_Name-Einträge werden nun gefiltert - Anzeige beschränkt sich auf eindeutige Namen, z. B. "Rastede" nur einmal - Grundlage: Map-basierte Filterung im JSX-Rendering
This commit is contained in:
@@ -207,8 +207,14 @@ function MapLayersControlPanel() {
|
|||||||
style={{ minWidth: "150px", maxWidth: "200px" }}
|
style={{ minWidth: "150px", maxWidth: "200px" }}
|
||||||
>
|
>
|
||||||
<option value="Station wählen">Station wählen</option>
|
<option value="Station wählen">Station wählen</option>
|
||||||
{(GisStationsStaticDistrict.Points || []).map((item, index) => (
|
{[
|
||||||
<option key={index} value={item.IdLD}>
|
...new Map(
|
||||||
|
(GisStationsStaticDistrict.Points || [])
|
||||||
|
.filter(p => !!p.Area_Name)
|
||||||
|
.map(p => [p.Area_Name, p])
|
||||||
|
).values(),
|
||||||
|
].map((item, index) => (
|
||||||
|
<option key={item.Area_Name} value={item.IdLD}>
|
||||||
{item.Area_Name}
|
{item.Area_Name}
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
// /config/appVersion
|
// /config/appVersion
|
||||||
export const APP_VERSION = "1.1.250";
|
export const APP_VERSION = "1.1.251";
|
||||||
|
|||||||
Reference in New Issue
Block a user