Trying to pass over the map to the create marker function in case that's the problem