public static Feature ToFeature(this PolylineAnnotation annotation) { var coords = annotation.Coordinates .Select(position => ToCoords(position)) .ToArray(); var geometry = LineString.FromLngLats(MultiPoint.FromLngLats(coords)); return(Feature.FromGeometry(geometry)); }