Using the modify interaction - the default behaviour is to show existing vertex as point when hover it.
(When the mouse is hovered over the left bottom vertex - the vertex is shown)
Is there an option to always show the existing vertices?
link: https://jsfiddle.net/cc742av3/
var polygon = new ol.Feature(
{
geometry: new ol.geom.Polygon([
[[37154.73247527378,6059120.393550643],
[503114.85690170806,6060343.386003206],
[525128.7210478389,5637187.99741647],
[29816.777759896824,5656755.876657475],
[37154.73247527378,6059120.393550643]]
])
}
);
var layer = new ol.layer.Vector({ source: new ol.source.Vector({features: [polygon]})})
var modifyInteraction = new ol.interaction.Modify(
{ features: new ol.Collection([polygon])
});
var map = new ol.Map({
target: 'map',
interactions:[modifyInteraction],
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
}),
layer
],
view: new ol.View({
center: [227941.55507507361 , 5912361.299243105],
zoom: 6
})
});