delete me
Re: Set default zoom in Nagios XI World Map?
In /usr/local/nagiosxi/html/includes/components/map/scripts/main.js, you'll find a section like:
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.
Code: Select all
map = L.map('map_container', {
center: default_coords,
zoom: 10,
layers: [selected_layer]
});
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
done
cdienger wrote:In /usr/local/nagiosxi/html/includes/components/map/scripts/main.js, you'll find a section like:
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.Code: Select all
map = L.map('map_container', { center: default_coords, zoom: 10, layers: [selected_layer] });
there it is.
for privacy reasons, I removed the title.
Re: delete me
locking thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.