ol.Object doc improvement

This commit is contained in:
Éric Lemoine
2014-06-27 10:16:53 +02:00
parent 9179c914b8
commit 5ebb9686ce

View File

@@ -240,10 +240,11 @@ ol.Object.getSetterName = function(key) {
/** /**
* The bindTo method allows you to set up a two-way binding between a * The bindTo method allows you to set up a two-way binding between a
* `source` and `target` object. The method returns an * `source` and `target` object. The method returns an object with a
* ol.ObjectAccessor with a transform method that lets you transform * `transform` method that you can use to provide `from` and `to`
* values on the way from the source to the target and on the way back. * functions to transform values on the way from the source to the
* * target and on the way back.
*
* For example, if you had two map views (sourceView and targetView) * For example, if you had two map views (sourceView and targetView)
* and you wanted the target view to have double the resolution of the * and you wanted the target view to have double the resolution of the
* source view, you could transform the resolution on the way to and * source view, you could transform the resolution on the way to and