draw without totation

parent 7c3e3aa9
......@@ -147,7 +147,7 @@ sidtMap.prototype.changeInteraction = function() {
if (drawValue !== 'Square') {
this.interaction = new ol.interaction.Draw({
source:this.vectorLayer.getSource(),
geometryFunction: new ol.interaction.Draw.createRegularPolygon(4),
geometryFunction: new ol.interaction.Draw.createRegularPolygon(4, Math.PI/4),
features: this.features,
type: "Circle"
});
......
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