Skip to content

Commit

Permalink
Merge pull request #3 from mdholloway/non-strict
Browse files Browse the repository at this point in the history
Load map file in non-strict mode
  • Loading branch information
thesocialdev authored Sep 26, 2018
2 parents bb0abe8 + 7d7f57c commit 694ff7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports.tm2z = tm2z;
module.exports.xray = xray;
module.exports.mapnik = mapnik;
module.exports.Backend = Backend;
module.exports.strict = true;
module.exports.strict = false;

function md5(str) {
return crypto.createHash('md5').update(str).digest('hex');
Expand Down
5 changes: 2 additions & 3 deletions test/tm2z.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,9 @@ test('errors out on invalid project.xml', function(t) {
t.end();
});
});
test('errors out if style references a missing font', function(t) {
test('does not error out if style references a missing font', function(t) {
tilelive.load('tm2z://' + path.join(fixtureDir, 'missing_font.tm2z'), function(err, source) {
t.equal('EMAPNIK', err.code);
t.equal(err.message.split("'")[0], 'Failed to find font face ');
t.ifError(err);
t.end();
});
});
Expand Down

0 comments on commit 694ff7d

Please sign in to comment.