我想用plotly python和satellite view从熊猫数据框中标记点(使用纬度和经度)。 样本df:
device GPSTime GPSLat GPSLng
101 1614956574 16.94469 29.8267
102 1615271467 16.94503 29.83
103 1615271488 16.94553 29.83
我使用Plotly绘制数据,但没有获得卫星视图。有没有办法得到卫星图像
霉菌代码:
import plotly.express as px
fig = px.scatter_mapbox(dfL, lat="GPSLat", lon="GPSLng", zoom=15, height=500,width=1000,color="device")
fig.update_layout(mapbox_style="open-street-map")
fig.show()
当前视图: enter image description here
但我需要在satalite图像上绘制这些数据?有没有办法得到卫星图像
首先,如果要使用mapbox,需要获取mapbox的APIKey。获得APIKey后,可以使用以下代码以指定的样式绘制卫星图像
相关问题 更多 >
编程相关推荐