android程序中,已知 城市为 南昌  一个店x坐标为 5700454.3  y坐标为 6521014.4
现需:在一界面中,用地图显示出来,并在地图中标注此店,如何实现呀,thanks

解决方案 »

  1.   

    google map都有例子,就是把这个点设置为中心就行了,还有记住这个坐标是经纬度分别乘以1000000得到的。
      

  2.   

    http://www.cnblogs.com/playing/archive/2011/04/23/2025419.html
    这个写的很清楚
      

  3.   

    3楼的例子运行不出来,
    运行时 报错  INSTALL_FAILED_MISSING_SHARED_LIBRARY
      

  4.   

    现我是按
    http://www.cnblogs.com/playing/archive/2011/04/23/2025419.html
    这里做的,
    回5楼的,如何改。thanks
      

  5.   

    现已进展到
    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 
      

  6.   

    标注的位置是经纬度控制的,你改成 南昌 一个店x坐标为 5700454.3 y坐标为 6521014.4
    //就是这个经纬度
    mGeoPoint = new GeoPoint((int) (30.659259 * 1000000), (int) (104.065762 * 1000000));