FeatureId support in GML (r/w) and KML (w)
Now that we have FeatureId support (see #733), we can add this back to the GML parsers (v2 and v3). Also add write support for FeatureId in KML, read support was already added by @fredj
This commit is contained in:
@@ -280,7 +280,7 @@ describe('ol.parser.gml_v3', function() {
|
||||
expect(feature.getGeometry() instanceof
|
||||
ol.geom.MultiPolygon).to.be.ok();
|
||||
var attributes = feature.getAttributes();
|
||||
// TODO test for fid
|
||||
expect(feature.getFeatureId()).to.eql('states.1');
|
||||
expect(attributes['STATE_NAME']).to.eql('Illinois');
|
||||
expect(attributes['STATE_FIPS']).to.eql('17');
|
||||
expect(attributes['SUB_REGION']).to.eql('E N Cen');
|
||||
@@ -297,7 +297,7 @@ describe('ol.parser.gml_v3', function() {
|
||||
expect(feature.getGeometry() instanceof
|
||||
ol.geom.MultiPolygon).to.be.ok();
|
||||
var attributes = feature.getAttributes();
|
||||
// TODO test for fid
|
||||
expect(feature.getFeatureId()).to.eql('states.1');
|
||||
expect(attributes['STATE_NAME']).to.eql('Illinois');
|
||||
expect(attributes['STATE_FIPS']).to.eql('17');
|
||||
expect(attributes['SUB_REGION']).to.eql('E N Cen');
|
||||
|
||||
Reference in New Issue
Block a user