[Mapbender-commits] r3112 - branches/noframes/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 3 10:01:48 EDT 2008


Author: christoph
Date: 2008-10-03 10:01:48 -0400 (Fri, 03 Oct 2008)
New Revision: 3112

Modified:
   branches/noframes/http/javascripts/map_obj.js
Log:
unique ids

Modified: branches/noframes/http/javascripts/map_obj.js
===================================================================
--- branches/noframes/http/javascripts/map_obj.js	2008-10-03 13:46:14 UTC (rev 3111)
+++ branches/noframes/http/javascripts/map_obj.js	2008-10-03 14:01:48 UTC (rev 3112)
@@ -623,9 +623,9 @@
 			if (mb_log) {
 				var tmp = eval(mb_log + "('" + newMapURL + "','" + ts + "')");
 			}
-			var myDivId = "div_" + ii;          
+			var myDivId = this.elementName + "_div_" + ii;          
 			writeTag(this.frameName, myDivId, newMapRequest);
-			var myMapId = "map_" + ii;
+			var myMapId = this.elementName + "_map_" + ii;
 			eventAfterMapRequest.trigger({"frameName":this.frameName, "myMapId":myMapId});
 			return true;
 		}  
@@ -671,8 +671,8 @@
 	var getLayerHtmlCode = function (ii) {
 		var currentWms = that.wms[ii];
 	
-		var myDivId = "div_" + ii;          
-		var myMapId = "map_" + ii;
+		var myDivId = that.elementName + "_div_" + ii;          
+		var myMapId = that.elementName + "_map_" + ii;
 
 		//disable Layer which are out of scale
 		var validLayers = that.checkScale(ii);



More information about the Mapbender_commits mailing list