Fix map example

My attempt to fix Issue #434. It's also my first ever PR, so please let me know if I've done anything wrong.  :-)