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.

Styling by value does not work with boolean fields

See original GitHub issue

Styling by value does not work with boolean fields (Turbo-Carto* is not applied).

STR

  • Create a map with a dataset with a boolean field.
  • Click on STYLE.
  • Click on color FILL.
  • Select BY VALUE and choose the boolean field. The expected result would be a categoric map, instead what is showing is a simple map (screenshot).

boolean

*CartoCSS:

#layer {
  marker-width: 7;
  marker-fill: ramp([arrest], (#5B3F95, #1D6996), ("false", "true"));
  marker-fill-opacity: 1;
  marker-allow-overlap: true;
  marker-line-width: 1;
  marker-line-color: #FFF;
  marker-line-opacity: 1;
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
dgaubertcommented, May 31, 2017

Ready in production

1reaction
dgaubertcommented, May 22, 2017

Acceptance OK:

screen shot 2017-05-22 at 11 59 23

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot seem to style my component via boolean value
Using Styled-components, I am attempting to style custom components based on their content. However I cannot seem to get this quite right. Here ......
Read more >
Boolean field inside node twig renders ok but does not work in ...
In content is the render array of the field output. A boolean is probably a text in #markup . What text this is...
Read more >
Ceckbox in cell for boolean value column - Forums - Infragistics
Every grid except one presents a Boolean or bit from SQL as a checkbox. This one gird that does not work shows True...
Read more >
Field Styles: True/False Condition & Dot-walk - ServiceNow
There is a true/false checkbox (Test) on the form. In the Value field I out: javascript: current.u_test == 'true' (Does not work) ...
Read more >
Boolean.prototype.toString() - JavaScript - MDN Web Docs
The Boolean object overrides the toString method of Object ; it does not inherit Object.prototype.toString() . For Boolean values ...
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