@@ -165,8 +165,10 @@ ol.style.Text.prototype.getTextBaseline = function() {
165
165
166
166
167
167
/**
168
- * Set the font. Call `setStyle()` or `dispatchChangeEvent()` on feature, layer
169
- * or feature overlay for changes to take effect.
168
+ * Set the font. When this style is used as a layer, feature or ImageVector
169
+ * source style, call `changed()` on the layer, feature or ImageVector source
170
+ * for the change to take effect. When used as a FeatureOverlay style, call
171
+ * `render()` on the map.
170
172
*
171
173
* @param {string|undefined } font Font.
172
174
* @api
@@ -177,8 +179,10 @@ ol.style.Text.prototype.setFont = function(font) {
177
179
178
180
179
181
/**
180
- * Set the x offset. Call `setStyle()` or `dispatchChangeEvent()` on feature,
181
- * layer or feature overlay for changes to take effect.
182
+ * Set the x offset. When this style is used as a layer, feature or ImageVector
183
+ * source style, call `changed()` on the layer, feature or ImageVector source
184
+ * for the change to take effect. When used as a FeatureOverlay style, call
185
+ * `render()` on the map.
182
186
*
183
187
* @param {number } offsetX Horizontal text offset.
184
188
*/
@@ -188,8 +192,10 @@ ol.style.Text.prototype.setOffsetX = function(offsetX) {
188
192
189
193
190
194
/**
191
- * Set the y offset. Call `setStyle()` or `dispatchChangeEvent()` on feature,
192
- * layer or feature overlay for changes to take effect.
195
+ * Set the y offset. When this style is used as a layer, feature or ImageVector
196
+ * source style, call `changed()` on the layer, feature or ImageVector source
197
+ * for the change to take effect. When used as a FeatureOverlay style, call
198
+ * `render()` on the map.
193
199
*
194
200
* @param {number } offsetY Vertical text offset.
195
201
*/
@@ -199,8 +205,10 @@ ol.style.Text.prototype.setOffsetY = function(offsetY) {
199
205
200
206
201
207
/**
202
- * Set the fill. Call `setStyle()` or `dispatchChangeEvent()` on feature, layer
203
- * or feature overlay for changes to take effect.
208
+ * Set the fill. When this style is used as a layer, feature or ImageVector
209
+ * source style, call `changed()` on the layer, feature or ImageVector source
210
+ * for the change to take effect. When used as a FeatureOverlay style, call
211
+ * `render()` on the map.
204
212
*
205
213
* @param {ol.style.Fill } fill Fill style.
206
214
* @api
@@ -211,8 +219,10 @@ ol.style.Text.prototype.setFill = function(fill) {
211
219
212
220
213
221
/**
214
- * Set the rotation. Call `setStyle()` or `dispatchChangeEvent()` on feature,
215
- * layer or feature overlay for changes to take effect.
222
+ * Set the rotation. When this style is used as a layer, feature or ImageVector
223
+ * source style, call `changed()` on the layer, feature or ImageVector source
224
+ * for the change to take effect. When used as a FeatureOverlay style, call
225
+ * `render()` on the map.
216
226
*
217
227
* @param {number|undefined } rotation Rotation.
218
228
* @api
@@ -223,8 +233,10 @@ ol.style.Text.prototype.setRotation = function(rotation) {
223
233
224
234
225
235
/**
226
- * Set the scale. Call `setStyle()` or `dispatchChangeEvent()` on feature, layer
227
- * or feature overlay for changes to take effect.
236
+ * Set the scale. When this style is used as a layer, feature or ImageVector
237
+ * source style, call `changed()` on the layer, feature or ImageVector source
238
+ * for the change to take effect. When used as a FeatureOverlay style, call
239
+ * `render()` on the map.
228
240
*
229
241
* @param {number|undefined } scale Scale.
230
242
* @api
@@ -235,8 +247,10 @@ ol.style.Text.prototype.setScale = function(scale) {
235
247
236
248
237
249
/**
238
- * Set the stroke. Call `setStyle()` or `dispatchChangeEvent()` on feature,
239
- * layer or feature overlay for changes to take effect.
250
+ * Set the stroke. When this style is used as a layer, feature or ImageVector
251
+ * source style, call `changed()` on the layer, feature or ImageVector source
252
+ * for the change to take effect. When used as a FeatureOverlay style, call
253
+ * `render()` on the map.
240
254
*
241
255
* @param {ol.style.Stroke } stroke Stroke style.
242
256
* @api
@@ -247,8 +261,10 @@ ol.style.Text.prototype.setStroke = function(stroke) {
247
261
248
262
249
263
/**
250
- * Set the text. Call `setStyle()` or `dispatchChangeEvent()` on feature, layer
251
- * or feature overlay for changes to take effect.
264
+ * Set the text. When this style is used as a layer, feature or ImageVector
265
+ * source style, call `changed()` on the layer, feature or ImageVector source
266
+ * for the change to take effect. When used as a FeatureOverlay style, call
267
+ * `render()` on the map.
252
268
*
253
269
* @param {string|undefined } text Text.
254
270
* @api
@@ -259,8 +275,10 @@ ol.style.Text.prototype.setText = function(text) {
259
275
260
276
261
277
/**
262
- * Set the text alignment. Call `setStyle()` or `dispatchChangeEvent()` on
263
- * feature, layer or feature overlay for changes to take effect.
278
+ * Set the text alignment. When this style is used as a layer, feature or
279
+ * ImageVector source style, call `changed()` on the layer, feature or
280
+ * ImageVector source for the change to take effect. When used as a
281
+ * FeatureOverlay style, call `render()` on the map.
264
282
*
265
283
* @param {string|undefined } textAlign Text align.
266
284
* @api
@@ -271,8 +289,10 @@ ol.style.Text.prototype.setTextAlign = function(textAlign) {
271
289
272
290
273
291
/**
274
- * Set the text baseline. Call `setStyle()` or `dispatchChangeEvent()` on
275
- * feature, layer or feature overlay for changes to take effect.
292
+ * Set the text baseline. When this style is used as a layer, feature or
293
+ * ImageVector source style, call `changed()` on the layer, feature or
294
+ * ImageVector source for the change to take effect. When used as a
295
+ * FeatureOverlay style, call `render()` on the map.
276
296
*
277
297
* @param {string|undefined } textBaseline Text baseline.
278
298
* @api
0 commit comments