Merge pull request #1598 from elemoine/detect-style-changes

Changing the style function doesn't redraw the layer
This commit is contained in:
Éric Lemoine
2014-01-30 02:54:42 -08:00
4 changed files with 15 additions and 3 deletions

View File

@@ -77,6 +77,9 @@ goog.exportProperty(
/**
* If the styles are changed by setting a new style function or by changing the
* value returned by the style function then `dispatchChangeEvent` should be
* called on the layer for the layer to be refreshed on the screen.
* @param {ol.feature.StyleFunction|undefined} styleFunction Style function.
*/
ol.layer.Vector.prototype.setStyleFunction = function(styleFunction) {