code: public Point2D convertGeoPositionToPoint(GeoPosition pos)
      {
          // convert from geo to world bitmap
          Point2D pt = getTileFactory().geoToPixel(pos, getZoom());
          // convert from world bitmap to local
          Rectangle bounds = getViewportBounds();
          return new Point2D.Double(pt.getX() - bounds.getX(), pt.getY() - bounds.getY());
      }
docs: Converts the specified GeoPosition to a point in the JXMapViewer's local coordinate space. This method is
  especially useful when drawing lat/long positions on the map.
  @param pos a GeoPosition on the map
  @return the point in the local coordinate space of the map