add a simple Point class and fix the type of Map.getPointType