Layer.KaMap cleanup
Remove unused units and resolution properties Simplify Grid.initialize call
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user