Providing a non-simplified Mapbox Vector Tile using mapbox gl js

I'm trying to display mvt (Mapbox Vector Tile) containing OSM data using Mapbox GL js, but I keep getting some ugly polygons like them that have been simplified (like in the Simplification section of this documentation !). I do not want these polygons to be simplified. At least I would like the best resolution to be as close to reality as possible.

First I checked if it could be from OSM data. But OSM data is good. Therefore, I looked at the tile server and, more precisely, into the mvt ( code ) encoder . The degree value that controls how the detailed coordinates are encoded in the vector tile is 4096. 4096 is a very good value. Therefore, I do not understand why I do not have the correct polygons.

I believe this problem comes from Mapbox GL js, which may make further simplification.

What value can be used in the encoder? Is there a way to adjust the resolution with mapbox gl js?

I would be grateful for your help! Thank!

+4
source share
2 answers

Mapbox GL JS . , , , .

+1

. , geojson, , , mapbox. .

0

Source: https://habr.com/ru/post/1661075/


All Articles