【问题标题】:How to get Hybrid view of google map in Android Application [closed]如何在 Android 应用程序中获取谷歌地图的混合视图 [关闭]
【发布时间】:2011-07-08 12:52:00
【问题描述】:
我可以在 Google 地图上看到差异,但在 Android MapActivity 上
我正在努力寻找不同之处。
对于“地图”,我称之为:mapView.setSatellite(false);
对于“卫星”,我调用:mapView.setSatellite(true);
但是对于混合视图......我试着玩
mapView.setStreetView(true);但这似乎不影响任何事情
无论哪种方式。
有什么想法吗?
【问题讨论】:
标签:
android
google-maps-api-3
android-maps
【解决方案2】:
创建一个扩展服务的类
public class myService extends Service
覆盖
public void onStart(Intent intent, int startId) {
在你的活动中
if(!myService.isInstanceCreated())
startService(new Intent(youractivityclass.this, myService.class));