Im trying to offset labels on the border of a polygon to the inside of the polygon in a mapbox-gl style. My data has a series of polygons with shared borders, and the labels on the borders need to be offset in to indicate which polygon is which.
The carto-css equivalent of the effect im looking for is
I would expect that
"symbol-placement": "line", "text-offset": [0,1] in the
layout properties would offset the labels in to the polygon, but it offsets the labels down, not inside.
"text-keep-upright": false offsets the labels in the correct direction, but it makes the text upside down on the bottom edge of the polygons.
Is there any way to offset the labels in, and keep them upright?
For the sake of completeness, here's a link to my style as it is now https://gist.github.com/JesseCrocker/17e11ccbe12c2b5393032f4585c13cdf