I'm wondering is there are some available animations exist for changing MapPolyline
and MapPolygon
on the fly".
For now, I'm able to draw both of them and edit them via geometry
property, but without any animations:
let geoPolyline = try! GeoPolyline(vertices: option3Geo)
let lineColor = UIColor(red: 0, green: 0.56, blue: 0.54, alpha: 0.63)
mapPolyline = MapPolyline(geometry: geoPolyline,
widthInPixels: 30,
color: lineColor)
mapView.mapScene.addMapPolyline(mapPolyline!)
// and later to update without any animations
mapPolyline?.geometry = newPoints
same for polygon:
let geoPolygon = try! GeoPolygon(vertices: option3Geo)
let fillColor = UIColor(red: 0, green: 0.56, blue: 0.54, alpha: 0.63)
mapPolygon = MapPolygon(geometry: geoPolygon, color: fillColor)
mapView.mapScene.addMapPolygon(mapPolygon!)
// later
mapPolygon.geometry = geometry
It would be great, if some animation can be added to this change - in my case, user change the polygon "on the fly", and without animation it looks a bit ugly.