nagmapReborn
nagmapReborn copied to clipboard
Disable leaflet-interactive
Feature request ::
- Config variable to toggle on/off setting the leaflet-interactive css class for hosts. Certain users do not need to see the additional information just whether a host is up/down.
Commenting out the following function in resources/js/app.js (lines 144-162) disabled the pop up when clicking on host markers -- I'll see if I can integrate as a config parameter.
/*// Open hosts infoWindow
openPopup = function (marker) {
var marker = (typeof marker == 'string') ? nagmapReborn.hosts[marker].marker : marker;
marker.bindPopup(marker.options.popupContent);
marker.openPopup();
tippy('.filter', {
arrow: true,
interactive: true
});
tippy('.address', {
arrow: true,
placement: 'bottom',
interactive: true
});
marker.unbindPopup();
} */
Hello, sorry for the long delay!!! I haven't had much time to focus on this project, unfortunately.
This functionality may be added in future updates, but at the moment I don't want to add another configuration variable.
But this would be an extension of the current option update_animation
, which would be transformed into an option that makes the application lighter, with less animations...
For the moment keep this issue open.