# Drawn lines disappear when zoom level less than 2.0

**URL:** <https://discuss.elastic.co/t/drawn-lines-disappear-when-zoom-level-less-than-2-0/267686>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [March 18, 2021, 3:05pm UTC](https://discuss.elastic.co/t/drawn-lines-disappear-when-zoom-level-less-than-2-0/267686 "2021-03-18T15:05:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gohovd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gohovd/32/74290_2.png) [@gohovd](https://discuss.elastic.co/u/gohovd)\
**Post date:** [March 18, 2021, 3:05pm UTC](https://discuss.elastic.co/t/drawn-lines-disappear-when-zoom-level-less-than-2-0/267686/1 "2021-03-18T15:05:16Z")

</div>

Hi all,

Elasticsearch: v7.9.1  
Kibana: v7.8.2

The title sums up it; I draw lines (linestring) between points (coordinates) on the map showing the path of various entities. When I adjust zoom to a level below 2.0 the lines disappear.

Seemingly same issue as: ["point to point lines have to zoom in to show in map"](https://discuss.elastic.co/t/point-to-point-lines-have-to-zoom-in-to-show-in-map/230730)

At first I figured there were too many datapoints to render in the map simultaneously, taking the limit of 10.000 datapoints into account. However the issue persist regardless of the chosen time-interval. That is assuming changing the time-interval indeed reduces the loaded records/datapoints?

Help on this would be greatly appreciated.

---

<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:** [March 20, 2021, 4:58pm UTC](https://discuss.elastic.co/t/drawn-lines-disappear-when-zoom-level-less-than-2-0/267686/2 "2021-03-20T16:58:24Z")

</div>

Can you provide some more details for "I draw lines (linestring) between points (coordinates) on the map". What does this mean? What do your elasticsearch documents look like? What are the field mappings? Can you provide an example document that demonstrates the problem? How did you create the layer in the maps application?

---

<div class="post-metadata">

**Author:** ![gohovd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gohovd/32/74290_2.png) [@gohovd](https://discuss.elastic.co/u/gohovd)\
**Post date:** [March 22, 2021, 11:10am UTC](https://discuss.elastic.co/t/drawn-lines-disappear-when-zoom-level-less-than-2-0/267686/3 "2021-03-22T11:10:15Z")

</div>

Hi Nathan,

Thanks for your response.

Certainly, here are a couple of example documents:

a) Points on the map:

```
{
  "_index": "a-2021-03",
  "_type": "_doc",
  "_id": "0b6b7cd8-8afd-11eb-a7f6-3c15c2e6e4e0",
  "_version": 1,
  "_score": null,
  "_source": {
    "location": {
      "lon": -84.019604,
      "lat": 35.733902
    },
    "coordinates": {
      "type": "point",
      "coordinates": [
        -84.019604,
        35.733902
      ]
    },
    "@timestamp": "2021-03-22T10:52:22.385Z"
}

```

b) Lines on the map:

```
{
  "_index": "a-2021-03",
  "_type": "_doc",
  "_id": "544143ca-8afd-11eb-a7f6-3c15c2e6e4e0",
  "_version": 1,
  "_score": null,
  "_source": {
    "@timestamp": "2021-03-22T10:51:46.261Z",
    "location": {
      "lat": 40.757182,
      "lon": 3.993405
    },
    "coordinates": {
      "type": "linestring",
      "coordinates": [
        [
          3.993405,
          40.757182
        ],
        [
          4.034979,
          40.818492
        ]
      ]
    }
}

```

Mappings:

```
{
  "a-2021-01" : {
    "mappings" : {
      "dynamic" : "true",
      "_meta" : { },
      "_source" : {
        "includes" : [],
        "excludes" : []
      },
      "dynamic_date_formats" : [
        "strict_date_optional_time",
        "yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"
      ],
      "date_detection" : true,
      "numeric_detection" : false,
      "properties" : {
        "coordinates" : {
          "type" : "geo_shape"
        },
        "location" : {
          "properties" : {
            "lat" : {
              "type" : "float"
            },
            "lon" : {
              "type" : "float"
            }
          }
        }
      }
    }
  }

```

How the layer was made in the maps application:

```
Data source: Document
Index pattern: a-*
Geospatial field: coordinates
Geospatial field type: geo_shape
Name: my_name
Visibility: [Zoom levels] 0 to 24
Opacity: 75%

Sorting: timestamp desc

Scaling:
[v] Limit results to 10000.
[] Show top hits per entity.
[] Dynamically filter for data in the visible map area.

Filtering:
[v] Apply global filter to layer data

Layer style:
Lines, border width: 6px
```

---

<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:** [April 19, 2021, 11:11am UTC](https://discuss.elastic.co/t/drawn-lines-disappear-when-zoom-level-less-than-2-0/267686/4 "2021-04-19T11:11:01Z")

</div>

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