Android谷歌地图蓝屏 [英] Blue screen in Android Google Maps

查看:112
本文介绍了Android谷歌地图蓝屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android上加载Google地图时出现蓝屏。我不知道我在做什么错,这是我获取位置的代码:

  MapView mapView =(MapView) findViewById(R.id.mapDire); 
路线路线=方向(新的GeoPoint((int)(2 * 1E6),(int)(34 * 1E6)),
新的GeoPoint((int)(3 * 1E6),(int) (36 * 1E6)));


解决方案

b
$ b


  • 您的坐标为0,0,地图在海洋中打开

  • API Key出错
  • li>


在第一种情况下,尝试缩小很多次并尝试看到一些大陆。



第二次尝试阅读文档或/并尝试此链接



我希望这有助于。


I am getting a blue screen when I load my Google Maps on Android. I don't know what I am doing wrong, this is my code for getting the locations:

MapView mapView = (MapView) findViewById(R.id.mapDire);
Route route = directions(new GeoPoint((int)(2*1E6),(int)(34*1E6)),
  new GeoPoint((int)(3*1E6),(int)(36*1E6)));

解决方案

I think can be two things

  • Your coordinates are 0,0 and the map is opening in the ocean
  • Something wrong with your API Key

In the first case try zoom out a lot of times and try to see some continent.

In the second try to read the documentation or/and try this link

I hope this helps.

这篇关于Android谷歌地图蓝屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆