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

Effective JavaScript

Effective JavaScript

赫尔曼 (David Herman) / 黄博文、喻杨 / 机械工业出版社 / 2014-1-1 / CNY 49.00

Effective 系列丛书经典著作,亚马逊五星级畅销书,Ecma 的JavaScript 标准化委员会著名专家撰写,JavaScript 语言之父、Mozilla CTO —— Brendan Eich 作序鼎力推荐!作者凭借多年标准化委员会工作和实践经验,深刻辨析JavaScript 的内部运作机制、特性、陷阱和编程最佳实践,将它们高度浓缩为极具实践指导意义的 68 条精华建议。 本书共......一起来看看 《Effective JavaScript》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

SHA 加密
SHA 加密

SHA 加密工具

html转js在线工具
html转js在线工具

html转js在线工具