Rename ol.Projection to ol.proj.Projection
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user