Layer.KaMap cleanup

Remove unused units and resolution properties
Simplify Grid.initialize call
This commit is contained in:
fredj
2011-11-24 16:21:49 +01:00
parent c3b7c06118
commit 250e686375

View File

@@ -22,18 +22,6 @@ OpenLayers.Layer.KaMap = OpenLayers.Class(OpenLayers.Layer.Grid, {
*/
isBaseLayer: true,
/**
* APIProperty: units
* {?}
*/
units: null,
/**
* APIProperty: resolution
* {Float}
*/
resolution: OpenLayers.DOTS_PER_INCH,
/**
* Constant: DEFAULT_PARAMS
* {Object} parameters set by default. The default parameters set
@@ -62,9 +50,7 @@ OpenLayers.Layer.KaMap = OpenLayers.Class(OpenLayers.Layer.Grid, {
* extends, can be overridden through the options parameter.
*/
initialize: function(name, url, params, options) {
var newArguments = [];
newArguments.push(name, url, params, options);
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments);
this.params = OpenLayers.Util.applyDefaults(
this.params, this.DEFAULT_PARAMS
);