emen emen - 8 months ago 50
Android Question

How to restrict android google map to a city?

How can i restrict android google map to a city?
I am currently following code for show google map:

protected void onCreate(Bundle savedInstanceState) {
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()

I want to show just a city. Any way?

Answer Source
private static final LatLngBounds DUBAI_BOUNDS = new LatLngBounds(new LatLng(24.5908366068, 54.84375),
            new LatLng(25.3303729706, 55.6835174561));

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download