Friday, September 27, 2013

[android-developers] Re: problem centering the camera in Maps V2

What happens if you set the camera tilt to zero?

On Thursday, September 26, 2013 7:50:45 PM UTC-4, Gary Blakely wrote:
In my android app I have the following code...

CameraUpdate center= CameraUpdateFactory.newLatLng(new LatLng(Lat,Lon));
DebugLog.debugLog("centered camera on " + Lat + " and " + Lon, false);
        CameraUpdate zoom=CameraUpdateFactory.zoomTo(15);
map.moveCamera(center);
        map.animateCamera(zoom);
map.addMarker(new MarkerOptions()
    .position(new LatLng(Lat, Lon))
    .title("Phone Location")
    );

Lat is 31.7898
Lon is -111.0354

The marker is exactly at that location.  However the camera is centered about 5 miles north of that location on the v2 map.
Why?
Thanks
Gary

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate