Red*_*der 0 android google-maps google-maps-markers android-intent
现在,我正在通过以下调用启动Google地图应用程序:
String geoAddress = "maps.google.com/maps?q=";
geoAddress += LatLong[0] + "," + LatLong[1];
Intent i = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(geoAddress));
startActivity(i);
Run Code Online (Sandbox Code Playgroud)
这将打开标记并将其放置在地图上的指定位置.我有两个问题:
1)如何放置多个具有经度/纬度的标记?
2)如何将地图应用程序启动到其他模式(地形/卫星/等)?
谢谢!
阅读以下链接并下载链接代码(供进一步参考)
https://github.com/jgilfelt/android-mapviewballoons
https://github.com/jgilfelt/android-mapviewballoons#readme
2.要更改视图,请使用以下函数,mapView.setSatellite(true); mapView.setStreetView(真); 有关进一步参考 http://mobiforge.com/developing/story/using-google-maps-android