Class
Grid
public class Grid: BaseGrid
- Grid
Relationships
Superclass
BaseGrid
Initializers
Properties
Methods
isType(_:)
public func isType(_ type: GridType) -> Bool
- Is the provided grid type
- @param type
-
grid type
- @return true if the type
style(_:)
- Get the grid type precision line style for the grid type
- @param gridType
-
grid type
- @return grid type line style
setStyle(_:_:)
- Set the grid type precision line style
- @param gridType
-
grid type
- @param style
-
grid line style
clearPrecisionStyles()
public func clearPrecisionStyles()
- Clear the propagated grid type precision styles
color(_:)
public func color(_ gridType: GridType) -> UIColor?
- Get the grid type precision line color
- @param gridType
-
grid type
- @return grid type line color
setColor(_:_:)
public func setColor(_ gridType: GridType, _ color: UIColor)
- Set the grid type precision line color
- @param gridType
-
grid type
- @param color
-
grid line color
width(_:)
public func width(_ gridType: GridType) -> Double
- Get the grid type precision line width
- @param gridType
-
grid type
- @return grid type line width
setWidth(_:_:)
public func setWidth(_ gridType: GridType, _ width: Double)
- Set the grid type precision line width
- @param gridType
-
grid type
- @param width
-
grid line width
setLabeler(_:)
public func setLabeler(_ labeler: GridLabeler?)
- Set the grid labeler
- @param labeler
-
grid labeler
lines(_:_:)
- Get the lines for the tile and zone
- @param tile
-
tile
- @param zone
-
grid zone
- @return lines
lines(_:_:_:)
- Get the lines for the zoom, tile bounds, and zone
- @param zoom
-
zoom level
- @param tileBounds
-
tile bounds
- @param zone
-
grid zone
- @return lines
lines(_:_:)
- Get the lines for the tile bounds and zone
- @param tileBounds
-
tile bounds
- @param zone
-
grid zone
- @return lines
labels(_:_:)
- Get the labels for the tile and zone
- @param tile
-
tile
- @param zone
-
grid zone
- @return labels
labels(_:_:_:)
- Get the labels for the zoom, tile bounds, and zone
- @param zoom
-
zoom level
- @param tileBounds
-
tile bounds
- @param zone
-
grid zone
- @return labels
equals(_:)
public override func equals(_ grid: BaseGrid) -> Bool
hash(into:)
public override func hash(into hasher: inout Hasher)
compare(_:)
public override func compare(_ grid: BaseGrid) -> Bool
precisionCompare()
public func precisionCompare() -> Int
- Get the precision in meters
- @return precision meters