Clarify the style function signature

This commit is contained in:
Tim Schaub
2014-02-07 17:57:11 -07:00
parent d4ca02c92d
commit 5f81a3f745

View File

@@ -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;
}
})