feat: implement device filtering based on GisSystemStatic Allow property

- Add Allow=1 filter in createAndSetDevices.js to hide devices with Allow=0
- Update mapLayersSlice.js setInitialLayers to respect Allow values for visibility
- Modify MapLayersControlPanel.js localStorage initialization to set visibility based on Allow property
- Only systems with Allow=1 are now visible by default, Allow=0 systems are hidden
- Ensures consistent filtering across device markers and layer visibility controls

This change addresses the requirement to hide stations/devices when their corresponding
IdSystem in GisSystemStatic.json has Allow=0, improving the map display by showing
only authorized/allowed systems to users.
This commit is contained in:
ISA
2025-07-29 08:11:31 +02:00
parent 37aec649ee
commit 4755cefdd7
7 changed files with 26 additions and 10 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "nodemap",
"version": "1.1.304",
"version": "1.1.305",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "nodemap",
"version": "1.1.304",
"version": "1.1.305",
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",