android程序中,已知 城市为 南昌 一个店x坐标为 5700454.3 y坐标为 6521014.4
现需:在一界面中,用地图显示出来,并在地图中标注此店,如何实现呀,thanks
现需:在一界面中,用地图显示出来,并在地图中标注此店,如何实现呀,thanks
解决方案 »
- Android4.0触摸屏驱动report点正常,单指点击无效果
- android 在模拟器配置Email
- 为何自动生成main.out.xml
- 神奇的空指针啊求解
- 图片压缩后为何会变的更大?
- android Listview scrollto 问题
- button的impressed()和onclickedlistener()的区别
- 请问full Init JPEG decoder failed -10这个错误怎么解决?
- 手机红外遥控器 求源码
- Android 页面跳转失败
- 推荐几本android的书 ,英语的也行
- AndroidManifest.xml 已注册activity 还是出现ActivityNotFoundException
这个写的很清楚
运行时 报错 INSTALL_FAILED_MISSING_SHARED_LIBRARY
http://www.cnblogs.com/playing/archive/2011/04/23/2025419.html
这里做的,
回5楼的,如何改。thanks
android界面中,已可显示地图,并可在地图中标注 "天府广场" 出来,
标注的代码如下:
class MyLocationOverlay extends Overlay
{
public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when)
{
super.draw(canvas, mapView, shadow);
Paint paint = new Paint();
Point myScreenCoords = new Point();
mapView.getProjection().toPixels(mGeoPoint, myScreenCoords);
paint.setStrokeWidth(1);
paint.setARGB(255, 255, 0, 0);
paint.setStyle(Paint.Style.STROKE);
Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.icon);
canvas.drawBitmap(bmp, myScreenCoords.x, myScreenCoords.y, paint);
canvas.drawText("天府广场", myScreenCoords.x, myScreenCoords.y, paint);
return true;
}
}现:1 目前 天府广场坐标不知显示的是什么位置
2 需给 赋一坐标 (JINMXPJOJTHLLD KPGUVTJOLLLLL),如何弄呀,thanks
//就是这个经纬度
mGeoPoint = new GeoPoint((int) (30.659259 * 1000000), (int) (104.065762 * 1000000));