Xamarin.forms.googlemaps: Zoom on Current GPS Position

Created on 4 Apr 2017  路  2Comments  路  Source: amay077/Xamarin.Forms.GoogleMaps

FEATURE REQUEST / SUGGESTION

Zoom on Current GPS Position

DETAILS

Hi. I saw that GoogleMaps component plots blue pin in the current position when the GPS is on.
I Want to Zoom in that position without user have to click on "My Location Button".
I think i should use MoveToRegion method to that, but not found any method to return the current position.

PLATFORMS

  • [x] Android
  • [x] iOS

Most helpful comment

Your question is similar as #220 .

Xamarin.Forms.GoogleMaps does not provides getting location manually.
You can use Geolocator plugin and call Map.MoveToRegion or Map.MoveCamera / AnimateCamera .

All 2 comments

You have to implement own gps watcher and if location changes, change camera view. For example use geolocator to get location

Your question is similar as #220 .

Xamarin.Forms.GoogleMaps does not provides getting location manually.
You can use Geolocator plugin and call Map.MoveToRegion or Map.MoveCamera / AnimateCamera .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amay077 picture amay077  路  4Comments

talhaa91 picture talhaa91  路  4Comments

idan-rubin picture idan-rubin  路  6Comments

soile1991 picture soile1991  路  5Comments

woellij picture woellij  路  4Comments