I am using the scattermapbox via the python API and have no trouble creating a plot. However, I am unable to figure out how to set the visible area.
For example, if I am plotting markers on a US map and all of the markers are in Florida, I only want to show the state of Florida (or specific lat/long ranges). But if there are points in Texas and Florida, I will want to show all of the states from Texas to Florida. This works easily with Plotly’s scattergeo by passing the following in the geo dict:
But when using ScatterMapbox, there doesn’t appear to be a similar setting. The only thing that can be controlled is the center lat/long points and the zoom level. That would be fine, but it isn’t at all obvious how to set the zoom to achieve the same results as setting the lonaxis and lataxis as in the ScatterGeo.
Is there some other way to achieve this? While a user could control the zoom and the visible area in the interactive chart, I am trying to also generate a static PNG or PDF image so I need to be able to control the visible area.