ol.Projection now takes a single argument

which is called ol.ProjectionOptions.
This commit is contained in:
Bruno Binet
2013-03-06 19:41:10 +01:00
parent 8dd3093f4c
commit 9d88273161
7 changed files with 51 additions and 26 deletions

View File

@@ -14,9 +14,12 @@ goog.require('ol.source.SingleImageWMS');
goog.require('ol.source.TiledWMS');
var epsg21781 = new ol.Projection('EPSG:21781', ol.ProjectionUnits.METERS,
// Validity extent from http://spatialreference.org
new ol.Extent(485869.5728, 76443.1884, 837076.5648, 299941.7864));
var epsg21781 = new ol.Projection({
code: 'EPSG:21781',
units: ol.ProjectionUnits.METERS,
// Validity extent from http://spatialreference.org
extent: new ol.Extent(485869.5728, 76443.1884, 837076.5648, 299941.7864)
});
ol.projection.addProjection(epsg21781);
var extent = new ol.Extent(420000, 30000, 900000, 350000);