From cb9723d202eb21926163cc8f13fd2dd2b756eec9 Mon Sep 17 00:00:00 2001 From: euzuro Date: Sat, 24 Mar 2007 01:39:49 +0000 Subject: [PATCH] patch for #556 - give the map object its own unique ID git-svn-id: http://svn.openlayers.org/trunk/openlayers@2875 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index aac3b82660..2f86218672 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -30,6 +30,9 @@ OpenLayers.Map.prototype = { "mouseout", "mousemove", "dragstart", "drag", "dragend", "changebaselayer"], + /** @type String */ + id: null, + /** @type OpenLayers.Events */ events: null, @@ -153,6 +156,9 @@ OpenLayers.Map.prototype = { //set the default options this.setOptions(options); + this.id = OpenLayers.Util.createUniqueID("OpenLayers.Map_"); + + this.div = div = OpenLayers.Util.getElement(div); // the viewPortDiv is the outermost div we modify