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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri May 21 04:33:29 EDT 2010


Author: verenadiewald
Date: 2010-05-21 04:33:27 -0400 (Fri, 21 May 2010)
New Revision: 6213

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
get snapping point for new geometries

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-05-19 13:01:01 UTC (rev 6212)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-05-21 08:33:27 UTC (rev 6213)
@@ -1227,7 +1227,12 @@
 
 		mod_digitizeEvent = obj.id;
 
+		//get a first snapping point for digitizing
 		if (mod_digitizeEvent == button_point || mod_digitizeEvent == button_line || mod_digitizeEvent == button_polygon || mod_digitizeEvent == button_insert ) {
+			s.store(d);
+		}
+		
+		if (mod_digitizeEvent == button_point || mod_digitizeEvent == button_line || mod_digitizeEvent == button_polygon || mod_digitizeEvent == button_insert ) {
 			//
 			// complete a previously unfinished geometry
 			//
@@ -1275,6 +1280,7 @@
 			}
 		}
 		else if (obj.id == button_line) {
+			//s.store(d);
 			if (d.count() > 0 && d.get(_currentGeomIndex).count() > 0 && !d.get(_currentGeomIndex).get(-1).isComplete()) {
 				if (d.get(_currentGeomIndex).geomType != parent.geomType.line) {
 //					d.close();



More information about the Mapbender_commits mailing list