Move showMap() to where it is used.