Closed EMREOYUN closed 2 weeks ago
Hi, It was intentional design on my part to use the current color scheme and not just a grayscale map. It's a good idea, but I would like to keep the current design too, so maybe we can implement it as a setting? So users can chose which style they prefer.
I managed to add something like this because I couldn't manage how to reload CSS classes dynamically:
If that is fine, I can commit these changes.
I think should be possible without the reload, just create an other class and toggle them based on the setting. I will look into it.
I forgot to add note. This is whay I could done. Can you check the code from here?
Also you don't need to commit each file separately, you can include them in one commit ;)
Also you don't need to commit each file separately, you can include them in one commit ;)
Since the other branch of mine has pending commits(personal changes), I do change files in Github Web Editor which does edit one file at the time.
Since the other branch of mine has pending commits(personal changes), I do change files in Github Web Editor which does edit one file at the time.
You can use GitHub's web based VSCode (press .
on the keyboard while the branch is open) then, there you can make and commit your changes.
I wrote a custom TileLayer to refresh layers dynamically. Simple but effective.
Inspired by the simrail.app map. However, the major change is speed and infrastructure layers keep their colors. This code only works on dark mode.
Before:![opera_1Mo1WDksVi](https://github.com/GNimrodG/simrail-map-optimized/assets/35144629/076d2dbc-9259-423f-bc90-4086b65053e4)
How it looks on simrail.app:![image](https://github.com/GNimrodG/simrail-map-optimized/assets/35144629/eb032947-f336-445c-8888-e7536f3f5765)
After:![opera_FC4aKhu4TS](https://github.com/GNimrodG/simrail-map-optimized/assets/35144629/799fd93f-8c96-46c6-8833-0d2bd22a99f6)