Remove unused ol.source.wms.getDpiParam function

This commit is contained in:
Tom Payne
2014-01-08 21:22:18 +01:00
parent e9d8401786
commit 1bf678bef2

View File

@@ -51,23 +51,3 @@ ol.source.wms.getUrl = function(baseUrl, params, extent, size, projection) {
return goog.uri.utils.appendParamsFromMap(baseUrl, baseParams);
};
/**
* @param {ol.source.wms.ServerType} serverType Server name.
* @param {number} pixelRatio Pixel ratio.
* @return {Object.<string, string>}
*/
ol.source.wms.getDpiParam = function(serverType, pixelRatio) {
var param = {};
if (serverType == ol.source.wms.ServerType.MAPSERVER) {
param['MAP_RESOLUTION'] = 90 * pixelRatio;
} else if (serverType == ol.source.wms.ServerType.GEOSERVER) {
param['FORMAT_OPTIONS'] = 'dpi:' + 90 * pixelRatio;
} else if (serverType == ol.source.wms.ServerType.QGIS) {
param['DPI'] = 90 * pixelRatio;
} else {
goog.asserts.fail();
}
return param;
};