meterPerPixel method
returns the meters per pixel at the current zoomlevel. Returns 0 at +/-90°
Implementation
double meterPerPixel(ILatLong latLong) {
if (latLong.latitude == 90 || latLong.latitude == -90) return 0;
int pixels = _mapSizeWithScaleFactor();
const double pi180 = pi / 180;
return Projection.EARTH_CIRCUMFERENCE /
pixels *
cos(latLong.latitude * pi180);
}