# Controlling the size of the point on the map using document

**URL:** <https://discuss.elastic.co/t/controlling-the-size-of-the-point-on-the-map-using-document/345227>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [October 17, 2023, 2:41pm UTC](https://discuss.elastic.co/t/controlling-the-size-of-the-point-on-the-map-using-document/345227 "2023-10-17T14:41:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erez\_Danieli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/erez_danieli/32/126550_2.png) [@Erez\_Danieli](https://discuss.elastic.co/u/Erez_Danieli)\
**Post date:** [October 17, 2023, 2:41pm UTC](https://discuss.elastic.co/t/controlling-the-size-of-the-point-on-the-map-using-document/345227/1 "2023-10-17T14:41:56Z")

</div>

Hello everyone,  
I was able to control the point color by sending the color code.  
I tried in a similar way to send a number for the point size, but I have no option to select this field.  
I would appreciate help with how the document I'm sending should look so that it can be used to select the size of the point.

```auto
dic_geo = {
    "location": {"type": "Point", "coordinates": []},
    "level": [],
    "size": [],
    "@timestamp": [],
}

```

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/a/3/a346c87cb69cc3989a90b05e1776059b399cf899.jpeg)

---

<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:** [October 17, 2023, 5:18pm UTC](https://discuss.elastic.co/t/controlling-the-size-of-the-point-on-the-map-using-document/345227/2 "2023-10-17T17:18:56Z")

</div>

What is the mapping of your document? For the `size` field to be used to control the size of the symbol this needs to be a numeric field, but not a `text` or `keyword` field type.

You can see the mapping of your index in the associated Data View.

Ideally, your size field should be indexed as numbers, but if you can't change that, you can create a [Runtime Field](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html) that will expose your text field as a new numeric field. Of course, this is much slower than having your data properly indexed, but for small datasets, it should be OK.

To create a runtime field, you can do that by editing your existing Kibana Data View, check this documentation:

> **[Manage data views | Kibana Guide \[8.10\] | Elastic](https://www.elastic.co/guide/en/kibana/current/managing-data-views.html)**

---

<div class="post-metadata">

**Author:** ![Erez\_Danieli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/erez_danieli/32/126550_2.png) [@Erez\_Danieli](https://discuss.elastic.co/u/Erez_Danieli)\
**Post date:** [October 17, 2023, 6:11pm UTC](https://discuss.elastic.co/t/controlling-the-size-of-the-point-on-the-map-using-document/345227/3 "2023-10-17T18:11:21Z")

</div>

Thanks again 🙂 , once again you are right.  
I changed the mapping to INTEGER, and created a new INDEX.

 ![Capture1](https://us1.discourse-cdn.com/elastic/original/3X/e/f/ef069dfca9b4010cb2f70c8a8e3ce536149be9b6.jpeg)  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/7/5/75aa02d2ffd06d73417bed0a74d3be7f25b2e283.jpeg)  
Works great, thank you

---

<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:** [October 18, 2023, 9:22am UTC](https://discuss.elastic.co/t/controlling-the-size-of-the-point-on-the-map-using-document/345227/4 "2023-10-18T09:22:20Z")

</div>

Happy Mapping 🗺

---

<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:** [November 15, 2023, 9:22am UTC](https://discuss.elastic.co/t/controlling-the-size-of-the-point-on-the-map-using-document/345227/5 "2023-11-15T09:22:58Z")

</div>

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