grid-ios 1.0.7 Documentation

Class Base​Zoom​Grids

open class BaseZoomGrids  
  • Zoom Level Matching Grids

Initializers

init(_:​)

public init(_ zoom: Int)  
  • Initialize
  • @param zoom
  •        zoom level
    

Properties

zoom

public let zoom: Int
  • Zoom level

grids

public var grids: [BaseGrid]  
  • Get the grids within the zoom level
  • @return grids

Methods

num​Grids()

public func numGrids() -> Int  
  • Get the number of grids
  • @return number of grids

has​Grids()

public func hasGrids() -> Bool  
  • Determine if the zoom level has grids
  • @return true if has grids

add​Grid(_:​)

public func addGrid(_ grid: BaseGrid) -> Bool  
  • Add a grid
  • @param grid
  •        grid
    
  • @return true if added

remove​Grid(_:​)

public func removeGrid(_ grid: BaseGrid) -> Bool  
  • Remove the grid
  • @param grid
  •        grid
    
  • @return true if removed