Clarification of the purpose of ol.proj.addProjection

This commit is contained in:
Andreas Hocevar
2015-03-26 10:52:19 +01:00
parent a920cd94d9
commit 362c9b6851
2 changed files with 4 additions and 2 deletions

View File

@@ -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',

View File

@@ -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