# Kibana dashboard map layer tooltip shows array instead of individual field

**URL:** <https://discuss.elastic.co/t/kibana-dashboard-map-layer-tooltip-shows-array-instead-of-individual-field/324478>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [February 1, 2023, 8:54pm UTC](https://discuss.elastic.co/t/kibana-dashboard-map-layer-tooltip-shows-array-instead-of-individual-field/324478 "2023-02-01T20:54:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dro/32/131811_2.png) [@dro](https://discuss.elastic.co/u/dro)\
**Post date:** [February 1, 2023, 8:54pm UTC](https://discuss.elastic.co/t/kibana-dashboard-map-layer-tooltip-shows-array-instead-of-individual-field/324478/1 "2023-02-01T20:54:14Z")

</div>

Good afternoon all,

I've checked the forums to see if there was a similar issue to this, but was not able to find any besides this regarding [supporting nested field in maps](https://github.com/elastic/kibana/issues/35135)

**Mapping**

```auto
{
  "mappings": {
    "properties": { 
        "features": {
          "properties": {
            "geometry": {
              "properties": {
                "coordinates": {
                  "type": "geo_point"
                }
              }
            },
            "pointId": {
              "type": "text"
            }
          }
        }
      }
    }
}

```

**Data Sample**

```auto
{
	"type": "FeatureCollection",
		"features": [
			{
				"type": "Feature",
				"geometry": {
					"type": "Point",
					"coordinates": [-100.66, 45.05]
				},
				"pointId": "name1"
			},
			{
				"type": "Feature",
				"geometry": {
					"type": "Point",
					"coordinates": [-150.90, 34.35]
				},
				"pointId": "name2"
			},
			{
				"type": "Feature",
				"geometry": {
					"type": "Point",
					"coordinates": [-110.67, 47.33]
				},
				"pointId": "name3"
			}
		]
}

```

Using the _Documents_ map layer I then set **Tooltip fields** to **features.pointId** however, if you refer to the image below, it displays an array of the names.

 ![tooltip](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b8f575a5ead346a1d04d6087c746d42b7a9d3328.png)

What I am trying to achieve is have the tooltip display individual property fields for each point? Been trying to read through the nested fields documentation, but I was unable to find much documentation when it came to the maps aspect.

---

<div class="post-metadata">

**Author:** ![dro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dro/32/131811_2.png) [@dro](https://discuss.elastic.co/u/dro)\
**Post date:** [February 1, 2023, 10:19pm UTC](https://discuss.elastic.co/t/kibana-dashboard-map-layer-tooltip-shows-array-instead-of-individual-field/324478/2 "2023-02-01T22:19:44Z")

</div>

For what it is worth, I have also tried updating the mapping so the **feature** field is of **"type" : "nested"**. The issue there however is that, while functional, the **geo\_point** reference is lost and now the document is not recognized as containing a geo field.

Might be an error in the mapping on my part, but I'm currently playing with the input to see if I can get it to work with the nested declaration. Will update the post with the results shortly.

**UPDATE**

Have been unable to get get nested fields to be recognized as a `geo field` for viewing on a map layer. Based on this comment [[Maps] support nested fields with geo\_point · Issue #35135 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/35135#issuecomment-700187105) it appears maps do not, as of 2020/09/28, support nested fields. Not sure if this is still true, but if so, is there a way to be able to achieve the result of the original post?

Forgot to include the versions, but in case anyone is curious I'm using 8.5.1 for both Elasticsearch and Kibana.

---

<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:** [February 2, 2023, 12:28pm UTC](https://discuss.elastic.co/t/kibana-dashboard-map-layer-tooltip-shows-array-instead-of-individual-field/324478/3 "2023-02-02T12:28:25Z")

</div>

As @Nathan_Reese mentioned on that linked comment, the Maps application does not support nested fields.

You need to modify your process to work directly on your GeoJSON, ingesting individual features instead of a singe document containing the complete dataset.

Unfortunately it is not possible to split a single document into several ones inside Elasticsearch through an ingest pipeline as discussed [here](https://github.com/elastic/elasticsearch/issues/56769) so you need to do this **before** ingest.

Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![dro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dro/32/131811_2.png) [@dro](https://discuss.elastic.co/u/dro)\
**Post date:** [February 9, 2023, 7:08am UTC](https://discuss.elastic.co/t/kibana-dashboard-map-layer-tooltip-shows-array-instead-of-individual-field/324478/4 "2023-02-09T07:08:21Z")

</div>

Jorge,

Thank you for the follow up and confirmation regarding nested fields. It's only a few more lines of code to break apart the nested `geo_point` objects and setting up Logstash to do bulk outputs of data to Elasticsearch, in a way, is similar to sending them all as a nested object. Would have been nice to be able to handle nested fields, but it really isn't that much harder to have a "query ID" that links the individuals events.

---

<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:** [March 9, 2023, 7:08am UTC](https://discuss.elastic.co/t/kibana-dashboard-map-layer-tooltip-shows-array-instead-of-individual-field/324478/5 "2023-03-09T07:08:50Z")

</div>

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