Changed the name of the local variable vectorMap to map.