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 lock_name rather than the name of the canal #157

Closed
bobkare opened this issue Sep 9, 2013 · 8 comments
Closed

Render lock_name rather than the name of the canal #157

bobkare opened this issue Sep 9, 2013 · 8 comments

Comments

@bobkare
Copy link

bobkare commented Sep 9, 2013

The current rules for rendering labels on waterways add text-placement: point when they are tagged lock=yes, but the name tag mostly contains the canal name, so lock_name should probably be rendered instead. See http://osm.org/go/euzFr5X3C for an example.

I have a trivial patch at http://bob.cakebox.net/osm/lock_name.patch although that fetches the data from hstore which I'm not sure the tile.osm instance has.

@matthijsmelissen
Copy link
Collaborator

@dieterdreist
Copy link

2013-09-09 16:41 GMT+02:00 Knut Arne Bjørndal notifications@github.com:

The current rules for rendering labels on waterways add text-placement:
point when they are tagged lock=yes, but the name tag mostly contains the
canal name, so lock_name should probably be rendered instead. See
http://osm.org/go/euzFr5X3C for an example.

IMHO lock_name or similar ones like bridge_name are not a good concept. If
it is a name it should go into the "name" key (and its variants like
localized names, alt_name etc.) on a dedicated object. Something is either
a lock or a waterway, not both (i.e. use dedicated objects for dedicated
features and put the tags on the object they belong to). In the case of a
bridge we should have a bridge object and do not tag the bridge name to the
highway that goes on the bridge.

@pnorman
Copy link
Collaborator

pnorman commented Apr 15, 2014

@systemd, you're more aware of riverboat-related tagging - any thoughts?

@matkoniecz matkoniecz added this to the 3.x - Needs upgrade to mapnik or openstreetmap-carto.style milestone Aug 28, 2014
@matkoniecz
Copy link
Contributor

rendering lock_name was also discussed in #828

@geozeisig
Copy link

We should render the lock name in some way. However, there are several possibilities and I would prefer the first.

  1. Render lock_name in black horizontal color (like man_made=bridge) . For: It is used about 4500 times.
  2. Render name. For: As dieterdreist says (see above) could we use the variants like localized names, alt_name etc. Against: As the workaround on the wiki page describes, the name is already used for the channel. lock_name would become worthless. The lock name would in many cases not fit into the lock because of the length of the expression.
  3. The name is written to the lock chamber natural=water + water=lock. For: It already works. Against: This is "Tagging for the renderer". lock_name would become worthless.

@SomeoneElseOSM
Copy link
Contributor

Just for info, https://map.atownsend.org.uk/maps/map/map.html#zoom=20&lat=52.9707228&lon=-1.293098 is an example of what this looks like (the ref is also appended in brackets)

@kocio-pl
Copy link
Collaborator

Thanks. However it looks we're undecided what we really want. 😄

@matthijsmelissen
Copy link
Collaborator

Now we have hstore, I think we can implement the PR of @bobkare. Is anybody willing to test this?

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

No branches or pull requests

8 participants