Update to use the documented Proj4js 2.2.x API
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user