2012-11-16 41 views
0

我有下一个问题: 我想在GoogleMap的mapView中放置覆盖。我从数据服务器加载坐标,然后将其转换为intE6类型。但是当我将GeoPoint放置在地图上时,它出现在其他站点上,我尝试放置其他点,并且点之间的距离很好,但是它们被移至其他站点。我认为这个问题可能是地图配置,但我不知道在哪里,因为我检查了这些点的坐标,并且很好,并且它之前与其他坐标一起工作。覆盖谷歌地图,Android

感谢您的答复:)

我检查,并转换为善

float latitude = (float) json_data.getDouble("latitude"); 
float longitude = (float) json_data.getDouble("longitude"); 

Log.d("POINT",(int)(latitude*1E6)+" "+ (int)((longitude*1E6))); 

GeoPoint p = new GeoPoint((int)(latitude*1E6), (int)(longitude*1E6)); 

Log.d("POINT", ""+p.getLatitudeE6()+" "+p.getLongitudeE6()); 

解决:是我的错,它工作正常,在我的代码有其他错误

+0

请将您的代码部分转换为经度和纬度,创建'GeoPoint'并将点添加到地图。 – yDelouis

+0

我的错,它工作正常,我的代码中有其他错误 –

回答

0

求助:我的错,它工作正常,我的代码中有其他错误。