a bit more tweaking on the legend see MapStory/mapstory/issues/918