I am building an Android application that uses OpenLayers embedded in a WebView. Being mindful of the imprecision of touch interfaces I am trying to style all controls to be large and easy to operate.
I have followed the documentation on feature styling but have been unable to control the size of the virtual vertices when using the createVertices mode of the ModifyFeature control.
By way of example consider the following style with a pointRadius of 5:
var customStyle = new OpenLayers.Style({
fillColor: "black",
strokeColor: "red",
pointRadius: 5,
strokeWidth: 30
});
var customStyles = new OpenLayers.StyleMap({
"default": customStyle,
"select": customStyle,
"temporary": customStyle
});
var polyLayer = new OpenLayers.Layer.Vector("Polygon_Layer", {styleMap: customStyles });
Meanwhile the following has a pointRadius of 50:
var customStyle = new OpenLayers.Style({
fillColor: "black",
strokeColor: "red",
pointRadius: 50,
strokeWidth: 30
});
As you can see this has no impact on the size of the virtual vertices midway along each edge.
Does anyone know a technique to control their size?