-
Notifications
You must be signed in to change notification settings - Fork 819
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
[WIP] Render natural=water (lakes, lagoons) differently when tagged salt=yes. #3901
Conversation
For me it's too far from the water color. Maybe some pattern on it would work better. However it's interesting if there's a way to make uniform rendering for all the salty waters. |
In my opinion white dots would fit well
|
I agree, but for instance the Laguna de la Mata besides just north east seems to also be salty (just not tagged so right now, I added a note), which already has a pattern for the marsh. I don't know if they will play well together. |
To be fair, given that this lagoon has paths on it and wetlands in the coast, I guess it also has wetlands inside. |
This kinda fixes #545 because salt_ponds are sometimes also tagged as salt=yes. |
I guess it might be simplest to just not render the salt tag if there is the wetland tag I'd say inthe case you just pointed out the wetland tag is more important |
And then we have this render from the wiki page: |
oh I didn't know that part of the tagging |
Salt marshes: https://www.openstreetmap.org/relation/9646555#map=15/36.4278/-6.2188 Maybe then yes, the white dots. |
I agree with adding a lighter pattern of dots for lakes with Alternatively, you can try the patterns from the alt-colors style: But salt lakes should still be a shade of blue like other water areas. (BTW, I was thinking of something like this for oceans: lighter blue for oceans vs lakes (and darker blue for rivers on the right. But this does not have to be changed in this PR) |
Thanks for the new test rendering. Or perhaps test https://github.com/imagico/osm-carto-alternative-colors/blob/alternative-colors/symbols/patterns/water_salt.png instead? Ideally there should also be a rendering for water areas with |
0.6 looks like the best for me, 0.4 is hard to be noticed on my screens. What about intermittent waters? |
I can't do anything with intermittent because both use polygon pattern, unless I move the salt pattern to |
I guess making dots on the big areas like ocean is not nice, but we might start with average color from salty lakes (like "90% of blue + 10% of white" or whatever the average will be) and apply it as a new color. This way both would look as similar as possible. |
So lighter blue for all salt waters, oceans, seas, lakes, lagoons and salt marshes? It's something I could implement here too. |
So lighter blue for all salt waters
It's certainly not required for this PR. Normally a major change like this requires a lot of discussion.
But since @imagico (one of the other maintainers of this style) and I have already tested this option, I believe it would be possible to try using the colors here:
https://github.com/imagico/osm-carto-alternative-colors/blob/alternative-colors/style.mss
```
@water-color: #a2d1e0; // Lch(81,17,227)
@ocean-color: #b5d7e3; // Lch(84,13,227)
```
Then `ocean-color` could also be used for salt lakes. This will be helpful at low zoom levels, since the salt pattern doesn't work for very small features, but the lighter blue will still be visible.
However, if there isn't consensus for the change to the ocean color, we could certainly just add the pattern to start.
|
You can also make a new .png file for salt + intermittent features, combining the blue horizontal stripes with the white dot pattern. |
Given that the three color schema is so contentious, I will try @jeisenbe 's last suggestion. |
Once the new pattern is ready for intermittent + salt water, you can remove the "[WIP]" from the title, if it is ready for review. |
@StyXman do you have time to update the PR as planned, to include a salt water pattern for intermittent water areas? |
Hi @jeisenbe. I know I have 3 PRs open, they're in the top of my TODO list, but life has consumed a little more of my free time, so if anybody wants to take over I have no issue with that. It's a shame that we don't work with feature branches à la nvie, which would make taking over more easily. |
Also, in the particular case of this PR, the discussion branched a little bit, even to other tickets, so I wanted for the dust to settle down a bit. It's sometimes exhausting to propose a change and many improvements and changes pop up. I'm not sure how we should handle those, maybe again the nvie branching model would help by allowing whoever wants to suggest a change just grab the code and try it themselves. |
There is no rush for this, feel free to work on it whenever you have the time. Thank you for the link about the Nvie model. It appears that our development model is similar, because we also have feature branches: in this case StyXman:3893. As mentioned at the link "Feature branches typically exist in developer repos only, not in origin." If anyone wants to copy the code in the
then
then you can check out the branch:
|
I'm sorry about that. Since this style is complicated and many features are related it can be hard to make a single change without affecting something else. In this PR it looks like we already have consensus on using some sort of pattern of lighter dots to show salt water, so it should be possible to get this PR accepted. |
@StyXman do you have any time to update this PR now? |
@jeisenbe not really, sorry. If someone else wants to pick it up... |
Closing as stale |
I tried this, and it doesn't work. The salt dots are not visible with the strong horizontal lines. This is a good reason to reconsider the current intermittent water pattern. |
Example before: With dots added for salt=yes + intermittent=yes: With new dots pattern for salt + intermittent: It would be best to change the horizontal stripes so they are not soo different. |
Fixes #3893
Changes proposed in this pull request:
Render salt water areas in old pink color. This does not include salt ponds (might come soon), and does not include seas/oceans.
Test rendering with links to the example places:
https://www.openstreetmap.org/#map=13/37.9948/-0.7054
Before
After
I just noticed that this pink is close to mud and industrial zone, so most probably will need some changes, bu the basics are in.
Also nevermind that my render does not show sea/ocean, I have a bug with kosmtik.