[Mapbender-commits] r1307 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed May 9 06:06:24 EDT 2007
Author: christoph
Date: 2007-05-09 06:06:24 -0400 (Wed, 09 May 2007)
New Revision: 1307
Modified:
trunk/mapbender/http/php/mod_wfs_gazetteer_ajax.php
Log:
highlight is now synchronised w/ map.php
Modified: trunk/mapbender/http/php/mod_wfs_gazetteer_ajax.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_gazetteer_ajax.php 2007-05-09 08:18:17 UTC (rev 1306)
+++ trunk/mapbender/http/php/mod_wfs_gazetteer_ajax.php 2007-05-09 10:06:24 UTC (rev 1307)
@@ -341,17 +341,17 @@
if (event == "over") {
if(g_use_wzgraphics == 1){
- resultHighlight.add(resultGeom.get(index), cw_fillcolor);
+ global_resultHighlight.add(resultGeom.get(index), cw_fillcolor);
}
}
else if (event == "out"){
if(g_use_wzgraphics == 1){
- resultHighlight.del(resultGeom.get(index), cw_fillcolor);
+ global_resultHighlight.del(resultGeom.get(index), cw_fillcolor);
}
}
else if (event == "click"){
if(g_use_wzgraphics == 1){
- resultHighlight.del(resultGeom.get(index), cw_fillcolor);
+ global_resultHighlight.del(resultGeom.get(index), cw_fillcolor);
}
var bbox = resultGeom.get(index).getBBox();
var buffer = new parent.Point(1,1);
@@ -360,7 +360,7 @@
parent.mb_calculateExtent(targetArray[0], bbox[0].x, bbox[0].y, bbox[1].x, bbox[1].y);
parent.zoom(targetArray[0], 'true', 1.0);
if(g_use_wzgraphics == 1){
- resultHighlight.add(resultGeom.get(index), cw_fillcolor);
+ global_resultHighlight.add(resultGeom.get(index), cw_fillcolor);
}
}
return true;
@@ -376,7 +376,13 @@
var point_px = 10;
var resultGeom = null;
-var resultHighlight = new parent.Highlight(targetArray, "wfs_gazetteer_highlight", {"position":"absolute", "top":"0px", "left":"0px", "z-index":100}, 2);
+var global_resultHighlight;
+
+parent.mb_registerInitFunctions("window.frames['"+this.name+"'].initWfsGazetteerHighlight()");
+
+function initWfsGazetteerHighlight() {
+ global_resultHighlight = new parent.Highlight(targetArray, "wfs_gazetteer_highlight", {"position":"absolute", "top":"0px", "left":"0px", "z-index":100}, 2);
+}
</script>
</head>
<body leftmargin='0' topmargin='10' bgcolor='#ffffff' onload='init_mod_wfs_gazetteer()'>
More information about the Mapbender_commits
mailing list