Hi.
Is it possible to retain a vertex when drawing a polygon?
This is current behaviour of the draw mode:
:
This is desired behaviour of the draw mode - vertices are still retained (displayed):
This is the style I'm using:
var OnMapCreating = function (map) {
OpenLayers.Feature.Vector.style = {
'default': {
fillColor: "yellow",
fillOpacity: 0.4,
hoverFillColor: "white",
hoverFillOpacity: 0.8,
strokeColor: "blue",
strokeOpacity: 1,
strokeWidth: 1,
strokeLinecap: "round",
strokeDashstyle: "solid",
hoverStrokeColor: "red",
hoverStrokeOpacity: 1,
hoverStrokeWidth: 0.2,
pointRadius: 20,
hoverPointRadius: 10,
hoverPointUnit: "%",
pointerEvents: "visiblePainted",
cursor: "inherit"
},
'select': {
fillColor: "yellow",
fillOpacity: 0.4,
hoverFillColor: "white",
hoverFillOpacity: 0.8,
strokeColor: "blue",
strokeOpacity: 1,
strokeWidth: 1,
strokeLinecap: "round",
strokeDashstyle: "solid",
hoverStrokeColor: "red",
hoverStrokeOpacity: 1,
hoverStrokeWidth: 0.2,
pointRadius: 20,
hoverPointRadius: 10,
hoverPointUnit: "%",
pointerEvents: "visiblePainted",
cursor: "pointer"
}
};
}