coordinate method calling of subclasses
git-svn-id: http://svn.openlayers.org/trunk/openlayers@179 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -17,9 +17,11 @@ OpenLayers.Layer.prototype = {
|
||||
*/
|
||||
initialize: function(name) {
|
||||
this.name = name;
|
||||
this.div = OpenLayers.Util.createDiv();
|
||||
this.div.style.width = "100%";
|
||||
this.div.style.height = "100%";
|
||||
if (this.div == null) {
|
||||
this.div = OpenLayers.Util.createDiv();
|
||||
this.div.style.width = "100%";
|
||||
this.div.style.height = "100%";
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,9 +22,19 @@ OpenLayers.Layer.WFS.prototype =
|
||||
*/
|
||||
initialize: function(name, url, params) {
|
||||
OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments);
|
||||
OpenLayers.Layer.Marker.prototype.initialize.apply(this, arguments);
|
||||
OpenLayers.Util.applyDefaults(this.params, this.DEFAULT_PARAMS);
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {OpenLayers.Bounds} bounds
|
||||
* @param {Boolean} zoomChanged
|
||||
*/
|
||||
moveTo: function(bounds, zoomChanged) {
|
||||
OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments);
|
||||
OpenLayers.Layer.Marker.prototype.initialize.apply(this, arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {String} name
|
||||
* @param {hash} params
|
||||
|
||||
Reference in New Issue
Block a user