Merge pull request #733 from ahocevar/fid

Store the feature's commonly used id. r=@fredj,@bartvde
This commit is contained in:
ahocevar
2013-05-24 06:15:00 -07:00
9 changed files with 51 additions and 2 deletions
+3
View File
@@ -144,6 +144,9 @@ ol.parser.GeoJSON.prototype.parseFeature_ = function(json, opt_options) {
geometry = null,
options = opt_options || {};
var feature = new ol.Feature(json.properties);
if (goog.isDef(json.id)) {
feature.setFeatureId(json.id);
}
if (geomJson) {
var type = geomJson.type;
var callback = options.callback;