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
+10 -40
View File
@@ -165,10 +165,7 @@ ol.style.Text.prototype.getTextBaseline = function() {
/**
* Set the font. 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 font.
*
* @param {string|undefined} font Font.
* @api
@@ -179,10 +176,7 @@ ol.style.Text.prototype.setFont = function(font) {
/**
* Set the x offset. 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 x offset.
*
* @param {number} offsetX Horizontal text offset.
*/
@@ -192,10 +186,7 @@ ol.style.Text.prototype.setOffsetX = function(offsetX) {
/**
* Set the y offset. 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 y offset.
*
* @param {number} offsetY Vertical text offset.
*/
@@ -205,10 +196,7 @@ ol.style.Text.prototype.setOffsetY = function(offsetY) {
/**
* Set the fill. 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 fill.
*
* @param {ol.style.Fill} fill Fill style.
* @api
@@ -219,10 +207,7 @@ ol.style.Text.prototype.setFill = function(fill) {
/**
* 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|undefined} rotation Rotation.
* @api
@@ -233,10 +218,7 @@ ol.style.Text.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|undefined} scale Scale.
* @api
@@ -247,10 +229,7 @@ ol.style.Text.prototype.setScale = function(scale) {
/**
* Set the stroke. 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 stroke.
*
* @param {ol.style.Stroke} stroke Stroke style.
* @api
@@ -261,10 +240,7 @@ ol.style.Text.prototype.setStroke = function(stroke) {
/**
* Set the text. 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 text.
*
* @param {string|undefined} text Text.
* @api
@@ -275,10 +251,7 @@ ol.style.Text.prototype.setText = function(text) {
/**
* Set the text alignment. 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 text alignment.
*
* @param {string|undefined} textAlign Text align.
* @api
@@ -289,10 +262,7 @@ ol.style.Text.prototype.setTextAlign = function(textAlign) {
/**
* Set the text baseline. 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 text baseline.
*
* @param {string|undefined} textBaseline Text baseline.
* @api