Improve docs for projection

This commit is contained in:
Peter Robins
2014-07-12 11:21:59 +00:00
parent 046ae42b38
commit 96ec96c4d5
4 changed files with 54 additions and 11 deletions

View File

@@ -12,6 +12,10 @@ goog.require('ol.source.ImageWMS');
// known to Proj4js if it is unknown to OpenLayers, and registers functions to
// transform between all registered projections.
// EPSG:21781 is known to Proj4js because its definition was loaded in the html.
// Note that we are getting the projection object here to set the extent. If
// you do not need this, you do not have to use ol.proj.get(); simply use the
// string code in the view projection below and the transforms will be
// registered transparently.
var projection = ol.proj.get('EPSG:21781');
// The extent is used to determine zoom level 0. Recommended values for a
// projection's validity extent can be found at http://epsg.io/.