from fredj: "in lib/OpenLayers/Layer.js and lib/OpenLayers/Control.js the div
id is not passed to the createDiv() function." (Closes #1015) git-svn-id: http://svn.openlayers.org/trunk/openlayers@4677 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -32,10 +32,10 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
* Constant: EVENT_TYPES
|
||||
* {Array(String)} Supported application event types
|
||||
*/
|
||||
EVENT_TYPES: [ "loadstart", "loadend", "loadcancel", "visibilitychanged"],
|
||||
EVENT_TYPES: ["loadstart", "loadend", "loadcancel", "visibilitychanged"],
|
||||
|
||||
/**
|
||||
* APIProperty: events``
|
||||
* APIProperty: events
|
||||
* {<OpenLayers.Events>}
|
||||
*/
|
||||
events: null,
|
||||
@@ -238,10 +238,9 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
|
||||
this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");
|
||||
|
||||
this.div = OpenLayers.Util.createDiv();
|
||||
this.div = OpenLayers.Util.createDiv(this.id);
|
||||
this.div.style.width = "100%";
|
||||
this.div.style.height = "100%";
|
||||
this.div.id = this.id;
|
||||
|
||||
this.events = new OpenLayers.Events(this, this.div,
|
||||
this.EVENT_TYPES);
|
||||
|
||||
Reference in New Issue
Block a user