[Mapbender-commits] r2319 - branches/2.5/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Apr 1 06:04:13 EDT 2008


Author: verenadiewald
Date: 2008-04-01 06:04:12 -0400 (Tue, 01 Apr 2008)
New Revision: 2319

Modified:
   branches/2.5/http/javascripts/geometry.js
Log:
changed function importGEOJSON for geomtype MultiLine

Modified: branches/2.5/http/javascripts/geometry.js
===================================================================
--- branches/2.5/http/javascripts/geometry.js	2008-03-31 10:12:39 UTC (rev 2318)
+++ branches/2.5/http/javascripts/geometry.js	2008-04-01 10:04:12 UTC (rev 2319)
@@ -350,8 +350,11 @@
 																		this.addMember(geomType.line);
 																		this.get(-1).addGeometry();
 																		for (var m = 0; m < coordinates.length; m++) {
-																			var currentPoint = coordinates[m];
-																			this.getGeometry(-1,-1).addPointByCoordinates(currentPoint[0], currentPoint[1]);
+																			var currentLine = coordinates[m];
+																			for (var n = 0; n < currentLine.length; n++) {
+																				var currentPoint = currentLine[n];
+																				this.getGeometry(-1,-1).addPointByCoordinates(currentPoint[0], currentPoint[1]);
+																			}
 																		}
 																		this.getGeometry(-1,-1).setEpsg(featureEpsg);
 																		this.close();



More information about the Mapbender_commits mailing list