mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Do not localize decimalCoordinatePair appearing in info panels
(closes #4765)
This commit is contained in:
@@ -144,12 +144,13 @@ export function dmsCoordinatePair(coord) {
|
||||
|
||||
/**
|
||||
* Returns the given coordinate pair in decimal format.
|
||||
* note: unlocalized to avoid comma ambiguity - see #4765
|
||||
*
|
||||
* @param {Array<Number>} coord longitude and latitude
|
||||
*/
|
||||
export function decimalCoordinatePair(coord) {
|
||||
return t('units.coordinate_pair', {
|
||||
latitude: clamp(coord[1], -90, 90).toLocaleString(locale, { maximumFractionDigits: OSM_PRECISION }),
|
||||
longitude: wrap(coord[0], -180, 180).toLocaleString(locale, { maximumFractionDigits: OSM_PRECISION })
|
||||
latitude: clamp(coord[1], -90, 90).toFixed(OSM_PRECISION),
|
||||
longitude: wrap(coord[0], -180, 180).toFixed(OSM_PRECISION)
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user