| | |
| | | import com.amap.api.services.poisearch.PoiResult |
| | | import com.amap.api.services.poisearch.PoiSearch |
| | | import com.autonavi.amap.mapcore.Inner_3dMap_location |
| | | import com.kuanzhai.user.OkApplication |
| | | import com.kuanzhai.user.KuanzhaiApplication |
| | | import com.kuanzhai.user.db.HistoryDBManager |
| | | import com.kuanzhai.user.ui.TransparentStatusBarActivity |
| | | import com.kuanzhai.user.dialog.TipDialog |
| | |
| | | } |
| | | |
| | | override fun initView() { |
| | | tv_city.text = if (cityName.isNullOrEmpty()) OkApplication.chooseCityName else cityName |
| | | tv_city.text = if (cityName.isNullOrEmpty()) KuanzhaiApplication.chooseCityName else cityName |
| | | if (siteId!=0){ //跨城 |
| | | tv_city.setCompoundDrawablesWithIntrinsicBounds(0,0,0,0) |
| | | } |
| | |
| | | aMap.setOnMyLocationChangeListener { |
| | | it as Inner_3dMap_location |
| | | Log.e(Const.Tag, "选择定位:lat:" + it.latitude + ",lon:" + it.longitude) |
| | | OkApplication.lat = it.latitude |
| | | OkApplication.lon = it.longitude |
| | | OkApplication.address = it.address |
| | | OkApplication.cityCode = it.extras.getString("adcode") ?: "" |
| | | KuanzhaiApplication.lat = it.latitude |
| | | KuanzhaiApplication.lon = it.longitude |
| | | KuanzhaiApplication.address = it.address |
| | | KuanzhaiApplication.cityCode = it.extras.getString("adcode") ?: "" |
| | | if (locCount < 1) { |
| | | aMap.animateCamera( |
| | | CameraUpdateFactory.newLatLngZoom( |