From 6daecd677d4b0893c906620b74a59b0053e88907 Mon Sep 17 00:00:00 2001 From: fredj Date: Thu, 9 Feb 2012 13:43:42 +0100 Subject: [PATCH] New createVertices option for Control.ModifyFeature --- examples/modify-feature.html | 6 ++++++ lib/OpenLayers/Control/ModifyFeature.js | 9 ++++++++- tests/Control/ModifyFeature.html | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/examples/modify-feature.html b/examples/modify-feature.html index 8cec2306af..cb19858ddd 100644 --- a/examples/modify-feature.html +++ b/examples/modify-feature.html @@ -96,6 +96,7 @@ if (rotate || drag) { controls.modify.mode &= ~OpenLayers.Control.ModifyFeature.RESHAPE; } + controls.modify.createVertices = document.getElementById("createVertices").checked; var sides = parseInt(document.getElementById("sides").value); sides = Math.max(3, isNaN(sides) ? 0 : sides); controls.regular.handler.sides = sides; @@ -161,6 +162,11 @@

OpenLayers Modify Feature Example

onclick="toggleControl(this);" />