2

Closed

Unable to draw the measure distance lines on map

description

I successfully display the Measure Dialog but i could not take a response from the Map to view the distance that i measures when mouse move and mouse Down, Up
 
Here's my code:
    Dim vMeasure As New DotSpatial.Plugins.Measure.MapFunctionMeasure(Map1)
 
    vMeasure.Activate()
 
So what is the necessary code to do that.
Closed Aug 6, 2012 at 6:21 PM by mudnug
Should be posted to Discussions.

comments

mudnug wrote Aug 6, 2012 at 6:20 PM

See MeasurePlugin which serves as an example.

Also, please do not open issues for simple questions.
        if (_Painter == null)
            _Painter = new MapFunctionMeasure(App.Map);

        if (!App.Map.MapFunctions.Contains(_Painter))
            App.Map.MapFunctions.Add(_Painter);

        App.Map.FunctionMode = FunctionMode.None;
        App.Map.Cursor = Cursors.Cross;
        _Painter.Activate();

tctruongld8 wrote Aug 7, 2012 at 1:48 AM

It works fine
thank you very much.