coding dynamic map infobox selection