Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Make roads accessible #2

@1ec5

Description

@1ec5

The iOS implementation in mapbox/mapbox-gl-native#9950 reads aloud the names of visible roads after naming all the visible POIs. In some settings, the nearby roads may provide better context to the user than the nearby POIs.

https://github.com/mapbox/mapbox-gl-native/blob/dcd7da14f6627a09a5840a3046b5708449962f69/platform/ios/src/MGLMapAccessibilityElement.mm#L138-L176

The following information is announced about each road:

  • Name
  • Route number
  • Whether the road is a one-way road
  • Whether the road is a divided road (in which case the geometry would be a multilinestring feature)
  • The general direction of the road (e.g., “north to south”)

Additionally, the road’s geometry is outlined. This is important to VoiceOver, which also allows the user to tap on any part of the map view to navigate to the accessibility element at the tap point. I’m not sure if it’s useful to outline the road geometry in GL JS.

/cc @tristen

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementiOS SDK parityNeeded for feature parity with the Mapbox Maps SDK for iOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions