function renderHeaders(map) {
    var opts = map.options;
    var header = map.el.header
      .attr('x', opts.width/2)
      .attr('y', map._y)
      .style('dominant-baseline', 'hanging')
      .style('text-anchor', 'middle')
      .style('font', opts.header_font)
      .style('fill', opts.font_color)
      .text(opts.header);

    // Increment Y-rendering position:
    map._y += header.node().getBBox().height + 20;
  }
// Renders the map's header and subhead 
Renders the map's header and subhead
Renders the map ' s header and subhead
function renderHeaders(map) {
    var opts = map.options;
    var header = map.el.header
      .attr('x', opts.width/2)
      .attr('y', map._y)
      .style('dominant-baseline', 'hanging')
      .style('text-anchor', 'middle')
      .style('font', opts.header_font)
      .style('fill', opts.font_color)
      .text(opts.header);
    map._y += header.node().getBBox().height + 20;
  }
function renderHeaders ( map ) { var opts = map . options ; var header = map . el . header . attr ( 'x' , opts . width / 2 ) . attr ( 'y' , map . _y ) . style ( 'dominant-baseline' , 'hanging' ) . style ( 'text-anchor' , 'middle' ) . style ( 'font' , opts . header_font ) . style ( 'fill' , opts . font_color ) . text ( opts . header ) ; map . _y += header . node ( ) . getBBox ( ) . height + 20 ; }
Renders the map's header and subhead
Renders the map ' s header and subhead
// Increment Y-rendering position: