Pad min. and sec. with leading zeros in DMS notation

FIxes 3776
This commit is contained in:
Pierre GIRAUD
2015-06-25 08:40:43 +02:00
parent 28450cbb5a
commit 1cdfc709ae
2 changed files with 4 additions and 3 deletions

View File

@@ -206,7 +206,7 @@ describe('ol.coordinate', function() {
it('formats a coord as expected', function() {
var coord = [7.85, 47.983333];
var got = ol.coordinate.toStringHDMS(coord);
var expected = '47° 59 0″ N 7° 51 0″ E';
var expected = '47° 59 00″ N 7° 51 00″ E';
expect(got).to.be(expected);
});
});