mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
parse custom layer max zoom if needed, fixes #6
This commit is contained in:
@@ -36,6 +36,10 @@
|
||||
}
|
||||
|
||||
function createLayer() {
|
||||
if (typeof maxZoom === 'string') {
|
||||
maxZoom = parseInt(maxZoom);
|
||||
}
|
||||
|
||||
let layerId = selectedLayerId ?? getLayerId();
|
||||
let layer: CustomLayer = {
|
||||
id: layerId,
|
||||
|
Reference in New Issue
Block a user