getItemsForMapMenu() not working with multiple layers.