Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render other types of signals #141

Open
wolfy1339 opened this issue Nov 4, 2024 · 2 comments
Open

Render other types of signals #141

wolfy1339 opened this issue Nov 4, 2024 · 2 comments

Comments

@wolfy1339
Copy link

It would be nice if the map could show all signals, even if the signal type is unknown

An example would be node/11902161621
I would expect a simple generic signal head to render if there isn't a schema style defined.

Using the generic tagging scheme as defined in https://wiki.openstreetmap.org/wiki/Tag:railway=signal?uselang=en

@hiddewie
Copy link
Owner

Good idea!

hiddewie added a commit that referenced this issue Dec 29, 2024
Part of #187

Part of #141

---

unsolved problems:
- ~UI should know which types of signals exist~
- ~hover for icons does not work with `text-field` with `format`
structure~
- ~if `text-field` is not used, stacking of signals somehow has to be
done manually (take width/height into account)~
- ~with `text-field`, either all text overlaps (because icons can
overlap), or labels have to be put into separate layer (text labels are
optional)~
- ~define ordering of importance of signals~

~Current state: main and distant signals combined~

---

Changes:
- Merge the all railway signal features into a single file
- Update the `signals_with_azimuth` table to contain a column per type
of feature
- The signal views get the responsibility of filtering signals and
ordering them in relative priority
- Show deactivated signals for speed and electrification layers


![image](https://github.com/user-attachments/assets/11f5a433-f6c1-4e64-b90f-33f78544d322)



At most 5 signals on one pole can be combined.



(Oberhausen, Germany,
http://localhost:8000/#view=16.77/51.474918/6.851609&style=signals)

![image](https://github.com/user-attachments/assets/77b187f2-794a-4015-a2ef-537527efce31)
@hiddewie
Copy link
Owner

#189 has been merged, which will make solving this much easier: a tagged but unrecognised signal can now get a default icon showing on the map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants