No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Pods
Sample-App
iOS-SDK.xcodeproj
iOS-SDK.xcworkspace
iOS-SDK
mapfit-gl/build
.swift-version
LICENSE
Mapfit.podspec
Podfile
Podfile.lock
README.md
READMEImage.png

README.md

Mapfit iOS SDK

alt text

Features

  • Create a map
  • Add a marker to your map

Requirements

  • iOS 11.0+
  • Xcode 9

Installation

CocoaPods

You can use CocoaPods to install Mapfit by adding it to your Podfile:

platform :ios, '11.0'
use_frameworks!
pod 'Mapfit'

Usage example

import Mapfit

Set your API Key

Get an API Key

class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
      MFTManager.sharedManager.apiKey = "API_KEY"
      return true
    }
}

Create your map

let mapView = MFTMapView(frame: view.bounds)
view.addSubview(mapView)

Add a marker to your map

let marker = mapView.addMarker(position:  CLLocationCoordinate2D(latitude: 40.74699, longitude: -73.98742))

Full Documentation