Use ::outline for line properties in CartoCSS for polygons
See original GitHub issueContext: https://github.com/CartoDB/cartodb/issues/7723.
In order to speed up and make the styles compatible between vector and raster, we need to use the ::outline
approach for the CartoCSS line-*
properties.
However, the current approach only allows to use flat styles, see https://github.com/CartoDB/cartodb/blob/ed553a8b34fedbb0f9a7ab429615b437ad6c9fb3/lib/carto/styles/polygon.rb + https://github.com/CartoDB/cartodb/blob/ed553a8b34fedbb0f9a7ab429615b437ad6c9fb3/lib/carto/styles/style.rb#L32.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Styling Concepts — carto documentation - CartoCSS
This ability is useful in drawing line outlines, like in the case of road borders or 'glow' effects around coasts. CartoCSS makes this...
Read more >Styling with CartoCSS - Amazon S3
Course Template; Module Outline; Introduction to CartoCSS; CartoCSS Syntax ... Exercise; Styling Lines; Line Patterns; Styling Polygons; Conditional CSS ...
Read more >Wide borders look weird for small polygons in Mapnik
I have played with the line-join and line-cap properties, but this is the best result I have got and it is not enough....
Read more >Styling Lines | TileMill - GitHub Pages
Line styles can be applied to both line and polygon layers. ... Simple dashed lines can be created with the line-dasharray property.
Read more >How To: Use topology to create line features from polygon ...
ArcGIS 8.3 now provides an easier method to outline polygons with either a cased line (a line with fill color and a different...
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
Yes, only those are necessary from the Backend side, so great! 💃
@rochoa if we want to support multiple levels of nesting, the best option is to parse these levels recursively. If we only need to support the first level (for the properties inside
::outline
we can take a much simpler approach).Let’s go for one level for now then. We always have time in the future to add the recursion if needed 😃
Thanks!