From eff9d870ff7148bf266be1b5d9ad729fe3cfd92d Mon Sep 17 00:00:00 2001 From: grassick Date: Thu, 29 Dec 2016 14:33:40 -0500 Subject: [PATCH] Fix for node.js 6 --- lib/mapnik_backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapnik_backend.js b/lib/mapnik_backend.js index 6b4162e..067b4e4 100644 --- a/lib/mapnik_backend.js +++ b/lib/mapnik_backend.js @@ -205,7 +205,7 @@ MapnikSource.registerProtocols = function(tilelive) { // an error as its first argument. MapnikSource.prototype._loadXML = function(callback) { var source = this; - this._base = path.resolve(path.dirname(this._uri.pathname)); + this._base = path.resolve(path.dirname(this._uri.pathname || ".")); // This is a string-based map file. Pass it on literally. if (this._uri.xml) return callback(null, this._uri.xml);