当我使用URL加载静态地图时,地图正在显示但是它太模糊了....请给解决方案的朋友...提前感谢.......... 这是我的代码......
public class UpdateMap extends AsyncTask<String, String, String> {
@Override
protected String doInBackground(String... value) {
Double latter = Double.parseDouble(value[0]);
Double longer = Double.parseDouble(value[1]);
String address = value[2];
try {
String mapurl = "http://maps.google.com/maps/api/staticmap?center="
+ latter
+ ","
+ longer
+ "&zoom=15&size=100x100&sensor=true&markersize=55&markers=color:red%7Clabel:%7C"
+ latter + "," + longer;
double lat1 = Double.valueOf(latter);
double longt1 = Double.valueOf(longer);
Bitmap mapimage = BitmapConvert.bitmaptobitmap(application
.getGoogleMapThumbnail(lat1, longt1, mapurl));
Bitmap crop = crop(mapimage);
String mapimagestring = BitmapConvert.bitmaptostring(crop);
chatHistoryDB.updatemapimage(latter + "/" + longer + "/"
+ address, mapimagestring);
chatAdapter.doubletick();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
}