Skip to content

Instantly share code, notes, and snippets.

@saleiva
Forked from tokumine/labels.cartodb
Created February 23, 2012 16:45
Show Gist options
  • Save saleiva/1893693 to your computer and use it in GitHub Desktop.
Save saleiva/1893693 to your computer and use it in GitHub Desktop.
carto to use labels in CartoDB maps
Just a quick sketch to explain how to use labels in CartoDB:
http://dl.dropbox.com/u/193220/CartoDB/labels.png
Something like this should work while we sort out exactly how to release this:
#populated_places_points_2{
marker-fill:#0099FF;
marker-line-color:white;
marker-line-width:1;
marker-opacity:0.68;
marker-line-opacity:0.68;
marker-width:20px;
marker-placement:point;
marker-type:ellipse;
marker-allow-overlap:true;
text-face-name: "DejaVu Sans Book";
text-fill:#000;
text-size:9;
text-transform:uppercase;
text-halo-fill:rgba(255,255,255,1);
text-halo-radius:1;
text-line-spacing:1;
text-wrap-width:20;
text-allow-overlap:true;
text-name:"[name]";
}
(secret is text-allow-overlap:true;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment