From 362c9b6851c69c06c325ab9c4d6078b7de13efd2 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 26 Mar 2015 10:52:19 +0100 Subject: [PATCH] Clarification of the purpose of ol.proj.addProjection --- examples/wms-custom-proj.js | 3 ++- src/ol/proj/proj.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/wms-custom-proj.js b/examples/wms-custom-proj.js index 1a34e76ed1..eeb37c9c52 100644 --- a/examples/wms-custom-proj.js +++ b/examples/wms-custom-proj.js @@ -12,7 +12,8 @@ goog.require('ol.source.TileWMS'); // By default OpenLayers does not know about the EPSG:21781 (Swiss) projection. // So we create a projection instance for EPSG:21781 and pass it to -// ol.proj.addProjection to make it available to the library. +// ol.proj.addProjection to make it available to the library for lookup by its +// code. var projection = new ol.proj.Projection({ code: 'EPSG:21781', diff --git a/src/ol/proj/proj.js b/src/ol/proj/proj.js index a93afe14c2..772bfa20b9 100644 --- a/src/ol/proj/proj.js +++ b/src/ol/proj/proj.js @@ -427,7 +427,8 @@ ol.proj.addEquivalentTransforms = /** - * Add a Projection object to the list of supported projections. + * Add a Projection object to the list of supported projections that can be + * looked up by their code. * * @param {ol.proj.Projection} projection Projection instance. * @api stable