# Point to Point (Lines) Have to Zoom in to show in Map

**URL:** <https://discuss.elastic.co/t/point-to-point-lines-have-to-zoom-in-to-show-in-map/230730>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [May 1, 2020, 3:43pm UTC](https://discuss.elastic.co/t/point-to-point-lines-have-to-zoom-in-to-show-in-map/230730 "2020-05-01T15:43:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viola\_Shen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viola_shen/32/46534_2.png) [@Viola\_Shen](https://discuss.elastic.co/u/Viola_Shen)\
**Post date:** [May 1, 2020, 3:43pm UTC](https://discuss.elastic.co/t/point-to-point-lines-have-to-zoom-in-to-show-in-map/230730/1 "2020-05-01T15:43:33Z")

</div>

Have to zoom in to show more lines. Tried to increased the max result and there are more lines showing but still need to zoom in for more lines.

Is there anything else we could do to increase the point-to-point lines showing in Map?

Thanks in advance.

---

<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 4, 2020, 10:39am UTC](https://discuss.elastic.co/t/point-to-point-lines-have-to-zoom-in-to-show-in-map/230730/2 "2020-05-04T10:39:50Z")

</div>

Hi @Viola_Shen, welcome to Elastic community forum!!

You can inspect the query that is sent for any Map layer, for a Point to Point source using the sample Kibana Flights demo you can see it's like the following (folding the non relevant pieces).

```
    {
    "size": 0,
    "aggs": {
        "destSplit": {
        "terms": {
            "script": {
            "source": "doc['DestLocation'].value.toString()",
            "lang": "painless"
            },
            "order": {
            "_count": "desc"
            },
            "size": 100
        },
        "aggs": {
            "sourceGrid": {
            "geotile_grid": {
                "field": "OriginLocation",
                "precision": 4,
                "size": 500
            },
            "aggs": {
                "sourceCentroid": {
                "geo_centroid": {
                    "field": "OriginLocation"
                }
                }
            }
            }
        }
        }
    },
    "stored_fields": [...],
    "script_fields": {...},
    "docvalue_fields": [...],
    "_source": {...},
    "query": {...}
    } 

```

As you can see this layer type is made by a double aggregation called `destSplit` where the sizes of the outer and inner aggs are `100` and `500` respectively. I'm afraid those values are not configurable at this moment.

@nreese am I missing anything else that could help Viola?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 4, 2020, 8:09pm UTC](https://discuss.elastic.co/t/point-to-point-lines-have-to-zoom-in-to-show-in-map/230730/3 "2020-05-04T20:09:13Z")

</div>

@Viola_Shen Can you open an enhancement issue at [https://github.com/elastic/kibana/issues/new?template=Feature\_request.md](https://github.com/elastic/kibana/issues/new?template=Feature_request.md) describing your use case and how you would like to configure point 2 point layer to show more data.

---

<div class="post-metadata">

**Author:** ![Viola\_Shen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viola_shen/32/46534_2.png) [@Viola\_Shen](https://discuss.elastic.co/u/Viola_Shen)\
**Post date:** [May 6, 2020, 3:35pm UTC](https://discuss.elastic.co/t/point-to-point-lines-have-to-zoom-in-to-show-in-map/230730/4 "2020-05-06T15:35:39Z")

</div>

Thank you so much Jorge.

---

<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 3, 2020, 3:35pm UTC](https://discuss.elastic.co/t/point-to-point-lines-have-to-zoom-in-to-show-in-map/230730/5 "2020-06-03T15:35:41Z")

</div>

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