Closed
Description
If I am overlaying an image to an scattermapbox, defining the opacity has no effect. Am I doing something wrong?
import plotly.graph_objects as go
fig = go.Figure(go.Scattermapbox(), layout=dict(width=600, height=450))
mapbox = dict(zoom= 4.5,
style='open-street-map',
center=dict(
lat=42,
lon=-74.5),
layers=[
dict(
below ='',
opacity=0.6,
source = "https://docs.mapbox.com/mapbox-gl-js/assets/radar.gif",
sourcetype= "image",
coordinates = [
[-80.425, 46.437], [-71.516, 46.437], [-71.516, 37.936], [-80.425, 37.93]
])
])
fig.update_layout(mapbox=mapbox)
fig.show()
plotly version:
4.4.1
Metadata
Metadata
Assignees
Labels
No labels