diff --git a/examples/measure.js b/examples/measure.js index eed52b6e94..127eeaf275 100644 --- a/examples/measure.js +++ b/examples/measure.js @@ -141,7 +141,26 @@ function addInteraction() { var type = (typeSelect.value == 'area' ? 'Polygon' : 'LineString'); draw = new ol.interaction.Draw({ source: source, - type: /** @type {ol.geom.GeometryType} */ (type) + type: /** @type {ol.geom.GeometryType} */ (type), + style: new ol.style.Style({ + fill: new ol.style.Fill({ + color: 'rgba(255, 255, 255, 0.2)' + }), + stroke: new ol.style.Stroke({ + color: 'rgba(0, 0, 0, 0.5)', + lineDash: [10, 10], + width: 2 + }), + image: new ol.style.Circle({ + radius: 5, + stroke: new ol.style.Stroke({ + color: 'rgba(0, 0, 0, 0.7)' + }), + fill: new ol.style.Fill({ + color: 'rgba(255, 255, 255, 0.2)' + }) + }) + }) }); map.addInteraction(draw);