give the map div a reference back to the OpenLayers.Map object

git-svn-id: http://svn.openlayers.org/trunk/openlayers@975 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-18 18:13:33 +00:00
parent 4709d697b7
commit abeb2ce686

View File

@@ -115,6 +115,9 @@ OpenLayers.Map.prototype = {
this.div = div = $(div);
//give the div a reference to the OpenLayers.Map object
div.map = this;
// the viewPortDiv is the outermost div we modify
var id = div.id + "_OpenLayers_ViewPort";
this.viewPortDiv = OpenLayers.Util.createDiv(id, null, null, null,