Opened 6 years ago

Closed 5 years ago

#4765 closed enhancement (fixed)

building:part name rendered on border instead of center

Reported by: slavik.vladimir@… Owned by: mapnik-team@…
Priority: minor Milestone:
Component: mapnik Version:
Keywords: building:part, name, placement Cc:

Description

It seems that building:part=yes objects with a name=* get their name on border, which doesn't exactly work. The name should be placed inside the object (building part), as on whole buildings.

Example: http://www.openstreetmap.org/?lat=49.227067&lon=16.57463&zoom=18&layers=M

Change History (4)

comment:1 Changed 6 years ago by stefan@…

I know there is no “final” indoor way to map yet, but some schemes produce very bad results as of writing (e.g. [1]). I would simply hide the buildingpart/building:part names for now. I doubt there’s a good way to render a multiple stories building properly in 2D with no level selector available.

I looked into this and found that the "roads-text-name" rule is used to render buildingpart-names. When the buildingpart-way is tagged with amenity, the name will get rendered as amenity. I’m not sure about the latter because it might be used to highlight important parts. Then again, it can also be used to highlight restrooms -- which would be confusing again.

Anyway, in order to anything about this "buildingpart"[2], "building:part", "room"[4], maybe type(?)[5] would need to be either included in the extended attributes. All documentation I read is tailored towards setting Mapnik up locally, so I’m not sure how to proceed, so this ends up on osm.org. For my testsetup I would patch osm2psql to include the additional attributes, but is that the right approach?

[1] http://openstreetmap.org/?lat=49.417913&lon=8.673363&zoom=18&layers=M

[2] http://wiki.openstreetmap.org/wiki/IndoorOSM#Modeling_the_different_building_parts

[3] (used in practice, not sure from which propsal it is)

[4] http://wiki.openstreetmap.org/wiki/Proposed_features/indoor#R.C3.A4ume

[5] http://wiki.openstreetmap.org/wiki/Termite#Indoor_Model

comment:2 Changed 5 years ago by pnorman

The old openstreetmap.xml style (Mapnik component in trac) has been replaced by openstreetmap-carto, which has an issue tracker at https://github.com/gravitystorm/openstreetmap-carto/issues.

This particular issue is dated with the more recent changes to catchall rendering, so it's not clear what remains an issue.

comment:3 Changed 5 years ago by slavik.vladimir@…

In that case this can be closed with some apropriate status (as far as my opinion goes). I'll just remember to report once more in the other tracker if I run into this again.

comment:4 Changed 5 years ago by math1985

Resolution: fixed
Status: newclosed

This issue can be closed, given that we stopped rendering names of building:part...

Note: See TracTickets for help on using tickets.