- 博客(1)
- 资源 (4)
- 收藏
- 关注
生活轨迹Android端
YLC BusLine java
地图相关 使用继承MapView的MyBusLineMapView目的是重写touch事件实现泡泡处理
如果不处理touch事件 则无需继承 直接使用MapView即可
MapView mMapView null; 地图View
搜索相关
MKSearch mSearch null; 搜索模块 也可去掉地图模块独立使用
@Override
protected void onCreate Bundle savedInstanceState {
super onCreate savedInstanceState ;
YLC APPLICATION app YLC APPLICATION this getApplication ;
setContentView R layout activity ylc bus line ;
地图初始化
mMapView MapView findViewById R id bmapView ;
mMapView getController enableClick true ;
mMapView getController setZoom 12 ;
busLineIDList new ArrayList<String> ;
创建 弹出泡泡图层
createPaopao ;
地图点击事件处理
mMapView regMapTouchListner new MKMapTouchListener {">YLC BusLine java
地图相关 使用继承MapView的MyBusLineMapView目的是重写touch事件实现泡泡处理
如果不处理touch事件 则无需继承 直接使用MapView即可
MapView mMapView null; 地图View
搜索相关
MKSearch mSearch null; 搜索模块 [更多]
2014-09-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人