Removed deprecated code
Added legend using mapnik geometries