Hi, I have written a simple python script in databricks to export map images centred on a list of coordinates with a heatmapusing plotly, however it only works when map_style = ‘white-bg’. Any other map_style causes it to fail with ValueError: Transform failed with error code 525: Map error.
for index, location in locationcoords.pandas_api().iterrows():
fig = px.density_map(heatmapcoords.toPandas(), lat='heatmap_LAT_COORD', lon='heatmap_LONG_COORD', radius=4,
center=dict(lat=location['Latitude'], lon=location['Longitude']), zoom=9,
map_style="open-street-map", title = location['location_name'] + " " + location['location'])
fig.write_image(location['location_name'] + " " + location['location'] + ".png")
However, when I don’t have a write_image command it will display the maps, so it can clearly connect to the map tiles. Does anyone know why it won’t write the images?