parse custom layer max zoom if needed, fixes #6
This commit is contained in:
parent
7264445926
commit
7bff0dbe02
@ -36,6 +36,10 @@
|
||||
}
|
||||
|
||||
function createLayer() {
|
||||
if (typeof maxZoom === 'string') {
|
||||
maxZoom = parseInt(maxZoom);
|
||||
}
|
||||
|
||||
let layerId = selectedLayerId ?? getLayerId();
|
||||
let layer: CustomLayer = {
|
||||
id: layerId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user