🟫
Tune vector rendering
In the layer details pane you tune the way vector data is rendered. Ellipsis Drive tries to set good defaults based on statistics of the layer. But in some cases tuning it yourself can greatly improve the rendering performance of the layer in question

Some background

Before we get in how you can tune vector rendering, let's have a quick look on how vector rendering works. There are 3 things you need to know. Vector tiles, pages and levels of detail.
Ellipsis Drive makes use of paged vector tiles. That is to say the browser can request certain tiles and retrieve all vectors within that tile. This tiling makes sure the searching is extremely efficient no matter the number of features residing in the layer.
Paged vector tiles are different from regular vector tiles in that the tiles can contain an unlimited number of features. For this reason, when retrieving a tile, you can specify the number of features you wish to retrieve for this tile. The result will provide the number of requested features and give you an offset you can use to retrieve the next page for this tile.
The last thing we should mention are levels of detail. When retrieving a tile you can specify a level of detail. If you request a low level of detail you will retrieve simplified versions. These will be less precise then the original but will be faster to download and render.

Tune

When you go to the layer details you will see a section 'Tune rendering' if you open it up you will be confronted with two main switches. One controls the vector tiles retrieval, the other controls the level of details.
​
​

Tune vector tiles

If you activate the switch, all features in the layer will be scraped and rendered. When moving your viewport no additional data will be downloaded or removed. There will just be one full download of all data, that then will be displayed. This setting is reccomandable for layers containing only few features.
​
​
​
If you disable the switch you will see 3 input fields. With 'maximum features per tile' you can define a stopping condition for data retrieval. Once a vector tile has more features on it than the number mentioned retrieval is stopped.
'maximum tile size in mb' is similar but this time the stopping condition is based on the size of all the features combined. If the size is greater than the indicated number retrieval is stopped.
Lastly there is 'number of features to load per step' this number indicates the number of features to load on each step.
For example if the 'maximum features per tile' is 100 and the 'number of features per step' is 20. Each tile will be loaded in 5 steps, each time you see an additional 20 features appearing, once 100 features are present the loading stops.
The most optimal settings depend on the features in the layer, the use case and also the harde ware used.

Levels of detail

When uploading vector data you can indicate that you wish to create downsampled versions of the vectors.
​
​
​
If you chose yes you can use these levels of details in tune rendering. In case of complex polygons or lines, displaying simplified versions of the geometries can greatly boost performance.
If your layer has multiple levels of details you will see the following switch in tune rendering
​
​
When switched on levels of detail will be used based on your viewport. If you are zoomed in a higher level of detail will be used, if you are zoomed out a low level of detail will be used. This does mean that on zooming in and out the features will need to be rerendered. The up side is that you can display many features rather fast when zoomed out.
When you switch it off, you will be presented a slider in which you can indicate the level of detail you wish to see. No matter your viewport the features will now always show up in the indicated level of detail.
​
​
​
​
Example high level of detail:
​
​
Example low level of detail:
​
​
Example very low level of detail:
​
​
Copy link
On this page
Some background
Tune
Tune vector tiles
Levels of detail