Update to use the documented Proj4js 2.2.x API

This commit is contained in:
Andreas Hocevar
2014-07-08 22:33:21 +02:00
parent a22d7e4d22
commit 90c745006d
8 changed files with 12 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ describe('ol.format.WFS', function() {
var features, feature;
before(function(done) {
proj4.defs['urn:x-ogc:def:crs:EPSG:4326'] = proj4.defs['EPSG:4326'];
proj4.defs('urn:x-ogc:def:crs:EPSG:4326', proj4.defs('EPSG:4326'));
afterLoadText('spec/ol/format/wfs/topp-states-wfs.xml', function(xml) {
try {
var config = {

View File

@@ -141,7 +141,7 @@ describe('ol.proj', function() {
it('caches the new Proj4js projections given their srsCode', function() {
var code = 'urn:ogc:def:crs:EPSG:21781';
var srsCode = 'EPSG:21781';
proj4.defs[code] = proj4.defs[srsCode];
proj4.defs(code, proj4.defs(srsCode));
var proj = ol.proj.get(code);
var proj2 = ol.proj.get(srsCode);
expect(ol.proj.equivalent(proj2, proj)).to.be(true);