code: public Coordinate viewToPan(Coordinate coordinate) {
  		if (coordinate != null) {
  			Vector2D position = new Vector2D(coordinate);
  			double scale = mapView.getCurrentScale();
  			Coordinate panOrigin = mapView.getPanOrigin();
  			
  			double translateX = (mapView.getViewState().getX() - panOrigin.getX()) * scale - (mapView.getWidth() / 2);
  			double translateY = -(mapView.getViewState().getY() - panOrigin.getY()) * scale - (mapView.getHeight() / 2);
  			position.translate(translateX , translateY);
  				// TODO: implement rotation support.
  			return new Coordinate(position.getX(), position.getY());
  		}
  		return null;
  	}
docs: Transform a coordinate from view space to pan space.
  
  @param coordinate
  The views pace coordinate.
  @return Returns the pan space equivalent of the given coordinate.