Export ol.View2D.prototype.constrainCenter function

This commit is contained in:
Frederic Junod
2014-04-28 14:35:30 +02:00
parent b14e0d0330
commit 824302349d

View File

@@ -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);