I am writing a map panel and would like to do essentially what the trackmap does: respond to hover events like in https://github.com/pR0Ps/grafana-trackmap-panel/blob/master/src/trackmap_ctrl.js#L71-L72.
This traces to
import appEvents from 'app/core/app_events';
Now the question is: how do I do that from a ts React panel?
Another operation that is of interest is setting the time range. Trackmap just does
this.timeSrv.setTime but I can see only reacting to time range changes in
PanelProps - that is essentially the whole api that a panel gets as far as I can tell.
Am I missing something crucial here? The panel tutorial at https://storage.googleapis.com/grafana-tutorials/build-a-panel-plugin/index.html#0 does not go into any details on this level.