How to indicate polygon vertices with small circles using OpenLayers? -
I am using Open Layers 3 and have applied everything in my list of requirements except one thing: I am told in some way that polygon rendering is indicated by a polygonal corner with small circles.
In plain words, the outline of the desired polygon is not just a line - it is a line "adorned" with small circles in all places where one top.
How can I do in OL3? I searched in the ol.style.Style docs (that is, what style I pass through setStyle to ol.layer.Vector Am) polygon), but nothing is found relevant.
For reference, now one example is showing how to display the corner of a polygon with one To:
var styles = [polygon // style for new ol.style.Style [(stroke: new ol.style.Stroke ({Color: 'blue', width: 3}), Fill: New ol.style.Fill ({color: 'rgba (0, 0, 255, 0.1)'})}) // // Style to the new ol.style corner. Style ({Image: New ol.style.Circle ({Radius: 5, fill: new ol.style.Fill ({color: 'orange'})}, Geometry: return the coordinates of function (//) The first ring coordinate of polygon var = feature.getmetry (). GetCoordinates () [0]; New ol.geom.MultiPoint (coordinate);}}) Return;];
Comments
Post a Comment