Merge pull request #3237 from Morgul/ccase-circle-drawing

Add circles to Draw interaction.
This commit is contained in:
Éric Lemoine
2015-03-11 17:08:10 +01:00
4 changed files with 83 additions and 4 deletions
+6
View File
@@ -309,6 +309,12 @@ ol.style.createDefaultEditingStyles = function() {
styles[ol.geom.GeometryType.MULTI_LINE_STRING] =
styles[ol.geom.GeometryType.LINE_STRING];
styles[ol.geom.GeometryType.CIRCLE] =
styles[ol.geom.GeometryType.POLYGON].concat(
styles[ol.geom.GeometryType.LINE_STRING]
);
styles[ol.geom.GeometryType.POINT] = [
new ol.style.Style({
image: new ol.style.Circle({