fix: store styleFile in serve_rendered
necessary to implement hot mbtiles reloading Signed-off-by: David Weber | geOps <david.weber@geops.com>
This commit is contained in:
parent
ee1372fd55
commit
a088080e27
1 changed files with 2 additions and 0 deletions
|
@ -847,6 +847,7 @@ export const serve_rendered = {
|
|||
renderersStatic: [],
|
||||
sources: {},
|
||||
sourceTypes: {},
|
||||
styleFile: '',
|
||||
};
|
||||
|
||||
let styleJSON;
|
||||
|
@ -1023,6 +1024,7 @@ export const serve_rendered = {
|
|||
};
|
||||
|
||||
const styleFile = params.style;
|
||||
map.styleFile = styleFile;
|
||||
const styleJSONPath = path.resolve(options.paths.styles, styleFile);
|
||||
try {
|
||||
styleJSON = JSON.parse(fs.readFileSync(styleJSONPath));
|
||||
|
|
Loading…
Reference in a new issue