Commit 6046dad8 authored by PJ Janse van Rensburg's avatar PJ Janse van Rensburg

Disable circlemarkers everywhere.

parent 86f7ce39
...@@ -182,7 +182,8 @@ ...@@ -182,7 +182,8 @@
var drawOptions = { var drawOptions = {
draw: { draw: {
// circles are not geometries in geojson // circles are not geometries in geojson
circle: false circle: false,
circlemarker: false
}, },
edit: { edit: {
featureGroup: editableLayers featureGroup: editableLayers
...@@ -195,12 +196,10 @@ ...@@ -195,12 +196,10 @@
drawOptions.draw.rectangle = false; drawOptions.draw.rectangle = false;
} else if ($.inArray(geometryType, ["LINESTRING", "MULTILINESTRING"]) > -1) { } else if ($.inArray(geometryType, ["LINESTRING", "MULTILINESTRING"]) > -1) {
drawOptions.draw.marker = false; drawOptions.draw.marker = false;
drawOptions.draw.circlemarker = false;
drawOptions.draw.polygon = false; drawOptions.draw.polygon = false;
drawOptions.draw.rectangle = false; drawOptions.draw.rectangle = false;
} else if ($.inArray(geometryType, ["POLYGON", "MULTIPOLYGON"]) > -1) { } else if ($.inArray(geometryType, ["POLYGON", "MULTIPOLYGON"]) > -1) {
drawOptions.draw.marker = false; drawOptions.draw.marker = false;
drawOptions.draw.circlemarker = false;
drawOptions.draw.polyline = false; drawOptions.draw.polyline = false;
} }
var drawControl = new L.Control.Draw(drawOptions); 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