Latest 1.0.0
License MIT
Platforms ios 8.0

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


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.



Import MapRegionMaker

Create an instance of MapRegionMaker

let mapRegionMaker = MapRegionMaker()

Add coordinates, either as singles or arrays.


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


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": "",
    "license": "MIT",
    "authors": {
        "David Lari": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "1.0.0"
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3"
    "source_files": [
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This