Rename source.wms.ServerType ➛ source.WMSServerType

This commit is contained in:
Marc Jansen
2016-09-02 13:34:06 +02:00
parent 98aba50735
commit 9bf524a288
7 changed files with 23 additions and 26 deletions

View File

@@ -11,7 +11,7 @@ goog.require('ol.extent');
goog.require('ol.obj');
goog.require('ol.proj');
goog.require('ol.source.Image');
goog.require('ol.source.wms.ServerType');
goog.require('ol.source.WMSServerType');
goog.require('ol.string');
goog.require('ol.uri');
@@ -72,10 +72,10 @@ ol.source.ImageWMS = function(opt_options) {
/**
* @private
* @type {ol.source.wms.ServerType|undefined}
* @type {ol.source.WMSServerType|undefined}
*/
this.serverType_ =
/** @type {ol.source.wms.ServerType|undefined} */ (options.serverType);
/** @type {ol.source.WMSServerType|undefined} */ (options.serverType);
/**
* @private
@@ -278,7 +278,7 @@ ol.source.ImageWMS.prototype.getRequestUrl_ = function(extent, size, pixelRatio,
if (pixelRatio != 1) {
switch (this.serverType_) {
case ol.source.wms.ServerType.GEOSERVER:
case ol.source.WMSServerType.GEOSERVER:
var dpi = (90 * pixelRatio + 0.5) | 0;
if ('FORMAT_OPTIONS' in params) {
params['FORMAT_OPTIONS'] += ';dpi:' + dpi;
@@ -286,11 +286,11 @@ ol.source.ImageWMS.prototype.getRequestUrl_ = function(extent, size, pixelRatio,
params['FORMAT_OPTIONS'] = 'dpi:' + dpi;
}
break;
case ol.source.wms.ServerType.MAPSERVER:
case ol.source.WMSServerType.MAPSERVER:
params['MAP_RESOLUTION'] = 90 * pixelRatio;
break;
case ol.source.wms.ServerType.CARMENTA_SERVER:
case ol.source.wms.ServerType.QGIS:
case ol.source.WMSServerType.CARMENTA_SERVER:
case ol.source.WMSServerType.QGIS:
params['DPI'] = 90 * pixelRatio;
break;
default:

View File

@@ -12,7 +12,7 @@ goog.require('ol.math');
goog.require('ol.proj');
goog.require('ol.size');
goog.require('ol.source.TileImage');
goog.require('ol.source.wms.ServerType');
goog.require('ol.source.WMSServerType');
goog.require('ol.tilecoord');
goog.require('ol.string');
goog.require('ol.uri');
@@ -69,10 +69,10 @@ ol.source.TileWMS = function(opt_options) {
/**
* @private
* @type {ol.source.wms.ServerType|undefined}
* @type {ol.source.WMSServerType|undefined}
*/
this.serverType_ =
/** @type {ol.source.wms.ServerType|undefined} */ (options.serverType);
/** @type {ol.source.WMSServerType|undefined} */ (options.serverType);
/**
* @private
@@ -222,7 +222,7 @@ ol.source.TileWMS.prototype.getRequestUrl_ = function(tileCoord, tileSize, tileE
if (pixelRatio != 1) {
switch (this.serverType_) {
case ol.source.wms.ServerType.GEOSERVER:
case ol.source.WMSServerType.GEOSERVER:
var dpi = (90 * pixelRatio + 0.5) | 0;
if ('FORMAT_OPTIONS' in params) {
params['FORMAT_OPTIONS'] += ';dpi:' + dpi;
@@ -230,11 +230,11 @@ ol.source.TileWMS.prototype.getRequestUrl_ = function(tileCoord, tileSize, tileE
params['FORMAT_OPTIONS'] = 'dpi:' + dpi;
}
break;
case ol.source.wms.ServerType.MAPSERVER:
case ol.source.WMSServerType.MAPSERVER:
params['MAP_RESOLUTION'] = 90 * pixelRatio;
break;
case ol.source.wms.ServerType.CARMENTA_SERVER:
case ol.source.wms.ServerType.QGIS:
case ol.source.WMSServerType.CARMENTA_SERVER:
case ol.source.WMSServerType.QGIS:
params['DPI'] = 90 * pixelRatio;
break;
default:

View File

@@ -1,3 +0,0 @@
/**
* @namespace ol.source.wms
*/

View File

@@ -1,5 +1,4 @@
goog.provide('ol.source.wms');
goog.provide('ol.source.wms.ServerType');
goog.provide('ol.source.WMSServerType');
/**
@@ -8,7 +7,7 @@ goog.provide('ol.source.wms.ServerType');
* specification that OpenLayers can make use of.
* @enum {string}
*/
ol.source.wms.ServerType = {
ol.source.WMSServerType = {
CARMENTA_SERVER: 'carmentaserver',
GEOSERVER: 'geoserver',
MAPSERVER: 'mapserver',