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
+5 -20
View File
@@ -151,10 +151,7 @@ ol.style.Image.prototype.getSize = goog.abstractMethod;
/**
* Set the opacity. 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 opacity.
*
* @param {number} opacity Opacity.
*/
@@ -164,10 +161,7 @@ ol.style.Image.prototype.setOpacity = function(opacity) {
/**
* Set whether to rotate the style with the view. 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 whether to rotate the style with the view.
*
* @param {boolean} rotateWithView Rotate with map.
*/
@@ -177,10 +171,7 @@ ol.style.Image.prototype.setRotateWithView = function(rotateWithView) {
/**
* Set the rotation. 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 rotation.
*
* @param {number} rotation Rotation.
* @api
@@ -191,10 +182,7 @@ ol.style.Image.prototype.setRotation = function(rotation) {
/**
* Set the scale. 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 scale.
*
* @param {number} scale Scale.
* @api
@@ -205,10 +193,7 @@ ol.style.Image.prototype.setScale = function(scale) {
/**
* Set whether to snap the image to the closest pixel. 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 whether to snap the image to the closest pixel.
*
* @param {boolean} snapToPixel Snap to pixel?
*/