inset
fun inset(polygon: DrawnPolygon, distanceMeters: Double, newVertexId: () -> VertexId = ::randomVertexId): List<List<Vertex>>
The rings of what is left of polygon when a strip of distanceMeters metres is taken off its inside all the way round (a setback), with mitred corners; a hole grows by the same distance. An empty list if nothing is left. Done on a flat map in metres around the plot, not on longitude and latitude, so the distance is the same in every direction; every corner of the result is new.
Throws
if polygon is not a valid polygon.
if distanceMeters is negative or not a number, or the plot crosses the antimeridian.