Skip to content

Commit

Permalink
Fixed removing polyline points in Mapbox
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Jan 13, 2025
1 parent d7c1c73 commit 2f9317d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ internal class DynamicPolyLineFeature(
fun removeLastPoint() {
if (pointAnnotations.isNotEmpty()) {
pointAnnotationManager.delete(pointAnnotations.last())
pointAnnotations.removeLast()
points.removeLast()
pointAnnotations.removeAt(pointAnnotations.lastIndex)
points.removeAt(points.lastIndex)
updateLine()
}
}
Expand Down

0 comments on commit 2f9317d

Please sign in to comment.