0

我有获取坐标并返回到谷歌地图的应用程序。我只有一个问题。当我放坐标时,指针不是很正确。我有一种方法,但我认为不适合这份工作。

对不起,我的英语不好。

提前致谢。

 touchedPoint=map.getProjection().fromPixels((int) cord,(int) cord1);

       CustomPoint custom = new CustomPoint(d, Maps.this);

        OverlayItem overlayItem = new OverlayItem(touchedPoint, null, null);

         custom.insertPoints(overlayItem);
        overlayList.add(custom);
4

1 回答 1

1

请使用谷歌地图 v2。这已被弃用,并且密钥在 3 月丢失。https://developers.google.com/maps/documentation/android/

您可以在http://www.vogella.com/articles/AndroidGoogleMaps/article.html找到教程

于 2013-04-20T07:15:10.483 回答