Ensure valid style directory reference
This commit is contained in:
parent
a5a8ae1e95
commit
517164b930
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ const startWithMBTiles = (mbtilesFile) => {
|
|||
}
|
||||
const bounds = info.bounds;
|
||||
|
||||
const styleDir = path.resolve(__dirname, "../node_modules/tileserver-gl-styles/");
|
||||
const styleDir = path.dirname(require.resolve('tileserver-gl-styles/package.json'));
|
||||
|
||||
const config = {
|
||||
"options": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue