line-offset makes the tile borders visible
See original GitHub issueContext
Trying to style a layer using line-offset
and the tiles borders become visible as a side effect
Steps to Reproduce
- Create a map from a polygon dataset or from scratch with an empty layer, and then draw a polygon by hand
- Style the layer with an extra border with Npx offset as
#layer {
polygon-fill: #374c70;
polygon-opacity: 0;
line-width: 2;
line-color:red;
line-opacity: 1;
}
#layer::2 {
polygon-fill: #374c70;
polygon-opacity: 0;
line-width: 2;
line-color: blue;
line-opacity: 1;
line-offset:-3;
}
Current Result
red lines: actual polygon border blue lines: polygon border with offset
-
If offset is < 0: the tiles that intersect my polygon has visible borders inside the polygon
-
If offset = 0: Behavior as expected
-
if offset > 0: the tiles that intersect my polygon has visible borders outside the polygon
Expected result
Just no tiles borders 😃
Browser and version
Any
.carto file
Additional info
Please add any information of interest here below
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (12 by maintainers)
Top Results From Across the Web
Display tile grid borders with leaflet (visual debugging)
Leaflet tiles have the leaflet-tile class You can use css to make the border visible .leaflet-tile { border: solid black 5px; }.
Read more >Tiles' borders got visible in my AGOL Tile Service...
Solved: I found out that my Tile Services now show up with a thin whitish border around, so that it seems a grid...
Read more >Layers | Style Specification | Mapbox GL JS
A style's layers property lists all the layers available in that style. The type of layer is specified by the "type" property, and...
Read more >Leaflet tile lines visible - Stack Overflow
I notice that at certain zoom levels, both in the map itself and zoom levels for the browser, I see the outline of...
Read more >thin lines appearing at the border of tiles but are not in the image
It could be two things. Filtering or sub-pixels. When you use any image or sprite, unless it is displayed at pefect native resolution...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well, it’s only taken me ~13~ 15 months but it’s now in production.
Indeed my intuition was correct, reverting that change fixes the bug:
v3.0.15-carto
branch:revert_offset_converter_fix
branch:(the slight change in style is just to avoid caching between tests)
but it breaks other things (see the polygon vertex and the many visual tests broken).
Fixing this would require some c++ & mapnik expertise, finesse keeping the good parts and amending the bad ones, and some extra test for it.