Add getters to BingMaps source for api key and imagerySet

This commit is contained in:
Bart van den Eijnden
2016-10-12 15:53:20 +02:00
parent cbf5d0bae0
commit df4f2ff28d
2 changed files with 44 additions and 2 deletions

View File

@@ -37,6 +37,14 @@ describe('ol.source.BingMaps', function() {
});
});
it('getImagerySet works correctly', function() {
expect(source.getImagerySet()).to.equal('AerialWithLabels');
});
it('getApiKey works correctly', function() {
expect(source.getApiKey()).to.equal('');
});
it('returns the expected URL', function() {
var coordinate = [829330.2064098881, 5933916.615134273];