diff --git a/examples/select-features.js b/examples/select-features.js index c27b5b22d7..d9d5a0ca37 100644 --- a/examples/select-features.js +++ b/examples/select-features.js @@ -35,14 +35,14 @@ var vector = new ol.layer.Vector({ projection: 'EPSG:3857', url: 'data/geojson/countries.geojson' }), - styleFunction: function(feature, layer) { + styleFunction: function(feature, resolution) { return unselectedStyle; } }); var select = new ol.interaction.Select({ featureOverlay: new ol.FeatureOverlay({ - styleFunction: function(feature, layer) { + styleFunction: function(feature, resolution) { return selectedStyle; } })