[Mapbender-commits] r5235 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Dec 22 09:51:16 EST 2009
Author: christoph
Date: 2009-12-22 09:51:16 -0500 (Tue, 22 Dec 2009)
New Revision: 5235
Modified:
trunk/mapbender/http/php/mod_meetingPoint.php
Log:
Modified: trunk/mapbender/http/php/mod_meetingPoint.php
===================================================================
--- trunk/mapbender/http/php/mod_meetingPoint.php 2009-12-22 14:50:15 UTC (rev 5234)
+++ trunk/mapbender/http/php/mod_meetingPoint.php 2009-12-22 14:51:16 UTC (rev 5235)
@@ -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,7 +182,7 @@
//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",
@@ -190,7 +191,7 @@
});
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