Skip to content

Commit d414c17

Browse files
committed
Merge pull request #42 from wmde/one-degree
Display 1 degree as number, not text
2 parents 85b434a + f70e434 commit d414c17

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ On [Packagist](https://packagist.org/packages/data-values/javascript):
2121

2222
* Removed the arbitrary list of precisions for globe coordinates
2323

24+
#### Enhancements
25+
26+
* #42 Removed 'to a degree' label, now shown as '±1°'
27+
2428
### 0.5.1 (2014-06-04)
2529

2630
#### Bugfixes

lib/globeCoordinate/globeCoordinate.Formatter.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ globeCoordinate.Formatter = ( function( globeCoordinate ) {
2424
minute: '\'',
2525
second: '"',
2626
precisionTexts: [
27-
{ precision: 1, text: 'to a degree' },
2827
{ precision: 1 / 60, text: 'to an arcminute' },
2928
{ precision: 1 / 3600, text: 'to an arcsecond' },
3029
{ precision: 1 / 36000, text: 'to 1/10 of an arcsecond' },

tests/lib/globeCoordinate/globeCoordinate.Formatter.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ define( [
5252

5353
QUnit.test( 'precisionText()', function( assert ) {
5454
var precisions = {
55-
1: 'to a degree',
55+
1: '±1°',
5656
0.016666666666666666: 'to an arcminute',
5757
2.7777777777777776e-7: 'to 1/1000 of an arcsecond',
5858
10: '±10°'

0 commit comments

Comments
 (0)