placePoints method
Implementation
String placePoints(List<Polygon>? poly, Map<String, Point> points) {
String text = '';
if (poly != null) {
for (int j = 0; j < poly.length; j++) {
if (poly[j].points.length > 4) {
String startPoint = poly[j].points.first;
text += 'M${points[startPoint]!.x},${points[startPoint]!.y}';
for (int i = 1; i < poly[j].points.length; i++) {
String newPoint = poly[j].points[i];
text += 'L${points[newPoint]!.x},${points[newPoint]!.y}';
}
text += 'z';
}
}
}
return text;
}