I want to add a legend for each marker_color on my second trace below but I can't figure out how to make it happen through the graph objects. Any idea?
import plotly.graph_objects as go
fig = go.Figure()
fig.add_trace(
go.Scattergeo(
lat = df_outliers['Lat'],
lon = df_outliers['Long'],
marker = {'color' : 'grey',
'size': 5,
'symbol': 'diamond'},
name = "Stations outside clusters"
)
)
fig.add_trace(
go.Scattergeo(
lat = df_clusters['Lat'],
lon = df_clusters['Long'],
mode = 'markers',
marker_color = df_clusters['Clus_Db']
)
)
fig.update_layout(width=800, height=500,
margin=dict(r=0, b=20, l=0, t=50),
title = {
'text': "Weather Station in Canada",
'y':0.95,
'x':0.5,
'xanchor': 'center',
'yanchor': 'top' },
geo_scope='north america'
)
fig.show()

