LatLng constructor changing latitude value to -90.0
For some reason the constructor for LatLng is changing the latitude value
to -90.0 but the longitue value is fine.
for (DealMarker m : markers.getMarkers()) {
Log.d("map " , "pre - lat " + m.getmLatitude() + " " +
m.getmLongitude());
LatLng latlng = new LatLng(m.getmLatitude(), m.getmLongitude());
Log.d("map " , "post lat " + latlng.latitude + " " +
latlng.longitude);
Marker deallocation = mMap.addMarker(new
MarkerOptions().position(latlng).title(m.getTitle()).snippet(m.getSnippett()));
}
This produces a log file like: 09-28 19:26:50.212: D/map(17784): pre - lat
-121.6176785 39.1417939 09-28 19:26:50.212: D/map(17784): post lat -90.0
39.1417939
for each marker.. I am at a loss been working on this for hours. Thank you
all.
No comments:
Post a Comment