A legend generator for Mapnik stylesheets