# Index Pattern not available when creating a Map layer

**URL:** https://discuss.elastic.co/t/index-pattern-not-available-when-creating-a-map-layer/217270
**Category:** Kibana
**Tags:** maps
**Created:** [January 30, 2020, 8:32pm UTC](https://discuss.elastic.co/t/index-pattern-not-available-when-creating-a-map-layer/217270 "2020-01-30T20:32:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JoshuaKFarrar](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@JoshuaKFarrar](https://discuss.elastic.co/u/JoshuaKFarrar)
#### Post date: [January 30, 2020, 8:32pm UTC](https://discuss.elastic.co/t/index-pattern-not-available-when-creating-a-map-layer/217270/1 "2020-01-30T20:32:06Z")

</div>

I had issues getting Discover to allow me to select data from an index pattern, but fixed this by setting my new index pattern as the default. When attempting to create a map layer from this index pattern, it is not listed in the list of available index patterns.

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [January 30, 2020, 8:41pm UTC](https://discuss.elastic.co/t/index-pattern-not-available-when-creating-a-map-layer/217270/2 "2020-01-30T20:41:54Z")

</div>

Hello,

For your indexpattern to appear for a map layer - it needs to have geo data.  
Can you check your mapping and see if you have data of type geo\_point and geo\_shape?

[https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-queries.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-queries.html)

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![JoshuaKFarrar](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@JoshuaKFarrar](https://discuss.elastic.co/u/JoshuaKFarrar)
#### Post date: [January 30, 2020, 9:14pm UTC](https://discuss.elastic.co/t/index-pattern-not-available-when-creating-a-map-layer/217270/3 "2020-01-30T21:14:55Z")

</div>

@bhavyarm: I re-created my index with a custom field mapping and was able to create a map visualization. Thank you!

---

<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: [February 27, 2020, 9:14pm UTC](https://discuss.elastic.co/t/index-pattern-not-available-when-creating-a-map-layer/217270/4 "2020-02-27T21:14:57Z")

</div>

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