Fix zoom level 0 in url being ignored
This commit is contained in:
parent
069e4dc641
commit
842854967d
@ -166,7 +166,8 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if(!oldValue) {
|
||||
zoom = store.state.parsedUrl.zoom || store.state.configuration.defaultZoom;
|
||||
zoom = typeof store.state.parsedUrl.zoom !== 'undefined' ?
|
||||
store.state.parsedUrl.zoom : store.state.configuration.defaultZoom;
|
||||
}
|
||||
|
||||
//Delay the pan by a frame, to allow the projection to be updated by the new world
|
||||
|
Loading…
Reference in New Issue
Block a user