Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible in Android Google maps to change default location from South Africa to Australia?

I want to confirm one thing in Google maps that is why Google maps always showing South Africa as default location... Can't we change Australia as Default one. If GPRS enabled I can trace the current location if not i want to show Sidney in Australia . Is it possible ???

like image 943
Android Avatar asked Feb 03 '14 14:02

Android


People also ask

How do I change the default start location for Google Maps?

Look to the top-left corner of the map, and click the three horizontal menu bars. From the options, select Your places. Next, click Home. Type the name of the location you want to set as your home address in the address field.


1 Answers

Google Maps will show the user's current location if you ask for it.

You can also manually set the "default" location by moving the map to give a particular location.

CameraUpdate point = CameraUpdateFactory.newLatLng(new LatLng(53, 2));

// moves camera to coordinates
map.moveCamera(point);
// animates camera to coordinates
map.animateCamera(point);

Best to use moveCamera rather than animateCamera for the default position.

The reason you are seeing South Africa is because the map defaults to (0,0) when initialised without any extra data, so it doesn't have somewhere to point to other than it's default. (0,0) happens to be near Africa.

Use moveCamera before the map is shown to the user and it will be showing wherever you have selected by default.

like image 145
biddulph.r Avatar answered Sep 21 '22 13:09

biddulph.r