TypeError: marker.getPosition is not a function