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,7 +367,9 @@ Map {
// Update drag coordinate
var polygonPath = polygonDrawerPolygon.path
polygonPath[polygonDrawerPolygon.path.length - 1] = dragCoordinate
polygonDrawerPolygon.path = polygonPath
if (polygonDrawerPolygon.path.length>2){
polygonDrawerPolygon.path = polygonPath
}
}
}
}
......
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