Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Document annotationView coordinate setting behavior during dragging #251

Open
@samfader

Description

When using setDragState to drag an annotation, we should note that the center coordinates of the annotation is set only once the dragState of the annotationView has been set to MGLAnnotationViewDragStateEnding. You can see this here. Therefore, these coordinates should not be relied on for, for example, drawing a line between a "static" annotation and an annotation that is being dragged in real time.

We should document this behavior and/or create an example showing best practices for dragging annotations and using that drag to update other geometries on the map.

cc @jmkiley @nishant-karajgikar

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions