Android:谷歌地图坐标

时间:2013-04-20 06:57:03

标签: android maps coordinates

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

抱歉我的英语不好。

提前致谢。

 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);

1 个答案:

答案 0 :(得分:1)

请使用Google地图v2。这已被弃用,3月份关键丢失。 https://developers.google.com/maps/documentation/android/

您可以在http://www.vogella.com/articles/AndroidGoogleMaps/article.html

中找到教程
相关问题