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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 23 06:55:35 EDT 2009


Author: christoph
Date: 2009-06-23 06:55:34 -0400 (Tue, 23 Jun 2009)
New Revision: 4087

Modified:
   trunk/mapbender/http/javascripts/mod_sandclock.php
Log:


Modified: trunk/mapbender/http/javascripts/mod_sandclock.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_sandclock.php	2009-06-23 10:37:44 UTC (rev 4086)
+++ trunk/mapbender/http/javascripts/mod_sandclock.php	2009-06-23 10:55:34 UTC (rev 4087)
@@ -88,9 +88,9 @@
 	 * Displays the sandclock
 	 */
 	this.show = function (mapId) {
+		var temp = "<img src='"+mod_sandclock_img.src+"'>";
 		if (!isInitialised) {
 			map = Mapbender.Modules[options.target];
-			var temp = "<img src='"+mod_sandclock_img.src+"'>";
 			var map_el = map.getDomElement();
 			if(!map_el.ownerDocument.getElementById(map.elementName+"_sandclock")){
 				//create Box Elements
@@ -99,16 +99,16 @@
 				el_top.style.top = "0px";
 				el_top.style.left = "0px";
 				el_top.style.overflow = "hidden";
-				el_top.style.zIndex = "10";
+				el_top.style.zIndex = "1000";
 				el_top.style.visibility = "visible";
 				el_top.style.cursor = "crosshair";
 				el_top.id = map.elementName+"_sandclock";
 				map_el.appendChild(el_top);
 			}
-			writeTag(map.frameName, map.elementName+"_sandclock", temp);
-			mb_arrangeElement("", options.target+"_sandclock", (map.width/2 - 16), (map.height/2 - 16));
 			isInitialised = true;
 		}
+		writeTag(map.frameName, map.elementName+"_sandclock", temp);
+		mb_arrangeElement("", options.target+"_sandclock", (map.width/2 - 16), (map.height/2 - 16));
 	
 		//
 		// if mapId is not given, the sandclock has to be turned off manually



More information about the Mapbender_commits mailing list