[Mapbender-commits] r1787 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Nov 8 10:05:38 EST 2007


Author: christoph
Date: 2007-11-08 10:05:37 -0500 (Thu, 08 Nov 2007)
New Revision: 1787

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:
buffer missed parseFloat

Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2007-11-08 13:19:50 UTC (rev 1786)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2007-11-08 15:05:37 UTC (rev 1787)
@@ -441,7 +441,8 @@
 	else if (event == "click"){
 		global_resultHighlight.del(currentGeom, cw_fillcolor);
 		var bbox = currentGeom.getBBox();
-		var buffer = new parent.Point(global_wfsConfObj[global_selectedWfsConfId].g_buffer,global_wfsConfObj[global_selectedWfsConfId].g_buffer);
+		var bufferFloat = parseFloat(global_wfsConfObj[global_selectedWfsConfId].g_buffer);
+		var buffer = new parent.Point(bufferFloat,bufferFloat);
 		bbox[0] = bbox[0].minus(buffer);
 		bbox[1] = bbox[1].plus(buffer);
 		parent.mb_calculateExtent(targetArray[0], bbox[0].x, bbox[0].y, bbox[1].x, bbox[1].y);



More information about the Mapbender_commits mailing list