Add test for ol.Projection getMetersPerUnit method
This commit is contained in:
@@ -205,7 +205,6 @@ describe('ol.projection', function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
describe('ol.projection.getTransformFromCodes()', function() {
|
describe('ol.projection.getTransformFromCodes()', function() {
|
||||||
|
|
||||||
it('returns a function', function() {
|
it('returns a function', function() {
|
||||||
@@ -305,6 +304,15 @@ describe('ol.projection', function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('ol.Projection.prototype.getMetersPerUnit()', function() {
|
||||||
|
|
||||||
|
it('returns value in meters', function() {
|
||||||
|
var epsg4326 = ol.projection.getFromCode('EPSG:4326');
|
||||||
|
expect(epsg4326.getMetersPerUnit()).toEqual(111317.09969219835);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
goog.require('goog.array');
|
goog.require('goog.array');
|
||||||
|
|||||||
Reference in New Issue
Block a user