Latest 3.0.0
Homepage https://github.com/KiloKilo/WorldMatrix
License MIT
Platforms ios 8.1, requires ARC
Authors

Cocoapods Version
Cocoapods Platform
Analytics

WorldMatrix is an iOS library writen in Swift 3 which allows you to draw a map with dots.

Screenshot

Installation

CocoaPods

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', '~> 3.0.0'

Usage

// 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

Generate a map

Add the generator to your Podfile

pod 'WorldMatrix/Generator', '~> 3.0.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

// Generates the world array
generator.generate()

Demo

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.

TODO

  • [x] update to Swift 3
  • [ ] Handle reverse geo code errors
  • [ ] generator should create a usefull output

License

Copyright (c) 2016 KiloKilo GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Latest podspec

{
    "name": "WorldMatrix",
    "version": "3.0.0",
    "summary": "create a view with a dotted world map in Swift 3.0",
    "description": "`WorldMatrix` is an iOS library writen in Swift 3 which allows you to draw a map with dots.",
    "homepage": "https://github.com/KiloKilo/WorldMatrix",
    "screenshots": "https://raw.github.com/KiloKilo/WorldMatrix/master/screenshot.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Alexandre Joly": "[email protected]"
    },
    "social_media_url": "http://twitter.com/jolyAlexandre",
    "platforms": {
        "ios": "8.1"
    },
    "source": {
        "git": "https://github.com/KiloKilo/WorldMatrix.git",
        "tag": "3.0.0"
    },
    "requires_arc": true,
    "default_subspecs": "Base",
    "pushed_with_swift_version": "3.0",
    "subspecs": [
        {
            "name": "Base",
            "source_files": [
                "WorldMatrix/Matrix.swift",
                "WorldMatrix/WorldMatrixView.swift"
            ]
        },
        {
            "name": "Generator",
            "source_files": "WorldMatrix/WorldMatrixGenerator.swift",
            "dependencies": {
                "WorldMatrix/Base": []
            }
        }
    ]
}

Pin It on Pinterest

Share This