[Mapbender-commits] r3826 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Mar 27 06:30:35 EDT 2009
Author: christoph
Date: 2009-03-27 06:30:35 -0400 (Fri, 27 Mar 2009)
New Revision: 3826
Modified:
trunk/mapbender/http/javascripts/wfs.php
Log:
http://trac.osgeo.org/mapbender/ticket/406
Modified: trunk/mapbender/http/javascripts/wfs.php
===================================================================
--- trunk/mapbender/http/javascripts/wfs.php 2009-03-27 10:15:27 UTC (rev 3825)
+++ trunk/mapbender/http/javascripts/wfs.php 2009-03-27 10:30:35 UTC (rev 3826)
@@ -325,15 +325,18 @@
}
}
-function mb_wfs_perform(type,m){
+function mb_wfs_perform(type,m, colour){
+ if (typeof(colour) == "undefined") {
+ colour = "#ff0000";
+ }
var wfs_conf = window.frames["wfs_conf"].get_wfs_conf();
if(type=='over') {
- highlight.add(m, '#ff0000');
+ highlight.add(m, colour);
highlight.paint();
}
else if (type == 'out') {
- highlight.del(m, '#ff0000');
+ highlight.del(m, colour);
highlight.paint();
}
else
@@ -352,9 +355,9 @@
var bbox_ll = tmp[0].minus(buffer);
var bbox_ru = tmp[1].plus(buffer);
mb_calcExtent(mb_wfs_targets[0], bbox_ll, bbox_ru);
- highlight.del(m, '#ff0000');
+ highlight.del(m, colour);
zoom(mb_wfs_targets[0], 'true', 1.0);
- highlight.add(m, '#ff0000');
+ highlight.add(m, colour);
highlight.paint();
}
}
More information about the Mapbender_commits
mailing list