question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use ::outline for line properties in CartoCSS for polygons

See original GitHub issue

Context: 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:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
xavijamcommented, Jul 12, 2017

Yes, only those are necessary from the Backend side, so great! 💃

1reaction
mayoralcommented, Jul 6, 2017

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found