Plotly on python here. Cant seem to get the center and lat lon set up correctly. Any help would be greatly appreciated. I have the scale attribute working okay. But the problem is that my map does not center over the northeast region of the USA. it always goes to the center of the scope.
###########I have tried this below
layout = dict(
title = ‘2014 US city populations
(Click legend to toggle traces)’,
mapbox= dict(bearing=0, pitch=0, zoom=10, center=dict(lat=45,lon=77)),
geo = dict(
scope='north america',
autosize=True,
projection=dict( type='albers usa' , scale=4),
#center =dict(lon=[70],lat=[40]),
showland = True,
landcolor = 'rgb(217, 217, 217)',
subunitwidth=1,
countrywidth=1,
subunitcolor="rgb(255, 255, 255)",
countrycolor="rgb(255, 255, 255)"
),
)
and This #################
layout = dict(
title = ‘2014 US city populations
(Click legend to toggle traces)’,
#mapbox= dict(bearing=0, pitch=0, zoom=10, center=dict(lat=45,lon=77)),
geo = dict(
scope='north america',
autosize=True,
projection=dict( type='albers usa' , scale=4),
center =dict(lon=[70],lat=[40]),
showland = True,
landcolor = 'rgb(217, 217, 217)',
subunitwidth=1,
countrywidth=1,
subunitcolor="rgb(255, 255, 255)",
countrycolor="rgb(255, 255, 255)"
),
)
fig = dict( data=cities, layout=layout )
iplot( fig, validate=False, filename=‘d3-bubble-map-populations’ , image=‘svg’)