Skip to content

Instantly share code, notes, and snippets.

@emmagrimaldi
Last active March 30, 2019 12:12
Show Gist options
  • Select an option

  • Save emmagrimaldi/d3b8ab902ef1f2a6cecc0dcf64e117a8 to your computer and use it in GitHub Desktop.

Select an option

Save emmagrimaldi/d3b8ab902ef1f2a6cecc0dcf64e117a8 to your computer and use it in GitHub Desktop.
layout = dict(
height = 800,
# top, bottom, left and right margins
margin = dict(t = 0, b = 0, l = 0, r = 0),
font = dict(color = '#FFFFFF', size = 11),
paper_bgcolor = '#000000',
mapbox = dict(
# here you need the token from Mapbox
accesstoken = mapbox_access_token,
bearing = 0,
# where we want the map to be centered
center = dict(
lat = 38,
lon = -94
),
# we want the map to be "parallel" to our screen, with no angle
pitch = 0,
# default level of zoom
zoom = 3,
# default map style
style = 'dark'
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment