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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jul 30 05:34:33 EDT 2010


Author: christoph
Date: 2010-07-30 09:34:33 +0000 (Fri, 30 Jul 2010)
New Revision: 6660

Modified:
   trunk/mapbender/http/javascripts/mod_copyright.php
Log:
set copyright afterInit, not afterMapRequest

Modified: trunk/mapbender/http/javascripts/mod_copyright.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_copyright.php	2010-07-30 09:33:43 UTC (rev 6659)
+++ trunk/mapbender/http/javascripts/mod_copyright.php	2010-07-30 09:34:33 UTC (rev 6660)
@@ -24,34 +24,25 @@
 var mod_copyright_text = options.mod_copyright_text;
 
 var mod_copyright_left = 5;
-var mod_copyright_bottom = 25;
+var mod_copyright_bottom = 20;
 var mod_copyright_color1 = "white";
 var mod_copyright_color2 = "black";
 var mod_copyright_font = "Arial, Helvetica, sans-serif";
 var mod_copyright_fontsize = "9px";
 
-eventAfterMapRequest.register(function () {
+eventAfterInit.register(function () {
 	mod_copyright();
 });
 function mod_copyright(){
 	var myMapObj = Mapbender.modules[mod_copyright_target];
 
-	var str_c = "<div>";
-	str_c += "<img src='../img/transparent.gif' width ='"+myMapObj.width+"' height='"+myMapObj.height+"'>";
-	str_c += "<div style='font-family:"+mod_copyright_font+";font-size:"+mod_copyright_fontsize+";color:"+mod_copyright_color1+";position:absolute;top:"+(myMapObj.height - (mod_copyright_bottom-1))+"px;left:"+mod_copyright_left+"px'>"+mod_copyright_text+"</div>";
-	str_c += "<div style='font-family:"+mod_copyright_font+";font-size:"+mod_copyright_fontsize+";color:"+mod_copyright_color1+";position:absolute;top:"+(myMapObj.height - mod_copyright_bottom)+"px;left:"+mod_copyright_left+"px'>"+mod_copyright_text+"</div>";
-	str_c += "<div style='font-family:"+mod_copyright_font+";font-size:"+mod_copyright_fontsize+";color:"+mod_copyright_color2+";position:absolute;top:"+(myMapObj.height - mod_copyright_bottom)+"px;left:"+(mod_copyright_left+1)+"px'>"+mod_copyright_text+"</div>";
-	str_c += "</div>";
-
+	var str_c = "<div style='z-index:70;font-family:" + mod_copyright_font + ";font-size:" + mod_copyright_fontsize + ";color:" + mod_copyright_color2 + ";position:absolute;bottom:5px;right:5px'>"+mod_copyright_text+"</div>";
+	
 	var map_el = myMapObj.getDomElement();
 	if(!map_el.ownerDocument.getElementById(myMapObj.elementName+"_copyright")){
 		//create Box Elements
 		var el_top = map_el.ownerDocument.createElement("div");
-		el_top.style.position = "absolute";
-		el_top.style.top = "0px";
-		el_top.style.left = "0px";
 		el_top.style.overflow = "hidden";
-		el_top.style.zIndex = "70";
 		el_top.id = myMapObj.elementName+"_copyright";
 		map_el.appendChild(el_top);
 	}



More information about the Mapbender_commits mailing list