<script>Aeris.wxblox.setAccess('jwwL5UT0bc1Q4IajE8spl',
'0mLWA6qlO8MIARcNko4HUxCHos1sS0GXlJbRXgEv');
// create desired WeatherBlox instance
var wxbloxLocalLayout = new Aeris.wxblox.layouts.local.Main('#wxblox', {
outlook: { enabled: true },
nearby: { enabled: false },
almanac: { enabled: false },
shortterm: { enabled: true },
forecast: { enabled: true },
maps: { enabled: false }
/*
animation: {
enabled: false,
autoplay: false,
alwaysShowPast: false,
alwaysShowFuture: false,
from: -2,
to: 0,
duration: 2,
endDelay: 1,
intervals: 10
},
controls: {
layers: [
{
code: "alerts",
title: "Weather Alerts"
}
],
regions: [
{
zoom: 6,
title: "Local"
}
]
}
});*/
});
wxbloxLocalLayout.load({
p: "atlanta,ga"
});
var search = new Aeris.wxblox.views.PlaceSearch('#place-search');
search.on('select', function(e) {
var p = e.data.place;
var stateOrCountry = (p.place.state) ? p.place.state : p.place.country;
wxbloxLocalLayout.load({
p: p.place.name + ',' + stateOrCountry
});
});
</script>