Tag Info

New answers tagged

0

You can't calculate string length with CartoCSS directly, but you can preprocess the data. If you're reading from a PostGIS database, add a new field for label length using the char_length() function in Postgres (docs). If you data is another format (e.g. shapefile), you'd have to do the calculation in another program (e.g. qGIS). Then, use a CartoCSS ...


1

This is an interesting question which I've been asking myself every month or two for the last year or so. It's not straightforward. Some things to consider: Vector tiles vs raster tiles Mapbox Studio only does vector tiles, TileMill only does raster tiles (and static images) Neither of those things will likely ever change. I thought MS had a way to ...


0

EDIT: Got a winner! You can use instances to do this. Like attachments, naming is arbitrary but order is not #layer { background/marker-allow-overlap: true; background/marker-file: url('path/to/background.svg'); background/marker-fill: #111; background/marker-line-color: #111; background/marker-line-width: 9; background/marker-width: 26; ...



Top 50 recent answers are included