pR0Ps / grafana-trackmap-panel

A panel for Grafana that visualizes GPS points as a line on an interactive map
https://grafana.com/plugins/pr0ps-trackmap-panel
Apache License 2.0
137 stars 61 forks source link

Conflict with Worldmap #43

Open DmitrySidorow opened 4 years ago

DmitrySidorow commented 4 years ago

Grafana world map breaks after opening TrackMap

How to reproduce it:

Worldmap settings: Screenshot_4

1) Worldmap works fine Screenshot_1

2) Opening TrackMap Screenshot_2

3) Opening WorldMap - the circle is gone and 'TypeError: Cannot read property 'x' of undefined' error Screenshot_3

4) after re-logging in my account Worldmap works fine again: Screenshot_5

Environment:

amotl commented 3 years ago

Dear Dmitry,

thanks for referencing this issue at https://github.com/panodata/grafana-map-panel/issues/47#issuecomment-722166379.

@amfgomez also observed that

Grafana can not load two different map plugins at the same time.

@wetterfrosch has been observing the same thing the other day when mixing the original Grafana Worldmap Panel and our Grafana Map Panel fork. While it should work in theory, something happens under the hood which makes this thing croak. However, we have been able to confirm that multiple instances of our fork [1,2] actually work within the same dashboard.

Maybe it will also work out of the box when mixing instances of the Grafana Map Panel fork with this Grafana Trackmap Panel on the same Dashboard? You can find release packages at [3].

With kind regards, Andreas.

[1] https://github.com/panodata/grafana-map-panel [2] https://community.panodata.org/t/grafana-map-panel/121 [3] https://github.com/panodata/grafana-map-panel/releases

DmitrySidorow commented 3 years ago

Dear Dmitry,

thanks for referencing this issue at panodata/grafana-map-panel#47 (comment).

@amfgomez also observed that

Grafana can not load two different map plugins at the same time.

@wetterfrosch has been observing the same thing the other day when mixing the original Grafana Worldmap Panel and our Grafana Map Panel fork. While it should work in theory, something happens under the hood which makes this thing croak. However, we have been able to confirm that multiple instances of our fork [1,2] actually work within the same dashboard.

Maybe it will also work out of the box when mixing instances of the Grafana Map Panel fork with this Grafana Trackmap Panel on the same Dashboard? You can find release packages at [3].

With kind regards, Andreas.

[1] https://github.com/panodata/grafana-map-panel [2] https://community.panodata.org/t/grafana-map-panel/121 [3] https://github.com/panodata/grafana-map-panel/releases

yes, I can use both plugins on the same dashboard. But I want use it also in different dashboards..

DmitrySidorow commented 3 years ago

Just noticed. If I open this dashboard (with worldmap and trackmap) from another device, I get the same error

amotl commented 3 years ago

Yes, I can use both plugins on the same dashboard. But I want use it also in different dashboards.

Seriously? I haven't been aware of that. Bummer!

If I open this dashboard (with worldmap and trackmap) from another device, I get the same error.

Too bad. Are you already using the grafana-map-panel fork within that dashboard?

amotl commented 3 years ago

Apart from that, and without any offense to @pR0Ps, I became aware of https://github.com/alexandrainst/alexandra-trackmap-panel by @Drazair, @j-or and contributors the other day. This apparently has been coming from [1].

While there is [2], support for Grafana 7 has been added just recently, see https://github.com/alexandrainst/alexandra-trackmap-panel/issues/18 and https://github.com/alexandrainst/alexandra-trackmap-panel/pull/24. So, you might want to use a recent release from [3] for checking that out.

[1] https://gitlab.com/synchronicity-iot [2] https://grafana.com/grafana/plugins/alexandra-trackmap-panel [3] https://github.com/alexandrainst/alexandra-trackmap-panel/releases

DmitrySidorow commented 3 years ago

Apart from that, and without any offense to @pR0Ps, I became aware of https://github.com/alexandrainst/alexandra-trackmap-panel by @Drazair, @j-or and contributors the other day. This apparently has been coming from [1].

While there is [2], support for Grafana 7 has been added just recently, see alexandrainst/alexandra-trackmap-panel#18 and alexandrainst/alexandra-trackmap-panel#24. So, you might want to use a recent release from [3] for checking that out.

[1] https://gitlab.com/synchronicity-iot [2] https://grafana.com/grafana/plugins/alexandra-trackmap-panel [3] https://github.com/alexandrainst/alexandra-trackmap-panel/releases

[3] works great! Now I can draw path and track multiple objects. But [3] still conflicts with latest (0.13.0) grafana-map-panel in different dashboards.