Allow ol.source.{Image,Tile}WMS serverType option to be a string
This commit is contained in:
@@ -739,7 +739,7 @@
|
|||||||
* @property {ol.Extent|undefined} extent Extent.
|
* @property {ol.Extent|undefined} extent Extent.
|
||||||
* @property {boolean|undefined} hidpi Use the `ol.Map#pixelRatio` value when
|
* @property {boolean|undefined} hidpi Use the `ol.Map#pixelRatio` value when
|
||||||
* requesting the image from the remote server. Default is `true`.
|
* requesting the image from the remote server. Default is `true`.
|
||||||
* @property {ol.source.wms.ServerType|undefined} serverType The type of the remote WMS
|
* @property {ol.source.wms.ServerType|string|undefined} serverType The type of the remote WMS
|
||||||
* server: `mapserver`, `geoserver` or `qgis`. Only needed if `hidpi` is `true`.
|
* server: `mapserver`, `geoserver` or `qgis`. Only needed if `hidpi` is `true`.
|
||||||
* Default is `undefined`.
|
* Default is `undefined`.
|
||||||
* @property {string|undefined} logo Logo.
|
* @property {string|undefined} logo Logo.
|
||||||
@@ -818,7 +818,7 @@
|
|||||||
* @property {ol.tilegrid.TileGrid|undefined} tileGrid Tile grid.
|
* @property {ol.tilegrid.TileGrid|undefined} tileGrid Tile grid.
|
||||||
* @property {number|undefined} maxZoom Maximum zoom.
|
* @property {number|undefined} maxZoom Maximum zoom.
|
||||||
* @property {ol.proj.ProjectionLike} projection Projection.
|
* @property {ol.proj.ProjectionLike} projection Projection.
|
||||||
* @property {ol.source.wms.ServerType|undefined} serverType The type of the remote WMS
|
* @property {ol.source.wms.ServerType|string|undefined} serverType The type of the remote WMS
|
||||||
* server: `mapserver`, `geoserver` or `qgis`. Only needed if `hidpi` is `true`.
|
* server: `mapserver`, `geoserver` or `qgis`. Only needed if `hidpi` is `true`.
|
||||||
* Default is `undefined`.
|
* Default is `undefined`.
|
||||||
* @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional
|
* @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional
|
||||||
|
|||||||
@@ -63,7 +63,8 @@ ol.source.ImageWMS = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {ol.source.wms.ServerType|undefined}
|
* @type {ol.source.wms.ServerType|undefined}
|
||||||
*/
|
*/
|
||||||
this.serverType_ = options.serverType;
|
this.serverType_ =
|
||||||
|
/** @type {ol.source.wms.ServerType|undefined} */ (options.serverType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
@@ -84,7 +84,8 @@ ol.source.TileWMS = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {ol.source.wms.ServerType|undefined}
|
* @type {ol.source.wms.ServerType|undefined}
|
||||||
*/
|
*/
|
||||||
this.serverType_ = options.serverType;
|
this.serverType_ =
|
||||||
|
/** @type {ol.source.wms.ServerType|undefined} */ (options.serverType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user