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
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.