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

Tower baseline alignment #3176

Closed
georgek opened this issue Apr 14, 2018 · 19 comments
Closed

Tower baseline alignment #3176

georgek opened this issue Apr 14, 2018 · 19 comments

Comments

@georgek
Copy link

georgek commented Apr 14, 2018

There are a few icons representing tall objects now shown on the map. For example, wind turbines and communications towers. But the icons are aligned such that the centre of the icon is over the actual node position which leads to them looking misplaces, especially at lower zoom levels.

An example can be seen here with the wind turbine in the middle: https://www.openstreetmap.org/#map=16/52.5975/1.2626 It looks like it's in the water but it's not.

Can the alignment be changed so that the bottom of the icon is at the node position?

@geozeisig
Copy link

The icon is a symbol and not a small reflection of reality. This can lead to small inaccuracies in the placement.

@dieterdreist
Copy link

dieterdreist commented Apr 15, 2018 via email

@matkoniecz
Copy link
Contributor

The icons should be placed in a way that it is intuitive to understand to which spot they refer to. In case of e.g. a tower, pole, chimney or mast, this is the base.

@dieterdreist I reposted your comment as I agree with it and Github mail-to-cmment transform hides it (maybe it expects to post reply above quoted text? or to delete text of an original message?)

@matthijsmelissen
Copy link
Collaborator

I agree this should be solved.

@jeisenbe
Copy link
Collaborator

jeisenbe commented Nov 10, 2018

This looks fixable with
marker-transform: 'translate(0,-6)';
This code will move the marker icon up by 6 pixels, which should work for most 14 pixel icons.

Here's an initial test in Honolulu, Hawaii
z14 Communications towers Original
z14-honolulu-0
Up 6 pixels
z14-honolulu-6

z18 Lighting towers original
z18-honolulu-0
Up 6
z18-honolulu-6up

z15 Lighthouse, Original
z15-diamondhead-0
Up 6
z15-diamondhead-6up

EDIT: It looks like we would need to decrease the text-dy by the same amount as well, looking at the name label for the lighthouse

@jeisenbe
Copy link
Collaborator

jeisenbe commented Nov 10, 2018

List of icons to be modified:

man_made communications_tower
man_made mast
man_made tower & man_made water_tower
man_made chimney
man_made lighthouse
man_made windmill
man_made obelisk & historic monument
power generator wind turbine
EDIT: man_made crane

Any others?

I thought about radio telescopes, but I don't think it's necessary

@jeisenbe
Copy link
Collaborator

Cranes examples:
Big Willi centered z17:

Big Willi up 6 pixels z17:
willi-up6-z17

Singapore centered z17:

Singapore up 6 pixels z14:
z14-singapore-up6

@jeisenbe
Copy link
Collaborator

Monuments in Beirut, before
http://openstreetmap.org/#map=17/33.89653/35.50498
monuments-before
Monuments up 6 - this is too much in my opinion, because the base of the monument is so thick
monuments-up6
Monuments up 4 - better
monument-up4

Mast in Lebanon, before
mast-before
Up 6 pixels
mast-up6

Watertower before (Note that these are mapped as circular ways and tagged building=yes)
watertower-before
Watertower up 5 pixels
watertower-z17-up5

Windmill in rural Lebanon before
windmill-before
Windmill up 6p
windmill-up6

Wind Turbines Hawaii
Before z15
windturbinesz15-before
z15 up 6
windturbinesz15-up6
Before z17
windturbinesz17-before
After z17
windturbinesz17-up6

@jeisenbe
Copy link
Collaborator

Adjusted Lighthouse up 4 pixels rather than 6; better I think:
z15 original

z15 up 4 pixels
Uploading lighthouse-up4.png…

Man_made Obelisk, Washington DC:
z15 original
obelisk-before
z15 up 6 pixels (thin base, tall icon)
obelisk-up6

Man_made Chimney
Before z16
chimneys-before
Up 6 pixels z16
chimneys-up6

@georgek
Copy link
Author

georgek commented Nov 16, 2018

A definite improvement IMO. Great work!

@kocio-pl
Copy link
Collaborator

On thing that still bugs me (sorry if that's stupid and you have put a detailed explanation - I just have no too much time currently): what if Obelisk, Washington DC had no label, would it be centered then?

@jeisenbe
Copy link
Collaborator

jeisenbe commented Nov 16, 2018 via email

@kocio-pl
Copy link
Collaborator

So it will be displaced off the center? I didn't have the time to review this yet, but I don't like this effect.

@Adamant36
Copy link
Contributor

My only thing is if this is done on points and the icon is moved up a few inches on the map, does that then translate to it moving a few feet in real life and how would affect other POI's mapped extremely close to it. I know the position of the icon isn't a "coordinate accurate" position in the first place, but the original position was chosen as a default for a reason and its something I think about.

@meased
Copy link
Contributor

meased commented Nov 16, 2018

Where is this idea going? Everything that "stands up" gets an offset icon? embassy? fuel? cafe? camping? golf? picnic? waste_basket?

What is the problem that this idea solves?

This is a 2D map, not a 3D map. Icons represent an object, they don't have to look like a vectorized aerial image of the object.

@jeisenbe
Copy link
Collaborator

jeisenbe commented Nov 16, 2018 via email

@jeisenbe
Copy link
Collaborator

jeisenbe commented Nov 16, 2018 via email

@jeisenbe
Copy link
Collaborator

jeisenbe commented Jan 4, 2019

I believe this issue is going to closed as wontfix, correct?

@matthijsmelissen
Copy link
Collaborator

matthijsmelissen commented Jan 4, 2019

Yes, thanks.

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

No branches or pull requests

10 participants