diff --git a/examples/modify-features.js b/examples/modify-features.js index ff26883ca4..3b4fd9627a 100644 --- a/examples/modify-features.js +++ b/examples/modify-features.js @@ -8,6 +8,9 @@ goog.require('ol.layer.Tile'); goog.require('ol.layer.Vector'); goog.require('ol.source.GeoJSON'); goog.require('ol.source.MapQuest'); +goog.require('ol.style.Fill'); +goog.require('ol.style.Stroke'); +goog.require('ol.style.Style'); var raster = new ol.layer.Tile({ @@ -26,7 +29,17 @@ var vector = new ol.layer.Vector({ source: source }); -var select = new ol.interaction.Select({}); +var select = new ol.interaction.Select({ + style: new ol.style.Style({ + stroke: new ol.style.Stroke({ + color: '#3399CC', + width: 2.5 + }), + fill: new ol.style.Fill({ + color: 'rgba(255,255,255,0.6)' + }) + }) +}); var modify = new ol.interaction.Modify({ features: select.getFeatures()