首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

Google Maps兑现绘制两点之间线条和图标

2012-09-28 
Google Maps实现绘制两点之间线条和图标如果需要查看两地之间所移动的路线图,就需要在地图上绘制线条和图

Google Maps实现绘制两点之间线条和图标

如果需要查看两地之间所移动的路线图,就需要在地图上绘制线条和图标来查看了,废话不多说,贴上代码!


JAVA代码:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="fill_parent"    android:layout_height="fill_parent">     <com.google.android.maps.MapView         android:id="@+id/mapsView"                 android:layout_width="fill_parent"                 android:layout_height="fill_parent"                 android:apiKey="0pbz1nfRMm_rQhNwDB4hE549_EJ86lD00BUyCNw"                 android:enabled="true"                 android:clickable="true"                 /></LinearLayout>


好了,在模拟器里面查看只需要send一下它的经纬度,手机里就需要移动至少500M才行,OK!


热点排行