From abeb2ce686a47a1da9698a9087faa9a6760ff522 Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 18 Jul 2006 18:13:33 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Map.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index b6b1e650ec..5ebfdc96ee 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -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,