grafana-toolbox / panodata-map-panel

Map Panel for Grafana with improved convenience, robustness and features. Friendly fork of the original Grafana Worldmap Panel. Currently not maintained, but verified to work up to Grafana 9.

Home Page:https://community.panodata.org/t/grafana-map-panel/121

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crossfiltering between map panel and other panels

robouden opened this issue · comments

Not sure what it would involve, but it would be very usefully for Safecast to have the option like in Kibana to have a "draw polygons and select data" option on the map.

A project at Safecast has resulted in a stand-alone leaflet setup that would produce the effect (link). It would be wonderful to have that option with the map plugin and also useful for other users I think. (@matschaffer has also information about that project.)

Screenshot from 2020-11-06 09-10-52

regards,
Rob Oudendijk

That app is up at https://library-dev.safecast.cc/index btw if anyone wants to play with it (maybe not forever but for now anyway).

What we'd be interested in is having a way to draw shapes on the grafana map panel, then have that create a geo filter (maybe a dashboard variable?) that would apply to all the panels on a dashboard.

Dear Rob and Mat,

thank you so much for bringing this up, it resonates very much with us. Let me collect some places here where the community has already talked about this feature in the past.

Mat already mentioned that at grafana#179 the other day, where we already picked it up from and referenced in our wishlist for Grafana. Also, Rob mentioned it within #66 a few weeks ago.

It is somehow related to the general topic of cross filtering between multiple panels in Grafana, but let's focus on the Map Panel being the driver for now in this very context.

#31 also includes some references into that direction. So, I wanted to take the chance to ping @xkilian and @tobiasdirksen, but more specifically @anatolyza about it, because he already worked on integrating Leaflet-Geoman - a Leaflet plugin for drawing and editing geometry layers - on behalf of a fork from here. We already reported about that at #20 (comment) and the current diff is at develop...anatolyza:develop, where some valuable improvements into that direction could be picked up from.

With kind regards,
Andreas.

cc @wetterfrosch

P.S.: Last but not least, I would like to mention #23 and #44 here, which are more distantly related and also the great Crossfilter, which is living on https://github.com/crossfilter these days. The dc.js - Dimensional Charting Javascript Library already makes use of that and by mixing in D3-technologies, they have some beautiful examples demonstrating crossfiltering examples between maps (choropleths) and other data at US Venture Capital Landscape 2011 and Major Canadian City Crime Stats 1998-2011. It's not quite on the spot because we want to draw shapes on the map, but nevertheless it's always enjoyable to see such nice eyecandy and might add some motivation.

@robouden said:

Latest Leaflet.draw at https://cdnjs.com/libraries/leaflet.draw seems much more updated too.

Dear Rob,

would you prefer Leaflet.draw over Leaflet-Geoman? From my perspective, Leaflet-Geoman looks way better in terms of features and current maintenance.

With kind regards,
Andreas.