MapKit 封装器 MapManager

码农软件 · 软件分类 · 地图(Map) · 2019-06-10 15:44:15

软件介绍

Map manager 是 MapKit 封装器,提供路线方向绘制,完全使用 Swift 编写。

简单示例——使用 Apple 设备定向:

var latOrigin = 37.331789
var lngOrigin = -122.029620
var coordinateOrigin = CLLocationCoordinate2D(latitude: latOrigin, longitude: lngOrigin)
var latDestination = 37.231789
var lngDestination = -122.029620
var coordinateDestination = CLLocationCoordinate2D(latitude: latDestination, longitude: lngDestination)

mapManager.directions(from: coordinateOrigin, to: coordinateDestination) { (route, directionInformation, boundingRegion, error) -> () in

    if (error? != nil) {

        println(error!)
    }else{

        if let web = self.mapView?{

            dispatch_async(dispatch_get_main_queue()) {

                web.addOverlay(route!)
                web.setVisibleMapRect(boundingRegion!, animated: true)

                }

            }
        }

    }


本文地址:https://www.codercto.com/soft/d/7675.html

Writing Windows VxDs and Device Drivers, Second Edition

Writing Windows VxDs and Device Drivers, Second Edition

Karen Hazzah / CMP / 1996-01-12 / USD 54.95

Software developer and author Karen Hazzah expands her original treatise on device drivers in the second edition of "Writing Windows VxDs and Device Drivers." The book and companion disk include the a......一起来看看 《Writing Windows VxDs and Device Drivers, Second Edition》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具