created legend as a modal layered on map