Fix zoom level 0 in url being ignored

This commit is contained in:
James Lyne 2020-12-21 18:38:35 +00:00
parent 069e4dc641
commit 842854967d

View File

@ -166,7 +166,8 @@ export default defineComponent({
} }
if(!oldValue) { 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 //Delay the pan by a frame, to allow the projection to be updated by the new world