# Kibana : Map for an array of locations

**URL:** <https://discuss.elastic.co/t/kibana-map-for-an-array-of-locations/231721>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [May 8, 2020, 12:38pm UTC](https://discuss.elastic.co/t/kibana-map-for-an-array-of-locations/231721 "2020-05-08T12:38:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darshanmehta10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darshanmehta10/32/67221_2.png) [@darshanmehta10](https://discuss.elastic.co/u/darshanmehta10)\
**Post date:** [May 8, 2020, 12:38pm UTC](https://discuss.elastic.co/t/kibana-map-for-an-array-of-locations/231721/1 "2020-05-08T12:38:25Z")

</div>

I have the following schema in elasticsearch index:

```auto
Person : {
      "name" : "Person-A",
      "location" : "<geo_point>",
      "companies" : [
          {
            "name" : "Company-A",
           "location" : "<geo_point>"
          },
          {
            "name" : "Company-B",
           "location" : "<geo_point>"
          }
      ]
    }

```

I am trying to visualize these data in Map in Kibana by adding layers in a map. I have observed the following:

- When I try to add a layer with `person.location` field, I am able to see the data on Map perfectly fine.
- When I try to add a layer with `companies.location` field, I do not see anything on the Map.

Is there any way I can see companies' location on map corresponding to a person? I can't see companies on Map at all at the moment, however, if there is a way to see the locations and mappings both on the map, it'd be great.

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [May 8, 2020, 2:19pm UTC](https://discuss.elastic.co/t/kibana-map-for-an-array-of-locations/231721/2 "2020-05-08T14:19:15Z")

</div>

hi @darshanmehta10,

Unfortunately, nested fields are not supported by Elastic Maps, you'd need to restructure your index to have the companies as a top level field, with one value per doc. Just as a reminder, you can use the [`Point to Point`](https://www.elastic.co/guide/en/kibana/current/point-to-point.html) layer type to draw lines between persons and companies.

---

<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:** [June 5, 2020, 2:19pm UTC](https://discuss.elastic.co/t/kibana-map-for-an-array-of-locations/231721/3 "2020-06-05T14:19:16Z")

</div>

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