Code example for Projection

Methods: toScreenLocation

0
		this.screenPosition = null;
	} 
 
	void buildScreenPosition(Projection projection) {
		if (projection != null && mapPosition != null) {
			screenPosition = projection.toScreenLocation(mapPosition);
		} 
	} 
 
	void setScreenPosition(Point screenPosition) {
		this.screenPosition = screenPosition;
	} 
 
	double getPixelDistanceFrom(BasePoint otherPoint) {
		return Distance.from(screenPosition, otherPoint.screenPosition);
	} 
 
}