From 824302349d6a0261a63894d2b833cb64715d2c18 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 28 Apr 2014 14:35:30 +0200 Subject: [PATCH] Export ol.View2D.prototype.constrainCenter function --- src/ol/view2d.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/view2d.js b/src/ol/view2d.js index 68061b2676..4bc7500936 100644 --- a/src/ol/view2d.js +++ b/src/ol/view2d.js @@ -184,8 +184,10 @@ ol.View2D.prototype.calculateCenterZoom = function(resolution, anchor) { /** + * Get the constrained center of this view. * @param {ol.Coordinate|undefined} center Center. * @return {ol.Coordinate|undefined} Constrained center. + * @todo api */ ol.View2D.prototype.constrainCenter = function(center) { return this.constraints_.center(center);