also, it is better to loop over all portalLayers. I ran into updating issues while developing the portal selection. `map_data.js#cleanUp` has sample code that can be adjusted.