[Mapbender-commits] r5050 - in trunk/mapbender/http: javascripts php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Nov 30 06:02:07 EST 2009


Author: verenadiewald
Date: 2009-11-30 06:02:06 -0500 (Mon, 30 Nov 2009)
New Revision: 5050

Modified:
   trunk/mapbender/http/javascripts/mod_highlightPOI.php
   trunk/mapbender/http/php/mod_meetingPoint.php
Log:
set zIndex of div to 1001 because div sandclock has now zIndex 1000

Modified: trunk/mapbender/http/javascripts/mod_highlightPOI.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_highlightPOI.php	2009-11-30 10:09:06 UTC (rev 5049)
+++ trunk/mapbender/http/javascripts/mod_highlightPOI.php	2009-11-30 11:02:06 UTC (rev 5050)
@@ -134,7 +134,7 @@
 			position: "absolute",
 			top: "0px",
 			left: "0px",
-			zIndex: 13
+			zIndex: 1001
 		});
 		map_el.appendChild($div.get(0));
 	}

Modified: trunk/mapbender/http/php/mod_meetingPoint.php
===================================================================
--- trunk/mapbender/http/php/mod_meetingPoint.php	2009-11-30 10:09:06 UTC (rev 5049)
+++ trunk/mapbender/http/php/mod_meetingPoint.php	2009-11-30 11:02:06 UTC (rev 5050)
@@ -161,6 +161,9 @@
 
 
 function mod_meetingPoint_draw(){
+    var splitext  = document.forms[0].mytext.value;
+    document.forms[0].mytext.value = splitext.substring(0, meetingPoint_max_characters);
+    	
 	var mapObject = parent.getMapObjByName(mod_meetingPoint_target);
 	if (mapObject) {
 		if (mod_meetingPointRealPoint !== null) {
@@ -168,13 +171,14 @@
 	
 			var meetingPointClickPos = mapObject.convertRealToPixel(mod_meetingPointRealPoint);
 			var tagSource = "";
-			tagSource += "<div style='z-index:13;position:absolute;left:"+(meetingPointClickPos.x- Math.round(0.5*meetingPoint_width))+"px;top:"+(meetingPointClickPos.y-Math.round(0.5*meetingPoint_height))+"px'>";
+			tagSource += "<div style='visibility:visible;z-index:13;position:absolute;left:"+(meetingPointClickPos.x- Math.round(0.5*meetingPoint_width))+"px;top:"+(meetingPointClickPos.y-Math.round(0.5*meetingPoint_height))+"px'>";
 			tagSource += "<img src='"+meetingPoint_icon+"'>";
 			tagSource += "<span style='"+meetingPoint_style+"'>"+document.forms[0].mytext.value+"<span>";
 			tagSource += "</div>";
 
 			var map_el = mapObject.getDomElement();
 			if (!map_el.ownerDocument.getElementById(mapObject.elementName + "_meetingPoint_permanent")) {
+		
 				//create Box Elements
 
 				var $div = parent.$("<div id='" + mapObject.elementName + "_meetingPoint_permanent'><img src='../img/redball.gif'/></div>");
@@ -182,12 +186,11 @@
 					position: "absolute",
 					top: "0px",
 					left: "0px",
-					zIndex: 13
+					zIndex: 1001
 				});
 				map_el.appendChild($div.get(0));
 			}
 			parent.$("#" + mapObject.elementName + "_meetingPoint_permanent").html(tagSource);
-			
 		}
 	}
 }
@@ -209,7 +212,6 @@
 //	document.forms[0].mytext.title = maxCharacterString;
 }
 
-*/
 -->
 </script>
 



More information about the Mapbender_commits mailing list