Almost have layer control working

Problem with asynchronous getJSON call not completing before its result
is assigned to the map.