Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in coordinates mode: Cannot read property 'x' of undefined #47

Closed
amfgomez opened this issue Jan 22, 2020 · 11 comments
Closed

Error in coordinates mode: Cannot read property 'x' of undefined #47

amfgomez opened this issue Jan 22, 2020 · 11 comments

Comments

@amfgomez
Copy link

Hello
I am testing your plugin maps and when I have set location source field like "obtain label from database" and "Geopoint format" like coordinates.

The plugin returns the following error:

image

Thanks in advance.

@amfgomez amfgomez changed the title Erro in coordenate mode Error in coordenates mode Jan 22, 2020
@amfgomez
Copy link
Author

I have found the trouble,

Grafana can not load two different plugin maps at the same time.

@amotl amotl changed the title Error in coordenates mode Error in coordenates mode: Cannot read property 'x' of undefined Jan 23, 2020
@amotl
Copy link

amotl commented Jan 23, 2020

Dear @amfgomez,

thanks for writing in.

I have found the trouble, Grafana can not load two different plugin maps at the same time.

@wetterfrosch has been observing the same thing recently. 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.

See also: https://weather.hiveeyes.org/grafana/d/DLOlE_Rmz/temperatur-sonne-and-niederschlag-karten-cdc

With kind regards,
Andreas.

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

@amfgomez
Copy link
Author

@amotl in my case, I have implemented 2 grafana-map and 1 worldmap-panel.
I have observed that if grafana-map works, worldmap-panel wont work. and vice versa.

I believe that It is a grafana problem.

@amotl
Copy link

amotl commented Jan 23, 2020

Right. We investigated the very same scenario just yesterday. After switching every map on the same dashboard to grafana-map-panel, things started working flawlessly.

Would that be an option for you?

@amotl amotl changed the title Error in coordenates mode: Cannot read property 'x' of undefined Error in coordinates mode: Cannot read property 'x' of undefined Jan 23, 2020
@amfgomez
Copy link
Author

I am going to test this option.

I am making the changes in grafana-map from custom-panel. As soon as I will try it. I will write about my experience. Although I will find the same trouble because I need a simple world map and another with 2 layers more.

Thank you very much.

@amotl
Copy link

amotl commented Jan 23, 2020

I am going to test this option. As soon as I will try it, I will write about my experience.

Thanks. Will be happy to hear about the outcome.

Although I will find the same trouble because I need a simple world map and another with 2 layers more.

Do you mean you want to display multiple metrics on the same map like outlined within #43?

@amfgomez
Copy link
Author

I need a world map with the town border in red and another without this.

I think that two different plugin will be necesary. or not?

@amotl
Copy link

amotl commented Jan 23, 2020

I think that two different plugin will be necessary, no?

If you want to display two maps, sure you will have to have two instances of Map Panel. Please correct me if you believe I am getting you wrong here.

@amotl
Copy link

amotl commented Jan 23, 2020

I need a world map with the town border in red and another without this.

Let's close this issue and continue that discussion within #48. Feel free to reopen if the core of this issue hasn't been solved for you.

@DmitrySidorow
Copy link

same issue. pR0Ps/grafana-trackmap-panel#43
any solutions?

@amotl
Copy link

amotl commented Nov 5, 2020

Dear Dmitry,

thanks for writing in. I've just replied to your question at pR0Ps/grafana-trackmap-panel#43 (comment).

With kind regards,
Andreas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants