Allow map->projection inheritance for layers referenced by connection (#4873)