[Webflysuesk-commits] r52 - webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 8 16:09:00 CEST 2009


Author: iweinzierl
Date: 2009-04-08 16:09:00 +0200 (Wed, 08 Apr 2009)
New Revision: 52

Modified:
   webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/InteractiveRangeSelection.js
Log:
Bugfix: markers are only drawn when the tool is activated.

Modified: webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/InteractiveRangeSelection.js
===================================================================
--- webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/InteractiveRangeSelection.js	2009-04-08 13:59:47 UTC (rev 51)
+++ webflysuesk/branches/openlayers-integration/webflys/src/main/webapp/pages/InteractiveRangeSelection.js	2009-04-08 14:09:00 UTC (rev 52)
@@ -176,6 +176,11 @@
  * {<OpenLayers.Bounds>} BoundingBox with the clickpoint as center.
  */
 function createBBoxFromPoint(lonlat) {
+
+    var res = map.getResolutionForZoom(map.getZoom());
+    console.log('Resolution: ' + res);
+    //var buf = calcBufferSize(res);
+
     var minx = lonlat.lon - buffer;
     var miny = lonlat.lat - buffer;
     var maxx = lonlat.lon + buffer;
@@ -186,6 +191,18 @@
 
 
 /**
+ * Method: calcBufferSize
+ * This method calculates a buffer on the basis of the resolution of the map.
+ *
+ * Returns:
+ * {Number} Size
+ */
+function calcBufferSize(res) {
+    
+}
+
+
+/**
  * Method: changeRange
  * Changes the content of the range fields 'from' and 'to' in the parameter
  * panel.



More information about the Webflysuesk-commits mailing list