From 8c094a8977c85bf766cfa06fbe3aa6d996cf2a56 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 5 Oct 2009 22:29:01 +0000 Subject: [PATCH] Use a unique id for the map viewport. r=crshmidt (closes #2259) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9704 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index a55bd55685..db66c0f0fa 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -497,7 +497,7 @@ OpenLayers.Map = OpenLayers.Class({ OpenLayers.Element.addClass(this.div, 'olMap'); // the viewPortDiv is the outermost div we modify - var id = this.div.id + "_OpenLayers_ViewPort"; + var id = this.id + "_OpenLayers_ViewPort"; this.viewPortDiv = OpenLayers.Util.createDiv(id, null, null, null, "relative", null, "hidden"); @@ -507,7 +507,7 @@ OpenLayers.Map = OpenLayers.Class({ this.div.appendChild(this.viewPortDiv); // the layerContainerDiv is the one that holds all the layers - id = this.div.id + "_OpenLayers_Container"; + id = this.id + "_OpenLayers_Container"; this.layerContainerDiv = OpenLayers.Util.createDiv(id); this.layerContainerDiv.style.zIndex=this.Z_INDEX_BASE['Popup']-1;