Map ([
Layer(
'maxhi_20190717_72',
'''
color: ramp(linear($value,globalMIN($value),globalMAX($value)),[turquoise, yellow, red])
filter: animation(linear($value,globalMIN($value),globalMAX($value)), 20, fade(0.1, hold))
strokeWidth: 0
width: 4
''',
legend={
'type':'color-continuous-polygon',
'title': 'Max Heat Index for July 20, 2019',
'description': 'Degrees (°F)',
'footer': 'Issued: 7/17/19 | Source: NOAA Weather Predicition Center'
},
widgets=[
Widget(
'formula',
value='viewportMAX($value)',
title='Max Degrees (°F)',
),
Widget('time-series', value='value', title='Animation by Temperature'),
],
),
Layer(
'state_bounds',
'color: rgba(200,200,200,0.8)',
'width: 2'
),
],
basemap=basemaps.darkmatter,
show_info=True,
viewport={'zoom': 2.5, 'lat': 37.572586, 'lng': -110.638529},
)