Skip to content

Improve address labels #155

@tuukka

Description

@tuukka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions