• You're one step from joining GIS Mapping Forum – Remote Sensing, Surveying & Software Solutions.
    Create a free account to post, follow threads, and never miss an update.  Sign up free →

CartoCSS avoid color addition

CROSS

New member
Joined
May 11, 2025
Messages
4
Been working on a custom OSM tile server and most things are running smoothly except for one really annoying issue with coastline rendering. Im using CartoCSS to give the coastlines a subtle 3D effect, which looks great until the geometry gets dense. In areas with narrow inlets or tightly packed cracks, the parallel lines start overlapping and the colors stack visually, creating a muddy smudge effect that ruins the clarity.. I've explored the CartoCSS docs (not exactly thorough)), played with image filters, and tried layer tweaks, but nothings quite solving anything. Has anyone here found a clean way to handle this? Maybe via layer separation, masking, or even PostGIS tricks?? Open to ideas?
 
I'm not an expert, but 3D line effects are quickly ruined by dense coastlines. Adding a masked buffer layer, adjusting line-offset with comp-op: xor in CartoCSS, and simplifying with ST_Simplify in PostGIS all produced positive results. greatly aided without sacrificing style
 
That actually clear things up. Will have around at it agian, will update. I appreciate you responding..
 
Back
Top