-
-
Notifications
You must be signed in to change notification settings - Fork 754
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
Overzoomed line label has characters of reversed string #5179
Comments
The rotation seems also off by 180 degrees when the string is reversed. |
Can you check what is the first version experiencing this issue? Maybe we'll be able to find the offending PR. |
3.0.0 |
And more precisely, 3.0.0-pre.5 |
Possibly related pull request is #2260 |
@ChrisLoer any chance you can take a look at this issue? |
I think this is a line that doubles directly back on itself? At least I see there are overlapping features making up this line: Removing the text-offset: [0, 1] shows the doubling back in this video: double_back_fort.movI'm not sure the exact mechanics, but it's kind of not surprising to me that the orientation would get flipped if it just can't calculate a meaningful normal to the line. |
Well maybe I'm wrong about doubling back, but I'm definitely confused by the intended geometry here -- it looks like all of these features have just two vertices but they overlap each other sometimes going in the same direction (but with different lengths) and sometimes going in opposite directions?
|
Thanks for looking into this @ChrisLoer, @wipfli can you check if the data is valid? |
What is the best way to validate a vector tile? |
Look at the points and at the features in it and make sure the data makes sense in terms of geometry. |
@ChrisLoer what tool did you use to generate the above geojson from the pbf? |
I downloaded the PBF, opened it in QGIS, and then exported it as GeoJSON. I think you could also use I didn't see anything that looked invalid about the geometry, it's more that it's kind of edge-casey and "weird" in a way that seems like it might be triggering the behavior. If you look at I do think turning off the offset kind of highlights the root issue because you can see the doubling back happen incrementally, and I think it rules out the |
maplibre-gl-js version: 4.7.1
browser: chrome ubuntu
Steps to Trigger Behavior
50
line label sometimes appears as05
Link to Demonstration
https://jsbin.com/cacihux/edit?html,output
Expected Behavior
characters of string appear in the normal order
Actual Behavior
characters of string appear in reversed order
The text was updated successfully, but these errors were encountered: