I want to use a non CartoDB-installed typeface (one from typography.com) for the place labels (closer than 14z) on the map at http://outgoingnyc.com. So far if I try to do it in the css, it fails (blank map).
Here's how I brought in the data:
cartodb.createLayer(map, layerSource)
.addTo(map)
.done(function(layer) {
layer.setInteraction(true);
layer.on('error', function(err) {
console.log('error: ' + err);
});
var subLayerOptions = {
sql: "SELECT * FROM " + outgoingTable,
cartocss: $("#markerStyle").text(),
interactivity: 'year_opened, cartodb_id, name, year_opened, year_closed, audience, audience_2, audience, genre, genre2, source, pub_desc',
infowindow: true
} //end subLayerOptions
Here's the cartoCSS link (abbreviated):
<style type="cartocss/text" id="markerStyle">
#outgoing_masterv2{
marker-fill-opacity: 1;
marker-line-color: #FFF;
marker-line-width: 0;
marker-line-opacity: 1;
marker-placement: point;
marker-type: ellipse;
marker-allow-overlap: true;
}
...
</style>
I'm guessing that the way I've done this makes me only able to access the CDB pre-installed type. Is there some way I don't know about to change this though?
The font-family is 'Ideal Sans A', 'Ideal Sans B'
font-family: 'Ideal Sans A', 'Ideal Sans B';
Appreciate the thoughtful answer.
– zingbot Jun 11 '15 at 04:57