Use empty string as default value for "root" option (meaning cwd)
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ module.exports = function(maps, options, prefix) {
|
|||||||
domains = options.domains,
|
domains = options.domains,
|
||||||
tilePath = '/{z}/{x}/{y}.{format}';
|
tilePath = '/{z}/{x}/{y}.{format}';
|
||||||
|
|
||||||
var rootPath = path.join(process.cwd(), options.root);
|
var rootPath = path.join(process.cwd(), options.root || '');
|
||||||
|
|
||||||
var styleUrl = options.style;
|
var styleUrl = options.style;
|
||||||
var map = {
|
var map = {
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = function(maps, options, prefix) {
|
|||||||
domains = options.domains,
|
domains = options.domains,
|
||||||
tilePath = '/{z}/{x}/{y}.pbf';
|
tilePath = '/{z}/{x}/{y}.pbf';
|
||||||
|
|
||||||
var rootPath = path.join(process.cwd(), options.root);
|
var rootPath = path.join(process.cwd(), options.root || '');
|
||||||
|
|
||||||
var mbtilesPath = options.mbtiles;
|
var mbtilesPath = options.mbtiles;
|
||||||
var map = {
|
var map = {
|
||||||
|
|||||||
Reference in New Issue
Block a user