grafana-toolbox / panodata-map-panel

Map Panel for Grafana with improved convenience, robustness and features. Friendly fork of the original Grafana Worldmap Panel. Currently not maintained, but verified to work up to Grafana 9.

Home Page:https://community.panodata.org/t/grafana-map-panel/121

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Map get Freeze when latitude is null

Hualin-AUG opened this issue · comments

My data source is InfluxDB and I am using InfluxQL to query the data into table.
I find that when the query gets nothing in return, it will show a problem:

TypeError: Cannot read property 'lat' of null

And then you are not able to drag the map and move around anymore, i.e. the map freezes.

My dashboard and data: https://gist.github.com/Hualin-AUG/95c7e6b865a974f68f52e08ef2a6e5a3
Also, refer to grafana#291.

Hi Hualin,

thanks. I will try to look into that based on the information you provided.

With kind regards,
Andreas.

Leaftlet will crash if sending lat/lon or either as Null to it. The plugin grafana-map-panel must drop/filter this data. Same for (0,0) coordinates.