svn commit: r976 - trunk/mapbender/http/javascripts/mod_initWmc.php

christoph at osgeo.org christoph at osgeo.org
Mon Dec 11 06:06:32 EST 2006


Author: christoph
Date: 2006-12-11 11:06:32+0000
New Revision: 976

Modified:
   trunk/mapbender/http/javascripts/mod_initWmc.php

Log:
icon is now centered over meeting point

Modified: trunk/mapbender/http/javascripts/mod_initWmc.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_initWmc.php?view=diff&rev=976&p1=trunk/mapbender/http/javascripts/mod_initWmc.php&p2=trunk/mapbender/http/javascripts/mod_initWmc.php&r1=975&r2=976
==============================================================================
--- trunk/mapbender/http/javascripts/mod_initWmc.php	(original)
+++ trunk/mapbender/http/javascripts/mod_initWmc.php	2006-12-11 11:06:32+0000
@@ -93,7 +93,20 @@
 				$js_kml .= "\talert('Fatal error: Element id is already taken!');\n";
 				$js_kml .= "}\n";
 				$js_kml .= "else {\n";
-				$js_kml .= "node.innerHTML = \"<table cellspacing=0 cellpadding=0><tr><td bgcolor=#000000><img width=0 height=100 border=1></td><td valign=top>";
+				$js_kml .= "node.innerHTML = \"<table cellspacing=0 cellpadding=0><tr><td bgcolor=#000000><img width=0 height=100 border=1></td></tr></table>\";";
+				$js_kml .= "}\n";
+				$js_kml .= "myPoint.x -= 36;";
+				$js_kml .= "myPoint.y -= 6;";
+				$js_kml .= "var attributes = new Array();\n";
+				$js_kml .= "attributes[0] = new Array();\n";
+				$js_kml .= "attributes[0][0] = 'style';\n";
+				$js_kml .= "attributes[0][1] = 'position:absolute; top:'+myPoint.y+'px; left:'+myPoint.x+'px; z-index:100; font-size:10px';\n"; 
+				$js_kml .= "node = mb_checkTag('".$e_target[0]."', 'div', 'meeting_logo', 'body', attributes);\n";
+				$js_kml .= "if (node == false) {\n";
+				$js_kml .= "\talert('Fatal error: Element id is already taken!');\n";
+				$js_kml .= "}\n";
+				$js_kml .= "else {\n";
+				$js_kml .= "node.innerHTML = \"";
 				$js_img .= "<img border='0' src='".$icon."' title='".$alt."'>";
 				if ($url) {
 					$js_img = "<a href='".$url."' target='_blank'>" . $js_img . "</a>";




More information about the Mapbender_commits mailing list