From dcd550ff31b398c03ca39ba3b370461a95652527 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 29 Mar 2007 16:24:09 +0000 Subject: [PATCH] Give icons a less generic ID, for helpful debuggin in the future. (Part of #581) git-svn-id: http://svn.openlayers.org/trunk/openlayers@2924 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Icon.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Icon.js b/lib/OpenLayers/Icon.js index 5c937b092b..7046f2d7c1 100644 --- a/lib/OpenLayers/Icon.js +++ b/lib/OpenLayers/Icon.js @@ -47,7 +47,8 @@ OpenLayers.Icon.prototype = { -(size.h/2)); }; - this.imageDiv = OpenLayers.Util.createAlphaImageDiv(); + var id = OpenLayers.Util.createUniqueID("OL_Icon_"); + this.imageDiv = OpenLayers.Util.createAlphaImageDiv(id); }, destroy: function() {