[Mapbender-commits] r2234 - branches/2.5/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Mar 13 06:47:52 EDT 2008
Author: christoph
Date: 2008-03-13 06:47:52 -0400 (Thu, 13 Mar 2008)
New Revision: 2234
Modified:
branches/2.5/http/javascripts/wfs.js
Log:
Highlight: added paint method after del
Modified: branches/2.5/http/javascripts/wfs.js
===================================================================
--- branches/2.5/http/javascripts/wfs.js 2008-03-13 10:46:10 UTC (rev 2233)
+++ branches/2.5/http/javascripts/wfs.js 2008-03-13 10:47:52 UTC (rev 2234)
@@ -165,7 +165,10 @@
highlight.add(mb_wfs_fetch.get(i), '#00ff00');
highlight.paint();
}
- else highlight.del(mb_wfs_fetch.get(i), '#00ff00');
+ else {
+ highlight.del(mb_wfs_fetch.get(i), '#00ff00');
+ highlight.paint();
+ }
}
function mb_wfs_perform(type,m){
@@ -175,24 +178,28 @@
highlight.add(m, '#0000ff');
highlight.paint();
}
- else if(type=='out') highlight.del(m, '#0000ff');
- else if(type=='click') {
- var tmp = m.getBBox();
- if (m.geomType == geomType.point) {
- var b = 1;
+ else if (type == 'out') {
+ highlight.del(m, '#0000ff');
+ highlight.paint();
+ }
+ else
+ if (type == 'click') {
+ var tmp = m.getBBox();
+ if (m.geomType == geomType.point) {
+ var b = 1;
+ }
+ else {
+ var b = 0;
+ }
+ if (typeof(m.wfs_conf) != "undefined") {
+ b = parseFloat(wfs_conf[m.wfs_conf]['g_buffer']);
+ }
+ var buffer = new Point(b, b);
+ var bbox_ll = tmp[0].minus(buffer);
+ var bbox_ru = tmp[1].plus(buffer);
+ mb_calcExtent(mb_wfs_targets[0], bbox_ll, bbox_ru);
+ zoom(mb_wfs_targets[0], 'true', 1.0);
}
- else {
- var b = 0;
- }
- if (typeof(m.wfs_conf) != "undefined") {
- b = parseFloat(wfs_conf[m.wfs_conf]['g_buffer']);
- }
- var buffer = new Point(b,b);
- var bbox_ll = tmp[0].minus(buffer);
- var bbox_ru = tmp[1].plus(buffer);
- mb_calcExtent(mb_wfs_targets[0],bbox_ll, bbox_ru);
- zoom(mb_wfs_targets[0], 'true', 1.0);
- }
}
function get_wfs_str(myconf, d, m, type, fid) {
More information about the Mapbender_commits
mailing list