Making maps work if more than one appears on a page