Skip to content

snapsUserLocationAnnotationToRoute has no effect #406

Closed

Description

@1ec5

RouteController.snapsUserLocationAnnotationToRoute purports to affect whether a map view’s user location annotation is snapped to the route. However, Core Navigation doesn’t actually do anything in response to this property; it only affects how RouteMapViewController behaves in the main navigation SDK.

In the Swift example application, CustomViewController sets snapsUserLocationAnnotationToRoute to true with the expectation that it snaps the user puck to the route, but it doesn’t. Instead, CustomViewController implements its own snapping in progressDidChange(_:). So setting snapsUserLocationAnnotationToRoute is a bit misleading.

Additionally, the documentation claims that snapsUserLocationAnnotationToRoute is disabled by default, but it’s actually enabled by default.

/cc @bsudekum @ericrwolfe

Activity

  1. added
    bug
    on Jul 21, 2017
  2. self-assigned this
    on Jul 21, 2017
  3. added a commit that references this issue on Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions