Skip to content

Instantly share code, notes, and snippets.

@ajashton
Created November 9, 2012 20:03
Show Gist options
  • Save ajashton/4047890 to your computer and use it in GitHub Desktop.
Save ajashton/4047890 to your computer and use it in GitHub Desktop.
#marinas[harbour=true][zoom>=7][zoom<=14],
#marinas[harbour=null][zoom>=10][zoom<=14],
#locks::label[zoom>=16] {
text-name:"''"; //just to avoid errors with the carto parser
text-face-name:@sans;
text-placement:point;
text-fill:@harbour_text;
text-halo-fill:@harbour_halo;
text-halo-radius:2;
text-size:12;
text-label-position-tolerance: 10;
[harbour=true] {
text-name:"'⚓ ' + [name].replace('[Pp]ort (de [Pp]laisance )?(de |du |d\')?','')";
}
[harbour=nulll] {
text-name:"'⚑ ' + [name].replace('[Hh]alte ([Nn]autique )?(de |du |d\')?','')";
}
#locks {
text-name: "'⇅ ' + [lock_name]";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment