Improve docs for projection/transform functions

This commit is contained in:
Peter Robins
2014-06-16 07:29:17 -04:00
parent 71da6603cb
commit ff3e66d550
5 changed files with 49 additions and 16 deletions
+4
View File
@@ -167,6 +167,8 @@ ol.geom.Geometry.prototype.getType = goog.abstractMethod;
/**
* Apply a transform function to the geometry. Modifies the geometry in place.
* If you do not want the geometry modified in place, first clone() it and
* then use this function on the clone.
* @function
* @param {ol.TransformFunction} transformFn Transform.
* @todo api
@@ -177,6 +179,8 @@ ol.geom.Geometry.prototype.applyTransform = goog.abstractMethod;
/**
* Transform a geometry from one coordinate reference system to another.
* Modifies the geometry in place.
* If you do not want the geometry modified in place, first clone() it and
* then use this function on the clone.
*
* @param {ol.proj.ProjectionLike} source The current projection. Can be a
* string identifier or a {@link ol.proj.Projection} object.