Better documentation for weight option

This commit is contained in:
Frederic Junod
2014-03-27 08:58:01 +01:00
parent 0043e39ee3
commit d36536b935

View File

@@ -596,7 +596,8 @@
* @property {number|undefined} blur Blur size in pixels. Default is `15`.
* @property {number|undefined} shadow Shadow size in pixels. Default is `250`.
* @property {string|function(ol.Feature):number|undefined} weight The feature attribute to use for the
* weight or a function that returns a weight from a feature. Default is `weight`.
* weight or a function that returns a weight from a feature. Weight values should range from 0 to 1
* (and values outside will be clamped to that range). Default is `weight`.
* @property {number|undefined} minResolution The minimum resolution
* (inclusive) at which this layer will be visible.
* @property {number|undefined} maxResolution The maximum resolution