mgrs-ios 1.1.6 Documentation

Class Grid​Labeler

public class GridLabeler: Labeler  
  • Grid labeler
GridLabeler GridLabeler Labeler Labeler GridLabeler->Labeler GZDLabeler GZDLabeler GZDLabeler->GridLabeler MGRSLabeler MGRSLabeler MGRSLabeler->GridLabeler

Superclass

Labeler

Subclasses

MGRSLabeler
GZDLabeler

Initializers

init()

public init()  
  • Initialize

init(_:​_:​)

public convenience init(_ minZoom: Int, _ color: UIColor)  
  • Initialize
  • @param minZoom
  •        minimum zoom
    
  • @param color
  •        label color
    

init(_:​_:​_:​)

public convenience init(_ minZoom: Int, _ color: UIColor, _ textSize: Double)  
  • Initialize
  • @param minZoom
  •        minimum zoom
    
  • @param color
  •        label color
    
  • @param textSize
  •        label text size
    

init(_:​_:​_:​_:​)

public init(_ minZoom: Int, _ color: UIColor, _ textSize: Double, _ buffer: Double)  
  • Initialize
  • @param minZoom
  •        minimum zoom
    
  • @param color
  •        label color
    
  • @param textSize
  •        label text size
    
  • @param buffer
  •        grid edge buffer (greater than or equal to 0.0 and less than
    
  •        0.5)
    

init(_:​_:​_:​)

public convenience init(_ minZoom: Int, _ maxZoom: Int?, _ color: UIColor)  
  • Initialize
  • @param minZoom
  •        minimum zoom
    
  • @param maxZoom
  •        maximum zoom
    
  • @param color
  •        label color
    

init(_:​_:​_:​_:​)

public convenience init(_ minZoom: Int, _ maxZoom: Int?, _ color: UIColor, _ textSize: Double)  
  • Initialize
  • @param minZoom
  •        minimum zoom
    
  • @param maxZoom
  •        maximum zoom
    
  • @param color
  •        label color
    
  • @param textSize
  •        label text size
    

init(_:​_:​_:​_:​_:​)

public init(_ minZoom: Int, _ maxZoom: Int?, _ color: UIColor, _ textSize: Double, _ buffer: Double)  
  • Initialize
  • @param minZoom
  •        minimum zoom
    
  • @param maxZoom
  •        maximum zoom
    
  • @param color
  •        label color
    
  • @param textSize
  •        label text size
    
  • @param buffer
  •        grid edge buffer (greater than or equal to 0.0 and less than
    
  •        0.5)
    

init(_:​_:​_:​_:​)

public convenience init(_ enabled: Bool, _ minZoom: Int, _ maxZoom: Int?, _ color: UIColor)  
  • Initialize
  • @param enabled
  •        enabled labeler
    
  • @param minZoom
  •        minimum zoom
    
  • @param maxZoom
  •        maximum zoom
    
  • @param color
  •        label color
    

init(_:​_:​_:​_:​_:​)

public convenience init(_ enabled: Bool, _ minZoom: Int, _ maxZoom: Int?, _ color: UIColor, _ textSize: Double)  
  • Initialize
  • @param enabled
  •        enabled labeler
    
  • @param minZoom
  •        minimum zoom
    
  • @param maxZoom
  •        maximum zoom
    
  • @param color
  •        label color
    
  • @param textSize
  •        label text size
    

init(_:​_:​_:​_:​_:​_:​)

public init(_ enabled: Bool, _ minZoom: Int, _ maxZoom: Int?, _ color: UIColor, _ textSize: Double, _ buffer: Double)  
  • Initialize
  • @param enabled
  •        enabled labeler
    
  • @param minZoom
  •        minimum zoom
    
  • @param maxZoom
  •        maximum zoom
    
  • @param color
  •        label color
    
  • @param textSize
  •        label text size
    
  • @param buffer
  •        grid edge buffer (greater than or equal to 0.0 and less than
    
  •        0.5)
    

Properties

DEFAULT_TEXT_SIZE

public static let DEFAULT_TEXT_SIZE  
  • Default text size

DEFAULT_BUFFER

public static let DEFAULT_BUFFER  
  • Default buffer size

Methods

labels(_:​_:​_:​)

public func labels(_ tileBounds: Bounds, _ gridType: GridType, _ zone: GridZone) -> [GridLabel]?  
  • Get labels for the bounds
  • @param tileBounds
  •        tile bounds
    
  • @param gridType
  •        grid type
    
  • @param zone
  •        grid zone
    
  • @return labels