[Mapbender-commits] r1361 - in trunk/mapbender/http: javascripts php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri May 25 05:28:27 EDT 2007
Author: christoph
Date: 2007-05-25 05:28:27 -0400 (Fri, 25 May 2007)
New Revision: 1361
Modified:
trunk/mapbender/http/javascripts/mod_highlightPOI.php
trunk/mapbender/http/php/mod_meetingPoint.php
Log:
corrected position of the marker (redball.gif)
Modified: trunk/mapbender/http/javascripts/mod_highlightPOI.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_highlightPOI.php 2007-05-25 08:59:17 UTC (rev 1360)
+++ trunk/mapbender/http/javascripts/mod_highlightPOI.php 2007-05-25 09:28:27 UTC (rev 1361)
@@ -58,14 +58,14 @@
if (poi_width){}
}
catch(e){
- poi_width = 20;
+ poi_width = 14;
}
try{
if (poi_height){}
}
catch(e){
- poi_height = 20;
+ poi_height = 14;
}
try{
Modified: trunk/mapbender/http/php/mod_meetingPoint.php
===================================================================
--- trunk/mapbender/http/php/mod_meetingPoint.php 2007-05-25 08:59:17 UTC (rev 1360)
+++ trunk/mapbender/http/php/mod_meetingPoint.php 2007-05-25 09:28:27 UTC (rev 1361)
@@ -105,14 +105,14 @@
if (meetingPoint_width){}
}
catch(e){
- meetingPoint_width = 7;
+ meetingPoint_width = 14;
}
try{
if (meetingPoint_height){}
}
catch(e){
- meetingPoint_height = 7;
+ meetingPoint_height = 14;
}
try{
@@ -198,7 +198,7 @@
parent.frames[mod_meetingPoint_target].document.getElementById('permanent').style.visibility = 'visible';
var tagSource = "";
var pos = parent.makeRealWorld2mapPos(mod_meetingPoint_target,document.forms[0].x.value, document.forms[0].y.value);
- tagSource += "<div style='z-index:13;position:absolute;left:"+(pos[0]- meetingPoint_width)+"px;top:"+(pos[1]-meetingPoint_height)+"px'>";
+ tagSource += "<div style='z-index:13;position:absolute;left:"+(pos[0]- Math.round(0.5*meetingPoint_width))+"px;top:"+(pos[1]-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>";
More information about the Mapbender_commits
mailing list