Mention the need to re-render in a single place only

This commit is contained in:
Andreas Hocevar
2014-09-11 13:13:17 -07:00
parent 0e14639633
commit 267a950435
5 changed files with 26 additions and 93 deletions
+4 -5
View File
@@ -12,7 +12,9 @@ goog.require('ol.style.Stroke');
/**
* @classdesc
* Container for vector feature rendering styles.
* Container for vector feature rendering styles. Any changes made to the style
* or its children through `set*()` methods will not take effect until the
* feature, layer or FeatureOverlay that uses the style is re-rendered.
*
* @constructor
* @param {olx.style.StyleOptions=} opt_options Style options.
@@ -101,10 +103,7 @@ ol.style.Style.prototype.getZIndex = function() {
/**
* Set the zIndex. When this style is used as a layer, feature or ImageVector
* source style, call `changed()` on the layer, feature or ImageVector source
* for the change to take effect. When used as a FeatureOverlay style, call
* `render()` on the map.
* Set the zIndex.
*
* @param {number|undefined} zIndex ZIndex.
* @api