Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: (C#)please! help me ~ I think this must be easy for you

$
0
0
Following an example subroutine that is executed as you click on your measure tool button
private void measureclick(System.Object sender, System.EventArgs e)
{
    var _with1 = Map1;

    _with1.FunctionMode = FunctionMode.None;
    mf = new MapFunctionMeasure(Map1);

    _with1.MapFunctions.Add(mf);

    mf.Activate();
}

private MapFunctionMeasure mf;
This works for me, hope it works for you too

Oscar

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>