Commit fa5c6e25 authored by nickexists's avatar nickexists

Fixed a bug where a black line would be rendered when starting to draw a polygon.

parent 9fe71322
......@@ -367,10 +367,12 @@ Map {
// Update drag coordinate
var polygonPath = polygonDrawerPolygon.path
polygonPath[polygonDrawerPolygon.path.length - 1] = dragCoordinate
if (polygonDrawerPolygon.path.length>2){
polygonDrawerPolygon.path = polygonPath
}
}
}
}
/// Polygon being drawn
MapPolygon {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment