Kotlin 百度地图路线
清单文件
<meta-data
android:name="com.baidu.lbsapi.API_KEY"
android:value="值" />
<service
android:name="com.baidu.location.f"
android:enabled="true"
android:process=":remote" />
lateinit var mLocClient: LocationClient
var id:Int ?= null
var address:String ?= null
var mSearch:RoutePlanSearch ?= null
var mBaiduMap:BaiduMap ?= null
var myListener:MyLocationListenner ?= null
var dizhi:String="百度科技园" //默认地址
val handler = @SuppressLint("HandlerLeak")
object : Handler() {
override fun handleMessage(msg: Message?) {
super.handleMessage(msg)
wh