WorldMatrix
is an iOS library writen in Swift 4.2 which allows you to draw a map with dots.
The easiest way to install WorldMatrix
is using CocoaPods. Add the following dependency to your Podfile
and run the pod install
command via command line:
pod 'WorldMatrix', '~> 4.2.0'
// worldArray can be generated with the generator (see `Generate a map)
var worldArray:Array<WorldCharacteristic> = []
let matrix = Matrix<WorldCharacteristic>(columns: 100, array: worldArray)
worldMatrixView.mapMatrix = matrix
Add the generator to your Podfile
pod 'WorldMatrix/Generator', '~> 4.2.0'
Generate a Matrix with you desired cutting
let generator = WorldMatrixGenerator()
// Set the number of columns per rows (Default: 100)
generator.columns = 20
// Set your desired map cutting (Default: .world)
// use .custom(north, east, south, west) for a custom bounding
generator.mapCutting = .europe
// Set the output type (.enum, .ascii, .emoji) (Default: .enum)
generator.exportType = .enum
// Generates the world array
generator.generate()
Clone this repository. Open the resulting xcode file. Run
the the regarding build schema to start the demo app in the iPhone or iPad simulator.
- Handle reverse geo code errors
See the LICENSE file for license rights and limitations (MIT).