Allow center and resolution to set to undefined

This commit is contained in:
Tom Payne
2012-07-30 15:06:24 +02:00
parent 65c8fe3741
commit 82f67006ab

View File

@@ -787,7 +787,7 @@ ol.Map.prototype.setBackgroundColor = function(backgroundColor) {
/**
* @param {ol.Coordinate} center Center.
* @param {ol.Coordinate|undefined} center Center.
*/
ol.Map.prototype.setCenter = function(center) {
this.set(ol.MapProperty.CENTER, center);
@@ -823,7 +823,7 @@ ol.Map.prototype.setLayers = function(layers) {
/**
* @param {number} resolution Resolution.
* @param {number|undefined} resolution Resolution.
*/
ol.Map.prototype.setResolution = function(resolution) {
this.set(ol.MapProperty.RESOLUTION, resolution);