Adding Lat/Long to local point

Feb 5, 2009 at 11:14 AM
Hello radioman,

Could you add a public function returning the local x/y from a lat/lng point taking into account the renderOffset. Actually, the opposite of FromLocalToLatLong, something like

 

public Point FromLatLngToLocal(PointLatLng latlng)
{
    System.Drawing.
Point pLocal = GMaps.Instance.FromLatLngToPixel(latlng, this.Zoom);
    pLocal.Offset(
Core.renderOffset);
    
return pLocal;
}

 

It would allow me to use the drawingContext to draw shapes without "hacking" your code.

thanks.
Feb 5, 2009 at 1:12 PM
done!