...
Settings should be saved in the database using the /userdata endpoint. (ODLUX DB API Extension for Userdata)
NetworkMap Themes
Themes allow a basic restyling of the map. They can be added via the "userdata-defaults.json" of the ODLUX DB API Extension for Userdata.
For now, only four properties can be styled:
- sites
- selectedSites
- fiberLink
- microwaveLink
For now, only the color can be set. The color should be set in hex-code. All 4 properties must be set in order for the theme to be readable. Additionally, every theme needs a "key" property, which acts as a name to be displayed in the dropdown element. Only one theme can be applied at any given time.
The first entry of the themes is used as default, as long as the user has not selected a theme via the settings page.
In absence of defined themes, two default themes "light" and "dark" are used.
Example of a theme
Code Block |
---|
"networkMapThemes":{
"themes": [
{"key": "light", "site": "#11b4da", "selectedSite": "#116bda", "fiberLink": "#1154d9", "microwaveLink": "#039903"}
]
} |
UI Changes
- details view should be adjusted whether or not a fiber or microwave link is shown
- fiber-link: azimuth not shown
- Connection error message should be changed to a 'service unavailable' message
...