This project is read-only.

Map sample usage

Aug 6, 2010 at 10:08 AM

I have started looking taking a quick look at the Map Sample as to possibly using it to access Open Street Map in an application.  However, I'm not quite sure how to programmatically make the map's center position at certain locations in lat/long and how to zoom in or out.  It seems that the Visible property of the Chart2D plotter might be what I should use, but when I enter lat/long coordinates and extents in that DataRect structure, it doesn't appear to be positioning the control anywhere near where I expect.  I'm sure that given I have only taken a cusory look at the source code that I am missing something.  Could anyone shed some light as to how I can programmatically do the basic location, pan and zoom type of operations with the Map control and how I can read back data representing the state of the control in lat/long?

Thanks in advance!