panodata-map-panel icon indicating copy to clipboard operation
panodata-map-panel copied to clipboard

Map get Freeze when latitude is null

Open Hualin-AUG opened this issue 4 years ago • 2 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 https://github.com/grafana/worldmap-panel/issues/291.

Hualin-AUG avatar Jan 25 '21 16:01 Hualin-AUG

Hi Hualin,

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

With kind regards, Andreas.

amotl avatar Jan 30 '21 16:01 amotl

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.

xkilian avatar Feb 16 '21 02:02 xkilian