I’m inserting Scattermapbox HTML div’s into a report written in HTML. When I open that HTML report, every Scattermapbox element looks strange until I hit the “Reset” button (the home icon).
For example, this map of a shape is not centered when the report is opened:
After clicking on the Reset button, the map is centered on the centroid of the shape (as it should):
A more severe version of this problem occurs when there are scatter points plotted. Upon loading the report, this Scattermapbox div has bizarre white space:
After clicking on one of the custom buttons I made, or after clicking on the reset button, the plot looks how I expected it would:
I’m running plotly 3.3.0 and python 3.7.0.