map API now returns object correctly, closes #474