Parse MVT id property

This commit is contained in:
drnextgis
2016-07-19 11:34:44 +07:00
parent 8a0f18de56
commit 2685dd1bd9
2 changed files with 11 additions and 0 deletions

View File

@@ -65,6 +65,15 @@ where('ArrayBuffer').describe('ol.format.MVT', function() {
.to.eql([rawGeometry[1][0].x, rawGeometry[1][0].y]);
});
it('parses id property', function() {
var format = new ol.format.MVT({
featureClass: ol.Feature,
layers: ['building']
});
var features = format.readFeatures(data);
expect(features[0].getId()).to.be(2);
});
});
});