Added circle drawing to draw interaction.

This commit is contained in:
Christopher S. Case
2015-02-10 12:02:56 -06:00
parent a924cc4d11
commit ae8321ab30
2 changed files with 30 additions and 4 deletions

View File

@@ -309,6 +309,13 @@ 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]
);
console.log(styles[ol.geom.GeometryType.CIRCLE]);
styles[ol.geom.GeometryType.POINT] = [
new ol.style.Style({
image: new ol.style.Circle({