Class EditHelper
Inherited Members
Namespace: Mapsui.Nts.Editing
Assembly: Mapsui.Nts.dll
Syntax
public static class EditHelper
Methods
| Edit this page View SourceShouldInsert(MPoint, double, List<Coordinate>, double, out int)
Determines if a coordinate should be inserted into list of coordinates. /// It fails if the distance of the location to the line is larger than the screenDistance.
Declaration
public static bool ShouldInsert(MPoint worldPosition, double resolution, List<Coordinate> coordinates, double screenDistance, out int segment)
Parameters
| Type | Name | Description |
|---|---|---|
| MPoint | worldPosition | The position that should perhaps be inserted. |
| double | resolution | The map resolution that is needed to calculte the distance. |
| List<Coordinate> | coordinates | The coordinates to insert into. |
| double | screenDistance | The allowed screen distance. This value is determined by the size of a symbol or the line width. |
| int | segment | The segment to insert it at. |
Returns
| Type | Description |
|---|---|
| bool |