It may make more sense to call map.render here.