[Mapbender-commits] r3574 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Feb 18 12:37:14 EST 2009
Author: christoph
Date: 2009-02-18 12:37:14 -0500 (Wed, 18 Feb 2009)
New Revision: 3574
Modified:
trunk/mapbender/http/javascripts/geometry.js
Log:
geoJSON adjusted to conform with finalized spec 1.0
Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js 2009-02-18 17:36:04 UTC (rev 3573)
+++ trunk/mapbender/http/javascripts/geometry.js 2009-02-18 17:37:14 UTC (rev 3574)
@@ -772,7 +772,7 @@
var epsg = this.getEpsg();
if (epsg) {
- str += "\"crs\": {\"type\": \"EPSG\", \"properties\": {\"code\": " + epsg + "}}, ";
+ str += "\"crs\": {\"type\": \"name\", \"properties\": {\"name\": \"" + epsg + "\"}}, ";
}
str += "\"geometry\": {";
@@ -1028,10 +1028,9 @@
*/
this.setEpsg = function (someEpsg) {
// TODO: how to check if EPSG code is correct?
- if (typeof(someEpsg) == "number") {
- epsg = someEpsg;
- return true;
- }
+ epsg = someEpsg;
+ return true;
+
var e = new Mb_exception("EPSG code not valid ("+someEpsg+")");
return false;
};
More information about the Mapbender_commits
mailing list