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,
|
isBaseLayer: true,
|
||||||
|
|
||||||
/**
|
|
||||||
* APIProperty: units
|
|
||||||
* {?}
|
|
||||||
*/
|
|
||||||
units: null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* APIProperty: resolution
|
|
||||||
* {Float}
|
|
||||||
*/
|
|
||||||
resolution: OpenLayers.DOTS_PER_INCH,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constant: DEFAULT_PARAMS
|
* Constant: DEFAULT_PARAMS
|
||||||
* {Object} parameters set by default. The default parameters set
|
* {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.
|
* extends, can be overridden through the options parameter.
|
||||||
*/
|
*/
|
||||||
initialize: function(name, url, params, options) {
|
initialize: function(name, url, params, options) {
|
||||||
var newArguments = [];
|
OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments);
|
||||||
newArguments.push(name, url, params, options);
|
|
||||||
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
|
|
||||||
this.params = OpenLayers.Util.applyDefaults(
|
this.params = OpenLayers.Util.applyDefaults(
|
||||||
this.params, this.DEFAULT_PARAMS
|
this.params, this.DEFAULT_PARAMS
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user