Loading README.md +2 −2 Original line number Diff line number Diff line Loading @@ -95,8 +95,8 @@ proj4('EPSG:4326'); instead of writing out the whole proj definition, by default proj4 has the following projections predefined: - 'EPSG:4326', which has the following alias - 'WGS84' - 'EPSG:4326' - 'EPSG:4269' - 'EPSG:3857', which has the following aliases - 'EPSG:3785' Loading lib/global.js +1 −1 Original line number Diff line number Diff line module.exports = function(defs) { defs('WGS84', "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"); defs('EPSG:4326', "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"); defs('EPSG:4269', "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"); defs('EPSG:3857', "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"); defs.WGS84 = defs['EPSG:4326']; defs['EPSG:3785'] = defs['EPSG:3857']; // maintain backward compat, official code is 3857 defs.GOOGLE = defs['EPSG:3857']; defs['EPSG:900913'] = defs['EPSG:3857']; Loading Loading
README.md +2 −2 Original line number Diff line number Diff line Loading @@ -95,8 +95,8 @@ proj4('EPSG:4326'); instead of writing out the whole proj definition, by default proj4 has the following projections predefined: - 'EPSG:4326', which has the following alias - 'WGS84' - 'EPSG:4326' - 'EPSG:4269' - 'EPSG:3857', which has the following aliases - 'EPSG:3785' Loading
lib/global.js +1 −1 Original line number Diff line number Diff line module.exports = function(defs) { defs('WGS84', "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"); defs('EPSG:4326', "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"); defs('EPSG:4269', "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"); defs('EPSG:3857', "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"); defs.WGS84 = defs['EPSG:4326']; defs['EPSG:3785'] = defs['EPSG:3857']; // maintain backward compat, official code is 3857 defs.GOOGLE = defs['EPSG:3857']; defs['EPSG:900913'] = defs['EPSG:3857']; Loading