Mention the need to re-render in a single place only
This commit is contained in:
@@ -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?
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user