Call update after clearing the map. Don’t forget to re-add the basemap after cleaning.