parse custom layer max zoom if needed, fixes #6
This commit is contained in:
parent
7264445926
commit
7bff0dbe02
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@
|
|||
}
|
||||
|
||||
function createLayer() {
|
||||
if (typeof maxZoom === 'string') {
|
||||
maxZoom = parseInt(maxZoom);
|
||||
}
|
||||
|
||||
let layerId = selectedLayerId ?? getLayerId();
|
||||
let layer: CustomLayer = {
|
||||
id: layerId,
|
||||
|
|
Loading…
Reference in a new issue