Method GetLevelForDistance
GetLevelForDistance(Double)
Returns the level of the largest grid in which its longest side is less than or equal to the provided distance (in degrees).
Declaration
public abstract int GetLevelForDistance(double dist)
Parameters
Type | Name | Description |
---|---|---|
System.Double | dist |
|
Returns
Type | Description |
---|---|
System.Int32 | level [1 to maxLevels] |
Remarks
Returns the level of the largest grid in which its longest side is less
than or equal to the provided distance (in degrees). Consequently
dist
acts as an error epsilon declaring the amount of detail needed in the
grid, such that you can get a grid with just the right amount of
precision.