From 88814364fdb8e42c280601ffda221f9448d1901e Mon Sep 17 00:00:00 2001 From: Dom Brassey Date: Thu, 30 Sep 2021 11:25:05 -0700 Subject: [PATCH 1/3] replace EPSG:4326 with OGC:CRS84 --- src/geo/lng_lat.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/geo/lng_lat.js b/src/geo/lng_lat.js index 1315243fe75..41690d3891b 100644 --- a/src/geo/lng_lat.js +++ b/src/geo/lng_lat.js @@ -12,10 +12,9 @@ export const earthRadius = 6371008.8; /** * A `LngLat` object represents a given longitude and latitude coordinate, measured in degrees. - * These coordinates are based on the [WGS84 (EPSG:4326) standard](https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84). - * - * Mapbox GL uses longitude, latitude coordinate order (as opposed to latitude, longitude) to match the - * [GeoJSON specification](https://tools.ietf.org/html/rfc7946). + * These coordinates are based on the [WGS84 (EPSG:4326 projection) standard](https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84), + * but Mapbox GL uses longitude, latitude coordinate order (as opposed to latitude, longitude) + * to match the [GeoJSON specification](https://datatracker.ietf.org/doc/html/rfc7946#section-4). * * Note that any Mapbox GL method that accepts a `LngLat` object as an argument or option * can also accept an `Array` of two numbers and will perform an implicit conversion. From 2d12e4cbbeeb03cee9e747a29c14817bfdb139ff Mon Sep 17 00:00:00 2001 From: Dom Brassey Date: Thu, 30 Sep 2021 11:25:14 -0700 Subject: [PATCH 2/3] replace EPSG:4326 with OGC:CRS84 --- src/geo/lng_lat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/geo/lng_lat.js b/src/geo/lng_lat.js index 41690d3891b..16da0e033f4 100644 --- a/src/geo/lng_lat.js +++ b/src/geo/lng_lat.js @@ -12,9 +12,9 @@ export const earthRadius = 6371008.8; /** * A `LngLat` object represents a given longitude and latitude coordinate, measured in degrees. - * These coordinates are based on the [WGS84 (EPSG:4326 projection) standard](https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84), - * but Mapbox GL uses longitude, latitude coordinate order (as opposed to latitude, longitude) - * to match the [GeoJSON specification](https://datatracker.ietf.org/doc/html/rfc7946#section-4). + * These coordinates use longitude, latitude coordinate order (as opposed to latitude, longitude) + * to match the [GeoJSON specification](https://datatracker.ietf.org/doc/html/rfc7946#section-4), + * which is equivalent to the [OGC:CRS84 coordinate reference system](https://datatracker.ietf.org/doc/html/rfc7946#section-4). * * Note that any Mapbox GL method that accepts a `LngLat` object as an argument or option * can also accept an `Array` of two numbers and will perform an implicit conversion. From 54201b8d3fe24997aecd5079298ed10d562aeff4 Mon Sep 17 00:00:00 2001 From: Dom Brassey Date: Fri, 1 Oct 2021 10:01:03 -0700 Subject: [PATCH 3/3] remove duplicate link to GeoJSON spec --- src/geo/lng_lat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geo/lng_lat.js b/src/geo/lng_lat.js index 16da0e033f4..f071ddb4af8 100644 --- a/src/geo/lng_lat.js +++ b/src/geo/lng_lat.js @@ -14,7 +14,7 @@ export const earthRadius = 6371008.8; * A `LngLat` object represents a given longitude and latitude coordinate, measured in degrees. * These coordinates use longitude, latitude coordinate order (as opposed to latitude, longitude) * to match the [GeoJSON specification](https://datatracker.ietf.org/doc/html/rfc7946#section-4), - * which is equivalent to the [OGC:CRS84 coordinate reference system](https://datatracker.ietf.org/doc/html/rfc7946#section-4). + * which is equivalent to the OGC:CRS84 coordinate reference system. * * Note that any Mapbox GL method that accepts a `LngLat` object as an argument or option * can also accept an `Array` of two numbers and will perform an implicit conversion.