Giter VIP home page Giter VIP logo

Comments (10)

petrsloup avatar petrsloup commented on May 21, 2024 2

This indeed seems to help. Adding "symbol-avoid-edges": true to the affected layer ensures the labels are not rendered when touching the tile edge:
image
But it also removes some labels which were rendered correctly (such as "Fremont" or "Harbor Island").

However, it needs to be used carefully, since adding it to all layers removes unnecessarily many features (such as roads, etc.), which work correctly on the edges:
image

from tileserver-gl.

klokan avatar klokan commented on May 21, 2024

Acknowledged. We will discuss @petrsloup, how to increase the buffers around tiles to avoid this problem.

from tileserver-gl.

klokan avatar klokan commented on May 21, 2024

We start to work actively on this issue. Upgrade of Mapbox GL Native did not solve the problem.
The next step is digging into the combination of input data (vector tiles + JSON style) on the sample area and debug tests on the GL Native.

from tileserver-gl.

petrsloup avatar petrsloup commented on May 21, 2024

I did some testing and it's possible there are actually two separate issues:
image

  • Sometimes, two labels are present very close to each other in both tiles, but it looks like different label is chosen to be used in different tile (blue circles).
  • And sometimes the label is present only in one of the tiles and not the other (blue circle).

Since this issues is also happening when using mapbox-gl-native directly (center+zoom+dimensions), there is probably nothing we can do on tileserver-gl side -- it's either bug in mapbox-gl-native or the data.

We will look into the tiles data to better understand what exactly is going on.

from tileserver-gl.

klokan avatar klokan commented on May 21, 2024

Related PR: mapbox/mapbox-gl-native#3357

from tileserver-gl.

klokan avatar klokan commented on May 21, 2024

@petrsloup - config for "MapMode::Still"?

from tileserver-gl.

mikemorris avatar mikemorris commented on May 21, 2024

This appears like you're hitting mapbox/mapbox-gl-native#3582, which can be fixed by adding symbol-avoid-edges: true to the clipped label layer in the style. We're considering making this default behavior and would appreciate any feedback you have, or edge cases that this fails to address.

from tileserver-gl.

beikehanbao23 avatar beikehanbao23 commented on May 21, 2024

I've the same problem,text lable spanning multiple raster tiles.

is there a metatile before export tiles in mapbox-gl-native ? like geowebcache?

from tileserver-gl.

petrsloup avatar petrsloup commented on May 21, 2024

There is currently nothing to be done on the server side.

This is more about the preparation of the data (tuning buffer sizes) and styles (sensible font sizes etc.).

from tileserver-gl.

muesliq avatar muesliq commented on May 21, 2024

This might (still) be a Mapbox GL Native bug: mapbox/mapbox-gl-native#11838

from tileserver-gl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.