# Overlay maps in Plotly + Mapbox

**URL:** <https://community.plotly.com/t/overlay-maps-in-plotly-mapbox/64309>\
**Category:** 📊 Plotly Python\
**Created:** [May 20, 2022, 9:29am UTC](https://community.plotly.com/t/overlay-maps-in-plotly-mapbox/64309 "2022-05-20T09:29:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![marav](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@marav](https://community.plotly.com/u/marav)\
**Post date:** [May 23, 2022, 9:09am UTC](https://community.plotly.com/t/overlay-maps-in-plotly-mapbox/64309/2 "2022-05-23T09:09:16Z")

</div>

Hi,

I got some tips from the following thread:

> [@Removing one of two legends in two maps in Plotly](https://community.plotly.com/t/removing-one-of-two-legends-in-two-maps-in-plotly/39507):
>
> I am trying to remove the legend of trace0 in this code (last line), but it’s not happening. Any ideas? Thank you! import plotly.express as px import plotly.graph\_objects as go import pandas as pd df1 = pd.read\_csv(...) df2 = pd.read\_csv(...) fig = px.scatter\_geo(df2, lon="Longitude", lat="Latitude", size="Pop2050", color="Growth rate 2020-50", color\_continuous\_scale=[ [0.0, "rgb(12,5…

And I was able to overlay the two maps like this:

```auto
   trace0 = fig2 # the second map from the previous code
   fig.add_trace(trace0.data[0])
   trace0.layout.update(showlegend=False)

```

BR

---

_[View the full topic](https://community.plotly.com/t/overlay-maps-in-plotly-mapbox/64309)._
