DotSpatial.Plugins.Measure.MapFunctionMeasure mapFunctionMeasure = new DotSpatial.Plugins.Measure.MapFunctionMeasure(mapMain); mapMain.ActivateMapFunction(mapFunctionMeasure);