svn commit: r971 - trunk/mapbender/http/javascripts/wfs.js
christoph at osgeo.org
christoph at osgeo.org
Tue Dec 5 03:14:47 EST 2006
Author: christoph
Date: 2006-12-05 08:14:47+0000
New Revision: 971
Modified:
trunk/mapbender/http/javascripts/wfs.js
Log:
moved code from file mod_digitize_tab.php to function mb_wfs_perform
Modified: trunk/mapbender/http/javascripts/wfs.js
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/wfs.js?view=diff&rev=971&p1=trunk/mapbender/http/javascripts/wfs.js&p2=trunk/mapbender/http/javascripts/wfs.js&r1=970&r2=971
==============================================================================
--- trunk/mapbender/http/javascripts/wfs.js (original)
+++ trunk/mapbender/http/javascripts/wfs.js 2006-12-05 08:14:47+0000
@@ -358,7 +358,10 @@
else if(type=='out') highlight.del(m);
else if(type=='click') {
var tmp = m.getBBox();
- var b = parseFloat(wfs_conf[m.wfs_conf]['g_buffer']);
+ var b = 0;
+ if (m.wfs_conf != -1) {
+ 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);
More information about the Mapbender_commits
mailing list