Non unique HTMLElement in Control, fix put together by sbenthall.

Tests pass, etc. (Closes #1396) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@7666 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-08-01 18:21:56 +00:00
parent 76170bf821
commit e7ebdc8aa0
4 changed files with 7 additions and 8 deletions

View File

@@ -111,7 +111,7 @@ OpenLayers.Control.PanZoom = OpenLayers.Class(OpenLayers.Control, {
_addButton:function(id, img, xy, sz) {
var imgLocation = OpenLayers.Util.getImagesLocation() + img;
var btn = OpenLayers.Util.createAlphaImageDiv(
"OpenLayers_Control_PanZoom_" + id,
this.id + "_" + id,
xy, sz, imgLocation, "absolute");
//we want to add the outer div