Geo_shape field for document index not showing on map for polygons

Hello.

I am trying to display geo_shape polygon data on a Kibana map, using a document index. The map seems to be loading successfully as it zooms to where the polygon should be but there is no polygon drawn.

I have created a simple test:

PUT /polytest
{
  "mappings": {
    "properties": {
      "location": {
        "type": "geo_shape"
      }
    }
  }
}

and then pushed some data to it:

POST polytest/_doc
{
  "location":  {
      "coordinates": [
        [
          [
            -0.076722,
            51.516602
          ],
          [
            -0.076712,
            51.516626
          ],
          [
            -0.076529,
            51.51668
          ],
          [
            -0.07632,
            51.516478
          ],
          [
            -0.076521,
            51.516429
          ],
          [
            -0.076722,
            51.516602
          ]
        ]
      ],
      "type": "Polygon"
    }

}

Using Kibana, I added a new map (Kibana -> Maps -> Create Maps)
Added layer -> Documents -> polytest

Is there an issue showing polygon data from a geo_shape field in a document index, or am I doing something wrong?

Thanks,
Mark

What version of Kibana are you running?

I was able to follow the steps you provided and display the polygon in Maps. Below are the steps I took

  • PUT polytest index mappings
  • POST polytest document you provided
  • Created a kibana index pattern for polytest
  • Created a new map and added a document layer from polytest
  • Clicked fit to bounds to zoom in to data bounds.

Can you see the polygon if you zoom into the area around it?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.