Only add a new vector layer to the map once we know we have loaded