8000 GitHub - mapfit/iOS-sdk
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mapfit/iOS-sdk

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0