Adding Grid to Map

Topics: General
Jun 20, 2011 at 3:25 PM

I was wondering if anyone has been able to add a grid to the map. I am trying to get a grid working when the zoom level is real close (so I can work with a flat-earth assumption), but I would like to create a grid that is about 10 meters by 10 meters or so and I was wondering if anybody had achieved this.


Jun 20, 2011 at 5:25 PM

var 10mInPx = 10.0 / Projection.GetGroundResolution(map.Zoom, Position.Lat);

draw grid by overriding OnPaintEtc

Jun 21, 2011 at 12:47 PM

In regard to using the GetGroundResolution function is the Projection the map.Projection? In addition, what Latitude am I supposed to give it?

Jun 21, 2011 at 12:51 PM

current position