Allow ol.source.{Image,Tile}WMS serverType option to be a string

This commit is contained in:
Tom Payne
2014-02-06 19:48:45 +01:00
parent 3408b8b835
commit d4ebfac74a
3 changed files with 6 additions and 4 deletions

View File

@@ -84,7 +84,8 @@ ol.source.TileWMS = function(opt_options) {
* @private
* @type {ol.source.wms.ServerType|undefined}
*/
this.serverType_ = options.serverType;
this.serverType_ =
/** @type {ol.source.wms.ServerType|undefined} */ (options.serverType);
/**
* @private