Extending WorldMap plugin with updating template variables

I am trying to extend the WorldMap plugin with a new feature. I want to do a template variable update when a click event occurs. After that I want to do the updating via getLocationSrv().update(…) function, but as soon as I “import {getLocationSrv} from ‘@grafana/runtime’;” the plugin cannot be loaded. I can build the plugin with ‘yarn dev’ successfully.

Grafana (7.3) versions:
@grafana/toolkit”: “^7.3.1”,
@grafana/runtime”: “^7.0.0”,
@types/grafana”: “https://git@github.com/CorpGlory/types-grafana.git

Regards
JK

1 Like

Dear József,

we are looking into similar things, so I wanted to take the chance to refer to a discussion which might be related.

With kind regards,
Andreas.