# Elasticsearch vector tile search point resolution

**URL:** <https://discuss.elastic.co/t/elasticsearch-vector-tile-search-point-resolution/312125>\
**Category:** Elasticsearch\
**Created:** [August 15, 2022, 8:29pm UTC](https://discuss.elastic.co/t/elasticsearch-vector-tile-search-point-resolution/312125 "2022-08-15T20:29:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_Bodman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles_bodman/32/109671_2.png) [@Charles\_Bodman](https://discuss.elastic.co/u/Charles_Bodman)\
**Post date:** [August 15, 2022, 8:29pm UTC](https://discuss.elastic.co/t/elasticsearch-vector-tile-search-point-resolution/312125/1 "2022-08-15T20:29:41Z")

</div>

Hi there,

We're currently developing a feature for a map project utilizing Elasticsearch vector tile search (MVT).

Our feature is displaying individual document location points. (Points, not polygons).

The problem we're seeing is that the points move around as the zoom level increases.

I understand this is a performance optimization for polygons, as the resolution of the polygon changes with zoom levels.

For individual points, this isn't ideal, as a user may select a point , and as they zoom in, the point moves to a different location.

**Question:**

1. **Should the vector tile search API preserve POINT(x, y) location data?**

2. **Should we even use MVT for individual data points? Or is it better suited for polygons?**

Thank you for any help!

---

<div class="post-metadata">

**Author:** ![Ignacio\_Vera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ignacio_vera/32/36674_2.png) [@Ignacio\_Vera](https://discuss.elastic.co/u/Ignacio_Vera)\
**Post date:** [August 16, 2022, 12:15pm UTC](https://discuss.elastic.co/t/elasticsearch-vector-tile-search-point-resolution/312125/2 "2022-08-16T12:15:37Z")

</div>

Hi,

Welcome to the community. Hope the answer to your questions are helpful:

> 1. Should the vector tile search API preserve POINT(x, y) location data?

No, as a vector tile does not know anything about latitude and longitude. A position inside a tile is defined in pixels coordinates. In order to transform lat/lon coordinates in WGS84 in a vector tile feature we need to project the coordinate into spherical mercator and then into pixel coordinates:

WGS84 -\> Spherical mercator -\> Vector tile pixels

Therefore, the precision is defined by the pixel precision of the vector tile. The precision is set by the [extent](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/search-vector-tile-api.html#search-vector-tile-api-query-params) of the tile which by default is 4096. Increasing that number, it will increase the precision but potentially the size of the tile as well. (Note that the maximum allowed is [8096](https://github.com/mapbox/mapbox-gl-js/issues/6957))

> 1. Should we even use MVT for individual data points? Or is it better suited for polygons?  
> I think vector tiles can be used for point data but we need to be aware that the maximum number of documents included in a vector tile are 10k, the rest are ignored. This behaviour is inherited from Elasticsearch as it is the maximum number of documents a query can return.

Polygon data is ordered by size so as you zoom in you might be seeing small features that were not visible when you were zoomed out. For points the behaviour is less defined as all points are weight the same so you might want to add your own ordering.

---

<div class="post-metadata">

**Author:** ![Charles\_Bodman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles_bodman/32/109671_2.png) [@Charles\_Bodman](https://discuss.elastic.co/u/Charles_Bodman)\
**Post date:** [August 26, 2022, 4:55pm UTC](https://discuss.elastic.co/t/elasticsearch-vector-tile-search-point-resolution/312125/3 "2022-08-26T16:55:22Z")

</div>

Thank you so much for your response. This clears things up a lot. 🙏

---

<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:** [September 23, 2022, 4:55pm UTC](https://discuss.elastic.co/t/elasticsearch-vector-tile-search-point-resolution/312125/4 "2022-09-23T16:55:24Z")

</div>

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