[Mapbender-commits] r1960 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jan 15 02:45:19 EST 2008
Author: christoph
Date: 2008-01-15 02:45:18 -0500 (Tue, 15 Jan 2008)
New Revision: 1960
Modified:
trunk/mapbender/http/javascripts/geometry.js
Log:
added EPSG, some bug fixes
Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js 2008-01-14 12:34:18 UTC (rev 1959)
+++ trunk/mapbender/http/javascripts/geometry.js 2008-01-15 07:45:18 UTC (rev 1960)
@@ -257,8 +257,8 @@
break;
case "crs":
if (geoJSON[i]["type"] == "EPSG") {
- featureCollectionEpsg = geoJSON[i]["properties"];
- featureEpsg = geoJSON[i]["properties"];
+ featureCollectionEpsg = geoJSON[i]["properties"]["code"];
+ featureEpsg = geoJSON[i]["properties"]["code"];
}
break;
case "features":
@@ -296,7 +296,7 @@
case "crs":
if (currentFeature[k]["type"] == "EPSG") {
- featureEpsg = currentFeature[k]["properties"];
+ featureEpsg = currentFeature[k]["properties"]["code"];
}
break;
@@ -632,7 +632,7 @@
var epsg = this.getEpsg();
if (epsg) {
- str = "\"crs\": {\"type\": \"EPSG\", \"properties\": {\"code\": " + epsg + "}}, ";
+ str += "\"crs\": {\"type\": \"EPSG\", \"properties\": {\"code\": " + epsg + "}}, ";
}
str += "\"geometry\": ";
@@ -932,6 +932,7 @@
var str = "";
var epsgStr = "";
+ var epsg = getEpsg();
if (epsg) {
epsgStr = "\"crs\": {\"type\": \"EPSG\", \"properties\": {\"code\": " + epsg + "}}, ";
}
More information about the Mapbender_commits
mailing list