Skip to content

Commit

Permalink
Merge pull request #6564 from grzesiek2010/COLLECT-6563
Browse files Browse the repository at this point in the history
Fixed removing polyline points in Mapbox
  • Loading branch information
grzesiek2010 authored Jan 14, 2025
2 parents d7c1c73 + 2f9317d commit c72c683
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 c72c683

Please sign in to comment.