Latest 1.0.0
Homepage https://github.com/DavidLari/MapRegionMaker
License MIT
Platforms ios 8.0
Authors

The easy way to create a map region around sets of coordinates in Swift.

Version
License
Platform

When you have a map view in an iOS application, you may wish to add annotations or poly lines, etc. After adding them, you’d like to have the map zoom to a region that contains all the coordinates and maybe a little bit of padding on the sides. This simple framework makes it easy.

Usage

Import:

Import MapRegionMaker

Create an instance of MapRegionMaker

let mapRegionMaker = MapRegionMaker()

Add coordinates, either as singles or arrays.

Roadmap

  • CocoaPod support coming soon.
  • Better usage example coming soon.

About

This framework was created by David Lari. It is dreadfully simple, but I wanted to get some practice creating frameworks, pushing them to github, and setting up pods. Pull requests and suggestions are welcome. If you have questions, please create an issue.

Latest podspec

{
    "name": "MapRegionMaker",
    "version": "1.0.0",
    "summary": "Calculates the map region that encompasses all locations that have been added to the instance.",
    "description": "Calculates and returns the map region needed to encompass all locations that have been added to the instance.",
    "homepage": "https://github.com/DavidLari/MapRegionMaker",
    "license": "MIT",
    "authors": {
        "David Lari": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/DavidLari/MapRegionMaker.git",
        "tag": "1.0.0"
    },
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3"
    },
    "source_files": [
        "MapRegionMaker",
        "MapRegionMaker/**/*.{h,m}"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This