check the layer name instead of the provider of the basemap