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

Improve address labels #155

Open
16 of 27 tasks
tuukka opened this issue May 27, 2020 · 0 comments
Open
16 of 27 tasks

Improve address labels #155

tuukka opened this issue May 27, 2020 · 0 comments

Comments

@tuukka
Copy link
Collaborator

tuukka commented May 27, 2020

Draw entrance letters and markers along the normal of the building edge.

  • Load new tiles when panning
    • Custom, broken code
    • Custom, working code

    • Load tiles with deck.gl
  • Tile source
    • Highway-only Routable Tiles
    • New Building Tiles locally
    • New Building Tiles at tile.olmap.org
    • New Routable Tiles (buildings and their entrances included, live update)

    • Include orphan entrances in Routable Tiles
    • QA Tiles (zoom 12)
    • Custom QA Tiles (zoom 14, non-simplified entrance nodes)
  • Data interpretation
    • Assume that the housenumber is in the entrance node

    • Show all addresses of the building in the entrance popup
    • Copy housenumber from building to entrance
    • Analyse the addressing scheme to avoid repetition and mistakes (multi-address buildings)
  • Entrance geometry algorithm
    • Use the angle of the path
    • Use the normal of the building (angle at entrance)

    • Calculate angles with Turf.js
    • Find the related building edge for orphan entrance nodes
  • Visual appearance
    • Label visual distance independent of zoom level
    • Label centered
    • Try smaller font size
    • Hide when zoom level too small
    • Label anchored according to the angle
    • Include housenumber in label

    • Show entrance circles on small zoom levels
    • Dynamic label layout to avoid overlap
    • Halo of one label should overlap other labels
@tuukka tuukka changed the title Place entrance letters within buildings Improve entrance labels Jun 3, 2020
@tuukka tuukka changed the title Improve entrance labels Improve address labels Jun 3, 2020
haphut added a commit that referenced this issue Jun 10, 2020
Place entrance letters within buildings (#155)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant