I am trying connect two geographical Locations on the Grafana World Map Plugin, using a line, can anyone please tell me what's the best way to do this.
Asked
Active
Viewed 1,933 times
1 Answers
1
That's not currently possible in the World Map plugin. There is another plugin that does something with lines. Here is the feature request issue on GitHub for this feature and the other plugin is here.

Daniel Lee
- 7,709
- 2
- 48
- 57
-
Its actually quite possible - http://stackoverflow.com/questions/33468905/draw-lines-between-markers-in-leaflet – Rohit Sarkar May 02 '17 at 18:58
-
What do you mean by possible? You cannot currently draw lines between points with the Worldmap plugin. It is of course possible to change the plugin so that it supports that. Worldmap uses the Leaflet library as does the other plugin that I linked to. But I don't think I will be updating the Worldmap plugin to draw lines in the coming months. – Daniel Lee May 02 '17 at 19:00
-
In the WorldMap Plugin Leaflet Library there is a function called polyline which i used to connect 2 geographical locations using a line. – Rohit Sarkar May 02 '17 at 19:06
-
Do you mean that you forked the project and implemented it yourself and thereby making a new plugin - which is great. You can submit it to be published on grafana.com or if it is a general enough feature send a PR to the worldmap plugin repo on GitHub. – Daniel Lee May 02 '17 at 19:09
-
The polyline function is present in the leaflet library. – Rohit Sarkar May 02 '17 at 19:10
-
Think we're talking past each other. I meant that it was not possible currently without changing the code to do this in the Worldmap plugin. And then linked to the issue which discussed implementing it in Worldmap and then linked to another project where they had used Leaflet to draw lines. The Worldmap plugin and Leaflet are not the same project. It sounds like you cloned Worldmap on GitHub and implemented the feature yourself? If that's the case, maybe you would consider contributing it back by sending a Pull Request? – Daniel Lee May 02 '17 at 19:12