Don't create a class for map options

This commit is contained in:
Tom Payne
2012-09-26 12:48:34 +02:00
parent 013e6c6320
commit e7063953d7
2 changed files with 27 additions and 14 deletions

View File

@@ -92,7 +92,7 @@ ol.Map = function(container, mapOptionsLiteral, opt_viewportSizeMonitor) {
this.logger = goog.debug.Logger.getLogger('ol.map.' + goog.getUid(this));
}
var mapOptions = new ol.MapOptions(mapOptionsLiteral);
var mapOptions = ol.MapOptions.create(mapOptionsLiteral);
/**
* @type {ol.TransformFunction}