-
Notifications
You must be signed in to change notification settings - Fork 3
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
Some labels appear cutoff in raster tiles #6
Comments
This should be fixed in v4.0.21+ . If you go to the main page it should say the version at the bottom. You on at least that version? The fix for label clipping I added maplibre/maplibre-native#415 should be in |
Also, if you aren't using the docker, don't forget to run an npm -i to update you packages...I've forgotten that a few times and was confused. |
I'm on NodeJS v16.17.0, so it looks like my EDIT: Just tried with NodeJS v14.20.0, |
Yeah, you can find my configuration here: https://github.com/dwoznicki/temp-clipped-tiles-debugging-style Let me know if you run into any issues getting this to run. I haven't tried running EDIT: Nevermind the logging question. I just realized that the code I thought was being executed was not being executed. 😶🌫️ It looks like the mode is indeed set to |
It's probably worth noting that my setup is a bit unusual. I'm using Tegola as my vector tile server with TileServer GL as my rasterizer. So it's possible that if the vector tile needs to be prepared in a special way (e.g. provide extra details about nearby tiles?), my tile server is not doing so. |
Did you install this as a node package in global mode? using 'npm install -g @acalcutt/tileserver-gl'. i was having issues getting that to work the other day so really just curious. Did you make sure to clear your browser cache, possibly an old tile could be cached (I saw that when i first migrated) I tried to see if I could use your style with my openmaptiles source but it seems to be a lot different of a format, and i wasn't able to use your source. In raster mode all the rendering takes place in maplibre-gl-native, so It shouldn't matter if your vector source is different i wouldn't think. |
If you look at massachusetts, do you see trimming in North Adams like maplibre/maplibre-native#284 , that was right on a tile line I suppose maybe your vector tile source could be trimming before in gets to tileserver-gl. That vector tile source feeds into Tileserver? |
And I guess one more question for testing would be, does it work in https://github.com/maptiler/tileserver-gl using mapbox-native? |
I just today changed
I've tried hard refreshing (CTRL + SHIFT + r) and keeping the "Disable cache" option in Chrome checked while reloading. No luck with either.
Yeah, I ended up creating a custom data format for my vector tiles, so I don't expect it to work with other tile sources.
It's a little tough to say because my styling is so different. I guess the answer is that I see some clipping, but not the same clipping. EDIT: Though upon closer inspection, I actually think "North Adams" specifically is clipped in almost the exact same way in my example as it is in your example.
That's a really good idea. I'll check and get back to you (probably tomorrow). |
I did some search on tegola label clipping and ran into this thread. somewhat similar |
Using some HAProxy magic I was able to get around the cross site blocking issue I was having testing your style. I definitely confirm clipping all over the place when using that source |
Mmm, yeah sure enough. I also tried adding the Actually, do you know how |
Okay, found out something else interesting. It looks like the places in the map with properly joined labels across multiple tiles are working because the PNG images are being rasterized from the same underlying PBF file. Using my example from above, tile and have properly joined labels for "San Francisco" and "Berkeley". When I modified my Tegola server to log which files were being requested, I noticed that the same PBF file was being requested for both.
However, when I check tiles where the label is cut off, such as and (result on the map) I noticed that two different PBF files were being requested from my server.
I wonder if I need to somehow get TileServer GL/MapLibre GL Native to load adjacent PBF tiles. |
So I just found a much easier way to confirm my suspicion. In file mbgl::MapDebugOptions debugOptions = mbgl::MapDebugOptions::NoDebug; to mbgl::MapDebugOptions debugOptions = mbgl::MapDebugOptions::TileBorders; and recompile + restart TileServer GL with the updated I believe this is what you were checking with maplibre/maplibre-native#284 (comment), but I just want to double check that if you turn on |
@acalcutt I got it! I needed to add Do you have something similar in your style by chance? |
This is my style https://github.com/acalcutt/wifidb-tileserver-gl/blob/master/tileserver-gl/styles/WDB_OSM/style.json . doesn't looks like I have 'symbol-avoid-edges' Also, i know this is closed, but just for informational purposes, My understanding of Tile Mode is that if you request something like a 512x512 image, it actually renders a little bit over that, adding a padding of 1024 to each side. This bit of overdraw allows it to know about labels that might have started in the next tile. |
Interesting. So if you turn on |
I'm having an issue where some of the labels in raster tiles appear cutoff.
When I look at the actual image being generated, I can see that the labels are clearly being cutoff at the image boundaries.
This looks very much like this issue in MapLibre GL Native that @acalcutt raised. Reading through that thread, I got the impression that the issue should be fixed on master now, but I'm not totally sure if that's the case.
For reference, here's my npm package versions.
The text was updated successfully, but these errors were encountered: