Merge pull request #1598 from elemoine/detect-style-changes

Changing the style function doesn't redraw the layer
This commit is contained in:
Éric Lemoine
2014-01-30 02:54:42 -08:00
4 changed files with 15 additions and 3 deletions

View File

@@ -681,7 +681,14 @@
/**
* @typedef {Object} olx.source.ImageCanvasOptions
* @property {Array.<ol.Attribution>|undefined} attributions Attributions.
* @property {ol.CanvasFunctionType} canvasFunction Canvas function.
* @property {ol.CanvasFunctionType} canvasFunction Canvas function. The function
* returning the canvas element used by the source as an image. The arguments
* passed to the function are: `{ol.Extent}` the image extent, `{number}` the
* image resolution, `{number}` the device pixel ratio, `{ol.Size}` the image
* size, and `{ol.proj.Projection}` the image projection. The canvas returned
* by this function is cached by the source. If the value returned by the
* function is later changed then `dispatchChangeEvent` should be called on
* the source for the source to invalidate the current cached image.
* @property {ol.Extent|undefined} extent Extent.
* @property {string|undefined} logo Logo.
* @property {ol.proj.ProjectionLike} projection Projection.