This project is read-only.

just beginner

Sep 25, 2012 at 11:48 AM
Edited Sep 25, 2012 at 11:49 AM

i just downloaded the dotspatial and trying to design a tool for basic map actions. so i need some documents for zoom pan , i mean basic map movements i found pan zoom but i also need help about sliding map left right up down and define coordinates on a scaned image from paper map (to define starting and end points) and one more question is  to but an small target image on one point that i choose. thanks for help.(c#)

Sep 27, 2012 at 12:15 PM

You can use Map.FunctionMode for basic map operations. for example

map1.FunctionMode = FunctionMode.Pan;

to put point on the map you can use something like that:

public partial class MainForm : Form
    private IMapPointLayer points = null;
    private FeatureSet set = null;
    public MainForm()
        set = new FeatureSet(FeatureType.Point);
        set.Projection = map1.Projection;
        points = (IMapPointLayer)map1.Layers.Add(set);
        points.Projection = map1.Projection;
        points.Symbolizer = new PointSymbolizer(images.point, 48);
        points.SelectionSymbolizer = new PointSymbolizer(images.point_selected, 48);
    void Map1MouseUp(object sender, MouseEventArgs e)
        if(e.Button == MouseButtons.Right)
            Coordinate c = map1.PixelToProj(e.Location);