function renderBrand(map) {
    if (!map.brand) return;

    var opts = map.options;
    var brand = map.el.brand.attr('d', map.brand);
    var bbox = brand.node().getBBox();
    var pad = 20;

    scale = (opts.width * 0.15) / bbox.width;
    offsetX = opts.width - Math.round(bbox.width * scale) - pad;
    offsetY = map._y - Math.round(bbox.height * scale) - pad;
    brand.attr('transform', 'translate('+offsetX+','+offsetY+') scale('+scale+')');
  }
// Renders the brand mark in the lower-right corner.
Renders the brand mark in the lower-right corner.
Renders the brand mark in the lower - right corner .
function renderBrand(map) {
    if (!map.brand) return;
    var opts = map.options;
    var brand = map.el.brand.attr('d', map.brand);
    var bbox = brand.node().getBBox();
    var pad = 20;
    scale = (opts.width * 0.15) / bbox.width;
    offsetX = opts.width - Math.round(bbox.width * scale) - pad;
    offsetY = map._y - Math.round(bbox.height * scale) - pad;
    brand.attr('transform', 'translate('+offsetX+','+offsetY+') scale('+scale+')');
  }
function renderBrand ( map ) { if ( ! map . brand ) return ; var opts = map . options ; var brand = map . el . brand . attr ( 'd' , map . brand ) ; var bbox = brand . node ( ) . getBBox ( ) ; var pad = 20 ; scale = ( opts . width * 0.15 ) / bbox . width ; offsetX = opts . width - Math . round ( bbox . width * scale ) - pad ; offsetY = map . _y - Math . round ( bbox . height * scale ) - pad ; brand . attr ( 'transform' , 'translate(' + offsetX + ',' + offsetY + ') scale(' + scale + ')' ) ; }
Renders the brand mark in the lower-right corner.
Renders the brand mark in the lower - right corner .