I'm currently doing a carte with CartoDB where I use CSS in order to show label but my issue is that I have entities which are very close and their label are difficult to read because of their superimposition.
I try some of the CSS properties' of CartoCSS (like text-min-padding or text-placement) but I failed.
Here is my CSS code
/** category visualization */
#doc {
marker-opacity: 0.9;
marker-line-color: #FFF;
marker-line-width: 1;
marker-line-opacity: 1;
marker-placement: point;
marker-type: ellipse;
marker-width: 40;
marker-allow-overlap: true;
}
#doc[type="ONG"] {
marker-fill: #A6CEE3;
}
#doc[type="Think Tanks"] {
marker-fill: #1F78B4;
}
#doc[type="Politique"] {
marker-fill: #B2DF8A;
}
#doc::labels {
text-name: [name];
text-placement: point;
text-face-name: 'DejaVu Sans Book';
text-size: 20;
text-fill: #000;
text-halo-fill: #FFF;
text-halo-radius: 1;
text-dy: 0;
text-allow-overlap: true;
text-placement-type: simple;
text-label-position-tolerance: 0;
}
Thanks a lot. Have a nice day
A.H