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:
euzuro
2006-05-19 15:05:39 +00:00
parent a5671cd452
commit 9b638d91c6
2 changed files with 15 additions and 3 deletions

View File

@@ -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%";
}
},
/**