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.
https://community.panodata.org/t/grafana-map-panel/121
GNU Affero General Public License v3.0
88 stars 31 forks source link

Map get Freeze when latitude is null #88

Open Hualin-AUG opened 3 years ago

Hualin-AUG commented 3 years ago

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 https://github.com/grafana/worldmap-panel/issues/291.

amotl commented 3 years ago

Hi Hualin,

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

With kind regards, Andreas.

xkilian commented 3 years ago

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.