[prev in list] [next in list] [prev in thread] [next in thread]
List: mapbender-commits
Subject: [Mapbender-commits] r2732 - branches/2.5/http/javascripts
From: svn_mapbender () osgeo ! org
Date: 2008-07-28 7:50:49
Message-ID: 20080728075049.4BA9FE00791 () lists ! osgeo ! org
[Download RAW message or body]
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]);
_______________________________________________
Mapbender_commits mailing list
Mapbender_commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic