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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jul 28 03:50:49 EDT 2008


Author: christoph
Date: 2008-07-28 03:50:49 -0400 (Mon, 28 Jul 2008)
New Revision: 2732

Modified:
   branches/2.5/http/javascripts/geometry.js
Log:
added changes to geojson import for multi lines and multi polygons


Modified: branches/2.5/http/javascripts/geometry.js
===================================================================
--- branches/2.5/http/javascripts/geometry.js	2008-07-28 07:47:03 UTC (rev 2731)
+++ branches/2.5/http/javascripts/geometry.js	2008-07-28 07:50:49 UTC (rev 2732)
@@ -348,15 +348,15 @@
 																		// MULTILINESTRING
 																		//
 																		this.addMember(geomType.line);
-																		this.get(-1).addGeometry();
 																		for (var m = 0; m < coordinates.length; m++) {
+																			this.get(-1).addGeometry();
 																			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.getGeometry(-1,-1).setEpsg(featureEpsg);
 																		this.close();
 																		break;
 																	
@@ -372,8 +372,8 @@
 																				var currentPoint = currentPolygon[n];
 																				this.getGeometry(-1,-1).addPointByCoordinates(currentPoint[0], currentPoint[1]);
 																			}
+																			this.getGeometry(-1,-1).setEpsg(featureEpsg);
 																		}
-																		this.getGeometry(-1,-1).setEpsg(featureEpsg);
 																		this.close();
 																		break;
 																		
@@ -1215,7 +1215,7 @@
 	 */
 	this.isTooSmall = function(g){
 		// TODO switch between dot, original, circle
-		return false;
+//		return false;
 
 		var tmp = g.getBBox();
 		var min = realToMap(mapframe,tmp[0]);



More information about the Mapbender_commits mailing list