Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My Location Demo isn't able to zoom to one's location #25

Closed
cjkrieseSF opened this issue Sep 5, 2016 · 2 comments
Closed

My Location Demo isn't able to zoom to one's location #25

cjkrieseSF opened this issue Sep 5, 2016 · 2 comments

Comments

@cjkrieseSF
Copy link

Although the marker is present at the correct location, the map remains zoomed out and center at geographic midpoints for latitude and longitude... in the middle of the Atlantic Ocean. Manually scrolling and zooming does reveal the correctly placed marker.

The Android Monitor window is full of lines similar to the following:
09-05 13:12:34.456 14247-15011/com.example.mapdemo W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op

@paulpv
Copy link

paulpv commented Sep 16, 2016

You have to control the zoom level yourself.
These are just basic samples, and a production app needs to be a bit more complicated.

I think you can ignore those deprecated draw warnings.
I see a lot of these too, mostly in my Genymotion 6.x VM.
On what device model and version of Android for you?

@katherineallen
Copy link
Contributor

Hi,

This sample was updated in pull request #66 to use a connectionless client, and now zooms to show the user's current location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants