Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#11464 closed enhancement (fixed)

advanced coastline mappaint style

Reported by: Klumbumbus Owned by: team
Priority: normal Milestone: 15.08
Component: Internal mappaint style Version:
Keywords: Cc:

Description (last modified by Klumbumbus)

I was thinking about displaying the sides of a coastline in the mapview because errors in the coastline can cause big rendering issues. (We also have such renderings for cliff, embankment, kerb, retaining_wall.) Possible solutions could be:

  • blue right-casing and brown left casing
  • image pattern with waves at the right side

However we already have validator warnings for coastlines and I do not know if an advanced paint style would be distracting. Coastlines are also often together with boundaries and landuse borders. Since I do not have experience with coastline mapping, I'm not sure if it would be helpful or painful. Any opinions?


Code for this:

way[natural=coastline] {
    width: 1;
    color: water#0000ff;
    right-casing-width: 2;
    right-casing-color: water#0000ff;
    right-casing-offset: -1;
    left-casing-width: 2;
    left-casing-color: brown;
    left-casing-offset: -1;

Attachments (2)

coastline.png (15.2 KB) - added by Klumbumbus 9 years ago.
coastline2.png (55.8 KB) - added by bastiK 9 years ago.

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by Klumbumbus

Attachment: coastline.png added

comment:1 Changed 9 years ago by Klumbumbus

Description: modified (diff)

comment:2 Changed 9 years ago by Klumbumbus

Description: modified (diff)

Changed 9 years ago by bastiK

Attachment: coastline2.png added

comment:3 in reply to:  description Changed 9 years ago by bastiK

It is a good idea to have a visual cue what direction the coastline should be. I fear with both a brown and a blue line, it looks as if there are 2 ways. Maybe we can imitate the Mapnik style for nature_reserve (e.g. here).

way[natural=coastline] {
    width: 2;
    color: water#0000ff;
    right-casing-color: water#0000ff;
    right-casing-width: 5;
    right-casing-opacity: 0.45; 

(Not sure if this style is intuitive though.)

comment:4 Changed 9 years ago by Klumbumbus

Milestone: 15.06

I like your style, but I would make the casing a bit more transparent. The only confusing thing is that such a stlye is usually at the inner side of the border. Here it shows the outer part. But I think since it is blue it is not a big deal. I think we should test this in next milestone.

comment:5 Changed 8 years ago by Don-vip

Milestone: 15.0615.07

skip milestone 15.06

comment:6 Changed 8 years ago by Klumbumbus

Resolution: fixed
Status: newclosed

In 8504/josm:

fix #11464 - display sea side of coastline by blue casing

comment:7 Changed 8 years ago by Don-vip

Milestone: 15.0715.08

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.