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

@@ -305,8 +305,16 @@ describe('ol.projection', function() {
var units = ol.ProjectionUnits.DEGREES;
it('removes functions cached by addTransform', function() {
var foo = new ol.Projection('foo', units, extent);
var bar = new ol.Projection('bar', units, extent);
var foo = new ol.Projection({
code: 'foo',
units: units,
extent: extent
});
var bar = new ol.Projection({
code: 'bar',
units: units,
extent: extent
});
var transform = function(input, output, dimension) {return input};
ol.projection.addTransform(foo, bar, transform);
expect(ol.projection.transforms_).not.toBeUndefined();