netjsongraph.js icon indicating copy to clipboard operation
netjsongraph.js copied to clipboard

[feature] Add popup on click of a node configurable from config

Open dee077 opened this issue 5 months ago • 2 comments

Feature Description

We need to add a pop-up on the click of a node, as here in the device-map.js in openwisp-monitoring layer.bindPopup can't be used, as we will be using echarts-leaflet to draw the nodes on the map. So we need our custom implementation of a similar functionality, which will be used on both the geo map and the floorplan map.

Approach

We can use the onClickElement event listener provided by the library to add the overlay and make it only work if it is set to true from the config.

dee077 avatar Jul 31 '25 23:07 dee077