Grafana cannot read empty "properties" field in geojson

Hi, I have a geomap panel with multiple map layers using external geojson files. Here is an example of geojson file:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          [
            [
              -103,88,
              33.23
            ],
            [
              -103.91,
              32.25
            ],
            [
              -103.91,
              33.23
            ],
            [
               -103,88,
               32.25
            ],
          ]
        ],
        "type": "Polygon"
      }
    }
  ]
}.

The coordinates are just examples. The “properties” is left empty on purpose because I don’t need any other info on the tooltip. It was all fine before but we did an update to version v9.4.17 and this empty field causes the dashboard to crash with error: Cannot read properties of undefined (reading ‘values’). How should I make it work? Thank you!

what data was in it?

It just contains coordinates of a polygon as a geofence. I used it as a map layer on top of a basemap.

looks like your grafana version has issues with it, I would recommend you upgrade if you can.

works in v11

Thank you for your help! Will try!

1 Like

works fine on my pc using your version

image

Have you try to hover over the zone? That’s when it crashes

1 Like

ah I see. so definitely fixed on newer version of grafana

So you don’t see the same issues with v11? Great! Thank you so much for your help!

1 Like