MapControl, mouse button up, possibility to control MARGIN

Apr 13, 2014 at 10:40 AM
I have a suggestion for MapControl interface modification.
I need a possibility to virtually extend the margin that is used to detect left mouse click on a feature in a map.
Is there any reason for „16“ to magic number? Could it be a property (with public setter) which would have default value of 16?

private MouseInfoEventArgs GetMouseInfoEventArgs(Point mousePosition, IEnumerable<ILayer> layers)

var margin = 16 * Viewport.Resolution;
Note: I know I could build my own version from source (I have done so far), but I also would like to use your constant improvements (via NuGet) and that complicates things. I hope other users would appreciate this functionality as well.
Apr 21, 2014 at 8:13 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Apr 21, 2014 at 8:19 PM
Okay, will fix it.

The MapControl is the least developed part of Mapsui and users have diverse requirements, so it would make sense for some to have their own version of the MapControl but use everything else from NuGet.