Google 地图已在地球视图中加载
Google maps are loaded in Earth view
我在 android 应用程序中显示 google 地图。
但是,我可以在 earth/satellite 模式下查看地图。
我想在 normal 模式下看到它们。
谁能告诉我哪里错了?
根据 the documentation,您只需在有效的 GoogleMap
实例上调用 mGoogleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
。
由于我们看不到您地图的代码,我只是假设您拥有它并且默认情况下将其设置为卫星视图。
您可以通过明确设置来更改地图样式:
GoogleMap newMap;
//Your map code here
newMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
找到更多信息
我在 android 应用程序中显示 google 地图。 但是,我可以在 earth/satellite 模式下查看地图。 我想在 normal 模式下看到它们。
谁能告诉我哪里错了?
根据 the documentation,您只需在有效的 GoogleMap
实例上调用 mGoogleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
。
由于我们看不到您地图的代码,我只是假设您拥有它并且默认情况下将其设置为卫星视图。
您可以通过明确设置来更改地图样式:
GoogleMap newMap;
//Your map code here
newMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
找到更多信息