I am using a tile layer and plotly scattermapbox is not able to source the right x/y/z images. I hope anyone can help me.
fig = go.Figure(go.Scattermapbox(
lat=[],
lon=[],
mode='markers',
marker=go.scattermapbox.Marker(
size=5,
symbol=['marker']
),
text=['None'],
))
tile_source = "https://api.meteointelligence.com/radar/data/2020/03/12/16/45/{z}/{x}/{y}.png"
fig.update_layout(
mapbox=go.layout.Mapbox(
bearing=0,
center=go.layout.mapbox.Center(
lat=lat,
lon=lon,
),
style="open-street-map",
layers=[
{
"sourcetype": "raster",
"source": [
tile_source
]
},
],
pitch=0,
zoom=zoom),
margin = {"r": 0, "t": 0, "l": 0, "b": 0})
If I am using the map in leaflet everything works fine