@@ -4,7 +4,7 @@ import { AllGeoJSON, isNumber } from "@turf/helpers";
44import { clone } from "@turf/clone" ;
55
66/**
7- * Converts a WGS84 GeoJSON object into Mercator (EPSG:900913 ) projection
7+ * Converts a WGS84 GeoJSON object into Mercator (EPSG:3857 ) projection
88 *
99 * @function
1010 * @param {GeoJSON|Position } geojson WGS84 GeoJSON object
@@ -26,7 +26,7 @@ function toMercator<G = AllGeoJSON | Position>(
2626}
2727
2828/**
29- * Converts a Mercator (EPSG:900913 ) GeoJSON object into WGS84 projection
29+ * Converts a Mercator (EPSG:3857 ) GeoJSON object into WGS84 projection
3030 *
3131 * @function
3232 * @param {GeoJSON|Position } geojson Mercator GeoJSON object
@@ -93,7 +93,7 @@ function convert(
9393}
9494
9595/**
96- * Convert lon/lat values to 900913 x/y.
96+ * Convert lon/lat values to 3857 x/y.
9797 * (from https://github.com/mapbox/sphericalmercator)
9898 *
9999 * @private
@@ -102,7 +102,7 @@ function convert(
102102 */
103103function convertToMercator ( lonLat : number [ ] ) {
104104 var D2R = Math . PI / 180 ,
105- // 900913 properties
105+ // 3857 properties
106106 A = 6378137.0 ,
107107 MAXEXTENT = 20037508.342789244 ;
108108
@@ -125,15 +125,15 @@ function convertToMercator(lonLat: number[]) {
125125}
126126
127127/**
128- * Convert 900913 x/y values to lon/lat.
128+ * Convert 3857 x/y values to lon/lat.
129129 * (from https://github.com/mapbox/sphericalmercator)
130130 *
131131 * @private
132132 * @param {Array<number> } xy Mercator [x, y] point
133133 * @returns {Array<number> } WGS84 [lon, lat] point
134134 */
135135function convertToWgs84 ( xy : number [ ] ) {
136- // 900913 properties.
136+ // 3857 properties.
137137 var R2D = 180 / Math . PI ;
138138 var A = 6378137.0 ;
139139
0 commit comments