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

Add "direction" to viewpoint and other POIs #598

Open
nvkelso opened this issue Mar 13, 2016 · 7 comments
Open

Add "direction" to viewpoint and other POIs #598

nvkelso opened this issue Mar 13, 2016 · 7 comments

Comments

@nvkelso
Copy link
Member

nvkelso commented Mar 13, 2016

OSM allows the direction to be set on viewpoints and other POIs, and Tangram can orient icons.

@nvkelso nvkelso added this to the v0.10.0 milestone Mar 13, 2016
@nvkelso nvkelso changed the title Add direction to viewpoint POIs Add "direction" to viewpoint and other POIs Mar 13, 2016
@nvkelso
Copy link
Member Author

nvkelso commented Apr 4, 2016

Looks like ~1000 of the 86,000 node features have direction, says TagInfo.

Direction values need to be normalized to degrees (°), sometimes they come in form of north or N or NE, see below.

Probably needs a TileStashe transform to ensure:

  • Number should be in range of 0-359, where 0 is equal to north, using a clockwise rotation.
  • Cardinal values (N, W, S, E, NE, NW, SE, and SW) are converted to their ° int values.

@nvkelso
Copy link
Member Author

nvkelso commented Apr 4, 2016

Lookup for cardinal > degrees from OSM wiki:

600px-angles

@nvkelso nvkelso modified the milestones: Compilation 2.1, v0.10.0 Apr 13, 2016
@nvkelso
Copy link
Member Author

nvkelso commented Mar 7, 2017

Tangram supports setting an angle on icons now, let's add this to tiles!

/cc @dmvaldman.

@nvkelso nvkelso modified the milestones: v1.1.0, Rainy Day Backlog Mar 7, 2017
@dmvaldman
Copy link

Since Tangram support angles on icons, is the part that needs implementing on the Tangram side the conversion of cardinal values to degrees?

@nvkelso
Copy link
Member Author

nvkelso commented Mar 8, 2017 via email

@nvkelso nvkelso modified the milestones: v1.1.0, v1.2.0 Apr 4, 2017
@nvkelso nvkelso modified the milestones: v1.5.0, v1.6.0 Dec 7, 2017
@nvkelso nvkelso modified the milestones: v1.6.0, v1.7.0 Sep 25, 2018
@nvkelso
Copy link
Member Author

nvkelso commented Feb 13, 2019

Let's use a consistent property name as #1219 (direction versus angle).

@nvkelso
Copy link
Member Author

nvkelso commented May 22, 2019

Here's a fun one, backward pointing stop signs:

@nvkelso nvkelso added this to the v2.0.0 milestone Apr 29, 2022
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

2 participants