[Mapbender-commits] r7103 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Nov 11 03:30:46 EST 2010
Author: christoph
Date: 2010-11-11 00:30:46 -0800 (Thu, 11 Nov 2010)
New Revision: 7103
Modified:
trunk/mapbender/http/javascripts/geometry.js
Log:
set fid of JS geometry object only if id attribute is present in GeoJSON
Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js 2010-11-10 15:10:44 UTC (rev 7102)
+++ trunk/mapbender/http/javascripts/geometry.js 2010-11-11 08:30:46 UTC (rev 7103)
@@ -589,7 +589,9 @@
this.get(-1).e.setElement(l, properties[l]);
}
}
- this.get(-1).e.setElement("fid", currentFeature.id);
+ if (currentFeature.id) {
+ this.get(-1).e.setElement("fid", currentFeature.id);
+ }
}
}
};
More information about the Mapbender_commits
mailing list