Commit 86f7ce39 authored by PJ Janse van Rensburg's avatar PJ Janse van Rensburg

Disable CircleMarker control where innapropriate.

parent 820c7713
......@@ -195,10 +195,12 @@
drawOptions.draw.rectangle = false;
} else if ($.inArray(geometryType, ["LINESTRING", "MULTILINESTRING"]) > -1) {
drawOptions.draw.marker = false;
drawOptions.draw.circlemarker = false;
drawOptions.draw.polygon = false;
drawOptions.draw.rectangle = false;
} else if ($.inArray(geometryType, ["POLYGON", "MULTIPOLYGON"]) > -1) {
drawOptions.draw.marker = false;
drawOptions.draw.circlemarker = false;
drawOptions.draw.polyline = false;
}
var drawControl = new L.Control.Draw(drawOptions);
......
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