# Geo\_shape field for document index not showing on map for polygons

**URL:** https://discuss.elastic.co/t/geo-shape-field-for-document-index-not-showing-on-map-for-polygons/253343
**Category:** Kibana
**Created:** [October 26, 2020, 4:26pm UTC](https://discuss.elastic.co/t/geo-shape-field-for-document-index-not-showing-on-map-for-polygons/253343 "2020-10-26T16:26:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MarkCarroll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markcarroll/32/72494_2.png) [@MarkCarroll](https://discuss.elastic.co/u/MarkCarroll)
#### Post date: [October 26, 2020, 4:26pm UTC](https://discuss.elastic.co/t/geo-shape-field-for-document-index-not-showing-on-map-for-polygons/253343/1 "2020-10-26T16:26:13Z")

</div>

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:

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

```

and then pushed some data to it:

```auto
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

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [October 27, 2020, 10:20pm UTC](https://discuss.elastic.co/t/geo-shape-field-for-document-index-not-showing-on-map-for-polygons/253343/2 "2020-10-27T22:20:10Z")

</div>

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?

 ![Screen Shot 2020-10-27 at 4.17.10 PM](https://us1.discourse-cdn.com/elastic/original/3X/5/d/5d88543f8011b7a9876b11bc77f803255130536a.jpeg)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 24, 2020, 10:20pm UTC](https://discuss.elastic.co/t/geo-shape-field-for-document-index-not-showing-on-map-for-polygons/253343/3 "2020-11-24T22:20:16Z")

</div>

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