Page 1 of 1

delete me

Posted: Thu May 23, 2019 9:37 am
by riahc3
delete me

Re: Set default zoom in Nagios XI World Map?

Posted: Thu May 23, 2019 3:30 pm
by cdienger
In /usr/local/nagiosxi/html/includes/components/map/scripts/main.js, you'll find a section like:

Code: Select all

       map = L.map('map_container', {
            center: default_coords,
            zoom: 10,
            layers: [selected_layer]
        });
10 is the default zoom level and lowering the value will cause the default to be zoomed out. In my testing browsers are pretty reluctant to reload javascript files so you may need to clear the browser cache out/restart it a couple times before the changes take effect. Also be aware that updates the the wizard may overwrite this setting.

done

Posted: Fri May 24, 2019 3:23 am
by riahc3
cdienger wrote:In /usr/local/nagiosxi/html/includes/components/map/scripts/main.js, you'll find a section like:

Code: Select all

       map = L.map('map_container', {
            center: default_coords,
            zoom: 10,
            layers: [selected_layer]
        });
10 is the default zoom level and lowering the value will cause the default to be zoomed out. In my testing browsers are pretty reluctant to reload javascript files so you may need to clear the browser cache out/restart it a couple times before the changes take effect. Also be aware that updates the the wizard may overwrite this setting.

there it is.

for privacy reasons, I removed the title.

Re: delete me

Posted: Fri May 24, 2019 9:09 am
by cdienger
locking thread.