nagmapReborn icon indicating copy to clipboard operation
nagmapReborn copied to clipboard

Disable leaflet-interactive

Open billzeta opened this issue 2 years ago • 2 comments

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.

billzeta avatar Aug 26 '21 17:08 billzeta

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();
    } */

billzeta avatar Aug 26 '21 18:08 billzeta

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.

jocafamaka avatar Mar 30 '22 14:03 jocafamaka