介绍 |
部分源代码: |
|
MyMap = (MapView) findViewById(R.id.mymap); |
mZoom = (ZoomControls) MyMap.getZoomControls(); |
linearlayout = (LinearLayout) findViewById(R.id.zoomview); |
linearlayout.addView(mZoom); |
|
mapOverlays = MyMap.getOverlays(); |
drawable = this .getResources(). |
getDrawable(R.drawable.androidlogo); |
itemizedOverlay = new GeoItemizedOverlay(drawable); |
|
GeoPoint point = new GeoPoint( 40750000 , - 73980000 ); |
OverlayItem overlayitem = new OverlayItem(point, "" , "" ); |
itemizedOverlay.addOverlay(overlayitem); |
|
mapOverlays.add(itemizedOverlay); |
初级程序员
by: 牙小夜 发表于:2014-06-05 20:44:59 顶(0) | 踩(0) 回复
学习下
回复评论