[Mapbender-commits] r2906 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Sep 4 03:50:28 EDT 2008


Author: christoph
Date: 2008-09-04 03:50:28 -0400 (Thu, 04 Sep 2008)
New Revision: 2906

Modified:
   trunk/mapbender/http/javascripts/map.js
   trunk/mapbender/http/javascripts/mod_sandclock.php
Log:
http://trac.osgeo.org/mapbender/ticket/290

Modified: trunk/mapbender/http/javascripts/map.js
===================================================================
--- trunk/mapbender/http/javascripts/map.js	2008-09-03 12:40:37 UTC (rev 2905)
+++ trunk/mapbender/http/javascripts/map.js	2008-09-04 07:50:28 UTC (rev 2906)
@@ -176,7 +176,7 @@
 	}
 
 	var ts = mb_timestamp();
-	var myMapIds = [];
+	var myMapId = [];
 	for (var i=0; i < mb_mapObj.length; i++){
 		var currentMapObject = mb_mapObj[i];
 		if (currentMapObject.frameName != frameName) {
@@ -189,7 +189,7 @@
 			if (!(currentWms.gui_wms_visible > 0)) {
 				continue;
 			}
-			myMapIds.push("map_"+ii);
+			myMapId.push("map_"+ii);
 			
 			newMapRequest += getLayerHtmlCode(frameName, i, ii);
 			
@@ -198,7 +198,7 @@
 	}
 	eventAfterMapRequest.trigger({
 		"frameName": frameName,
-		"myMapIds": myMapIds.join(",")
+		"myMapId": myMapId.join(",")
 	});
 /*
 	for(var i=0; i<mb_MapRequestSubFunctions.length; i++){

Modified: trunk/mapbender/http/javascripts/mod_sandclock.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_sandclock.php	2008-09-03 12:40:37 UTC (rev 2905)
+++ trunk/mapbender/http/javascripts/mod_sandclock.php	2008-09-04 07:50:28 UTC (rev 2906)
@@ -31,17 +31,17 @@
 var mod_sandclock_img = new Image();
 mod_sandclock_img.src = mod_sandclock_image;
 
-mb_registerSubFunctions("mod_sandclock(true,myMapIds)");
+mb_registerSubFunctions("mod_sandclock(true,myMapId)");
 
-function mod_sandclock(start,myMapIds){
+function mod_sandclock(start,myMapId){
 	var ind = getMapObjIndexByName(mod_sandclock_target);
 	if(start){
 		var temp = "<img src='"+mod_sandclock_img.src+"'>";
 		writeTag(mod_sandclock_target, "sandclock", temp);
 		mb_arrangeElement(mod_sandclock_target, "sandclock", (mb_mapObj[ind].width/2 - 16), (mb_mapObj[ind].height/2 - 16));
 	}
-	aktiv = setTimeout("mod_sandclock('','"+myMapIds+"')",10);
-	var myMapIdArray = myMapIds.split(",");
+	aktiv = setTimeout("mod_sandclock('','"+myMapId+"')",10);
+	var myMapIdArray = myMapId.split(",");
 	var complete = true;
 	var myMapId;
 	for (var i = 0; i < myMapIdArray.length && complete; i++) {



More information about the Mapbender_commits mailing list