Display attribution information on the map. This internally creates the attribution,
and then you can add it to a map by chaining .appendTo(map.parent)
.
<div id='map-div'></div>
<script type='text/javascript'>
var mm = com.modestmaps;
wax.tilejson(
'http://tiles.mapbox.com/mapbox/api/Tileset/geography-class',
function(tilejson) {
var m = new mm.Map('map-div',
new wax.mm.connector(tilejson));
wax.mm.attribution(m, tilejson).appendTo(m.parent);
m.setCenterZoom(new mm.Location(39, -98), 2);
}
);
</script>
attribution = wax.mm.attribution(map, tilejson)
attribution.appendTo(element)
<div class='wax-attribution'>legend content</div>