Rename ol.Projection to ol.proj.Projection

This commit is contained in:
Tim Schaub
2013-08-30 14:19:05 -06:00
parent b192335e56
commit 3b20cc7b53
29 changed files with 119 additions and 119 deletions

View File

@@ -47,7 +47,7 @@ describe('ol.proj.EPSG2056', function() {
beforeEach(function() {
ol.proj.EPSG2056.add();
epsg2056 = ol.proj.get('EPSG:2056');
expect(epsg2056).to.be.an(ol.Projection);
expect(epsg2056).to.be.an(ol.proj.Projection);
});
it('transforms from EPSG:2056 to EPSG:4326', function() {
@@ -82,7 +82,7 @@ describe('ol.proj.EPSG21781', function() {
beforeEach(function() {
ol.proj.EPSG21781.add();
epsg21781 = ol.proj.get('EPSG:21781');
expect(epsg21781).to.be.an(ol.Projection);
expect(epsg21781).to.be.an(ol.proj.Projection);
});
it('maintains accuracy when round-tripping', function() {
@@ -127,8 +127,8 @@ describe('ol.proj.EPSG21781', function() {
goog.require('goog.math');
goog.require('ol.Projection');
goog.require('ol.proj');
goog.require('ol.proj.CH');
goog.require('ol.proj.EPSG2056');
goog.require('ol.proj.EPSG21781');
goog.require('ol.proj.Projection');

View File

@@ -275,12 +275,12 @@ describe('ol.proj', function() {
var units = ol.ProjectionUnits.DEGREES;
it('removes functions cached by addTransform', function() {
var foo = new ol.Projection({
var foo = new ol.proj.Projection({
code: 'foo',
units: units,
extent: extent
});
var bar = new ol.Projection({
var bar = new ol.proj.Projection({
code: 'bar',
units: units,
extent: extent
@@ -298,7 +298,7 @@ describe('ol.proj', function() {
});
describe('ol.Projection.prototype.getMetersPerUnit()', function() {
describe('ol.proj.Projection.prototype.getMetersPerUnit()', function() {
beforeEach(function() {
Proj4js.defs['EPSG:26782'] =
@@ -351,7 +351,7 @@ describe('ol.proj', function() {
goog.require('goog.array');
goog.require('ol.Projection');
goog.require('ol.ProjectionUnits');
goog.require('ol.proj');
goog.require('ol.proj.Projection');
goog.require('ol.proj.common');

View File

@@ -191,7 +191,7 @@ describe('ol.tilegrid.TileGrid', function() {
});
it('works for projections unknown to the client', function() {
var projection = new ol.Projection(
var projection = new ol.proj.Projection(
{code: 'EPSG:31287', units: 'm'});
var grid = ol.tilegrid.createForProjection(projection);
var resolutions = grid.getResolutions();
@@ -643,8 +643,8 @@ describe('ol.tilegrid.TileGrid', function() {
});
goog.require('ol.Coordinate');
goog.require('ol.Projection');
goog.require('ol.ProjectionUnits');
goog.require('ol.TileCoord');
goog.require('ol.proj');
goog.require('ol.proj.Projection');
goog.require('ol.tilegrid.TileGrid');