Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

label drawing problem at pitching 55 degree #2148

Closed
emreesirik opened this issue Feb 18, 2016 · 4 comments
Closed

label drawing problem at pitching 55 degree #2148

emreesirik opened this issue Feb 18, 2016 · 4 comments

Comments

@emreesirik
Copy link

http://s11.postimg.org/87duhv4w3/mapbox_bug.png

There is a problem with drawing label

@jfirebaugh
Copy link
Contributor

What version of mapbox-gl-js are you using?

@emreesirik
Copy link
Author

v0.14.1

@ansis
Copy link
Contributor

ansis commented Feb 19, 2016

Is the layer causing problems using data from vector tiles or is it a geojson layer?

Here's what I think is happening:
The layer has "*-allow-overlap": true. Symbols that area allowed to overlap are sorted in the y direction (#470). This is implemented by sorting symbols within each tile. To get the sorting right across tile edges we clip these symbols to the tile edges and rely on the other tile to render the other half of the symbol. In this example the other tile doesn't have the point so it can't render the other half.

long term we may change the way we handle this case, but shorter term you could:

  • increase the size of the data padding in the vector tile
  • now use "*-allow-overlap": true
  • use smaller labels

@lucaswoj
Copy link
Contributor

Closing because

  • this issue is stale (it was reported long ago and hasn't come up since)
  • this issue fundamentally occurs because a point feature isn't included in the other tile's buffers
  • there's no clear actionable fix in this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants