# Geopoint on Region Map

**URL:** <https://discuss.elastic.co/t/geopoint-on-region-map/190242>\
**Category:** Kibana\
**Created:** [July 12, 2019, 1:10pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242 "2019-07-12T13:10:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![naknak987](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@naknak987](https://discuss.elastic.co/u/naknak987)\
**Post date:** [July 12, 2019, 1:10pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/1 "2019-07-12T13:10:23Z")

</div>

Is it possible to plot geopoints and highlight regions in the same map? I would like to build a map that shows both our facility locations and highlight our customer zip codes. I can already do both of of these things in separate visualizations but It would be nice to show a more complete picture if I could somehow do both within the same visualization.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 12, 2019, 5:59pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/2 "2019-07-12T17:59:50Z")

</div>

@naknak987

This is possible with the Maps app in Kibana. Each one (zip code + points) will be a separate layer on a single map. See [https://www.elastic.co/guide/en/kibana/current/maps.html](https://www.elastic.co/guide/en/kibana/current/maps.html) and [https://www.elastic.co/blog/elastic-maps-beta-released](https://www.elastic.co/blog/elastic-maps-beta-released) to get started.

---

<div class="post-metadata">

**Author:** ![naknak987](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@naknak987](https://discuss.elastic.co/u/naknak987)\
**Post date:** [July 12, 2019, 6:46pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/3 "2019-07-12T18:46:12Z")

</div>

@thomasneirynck  
The second link is broken. After looking through the maps documentation I was able to to get our facility locations to plot on the map and I was able to add the zip code vector. I'm still not able to figure out how to make it just highlight the zip codes from the data in the index. It highlights the whole US instead, even after setting the "term joins".

I should mention that the facility location geopoint coordinates and our customer zipcode data are in separate indices. I'm not sure if that would affect this.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 12, 2019, 8:24pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/4 "2019-07-12T20:24:05Z")

</div>

hi @naknak987,

I fixed the link, thanks for flagging.

The data being in different indices is fine. That behavior you are looking for (only highlighting the zip-codes that match the data) will be available in the next version of Kibana. [https://github.com/elastic/kibana/pull/36617](https://github.com/elastic/kibana/pull/36617) .

---

<div class="post-metadata">

**Author:** ![naknak987](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@naknak987](https://discuss.elastic.co/u/naknak987)\
**Post date:** [July 15, 2019, 6:44pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/5 "2019-07-15T18:44:00Z")

</div>

@thomasneirynck  
Thank you for being so responsive. It also appears that the term join is not working correctly. I have it set to join on the zip code using the count metric but I don't see any count when I hover over zip codes that should have a count. This works fine on the 'Region Map' visualization. Do I need to have a timestamp with my data? That's the only thing I can think of that might be throwing this off as I don't have any timestamps with either index.

UPDATE: I've added a date field and re-indexed the customer data just to see if it would make a difference and it didn't.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 15, 2019, 8:34pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/6 "2019-07-15T20:34:08Z")

</div>

@naknak987

Hmmm.... that should not be the case.

Can you isolate this issue and post a step-by-step to reproduce this? If this is _not_ working, than that is definitely a bug and it should be logged here: [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new)

---

<div class="post-metadata">

**Author:** ![naknak987](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@naknak987](https://discuss.elastic.co/u/naknak987)\
**Post date:** [July 16, 2019, 12:11pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/7 "2019-07-16T12:11:06Z")

</div>

@thomasneirynck  
I'm running version 7.2.0 on Windows 10. My zip code data looks like this.  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c411f01ec2431a57b9744885b5fc8080793b0edc.png)

Here is how I setup the Map app with the joins and style.  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/7/d/7d489949728d3aa6c750c37466acb0a9de9b708b.png)

As you can see, it's not working. Its outlining the different zip codes but its not matching any data from my index so nothing is being styled.

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/8/f/8f8fe5c14a45d0638fc33babee3c641430c5296c.png)

Here it is working in 'Region Map' visualization. This is what I want that layer from above to do.  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c1ec599eb0cecf84b9e4ad2018a6a8a13d81110c.png)

Do you still think this is a bug?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 16, 2019, 12:59pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/8 "2019-07-16T12:59:55Z")

</div>

ok thanks.

It might have to do with the formatting or data format of the zip-code field. It looks to be a number field, instead of a string.

Can you show me the mapping of that index-pattern? Also, does the ZipCode field have a field-formatter associated with it?

---

<div class="post-metadata">

**Author:** ![naknak987](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@naknak987](https://discuss.elastic.co/u/naknak987)\
**Post date:** [July 16, 2019, 1:36pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/9 "2019-07-16T13:36:05Z")

</div>

@thomasneirynck  
The mapping is as fallows.

```
PUT zips
{
  "mappings" : {
    "properties" : {
      "FacZipCode" : {
        "type" : "integer"
      },
      "ID" : {
        "type" : "integer"
      },
      "ZipCode" : {
        "type" : "integer"
      },
      "facname" : {
        "type" : "keyword"
      },
      "status" : {
        "type" : "keyword"
      }
    }
  },
  "settings" : {
    "index" : {
      "number_of_shards" : "1",
      "number_of_replicas" : "0"
    }
  }
} 

```

Here is the index pattern.

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/b/e/be69b5360c5f4f6cbace79207030a00a1edccaaf.png)

I've tried it with the 'ZipCode' field without formatting, formatted as a number without any decimals or commas and formatted as a string. Nothing seems to work. Maybe I need to index the data as a string to begin with?

UPDATE: Setting the 'ZipCode' field to the keyword type fixed the issue.

Why would the 'Region Map' visualization work with the 'ZipCode' field set to the integer type but not the Map app?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 18, 2019, 5:45pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/10 "2019-07-18T17:45:42Z")

</div>

thanks for flagging @naknak987 and providing a work-around.

After investigation, this is a bug. I logged it here [https://github.com/elastic/kibana/issues/41491](https://github.com/elastic/kibana/issues/41491)

We will need to fix this. Please keep posted, thanks

---

<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:** [August 15, 2019, 5:45pm UTC](https://discuss.elastic.co/t/geopoint-on-region-map/190242/11 "2019-08-15T17:45:49Z")

</div>

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