import plotly.graph_objects as go
mapbox_access_token = "your_token"
lat=13.749347864846364
lon = 100.6474419540223
fig = go.Figure(go.Scattermapbox(
lat=[f'{lat}'],
lon=[f'{lon}'],
mode='markers',
marker=go.scattermapbox.Marker(
size=15
),
text=['Garden Wing'],
))
fig.update_layout(
width=2000,
height=1000,
mapbox=dict(
accesstoken=mapbox_access_token,
center=go.layout.mapbox.Center(
lat=lat,
lon=lon
),
pitch=0,
zoom=17
)
)
fig.show()
# https://plotly.com/python/scattermapbox/