add zoom level to parseQueryString evaluation

This commit is contained in:
Kasper D. Fischer 2023-04-17 11:12:54 +02:00
parent 4e97e09466
commit 6d62279199

View File

@ -4,7 +4,7 @@
**********************************************************************/
/* License
Copyright 2014-2021 Kasper D. Fischer <kasper.fischer@rub.de>
Copyright 2014-2023 Kasper D. Fischer <kasper.fischer@rub.de>
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
@ -198,6 +198,10 @@ $(document).ready(function() {
config['tab']['active'] = Number(parameters['tab']);
};
};
if ( Number(parameters['zoom']) ) {
config['map']['zoomDefault'] = Number(parameters['zoom']);
config['map']['zoomFocus'] = Number(parameters['zoom'])+3;
};
// AJAX setup
$.ajaxSetup({timeout: config['ajax']['timeout']});