Opened 10 years ago

Closed 5 years ago

#2521 closed enhancement (fixed)

[admin] Remove label along the way for boundary relations

Reported by: Eugene Alvin Villar Owned by: mapnik-team@…
Priority: trivial Milestone:
Component: mapnik Version:
Keywords: Cc:

Description

The Mapnik style adds a label along type=boundary relations as if it were a road. This should be dropped in favor of the already existing style of putting a label inside the polygon defined by the boundary.

Change History (10)

comment:1 Changed 10 years ago by Ldp

Well, yeah, that is what is intended, else you'd have a large area with a single label lost somewhere in the middle, with no clue that it relates to the boundary. Which disappears from view the moment you start zooming in on the boundary line itself.

By the way, there's already a label at the centre, but that generic label rendering for every polygon in the db will not stay indefinitely.

The quickest way at the moment to not show the names on the boundary itself is to convert your type=boundary relation to the generic type=multipolygon. But that's only temporary, as type=multipolygon;boundary=administrative relations *should* be labeled on the boundary. That's a fix for another day, though.

comment:2 Changed 10 years ago by Eugene Alvin Villar

I disagree.

The current style is quite confusing. For instance, a street can be the boundary and someone looking at the street might confuse the boundary name for the name of the street. In addition, a boundary is often the border between two entities. It would be better if the label is something like "A-B border" instead of just "A" and just "B" in separate locations along the border.

An alternative rendering would be to place the label just inside the boundary line, not *along* the line.

comment:3 Changed 10 years ago by Ldp

The current labels look the same as road labels, because they're actually a generic label that's rendered for all kinds of not-specifically handled objects. If the labels would have a different style, it would alleviate much of the confusion.

Having them offset from the boundary is one of the options I had in mind, as well.

But I disagree entirely that boundary ways should be unlabeled, with only a single label at the center of the polygon.

comment:4 Changed 10 years ago by Mikado

I agree with Ldp that label should be rendered along the boundary with a small offset into the polygon inner side. It would be also a good idea to make it the same color with boundary lines to clarify what it relates to.

By the way, is there any progress with one line per boundary way ticket?

comment:5 Changed 10 years ago by Ldp

Commenting on your #2094 remark in that ticket.

comment:6 Changed 10 years ago by Eugene Alvin Villar

I guess adding an offset (to just inside the polygon) + font style change is better than completely removing the label.

Plus points if the labels for the two entities can be put across each other just like what is seen from other maps.

comment:7 Changed 8 years ago by Ldp

Offsets cannot be consistently done. Texts may wind up on either side of the boundary, which is definately not something you'd want in this case. Waiting for a fix for that in mapnik2 before adding offset labels to boundary lines.

comment:8 Changed 5 years ago by math1985

Can you give an example of a place on the map where this issue plays?

comment:9 Changed 5 years ago by math1985

Summary: Remove label along the way for boundary relations[admin] Remove label along the way for boundary relations

comment:10 Changed 5 years ago by Eugene Alvin Villar

Resolution: fixed
Status: newclosed

Given the change in the default CartoCSS style sheet where boundary labels are now rendered with an offset from the boundary line (and also now colored as purple), I am setting this ticket to "resolved".

Note: See TracTickets for help on using tickets.