# Maps, Nested Arrays, Geojson and Kibana

**URL:** https://discuss.elastic.co/t/maps-nested-arrays-geojson-and-kibana/144583
**Category:** Kibana
**Created:** [August 15, 2018, 7:49pm UTC](https://discuss.elastic.co/t/maps-nested-arrays-geojson-and-kibana/144583 "2018-08-15T19:49:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![diogopontual](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@diogopontual](https://discuss.elastic.co/u/diogopontual)
#### Post date: [August 15, 2018, 7:49pm UTC](https://discuss.elastic.co/t/maps-nested-arrays-geojson-and-kibana/144583/1 "2018-08-15T19:49:59Z")

</div>

Hello Guys,

I'm facing trouble to implement a map that reads data from an index with documents like:

```
{
   "name": "Uncle Bob Farm",
   "geo":[
      {
        "area": 10,
         "geoJson": {
                "type": "MultiPolygon",
                "coordinates": [
                  [
                    [
                      [
                        -48.94664341287877,
                        -26.659539686978484
                      ],
                      [
                        -48.946374692073086,
                        -26.65953713216144
                      ],
           ...

```

Well, I tried to search the index, and run vega flatten transform... It did not work.

Is there any way to debug the vega execution?

Thank you

---

<div class="post-metadata">

### Author: ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)
#### Post date: [August 15, 2018, 8:00pm UTC](https://discuss.elastic.co/t/maps-nested-arrays-geojson-and-kibana/144583/2 "2018-08-15T20:00:37Z")

</div>

@nyuriks could you help out here, please. You know the debug possibilities the best.

---

<div class="post-metadata">

### Author: ![diogopontual](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@diogopontual](https://discuss.elastic.co/u/diogopontual)
#### Post date: [August 15, 2018, 8:28pm UTC](https://discuss.elastic.co/t/maps-nested-arrays-geojson-and-kibana/144583/3 "2018-08-15T20:28:30Z")

</div>

Thank you @timroes. Actually I found the specific information on kibana docs. Thank you again.

---

<div class="post-metadata">

### Author: ![nyuriks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nyuriks/32/26171_2.png) [@nyuriks](https://discuss.elastic.co/u/nyuriks)
#### Post date: [August 15, 2018, 8:38pm UTC](https://discuss.elastic.co/t/maps-nested-arrays-geojson-and-kibana/144583/4 "2018-08-15T20:38:32Z")

</div>

@diogopontual does your document contain multiple geojson objects (geo is a list of objects)? While i think this is a bit strange because geojson itself could contain multiple features with properties, you could use flatten on the geo field to create individual entries. Geojson can then be used directly by [geopath transformation](https://vega.github.io/vega/docs/transforms/geopath/).

To debug, see [https://www.elastic.co/guide/en/kibana/6.x/vega-debugging.html](https://www.elastic.co/guide/en/kibana/6.x/vega-debugging.html) for in-depth details. You can view what your data looks like in the browser's debugger. Hope this helps.

---

<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: [September 12, 2018, 8:38pm UTC](https://discuss.elastic.co/t/maps-nested-arrays-geojson-and-kibana/144583/5 "2018-09-12T20:38:38Z")

</div>

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