latLonToPixel method

Mappoint latLonToPixel(
  1. ILatLong latLong
)

Calculates the absolute pixel position for a map size and tile size

@param latLong the geographic position. @param mapSize precomputed size of map. @return the absolute pixel coordinates (for world)

Implementation

Mappoint latLonToPixel(ILatLong latLong) {
  return Mappoint(longitudeToPixelX(latLong.longitude),
      latitudeToPixelY(latLong.latitude));
}