[Mapbender-commits] r5230 - branches/2.6/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Dec 22 09:40:42 EST 2009


Author: christoph
Date: 2009-12-22 09:40:41 -0500 (Tue, 22 Dec 2009)
New Revision: 5230

Modified:
   branches/2.6/http/php/mod_meetingPoint.php
Log:


Modified: branches/2.6/http/php/mod_meetingPoint.php
===================================================================
--- branches/2.6/http/php/mod_meetingPoint.php	2009-12-22 13:38:15 UTC (rev 5229)
+++ branches/2.6/http/php/mod_meetingPoint.php	2009-12-22 14:40:41 UTC (rev 5230)
@@ -27,6 +27,7 @@
 <?php
 include '../include/dyn_css.php';
 ?>
+<script type="text/javascript" src="../extensions/jquery-1.3.2.min.js"></script>
 <script language='JavaScript'>
 <!--
 <?php
@@ -153,10 +154,10 @@
 
 function mod_meetingPoint_hide(){
 	var mapObject = parent.getMapObjByName(mod_meetingPoint_target);
-//	parent.$("#" + mapObject.elementName + "_meetingPoint_permanent").css({
+//	$("#" + mapObject.elementName + "_meetingPoint_permanent").css({
 //		visibility:"hidden"
 //	});
-	parent.$("#" + mapObject.elementName + "_meetingPoint_permanent").empty();
+	$("#" + mapObject.elementName + "_meetingPoint_permanent").empty();
 }
 
 
@@ -172,8 +173,8 @@
 			var meetingPointClickPos = mapObject.convertRealToPixel(mod_meetingPointRealPoint);
 			var tagSource = "";
 			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 += "<img src='"+meetingPoint_icon+"' />";
+			tagSource += "<span style='"+meetingPoint_style+"'>"+document.forms[0].mytext.value+"</span>";
 			tagSource += "</div>";
 
 			var map_el = mapObject.getDomElement();
@@ -181,16 +182,16 @@
 		
 				//create Box Elements
 
-				var $div = parent.$("<div id='" + mapObject.elementName + "_meetingPoint_permanent'><img src='../img/redball.gif'/></div>");
+				var $div = $("<div id='" + mapObject.elementName + "_meetingPoint_permanent'></div>");
 				$div.css({
 					position: "absolute",
 					top: "0px",
 					left: "0px",
-					zIndex: 13
+					zIndex: 20
 				});
 				map_el.appendChild($div.get(0));
 			}
-			parent.$("#" + mapObject.elementName + "_meetingPoint_permanent").html(tagSource);
+			$(parent.document.getElementById(mapObject.elementName + "_meetingPoint_permanent")).html(tagSource);
 		}
 	}
 }



More information about the Mapbender_commits mailing list