Merge pull request #1673 from tschaub/select-example

Clarify the style function signature.
This commit is contained in:
Tim Schaub
2014-02-07 18:07:40 -07:00

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