Custom Map View

Topics: SharpMap Project, SharpMap v0.9 / v1.x
Mar 26, 2008 at 3:13 PM
Edited Mar 26, 2008 at 3:15 PM
Hi All,

I want to get a custom view of the map as an image. (ie. I want to get a [width] X [height] image of the map at [zoom level] centered at [center x], [center y])

How can I accomplish this in SharpMap (0.9)? Thanks.

- Jackie
Developer
Mar 26, 2008 at 4:27 PM
Is this what you mean?

Map map = new Map(new Size(width, height));
map.Center = new Geometries.Point(centerX, centerY);
map.Zoom = zoomLevel;
Image image = map.GetMap();


Mar 26, 2008 at 11:57 PM

pauldendulk wrote:
Is this what you mean?

Map map = new Map(new Size(width, height));
map.Center = new Geometries.Point(centerX, centerY);
map.Zoom = zoomLevel;
Image image = map.GetMap();




Wow, couldn't be much simpler :) Thanks.

- Jackie