我目前正在为 Android 应用程序使用 Google 静态地图API。对于 Android 应用程序,它为我提供了正确的图像,但是当我在浏览器中使用相同的URL时,它给了我image的其他地方。
String url="https://maps.googleapis.com/maps/api/staticmap?zoom=13&size=640x640&maptype=roadmap\n" +
"&markers=color:blue%7Clabel:S%7C6.972491, 79.917473\n"
+"&markers=color:green%7Clabel:G%7C6.962225, 79.894642\n" +
"&markers=color:green%7Clabel:G%7C6.951713, 79.917323\n"+
"&markers=color:red%7Clabel:C%7C6.912690, 79.908225\n" +
"&path=color:0x000000|weight:3|6.972491, 79.917473|6.962225, 79.894642|6.951713, 79.917323|6.912690, 79.908225\n"+
"&key=key";